w-component-vue 2.1.67 → 2.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/w-component-vue.umd.js +3 -3
- package/dist/w-component-vue.umd.js.map +1 -1
- package/docs/binarySearch.mjs.html +2 -2
- package/docs/examples/app.html +1 -1
- package/docs/examples/app.umd.js +2 -2
- package/docs/examples/app.umd.js.map +1 -1
- package/docs/examples/w-aggrid-vue-dyn_defCellEditable.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_kpCellEditable_kpRowStyle.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_kpHeadTooltip_kpCellTooltip.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_large data (1,000,000 items).html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_simple data.html +1 -1
- package/docs/examples/w-alert_backgroundColor.html +1 -1
- package/docs/examples/w-alert_borderColor.html +1 -1
- package/docs/examples/w-alert_borderRadius.html +1 -1
- package/docs/examples/w-alert_borderWidth.html +1 -1
- package/docs/examples/w-alert_default.html +1 -1
- package/docs/examples/w-alert_icon.html +1 -1
- package/docs/examples/w-alert_position.html +1 -1
- package/docs/examples/w-alert_recive closed event by promise.html +1 -1
- package/docs/examples/w-alert_shadowStyle.html +1 -1
- package/docs/examples/w-alert_textColor.html +1 -1
- package/docs/examples/w-alert_time (6s).html +1 -1
- package/docs/examples/w-alert_type error.html +1 -1
- package/docs/examples/w-alert_type infor.html +1 -1
- package/docs/examples/w-alert_type warning.html +1 -1
- package/docs/examples/w-badge_backgroundColor.html +1 -1
- package/docs/examples/w-badge_badgeAlign.html +1 -1
- package/docs/examples/w-badge_borderColor_textColor_backgroundColor.html +1 -1
- package/docs/examples/w-badge_borderRadius.html +1 -1
- package/docs/examples/w-badge_default.html +1 -1
- package/docs/examples/w-badge_textColor_backgroundColor.html +1 -1
- package/docs/examples/w-badge_textFontSize.html +1 -1
- package/docs/examples/w-button-chip_active_backgroundColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_borderColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_iconColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_no shadow_no shadowActive.html +1 -1
- package/docs/examples/w-button-chip_active_shadowActiveStyle.html +1 -1
- package/docs/examples/w-button-chip_active_textColorActive.html +1 -1
- package/docs/examples/w-button-chip_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderRadius.html +1 -1
- package/docs/examples/w-button-chip_borderRadiusStyle.html +1 -1
- package/docs/examples/w-button-chip_borderRadiusStyle_borderWidth_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderWidth.html +1 -1
- package/docs/examples/w-button-chip_close.html +1 -1
- package/docs/examples/w-button-chip_close_shiftRight.html +1 -1
- package/docs/examples/w-button-chip_default.html +1 -1
- package/docs/examples/w-button-chip_icon (fontawesome).html +1 -1
- package/docs/examples/w-button-chip_icon (material).html +1 -1
- package/docs/examples/w-button-chip_icon_iconColor_iconColorHover_close.html +1 -1
- package/docs/examples/w-button-chip_icon_no text.html +1 -1
- package/docs/examples/w-button-chip_loading.html +1 -1
- package/docs/examples/w-button-chip_loading_loadingColor.html +1 -1
- package/docs/examples/w-button-chip_loading_textColor_textColorHover.html +1 -1
- package/docs/examples/w-button-chip_modify loading by callback in click.html +1 -1
- package/docs/examples/w-button-chip_modify prog by callback in click.html +1 -1
- package/docs/examples/w-button-chip_no shadow.html +1 -1
- package/docs/examples/w-button-chip_not editable.html +1 -1
- package/docs/examples/w-button-chip_not editable_disabledColor.html +1 -1
- package/docs/examples/w-button-chip_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-button-chip_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-button-chip_paddingStyle_icon_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-button-chip_prog.html +1 -1
- package/docs/examples/w-button-chip_prog_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-button-chip_promiseUnlock.html +1 -1
- package/docs/examples/w-button-chip_rippleColor.html +1 -1
- package/docs/examples/w-button-chip_shadowStyle.html +1 -1
- package/docs/examples/w-button-chip_shiftLeft.html +1 -1
- package/docs/examples/w-button-chip_slot_close.html +1 -1
- package/docs/examples/w-button-chip_textColor.html +1 -1
- package/docs/examples/w-button-chip_textColor_textColorHover.html +1 -1
- package/docs/examples/w-button-chip_tooltip.html +1 -1
- package/docs/examples/w-button-circle_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-button-circle_icon (fontawesome).html +1 -1
- package/docs/examples/w-button-circle_icon (material).html +1 -1
- package/docs/examples/w-button-circle_iconColor_iconColorHover_iconColorFocus.html +1 -1
- package/docs/examples/w-button-circle_loading.html +1 -1
- package/docs/examples/w-button-circle_loading_loadingColor.html +1 -1
- package/docs/examples/w-button-circle_no shadow.html +1 -1
- package/docs/examples/w-button-circle_not editable.html +1 -1
- package/docs/examples/w-button-circle_not editable_disabledColor.html +1 -1
- package/docs/examples/w-button-circle_paddingStyle.html +1 -1
- package/docs/examples/w-button-circle_paddingStyle_iconSize.html +1 -1
- package/docs/examples/w-button-circle_promiseUnlock.html +1 -1
- package/docs/examples/w-button-circle_rippleColor.html +1 -1
- package/docs/examples/w-button-circle_shadowStyle.html +1 -1
- package/docs/examples/w-button-circle_tooltip.html +1 -1
- package/docs/examples/w-checkbox_checkedIconColor_uncheckedIconColor.html +1 -1
- package/docs/examples/w-checkbox_checkedIcon_uncheckedIcon.html +1 -1
- package/docs/examples/w-checkbox_default.html +1 -1
- package/docs/examples/w-checkbox_iconSize.html +1 -1
- package/docs/examples/w-checkbox_not editable.html +1 -1
- package/docs/examples/w-checkbox_not editable_checkedIconColorDisabled_uncheckedIconColorDisabled.html +1 -1
- package/docs/examples/w-checkbox_use string (y or n).html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_default.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_height.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_settings.html +1 -1
- package/docs/examples/w-confirm_contentColor_contentIconColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-confirm_contentIcon (fontawesome).html +1 -1
- package/docs/examples/w-confirm_contentIconColor.html +1 -1
- package/docs/examples/w-confirm_contentIconSize.html +1 -1
- package/docs/examples/w-confirm_hasNoBtn_yesBtnText.html +1 -1
- package/docs/examples/w-confirm_maxWidth.html +1 -1
- package/docs/examples/w-confirm_noBtnTextColor_noBtnTextColorHover_noBtnBackgroundColor_noBtnBackgroundColorHover.html +1 -1
- package/docs/examples/w-confirm_noBtnText_yesBtnText.html +1 -1
- package/docs/examples/w-confirm_scrollable (slot content).html +1 -1
- package/docs/examples/w-confirm_scrollable.html +1 -1
- package/docs/examples/w-confirm_slot content.html +1 -1
- package/docs/examples/w-confirm_slot footer.html +1 -1
- package/docs/examples/w-confirm_slot header.html +1 -1
- package/docs/examples/w-confirm_titleColor_headerBackgroundColor_footerBackgroundColor.html +1 -1
- package/docs/examples/w-confirm_title_content.html +1 -1
- package/docs/examples/w-dialog_closeWithInterceptor.html +1 -1
- package/docs/examples/w-dialog_contentTextColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_fullscreen.html +1 -1
- package/docs/examples/w-dialog_hasSaveBtn and hasCloseBtn, no save and close button.html +1 -1
- package/docs/examples/w-dialog_hasSaveBtn, no save button.html +1 -1
- package/docs/examples/w-dialog_headerBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_headerBtns.html +1 -1
- package/docs/examples/w-dialog_headerIconColor_headerTextColor_headerBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_icon (fontawesome).html +1 -1
- package/docs/examples/w-dialog_maxWidth, for narrow width.html +1 -1
- package/docs/examples/w-dialog_multi dialogs.html +1 -1
- package/docs/examples/w-dialog_saveBtnTooltip_closeBtnTooltip.html +1 -1
- package/docs/examples/w-dialog_scrollable.html +1 -1
- package/docs/examples/w-dialog_separate for slot content.html +1 -1
- package/docs/examples/w-dialog_slot content.html +1 -1
- package/docs/examples/w-dialog_slot header-left_header-right.html +1 -1
- package/docs/examples/w-dialog_table in slot content.html +1 -1
- package/docs/examples/w-dialog_title.html +1 -1
- package/docs/examples/w-dropfiles_backgroundColor_backgroundColorDropIn_backgroundColorHover.html +1 -1
- package/docs/examples/w-dropfiles_borderColor_borderColorDropIn_borderColorHover_backgroundColorDropIn.html +1 -1
- package/docs/examples/w-dropfiles_borderRadius.html +1 -1
- package/docs/examples/w-dropfiles_borderWidth.html +1 -1
- package/docs/examples/w-dropfiles_default.html +1 -1
- package/docs/examples/w-dropfiles_timeTransition.html +1 -1
- package/docs/examples/w-dynamic-list_change rows.html +2 -2
- package/docs/examples/w-dynamic-list_change slot.html +2 -2
- package/docs/examples/w-dynamic-list_default.html +2 -2
- package/docs/examples/{w-dynamic-list_filterKeywords_searchEmpty.html → w-dynamic-list_filterKeywords_noResultsText.html} +4 -4
- package/docs/examples/w-dynamic-list_large data (1,000,000 items).html +9 -11
- package/docs/examples/w-dynamic-list_processItems.html +9 -11
- package/docs/examples/w-dynamic-list_render.html +2 -2
- package/docs/examples/w-dynamic-list_slot item with image.html +9 -11
- package/docs/examples/w-dynamic-list_viewHeightMax.html +2 -2
- package/docs/examples/w-echarts-vue-dyn_area.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_bar3D.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_continuous.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_heatmap.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_line.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_line3D.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_parallel.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_polar heatmap.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_polar.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_radar.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_scatter.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_stack.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_surface.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_tree.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_treemap.html +1 -1
- package/docs/examples/w-group-check_backgroundColorActive.html +1 -1
- package/docs/examples/w-group-check_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-check_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_borderRadius.html +1 -1
- package/docs/examples/w-group-check_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
- package/docs/examples/w-group-check_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_click (console.log).html +1 -1
- package/docs/examples/w-group-check_default.html +1 -1
- package/docs/examples/w-group-check_group (only one).html +1 -1
- package/docs/examples/w-group-check_group_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
- package/docs/examples/w-group-check_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-check_icon (material).html +1 -1
- package/docs/examples/w-group-check_iconColorActive.html +1 -1
- package/docs/examples/w-group-check_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-check_loading.html +1 -1
- package/docs/examples/w-group-check_loading_loadingColor.html +1 -1
- package/docs/examples/w-group-check_marginStyle.html +1 -1
- package/docs/examples/w-group-check_no shadowActive.html +1 -1
- package/docs/examples/w-group-check_not editable.html +1 -1
- package/docs/examples/w-group-check_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
- package/docs/examples/w-group-check_paddingStyle_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-check_shadow.html +1 -1
- package/docs/examples/w-group-check_shadowActiveStyle.html +1 -1
- package/docs/examples/w-group-check_shadow_shadowStyle.html +1 -1
- package/docs/examples/w-group-check_shiftLeft.html +1 -1
- package/docs/examples/w-group-check_shiftLeft_shiftRight.html +1 -1
- package/docs/examples/w-group-check_slot_shadow.html +1 -1
- package/docs/examples/w-group-check_textColor.html +1 -1
- package/docs/examples/w-group-check_textColorActive.html +1 -1
- package/docs/examples/w-group-check_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-check_tooltip.html +1 -1
- package/docs/examples/w-group-dragdrop_default.html +1 -1
- package/docs/examples/w-group-dragdrop_event (dragdrop).html +1 -1
- package/docs/examples/w-group-dragdrop_items(string array).html +1 -1
- package/docs/examples/w-group-dragdrop_keyBinder.html +1 -1
- package/docs/examples/w-group-dragdrop_not draggable.html +1 -1
- package/docs/examples/w-group-dragdrop_not itemStyleInline (block).html +1 -1
- package/docs/examples/w-group-radio_backgroundColorActive.html +1 -1
- package/docs/examples/w-group-radio_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-radio_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_borderRadius.html +1 -1
- package/docs/examples/w-group-radio_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
- package/docs/examples/w-group-radio_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_click (console.log).html +1 -1
- package/docs/examples/w-group-radio_default.html +1 -1
- package/docs/examples/w-group-radio_group (only one).html +1 -1
- package/docs/examples/w-group-radio_group_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
- package/docs/examples/w-group-radio_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-radio_icon (material).html +1 -1
- package/docs/examples/w-group-radio_iconColorActive.html +1 -1
- package/docs/examples/w-group-radio_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-radio_loading.html +1 -1
- package/docs/examples/w-group-radio_loading_loadingColor.html +1 -1
- package/docs/examples/w-group-radio_marginStyle.html +1 -1
- package/docs/examples/w-group-radio_no shadowActive.html +1 -1
- package/docs/examples/w-group-radio_not editable.html +1 -1
- package/docs/examples/w-group-radio_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
- package/docs/examples/w-group-radio_paddingStyle_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-radio_shadow.html +1 -1
- package/docs/examples/w-group-radio_shadowActiveStyle.html +1 -1
- package/docs/examples/w-group-radio_shadow_shadowStyle.html +1 -1
- package/docs/examples/w-group-radio_shiftLeft.html +1 -1
- package/docs/examples/w-group-radio_shiftLeft_shiftRight.html +1 -1
- package/docs/examples/w-group-radio_slot_shadow.html +1 -1
- package/docs/examples/w-group-radio_textColor.html +1 -1
- package/docs/examples/w-group-radio_textColorActive.html +1 -1
- package/docs/examples/w-group-radio_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-radio_tooltip.html +1 -1
- package/docs/examples/w-group-tags_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-tags_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-group-tags_borderRadius.html +1 -1
- package/docs/examples/w-group-tags_closeWithInterceptor.html +1 -1
- package/docs/examples/w-group-tags_default.html +1 -1
- package/docs/examples/w-group-tags_editableClose(no close button).html +1 -1
- package/docs/examples/w-group-tags_editableInput(no slot input).html +1 -1
- package/docs/examples/w-group-tags_enableCloseEventOnly.html +1 -1
- package/docs/examples/w-group-tags_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-tags_icon (material).html +1 -1
- package/docs/examples/w-group-tags_iconColor_iconColorHover_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_icon_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-tags_inputTextButtonTooltip.html +1 -1
- package/docs/examples/w-group-tags_inputTextColor_inputTextBorderColor_inputTextBorderColorHover_inputTextBorderColorFocus.html +1 -1
- package/docs/examples/w-group-tags_inputTextWidth.html +1 -1
- package/docs/examples/w-group-tags_marginStyle.html +1 -1
- package/docs/examples/w-group-tags_modify loading by callback in click.html +1 -1
- package/docs/examples/w-group-tags_modify loading_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_modify prog by callback in click.html +1 -1
- package/docs/examples/w-group-tags_no shadow_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-group-tags_not draggable.html +1 -1
- package/docs/examples/w-group-tags_not editable.html +1 -1
- package/docs/examples/w-group-tags_not editable_nodata.html +1 -1
- package/docs/examples/w-group-tags_object items.html +1 -1
- package/docs/examples/w-group-tags_object items_addButtonTextColor_addButtonTextColorHover_addButtonIconColor.html +1 -1
- package/docs/examples/w-group-tags_object items_addButtonText_addButtonTooltip.html +1 -1
- package/docs/examples/w-group-tags_object items_keyIcon.html +1 -1
- package/docs/examples/w-group-tags_object items_keyText.html +1 -1
- package/docs/examples/w-group-tags_object items_keyTooltip.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item_editableInput(no slot input)_useActive.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item_useColorsFromItem_editableInput(no slot input).html +1 -1
- package/docs/examples/w-group-tags_paddingStyle_icon_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-tags_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-group-tags_shadowStyle.html +1 -1
- package/docs/examples/w-group-tags_shiftLeft.html +1 -1
- package/docs/examples/w-group-tags_slot input.html +1 -1
- package/docs/examples/w-group-tags_slot item.html +1 -1
- package/docs/examples/w-group-tags_slot item_useActive_valueActive_paddingStyle.html +1 -1
- package/docs/examples/w-group-tags_suggests.html +1 -1
- package/docs/examples/w-group-tags_suggests_inputTextColor_inputExpansionIconColor.html +1 -1
- package/docs/examples/{w-group-tags_suggests_placeholder_searchEmpty.html → w-group-tags_suggests_placeholder_noResultsText.html} +3 -3
- package/docs/examples/w-group-tags_suggests_suggectItemFontSize_suggectItemTextColor_suggectItemTextColorHover.html +1 -1
- package/docs/examples/w-group-tags_textColor.html +1 -1
- package/docs/examples/w-group-tags_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_useActive_valueActive.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_area.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_bar.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_change options.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_heatmap.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_large heatmap.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_line.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_pie.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_render (need w-hc2png-server) (line).html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_scale (line).html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_area.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_bar.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_heatmap.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_large heatmap.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_line.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_pie.html +1 -1
- package/docs/examples/w-highstock-vue-dyn_area.html +1 -1
- package/docs/examples/w-highstock-vue-dyn_line.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-access-point)_size.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-account-badge-horizontal)_timeTransition.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-fruit-cherries).html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-graph-outline)_color_colorHover.html +1 -1
- package/docs/examples/w-icon-svg_path (use 3 paths)_sizeOriginal.html +1 -1
- package/docs/examples/w-icon-svg_path_sizeOriginal.html +1 -1
- package/docs/examples/w-image-cascading-dyn_arrangeWhenFinish.html +1 -1
- package/docs/examples/w-image-cascading-dyn_colNum.html +1 -1
- package/docs/examples/w-image-cascading-dyn_default(imageWidth=300).html +1 -1
- package/docs/examples/w-image-cascading-dyn_imageWidth.html +1 -1
- package/docs/examples/w-image-viewer-dyn_multiple image with navbar.html +1 -1
- package/docs/examples/w-image-viewer-dyn_one image.html +1 -1
- package/docs/examples/w-json-view_default.html +13 -15
- package/docs/examples/{w-json-view_filterKeywords_searchEmpty.html → w-json-view_filterKeywords_noResultsText.html} +15 -17
- package/docs/examples/w-json-view_iconColor_keyColor_keyNumbersColor_numColor.html +13 -15
- package/docs/examples/{w-json-view_large data (100,000 lines).html → w-json-view_large data (15,500 lines).html } +14 -16
- package/docs/examples/w-json-view_viewHeightMax.html +13 -15
- package/docs/examples/w-leaflet-vue-dyn_contourSet for rain data.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_contourSets.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_pointSets.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_polygonSets.html +6 -6
- package/docs/examples/w-list-vertical_auto scroll.html +1 -1
- package/docs/examples/w-list-vertical_default.html +1 -1
- package/docs/examples/w-list-vertical_itemActive.html +1 -1
- package/docs/examples/w-list-vertical_itemActive_itemBackgroundColor_itemBackgroundColorHover_itemBackgroundColorActive.html +1 -1
- package/docs/examples/w-list-vertical_itemActive_itemTextColor_itemTextColorHover_itemTextColorActive.html +1 -1
- package/docs/examples/w-list-vertical_keyText_keyIcon.html +1 -1
- package/docs/examples/w-list-vertical_paddingStyle.html +1 -1
- package/docs/examples/w-list-vertical_slot footer.html +1 -1
- package/docs/examples/w-list-vertical_slot header.html +1 -1
- package/docs/examples/w-list-vertical_slot item.html +1 -1
- package/docs/examples/w-list-vertical_string items.html +1 -1
- package/docs/examples/w-list-vertical_useActive (no active).html +1 -1
- package/docs/examples/w-list-vertical_useActive (no active)_itemRippleColor.html +1 -1
- package/docs/examples/w-panel-bulge_contentBackgroundColor.html +1 -1
- package/docs/examples/w-panel-bulge_contentBorderRadius.html +1 -1
- package/docs/examples/w-panel-bulge_default.html +1 -1
- package/docs/examples/w-panel-bulge_headerBorderRadius.html +1 -1
- package/docs/examples/w-panel-bulge_headerPadding.html +1 -1
- package/docs/examples/w-panel-bulge_headerTextColor_headerBackgroundColor.html +1 -1
- package/docs/examples/w-panel-bulge_no headerShadow_no contentShadow, with green outer.html +1 -1
- package/docs/examples/w-panel-bulge_slot for header_headerBorderRadius_headerBackgroundColor(linear-gradient).html +1 -1
- package/docs/examples/w-panel-bulge_with grey outer.html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WEchartsVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WHighchartsBitmapDyn).html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WHighstockVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_default (WHighchartsVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIcon.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIconColor_downloadPictureBtnIconColorHover_downloadPictureBtnIconColorFocus.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnTooltip.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureFilenmae.html +1 -1
- package/docs/examples/w-panel-chart_scale.html +1 -1
- package/docs/examples/w-panel-chart_width_height.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barBorderSize_barBorderColor.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barColor.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barSize.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_default.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_min_max.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_ratio.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barBorderSize_barBorderColor.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barColor.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barSize.html +1 -1
- package/docs/examples/w-panel-divide-vertical_default.html +1 -1
- package/docs/examples/w-panel-divide-vertical_min_max.html +1 -1
- package/docs/examples/w-panel-divide-vertical_ratio.html +1 -1
- package/docs/examples/w-panel-scale_for select.html +1 -1
- package/docs/examples/w-panel-scale_for v-btn.html +1 -1
- package/docs/examples/w-panel-scale_for w-panel-bulge.html +1 -1
- package/docs/examples/w-panel-scale_for w-panel-scrolly.html +1 -1
- package/docs/examples/w-panel-scale_for w-text-suggest.html +1 -1
- package/docs/examples/{w-panel-scrolly_barColor_barColorHover.html → w-panel-scrolly_barOpacity_barOpacityHover.html} +9 -9
- package/docs/examples/w-panel-scrolly_default.html +7 -10
- package/docs/examples/{w-panel-scrolly_barColor_barColorHover_barBackgroundColor_barBackgroundColorHover.html → w-panel-scrolly_events.html} +12 -13
- package/docs/examples/{w-panel-scrolly_ratio.html → w-panel-scrolly_scrollTop.html} +10 -10
- package/docs/examples/w-panel-stripe_borderRadius.html +1 -1
- package/docs/examples/w-panel-stripe_buttons in slot footer.html +1 -1
- package/docs/examples/w-panel-stripe_headerBackgroundColor_footerBackgroundColor.html +1 -1
- package/docs/examples/w-panel-stripe_no footer.html +1 -1
- package/docs/examples/w-panel-stripe_no header.html +1 -1
- package/docs/examples/w-panel-stripe_no shadow, with crimson outer.html +1 -1
- package/docs/examples/w-panel-stripe_only slot icon and slot title in header.html +1 -1
- package/docs/examples/w-panel-stripe_only slot title in header.html +1 -1
- package/docs/examples/w-panel-stripe_padding.html +1 -1
- package/docs/examples/w-panel-stripe_separate for slot content.html +1 -1
- package/docs/examples/w-panel-stripe_slot icon (fontawesome).html +1 -1
- package/docs/examples/w-panel-stripe_slot icon, slot title, slot description, slot content and slot footer.html +1 -1
- package/docs/examples/w-panel-stripe_table in slot content.html +1 -1
- package/docs/examples/w-panel-stripe_with grey outer.html +1 -1
- package/docs/examples/w-popup-edit-text_default.html +1 -1
- package/docs/examples/w-popup-edit-text_in table.html +1 -1
- package/docs/examples/w-popup-edit-text_minWidthForPopup.html +1 -1
- package/docs/examples/w-popup-edit-text_minWidthForValue.html +1 -1
- package/docs/examples/w-popup-edit-text_no title.html +1 -1
- package/docs/examples/w-popup-edit-text_title_contentIcon_contentIconColor_contentIconSize.html +1 -1
- package/docs/examples/w-popup-edit-text_title_footerBackgroundColor.html +1 -1
- package/docs/examples/w-popup-edit-text_title_inputTextColor_contentIconColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-popup-edit-text_title_saveBtnText_saveBtnTextColor_saveBtnTextColorHover.html +1 -1
- package/docs/examples/w-popup-edit-text_title_titleColor_titleFontSize_headerBackgroundColor.html +1 -1
- package/docs/examples/w-popup_auto flipping in scroll panel.html +1 -1
- package/docs/examples/w-popup_backgroundColor.html +1 -1
- package/docs/examples/w-popup_borderRadius.html +1 -1
- package/docs/examples/w-popup_click item by latency hiding.html +1 -1
- package/docs/examples/w-popup_default.html +1 -1
- package/docs/examples/w-popup_distY.html +1 -1
- package/docs/examples/w-popup_in dialog.html +1 -1
- package/docs/examples/w-popup_in popup.html +1 -1
- package/docs/examples/w-popup_in scroll panel.html +1 -1
- package/docs/examples/w-popup_isolated.html +1 -1
- package/docs/examples/w-popup_maxWidth.html +1 -1
- package/docs/examples/w-popup_minWidth.html +1 -1
- package/docs/examples/w-popup_no shadow_backgroundColor.html +1 -1
- package/docs/examples/w-popup_not editable.html +1 -1
- package/docs/examples/w-popup_shadowStyle.html +1 -1
- package/docs/examples/w-popup_slot for table_maxWidth.html +1 -1
- package/docs/examples/w-progress-bar_decimal.html +1 -1
- package/docs/examples/w-progress-bar_default.html +1 -1
- package/docs/examples/w-progress-bar_enableIconFinish (no iconFinish).html +1 -1
- package/docs/examples/w-progress-bar_enableIconWaiting (no iconWaiting).html +1 -1
- package/docs/examples/w-progress-bar_height.html +1 -1
- package/docs/examples/w-progress-bar_height_borderRadius.html +1 -1
- package/docs/examples/w-progress-bar_iconFinish (fontawesome).html +1 -1
- package/docs/examples/w-progress-bar_iconFinishColor.html +1 -1
- package/docs/examples/w-progress-bar_iconSize.html +1 -1
- package/docs/examples/w-progress-bar_iconWaiting (fontawesome).html +1 -1
- package/docs/examples/w-progress-bar_iconWaitingColor.html +1 -1
- package/docs/examples/w-progress-bar_progColor.html +1 -1
- package/docs/examples/w-progress-bar_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-progress-bar_title.html +1 -1
- package/docs/examples/w-progress-bar_title_titleTextColor.html +1 -1
- package/docs/examples/w-progress-bar_title_titleTextFontSize.html +1 -1
- package/docs/examples/w-progress-bar_value=0 (waiting).html +1 -1
- package/docs/examples/w-progress-bar_value=100 (finish).html +1 -1
- package/docs/examples/w-progress-bar_valueTextColor.html +1 -1
- package/docs/examples/w-progress-bar_valueTextFontSize.html +1 -1
- package/docs/examples/w-progress-circle_color.html +1 -1
- package/docs/examples/w-progress-circle_default.html +1 -1
- package/docs/examples/w-progress-circle_small size.html +1 -1
- package/docs/examples/w-progress-circle_tooltip.html +1 -1
- package/docs/examples/w-progress-circle_very small size.html +1 -1
- package/docs/examples/w-progress-circle_width.html +1 -1
- package/docs/examples/w-progress-circle_/344/270/255/346/226/207text.html +1 -1
- package/docs/examples/w-quill-vue-dyn_default.html +1 -1
- package/docs/examples/w-quill-vue-dyn_height.html +1 -1
- package/docs/examples/w-quill-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-quill-vue-dyn_settings.html +1 -1
- package/docs/examples/w-switch_default.html +1 -1
- package/docs/examples/w-switch_not editable.html +1 -1
- package/docs/examples/w-switch_text_color.html +1 -1
- package/docs/examples/w-switch_use string (y or n).html +1 -1
- package/docs/examples/w-table-dyn_default.html +1 -1
- package/docs/examples/w-table-dyn_editable.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_opt.modifyDataWhenSave_save(call cmp. method).html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_successMsgFromAddRow_errorMsgFromAddRow.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_tooltipAddRow_tooltipDeleteSelectedRows.html +1 -1
- package/docs/examples/w-table-dyn_editable_inforPaddingStyle_menuBackgroundColor.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.beforeAddRow.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.kpConvertKeysWhenUploadData.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.optForUploadData.html +1 -1
- package/docs/examples/w-table-dyn_editable_slot btns.html +1 -1
- package/docs/examples/w-table-dyn_editable_textLabelDataName_textPlaceholderDataName_textLabelDataDescription.html +1 -1
- package/docs/examples/w-table-dyn_fixIds (fix id).html +1 -1
- package/docs/examples/w-table-dyn_hideIds (hide mappingId).html +1 -1
- package/docs/examples/w-table-dyn_name_description.html +1 -1
- package/docs/examples/w-table-dyn_opt.kpHead.html +1 -1
- package/docs/examples/w-table-dyn_removeIdsWhenDownload (remove id, mappingId, order, isActive).html +1 -1
- package/docs/examples/w-table-dyn_slot btns.html +1 -1
- package/docs/examples/w-table-dyn_slot infor (name_description).html +1 -1
- package/docs/examples/w-table-dyn_sortColIds (sort by order).html +1 -1
- package/docs/examples/w-text-int_borderRadius.html +1 -1
- package/docs/examples/w-text-int_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-int_border_borderRadius.html +1 -1
- package/docs/examples/w-text-int_border_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
- package/docs/examples/w-text-int_border_default.html +1 -1
- package/docs/examples/w-text-int_border_not editable.html +1 -1
- package/docs/examples/w-text-int_border_width.html +1 -1
- package/docs/examples/w-text-int_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
- package/docs/examples/w-text-int_buttonIconSize.html +1 -1
- package/docs/examples/w-text-int_default.html +1 -1
- package/docs/examples/w-text-int_not editable.html +1 -1
- package/docs/examples/w-text-int_textColor.html +1 -1
- package/docs/examples/w-text-int_textFontSize.html +1 -1
- package/docs/examples/w-text-int_width.html +1 -1
- package/docs/examples/w-text-select_a lot of items.html +1 -1
- package/docs/examples/w-text-select_borderRadius.html +1 -1
- package/docs/examples/w-text-select_border_a lot of items.html +1 -1
- package/docs/examples/w-text-select_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-select_border_borderRadius.html +1 -1
- package/docs/examples/w-text-select_border_default.html +1 -1
- package/docs/examples/w-text-select_border_events.html +1 -1
- package/docs/examples/w-text-select_border_expansionIconSize.html +1 -1
- package/docs/examples/w-text-select_border_fullwidth.html +1 -1
- package/docs/examples/w-text-select_border_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-select_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
- package/docs/examples/w-text-select_border_itemTextFontSize_defItemHeight_width.html +1 -1
- package/docs/examples/w-text-select_border_items(string array).html +1 -1
- package/docs/examples/w-text-select_border_keyText.html +1 -1
- package/docs/examples/w-text-select_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-select_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text-select_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text-select_border_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text-select_border_not editable.html +1 -1
- package/docs/examples/w-text-select_border_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-select_border_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-select_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
- package/docs/examples/w-text-select_border_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-select_border_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-select_border_slot item.html +1 -1
- package/docs/examples/w-text-select_border_slot select.html +1 -1
- package/docs/examples/w-text-select_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-select_border_textFontSize.html +1 -1
- package/docs/examples/w-text-select_border_with popup.html +1 -1
- package/docs/examples/w-text-select_default.html +1 -1
- package/docs/examples/w-text-select_events.html +1 -1
- package/docs/examples/w-text-select_expansionIconSize.html +1 -1
- package/docs/examples/w-text-select_fullwidth.html +1 -1
- package/docs/examples/w-text-select_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-select_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
- package/docs/examples/w-text-select_itemTextFontSize_defItemHeight_width.html +1 -1
- package/docs/examples/w-text-select_items(string array).html +1 -1
- package/docs/examples/w-text-select_keyText.html +1 -1
- package/docs/examples/w-text-select_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-select_leftIcon (material).html +1 -1
- package/docs/examples/w-text-select_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text-select_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text-select_not editable.html +1 -1
- package/docs/examples/w-text-select_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-select_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-select_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text-select_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-select_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-select_slot item.html +1 -1
- package/docs/examples/w-text-select_slot select.html +1 -1
- package/docs/examples/w-text-select_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-select_textFontSize.html +1 -1
- package/docs/examples/w-text-select_with popup.html +1 -1
- package/docs/examples/w-text-suggest_a lot of items.html +2 -2
- package/docs/examples/w-text-suggest_borderRadius.html +1 -1
- package/docs/examples/w-text-suggest_border_a lot of items.html +2 -2
- package/docs/examples/w-text-suggest_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_border_borderRadius.html +1 -1
- package/docs/examples/w-text-suggest_border_default.html +1 -1
- package/docs/examples/w-text-suggest_border_events.html +1 -1
- package/docs/examples/w-text-suggest_border_expansionIconSize.html +1 -1
- package/docs/examples/w-text-suggest_border_fullwidth.html +1 -1
- package/docs/examples/w-text-suggest_border_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-suggest_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
- package/docs/examples/w-text-suggest_border_itemTextFontSize_defItemHeight.html +1 -1
- package/docs/examples/w-text-suggest_border_items(string array).html +1 -1
- package/docs/examples/w-text-suggest_border_keyText.html +2 -2
- package/docs/examples/w-text-suggest_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/{w-text-suggest_border_searchEmpty.html → w-text-suggest_border_noResultsText.html} +3 -3
- package/docs/examples/w-text-suggest_border_not editable.html +1 -1
- package/docs/examples/w-text-suggest_border_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-suggest_border_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-suggest_border_placeholder.html +1 -1
- package/docs/examples/w-text-suggest_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
- package/docs/examples/w-text-suggest_border_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-suggest_border_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-suggest_border_showPanel(press enter to hide panel)_focused.html +1 -1
- package/docs/examples/w-text-suggest_border_slot item.html +1 -1
- package/docs/examples/w-text-suggest_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-suggest_border_textFontSize.html +1 -1
- package/docs/examples/w-text-suggest_border_with popup.html +1 -1
- package/docs/examples/w-text-suggest_default.html +1 -1
- package/docs/examples/w-text-suggest_events.html +1 -1
- package/docs/examples/w-text-suggest_expansionIconSize.html +1 -1
- package/docs/examples/w-text-suggest_fullwidth.html +1 -1
- package/docs/examples/w-text-suggest_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-suggest_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
- package/docs/examples/w-text-suggest_itemTextFontSize_defItemHeight.html +1 -1
- package/docs/examples/w-text-suggest_items(string array).html +1 -1
- package/docs/examples/w-text-suggest_keyText.html +2 -2
- package/docs/examples/w-text-suggest_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-suggest_leftIcon (material).html +1 -1
- package/docs/examples/w-text-suggest_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/{w-text-suggest_searchEmpty.html → w-text-suggest_noResultsText.html} +3 -3
- package/docs/examples/w-text-suggest_not editable.html +1 -1
- package/docs/examples/w-text-suggest_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-suggest_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-suggest_placeholder.html +1 -1
- package/docs/examples/w-text-suggest_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-suggest_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-suggest_showPanel(press enter to hide panel)_focused.html +1 -1
- package/docs/examples/w-text-suggest_slot item.html +1 -1
- package/docs/examples/w-text-suggest_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-suggest_textFontSize.html +1 -1
- package/docs/examples/w-text_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text_border_borderRadius_paddingStyle.html +1 -1
- package/docs/examples/w-text_border_default.html +1 -1
- package/docs/examples/w-text_border_events.html +1 -1
- package/docs/examples/w-text_border_fullwidth.html +1 -1
- package/docs/examples/w-text_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text_border_not editable.html +1 -1
- package/docs/examples/w-text_border_placeholder.html +1 -1
- package/docs/examples/w-text_border_rightIcon_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text_border_textAlign.html +1 -1
- package/docs/examples/w-text_border_textColor.html +1 -1
- package/docs/examples/w-text_bottomLineBorderColor_bottomLineBorderColorHover_bottomLineBorderColorFocus.html +1 -1
- package/docs/examples/w-text_default.html +1 -1
- package/docs/examples/w-text_events.html +1 -1
- package/docs/examples/w-text_fullwidth.html +1 -1
- package/docs/examples/w-text_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text_leftIcon (material).html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconColor_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconTooltip.html +1 -1
- package/docs/examples/w-text_not editable.html +1 -1
- package/docs/examples/w-text_placeholder.html +1 -1
- package/docs/examples/w-text_rightIcon.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconColor_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconTooltip.html +1 -1
- package/docs/examples/w-text_textAlign.html +1 -1
- package/docs/examples/w-text_textColor.html +1 -1
- package/docs/examples/w-text_textFontSize.html +1 -1
- package/docs/examples/w-textarea_borderColorFocus.html +1 -1
- package/docs/examples/w-textarea_default.html +1 -1
- package/docs/examples/w-textarea_fullwidth.html +1 -1
- package/docs/examples/w-textarea_not editable.html +1 -1
- package/docs/examples/w-textarea_placeholder.html +1 -1
- package/docs/examples/w-timeday-range_between.html +1 -1
- package/docs/examples/w-timeday-range_borderRadius.html +1 -1
- package/docs/examples/w-timeday-range_border_between.html +1 -1
- package/docs/examples/w-timeday-range_border_borderRadius.html +1 -1
- package/docs/examples/w-timeday-range_border_default.html +1 -1
- package/docs/examples/w-timeday-range_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday-range_border_icon (material).html +1 -1
- package/docs/examples/w-timeday-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeday-range_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeday-range_border_not editable.html +1 -1
- package/docs/examples/w-timeday-range_border_pickColor.html +1 -1
- package/docs/examples/w-timeday-range_border_textColor.html +1 -1
- package/docs/examples/w-timeday-range_default.html +1 -1
- package/docs/examples/w-timeday-range_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday-range_icon (material).html +1 -1
- package/docs/examples/w-timeday-range_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeday-range_iconTooltip.html +1 -1
- package/docs/examples/w-timeday-range_icon_iconSize.html +1 -1
- package/docs/examples/w-timeday-range_not editable.html +1 -1
- package/docs/examples/w-timeday-range_pickColor.html +1 -1
- package/docs/examples/w-timeday-range_textColor.html +1 -1
- package/docs/examples/w-timeday_borderRadius.html +1 -1
- package/docs/examples/w-timeday_border_borderRadius.html +1 -1
- package/docs/examples/w-timeday_border_default.html +1 -1
- package/docs/examples/w-timeday_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday_border_icon (material).html +1 -1
- package/docs/examples/w-timeday_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeday_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeday_border_not editable.html +1 -1
- package/docs/examples/w-timeday_border_pickColor.html +1 -1
- package/docs/examples/w-timeday_border_textColor.html +1 -1
- package/docs/examples/w-timeday_default.html +1 -1
- package/docs/examples/w-timeday_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday_icon (material).html +1 -1
- package/docs/examples/w-timeday_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeday_iconTooltip.html +1 -1
- package/docs/examples/w-timeday_icon_iconSize.html +1 -1
- package/docs/examples/w-timeday_not editable.html +1 -1
- package/docs/examples/w-timeday_pickColor.html +1 -1
- package/docs/examples/w-timeday_textColor.html +1 -1
- package/docs/examples/w-timeminute-range_between.html +1 -1
- package/docs/examples/w-timeminute-range_borderRadius.html +1 -1
- package/docs/examples/w-timeminute-range_border_between.html +1 -1
- package/docs/examples/w-timeminute-range_border_borderRadius.html +1 -1
- package/docs/examples/w-timeminute-range_border_default.html +1 -1
- package/docs/examples/w-timeminute-range_border_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute-range_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute-range_border_icon (material).html +1 -1
- package/docs/examples/w-timeminute-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeminute-range_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute-range_border_minuteInter.html +1 -1
- package/docs/examples/w-timeminute-range_border_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute-range_border_not editable.html +1 -1
- package/docs/examples/w-timeminute-range_border_pickColor.html +1 -1
- package/docs/examples/w-timeminute-range_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute-range_default.html +1 -1
- package/docs/examples/w-timeminute-range_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute-range_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute-range_icon (material).html +1 -1
- package/docs/examples/w-timeminute-range_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeminute-range_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute-range_icon_iconSize.html +1 -1
- package/docs/examples/w-timeminute-range_minuteInter.html +1 -1
- package/docs/examples/w-timeminute-range_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute-range_not editable.html +1 -1
- package/docs/examples/w-timeminute-range_pickColor.html +1 -1
- package/docs/examples/w-timeminute-range_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute_borderRadius.html +1 -1
- package/docs/examples/w-timeminute_border_borderRadius.html +1 -1
- package/docs/examples/w-timeminute_border_default.html +1 -1
- package/docs/examples/w-timeminute_border_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute_border_icon (material).html +1 -1
- package/docs/examples/w-timeminute_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeminute_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute_border_minuteInter.html +1 -1
- package/docs/examples/w-timeminute_border_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute_border_not editable.html +1 -1
- package/docs/examples/w-timeminute_border_pickColor.html +1 -1
- package/docs/examples/w-timeminute_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute_default.html +1 -1
- package/docs/examples/w-timeminute_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute_icon (material).html +1 -1
- package/docs/examples/w-timeminute_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeminute_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute_icon_iconSize.html +1 -1
- package/docs/examples/w-timeminute_minuteInter.html +1 -1
- package/docs/examples/w-timeminute_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute_not editable.html +1 -1
- package/docs/examples/w-timeminute_pickColor.html +1 -1
- package/docs/examples/w-timeminute_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_default.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_height.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_settings.html +1 -1
- package/docs/examples/w-tree_default.html +1 -1
- package/docs/examples/w-tree_defaultDisplayLevel.html +1 -1
- package/docs/examples/w-tree_draggable.html +1 -1
- package/docs/examples/w-tree_draggable_dgInsertLineColor_dgInsertBackgroundColor_dgBelongBackgroundColor.html +1 -1
- package/docs/examples/w-tree_draggable_dgPreviewOpacity_dgPreviewBorderWidth_dgBelongBackgroundColor.html +1 -1
- package/docs/examples/w-tree_draggable_dgTextDisabled_dgTextDisabledColor_dgTextDisabledPaddingLeft.html +1 -1
- package/docs/examples/{w-tree_slot_defItemHeight.html → w-tree_filterKeywords_noResultsText.html} +13 -14
- package/docs/examples/{w-tree_filterKeywords_searchEmpty_selectable.html → w-tree_filterKeywords_noResultsText_selectable.html} +5 -3
- package/docs/examples/{w-tree_separatorColor.html → w-tree_iconHeight.html} +3 -3
- package/docs/examples/{w-tree_separatorColor_separatorHeight.html → w-tree_iconHeight_defItemHeight.html} +4 -4
- package/docs/examples/w-tree_iconToggleColor_iconToggleBackgroundColor_iconToggleBackgroundColorHover.html +1 -1
- package/docs/examples/w-tree_indent.html +1 -1
- package/docs/examples/w-tree_keyPrimary_keyText_keyChildren.html +1 -1
- package/docs/examples/w-tree_mouseenter_mouseleave_click_change-view-items.html +1 -1
- package/docs/examples/w-tree_operatable.html +1 -1
- package/docs/examples/w-tree_operatable_operateBtnBackgroundColor_operateBtnBackgroundColorHover_operateBtnBackgroundColorFocus.html +1 -1
- package/docs/examples/w-tree_operatable_operateBtnTooltip_operateItemTextForInsertBefore_perateItemTextForInsertChild.html +1 -1
- package/docs/examples/w-tree_operatable_operateItemBackgroundColor_operateItemBackgroundColorHover_operateItemTextColor.html +1 -1
- package/docs/examples/w-tree_operatable_operateItemIconSize_operateItemPaddingStyle_operatePanelWidth.html +1 -1
- package/docs/examples/w-tree_paddingStyle.html +1 -1
- package/docs/examples/w-tree_selectable.html +1 -1
- package/docs/examples/w-tree_selectable_draggable.html +1 -1
- package/docs/examples/w-tree_slot.html +7 -41
- package/docs/examples/w-tree_slot_iconUncheckedColor_iconUncheckedDisabledColor_iconCheckedColor.html +1 -1
- package/docs/examples/w-tree_slot_locked_selectable.html +1 -1
- package/docs/examples/w-tree_slot_operatable.html +1 -1
- package/docs/examples/w-tree_slot_selectable.html +1 -1
- package/docs/examples/w-tree_slot_selectable_draggable.html +1 -1
- package/docs/examples/{w-tree_selectable_large data (100,000 items).html → w-tree_slot_selectable_large data (100,000 items).html } +5 -3
- package/docs/examples/w-tree_viewHeightMax.html +1 -1
- package/docs/global.html +2 -2
- package/docs/highchartsSetting.mjs.html +2 -2
- package/docs/index.html +2 -2
- package/docs/module-WAggridVueDyn.html +2 -2
- package/docs/module-WBadge.html +2 -2
- package/docs/module-WButtonChip.html +2 -2
- package/docs/module-WButtonCircle.html +2 -2
- package/docs/module-WCheckbox.html +2 -2
- package/docs/module-WCkeditorVueDyn.html +2 -2
- package/docs/module-WConfirm.html +2 -2
- package/docs/module-WDialog.html +2 -2
- package/docs/module-WDropfiles.html +2 -2
- package/docs/module-WDynamicList.html +13 -13
- package/docs/module-WEchartsVueDyn.html +2 -2
- package/docs/module-WGroupCheck.html +2 -2
- package/docs/module-WGroupDragdrop.html +2 -2
- package/docs/module-WGroupRadio.html +2 -2
- package/docs/module-WGroupTags.html +5 -5
- package/docs/module-WHighchartsBitmapDyn.html +2 -2
- package/docs/module-WHighchartsVueDyn.html +2 -2
- package/docs/module-WHighstockVueDyn.html +2 -2
- package/docs/module-WIcon.html +2 -2
- package/docs/module-WIconLoading.html +2 -2
- package/docs/module-WIconSvg.html +2 -2
- package/docs/module-WImageCascadingDyn.html +2 -2
- package/docs/module-WImageViewerDyn.html +2 -2
- package/docs/module-WJsonView.html +57 -27
- package/docs/module-WLeafletVueDyn.html +40 -10
- package/docs/module-WListVertical.html +2 -2
- package/docs/module-WListVerticalItem.html +2 -2
- package/docs/module-WPanelBulge.html +2 -2
- package/docs/module-WPanelChart.html +2 -2
- package/docs/module-WPanelDivideHorizontal.html +2 -2
- package/docs/module-WPanelDivideVertical.html +2 -2
- package/docs/module-WPanelScrolly.html +14 -38
- package/docs/module-WPanelScrollyCore.html +11 -47
- package/docs/module-WPanelStripe.html +2 -2
- package/docs/module-WPopup.html +2 -2
- package/docs/module-WPopupEditText.html +2 -2
- package/docs/module-WProgressBar.html +2 -2
- package/docs/module-WProgressCircle.html +2 -2
- package/docs/module-WQuillVueDyn.html +2 -2
- package/docs/module-WShellBottomLine.html +2 -2
- package/docs/module-WShellEllipse.html +2 -2
- package/docs/module-WShellMaterial.html +2 -2
- package/docs/module-WSwitch.html +2 -2
- package/docs/module-WTableDyn.html +2 -2
- package/docs/module-WText.html +2 -2
- package/docs/module-WTextCore.html +2 -2
- package/docs/module-WTextInt.html +2 -2
- package/docs/module-WTextIntCore.html +2 -2
- package/docs/module-WTextSelect.html +2 -2
- package/docs/module-WTextSuggest.html +5 -5
- package/docs/module-WTextSuggestCore.html +5 -5
- package/docs/module-WTextarea.html +2 -2
- package/docs/module-WTimeday.html +2 -2
- package/docs/module-WTimedayCore.html +2 -2
- package/docs/module-WTimedayRange.html +2 -2
- package/docs/module-WTimedayRangeCore.html +2 -2
- package/docs/module-WTimeminute.html +2 -2
- package/docs/module-WTimeminuteCore.html +2 -2
- package/docs/module-WTimeminuteRange.html +2 -2
- package/docs/module-WTimeminuteRangeCore.html +2 -2
- package/docs/module-WTinymceVueDyn.html +2 -2
- package/docs/module-WTree.html +11 -17
- package/docs/module-WTreeIconCheckbox.html +2 -2
- package/docs/module-WTreeIconToggle.html +2 -2
- package/docs/vuetifyColor.mjs.html +2 -2
- package/package.json +3 -3
- package/src/App.vue +1 -1
- package/src/AppZoneWBadge.vue +2 -0
- package/src/AppZoneWDynamicList.vue +24 -83
- package/src/AppZoneWGroupTags.vue +2 -2
- package/src/AppZoneWJsonView.vue +11 -23
- package/src/AppZoneWLeafletVueDyn.vue +5 -5
- package/src/AppZoneWPanelScrolly.vue +18 -66
- package/src/AppZoneWTextSuggest.vue +8 -8
- package/src/AppZoneWTree.vue +60 -37
- package/src/components/WButtonChip.vue +2 -1
- package/src/components/WButtonCircle.vue +2 -1
- package/src/components/WComponentVue.vue +0 -2
- package/src/components/WDynamicList.vue +491 -283
- package/src/components/WGroupTags.vue +4 -4
- package/src/components/WJsonView.vue +308 -945
- package/src/components/WLeafletVueDyn.vue +10 -5
- package/src/components/WPanelScrolly.vue +44 -104
- package/src/components/WPanelScrollyCore.vue +312 -535
- package/src/components/WTextSuggest.vue +4 -4
- package/src/components/WTextSuggestCore.vue +12 -15
- package/src/components/WTree.vue +131 -102
- package/src/js/convertToTreeWk.mjs +7 -0
- package/src/js/convertToTreeWk.wk.umd.js +1 -0
- package/toolg/gDistRollupWorkerFuncs.mjs +31 -0
- package/toolg/gExtractHtml.mjs +4 -1
- package/docs/examples/w-dynamic-list_separatorColor.html +0 -367
- package/docs/examples/w-dynamic-list_separatorColor_separatorHeight.html +0 -368
- package/docs/examples/w-json-view_valueStyleBreakAll.html +0 -469
- package/docs/examples/w-panel-scrolly_barHeightMin.html +0 -190
- package/docs/examples/w-panel-scrolly_barWidth.html +0 -218
- package/docs/examples/w-panel-scrolly_scrollDelta.html +0 -221
- package/docs/module-WJsonViewCore.html +0 -243
- package/src/components/WJsonViewCore.vue +0 -163
|
@@ -1,75 +1,119 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
<div>
|
|
3
|
+
|
|
4
|
+
<WTree
|
|
5
|
+
ref="wt"
|
|
6
|
+
:viewHeightMax="viewHeightMax"
|
|
7
|
+
:defaultDisplayLevel="defaultDisplayLevel"
|
|
8
|
+
:indent="indent"
|
|
9
|
+
:iconHeight="iconHeight"
|
|
10
|
+
:iconToggleColor="iconToggleColor"
|
|
11
|
+
:iconToggleBackgroundColor="iconToggleBackgroundColor"
|
|
12
|
+
:iconToggleBackgroundColorHover="iconToggleBackgroundColorHover"
|
|
13
|
+
:filterKeywords="filterKeywords"
|
|
14
|
+
:filterFunction="filterFunction"
|
|
15
|
+
:noResultsText="lockFromSetData?'':noResultsText"
|
|
16
|
+
:defItemHeight="defItemHeight"
|
|
17
|
+
:itemsPreload="itemsPreload"
|
|
18
|
+
:show="show"
|
|
19
|
+
>
|
|
20
|
+
<template v-slot:head="props">
|
|
21
|
+
|
|
22
|
+
<div :style="`min-width:${lineNumberWidth}px; display:flex; align-items:center; justify-content:end; font-size:0.8rem; line-height:1.5625rem; color:#f26; user-select:none;`">
|
|
23
|
+
{{props.index+1}}
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<template v-slot:item="props">
|
|
29
|
+
|
|
30
|
+
<div style="display:flex; align-items:center;">
|
|
31
|
+
|
|
32
|
+
<div style="display:flex;">
|
|
33
|
+
<div :style="`padding-right:5px; color:${useColors.keyColor};`" v-if="getKey(props.data)!==''">
|
|
34
|
+
{{getKey(props.data)}}:
|
|
35
|
+
</div>
|
|
36
|
+
<div :style="`padding-right:3px; color:${useColors.keyColor};`" v-if="getType(props.data)!==''">
|
|
37
|
+
{{getType(props.data)}}
|
|
38
|
+
</div>
|
|
39
|
+
<div :style="`color:${getTextTypeColor(props.data)};`">
|
|
40
|
+
{{getText(props.data)}}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div :style="`padding-left:5px; color:${useColors.keyNumbersColor};`">
|
|
45
|
+
{{genBlock(props.data)}}
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
</WTree>
|
|
51
|
+
|
|
52
|
+
<div style="padding:12px; font-size:0.8rem;" v-if="lockFromSetData">
|
|
53
|
+
{{loadingText}}
|
|
29
54
|
</div>
|
|
30
55
|
|
|
31
|
-
</
|
|
56
|
+
</div>
|
|
32
57
|
</template>
|
|
33
58
|
|
|
34
59
|
<script>
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import get from 'lodash/get'
|
|
60
|
+
// import each from 'lodash/each'
|
|
61
|
+
// import map from 'lodash/map'
|
|
62
|
+
// import get from 'lodash/get'
|
|
38
63
|
import size from 'lodash/size'
|
|
39
|
-
import keys from 'lodash/keys'
|
|
40
|
-
import last from 'lodash/last'
|
|
64
|
+
// import keys from 'lodash/keys'
|
|
65
|
+
// import last from 'lodash/last'
|
|
41
66
|
import cloneDeep from 'lodash/cloneDeep'
|
|
42
67
|
import isNumber from 'lodash/isNumber'
|
|
43
|
-
import isString from 'lodash/isString'
|
|
44
|
-
import isBoolean from 'lodash/isBoolean'
|
|
68
|
+
// import isString from 'lodash/isString'
|
|
69
|
+
// import isBoolean from 'lodash/isBoolean'
|
|
45
70
|
// import isArray from 'lodash/isArray' //會誤判function為array
|
|
46
71
|
// import isObject from 'lodash/isObject' //會誤判function為object
|
|
47
|
-
import isFunction from 'lodash/isFunction'
|
|
48
|
-
import toString from 'lodash/toString'
|
|
49
|
-
import cint from 'wsemi/src/cint.mjs'
|
|
72
|
+
// import isFunction from 'lodash/isFunction'
|
|
73
|
+
// import toString from 'lodash/toString'
|
|
74
|
+
// import cint from 'wsemi/src/cint.mjs'
|
|
50
75
|
import isarr from 'wsemi/src/isarr.mjs'
|
|
51
76
|
import isobj from 'wsemi/src/isobj.mjs'
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
77
|
+
import iseobj from 'wsemi/src/iseobj.mjs'
|
|
78
|
+
import isstr from 'wsemi/src/isstr.mjs'
|
|
79
|
+
import isestr from 'wsemi/src/isestr.mjs'
|
|
80
|
+
import isbol from 'wsemi/src/isbol.mjs'
|
|
81
|
+
import isfun from 'wsemi/src/isfun.mjs'
|
|
82
|
+
// import sep from 'wsemi/src/sep.mjs'
|
|
83
|
+
// import convertToTree from 'wsemi/src/convertToTree.mjs'
|
|
84
|
+
// import genID from 'wsemi/src/genID.mjs'
|
|
85
|
+
// import genPm from 'wsemi/src/genPm.mjs'
|
|
86
|
+
// import delay from 'wsemi/src/delay.mjs'
|
|
87
|
+
import waitFun from 'wsemi/src/waitFun.mjs'
|
|
88
|
+
// import debounce from 'wsemi/src/debounce.mjs'
|
|
89
|
+
import haskey from 'wsemi/src/haskey.mjs'
|
|
90
|
+
import color2hex from '../js/vuetifyColor.mjs'
|
|
91
|
+
// import binarySearch from '../js/binarySearch.mjs'
|
|
92
|
+
// import globalMemory from '../js/globalMemory.mjs'
|
|
93
|
+
import convertToTreeWk from '../js/convertToTreeWk.wk.umd.js'
|
|
94
|
+
// import WPanelScrollyCore from './WPanelScrollyCore.vue'
|
|
95
|
+
// import WDynamicList from './WDynamicList.vue'
|
|
96
|
+
import WTree from './WTree.vue'
|
|
61
97
|
|
|
62
98
|
|
|
63
|
-
//gm
|
|
64
|
-
let gm = globalMemory()
|
|
99
|
+
// //gm
|
|
100
|
+
// let gm = globalMemory()
|
|
65
101
|
|
|
66
102
|
|
|
67
103
|
/**
|
|
68
104
|
* @vue-prop {Array|Object} [data={}] 輸入資料陣列或物件,預設{}
|
|
69
105
|
* @vue-prop {Number} [viewHeightMax=400] 輸入顯示區最大高度,單位為px,預設400
|
|
70
|
-
* @vue-prop {Number} [
|
|
106
|
+
* @vue-prop {Number} [defaultDisplayLevel=null] 輸入初始展開層數數字,若輸入1就是預設展開至第1層,第2層(含)以下則都隱藏,若輸入null就是全展開,預設null
|
|
107
|
+
* @vue-prop {Number} [indent=1] 輸入縮排比率數字,若使用1就是1倍的圖標寬度(24px)+2*separation(3px),預設1
|
|
108
|
+
* @vue-prop {Number} [iconHeight=24] 輸入顯隱icon按鈕高度數字,單位為px,預設24
|
|
109
|
+
* @vue-prop {String} [iconToggleColor='grey'] 輸入顯隱icon按鈕顏色字串,預設'grey'
|
|
110
|
+
* @vue-prop {String} [iconToggleBackgroundColor='transparent'] 輸入顯隱icon按鈕背景顏色字串,預設'transparent'
|
|
111
|
+
* @vue-prop {String} [iconToggleBackgroundColorHover='rgba(128,128,128,0.15)'] 輸入滑鼠移入時顯隱icon按鈕背景顏色字串,預設'rgba(128,128,128,0.15)'
|
|
112
|
+
* @vue-prop {String} [filterKeywords=''] 輸入過濾關鍵字字串,多關鍵字用空白分隔,預設''
|
|
113
|
+
* @vue-prop {Function} [filterFunction=null] 輸入過濾時呼叫處理函數,傳入為各項目物件資料,回傳布林值代表項目內是否含有關鍵字,預設null
|
|
114
|
+
* @vue-prop {String} [noResultsText='No results'] 輸入無過濾結果字串,預設'No results'
|
|
115
|
+
* @vue-prop {Number} [defItemHeight=24] 輸入按需顯示時各項目預設高度值,給越準或給大部分項目的高度則渲染速度越快,單位為px,預設24
|
|
71
116
|
* @vue-prop {Number} [itemsPreload=5] 輸入上下方預先載入元素數量,預設5
|
|
72
|
-
* @vue-prop {String} [iconColor='grey'] 輸入顯隱icon按鈕顏色字串,預設'grey'
|
|
73
117
|
* @vue-prop {String} [keyColor='grey darken-2'] 輸入鍵值顏色字串,預設'grey darken-2'
|
|
74
118
|
* @vue-prop {String} [keyNumbersColor='grey lighten-1'] 輸入鍵值內含子節點數量顏色字串,預設'grey lighten-1'
|
|
75
119
|
* @vue-prop {String} [numColor='indigo accent-2'] 輸入值為數值時的顏色字串,預設'indigo accent-2'
|
|
@@ -77,30 +121,64 @@ let gm = globalMemory()
|
|
|
77
121
|
* @vue-prop {String} [bolColor='#ab0d90'] 輸入值為布林值時的顏色字串,預設'#ab0d90'
|
|
78
122
|
* @vue-prop {String} [funColor='purple accent-2'] 輸入值為函數時的顏色字串,預設'purple accent-2'
|
|
79
123
|
* @vue-prop {String} [defaultColor='grey darken-4'] 輸入值為其他類型時的顏色字串,預設'grey darken-4'
|
|
80
|
-
* @vue-prop {Boolean} [defDisplayChildren=true] 輸入是否預先展開全部節點,預設true
|
|
81
|
-
* @vue-prop {String} [searchEmpty='Empty'] 輸入無過濾結果字串,預設'Empty'
|
|
82
|
-
* @vue-prop {Boolean} [valueStyleBreakAll=false] 輸入值顯示樣式是否使用強迫斷字換行,主要用於超長連續文字可避免暴版,預設false
|
|
83
124
|
* @vue-prop {Boolean} [show=true] 輸入是否為顯示模式,預設true,供組件嵌入popup時, 因先初始化但尚未顯示不需渲染, 可給予show=false避免無限偵測與重算高度問題
|
|
84
125
|
*/
|
|
85
126
|
export default {
|
|
86
127
|
components: {
|
|
87
|
-
WPanelScrollyCore,
|
|
88
|
-
|
|
128
|
+
// WPanelScrollyCore,
|
|
129
|
+
// WDynamicList,
|
|
130
|
+
WTree,
|
|
89
131
|
},
|
|
90
132
|
props: {
|
|
91
133
|
data: {
|
|
92
134
|
type: [Array, Object],
|
|
93
135
|
default: () => {},
|
|
94
136
|
},
|
|
137
|
+
viewHeightMax: {
|
|
138
|
+
type: Number,
|
|
139
|
+
default: 400,
|
|
140
|
+
},
|
|
141
|
+
defaultDisplayLevel: {
|
|
142
|
+
type: Number,
|
|
143
|
+
default: null,
|
|
144
|
+
},
|
|
145
|
+
indent: {
|
|
146
|
+
type: Number,
|
|
147
|
+
default: 1,
|
|
148
|
+
},
|
|
149
|
+
iconHeight: {
|
|
150
|
+
type: Number,
|
|
151
|
+
default: 24,
|
|
152
|
+
},
|
|
153
|
+
iconToggleColor: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: 'grey',
|
|
156
|
+
},
|
|
157
|
+
iconToggleBackgroundColor: {
|
|
158
|
+
type: String,
|
|
159
|
+
default: 'transparent',
|
|
160
|
+
},
|
|
161
|
+
iconToggleBackgroundColorHover: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: 'rgba(128,128,128,0.15)',
|
|
164
|
+
},
|
|
95
165
|
filterKeywords: {
|
|
96
166
|
type: String,
|
|
97
167
|
default: '',
|
|
98
168
|
},
|
|
99
|
-
|
|
100
|
-
type:
|
|
101
|
-
default:
|
|
169
|
+
filterFunction: {
|
|
170
|
+
type: Function,
|
|
171
|
+
default: null,
|
|
172
|
+
},
|
|
173
|
+
loadingText: {
|
|
174
|
+
type: String,
|
|
175
|
+
default: 'Loading...',
|
|
176
|
+
},
|
|
177
|
+
noResultsText: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: 'No results',
|
|
102
180
|
},
|
|
103
|
-
|
|
181
|
+
defItemHeight: {
|
|
104
182
|
type: Number,
|
|
105
183
|
default: 24,
|
|
106
184
|
},
|
|
@@ -108,10 +186,6 @@ export default {
|
|
|
108
186
|
type: Number,
|
|
109
187
|
default: 5,
|
|
110
188
|
},
|
|
111
|
-
iconColor: {
|
|
112
|
-
type: String,
|
|
113
|
-
default: 'grey',
|
|
114
|
-
},
|
|
115
189
|
keyColor: {
|
|
116
190
|
type: String,
|
|
117
191
|
default: 'grey darken-2',
|
|
@@ -140,18 +214,6 @@ export default {
|
|
|
140
214
|
type: String,
|
|
141
215
|
default: 'grey darken-4',
|
|
142
216
|
},
|
|
143
|
-
defDisplayChildren: {
|
|
144
|
-
type: Boolean,
|
|
145
|
-
default: true,
|
|
146
|
-
},
|
|
147
|
-
searchEmpty: {
|
|
148
|
-
type: String,
|
|
149
|
-
default: 'Empty',
|
|
150
|
-
},
|
|
151
|
-
valueStyleBreakAll: {
|
|
152
|
-
type: Boolean,
|
|
153
|
-
default: false,
|
|
154
|
-
},
|
|
155
217
|
show: {
|
|
156
218
|
type: Boolean,
|
|
157
219
|
default: true,
|
|
@@ -159,84 +221,42 @@ export default {
|
|
|
159
221
|
},
|
|
160
222
|
data: function() {
|
|
161
223
|
return {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
useColors: {},
|
|
165
|
-
changeHeight: true, //是否有變更高度, 預設true使一開始能強制計算各節點高度
|
|
166
|
-
changeDisplay: true, //是否有變更displayChildren
|
|
167
|
-
changeDisplayIndex: null, //變更displayChildren的item指標
|
|
168
|
-
changeFilter: false, //是否有變更過濾關鍵字
|
|
169
|
-
lineNumberWidth: 0, //列號區寬度
|
|
170
|
-
toggling: false, //上鎖afterToggleItems, 是否顯隱節點中
|
|
171
|
-
scrollRatio: 0, //捲動比例
|
|
172
|
-
scrollInfor: null, //目前捲軸資訊
|
|
173
|
-
toggleInfor: {}, //之前捲軸位置資訊物件
|
|
174
|
-
itemsHeight: 0, //儲存全部項目高度
|
|
175
|
-
filterKeywordsTemp: '', //上次過濾關鍵字
|
|
176
|
-
viewInfor: {},
|
|
177
|
-
//items: [],
|
|
178
|
-
useItems: [],
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
mounted: function() {
|
|
182
|
-
//console.log('mounted')
|
|
224
|
+
// dbcRefresh: debounce(),
|
|
225
|
+
// dbc: debounce(),
|
|
183
226
|
|
|
184
|
-
|
|
227
|
+
// mmkey: null,
|
|
185
228
|
|
|
186
|
-
|
|
187
|
-
vo.refresh('mounted')
|
|
229
|
+
lockFromSetData: false, //上鎖, 指定數據時禁止變更
|
|
188
230
|
|
|
231
|
+
useColors: {}, //因模板初始化就會用到, 故得預設空物件
|
|
232
|
+
root: '___root___', //輸入數據為物件時, 會預設放在root內才能提供顯隱功能
|
|
233
|
+
lineNumberWidth: 0, //列號區寬度
|
|
234
|
+
|
|
235
|
+
}
|
|
189
236
|
},
|
|
190
|
-
beforeDestroy: function() {
|
|
191
|
-
|
|
237
|
+
// beforeDestroy: function() {
|
|
238
|
+
// //console.log('beforeMount')
|
|
192
239
|
|
|
193
|
-
|
|
240
|
+
// let vo = this
|
|
194
241
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
242
|
+
// //remove
|
|
243
|
+
// if (vo.mmkey !== null) {
|
|
244
|
+
// gm.remove(vo.mmkey)
|
|
245
|
+
// }
|
|
199
246
|
|
|
200
|
-
},
|
|
247
|
+
// },
|
|
201
248
|
watch: {
|
|
202
249
|
|
|
203
250
|
data: {
|
|
204
251
|
immediate: true,
|
|
205
252
|
deep: true,
|
|
206
253
|
handler(value) {
|
|
207
|
-
//console.log('watch data', value)
|
|
254
|
+
// console.log('watch data', value)
|
|
208
255
|
|
|
209
256
|
let vo = this
|
|
210
257
|
|
|
211
|
-
//
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
//mmkey
|
|
215
|
-
vo.mmkey = genID()
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
|
|
220
|
-
//remove
|
|
221
|
-
gm.remove(vo.mmkey)
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
//items
|
|
226
|
-
let items = vo.parseData(vo.data)
|
|
227
|
-
|
|
228
|
-
//lineNumberWidth, 每個字元使用13px寬度
|
|
229
|
-
let lineNumberWidth = (Math.ceil(Math.pow(size(items), 0.1)) + 1) * 13
|
|
230
|
-
|
|
231
|
-
//save items
|
|
232
|
-
//vo.items = items
|
|
233
|
-
gm.set(vo.mmkey, items)
|
|
234
|
-
|
|
235
|
-
//save lineNumberWidth
|
|
236
|
-
vo.lineNumberWidth = lineNumberWidth
|
|
237
|
-
|
|
238
|
-
//refresh
|
|
239
|
-
vo.refresh('watch')
|
|
258
|
+
//setData
|
|
259
|
+
vo.setData(value)
|
|
240
260
|
|
|
241
261
|
}
|
|
242
262
|
}
|
|
@@ -255,19 +275,19 @@ export default {
|
|
|
255
275
|
return ''
|
|
256
276
|
},
|
|
257
277
|
|
|
258
|
-
changeFilterKeyWords: function() {
|
|
259
|
-
|
|
278
|
+
// changeFilterKeyWords: function() {
|
|
279
|
+
// //console.log('computed changeFilterKeyWords')
|
|
260
280
|
|
|
261
|
-
|
|
281
|
+
// let vo = this
|
|
262
282
|
|
|
263
|
-
|
|
264
|
-
|
|
283
|
+
// //ft to trigger
|
|
284
|
+
// let ft = vo.filterKeywords
|
|
265
285
|
|
|
266
|
-
|
|
267
|
-
|
|
286
|
+
// //refreshDebounce
|
|
287
|
+
// vo.refreshDebounce('changeFilterKeyWords')
|
|
268
288
|
|
|
269
|
-
|
|
270
|
-
},
|
|
289
|
+
// return ft
|
|
290
|
+
// },
|
|
271
291
|
|
|
272
292
|
},
|
|
273
293
|
methods: {
|
|
@@ -277,894 +297,237 @@ export default {
|
|
|
277
297
|
|
|
278
298
|
let vo = this
|
|
279
299
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
vo.useColors.funColor = color2hex(vo.funColor)
|
|
284
|
-
vo.useColors.defaultColor = color2hex(vo.defaultColor)
|
|
285
|
-
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
refresh: async function(from) {
|
|
289
|
-
//console.log('methods refresh', from)
|
|
290
|
-
|
|
291
|
-
let vo = this
|
|
292
|
-
|
|
293
|
-
let n = 0
|
|
294
|
-
let limit = 3
|
|
295
|
-
async function core() {
|
|
296
|
-
let pm = genPm()
|
|
297
|
-
|
|
298
|
-
//n
|
|
299
|
-
n += 1
|
|
300
|
-
|
|
301
|
-
//check, 取得元素高度因文字換行會有來回變動問題, 需有強制跳出機制
|
|
302
|
-
if (n > limit) {
|
|
303
|
-
//console.log(`已重複refresh ${limit} 次, 強制跳出`)
|
|
304
|
-
pm.resolve(false)
|
|
305
|
-
return pm
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
//genUseItems
|
|
309
|
-
vo.genUseItems()
|
|
310
|
-
|
|
311
|
-
//delay
|
|
312
|
-
await delay(1)
|
|
313
|
-
|
|
314
|
-
//filterItems
|
|
315
|
-
vo.filterItems()
|
|
316
|
-
|
|
317
|
-
//delay
|
|
318
|
-
await delay(1)
|
|
319
|
-
|
|
320
|
-
//updateItemsHeight
|
|
321
|
-
let b = vo.updateItemsHeight()
|
|
322
|
-
|
|
323
|
-
//resolve
|
|
324
|
-
pm.resolve(b)
|
|
325
|
-
|
|
326
|
-
return pm
|
|
300
|
+
//check
|
|
301
|
+
if (iseobj(vo.useColors)) {
|
|
302
|
+
return
|
|
327
303
|
}
|
|
328
304
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
305
|
+
//useColors
|
|
306
|
+
let useColors = {
|
|
307
|
+
numColor: color2hex(vo.numColor),
|
|
308
|
+
strColor: color2hex(vo.strColor),
|
|
309
|
+
bolColor: color2hex(vo.bolColor),
|
|
310
|
+
funColor: color2hex(vo.funColor),
|
|
311
|
+
defaultColor: color2hex(vo.defaultColor),
|
|
312
|
+
keyColor: color2hex(vo.keyColor),
|
|
313
|
+
keyNumbersColor: color2hex(vo.keyNumbersColor),
|
|
337
314
|
}
|
|
338
315
|
|
|
339
|
-
//
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
//genUseItems
|
|
343
|
-
vo.genUseItems()
|
|
344
|
-
|
|
345
|
-
// //delayShow
|
|
346
|
-
// for (let k = 0; k < size(vo.useItems); k++) {
|
|
347
|
-
// let v = vo.useItems[k]
|
|
348
|
-
// if (!v.delayShow) {
|
|
349
|
-
// v.delayShow = true
|
|
350
|
-
// }
|
|
351
|
-
// }
|
|
316
|
+
//save
|
|
317
|
+
vo.useColors = useColors
|
|
352
318
|
|
|
353
319
|
},
|
|
354
320
|
|
|
355
|
-
|
|
356
|
-
//console.log('methods
|
|
321
|
+
parseData: async function(data) {
|
|
322
|
+
// console.log('methods parseData', data)
|
|
357
323
|
|
|
358
324
|
let vo = this
|
|
359
325
|
|
|
360
|
-
//
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
})
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
genUseItems: function() {
|
|
371
|
-
//console.log('methods genUseItems')
|
|
372
|
-
|
|
373
|
-
let vo = this
|
|
374
|
-
|
|
375
|
-
//default scrollInfor
|
|
376
|
-
if (vo.scrollInfor === null) {
|
|
377
|
-
vo.scrollInfor = {
|
|
378
|
-
r: 0,
|
|
379
|
-
t: 0,
|
|
380
|
-
b: vo.viewHeightMax,
|
|
381
|
-
ch: vo.itemsHeight,
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
//items
|
|
386
|
-
//let items = vo.items
|
|
387
|
-
let items = gm.get(vo.mmkey)
|
|
388
|
-
|
|
389
|
-
//n
|
|
390
|
-
let n = size(items)
|
|
391
|
-
|
|
392
|
-
//check
|
|
393
|
-
if (n === 0) {
|
|
394
|
-
return
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
//indStart, 該元素區有侵入顯示區
|
|
398
|
-
let indStartActual = binarySearch(items, (ind) => {
|
|
399
|
-
let v = items[ind]
|
|
400
|
-
let dy = vo.scrollInfor.t - (v.y + v.height)
|
|
401
|
-
return dy
|
|
402
|
-
})
|
|
403
|
-
if (indStartActual === null) {
|
|
404
|
-
indStartActual = 0
|
|
405
|
-
}
|
|
406
|
-
let indStart = Math.max(indStartActual - vo.itemsPreload, 0)
|
|
407
|
-
|
|
408
|
-
//indEnd, 該元素區有侵入顯示區
|
|
409
|
-
let indEndActual = binarySearch(items, (ind) => {
|
|
410
|
-
let v = items[ind]
|
|
411
|
-
let dy = vo.scrollInfor.b - v.y
|
|
412
|
-
return dy
|
|
413
|
-
})
|
|
414
|
-
if (indEndActual === null) {
|
|
415
|
-
indEndActual = n - 1
|
|
416
|
-
}
|
|
417
|
-
let indEnd = Math.min(indEndActual + vo.itemsPreload, n - 1)
|
|
418
|
-
|
|
419
|
-
// //kpDelayShow
|
|
420
|
-
// let kpDelayShow = {}
|
|
421
|
-
// each(vo.useItems, (v) => {
|
|
422
|
-
// kpDelayShow[v.index] = true
|
|
423
|
-
// })
|
|
424
|
-
|
|
425
|
-
//useItems
|
|
426
|
-
let useItems = []
|
|
427
|
-
for (let k = indStart; k <= indEnd; k++) {
|
|
428
|
-
let v = {
|
|
429
|
-
...items[k]
|
|
430
|
-
}
|
|
431
|
-
if (v.show && v.filterShow) {
|
|
432
|
-
v.screenY = v.y - vo.scrollInfor.t //換算成實際顯示y向的px位置
|
|
433
|
-
v.nowShow = k >= indStartActual //顯示區下方之預載節點都直接顯示供重算高度
|
|
434
|
-
//v.delayShow = kpDelayShow[k] === true //已經顯示的節點就直接顯示, 否則delayShow=false就是延遲顯示
|
|
435
|
-
useItems.push(v)
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
//save
|
|
440
|
-
vo.useItems = useItems
|
|
326
|
+
//convertToTree
|
|
327
|
+
// console.log('convertToTree1', cloneDeep(data))
|
|
328
|
+
// let items = convertToTree(data, { bindRoot: vo.root })
|
|
329
|
+
let items = await convertToTreeWk(data, { bindRoot: vo.root })
|
|
330
|
+
// console.log('convertToTree2', cloneDeep(items))
|
|
441
331
|
|
|
332
|
+
return items
|
|
442
333
|
},
|
|
443
334
|
|
|
444
|
-
|
|
445
|
-
// console.log('methods
|
|
335
|
+
setData: function(data) {
|
|
336
|
+
// console.log('methods setData', data)
|
|
446
337
|
|
|
447
338
|
let vo = this
|
|
448
339
|
|
|
449
|
-
|
|
450
|
-
//let items = vo.items
|
|
451
|
-
let items = gm.get(vo.mmkey)
|
|
452
|
-
|
|
453
|
-
//n
|
|
454
|
-
let n = size(items)
|
|
340
|
+
async function core() {
|
|
455
341
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
function nodeShow(parent) {
|
|
459
|
-
let n = showPath.length
|
|
460
|
-
if (parent) {
|
|
461
|
-
n -= 1
|
|
462
|
-
}
|
|
463
|
-
for (let i = 0; i < n; i++) {
|
|
464
|
-
if (!get(showPath[i], 'displayChildren', false)) {
|
|
465
|
-
return false
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
return true
|
|
469
|
-
}
|
|
470
|
-
if (vo.changeDisplay) {
|
|
342
|
+
//lock
|
|
343
|
+
vo.lockFromSetData = true
|
|
471
344
|
|
|
472
345
|
//check
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
346
|
+
if (!isarr(data) && !isobj(data)) {
|
|
347
|
+
let msg = 'data is not an array or object'
|
|
348
|
+
//console.log(msg)
|
|
349
|
+
return msg
|
|
476
350
|
}
|
|
477
351
|
|
|
478
|
-
//
|
|
479
|
-
|
|
480
|
-
for (let k = indexClick; k < n; k++) {
|
|
481
|
-
let v = items[k]
|
|
482
|
-
|
|
483
|
-
//有子節點
|
|
484
|
-
if (v.stateChildren === 1) {
|
|
485
|
-
|
|
486
|
-
//push
|
|
487
|
-
showPath.push({
|
|
488
|
-
displayChildren: v.displayChildren,
|
|
489
|
-
level: v.level,
|
|
490
|
-
})
|
|
491
|
-
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
if (k === indexClick) {
|
|
495
|
-
//點擊此節點, 一定是當前可見(v.show=true)才能被點擊
|
|
496
|
-
|
|
497
|
-
//save level
|
|
498
|
-
levelClick = v.level
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
else if (k > indexClick) {
|
|
502
|
-
//之後節點
|
|
503
|
-
|
|
504
|
-
//show
|
|
505
|
-
if (v.stateChildren === 1) {
|
|
506
|
-
|
|
507
|
-
//若有子節點, 則showPath內已添加自己, 需由上一層資訊判斷是否顯示
|
|
508
|
-
v.show = nodeShow(true)
|
|
509
|
-
|
|
510
|
-
}
|
|
511
|
-
else if (v.stateChildren === -1) {
|
|
352
|
+
//convertColors, 解析資料比computed還快, 故需先執行轉換顏色
|
|
353
|
+
vo.convertColors()
|
|
512
354
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
355
|
+
//cloneDeep
|
|
356
|
+
data = cloneDeep(data)
|
|
357
|
+
// console.log('data', cloneDeep(data))
|
|
516
358
|
|
|
517
|
-
|
|
518
|
-
|
|
359
|
+
//parseData, convertToTree轉出預設有root
|
|
360
|
+
let tree = await vo.parseData(data)
|
|
361
|
+
// console.log('parseData tree', cloneDeep(tree))
|
|
519
362
|
|
|
520
|
-
|
|
521
|
-
|
|
363
|
+
// //save
|
|
364
|
+
// //vo.rows = rows
|
|
365
|
+
// gm.set(vo.mmkey, rows)
|
|
522
366
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
//子節點的尾節點
|
|
528
|
-
if (v.stateChildren === -1) {
|
|
529
|
-
|
|
530
|
-
//pop
|
|
531
|
-
showPath.pop()
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
//break
|
|
536
|
-
if (k > indexClick && v.level === levelClick) {
|
|
537
|
-
break
|
|
538
|
-
}
|
|
367
|
+
//wait wt, 組件初始化時會先觸發computed才會有實體元素出現, 故得用waitFun等待
|
|
368
|
+
await waitFun(() => {
|
|
369
|
+
return vo.$refs.wt !== undefined
|
|
370
|
+
}, { timeInterval: 20 })
|
|
539
371
|
|
|
372
|
+
//setData
|
|
373
|
+
if (vo.$refs.wt) { //於async中組件切換時還是有可能消失
|
|
374
|
+
await vo.$refs.wt.setData(tree)
|
|
540
375
|
}
|
|
541
376
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
//check changeHeight
|
|
545
|
-
let wjvc = get(vo, '$refs.wjvc', []) //可能因切換組件導致元素消失
|
|
546
|
-
each(wjvc, (cmp) => {
|
|
547
|
-
let v = cmp.$el
|
|
548
|
-
if (v.getAttribute) {
|
|
549
|
-
let nowShow = v.getAttribute('nowShow')
|
|
550
|
-
if (nowShow) {
|
|
551
|
-
let index = cint(v.getAttribute('index'))
|
|
552
|
-
if (index >= 0 && index < n) {
|
|
553
|
-
let h = v.offsetHeight //元素不要用margin避免計算高度有誤差
|
|
554
|
-
if (items[index].height !== h) {
|
|
555
|
-
items[index].height = h
|
|
556
|
-
vo.changeHeight = true
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
})
|
|
377
|
+
//getLineNumberWidth
|
|
378
|
+
vo.getLineNumberWidth()
|
|
562
379
|
|
|
563
|
-
//check visible, 若組件未顯示(例如display:none)則不視為高度有變更狀態, 避免無限更新
|
|
564
|
-
if (!vo.show) {
|
|
565
|
-
vo.changeHeight = false
|
|
566
380
|
}
|
|
567
381
|
|
|
568
|
-
//
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
for (let k = 0; k < n; k++) {
|
|
575
|
-
let v = items[k]
|
|
576
|
-
if (v.y !== y) {
|
|
577
|
-
v.y = y
|
|
578
|
-
}
|
|
579
|
-
if (v.show && v.filterShow) {
|
|
580
|
-
y += v.height
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
//update itemsHeight
|
|
585
|
-
let itemsHeightTemp = vo.itemsHeight
|
|
586
|
-
if (itemsHeightTemp !== y) {
|
|
587
|
-
itemsHeightTemp = y
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
//check empty
|
|
591
|
-
if (itemsHeightTemp === 0) {
|
|
592
|
-
itemsHeightTemp = 43 //先預算出empty時高度
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
//check same
|
|
596
|
-
let pxLimit = 4 //全部項目高度誤差門檻(px)
|
|
597
|
-
if (Math.abs(vo.itemsHeight - itemsHeightTemp) > pxLimit) { //偵測總項目高度是否與前次差超過pxLimit
|
|
598
|
-
vo.itemsHeight = itemsHeightTemp
|
|
599
|
-
}
|
|
600
|
-
else {
|
|
601
|
-
b = vo.changeFilter //若沒超過門檻pxLimit, 則b直接使用changeFilter, 否則b為包含changeHeight影響導致refresh while持續偵測
|
|
602
|
-
}
|
|
382
|
+
//core
|
|
383
|
+
core()
|
|
384
|
+
.catch((err) => {
|
|
385
|
+
console.log(err)
|
|
386
|
+
})
|
|
387
|
+
.finally(() => {
|
|
603
388
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
vo.changeDisplayIndex = null
|
|
607
|
-
vo.changeHeight = false
|
|
608
|
-
vo.changeFilter = false
|
|
389
|
+
//unlock
|
|
390
|
+
vo.lockFromSetData = false
|
|
609
391
|
|
|
610
|
-
|
|
392
|
+
})
|
|
611
393
|
|
|
612
|
-
return b
|
|
613
394
|
},
|
|
614
395
|
|
|
615
|
-
|
|
616
|
-
//console.log('methods
|
|
396
|
+
getLineNumberWidth: function() {
|
|
397
|
+
// console.log('methods getLineNumberWidth')
|
|
617
398
|
|
|
618
399
|
let vo = this
|
|
619
400
|
|
|
620
|
-
|
|
621
|
-
vo.convertColors()
|
|
401
|
+
async function core() {
|
|
622
402
|
|
|
623
|
-
|
|
624
|
-
|
|
403
|
+
//wait wt, 組件初始化時會先觸發computed才會有實體元素出現, 故得用waitFun等待
|
|
404
|
+
await waitFun(() => {
|
|
405
|
+
return vo.$refs.wt !== undefined
|
|
406
|
+
}, { timeInterval: 20 })
|
|
625
407
|
|
|
626
|
-
|
|
627
|
-
if (
|
|
628
|
-
return
|
|
629
|
-
type: 'num',
|
|
630
|
-
value: toString(v),
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
else if (isString(v)) {
|
|
634
|
-
return {
|
|
635
|
-
type: 'str',
|
|
636
|
-
value: `"${v}"`,
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
else if (isBoolean(v)) {
|
|
640
|
-
let c = 'false'
|
|
641
|
-
if (v) {
|
|
642
|
-
c = 'true'
|
|
643
|
-
}
|
|
644
|
-
return {
|
|
645
|
-
type: 'bol',
|
|
646
|
-
value: c,
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
else if (isFunction(v)) {
|
|
650
|
-
return {
|
|
651
|
-
type: 'fun',
|
|
652
|
-
value: v.toString(),
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
return {
|
|
656
|
-
type: 'default',
|
|
657
|
-
value: v,
|
|
408
|
+
//check
|
|
409
|
+
if (!vo.$refs.wt) { //於async中組件切換時還是有可能消失
|
|
410
|
+
return
|
|
658
411
|
}
|
|
659
|
-
}
|
|
660
412
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
let item = {
|
|
664
|
-
index, //節點指標
|
|
665
|
-
level, //int, 節點層數(縮排)
|
|
666
|
-
paddingLeft: level * 24 + 16, //num, 給予16px放置顯隱icon
|
|
667
|
-
key, //str, 鍵
|
|
668
|
-
keyNumbers, //obj, 鍵值為陣列或物件顯示所含節點數量
|
|
669
|
-
value, //str, 值
|
|
670
|
-
valueColor, //str, 數值顏色, 需依照值型別給予
|
|
671
|
-
valueComma, //bol, 數值後方是否顯示","
|
|
672
|
-
valueTail, //str, 數值後方結尾符號, 僅用於陣列或物件, 供displayChildren=false時額外顯示出結尾符號
|
|
673
|
-
stateChildren, //num, 子節點狀態, 僅陣列或物件才為1, 陣列或物件的尾節點為-1, 其他為0
|
|
674
|
-
displayChildren: vo.defDisplayChildren, //bol, 是否顯示子節點
|
|
675
|
-
show: true, //bol, 是否顯示此節點
|
|
676
|
-
filterShow: true, //bol, 是否過濾後顯示此節點
|
|
677
|
-
height: vo.itemMinHeight, //num, 節點高度, 日後動態更新
|
|
678
|
-
y: index * vo.itemMinHeight, //num, 節點y向位置, 預設先由最小列高計算
|
|
679
|
-
parentIndex, //num, 父節點編號
|
|
680
|
-
// screenY: 0, //num, 節點換算比率後的顯示y向位置
|
|
681
|
-
// nowShow: false, //bol, 預先載入用, 判斷節點是否隸屬於顯示區域內, 可被重算元素高度
|
|
682
|
-
// delayShow: false, //bol, 延遲載入用, 是否顯示節點
|
|
683
|
-
}
|
|
684
|
-
items.push(item)
|
|
685
|
-
}
|
|
413
|
+
//getRows
|
|
414
|
+
let rows = vo.$refs.wt.getRows()
|
|
686
415
|
|
|
687
|
-
|
|
416
|
+
//n, json展開後總列數
|
|
417
|
+
let n = size(rows)
|
|
418
|
+
// console.log('size(rows)', n)
|
|
688
419
|
|
|
689
|
-
|
|
690
|
-
let
|
|
691
|
-
let keyNumbers = {
|
|
692
|
-
type: 'arr',
|
|
693
|
-
n,
|
|
694
|
-
}
|
|
420
|
+
//nn, 列數字元數
|
|
421
|
+
let nn = Math.ceil(Math.log10(n))
|
|
695
422
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
_key = `${key} : [`
|
|
699
|
-
}
|
|
700
|
-
addItem({
|
|
701
|
-
parentIndex,
|
|
702
|
-
level,
|
|
703
|
-
key: _key,
|
|
704
|
-
value: null,
|
|
705
|
-
valueColor: null,
|
|
706
|
-
valueTail: ']',
|
|
707
|
-
keyNumbers,
|
|
708
|
-
valueComma: false,
|
|
709
|
-
stateChildren: 1,
|
|
710
|
-
})
|
|
711
|
-
|
|
712
|
-
// each(value, (v, k) => {
|
|
713
|
-
// pSelf({
|
|
714
|
-
// level: level + 1,
|
|
715
|
-
// key: k,
|
|
716
|
-
// value: v,
|
|
717
|
-
// last: (k + 1) === n,
|
|
718
|
-
// })
|
|
719
|
-
// })
|
|
720
|
-
for (let k = 0; k < n; k++) {
|
|
721
|
-
pSelf({
|
|
722
|
-
parentIndex: selfIndex,
|
|
723
|
-
level: level + 1,
|
|
724
|
-
key: k,
|
|
725
|
-
value: value[k],
|
|
726
|
-
last: (k + 1) === n,
|
|
727
|
-
})
|
|
728
|
-
}
|
|
423
|
+
//lineNumberWidth, 每個字元概估使用寬度8px, 若為111這種就會很窄, 若為999就會較寬, 故多0.5字元數避免過窄
|
|
424
|
+
let lineNumberWidth = (nn + 0.5) * 8
|
|
729
425
|
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
cend = `]`
|
|
733
|
-
}
|
|
734
|
-
addItem({
|
|
735
|
-
parentIndex: selfIndex,
|
|
736
|
-
level,
|
|
737
|
-
key: cend,
|
|
738
|
-
value: null,
|
|
739
|
-
valueColor: null,
|
|
740
|
-
keyNumbers: null,
|
|
741
|
-
valueComma: false,
|
|
742
|
-
stateChildren: -1,
|
|
743
|
-
})
|
|
426
|
+
//save lineNumberWidth
|
|
427
|
+
vo.lineNumberWidth = lineNumberWidth
|
|
744
428
|
|
|
745
429
|
}
|
|
746
430
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
let keyNumbers = {
|
|
752
|
-
type: 'obj',
|
|
753
|
-
n,
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
let _key = `{`
|
|
757
|
-
if (key !== null) {
|
|
758
|
-
_key = `${key} : {`
|
|
759
|
-
}
|
|
760
|
-
addItem({
|
|
761
|
-
parentIndex,
|
|
762
|
-
level,
|
|
763
|
-
key: _key,
|
|
764
|
-
value: null,
|
|
765
|
-
valueColor: null,
|
|
766
|
-
valueTail: '}',
|
|
767
|
-
keyNumbers,
|
|
768
|
-
valueComma: false,
|
|
769
|
-
stateChildren: 1,
|
|
431
|
+
//core
|
|
432
|
+
core()
|
|
433
|
+
.catch((err) => {
|
|
434
|
+
console.log(err)
|
|
770
435
|
})
|
|
771
436
|
|
|
772
|
-
|
|
773
|
-
// pSelf({
|
|
774
|
-
// level: level + 1,
|
|
775
|
-
// key: k,
|
|
776
|
-
// value: v,
|
|
777
|
-
// last: (k + 1) === n,
|
|
778
|
-
// })
|
|
779
|
-
// })
|
|
780
|
-
let kks = Object.keys(value)
|
|
781
|
-
for (let i = 0; i < kks.length; i++) {
|
|
782
|
-
let k = kks[i]
|
|
783
|
-
pSelf({
|
|
784
|
-
parentIndex: selfIndex,
|
|
785
|
-
level: level + 1,
|
|
786
|
-
key: k,
|
|
787
|
-
value: value[k],
|
|
788
|
-
last: (k + 1) === n,
|
|
789
|
-
})
|
|
790
|
-
}
|
|
437
|
+
},
|
|
791
438
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
cend = `}`
|
|
795
|
-
}
|
|
796
|
-
addItem({
|
|
797
|
-
parentIndex: selfIndex,
|
|
798
|
-
level,
|
|
799
|
-
key: cend,
|
|
800
|
-
value: null,
|
|
801
|
-
valueColor: null,
|
|
802
|
-
keyNumbers: null,
|
|
803
|
-
valueComma: false,
|
|
804
|
-
stateChildren: -1,
|
|
805
|
-
})
|
|
439
|
+
genBlock: function(nodeData) {
|
|
440
|
+
// console.log('methods genBlock', nodeData)
|
|
806
441
|
|
|
807
|
-
|
|
442
|
+
// let vo = this
|
|
808
443
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
}
|
|
813
|
-
else if (isobj(value)) {
|
|
814
|
-
pObject({ parentIndex, level, key, value, last })
|
|
815
|
-
}
|
|
816
|
-
else {
|
|
817
|
-
let r = cValue(value)
|
|
818
|
-
let c = vo.useColors[`${r.type}Color`]
|
|
819
|
-
addItem({
|
|
820
|
-
parentIndex,
|
|
821
|
-
level,
|
|
822
|
-
key: `${key} : `,
|
|
823
|
-
value: r.value,
|
|
824
|
-
valueColor: c,
|
|
825
|
-
keyNumbers: null,
|
|
826
|
-
valueComma: !last,
|
|
827
|
-
stateChildren: 0,
|
|
828
|
-
})
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
if (isarr(d)) {
|
|
833
|
-
pArray({
|
|
834
|
-
parentIndex: null,
|
|
835
|
-
level: 0,
|
|
836
|
-
key: null,
|
|
837
|
-
value: d,
|
|
838
|
-
last: true,
|
|
839
|
-
})
|
|
444
|
+
//bk
|
|
445
|
+
let bk = ''
|
|
446
|
+
if (nodeData.type === 'object') {
|
|
447
|
+
bk = `{${nodeData.numOfChilren}}`
|
|
840
448
|
}
|
|
841
|
-
else if (
|
|
842
|
-
|
|
843
|
-
parentIndex: null,
|
|
844
|
-
level: 0,
|
|
845
|
-
key: null,
|
|
846
|
-
value: d,
|
|
847
|
-
last: true,
|
|
848
|
-
})
|
|
849
|
-
}
|
|
850
|
-
else {
|
|
851
|
-
let r = cValue(d)
|
|
852
|
-
let c = vo.useColors[`${r.type}Color`]
|
|
853
|
-
addItem({
|
|
854
|
-
parentIndex: null,
|
|
855
|
-
level: 0,
|
|
856
|
-
key: null,
|
|
857
|
-
value: r.value,
|
|
858
|
-
valueColor: c,
|
|
859
|
-
keyNumbers: null,
|
|
860
|
-
valueComma: null,
|
|
861
|
-
stateChildren: 0,
|
|
862
|
-
})
|
|
449
|
+
else if (nodeData.type === 'array') {
|
|
450
|
+
bk = `[${nodeData.numOfChilren}]`
|
|
863
451
|
}
|
|
864
452
|
|
|
865
|
-
return
|
|
453
|
+
return bk
|
|
866
454
|
},
|
|
867
455
|
|
|
868
|
-
|
|
869
|
-
//console.log('methods
|
|
456
|
+
getKey: function(nodeData) {
|
|
457
|
+
// console.log('methods getKey', nodeData)
|
|
870
458
|
|
|
871
459
|
let vo = this
|
|
872
460
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
//items
|
|
877
|
-
//let items = vo.items
|
|
878
|
-
let items = gm.get(vo.mmkey)
|
|
879
|
-
|
|
880
|
-
//toggle, 先變更displayChildren使頁面icon動畫先更新
|
|
881
|
-
items[item.index].displayChildren = !items[item.index].displayChildren
|
|
882
|
-
|
|
883
|
-
//changeDisplay, changeDisplayIndex
|
|
884
|
-
vo.changeDisplay = true
|
|
885
|
-
vo.changeDisplayIndex = item.index
|
|
886
|
-
|
|
887
|
-
//save toggleInfor
|
|
888
|
-
// vo.toggleInfor = {
|
|
889
|
-
// ...vo.scrollInfor,
|
|
890
|
-
// itemClickY: items[item.index].y, //點擊時, 點擊節點的頂端y座標
|
|
891
|
-
// }
|
|
892
|
-
vo.toggleInfor = cloneDeep(vo.scrollInfor)
|
|
893
|
-
|
|
894
|
-
//refresh
|
|
895
|
-
await vo.refresh('toggleItems')
|
|
896
|
-
|
|
897
|
-
//triggerEvent, 上鎖階段呼叫自行創建的toggleItemsEnd事件
|
|
898
|
-
vo.triggerEvent('after-toggle-items')
|
|
899
|
-
|
|
900
|
-
},
|
|
901
|
-
|
|
902
|
-
afterToggleItems: async function(e) {
|
|
903
|
-
//console.log('methods afterToggleItems', e)
|
|
904
|
-
|
|
905
|
-
let vo = this
|
|
906
|
-
|
|
907
|
-
//check, 無上鎖時不能執行
|
|
908
|
-
if (!vo.toggling) {
|
|
909
|
-
return
|
|
461
|
+
let k = ''
|
|
462
|
+
if (isestr(nodeData.key) || isNumber(nodeData.key)) {
|
|
463
|
+
k = nodeData.key
|
|
910
464
|
}
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
let r = 0
|
|
914
|
-
if (size(vo.useItems) > 0 && vo.itemsHeight > 0 && vo.toggleInfor.ch > 0) { //已有內容資料
|
|
915
|
-
|
|
916
|
-
//內容高度變少, 點擊節點為隱藏動作
|
|
917
|
-
if (vo.itemsHeight < vo.toggleInfor.ch) {
|
|
918
|
-
|
|
919
|
-
//內容高度小於等於當前視窗高度
|
|
920
|
-
if (vo.itemsHeight <= vo.viewHeightMax) {
|
|
921
|
-
r = 0
|
|
922
|
-
//console.log('隱藏, 內容高度小於當前視窗高度, r=', r)
|
|
923
|
-
}
|
|
924
|
-
// else if (vo.toggleInfor.r === 0) {
|
|
925
|
-
// r = vo.toggleInfor.r
|
|
926
|
-
// //console.log('顯示, 原本為置頂故需維持, r=', r)
|
|
927
|
-
// }
|
|
928
|
-
// else if (vo.toggleInfor.r === 1) { //若顯示的節點過多就不會固定畫面於滑鼠點擊處, 不使用
|
|
929
|
-
// r = vo.toggleInfor.r
|
|
930
|
-
// //console.log('顯示, 原本為置底, r=', r)
|
|
931
|
-
// }
|
|
932
|
-
//內容高度大於當前視窗高度
|
|
933
|
-
else {
|
|
934
|
-
r = vo.toggleInfor.t / (vo.itemsHeight - vo.viewHeightMax)
|
|
935
|
-
//console.log('隱藏, 內容高度大於當前視窗高度, r=', r, vo.toggleInfor.t, vo.itemsHeight, vo.viewHeightMax)
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
}
|
|
939
|
-
//內容高度變高或不變, 點擊節點為顯示動作
|
|
940
|
-
else {
|
|
941
|
-
|
|
942
|
-
//內容高度小於等於當前視窗高度
|
|
943
|
-
if (vo.itemsHeight <= vo.viewHeightMax) {
|
|
944
|
-
r = 0
|
|
945
|
-
//console.log('顯示, 內容高度小於當前視窗高度, r=', r)
|
|
946
|
-
}
|
|
947
|
-
// else if (vo.toggleInfor.r === 0) {
|
|
948
|
-
// r = vo.toggleInfor.r
|
|
949
|
-
// //console.log('顯示, 原本為置頂故需維持, r=', r)
|
|
950
|
-
// }
|
|
951
|
-
// else if (vo.toggleInfor.r === 1) { //若顯示的節點過多就不會固定畫面於滑鼠點擊處, 不使用
|
|
952
|
-
// r = vo.toggleInfor.r
|
|
953
|
-
// //console.log('顯示, 原本為置底, r=', r)
|
|
954
|
-
// }
|
|
955
|
-
//內容高度大於當前視窗高度
|
|
956
|
-
else {
|
|
957
|
-
r = vo.toggleInfor.t / (vo.itemsHeight - vo.viewHeightMax)
|
|
958
|
-
//console.log('顯示, 內容高度大於當前視窗高度, r=', r, vo.toggleInfor.t, vo.itemsHeight, vo.viewHeightMax)
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
}
|
|
962
|
-
|
|
465
|
+
if (k === vo.root) {
|
|
466
|
+
k = ''
|
|
963
467
|
}
|
|
964
468
|
|
|
965
|
-
|
|
966
|
-
vo.scrollRatio = r
|
|
967
|
-
|
|
968
|
-
//triggerEvent
|
|
969
|
-
vo.triggerEvent(null)
|
|
970
|
-
|
|
971
|
-
//unluck
|
|
972
|
-
vo.toggling = false
|
|
973
|
-
|
|
469
|
+
return k
|
|
974
470
|
},
|
|
975
471
|
|
|
976
|
-
|
|
977
|
-
//console.log('methods
|
|
978
|
-
|
|
979
|
-
let vo = this
|
|
980
|
-
|
|
981
|
-
//check
|
|
982
|
-
if (vo.mmkey === null) {
|
|
983
|
-
return
|
|
984
|
-
}
|
|
472
|
+
getType: function(nodeData) {
|
|
473
|
+
// console.log('methods getType', nodeData)
|
|
985
474
|
|
|
986
|
-
//
|
|
987
|
-
// if (isEqual(vo.scrollInfor, e)) {
|
|
988
|
-
// return
|
|
989
|
-
// }
|
|
475
|
+
// let vo = this
|
|
990
476
|
|
|
991
|
-
//
|
|
992
|
-
|
|
993
|
-
|
|
477
|
+
//t
|
|
478
|
+
let t = ''
|
|
479
|
+
if (nodeData.type !== 'node') {
|
|
480
|
+
t = nodeData.type
|
|
994
481
|
}
|
|
995
482
|
|
|
996
|
-
|
|
997
|
-
vo.scrollInfor = e
|
|
998
|
-
|
|
999
|
-
//refresh
|
|
1000
|
-
await vo.refresh('changeWsp')
|
|
1001
|
-
|
|
483
|
+
return t
|
|
1002
484
|
},
|
|
1003
485
|
|
|
1004
|
-
|
|
1005
|
-
//console.log('methods
|
|
1006
|
-
|
|
1007
|
-
let vo = this
|
|
486
|
+
getText: function(nodeData) {
|
|
487
|
+
// console.log('methods getText', nodeData)
|
|
1008
488
|
|
|
1009
|
-
//
|
|
1010
|
-
if (vo.mmkey === null) {
|
|
1011
|
-
return
|
|
1012
|
-
}
|
|
489
|
+
// let vo = this
|
|
1013
490
|
|
|
1014
|
-
//
|
|
1015
|
-
|
|
1016
|
-
|
|
491
|
+
//t
|
|
492
|
+
let t = ''
|
|
493
|
+
if (nodeData.type === 'node') {
|
|
494
|
+
t = nodeData.text
|
|
1017
495
|
}
|
|
1018
|
-
vo.filterKeywordsTemp = vo.filterKeywords
|
|
1019
|
-
|
|
1020
|
-
//items
|
|
1021
|
-
//let items = vo.items
|
|
1022
|
-
let items = gm.get(vo.mmkey)
|
|
1023
|
-
|
|
1024
|
-
//n
|
|
1025
|
-
let n = size(items)
|
|
1026
|
-
|
|
1027
|
-
//updateParent
|
|
1028
|
-
function updateParent(k) {
|
|
1029
496
|
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
//往上找parentIndex的父節點, 更改為顯示
|
|
1034
|
-
let pi = items[k].parentIndex
|
|
1035
|
-
while (pi !== null) {
|
|
497
|
+
return t
|
|
498
|
+
},
|
|
1036
499
|
|
|
1037
|
-
|
|
1038
|
-
|
|
500
|
+
getTextTypeColor: function(nodeData) {
|
|
501
|
+
// console.log('methods getTextTypeColor', nodeData)
|
|
1039
502
|
|
|
1040
|
-
|
|
1041
|
-
let selfLevel = items[pi].level
|
|
1042
|
-
for (let j = pi + 1; j < n; j++) { //往後找同level就是結束區塊符號
|
|
1043
|
-
if (items[j].level === selfLevel) {
|
|
1044
|
-
items[j].filterShow = true //可見
|
|
1045
|
-
break
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
503
|
+
let vo = this
|
|
1048
504
|
|
|
1049
|
-
|
|
1050
|
-
|
|
505
|
+
let c = vo.useColors.defaultColor
|
|
506
|
+
if (nodeData.type === 'node') {
|
|
1051
507
|
|
|
508
|
+
//kc
|
|
509
|
+
let kc = ''
|
|
510
|
+
if (isNumber(nodeData.text)) {
|
|
511
|
+
kc = 'numColor'
|
|
1052
512
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
//check
|
|
1057
|
-
if (size(vo.filterKeywords) === 0) {
|
|
1058
|
-
|
|
1059
|
-
//預設可見
|
|
1060
|
-
for (let k = 0; k < n; k++) {
|
|
1061
|
-
items[k].filterShow = true
|
|
513
|
+
else if (isstr(nodeData.text)) {
|
|
514
|
+
kc = 'strColor'
|
|
1062
515
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
else {
|
|
1066
|
-
|
|
1067
|
-
//預設不可見
|
|
1068
|
-
for (let k = 0; k < n; k++) {
|
|
1069
|
-
items[k].filterShow = false
|
|
516
|
+
else if (isbol(nodeData.text)) {
|
|
517
|
+
kc = 'bolColor'
|
|
1070
518
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
let kws = sep(vo.filterKeywords.toLowerCase(), ' ')
|
|
1074
|
-
|
|
1075
|
-
//filter
|
|
1076
|
-
let k = -1
|
|
1077
|
-
while (k < n) {
|
|
1078
|
-
k += 1
|
|
1079
|
-
if (k >= n - 1) {
|
|
1080
|
-
break //可於內圈修改k, 故需檢核
|
|
1081
|
-
}
|
|
1082
|
-
let v = items[k]
|
|
1083
|
-
|
|
1084
|
-
//cKey, cValue
|
|
1085
|
-
let cKey = toString(v.key).toLowerCase()
|
|
1086
|
-
let cValue = toString(v.value).toLowerCase()
|
|
1087
|
-
let b
|
|
1088
|
-
|
|
1089
|
-
//若鍵值(key)含有關建字
|
|
1090
|
-
b = false
|
|
1091
|
-
for (let i = 0; i < size(kws); i++) {
|
|
1092
|
-
let kw = kws[i]
|
|
1093
|
-
if (cKey.indexOf(kw) >= 0) {
|
|
1094
|
-
b = true
|
|
1095
|
-
break
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
//check
|
|
1100
|
-
if (b) {
|
|
1101
|
-
|
|
1102
|
-
//updateParent
|
|
1103
|
-
updateParent(k)
|
|
1104
|
-
|
|
1105
|
-
//self
|
|
1106
|
-
items[k].filterShow = true //可見
|
|
1107
|
-
|
|
1108
|
-
//往後修改為顯示, 直至level一樣改為顯示才停止
|
|
1109
|
-
let keyLevel = v.level
|
|
1110
|
-
while (k < n) {
|
|
1111
|
-
k += 1
|
|
1112
|
-
if (k >= n - 1) {
|
|
1113
|
-
break //可於內圈修改k, 故需檢核
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
//end-block
|
|
1117
|
-
items[k].filterShow = true //可見
|
|
1118
|
-
|
|
1119
|
-
if (items[k].level === keyLevel) {
|
|
1120
|
-
break
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
//continue
|
|
1126
|
-
continue
|
|
1127
|
-
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
//若值(value)含有關建字
|
|
1131
|
-
b = false
|
|
1132
|
-
for (let i = 0; i < size(kws); i++) {
|
|
1133
|
-
let kw = kws[i]
|
|
1134
|
-
if (cValue.indexOf(kw) >= 0) {
|
|
1135
|
-
b = true
|
|
1136
|
-
break
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
//check
|
|
1141
|
-
if (b) {
|
|
1142
|
-
|
|
1143
|
-
//updateParent
|
|
1144
|
-
updateParent(k)
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1147
|
-
|
|
519
|
+
else if (isfun(nodeData.text)) {
|
|
520
|
+
kc = 'funColor'
|
|
1148
521
|
}
|
|
1149
522
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
},
|
|
1156
|
-
|
|
1157
|
-
triggerEvent: function(from) {
|
|
1158
|
-
//console.log('methods triggerEvent', from)
|
|
1159
|
-
|
|
1160
|
-
let vo = this
|
|
523
|
+
//check
|
|
524
|
+
if (haskey(vo.useColors, kc)) {
|
|
525
|
+
c = vo.useColors[kc]
|
|
526
|
+
}
|
|
1161
527
|
|
|
1162
|
-
//t
|
|
1163
|
-
let t = get(vo, '$refs.wpsc.triggerEvent', null)
|
|
1164
|
-
if (t) {
|
|
1165
|
-
t(from)
|
|
1166
528
|
}
|
|
1167
529
|
|
|
530
|
+
return c
|
|
1168
531
|
},
|
|
1169
532
|
|
|
1170
533
|
},
|