@labelbee/lb-components 1.22.0-beta.5 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/annotation/LLMTool/empty.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
- package/dist/assets/annotation/LLMTool/loading.svg.js +1 -1
- package/dist/assets/annotation/audio/clip.svg.js +1 -1
- package/dist/assets/annotation/audio/clipA.svg.js +1 -1
- package/dist/assets/annotation/audio/clipASmall.svg.js +1 -1
- package/dist/assets/annotation/audio/clipSmall.svg.js +1 -1
- package/dist/assets/annotation/audio/delete.svg.js +1 -1
- package/dist/assets/annotation/audio/loop.svg.js +1 -1
- package/dist/assets/annotation/audio/loopA.svg.js +1 -1
- package/dist/assets/annotation/audio/progressDot.svg.js +1 -1
- package/dist/assets/annotation/audio/progressDotA.svg.js +1 -1
- package/dist/assets/annotation/audio/tag.svg.js +1 -1
- package/dist/assets/annotation/audio/tagA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_adapt.svg.js +1 -1
- package/dist/assets/annotation/common/icon_adapt_black.svg.js +1 -1
- package/dist/assets/annotation/common/icon_back.svg.js +1 -1
- package/dist/assets/annotation/common/icon_backA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clear.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clearSmall.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_clear_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_esc.svg.js +1 -1
- package/dist/assets/annotation/common/icon_invalid.svg.js +1 -1
- package/dist/assets/annotation/common/icon_invalid_a.svg.js +1 -1
- package/dist/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
- package/dist/assets/annotation/common/icon_menu_fold.svg.js +1 -1
- package/dist/assets/annotation/common/icon_next.svg.js +1 -1
- package/dist/assets/annotation/common/icon_nextA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_r.svg.js +1 -1
- package/dist/assets/annotation/common/icon_rA.svg.js +1 -1
- package/dist/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
- package/dist/assets/annotation/common/icon_save.svg.js +1 -1
- package/dist/assets/annotation/common/icon_saveA.svg.js +1 -1
- package/dist/assets/annotation/image/brightness.svg.js +1 -1
- package/dist/assets/annotation/image/contrast.svg.js +1 -1
- package/dist/assets/annotation/image/icon_yuantu.svg.js +1 -1
- package/dist/assets/annotation/image/saturation.svg.js +1 -1
- package/dist/assets/annotation/lineTool/icon_line.svg.js +1 -1
- package/dist/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/copy.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/finish.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/patse.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
- package/dist/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
- package/dist/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
- package/dist/assets/annotation/pointTool/icon_point.svg.js +1 -1
- package/dist/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
- package/dist/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
- package/dist/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
- package/dist/assets/annotation/rectTool/icon_rect.svg.js +1 -1
- package/dist/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
- package/dist/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
- package/dist/assets/annotation/video/icon_clip.svg.js +1 -1
- package/dist/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
- package/dist/assets/annotation/video/icon_timePoint.svg.js +1 -1
- package/dist/assets/annotation/video/icon_videoCut.svg.js +1 -1
- package/dist/assets/annotation/video/icon_videoCutting.svg.js +1 -1
- package/dist/assets/attributeIcon/eraser.svg.js +1 -1
- package/dist/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/dist/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
- package/dist/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
- package/dist/assets/attributeIcon/pen.svg.js +1 -1
- package/dist/assets/attributeIcon/pen_a.svg.js +1 -1
- package/dist/assets/attributeIcon/zoomUp.svg.js +1 -1
- package/dist/assets/predictTracking/icon.svg.js +1 -1
- package/dist/assets/toolStyle/icon_border.svg.js +1 -1
- package/dist/assets/toolStyle/icon_borderColor.svg.js +1 -1
- package/dist/assets/toolStyle/icon_defaultSize.svg.js +1 -1
- package/dist/assets/toolStyle/icon_opacityFill.svg.js +1 -1
- package/dist/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
- package/dist/components/pointCloudView/PointCloudContext.js +1 -1
- package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
- package/dist/constant/index.js +1 -1
- package/dist/data/enums/ToolType.js +1 -1
- package/dist/hooks/annotation.js +1 -1
- package/dist/index.css +34 -76
- package/dist/index.js +1 -1
- package/dist/store/annotatedBox/index.js +1 -0
- package/dist/store/annotation/reducer.js +1 -1
- package/dist/store/ctx.js +1 -1
- package/dist/types/components/attributeList/index.d.ts +1 -1
- package/dist/types/components/pointCloudView/PointCloudContext.d.ts +3 -0
- package/dist/types/constant/index.d.ts +0 -4
- package/dist/types/data/enums/ToolType.d.ts +1 -2
- package/dist/types/hooks/annotation.d.ts +0 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/store/annotatedBox/index.d.ts +14 -0
- package/dist/types/store/ctx.d.ts +0 -5
- package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +0 -1
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.d.ts +8 -0
- package/dist/types/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.d.ts +11 -0
- package/dist/types/views/MainView/sidebar/SwitchAttributeList/index.d.ts +2 -3
- package/dist/utils/audio.js +1 -1
- package/dist/views/MainView/index.js +1 -1
- package/dist/views/MainView/sidebar/AnnotationText/index.js +1 -1
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +1 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
- package/dist/views/MainView/sidebar/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
- package/es/App.js +1 -1
- package/es/assets/annotation/LLMTool/empty.svg.js +1 -1
- package/es/assets/annotation/LLMTool/imgFail_cn.svg.js +1 -1
- package/es/assets/annotation/LLMTool/imgFail_en.svg.js +1 -1
- package/es/assets/annotation/LLMTool/loading.svg.js +1 -1
- package/es/assets/annotation/audio/clip.svg.js +1 -1
- package/es/assets/annotation/audio/clipA.svg.js +1 -1
- package/es/assets/annotation/audio/clipASmall.svg.js +1 -1
- package/es/assets/annotation/audio/clipSmall.svg.js +1 -1
- package/es/assets/annotation/audio/delete.svg.js +1 -1
- package/es/assets/annotation/audio/loop.svg.js +1 -1
- package/es/assets/annotation/audio/loopA.svg.js +1 -1
- package/es/assets/annotation/audio/progressDot.svg.js +1 -1
- package/es/assets/annotation/audio/progressDotA.svg.js +1 -1
- package/es/assets/annotation/audio/tag.svg.js +1 -1
- package/es/assets/annotation/audio/tagA.svg.js +1 -1
- package/es/assets/annotation/common/icon_adapt.svg.js +1 -1
- package/es/assets/annotation/common/icon_adapt_black.svg.js +1 -1
- package/es/assets/annotation/common/icon_back.svg.js +1 -1
- package/es/assets/annotation/common/icon_backA.svg.js +1 -1
- package/es/assets/annotation/common/icon_clear.svg.js +1 -1
- package/es/assets/annotation/common/icon_clearSmall.svg.js +1 -1
- package/es/assets/annotation/common/icon_clearSmall_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_clear_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_esc.svg.js +1 -1
- package/es/assets/annotation/common/icon_invalid.svg.js +1 -1
- package/es/assets/annotation/common/icon_invalid_a.svg.js +1 -1
- package/es/assets/annotation/common/icon_left_squareOutlined.svg.js +1 -1
- package/es/assets/annotation/common/icon_menu_fold.svg.js +1 -1
- package/es/assets/annotation/common/icon_next.svg.js +1 -1
- package/es/assets/annotation/common/icon_nextA.svg.js +1 -1
- package/es/assets/annotation/common/icon_r.svg.js +1 -1
- package/es/assets/annotation/common/icon_rA.svg.js +1 -1
- package/es/assets/annotation/common/icon_right_squareOutlined.svg.js +1 -1
- package/es/assets/annotation/common/icon_save.svg.js +1 -1
- package/es/assets/annotation/common/icon_saveA.svg.js +1 -1
- package/es/assets/annotation/image/brightness.svg.js +1 -1
- package/es/assets/annotation/image/contrast.svg.js +1 -1
- package/es/assets/annotation/image/icon_yuantu.svg.js +1 -1
- package/es/assets/annotation/image/saturation.svg.js +1 -1
- package/es/assets/annotation/lineTool/icon_line.svg.js +1 -1
- package/es/assets/annotation/lineTool/icon_line_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/addSvg.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/cancel.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/changePointCloudValid.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/circleSelector.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/circleSelector_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/clearSvg.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/copy.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/coverMode.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/finish.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/highlight.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/highlight_a.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/lassoSelector.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/lassoSelector_a.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/leftArrow.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/nextBox.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/nodata.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/patse.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/prevBox.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/rightArrow.svg.js +1 -0
- package/es/assets/annotation/pointCloudTool/rotate180_black.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/selectAll.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/selectMultiple.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unCoverMode.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttribute.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeForbid.svg.js +1 -1
- package/es/assets/annotation/pointCloudTool/unitAttributeHover.svg.js +1 -1
- package/es/assets/annotation/pointTool/icon_point.svg.js +1 -1
- package/es/assets/annotation/pointTool/icon_point_a.svg.js +1 -1
- package/es/assets/annotation/polygonTool/icon_polygon.svg.js +1 -1
- package/es/assets/annotation/polygonTool/icon_polygon_a.svg.js +1 -1
- package/es/assets/annotation/rectTool/icon_rect.svg.js +1 -1
- package/es/assets/annotation/rectTool/icon_rect_a.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/deleteRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_alttab_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_back_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_cencel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_del_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_down.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_eraser.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_eyeLock_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_forward_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frameNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_frame_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_fullView_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj1.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_kj_h.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_last_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineCont_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineDel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineInsert_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_lineSpecial_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_line_static.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_loupe_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_left_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_middle_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_mouse_right_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_move_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_next_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_noDisplay.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_playPause.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_pointNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_point_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonActive_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonChange_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonCut_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonDel_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonInsert_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonMerge_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_polygonNull_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reform_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_reload_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_save_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_scribble.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_segment.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_speed_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_straightLine_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeEnlarge.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_strokeReduction.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tab_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_tag_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_unGrip_kj.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/icon_up.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/nextRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/preRemark.svg.js +1 -1
- package/es/assets/annotation/toolHotKeyIcon/setValid.svg.js +1 -1
- package/es/assets/annotation/video/icon_clip.svg.js +1 -1
- package/es/assets/annotation/video/icon_keyboard_h.svg.js +1 -1
- package/es/assets/annotation/video/icon_timePoint.svg.js +1 -1
- package/es/assets/annotation/video/icon_videoCut.svg.js +1 -1
- package/es/assets/annotation/video/icon_videoCutting.svg.js +1 -1
- package/es/assets/attributeIcon/eraser.svg.js +1 -1
- package/es/assets/attributeIcon/eraser_a.svg.js +1 -1
- package/es/assets/attributeIcon/icon_eyeLock_a.svg.js +1 -1
- package/es/assets/attributeIcon/icon_eyeLock_h.svg.js +1 -1
- package/es/assets/attributeIcon/pen.svg.js +1 -1
- package/es/assets/attributeIcon/pen_a.svg.js +1 -1
- package/es/assets/attributeIcon/zoomUp.svg.js +1 -1
- package/es/assets/predictTracking/icon.svg.js +1 -1
- package/es/assets/toolStyle/icon_border.svg.js +1 -1
- package/es/assets/toolStyle/icon_borderColor.svg.js +1 -1
- package/es/assets/toolStyle/icon_defaultSize.svg.js +1 -1
- package/es/assets/toolStyle/icon_opacityFill.svg.js +1 -1
- package/es/assets/toolStyle/icon_opacityStroke.svg.js +1 -1
- package/es/components/LLMToolView/index.js +1 -1
- package/es/components/LLMToolView/modelAPIView/index.js +1 -1
- package/es/components/LLMToolView/questionView/components/imgView/index.js +1 -1
- package/es/components/LLMToolView/questionView/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/answerList/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/answerSort/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/scoreGroupButton/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/textEditor/index.js +1 -1
- package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
- package/es/components/LLMToolView/sidebar/index.js +1 -1
- package/es/components/attributeList/components/limitPopover/index.js +1 -1
- package/es/components/audioAnnotate/audioContext/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/LabelDetailPopover/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/clipSidebar/index.js +1 -1
- package/es/components/audioAnnotate/audioSide/labelSidebar/index.js +1 -1
- package/es/components/audioAnnotate/tagResultShow/index.js +1 -1
- package/es/components/audioPlayer/clipRegion/index.js +1 -1
- package/es/components/audioPlayer/clipTip/index.js +1 -1
- package/es/components/audioPlayer/combineTip/index.js +1 -1
- package/es/components/audioPlayer/progressDot/index.js +1 -1
- package/es/components/audioPlayer/zoomSlider/index.js +1 -1
- package/es/components/checkboxList/index.js +1 -1
- package/es/components/colorPalette/index.js +1 -1
- package/es/components/customAntd/IconWithText/index.js +1 -1
- package/es/components/diffMatchPatchComponent/index.js +2 -2
- package/es/components/fileException/FileError.js +1 -1
- package/es/components/fileException/FileInvalid.js +1 -1
- package/es/components/fileException/index.js +1 -1
- package/es/components/invalidPage/index.js +1 -1
- package/es/components/latexEditor/index.js +1 -1
- package/es/components/markdownView/index.js +1 -1
- package/es/components/measureCanvas/index.js +1 -1
- package/es/components/pointCloud2DRectOperationView/index.js +1 -1
- package/es/components/pointCloudView/PointCloud2DSingleView.js +1 -1
- package/es/components/pointCloudView/PointCloud2DView.js +1 -1
- package/es/components/pointCloudView/PointCloud3DView.js +1 -1
- package/es/components/pointCloudView/PointCloudContext.js +1 -1
- package/es/components/pointCloudView/PointCloudInfos.js +1 -1
- package/es/components/pointCloudView/PointCloudSegment.js +1 -1
- package/es/components/pointCloudView/PointCloudSegment2DView.js +1 -1
- package/es/components/pointCloudView/PointCloudSegmentStatus.js +1 -1
- package/es/components/pointCloudView/PointCloudSegmentToolbar.js +1 -1
- package/es/components/pointCloudView/PointCloudTopView.js +1 -1
- package/es/components/pointCloudView/components/HighlightVisible/index.js +1 -1
- package/es/components/pointCloudView/components/PointCloudSizeSlider/index.js +1 -1
- package/es/components/pointCloudView/components/TitleButton/index.js +1 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/es/components/pointCloudView/components/sideAndBackOverView/index.js +1 -1
- package/es/components/pointCloudView/index.js +1 -1
- package/es/components/predictTracking/predictTrackingIcon/index.js +1 -1
- package/es/components/predictTracking/previewResult/index.js +1 -1
- package/es/components/videoAnnotate/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/annotatedList/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/resizableSnippet/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/timeSliceRange/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoClipToolHotkey/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoTimeSlicesOverVideo/index.js +1 -1
- package/es/components/videoAnnotate/videoClipTool/components/videoTrack/index.js +1 -1
- package/es/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptorI18nProvider.js +1 -1
- package/es/components/videoPlayer/VideoTagLayer.js +1 -1
- package/es/components/videoPlayer/VideoTextLayer.js +2 -2
- package/es/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/es/components/videoPlayer/components/controller/index.js +1 -1
- package/es/components/videoPlayer/index.js +1 -1
- package/es/constant/index.js +1 -1
- package/es/data/enums/ToolType.js +1 -1
- package/es/hooks/annotation.js +1 -1
- package/es/hooks/useSafeSate.js +1 -1
- package/es/index.css +34 -76
- package/es/index.js +1 -1
- package/es/store/annotatedBox/index.js +1 -0
- package/es/store/annotation/reducer.js +1 -1
- package/es/store/ctx.js +1 -1
- package/es/utils/audio.js +1 -1
- package/es/views/MainView/LLMLayout/index.js +1 -1
- package/es/views/MainView/annotationOperation/index.js +1 -1
- package/es/views/MainView/annotationTips/index.js +1 -1
- package/es/views/MainView/index.js +1 -1
- package/es/views/MainView/sidebar/AnnotationText/index.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/useOperationList.js +1 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/annotatedBox/index.module.scss.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/batchUpdateModal/index.js +1 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/arrow.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/components/findTrackIDIndex/index.module.scss.js +1 -0
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/ScribbleSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/SwitchAttributeList/index.js +1 -1
- package/es/views/MainView/sidebar/TextAreaFormat/index.js +1 -1
- package/es/views/MainView/sidebar/TextToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/ToolIcons.js +1 -1
- package/es/views/MainView/sidebar/index.js +1 -1
- package/es/views/MainView/toolFooter/AnnotatedAttributes/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterPopover.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/common/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/pointCloud/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/polygon/index.js +1 -1
- package/es/views/MainView/toolFooter/FooterTips/index.js +1 -1
- package/es/views/MainView/toolFooter/HiddenTips/index.js +1 -1
- package/es/views/MainView/toolFooter/PageNumber/index.js +1 -1
- package/es/views/MainView/toolFooter/Pagination.js +1 -1
- package/es/views/MainView/toolFooter/SwitchCuboidBoxIn2DView/index.js +1 -1
- package/es/views/MainView/toolFooter/ZoomController/index.js +1 -1
- package/es/views/MainView/toolFooter/index.js +1 -1
- package/es/views/MainView/toolHeader/ExportData/index.js +1 -1
- package/es/views/MainView/toolHeader/StepSwitch/index.js +1 -1
- package/es/views/MainView/toolHeader/SwitchPattern/index.js +1 -1
- package/es/views/MainView/toolHeader/headerOption/index.js +1 -1
- package/es/views/MainView/toolHeader/index.js +1 -1
- package/package.json +9 -6
- package/dist/components/NLPToolView/index.js +0 -1
- package/dist/components/NLPToolView/textContent/index.js +0 -1
- package/dist/components/NLPToolView/textContent/remarkMask.js +0 -1
- package/dist/components/NLPToolView/utils/index.js +0 -1
- package/dist/types/components/NLPToolView/index.d.ts +0 -15
- package/dist/types/components/NLPToolView/textContent/index.d.ts +0 -18
- package/dist/types/components/NLPToolView/textContent/remarkMask.d.ts +0 -12
- package/dist/types/components/NLPToolView/types.d.ts +0 -75
- package/dist/types/components/NLPToolView/utils/index.d.ts +0 -2
- package/dist/types/views/MainView/NLPLayout/index.d.ts +0 -11
- package/dist/types/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.d.ts +0 -13
- package/dist/types/views/MainView/sidebar/NLPSidebar/index.d.ts +0 -12
- package/dist/types/views/MainView/sidebar/NLPSidebar/indicatorDetermine.d.ts +0 -13
- package/dist/types/views/MainView/toolFooter/FooterTips/ToolHotKey/NLP/index.d.ts +0 -6
- package/dist/views/MainView/NLPLayout/index.js +0 -1
- package/dist/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +0 -1
- package/dist/views/MainView/sidebar/NLPSidebar/index.js +0 -1
- package/dist/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +0 -1
- package/dist/views/MainView/toolFooter/FooterTips/ToolHotKey/NLP/index.js +0 -1
- package/es/components/NLPToolView/index.js +0 -1
- package/es/components/NLPToolView/textContent/index.js +0 -1
- package/es/components/NLPToolView/textContent/remarkMask.js +0 -1
- package/es/components/NLPToolView/utils/index.js +0 -1
- package/es/views/MainView/NLPLayout/index.js +0 -1
- package/es/views/MainView/sidebar/NLPSidebar/NLPAnnotatedList.js +0 -1
- package/es/views/MainView/sidebar/NLPSidebar/index.js +0 -1
- package/es/views/MainView/sidebar/NLPSidebar/indicatorDetermine.js +0 -1
- package/es/views/MainView/toolFooter/FooterTips/ToolHotKey/NLP/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{prefix as n,ESubmitType as R}from"../../../constant/index.js";import A from"../../../hooks/useSize.js";import{ToSubmitFileData as B,ToNextStep as
|
|
1
|
+
import{prefix as n,ESubmitType as R}from"../../../constant/index.js";import A from"../../../hooks/useSize.js";import{ToSubmitFileData as B,ToNextStep as v,loadImgList as Q}from"../../../store/annotation/actionCreators.js";import{LeftOutlined as U}from"@ant-design/icons";import{i18n as $}from"@labelbee/lb-utils";import{Tooltip as W,Button as q}from"antd/es";import L from"classnames";import{last as G}from"lodash";import e,{useReducer as J,useRef as K}from"react";import{useTranslation as T}from"react-i18next";import{connect as M}from"react-redux";import{LabelBeeContext as V,useDispatch as X}from"../../../store/ctx.js";import{store as Y}from"../../../index.js";import Z from"./ExportData/index.js";import ee from"./headerOption/index.js";import te from"./StepSwitch/index.js";import ne from"../../../components/predictTracking/predictTrackingIcon/index.js";import j from"./SwitchPattern/index.js";const w=({disabled:t,imgList:r})=>{const{t:o}=T(),i=()=>{const{dispatch:a,getState:s}=Y;r[0]?a(v(0)):Q(a,s,0).then(l=>{l&&a(v(0))})};return e.createElement(q,{type:"primary",style:{marginLeft:10},onClick:i,disabled:t},o("NextStep"))},oe=({step:t,stepProgress:r,stepList:o,imgList:i})=>{var a;const{t:s}=T(),l=(a=G(o))==null?void 0:a.step;if(o.length<2||t===l)return null;const c=r<1;return c?e.createElement(W,{title:s("StepNotFinishedNotify")},e.createElement("span",null,e.createElement(w,{disabled:c,imgList:i}))):e.createElement(w,{disabled:c,imgList:i})},ae=({goBack:t,exportData:r,header:o,headerName:i,imgList:a,stepProgress:s,stepInfo:l,stepList:c,step:b,annotationEngine:d,hasLangNode:k,hasHeaderOption:C,hasPredictTrackingIcon:P})=>{var u;const y=X(),[,D]=J(m=>m+1,0),p=K(null),f=A(p),O=e.createElement(Z,{exportData:r}),F=()=>{y(B(R.Quit)),t&&t(a)},E=m=>{$.changeLanguage(m),d==null||d.setLang(m),D()},N=$.language,I=(u=f==null?void 0:f.width)!=null?u:window.innerWidth,h=e.createElement(U,{className:`${n}-header__icon`,onClick:F}),g=i?e.createElement("span",{className:`${n}-header__name`},i):"",x=c.length>1&&e.createElement(e.Fragment,null,e.createElement(te,{stepProgress:s}),e.createElement(oe,{step:b,stepProgress:s,stepList:c,imgList:a})),_=C?e.createElement(ee,{stepInfo:l}):null,z=j,H=e.createElement("div",{className:`${n}-header__lang`},e.createElement("span",{className:`${n}-langCN ${N==="cn"?"active":""}`,onClick:()=>E("cn")},"\u4E2D\u6587")," / ",e.createElement("span",{className:`${n}-langEN ${N==="en"?"active":""}`,onClick:()=>E("en")},"En")),S=e.createElement(e.Fragment,null,P&&e.createElement(ne,null),k&&H);return o?typeof o=="function"?e.createElement("div",{className:L(`${n}-header`),ref:p},e.createElement("div",{className:`${n}-header__title`},o({backNode:h,headerNameNode:g,stepListNode:x,headerOptionNode:_,langNode:S,PointCloudSwitchPattern:z}))):o:e.createElement("div",{className:L(`${n}-header`),ref:p},e.createElement("div",{className:`${n}-header__title`},h,g,x,O,e.createElement("div",{id:"operationNode",className:`${n}-header__operationNode`,style:{left:I/2-174/2}},_),e.createElement("div",{className:`${n}-header__titlePlacement`}),e.createElement(j,null),S))},re=t=>{var r;return{imgList:t.annotation.imgList,annotationEngine:t.annotation.annotationEngine,stepProgress:t.annotation.stepProgress,toolName:(r=t.annotation.stepList[t.annotation.step-1])==null?void 0:r.tool,stepList:t.annotation.stepList,stepInfo:t.annotation.stepList[t.annotation.step-1],step:t.annotation.step}};var ie=M(re,null,null,{context:V})(ae);export{ie as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@labelbee/lb-components",
|
|
3
|
-
"version": "1.22.0
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Provide a complete library of annotation components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"es": "./es/index.js",
|
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ant-design/icons": "^4.6.2",
|
|
46
|
-
"@labelbee/lb-annotation": "1.26.0
|
|
47
|
-
"@labelbee/lb-utils": "1.18.0
|
|
46
|
+
"@labelbee/lb-annotation": "1.26.0",
|
|
47
|
+
"@labelbee/lb-utils": "1.18.0",
|
|
48
48
|
"@labelbee/wavesurfer": "1.0.0",
|
|
49
49
|
"@types/react-dom": "^18.2.7",
|
|
50
50
|
"@types/react-transition-group": "^4.4.9",
|
|
51
51
|
"ahooks": "^3.4.0",
|
|
52
52
|
"classnames": "^2.3.0",
|
|
53
53
|
"decimal.js": "^10.4.3",
|
|
54
|
+
"diff-match-patch": "^1.0.5",
|
|
54
55
|
"github-markdown-css": "^5.2.0",
|
|
55
56
|
"lodash": "^4.17.21",
|
|
56
57
|
"postcss-url": "^10.1.3",
|
|
@@ -65,10 +66,10 @@
|
|
|
65
66
|
"redux-actions": "^2.6.5",
|
|
66
67
|
"redux-thunk": "^2.3.0",
|
|
67
68
|
"rehype-katex": "^6.0.3",
|
|
68
|
-
"diff-match-patch": "^1.0.5",
|
|
69
|
-
"remark-math": "^5.1.1",
|
|
70
69
|
"remark-gfm": "^3.0.1",
|
|
71
|
-
"
|
|
70
|
+
"remark-math": "^5.1.1",
|
|
71
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
72
|
+
"zustand": "^4.5.0"
|
|
72
73
|
},
|
|
73
74
|
"peerDependencies": {
|
|
74
75
|
"antd": ">=4.15.0",
|
|
@@ -82,6 +83,8 @@
|
|
|
82
83
|
"@rollup/plugin-eslint": "^8.0.1",
|
|
83
84
|
"@rollup/plugin-image": "^2.0.6",
|
|
84
85
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
86
|
+
"@svgr/core": "^8.1.0",
|
|
87
|
+
"@svgr/rollup": "^8.1.0",
|
|
85
88
|
"@types/diff-match-patch": "^1.0.36",
|
|
86
89
|
"@types/lodash": "^4.14.168",
|
|
87
90
|
"@types/react": "^16.13.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var React=require("react"),reactRedux=require("react-redux"),ctx=require("../../store/ctx.js"),index$3=require("../../constant/index.js"),index$2=require("./textContent/index.js"),reactI18next=require("react-i18next"),index$1=require("../../views/MainView/annotationTips/index.js"),reducer=require("../../store/annotation/reducer.js"),index=require("../../utils/index.js"),data=require("../LLMToolView/utils/data.js"),annotation=require("../../hooks/annotation.js"),lbAnnotation=require("@labelbee/lb-annotation");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,o)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[n]=o,__spreadValues=(e,n)=>{for(var o in n||(n={}))__hasOwnProp.call(n,o)&&__defNormalProp(e,o,n[o]);if(__getOwnPropSymbols)for(var o of __getOwnPropSymbols(n))__propIsEnum.call(n,o)&&__defNormalProp(e,o,n[o]);return e},__spreadProps=(e,n)=>__defProps(e,__getOwnPropDescs(n));const NLPViewCls=`${index$3.prefix}-NLPView`,NLPToolView=e=>{const{annotation:n,checkMode:o,tips:L,showTips:P,remarkLayer:h,remark:w,activeToolPanel:y}=e,{imgIndex:c,imgList:f,stepList:v,step:x}=n,{highlightKey:S,setHighlightKey:O}=React.useContext(ctx.NLPContext),{toolInstanceRef:a}=annotation.useCustomToolInstance(),[g,j]=React.useState(""),[p,D]=React.useState([]),[T,q]=React.useState([{content:""}]),[i,l]=React.useState({id:1,newText:"",indicatorDetermine:{},textAnnotation:[]}),N=React.useMemo(()=>(i==null?void 0:i.textAnnotation)?i.textAnnotation.filter(t=>p.length===0||p.includes(t.attribute)):[],[i,p]);reactI18next.useTranslation();const _=React.useMemo(()=>{var t;if(v&&x){const r=(t=reducer.getStepConfig(v,x))==null?void 0:t.config;return index.jsonParser(r)}},[v,x]);React.useEffect(()=>{var t;if(!f[c])return;const r=(t=f[c])==null?void 0:t.textData;q(r)},[c,_]),React.useEffect(()=>{var t;if(!f[c])return;const r=(t=f[c])!=null?t:{},u=data.getCurrentResultFromResultList(r==null?void 0:r.result);l(u)},[c]),React.useEffect(()=>{a.current.exportData=()=>[[i],{}],a.current.setResult=()=>{},a.current.updateResult=t=>{l(t)},a.current.clearResult=E,a.current.setDefaultAttribute=C,a.current.setHighlightKey=O,a.current.deleteTextAnnotation=k,a.current.setAttributeLockList=R,m()},[i]);const m=()=>{a.current.emit("changeAttributeSidebar"),a.current.emit("changeIndicatorDetermine")},C=t=>{a.current.defaultAttribute=t,j(t),m()},R=t=>{D(t)},E=()=>{l({id:1,newText:"",indicatorDetermine:{},textAnnotation:[]}),m()},k=t=>{l(r=>__spreadProps(__spreadValues({},r),{textAnnotation:r.textAnnotation.filter(u=>u.id!==t)}))},I=t=>{var r;if(t===""||o)return;let u=window.getSelection();const{anchorOffset:d=0,focusOffset:s=0,anchorNode:V,focusNode:$}=u||{};if(V===$){let b=Math.min(d,s),A=Math.max(d,s);if(M(b,A,g,i==null?void 0:i.textAnnotation))return;l(__spreadProps(__spreadValues({},i),{textAnnotation:[...(i==null?void 0:i.textAnnotation)||[],{id:lbAnnotation.uuid(8,62),start:b,end:A,attribute:g,text:t}]})),(r=window.getSelection())==null||r.empty()}},M=(t,r,u,d)=>d==null?void 0:d.some(s=>(s==null?void 0:s.start)===t&&(s==null?void 0:s.end)===r&&(s==null?void 0:s.attribute)===u);return React__default.default.createElement("div",{className:NLPViewCls},React__default.default.createElement("div",{className:`${NLPViewCls}-question`},P===!0&&React__default.default.createElement(index$1,{tips:L}),React__default.default.createElement(index$2,{highlightKey:S,textData:T,checkMode:o,NLPConfig:_,textAnnotation:N,onSelectionChange:I,remarkLayer:h,remark:w,activeToolPanel:y})))},mapStateToProps=e=>({annotation:e.annotation});var NLPToolView$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(NLPToolView);module.exports=NLPToolView$1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var React=require("react"),reactI18next=require("react-i18next"),lbUtils=require("@labelbee/lb-utils"),index=require("../../../constant/index.js"),ahooks=require("ahooks"),_=require("lodash"),lbAnnotation=require("@labelbee/lb-annotation"),styleString=require("../../../constant/styleString.js"),index$1=require("../utils/index.js"),index$2=require("../../../utils/index.js"),remarkMask=require("./remarkMask.js");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React),___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,r,n)=>r in t?__defProp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,__spreadValues=(t,r)=>{for(var n in r||(r={}))__hasOwnProp.call(r,n)&&__defNormalProp(t,n,r[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(r))__propIsEnum.call(r,n)&&__defNormalProp(t,n,r[n]);return t};const NLPViewCls=`${index.prefix}-NLPView`,renderRemarkModal=({remarkLayer:t,remarkStyle:r,setRemarkStyle:n,setRemarkResut:g,remarkResut:E})=>{if(t)return t({style:r,onClose:()=>{var p;n(void 0),g({}),(p=window.getSelection())==null||p.empty()},submitData:E})},TextContent=t=>{const{highlightKey:r,textData:n,lang:g,checkMode:E=!0,NLPConfig:p,onSelectionChange:b,textAnnotation:h,remark:i,activeToolPanel:k}=t,{enableRemark:I,displayRemarkList:f}=i||{},C=k?k!==index.TOOL_PANEL_KEY.Remark:!1,{t:O}=reactI18next.useTranslation(),s=React.useRef(null),y=ahooks.useTextSelection(s),[v,P]=React.useState({}),[w,R]=React.useState(void 0),m=React.useMemo(()=>{var e;return(e=n==null?void 0:n[0])==null?void 0:e.content},[n]),L=React.useMemo(()=>{const e=___default.default.clone(f);return(v==null?void 0:v.start)&&e.push(v),index$1.getIntervals(m,e!=null?e:[],"remarkAnnotations")},[f,v,m]),N=React.useMemo(()=>index$1.getIntervals(m,h!=null?h:[],"annotations"),[h,m]),A=(e="")=>{const l=lbAnnotation.CommonToolUtils.jsonParser(styleString);return lbUtils.toolStyleConverter.getColorByConfig({attribute:e,config:p,style:l})};React.useEffect(()=>{var e;g&&((e=lbUtils.i18n)==null||e.changeLanguage(g))},[]),React.useEffect(()=>{I&&!C?T(y.text):k&&k===index.TOOL_PANEL_KEY.Tool&&(b==null||b(y.text))},[y.text]),React.useEffect(()=>{if(!(i==null?void 0:i.editAuditID))return;const e=f.filter(a=>a.auditID===i.editAuditID)[0],l=e==null?void 0:e.id,o=document.getElementById(l);if(o&&s.current){const a=o.getBoundingClientRect(),u=s.current.getBoundingClientRect(),c=a.right-u.left,d=a.bottom-u.top-o.offsetHeight;c&&d&&R({left:c,top:d})}},[i==null?void 0:i.editAuditID]);const T=e=>{var l;if(e==="")return;let o=window.getSelection();const{anchorOffset:a=0,focusOffset:u=0,anchorNode:c,focusNode:d}=o||{};if(c===d){let j=Math.min(a,u),D=Math.max(a,u);if(y&&(s==null?void 0:s.current)&&o){const S=(l=s.current)==null?void 0:l.getBoundingClientRect(),q=o.getRangeAt(0).getBoundingClientRect(),x={left:q.right-S.left,top:q.top-S.top};x.left&&x.left&&R(x)}const M={id:lbAnnotation.uuid(8,62),start:j,end:D,text:e};P(M)}};return React__default.default.createElement("div",null,React__default.default.createElement("div",{className:`${NLPViewCls}-question-title`},O("textTool")),React__default.default.createElement("div",{className:index$2.classnames({[`${NLPViewCls}-question-content`]:!0}),style:{position:"relative"},onDoubleClick:e=>{e.preventDefault()}},React__default.default.createElement("div",{style:{position:"relative"}},N.map((e,l)=>{var o;const a=___default.default.last(e.annotations);if(a){const u=A(a.attribute),c=(o=e==null?void 0:e.annotations)==null?void 0:o.find(d=>d.id===r);return React__default.default.createElement("span",{style:{backgroundColor:u.valid.stroke,color:c?"white":void 0,padding:"2px 0px"},key:l},e.text)}else return React__default.default.createElement("span",{key:l},e.text)}),(f==null?void 0:f.length)>0&&React__default.default.createElement(remarkMask,{remarkSplitIntervals:L,remark:i}),!C&&renderRemarkModal({remarkLayer:t==null?void 0:t.remarkLayer,setRemarkStyle:R,remarkStyle:w,remarkResut:v,setRemarkResut:P}),React__default.default.createElement("div",{className:`${NLPViewCls}-question-content-mask`,ref:s},m))))},WrapQuestionView=t=>React__default.default.createElement(reactI18next.I18nextProvider,{i18n:lbUtils.i18n},React__default.default.createElement(TextContent,__spreadValues({},t)));module.exports=WrapQuestionView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var _=require("lodash"),React=require("react");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ___default=_interopDefaultLegacy(_),React__default=_interopDefaultLegacy(React),RemarkMask=({remarkSplitIntervals:t,remark:o})=>React__default.default.createElement("div",{style:{position:"absolute",top:0,left:0,backgroundColor:"transparent",color:"transparent"}},t.map((e,r)=>{var l;const a=___default.default.last(e.remarkAnnotations);let n=`2px solid ${((l=e==null?void 0:e.remarkAnnotations)==null?void 0:l.find(d=>(d==null?void 0:d.auditID)===o.hoverAuditID))?"#ffc60a":"#fcdf7e"}`;return(o==null?void 0:o.isShowRemark)||(n=""),a?React__default.default.createElement("span",{style:{borderBottom:n,padding:"2px 0px"},id:a==null?void 0:a.id,key:r},e.text):React__default.default.createElement("span",{key:r},e.text)}));module.exports=RemarkMask;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _=require("lodash");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var ___default=_interopDefaultLegacy(_);const getIntervals=(t,u,o)=>{if(!(t==null?void 0:t.length))return[];const n=___default.default.uniq(___default.default.concat(0,...u.map(e=>[e.start,e.end]),t.length)).sort((e,s)=>e-s),a=[];for(let e=0;e<n.length-1;e++){const s=n[e],r=n[e+1],i=u.filter(l=>l.start>=s&&l.end<=r||s>=l.start&&r<=l.end);a.push({start:s,end:r,[o]:i,text:t.slice(s,r)})}return a};exports.getIntervals=getIntervals;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IRemarkLayer } from './types';
|
|
3
|
-
interface IProps {
|
|
4
|
-
activeToolPanel?: string;
|
|
5
|
-
checkMode?: boolean;
|
|
6
|
-
annotation?: any;
|
|
7
|
-
showTips?: boolean;
|
|
8
|
-
tips?: string;
|
|
9
|
-
remarkLayer?: (value: IRemarkLayer) => void;
|
|
10
|
-
remark: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
}, "annotation">>;
|
|
15
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { INLPToolConfig, ITextData, INLPTextAnnotation, IRemarkLayer } from '../types';
|
|
3
|
-
interface IProps {
|
|
4
|
-
highlightKey?: string;
|
|
5
|
-
textData: ITextData[];
|
|
6
|
-
textAnnotation: INLPTextAnnotation[];
|
|
7
|
-
lang?: string;
|
|
8
|
-
checkMode?: boolean;
|
|
9
|
-
NLPConfig?: INLPToolConfig;
|
|
10
|
-
answerHeaderSlot?: React.ReactDOM | string;
|
|
11
|
-
onSelectionChange?: (text: string) => void;
|
|
12
|
-
remarkLayer?: (values: IRemarkLayer) => void;
|
|
13
|
-
remark?: any;
|
|
14
|
-
isSourceView?: boolean;
|
|
15
|
-
activeToolPanel?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const WrapQuestionView: (props: IProps) => React.JSX.Element;
|
|
18
|
-
export default WrapQuestionView;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file remark mask
|
|
3
|
-
* @author lixinghua <lixinghua_vendor@sensetime.com>
|
|
4
|
-
* @date 2024.01.30
|
|
5
|
-
*/
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { IRemarkInterval } from '../types';
|
|
8
|
-
declare const _default: ({ remarkSplitIntervals, remark, }: {
|
|
9
|
-
remarkSplitIntervals: IRemarkInterval[];
|
|
10
|
-
remark?: any;
|
|
11
|
-
}) => React.JSX.Element;
|
|
12
|
-
export default _default;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { IInfoList } from '@labelbee/lb-utils';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface IndicatorDetermine {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export interface INLPToolConfig {
|
|
8
|
-
indicatorDetermine?: IndicatorDetermine[];
|
|
9
|
-
isTextEdit: boolean;
|
|
10
|
-
textEdit: ITextList[];
|
|
11
|
-
attributeConfigurable: boolean;
|
|
12
|
-
attributeList: IInfoList[];
|
|
13
|
-
}
|
|
14
|
-
export interface ITextList {
|
|
15
|
-
textId?: string;
|
|
16
|
-
title?: string | number;
|
|
17
|
-
tip?: string;
|
|
18
|
-
min?: number;
|
|
19
|
-
max?: number;
|
|
20
|
-
value?: string;
|
|
21
|
-
isFillAnswer?: boolean;
|
|
22
|
-
textControl?: boolean;
|
|
23
|
-
isLaText?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface ITextData {
|
|
26
|
-
content: string;
|
|
27
|
-
}
|
|
28
|
-
export interface INLPResult {
|
|
29
|
-
id: number;
|
|
30
|
-
newText: string;
|
|
31
|
-
indicatorDetermine: any;
|
|
32
|
-
textAnnotation: INLPTextAnnotation[];
|
|
33
|
-
}
|
|
34
|
-
export interface INLPTextAnnotation {
|
|
35
|
-
id: string;
|
|
36
|
-
start: number;
|
|
37
|
-
end: number;
|
|
38
|
-
attribute: string;
|
|
39
|
-
text: string;
|
|
40
|
-
}
|
|
41
|
-
export interface INLPInterval {
|
|
42
|
-
start: number;
|
|
43
|
-
end: number;
|
|
44
|
-
annotations?: INLPTextAnnotation[];
|
|
45
|
-
text: string;
|
|
46
|
-
attribute?: string;
|
|
47
|
-
id?: string;
|
|
48
|
-
}
|
|
49
|
-
export interface ISelectText {
|
|
50
|
-
id?: string;
|
|
51
|
-
start?: number;
|
|
52
|
-
end?: number;
|
|
53
|
-
text?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface IRemarkLayer {
|
|
56
|
-
style: React.CSSProperties | undefined;
|
|
57
|
-
onClose: () => void;
|
|
58
|
-
submitData: ISelectText;
|
|
59
|
-
}
|
|
60
|
-
export interface IRemarkInterval {
|
|
61
|
-
start: number;
|
|
62
|
-
end: number;
|
|
63
|
-
remarkAnnotations?: IRemarkAnnotation[];
|
|
64
|
-
text: string;
|
|
65
|
-
attribute?: string;
|
|
66
|
-
id?: string;
|
|
67
|
-
}
|
|
68
|
-
export interface IRemarkAnnotation {
|
|
69
|
-
auditID: number;
|
|
70
|
-
text: string;
|
|
71
|
-
id: string;
|
|
72
|
-
start: number;
|
|
73
|
-
end: number;
|
|
74
|
-
uuid: string;
|
|
75
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AppProps } from '@/App';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
path: string;
|
|
5
|
-
loading: boolean;
|
|
6
|
-
remarkLayer?: any;
|
|
7
|
-
remark?: any;
|
|
8
|
-
activeToolPanel?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const NLPLayout: React.FC<AppProps & IProps>;
|
|
11
|
-
export default NLPLayout;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IStepInfo } from '@/types/step';
|
|
3
|
-
import { ICustomToolInstance } from '@/hooks/annotation';
|
|
4
|
-
interface IProps {
|
|
5
|
-
toolInstance: ICustomToolInstance;
|
|
6
|
-
stepInfo: IStepInfo;
|
|
7
|
-
checkMode?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const sidebarCls: string;
|
|
10
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
11
|
-
children?: React.ReactNode;
|
|
12
|
-
}, "toolInstance" | "stepInfo">>;
|
|
13
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TagOperation } from '@labelbee/lb-annotation';
|
|
3
|
-
interface IProps {
|
|
4
|
-
imgIndex: number;
|
|
5
|
-
toolInstance: TagOperation;
|
|
6
|
-
checkMode?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const sidebarCls: string;
|
|
9
|
-
declare const _default: import("react-redux").ConnectedComponent<React.FC<IProps>, import("react-redux").Omit<IProps & {
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}, "imgIndex" | "toolInstance">>;
|
|
12
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IStepInfo } from '@/types/step';
|
|
3
|
-
import { ICustomToolInstance } from '@/hooks/annotation';
|
|
4
|
-
import { IFileItem } from '@/types/data';
|
|
5
|
-
interface IProps {
|
|
6
|
-
toolInstance: ICustomToolInstance;
|
|
7
|
-
stepInfo: IStepInfo;
|
|
8
|
-
imgIndex: number;
|
|
9
|
-
checkMode?: boolean;
|
|
10
|
-
imgList: IFileItem[];
|
|
11
|
-
}
|
|
12
|
-
declare const _default: import("react-redux").ConnectedComponent<(props: IProps) => React.JSX.Element | null, import("react-redux").Omit<IProps, "imgIndex" | "imgList" | "toolInstance" | "stepInfo">>;
|
|
13
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var index$1=require("../../../constant/index.js"),es=require("antd/es"),React=require("react"),index$4=require("../sidebar/index.js"),index$3=require("../toolFooter/index.js"),dom=require("../../../utils/dom.js"),index=require("../../../utils/index.js"),ctx=require("../../../store/ctx.js"),index$2=require("../../../components/NLPToolView/index.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const{Sider,Content}=es.Layout,layoutCls=`${index$1.prefix}-layout`,NLPLayout=e=>{var t,a;const[l,i]=React.useState("");return React__default.default.createElement(es.Layout,{className:dom.getClassName("layout","container")},React__default.default.createElement(ctx.NLPContext.Provider,{value:React.useMemo(()=>({highlightKey:l,setHighlightKey:i}),[l])},e==null?void 0:e.leftSider,React__default.default.createElement(Content,{className:index.classnames({[`${layoutCls}__content`]:!0,[`${index$1.prefix}-NLPLayout`]:!0})},React__default.default.createElement(index$2,{checkMode:e.checkMode,showTips:e.showTips,tips:e.tips,remarkLayer:e==null?void 0:e.remarkLayer,remark:e==null?void 0:e.remark,activeToolPanel:e==null?void 0:e.activeToolPanel}),React__default.default.createElement(index$3.default,{style:(t=e.style)==null?void 0:t.footer,mode:e.mode,footer:e==null?void 0:e.footer})),React__default.default.createElement(Sider,{className:`${layoutCls}__side`,width:400,style:{position:"relative"}},React__default.default.createElement(index$4.default,{sider:e==null?void 0:e.sider,checkMode:e==null?void 0:e.checkMode}),(a=e.drawLayerSlot)==null?void 0:a.call(e,{}))))};module.exports=NLPLayout;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),reactRedux=require("react-redux"),StepUtils=require("../../../../utils/StepUtils.js"),reactI18next=require("react-i18next"),ctx=require("../../../../store/ctx.js"),index$1=require("../../../../constant/index.js"),index=require("../../../../utils/index.js"),antd=require("antd"),icons=require("@ant-design/icons");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t));const sidebarCls=`${index$1.prefix}-sidebar`,getAnnotatedList=(e,t)=>{const n=(e==null?void 0:e.attributeList)||[];return t.map(i=>{var s,c;const r=((c=(s=n.filter(u=>u.value===i.attribute))==null?void 0:s[0])==null?void 0:c.key)||"";return __spreadProps(__spreadValues({},i),{label:r})})},NLPAnnotatedList=e=>{var t,n;const[i,s]=React.useState(0),c=React.useRef(null),{toolInstance:r,checkMode:u,stepInfo:v}=e,{t:l}=reactI18next.useTranslation(),m=index.jsonParser(v.config),[_,x]=React.useState("");React.useEffect(()=>(r&&r.on("changeAttributeSidebar",o=>{s(a=>a+1)}),()=>{r==null||r.unbindAll("changeAttributeSidebar")}),[r,c]);const[f]=r.exportData(),g=(n=(t=f==null?void 0:f[0])==null?void 0:t.textAnnotation)!=null?n:[],d=getAnnotatedList(m,g),b=o=>{let a=o===_?"":o;r==null||r.setHighlightKey(a),x(a)},P=o=>{r==null||r.deleteTextAnnotation(o.id)};return(d==null?void 0:d.length)===0?null:React__default.default.createElement("div",{className:`${sidebarCls}__content__NLPList`},d.map((o,a)=>{const L=_===o.id;return React__default.default.createElement("div",{key:a,className:index.classnames({[`${sidebarCls}__content__NLPList__item`]:!0,[`${sidebarCls}__content__NLPList__item__active`]:L}),onClick:()=>b(o.id)},React__default.default.createElement("span",{className:`${sidebarCls}__content__NLPList__item__text`},React__default.default.createElement(antd.Tooltip,{title:o.text,overlayInnerStyle:{maxHeight:"400px",overflow:"auto"}},React__default.default.createElement("span",null,`${o.label||l("NoAttribute")}\uFF0C${l("textTool")}\uFF1A${o.text}`))),!u&&React__default.default.createElement(antd.Popconfirm,{title:l("DeleteCommentConfirm"),placement:"topRight",okText:l("Confirm"),cancelText:l("Cancel"),getPopupContainer:p=>p.parentElement,onConfirm:()=>P(o),overlayClassName:`${index$1.prefix}-pop-confirm`},React__default.default.createElement(icons.CloseOutlined,{className:`${sidebarCls}-pop-remove`,onClick:p=>{p.stopPropagation()}})))}))},mapStateToProps=e=>{var t,n;const i=StepUtils.getCurrentStepInfo((t=e.annotation)==null?void 0:t.step,(n=e.annotation)==null?void 0:n.stepList);return{toolInstance:e.annotation.toolInstance,stepInfo:i}};var NLPAnnotatedList$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(NLPAnnotatedList);exports.default=NLPAnnotatedList$1,exports.sidebarCls=sidebarCls;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),reactRedux=require("react-redux"),ctx=require("../../../../store/ctx.js"),index$2=require("../../../../constant/index.js"),index$1=require("../SwitchAttributeList/index.js"),index=require("../GeneralOperation/index.js"),NLPAnnotatedList=require("./NLPAnnotatedList.js"),indicatorDetermine=require("./indicatorDetermine.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const NlpAttributeList=({setAttributeLockList:e,checkMode:t})=>t?null:React__default.default.createElement(index$1,{attributeLockChange:e}),sidebarCls=`${index$2.prefix}-sidebar`,NLPSidebar=({toolInstance:e,checkMode:t})=>{const r=a=>{e==null||e.setAttributeLockList(a)};return React__default.default.createElement("div",{className:`${sidebarCls}`},React__default.default.createElement("div",{className:`${sidebarCls}__content`},React__default.default.createElement(indicatorDetermine,{checkMode:t}),React__default.default.createElement(NlpAttributeList,{setAttributeLockList:r,checkMode:t}),React__default.default.createElement(NLPAnnotatedList.default,{checkMode:t})),!t&&React__default.default.createElement(index.default,{hideValidity:!0}))};function mapStateToProps(e){return{toolInstance:e.annotation.toolInstance,imgIndex:e.annotation.imgIndex}}var NLPToolSidebar=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(NLPSidebar);exports.default=NLPToolSidebar,exports.sidebarCls=sidebarCls;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var React=require("react"),reactRedux=require("react-redux"),StepUtils=require("../../../../utils/StepUtils.js"),reactI18next=require("react-i18next"),ctx=require("../../../../store/ctx.js"),index=require("../../../../utils/index.js"),index$1=require("../../../../components/LLMToolView/sidebar/components/determineGroup/index.js"),data=require("../../../../components/LLMToolView/utils/data.js");function _interopDefaultLegacy(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var React__default=_interopDefaultLegacy(React),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,n)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,__spreadValues=(t,e)=>{for(var n in e||(e={}))__hasOwnProp.call(e,n)&&__defNormalProp(t,n,e[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(e))__propIsEnum.call(e,n)&&__defNormalProp(t,n,e[n]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e));const IndicatorDetermineList=t=>{const{toolInstance:e,stepInfo:n,checkMode:u,imgIndex:c,imgList:d}=t,[m]=e.exportData(),[i,_]=React.useState(m==null?void 0:m[0]),{t:g}=reactI18next.useTranslation(),[y,x]=React.useState(0);React.useEffect(()=>{var o;if(!d[c])return;const r=(o=d[c])!=null?o:{},a=data.getCurrentResultFromResultList((r==null?void 0:r.result)||"");_(a)},[c,d]),React.useEffect(()=>(e&&e.on("changeIndicatorDetermine",o=>{const[r]=e.exportData();_(r==null?void 0:r[0]),x(a=>a+1)}),()=>{e==null||e.unbindAll("changeIndicatorDetermine")}),[e]);const I=index.jsonParser(n.config),{indicatorDetermine:p}=I,D=o=>{var r;const{value:a,key:l}=o;if(l){const v={[l]:a},s=(r=i==null?void 0:i.indicatorDetermine)!=null?r:{},f=__spreadProps(__spreadValues({},i),{indicatorDetermine:__spreadValues(__spreadValues({},s),v)});e.updateResult(f)}};if((p==null?void 0:p.length)>0){const o=p.filter(r=>r==null?void 0:r.label);return React__default.default.createElement("div",{style:{padding:"12px",marginBottom:"12px"}},React__default.default.createElement("div",{style:{fontSize:"16px",fontWeight:500,lineHeight:"46px"}},g("IndicatorJudgment")),React__default.default.createElement("div",{style:{maxHeight:"400px",overflow:"auto"}},o.map((r,a)=>{var l;const{label:v,value:s}=r;return React__default.default.createElement(index$1,{selectValue:(l=i==null?void 0:i.indicatorDetermine)==null?void 0:l[s],title:v,updateValue:f=>{D({key:s,value:f})},key:a,isDisableAll:u})})))}return null},mapStateToProps=t=>{var e,n;const u=StepUtils.getCurrentStepInfo((e=t.annotation)==null?void 0:e.step,(n=t.annotation)==null?void 0:n.stepList);return{toolInstance:t.annotation.toolInstance,stepInfo:u,imgIndex:t.annotation.imgIndex,imgList:t.annotation.imgList}};var IndicatorDetermineList$1=reactRedux.connect(mapStateToProps,null,null,{context:ctx.LabelBeeContext})(IndicatorDetermineList);module.exports=IndicatorDetermineList$1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var index=require("../common/index.js");const NLPShortCutTable=[index.backward,index.forward];module.exports=NLPShortCutTable;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import f,{useContext as U,useState as p,useMemo as L,useEffect as A}from"react";import{connect as X}from"react-redux";import{LabelBeeContext as Y,NLPContext as Z}from"../../store/ctx.js";import{prefix as tt}from"../../constant/index.js";import et from"./textContent/index.js";import{useTranslation as nt}from"react-i18next";import ot from"../../views/MainView/annotationTips/index.js";import{getStepConfig as rt}from"../../store/annotation/reducer.js";import{jsonParser as it}from"../../utils/index.js";import{getCurrentResultFromResultList as at}from"../LLMToolView/utils/data.js";import{useCustomToolInstance as st}from"../../hooks/annotation.js";import{uuid as ct}from"@labelbee/lb-annotation";var lt=Object.defineProperty,ut=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,T=(o,e,r)=>e in o?lt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,y=(o,e)=>{for(var r in e||(e={}))mt.call(e,r)&&T(o,r,e[r]);if(O)for(var r of O(e))ft.call(e,r)&&T(o,r,e[r]);return o},j=(o,e)=>ut(o,dt(e));const D=`${tt}-NLPView`,pt=o=>{const{annotation:e,checkMode:r,tips:S,showTips:N,remarkLayer:C,remark:R,activeToolPanel:V}=o,{imgIndex:l,imgList:m,stepList:x,step:v}=e,{highlightKey:k,setHighlightKey:E}=U(Z),{toolInstanceRef:i}=st(),[P,I]=p(""),[g,M]=p([]),[K,$]=p([{content:""}]),[a,u]=p({id:1,newText:"",indicatorDetermine:{},textAnnotation:[]}),B=L(()=>(a==null?void 0:a.textAnnotation)?a.textAnnotation.filter(t=>g.length===0||g.includes(t.attribute)):[],[a,g]);nt();const _=L(()=>{var t;if(x&&v){const n=(t=rt(x,v))==null?void 0:t.config;return it(n)}},[x,v]);A(()=>{var t;if(!m[l])return;const n=(t=m[l])==null?void 0:t.textData;$(n)},[l,_]),A(()=>{var t;if(!m[l])return;const n=(t=m[l])!=null?t:{},c=at(n==null?void 0:n.result);u(c)},[l]),A(()=>{i.current.exportData=()=>[[a],{}],i.current.setResult=()=>{},i.current.updateResult=t=>{u(t)},i.current.clearResult=F,i.current.setDefaultAttribute=H,i.current.setHighlightKey=E,i.current.deleteTextAnnotation=Q,i.current.setAttributeLockList=q,w()},[a]);const w=()=>{i.current.emit("changeAttributeSidebar"),i.current.emit("changeIndicatorDetermine")},H=t=>{i.current.defaultAttribute=t,I(t),w()},q=t=>{M(t)},F=()=>{u({id:1,newText:"",indicatorDetermine:{},textAnnotation:[]}),w()},Q=t=>{u(n=>j(y({},n),{textAnnotation:n.textAnnotation.filter(c=>c.id!==t)}))},W=t=>{var n;if(t===""||r)return;let c=window.getSelection();const{anchorOffset:d=0,focusOffset:s=0,anchorNode:G,focusNode:J}=c||{};if(G===J){let b=Math.min(d,s),h=Math.max(d,s);if(z(b,h,P,a==null?void 0:a.textAnnotation))return;u(j(y({},a),{textAnnotation:[...(a==null?void 0:a.textAnnotation)||[],{id:ct(8,62),start:b,end:h,attribute:P,text:t}]})),(n=window.getSelection())==null||n.empty()}},z=(t,n,c,d)=>d==null?void 0:d.some(s=>(s==null?void 0:s.start)===t&&(s==null?void 0:s.end)===n&&(s==null?void 0:s.attribute)===c);return f.createElement("div",{className:D},f.createElement("div",{className:`${D}-question`},N===!0&&f.createElement(ot,{tips:S}),f.createElement(et,{highlightKey:k,textData:K,checkMode:r,NLPConfig:_,textAnnotation:B,onSelectionChange:W,remarkLayer:C,remark:R,activeToolPanel:V})))},xt=o=>({annotation:o.annotation});var vt=X(xt,null,null,{context:Y})(pt);export{vt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i,{useRef as F,useState as L,useMemo as C,useEffect as E}from"react";import{I18nextProvider as G,useTranslation as J}from"react-i18next";import{i18n as T,toolStyleConverter as X}from"@labelbee/lb-utils";import{TOOL_PANEL_KEY as j,prefix as Z}from"../../../constant/index.js";import{useTextSelection as tt}from"ahooks";import A from"lodash";import{uuid as et,CommonToolUtils as nt}from"@labelbee/lb-annotation";import ot from"../../../constant/styleString.js";import{getIntervals as D}from"../utils/index.js";import{classnames as rt}from"../../../utils/index.js";import lt from"./remarkMask.js";var it=Object.defineProperty,M=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,B=(e,o,n)=>o in e?it(e,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[o]=n,ct=(e,o)=>{for(var n in o||(o={}))at.call(o,n)&&B(e,n,o[n]);if(M)for(var n of M(o))st.call(o,n)&&B(e,n,o[n]);return e};const P=`${Z}-NLPView`,ut=({remarkLayer:e,remarkStyle:o,setRemarkStyle:n,setRemarkResut:g,remarkResut:S})=>{if(e)return e({style:o,onClose:()=>{var k;n(void 0),g({}),(k=window.getSelection())==null||k.empty()},submitData:S})},mt=e=>{const{highlightKey:o,textData:n,lang:g,checkMode:S=!0,NLPConfig:k,onSelectionChange:b,textAnnotation:R,remark:s,activeToolPanel:h}=e,{enableRemark:V,displayRemarkList:f}=s||{},w=h?h!==j.Remark:!1,{t:$}=J(),c=F(null),y=tt(c),[p,I]=L({}),[q,_]=L(void 0),v=C(()=>{var t;return(t=n==null?void 0:n[0])==null?void 0:t.content},[n]),K=C(()=>{const t=A.clone(f);return(p==null?void 0:p.start)&&t.push(p),D(v,t!=null?t:[],"remarkAnnotations")},[f,p,v]),H=C(()=>D(v,R!=null?R:[],"annotations"),[R,v]),Q=(t="")=>{const a=nt.jsonParser(ot);return X.getColorByConfig({attribute:t,config:k,style:a})};E(()=>{var t;g&&((t=T)==null||t.changeLanguage(g))},[]),E(()=>{V&&!w?U(y.text):h&&h===j.Tool&&(b==null||b(y.text))},[y.text]),E(()=>{if(!(s==null?void 0:s.editAuditID))return;const t=f.filter(l=>l.auditID===s.editAuditID)[0],a=t==null?void 0:t.id,r=document.getElementById(a);if(r&&c.current){const l=r.getBoundingClientRect(),u=c.current.getBoundingClientRect(),m=l.right-u.left,d=l.bottom-u.top-r.offsetHeight;m&&d&&_({left:m,top:d})}},[s==null?void 0:s.editAuditID]);const U=t=>{var a;if(t==="")return;let r=window.getSelection();const{anchorOffset:l=0,focusOffset:u=0,anchorNode:m,focusNode:d}=r||{};if(m===d){let W=Math.min(l,u),Y=Math.max(l,u);if(y&&(c==null?void 0:c.current)&&r){const O=(a=c.current)==null?void 0:a.getBoundingClientRect(),N=r.getRangeAt(0).getBoundingClientRect(),x={left:N.right-O.left,top:N.top-O.top};x.left&&x.left&&_(x)}const z={id:et(8,62),start:W,end:Y,text:t};I(z)}};return i.createElement("div",null,i.createElement("div",{className:`${P}-question-title`},$("textTool")),i.createElement("div",{className:rt({[`${P}-question-content`]:!0}),style:{position:"relative"},onDoubleClick:t=>{t.preventDefault()}},i.createElement("div",{style:{position:"relative"}},H.map((t,a)=>{var r;const l=A.last(t.annotations);if(l){const u=Q(l.attribute),m=(r=t==null?void 0:t.annotations)==null?void 0:r.find(d=>d.id===o);return i.createElement("span",{style:{backgroundColor:u.valid.stroke,color:m?"white":void 0,padding:"2px 0px"},key:a},t.text)}else return i.createElement("span",{key:a},t.text)}),(f==null?void 0:f.length)>0&&i.createElement(lt,{remarkSplitIntervals:K,remark:s}),!w&&ut({remarkLayer:e==null?void 0:e.remarkLayer,setRemarkStyle:_,remarkStyle:q,remarkResut:p,setRemarkResut:I}),i.createElement("div",{className:`${P}-question-content-mask`,ref:c},v))))},dt=e=>i.createElement(G,{i18n:T},i.createElement(mt,ct({},e)));export{dt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import s from"lodash";import r from"react";var c=({remarkSplitIntervals:d,remark:o})=>r.createElement("div",{style:{position:"absolute",top:0,left:0,backgroundColor:"transparent",color:"transparent"}},d.map((t,n)=>{var a;const e=s.last(t.remarkAnnotations);let l=`2px solid ${((a=t==null?void 0:t.remarkAnnotations)==null?void 0:a.find(i=>(i==null?void 0:i.auditID)===o.hoverAuditID))?"#ffc60a":"#fcdf7e"}`;return(o==null?void 0:o.isShowRemark)||(l=""),e?r.createElement("span",{style:{borderBottom:l,padding:"2px 0px"},id:e==null?void 0:e.id,key:n},t.text):r.createElement("span",{key:n},t.text)}));export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import a from"lodash";const h=(l,i,c)=>{if(!(l==null?void 0:l.length))return[];const n=a.uniq(a.concat(0,...i.map(t=>[t.start,t.end]),l.length)).sort((t,s)=>t-s),e=[];for(let t=0;t<n.length-1;t++){const s=n[t],o=n[t+1],d=i.filter(r=>r.start>=s&&r.end<=o||s>=r.start&&o<=r.end);e.push({start:s,end:o,[c]:d,text:l.slice(s,o)})}return e};export{h as getIntervals};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{prefix as a}from"../../../constant/index.js";import{Layout as n}from"antd/es";import t,{useState as c,useMemo as d}from"react";import s from"../sidebar/index.js";import u from"../toolFooter/index.js";import{getClassName as f}from"../../../utils/dom.js";import{classnames as v}from"../../../utils/index.js";import{NLPContext as y}from"../../../store/ctx.js";import h from"../../../components/NLPToolView/index.js";const{Sider:L,Content:x}=n,r=`${a}-layout`,N=e=>{var o,l;const[i,m]=c("");return t.createElement(n,{className:f("layout","container")},t.createElement(y.Provider,{value:d(()=>({highlightKey:i,setHighlightKey:m}),[i])},e==null?void 0:e.leftSider,t.createElement(x,{className:v({[`${r}__content`]:!0,[`${a}-NLPLayout`]:!0})},t.createElement(h,{checkMode:e.checkMode,showTips:e.showTips,tips:e.tips,remarkLayer:e==null?void 0:e.remarkLayer,remark:e==null?void 0:e.remark,activeToolPanel:e==null?void 0:e.activeToolPanel}),t.createElement(u,{style:(o=e.style)==null?void 0:o.footer,mode:e.mode,footer:e==null?void 0:e.footer})),t.createElement(L,{className:`${r}__side`,width:400,style:{position:"relative"}},t.createElement(s,{sider:e==null?void 0:e.sider,checkMode:e==null?void 0:e.checkMode}),(l=e.drawLayerSlot)==null?void 0:l.call(e,{}))))};export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import i,{useState as g,useRef as E,useEffect as $}from"react";import{connect as S}from"react-redux";import j from"../../../../utils/StepUtils.js";import{useTranslation as I}from"react-i18next";import{LabelBeeContext as w}from"../../../../store/ctx.js";import{prefix as P}from"../../../../constant/index.js";import{jsonParser as T,classnames as D}from"../../../../utils/index.js";import{Tooltip as R,Popconfirm as F}from"antd";import{CloseOutlined as H}from"@ant-design/icons";var k=Object.defineProperty,K=Object.defineProperties,U=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,b=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t)=>{for(var n in t||(t={}))B.call(t,n)&&b(e,n,t[n]);if(x)for(var n of x(t))M.call(t,n)&&b(e,n,t[n]);return e},q=(e,t)=>K(e,U(t));const l=`${P}-sidebar`,z=(e,t)=>{const n=(e==null?void 0:e.attributeList)||[];return t.map(s=>{var p,u;const o=((u=(p=n.filter(m=>m.value===s.attribute))==null?void 0:p[0])==null?void 0:u.key)||"";return q(V({},s),{label:o})})},G=e=>{var t,n;const[s,p]=g(0),u=E(null),{toolInstance:o,checkMode:m,stepInfo:h}=e,{t:c}=I(),L=T(h.config),[f,y]=g("");$(()=>(o&&o.on("changeAttributeSidebar",r=>{p(a=>a+1)}),()=>{o==null||o.unbindAll("changeAttributeSidebar")}),[o,u]);const[v]=o.exportData(),C=(n=(t=v==null?void 0:v[0])==null?void 0:t.textAnnotation)!=null?n:[],_=z(L,C),N=r=>{let a=r===f?"":r;o==null||o.setHighlightKey(a),y(a)},O=r=>{o==null||o.deleteTextAnnotation(r.id)};return(_==null?void 0:_.length)===0?null:i.createElement("div",{className:`${l}__content__NLPList`},_.map((r,a)=>{const A=f===r.id;return i.createElement("div",{key:a,className:D({[`${l}__content__NLPList__item`]:!0,[`${l}__content__NLPList__item__active`]:A}),onClick:()=>N(r.id)},i.createElement("span",{className:`${l}__content__NLPList__item__text`},i.createElement(R,{title:r.text,overlayInnerStyle:{maxHeight:"400px",overflow:"auto"}},i.createElement("span",null,`${r.label||c("NoAttribute")}\uFF0C${c("textTool")}\uFF1A${r.text}`))),!m&&i.createElement(F,{title:c("DeleteCommentConfirm"),placement:"topRight",okText:c("Confirm"),cancelText:c("Cancel"),getPopupContainer:d=>d.parentElement,onConfirm:()=>O(r),overlayClassName:`${P}-pop-confirm`},i.createElement(H,{className:`${l}-pop-remove`,onClick:d=>{d.stopPropagation()}})))}))},J=e=>{var t,n;const s=j.getCurrentStepInfo((t=e.annotation)==null?void 0:t.step,(n=e.annotation)==null?void 0:n.stepList);return{toolInstance:e.annotation.toolInstance,stepInfo:s}};var Q=S(J,null,null,{context:w})(G);export{Q as default,l as sidebarCls};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import{connect as a}from"react-redux";import{LabelBeeContext as s}from"../../../../store/ctx.js";import{prefix as m}from"../../../../constant/index.js";import l from"../SwitchAttributeList/index.js";import c from"../GeneralOperation/index.js";import u from"./NLPAnnotatedList.js";import d from"./indicatorDetermine.js";const L=({setAttributeLockList:t,checkMode:r})=>r?null:e.createElement(l,{attributeLockChange:t}),n=`${m}-sidebar`,p=({toolInstance:t,checkMode:r})=>{const i=o=>{t==null||t.setAttributeLockList(o)};return e.createElement("div",{className:`${n}`},e.createElement("div",{className:`${n}__content`},e.createElement(d,{checkMode:r}),e.createElement(L,{setAttributeLockList:i,checkMode:r}),e.createElement(u,{checkMode:r})),!r&&e.createElement(c,{hideValidity:!0}))};function f(t){return{toolInstance:t.annotation.toolInstance,imgIndex:t.annotation.imgIndex}}var b=a(f,null,null,{context:s})(p);export{b as default,n as sidebarCls};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import c,{useState as D,useEffect as I}from"react";import{connect as j}from"react-redux";import h from"../../../../utils/StepUtils.js";import{useTranslation as R}from"react-i18next";import{LabelBeeContext as S}from"../../../../store/ctx.js";import{jsonParser as E}from"../../../../utils/index.js";import V from"../../../../components/LLMToolView/sidebar/components/determineGroup/index.js";import{getCurrentResultFromResultList as C}from"../../../../components/LLMToolView/utils/data.js";var T=Object.defineProperty,M=Object.defineProperties,k=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,P=(t,e,n)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,g=(t,e)=>{for(var n in e||(e={}))A.call(e,n)&&P(t,n,e[n]);if(y)for(var n of y(e))B.call(e,n)&&P(t,n,e[n]);return t},G=(t,e)=>M(t,k(e));const H=t=>{const{toolInstance:e,stepInfo:n,checkMode:u,imgIndex:p,imgList:d}=t,[_]=e.exportData(),[a,x]=D(_==null?void 0:_[0]),{t:L}=R(),[F,O]=D(0);I(()=>{var o;if(!d[p])return;const r=(o=d[p])!=null?o:{},i=C((r==null?void 0:r.result)||"");x(i)},[p,d]),I(()=>(e&&e.on("changeIndicatorDetermine",o=>{const[r]=e.exportData();x(r==null?void 0:r[0]),O(i=>i+1)}),()=>{e==null||e.unbindAll("changeIndicatorDetermine")}),[e]);const b=E(n.config),{indicatorDetermine:m}=b,w=o=>{var r;const{value:i,key:l}=o;if(l){const f={[l]:i},s=(r=a==null?void 0:a.indicatorDetermine)!=null?r:{},v=G(g({},a),{indicatorDetermine:g(g({},s),f)});e.updateResult(v)}};if((m==null?void 0:m.length)>0){const o=m.filter(r=>r==null?void 0:r.label);return c.createElement("div",{style:{padding:"12px",marginBottom:"12px"}},c.createElement("div",{style:{fontSize:"16px",fontWeight:500,lineHeight:"46px"}},L("IndicatorJudgment")),c.createElement("div",{style:{maxHeight:"400px",overflow:"auto"}},o.map((r,i)=>{var l;const{label:f,value:s}=r;return c.createElement(V,{selectValue:(l=a==null?void 0:a.indicatorDetermine)==null?void 0:l[s],title:f,updateValue:v=>{w({key:s,value:v})},key:i,isDisableAll:u})})))}return null},U=t=>{var e,n;const u=h.getCurrentStepInfo((e=t.annotation)==null?void 0:e.step,(n=t.annotation)==null?void 0:n.stepList);return{toolInstance:t.annotation.toolInstance,stepInfo:u,imgIndex:t.annotation.imgIndex,imgList:t.annotation.imgList}};var z=j(U,null,null,{context:S})(H);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{backward as o,forward as r}from"../common/index.js";const a=[o,r];export{a as default};
|