@antscorp/antsomi-ui 1.3.2-beta.5 → 1.3.2-beta.7
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/688be4ec34a228a3d51c.png +1 -0
- package/dist/7bd6d6407df2d867ce2f.svg +1 -0
- package/dist/index.js +1 -1
- package/dist/types/node_modules/react-markdown/lib/complex-types.d.ts +22 -0
- package/dist/types/src/components/atoms/Button/Button.stories.d.ts +2 -2
- package/dist/types/src/components/atoms/Button/index.d.ts +1 -1
- package/dist/types/src/components/atoms/Message/Message.stories.d.ts +2 -2
- package/dist/types/src/components/atoms/Notification/Notification.stories.d.ts +2 -2
- package/dist/types/src/components/icons/BlockIcon.d.ts +1 -0
- package/dist/types/src/components/icons/BranchIcon.d.ts +1 -0
- package/dist/types/src/components/icons/CirclePlusIcon.d.ts +1 -0
- package/dist/types/src/components/icons/CopyIcon.d.ts +1 -0
- package/dist/types/src/components/icons/DragIcon.d.ts +1 -0
- package/dist/types/src/components/icons/FlagIcon.d.ts +1 -0
- package/dist/types/src/components/icons/PlusIcon.d.ts +1 -0
- package/dist/types/src/components/icons/SubdirectoryIcon.d.ts +1 -0
- package/dist/types/src/components/icons/SubtractionIcon.d.ts +1 -0
- package/dist/types/src/components/icons/index.d.ts +9 -0
- package/dist/types/src/components/molecules/ColorSetting/styled.d.ts +1 -1
- package/dist/types/src/components/molecules/IconSelection/index.d.ts +1 -0
- package/dist/types/src/components/molecules/IconSelection/styled.d.ts +1 -1
- package/dist/types/src/components/molecules/SurveyFlowChart/SurveyFlowChart.stories.d.ts +5 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/AddNodeButton/index.d.ts +9 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/AddNodeButton/styled.d.ts +1 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/BlockNode/index.d.ts +8 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/BlockNode/styled.d.ts +3 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/BranchNode/index.d.ts +8 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/BranchNode/styled.d.ts +21 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/ChildBlockNode/index.d.ts +9 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/ChildBlockNode/styled.d.ts +7 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/Line/index.d.ts +10 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/PlainNode/index.d.ts +8 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/PlainNode/styled.d.ts +2 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/components/SortableItem/index.d.ts +10 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/components/SortableOverlay/index.d.ts +6 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/components/SortableOverlay/styled.d.ts +1 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/components/index.d.ts +2 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/index.d.ts +10 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/Zoom/index.d.ts +15 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/Zoom/styled.d.ts +1 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/index.d.ts +7 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/styled.d.ts +9 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/components/utils.d.ts +46 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/constant.d.ts +6 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/contexts/index.d.ts +12 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/dataExample.d.ts +5 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/hooks/index.d.ts +1 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/hooks/useMousePosition.d.ts +4 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/index.d.ts +5 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/styled.d.ts +2 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/type.d.ts +45 -0
- package/dist/types/src/components/molecules/SurveyFlowChart/utils.d.ts +92 -0
- package/dist/types/src/components/molecules/index.d.ts +1 -0
- package/dist/types/src/components/organism/Help/styled.d.ts +1 -1
- package/package.json +8 -3
- package/CHANGELOG.md +0 -688
- package/dist/33b65403c460f2d4423b.svg +0 -87
- package/dist/4a824e811d4678e0e3a2.png +0 -0
- package/dist/9468534045e0fef49315.png +0 -0
- package/dist/bfb9cf6473c43ea3c384.png +0 -0
- package/dist/c74e9d6a9ac4f04cfd3d.png +0 -0
- package/dist/ff7db9ff05a910761543.png +0 -0
- package/dist/types/components/atoms/Alert/index.d.ts +0 -4
- package/dist/types/components/atoms/Alert/index.stories.d.ts +0 -12
- package/dist/types/components/atoms/Button/Button.d.ts +0 -1
- package/dist/types/components/atoms/Button/Button.stories.d.ts +0 -32
- package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/types/components/atoms/Button/index.d.ts +0 -10
- package/dist/types/components/atoms/Button/test.d.ts +0 -3
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +0 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +0 -16
- package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/types/components/atoms/Checkbox/index.d.ts +0 -1
- package/dist/types/components/atoms/Divider/Divider.d.ts +0 -1
- package/dist/types/components/atoms/Divider/Divider.stories.d.ts +0 -8
- package/dist/types/components/atoms/Divider/__tests__/Divider.test.d.ts +0 -1
- package/dist/types/components/atoms/Divider/index.d.ts +0 -1
- package/dist/types/components/atoms/DividerPure/DividerPure.d.ts +0 -10
- package/dist/types/components/atoms/DividerPure/index.d.ts +0 -1
- package/dist/types/components/atoms/DividerPure/styled.d.ts +0 -1
- package/dist/types/components/atoms/Input/Input.d.ts +0 -14
- package/dist/types/components/atoms/Input/Input.stories.d.ts +0 -12
- package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/types/components/atoms/Input/index.d.ts +0 -1
- package/dist/types/components/atoms/Input/styled.d.ts +0 -11
- package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +0 -6
- package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +0 -16
- package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +0 -1
- package/dist/types/components/atoms/InputNumber/index.d.ts +0 -1
- package/dist/types/components/atoms/Message/index.stories.d.ts +0 -12
- package/dist/types/components/atoms/Popover/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/atoms/Popover/index.d.ts +0 -4
- package/dist/types/components/atoms/Popover/index.stories.d.ts +0 -49
- package/dist/types/components/atoms/Popover/styled.d.ts +0 -4
- package/dist/types/components/atoms/Radio/Radio.d.ts +0 -1
- package/dist/types/components/atoms/Radio/Radio.stories.d.ts +0 -17
- package/dist/types/components/atoms/Radio/__tests__/Radio.test.d.ts +0 -1
- package/dist/types/components/atoms/Radio/index.d.ts +0 -7
- package/dist/types/components/atoms/RequiredLabel/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/atoms/RequiredLabel/index.d.ts +0 -7
- package/dist/types/components/atoms/RequiredLabel/styled.d.ts +0 -2
- package/dist/types/components/atoms/ScrollBox/index.d.ts +0 -9
- package/dist/types/components/atoms/Slider/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/atoms/Slider/index.d.ts +0 -5
- package/dist/types/components/atoms/Slider/index.stories.d.ts +0 -10
- package/dist/types/components/atoms/Slider/styled.d.ts +0 -7
- package/dist/types/components/atoms/Space/Space.d.ts +0 -3
- package/dist/types/components/atoms/Space/Space.stories.d.ts +0 -12
- package/dist/types/components/atoms/Space/index.d.ts +0 -1
- package/dist/types/components/atoms/Spin/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/atoms/Spin/index.d.ts +0 -10
- package/dist/types/components/atoms/Spin/styled.d.ts +0 -1
- package/dist/types/components/atoms/Switch/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/atoms/Switch/index.d.ts +0 -6
- package/dist/types/components/atoms/Tag/Tag.d.ts +0 -1
- package/dist/types/components/atoms/Tag/Tag.stories.d.ts +0 -12
- package/dist/types/components/atoms/Tag/index.d.ts +0 -1
- package/dist/types/components/atoms/Text/index.d.ts +0 -10
- package/dist/types/components/atoms/Text/index.stories.d.ts +0 -6
- package/dist/types/components/atoms/Text/styled.d.ts +0 -7
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +0 -1
- package/dist/types/components/atoms/Tooltip/Tooltip.stories.d.ts +0 -14
- package/dist/types/components/atoms/Tooltip/index.d.ts +0 -1
- package/dist/types/components/atoms/Typography/Text.d.ts +0 -1
- package/dist/types/components/atoms/Typography/Typography.stories.d.ts +0 -11
- package/dist/types/components/atoms/Typography/index.d.ts +0 -1
- package/dist/types/components/atoms/index.d.ts +0 -22
- package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +0 -10
- package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +0 -5
- package/dist/types/components/common/ConfigProvider/index.d.ts +0 -1
- package/dist/types/components/common/index.d.ts +0 -1
- package/dist/types/components/icons/ArrowGrowIcon.d.ts +0 -1
- package/dist/types/components/icons/AudioRecordIcon.d.ts +0 -1
- package/dist/types/components/icons/BugIcon.d.ts +0 -1
- package/dist/types/components/icons/CameraIcon.d.ts +0 -1
- package/dist/types/components/icons/CaptureIcon.d.ts +0 -1
- package/dist/types/components/icons/CheckSlimIcon.d.ts +0 -1
- package/dist/types/components/icons/CloseIcon.d.ts +0 -3
- package/dist/types/components/icons/CommentIcon.d.ts +0 -1
- package/dist/types/components/icons/EventIcon.d.ts +0 -3
- package/dist/types/components/icons/FreeDrawIcon.d.ts +0 -1
- package/dist/types/components/icons/GPTIcon.d.ts +0 -1
- package/dist/types/components/icons/GPTIconV2.d.ts +0 -1
- package/dist/types/components/icons/GPTIconV3.d.ts +0 -1
- package/dist/types/components/icons/HighlightIcon.d.ts +0 -1
- package/dist/types/components/icons/IdeaIcon.d.ts +0 -1
- package/dist/types/components/icons/InvisibleIcon.d.ts +0 -1
- package/dist/types/components/icons/MuteIcon.d.ts +0 -1
- package/dist/types/components/icons/OpenUrlIcon.d.ts +0 -1
- package/dist/types/components/icons/PauseIcon.d.ts +0 -1
- package/dist/types/components/icons/PlaneIcon.d.ts +0 -1
- package/dist/types/components/icons/RequestIcon.d.ts +0 -1
- package/dist/types/components/icons/StopRecordIcon.d.ts +0 -1
- package/dist/types/components/icons/UserIcon.d.ts +0 -1
- package/dist/types/components/icons/VerticalDotsIcon.d.ts +0 -1
- package/dist/types/components/icons/WarningIcon.d.ts +0 -1
- package/dist/types/components/icons/index.d.ts +0 -25
- package/dist/types/components/index.d.ts +0 -4
- package/dist/types/components/molecules/Alert/Alert.d.ts +0 -1
- package/dist/types/components/molecules/Alert/Alert.stories.d.ts +0 -21
- package/dist/types/components/molecules/Alert/index.d.ts +0 -1
- package/dist/types/components/molecules/AlignSetting/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/AlignSetting/index.d.ts +0 -19
- package/dist/types/components/molecules/AlignSetting/styled.d.ts +0 -1
- package/dist/types/components/molecules/AlignSetting/utils.d.ts +0 -3
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +0 -15
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +0 -29
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +0 -16
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +0 -1
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +0 -12
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +0 -15
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +0 -3
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +0 -1
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +0 -7
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +0 -10
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +0 -41
- package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +0 -5
- package/dist/types/components/molecules/CaptureScreen/index.d.ts +0 -1
- package/dist/types/components/molecules/CaptureScreen/styled.d.ts +0 -26
- package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +0 -54
- package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +0 -54
- package/dist/types/components/molecules/CaptureScreen/types.d.ts +0 -108
- package/dist/types/components/molecules/CaptureScreen/utils.d.ts +0 -13
- package/dist/types/components/molecules/Cascader/Cascader.d.ts +0 -1
- package/dist/types/components/molecules/Cascader/Cascader.stories.d.ts +0 -37
- package/dist/types/components/molecules/Cascader/index.d.ts +0 -1
- package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +0 -3
- package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
- package/dist/types/components/molecules/ChatBox/MessageItem.d.ts +0 -5
- package/dist/types/components/molecules/ChatBox/constants.d.ts +0 -6
- package/dist/types/components/molecules/ChatBox/index.d.ts +0 -1
- package/dist/types/components/molecules/ChatBox/styled.d.ts +0 -10
- package/dist/types/components/molecules/ChatBox/types.d.ts +0 -32
- package/dist/types/components/molecules/ColorPicker/ChromePicker/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/ChromePicker/index.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/ChromePicker/styled.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/CustomPicker/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/CustomPicker/index.d.ts +0 -2
- package/dist/types/components/molecules/ColorPicker/CustomPicker/styled.d.ts +0 -5
- package/dist/types/components/molecules/ColorPicker/SketchPicker/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/SketchPicker/index.d.ts +0 -10
- package/dist/types/components/molecules/ColorPicker/SketchPicker/styled.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/ColorPicker/index.d.ts +0 -13
- package/dist/types/components/molecules/ColorPicker/styled.d.ts +0 -1
- package/dist/types/components/molecules/ColorSetting/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/ColorSetting/index.d.ts +0 -14
- package/dist/types/components/molecules/ColorSetting/styled.d.ts +0 -13
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +0 -8
- package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +0 -4
- package/dist/types/components/molecules/DatePicker/__tests__/DatePicker.test.d.ts +0 -1
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +0 -28
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +0 -5
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +0 -53
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +0 -3
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +0 -7
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +0 -14
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +0 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +0 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +0 -9
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +0 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +0 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +0 -17
- package/dist/types/components/molecules/DatePicker/index.d.ts +0 -3
- package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +0 -1
- package/dist/types/components/molecules/Dropdown/Dropdown.stories.d.ts +0 -23
- package/dist/types/components/molecules/Dropdown/index.d.ts +0 -1
- package/dist/types/components/molecules/EdgeSetting/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/EdgeSetting/index.d.ts +0 -39
- package/dist/types/components/molecules/EdgeSetting/styled.d.ts +0 -3
- package/dist/types/components/molecules/IconSelection/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/IconSelection/constants.d.ts +0 -6
- package/dist/types/components/molecules/IconSelection/index.d.ts +0 -12
- package/dist/types/components/molecules/IconSelection/styled.d.ts +0 -14
- package/dist/types/components/molecules/InputNumber/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/InputNumber/index.d.ts +0 -9
- package/dist/types/components/molecules/InputNumber/styled.d.ts +0 -8
- package/dist/types/components/molecules/InputSearch/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/InputSearch/index.d.ts +0 -7
- package/dist/types/components/molecules/InputSearch/styled.d.ts +0 -1
- package/dist/types/components/molecules/Modal/Modal.d.ts +0 -1
- package/dist/types/components/molecules/Modal/Modal.stories.d.ts +0 -28
- package/dist/types/components/molecules/Modal/index.d.ts +0 -1
- package/dist/types/components/molecules/Modal/styled.d.ts +0 -16
- package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +0 -6
- package/dist/types/components/molecules/PopupDraggable/index.d.ts +0 -1
- package/dist/types/components/molecules/PopupDraggable/styled.d.ts +0 -5
- package/dist/types/components/molecules/PopupDraggable/types.d.ts +0 -15
- package/dist/types/components/molecules/RadioGroup/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/RadioGroup/index.d.ts +0 -7
- package/dist/types/components/molecules/RadioGroup/styled.d.ts +0 -3
- package/dist/types/components/molecules/Select/Select.d.ts +0 -15
- package/dist/types/components/molecules/Select/Select.stories.d.ts +0 -28
- package/dist/types/components/molecules/Select/Test.d.ts +0 -3
- package/dist/types/components/molecules/Select/index.d.ts +0 -2
- package/dist/types/components/molecules/Select/styled.d.ts +0 -4
- package/dist/types/components/molecules/SettingWrapper/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/SettingWrapper/index.d.ts +0 -13
- package/dist/types/components/molecules/SettingWrapper/styled.d.ts +0 -5
- package/dist/types/components/molecules/SliderWithInputNumber/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/SliderWithInputNumber/index.d.ts +0 -11
- package/dist/types/components/molecules/SliderWithInputNumber/styled.d.ts +0 -1
- package/dist/types/components/molecules/Tabs/Tabs.d.ts +0 -1
- package/dist/types/components/molecules/Tabs/index.d.ts +0 -1
- package/dist/types/components/molecules/UploadImage/MediaIcon.d.ts +0 -2
- package/dist/types/components/molecules/UploadImage/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/molecules/UploadImage/index.d.ts +0 -33
- package/dist/types/components/molecules/UploadImage/styled.d.ts +0 -13
- package/dist/types/components/molecules/index.d.ts +0 -22
- package/dist/types/components/organism/Help/Help.d.ts +0 -5
- package/dist/types/components/organism/Help/constants.d.ts +0 -140
- package/dist/types/components/organism/Help/index.d.ts +0 -1
- package/dist/types/components/organism/Help/styled.d.ts +0 -81
- package/dist/types/components/organism/Help/types.d.ts +0 -67
- package/dist/types/components/organism/Help/utils.d.ts +0 -15
- package/dist/types/components/organism/PositionSetting/__tests__/index.test.d.ts +0 -1
- package/dist/types/components/organism/PositionSetting/config.d.ts +0 -10
- package/dist/types/components/organism/PositionSetting/index.d.ts +0 -15
- package/dist/types/components/organism/PositionSetting/styled.d.ts +0 -1
- package/dist/types/components/organism/PositionSetting/types.d.ts +0 -10
- package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +0 -18
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +0 -11
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +0 -0
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +0 -1
- package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +0 -75
- package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +0 -1
- package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +0 -1
- package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +0 -1
- package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +0 -1
- package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +0 -11
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +0 -12
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +0 -1
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +0 -3
- package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +0 -4
- package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +0 -2
- package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +0 -11
- package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +0 -17
- package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +0 -4
- package/dist/types/components/organism/Table/Table.d.ts +0 -1
- package/dist/types/components/organism/Table/Table.stories.d.ts +0 -39
- package/dist/types/components/organism/Table/index.d.ts +0 -2
- package/dist/types/components/organism/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts +0 -2
- package/dist/types/constants/keyCode.d.ts +0 -387
- package/dist/types/constants/storybook.d.ts +0 -11
- package/dist/types/constants/theme.d.ts +0 -12
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/useDebounce.d.ts +0 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/types/locales/i18n.d.ts +0 -73
- package/dist/types/locales/translations.d.ts +0 -37
- package/dist/types/locales/types.d.ts +0 -15
- package/dist/types/models/SavedImage.d.ts +0 -32
- package/dist/types/models/Upload.d.ts +0 -32
- package/dist/types/models/model.d.ts +0 -8
- package/dist/types/services/MediaTemplateDesign/UploadFile/index.d.ts +0 -6
- package/dist/types/services/Ticket.d.ts +0 -67
- package/dist/types/services/constants.d.ts +0 -20
- package/dist/types/services/index.d.ts +0 -9
- package/dist/types/stories/components/TableApiTypeTag/index.d.ts +0 -6
- package/dist/types/stories/components/index.d.ts +0 -1
- package/dist/types/test.d.ts +0 -14
- package/dist/types/types/index.d.ts +0 -6
- package/dist/types/utils/color.d.ts +0 -10
- package/dist/types/utils/common.d.ts +0 -47
- package/dist/types/utils/handleError.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -3
- package/dist/types/utils/loadable.d.ts +0 -7
- package/dist/types/utils/web.d.ts +0 -10
- /package/dist/{1a69688fb6f3d353be6b.png → public/icons/8d4b7f99c706464161e377ad92c16626.png} +0 -0
- /package/dist/{4f873001a3769df8f982.svg → public/icons/f044bd910efe471eab411d1a144b489b.svg} +0 -0
- /package/dist/types/{components → src/components}/atoms/Switch/styled.d.ts +0 -0
- /package/dist/types/{components → src/components}/molecules/Modal/Loadable.d.ts +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode, ComponentType, ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { Position } from 'unist';
|
|
3
|
+
import type { Element } from 'hast';
|
|
4
|
+
export type ReactMarkdownProps = {
|
|
5
|
+
node: Element;
|
|
6
|
+
children: ReactNode[];
|
|
7
|
+
/**
|
|
8
|
+
* Passed when `options.rawSourcePos` is given
|
|
9
|
+
*/
|
|
10
|
+
sourcePosition?: Position;
|
|
11
|
+
/**
|
|
12
|
+
* Passed when `options.includeElementIndex` is given
|
|
13
|
+
*/
|
|
14
|
+
index?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Passed when `options.includeElementIndex` is given
|
|
17
|
+
*/
|
|
18
|
+
siblingCount?: number;
|
|
19
|
+
};
|
|
20
|
+
export type NormalComponents = {
|
|
21
|
+
[TagName in keyof JSX.IntrinsicElements]: keyof JSX.IntrinsicElements | ComponentType<ComponentPropsWithoutRef<TagName> & ReactMarkdownProps>;
|
|
22
|
+
};
|
|
@@ -5,7 +5,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
|
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
7
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
-
htmlType?: "button" | "
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
10
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
11
11
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -16,7 +16,7 @@ export declare const Default: ComponentStory<React.ForwardRefExoticComponent<Par
|
|
|
16
16
|
target?: string | undefined;
|
|
17
17
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
18
18
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
19
|
-
htmlType?: "button" | "
|
|
19
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
21
21
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
22
22
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -4,7 +4,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<Partial<{
|
|
|
4
4
|
target?: string | undefined;
|
|
5
5
|
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
6
6
|
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
7
|
-
htmlType?: "button" | "
|
|
7
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
8
8
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
9
9
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
10
10
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -5,7 +5,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
|
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
7
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
-
htmlType?: "button" | "
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
10
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
11
11
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -16,7 +16,7 @@ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Parti
|
|
|
16
16
|
target?: string | undefined;
|
|
17
17
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
18
18
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
19
|
-
htmlType?: "button" | "
|
|
19
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
21
21
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
22
22
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -5,7 +5,7 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Partial<{
|
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
7
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
-
htmlType?: "button" | "
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
9
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
10
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
11
11
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -16,7 +16,7 @@ export declare const Basic: ComponentStory<React.ForwardRefExoticComponent<Parti
|
|
|
16
16
|
target?: string | undefined;
|
|
17
17
|
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
18
18
|
} & import("antd/es/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
19
|
-
htmlType?: "button" | "
|
|
19
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
21
21
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & React.RefAttributes<HTMLElement>> & {
|
|
22
22
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BlockIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BranchIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CirclePlusIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CopyIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DragIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FlagIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PlusIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SubdirectoryIcon: (props: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SubtractionIcon: (props: any) => JSX.Element;
|
|
@@ -23,3 +23,12 @@ export { OpenUrlIcon } from './OpenUrlIcon';
|
|
|
23
23
|
export { BugIcon } from './BugIcon';
|
|
24
24
|
export { IdeaIcon } from './IdeaIcon';
|
|
25
25
|
export { RequestIcon } from './RequestIcon';
|
|
26
|
+
export { BlockIcon } from './BlockIcon';
|
|
27
|
+
export { BranchIcon } from './BranchIcon';
|
|
28
|
+
export { DragIcon } from './DragIcon';
|
|
29
|
+
export { FlagIcon } from './FlagIcon';
|
|
30
|
+
export { CirclePlusIcon } from './CirclePlusIcon';
|
|
31
|
+
export { SubdirectoryIcon } from './SubdirectoryIcon';
|
|
32
|
+
export { PlusIcon } from './PlusIcon';
|
|
33
|
+
export { CopyIcon } from './CopyIcon';
|
|
34
|
+
export { SubtractionIcon } from './SubtractionIcon';
|
|
@@ -5,7 +5,7 @@ export declare const ButtonPreset: import("styled-components").StyledComponent<i
|
|
|
5
5
|
target?: string | undefined;
|
|
6
6
|
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
7
7
|
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
8
|
-
htmlType?: "button" | "
|
|
8
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
9
9
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
10
10
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
11
11
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -6,7 +6,7 @@ export declare const CustomButton: import("styled-components").StyledComponent<i
|
|
|
6
6
|
target?: string | undefined;
|
|
7
7
|
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
8
8
|
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
9
|
-
htmlType?: "button" | "
|
|
9
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
10
10
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
11
11
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
12
12
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.NamedExoticComponent<import("./type").FlowChartProps>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<React.NamedExoticComponent<import("./type").FlowChartProps>>;
|
package/dist/types/src/components/molecules/SurveyFlowChart/components/AddNodeButton/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { AddNodeButtonProps } from '../../type';
|
|
3
|
+
export declare const MenuItem: React.FC<MenuItemProps>;
|
|
4
|
+
interface MenuItemProps {
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const AddNodeButton: React.FC<AddNodeButtonProps>;
|
|
9
|
+
export {};
|
package/dist/types/src/components/molecules/SurveyFlowChart/components/AddNodeButton/styled.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenuItemStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BlockNodeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const BlockNodeStyled: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements | import("react").ComponentType<any>, any, {}, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface BranchNodeWrapperProps {
|
|
2
|
+
isChild?: boolean;
|
|
3
|
+
isExpanded?: boolean;
|
|
4
|
+
amountBranch?: number;
|
|
5
|
+
}
|
|
6
|
+
interface LaneProps {
|
|
7
|
+
amountChild?: number;
|
|
8
|
+
maxDepth?: number;
|
|
9
|
+
}
|
|
10
|
+
interface BranchWrapperProps {
|
|
11
|
+
amountBranch?: number;
|
|
12
|
+
isExpanded?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const BranchWrapper: import("styled-components").StyledComponent<"div", any, BranchWrapperProps, never>;
|
|
15
|
+
export declare const BranchNodeStyled: import("styled-components").StyledComponent<"div", any, BranchNodeWrapperProps, never>;
|
|
16
|
+
export declare const BranchNodeItem: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const BranchesWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
export declare const LaneWrapper: import("styled-components").StyledComponent<"div", any, LaneProps, never>;
|
|
19
|
+
export declare const BlockMoreInfoBranch: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
+
export declare const ButtonExpandStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
21
|
+
export {};
|
package/dist/types/src/components/molecules/SurveyFlowChart/components/ChildBlockNode/styled.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ChildBlockWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const ChildNodeWrapper: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements | import("react").ComponentType<any>, any, {}, any>;
|
|
4
|
+
export declare const LineBack: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
offsetLeft: number;
|
|
6
|
+
nodeWidth: number;
|
|
7
|
+
}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { type UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
interface SortableItemProps {
|
|
4
|
+
id: UniqueIdentifier;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
zoomSize?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const SortableItem: React.FC<SortableItemProps>;
|
|
9
|
+
export declare const DragHandleIcon: () => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DragOverlayWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
package/dist/types/src/components/molecules/SurveyFlowChart/components/SortableList/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Node } from '../../type';
|
|
3
|
+
interface SortableListProps {
|
|
4
|
+
items: Node[];
|
|
5
|
+
isShowOverLay?: boolean;
|
|
6
|
+
renderItem: (item: Node, isExpanded?: boolean) => ReactNode;
|
|
7
|
+
onChange?: (items: Node[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const SortableList: React.FC<SortableListProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ZoomProps {
|
|
3
|
+
styleIcon?: React.CSSProperties;
|
|
4
|
+
classNameButton?: string;
|
|
5
|
+
percentNumber?: number;
|
|
6
|
+
showNumberZoom?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
max?: number;
|
|
9
|
+
min?: number;
|
|
10
|
+
interval?: number;
|
|
11
|
+
onError?: (error: any, detail: Record<string, unknown>) => void;
|
|
12
|
+
onChange?: (value: any) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const Zoom: React.FC<ZoomProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ZoomWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Zoom } from './Zoom';
|
|
2
|
+
export { PlainNode } from './PlainNode';
|
|
3
|
+
export { BlockNode } from './BlockNode';
|
|
4
|
+
export { BranchNode } from './BranchNode';
|
|
5
|
+
export { AddNodeButton } from './AddNodeButton';
|
|
6
|
+
export { ChildBlockNode } from './ChildBlockNode';
|
|
7
|
+
export { SortableList } from './SortableList';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface ConnectorProps {
|
|
2
|
+
before?: boolean;
|
|
3
|
+
after?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const BaseNodeStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const ConnectorWrapper: import("styled-components").StyledComponent<"div", any, ConnectorProps, never>;
|
|
7
|
+
export declare const ButtonCloseStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const FlexCenter = "\n display: flex;\n justify-content: center;\n align-items: center;\n";
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FlatNode, Node } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Add a new flat node to the list of flat nodes after a specified node.
|
|
4
|
+
*
|
|
5
|
+
* This function adds a new flat node to the list of flat nodes after a node with the specified `afterNodeId`.
|
|
6
|
+
* It updates the `parentId` of the added node accordingly.
|
|
7
|
+
*
|
|
8
|
+
* @param {FlatNode[]} oldFlatNodes - The array of old flat nodes to add to.
|
|
9
|
+
* @param {FlatNode} newNode - The new flat node to add.
|
|
10
|
+
* @param {string} afterNodeId - The ID of the node after which the new node should be added.
|
|
11
|
+
* @returns {FlatNode[]} A new array of flat nodes after adding the new node.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export declare const addFlatNode: (oldFlatNodes: FlatNode[], newNode: FlatNode, afterNodeId: string) => FlatNode[];
|
|
15
|
+
/**
|
|
16
|
+
* Recursively deletes a node and its all children from the `newFlatNodes` array.
|
|
17
|
+
*
|
|
18
|
+
* @param {FlatNode[]} flatNodes - The array of flat nodes to modify.
|
|
19
|
+
* @param {Node} node - The node and its descendants to delete.
|
|
20
|
+
* @returns {FlatNode[]} The modified `newFlatNodes` array with the specified node and its descendants removed.
|
|
21
|
+
*/
|
|
22
|
+
export declare const recursiveDeleteFlatNode: (flatNodes: FlatNode[], node: Node) => FlatNode[];
|
|
23
|
+
/**
|
|
24
|
+
* Delete a flat node from the list of flat nodes and update parent references.
|
|
25
|
+
*
|
|
26
|
+
* This function removes a flat node from the list of flat nodes while also updating parent references for child nodes if necessary.
|
|
27
|
+
* Also removes all children of the flat node
|
|
28
|
+
*
|
|
29
|
+
* @param {FlatNode[]} oldFlatNodes - The array of old flat nodes to delete from.
|
|
30
|
+
* @param {FlatNode} deletedNode - The flat node to be deleted.
|
|
31
|
+
* @returns {FlatNode[]} A new array of flat nodes after deletion.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export declare const deleteFlatNode: (oldFlatNodes: FlatNode[], deletedNode: FlatNode) => FlatNode[];
|
|
35
|
+
/**
|
|
36
|
+
* Duplicate a tree node and add it and their children as flat nodes to the flat node array.
|
|
37
|
+
*
|
|
38
|
+
* This function duplicates a tree node, assigns new IDs, and adds it to the flat node array
|
|
39
|
+
* after the specified node ID. It also duplicates child nodes recursively if the original node
|
|
40
|
+
* has branches.
|
|
41
|
+
*
|
|
42
|
+
* @param {FlatNode[]} oldFlatNodes - The original flat node array.
|
|
43
|
+
* @param {Node} treeNode - The tree node to duplicate and add.
|
|
44
|
+
* @returns {FlatNode[]} A new flat node array with the duplicated node and its children.
|
|
45
|
+
*/
|
|
46
|
+
export declare const duplicateFlatNode: (oldFlatNodes: FlatNode[], treeNode: Node) => FlatNode[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FlatNode, Node, NodeType } from '../type';
|
|
3
|
+
export interface FlowContextData {
|
|
4
|
+
zoomSize?: number;
|
|
5
|
+
changeZoomSize?: (size: number) => void;
|
|
6
|
+
flatNodes?: FlatNode[];
|
|
7
|
+
treeNodes?: Node[];
|
|
8
|
+
nodeTypes?: NodeType[];
|
|
9
|
+
onClickNode?: (node: Node) => void;
|
|
10
|
+
onChange?: (flatNodes: FlatNode[], treeNodes: Node[]) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const FlowContext: import("react").Context<FlowContextData>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useMousePosition } from './useMousePosition';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FlowChartProps {
|
|
3
|
+
flatNodes?: FlatNode[];
|
|
4
|
+
nodeTypes?: NodeType[];
|
|
5
|
+
onChange?: (flatNodes: FlatNode[], treeNodes: Node[]) => void;
|
|
6
|
+
onClickNode?: (node: Node) => void;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export interface Edge {
|
|
10
|
+
id?: string;
|
|
11
|
+
source?: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export interface Node {
|
|
16
|
+
id: string;
|
|
17
|
+
type: string;
|
|
18
|
+
label: string;
|
|
19
|
+
parentId: null | string;
|
|
20
|
+
branches: Node[];
|
|
21
|
+
children?: Node[];
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
export interface FlatNode {
|
|
25
|
+
id: string;
|
|
26
|
+
type: string;
|
|
27
|
+
label: string;
|
|
28
|
+
parentId: null | string;
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
export interface NodeType {
|
|
32
|
+
key: string;
|
|
33
|
+
label: string;
|
|
34
|
+
type: string;
|
|
35
|
+
actionType: string;
|
|
36
|
+
translateCode?: string;
|
|
37
|
+
icon: ReactNode;
|
|
38
|
+
iconUrl?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface AddNodeButtonProps {
|
|
41
|
+
node: Node;
|
|
42
|
+
idBranch?: string | null | undefined;
|
|
43
|
+
type?: 'add' | 'copy';
|
|
44
|
+
scope?: 'branch' | 'main-flow';
|
|
45
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { FlatNode, Node } from './type';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the distance of an element's offset left relative to the 'data-flow-chart' element.
|
|
4
|
+
*
|
|
5
|
+
* @param {number} offsetLeft - The offset left of the element to calculate the distance for.
|
|
6
|
+
* @returns {number} The distance of the element's offset left relative to the 'data-flow-chart' element.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getDistance: (offsetLeft: number) => number;
|
|
9
|
+
/**
|
|
10
|
+
* Generate a random alphanumeric ID of the specified length.
|
|
11
|
+
*
|
|
12
|
+
* @param {number} length - The desired length of the random ID.
|
|
13
|
+
* @returns {string} A random alphanumeric ID of the specified length.
|
|
14
|
+
*/
|
|
15
|
+
export declare const generateRandomId: (length: number) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Render child nodes within a parent node's branch.
|
|
18
|
+
* If the Node is the final child, then show the button subdirectory following it.
|
|
19
|
+
* Don't show button subdirectory when the Node's type === 'end' (Node: End Of Survey)
|
|
20
|
+
*
|
|
21
|
+
* It handles rendering of block nodes, branch nodes, and condition nodes, including their respective child nodes.
|
|
22
|
+
*
|
|
23
|
+
* @param {Node} parentNode - The parent node containing child nodes.
|
|
24
|
+
* @returns {ReactNode[]} An array of React elements representing the rendered child nodes.
|
|
25
|
+
*/
|
|
26
|
+
export declare const renderNodeInBranch: (parentNode: Node) => (JSX.Element | null)[] | null;
|
|
27
|
+
/**
|
|
28
|
+
* Flatten a list of flatNodes into a hierarchical structure based on parent-child relationships.
|
|
29
|
+
*
|
|
30
|
+
* This function takes an array of flat nodes and organizes them into a hierarchical structure where nodes with
|
|
31
|
+
* parent-child relationships are nested within each other. It assumes that each node in the input array has an `id`,
|
|
32
|
+
* `parentId`, and other properties as needed.
|
|
33
|
+
*
|
|
34
|
+
* @param {FlatNode[]} flatNodes - An array of flat nodes to be organized into a hierarchical structure.
|
|
35
|
+
* @returns {Node[]} An array of nodes organized into a hierarchical structure.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare const flattenToHierarchy: (flatNodes: FlatNode[]) => Node[];
|
|
39
|
+
/**
|
|
40
|
+
* Convert a tree node into a flat node structure.
|
|
41
|
+
*
|
|
42
|
+
* @param {Node} node - The tree node to be converted into a flat node.
|
|
43
|
+
* @returns {FlatNode} A flat node representation of the input tree node.
|
|
44
|
+
*/
|
|
45
|
+
export declare const flattenNode: ({ id, type, label, parentId }: Node) => FlatNode;
|
|
46
|
+
/**
|
|
47
|
+
* Convert a tree of nodes into a flat array of nodes.
|
|
48
|
+
*
|
|
49
|
+
* @param {Node[]} nodes - An array of tree nodes to be flattened.
|
|
50
|
+
* @returns {FlatNode[]} A flat array of nodes with the same properties as the input tree nodes.
|
|
51
|
+
*/
|
|
52
|
+
export declare const flattenNodes: (nodes: Node[]) => FlatNode[];
|
|
53
|
+
export declare const findNodeByIdInTreeNodes: (nodes: Node[], id: any) => Node | null;
|
|
54
|
+
export declare const insertNodeIntoBranches: (nodes: any, parentId: any, newNode: any) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a deep clone of a node including its children with new IDs and a new parent ID.
|
|
57
|
+
*
|
|
58
|
+
* @param {Node} node - The node to be cloned.
|
|
59
|
+
* @param {string} newParentId - The new parent ID for the cloned node.
|
|
60
|
+
* @returns {Node} A deep clone of the node with updated IDs and parent ID.
|
|
61
|
+
*/
|
|
62
|
+
export declare const cloneNodeWithNewIds: (node: Node, newParentId: string) => Node;
|
|
63
|
+
/**
|
|
64
|
+
* Generate a new tree node with the specified properties.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} [type='block'] - The type of the tree node. Defaults to 'BLOCK'.
|
|
67
|
+
* @param {string} [label='BLOCK'] - The label or name for the tree node. Defaults to 'BLOCK'.
|
|
68
|
+
* @param {string} parentId - The ID of the parent node to which this node belongs.
|
|
69
|
+
* @returns {Node} A new tree node with the specified properties.
|
|
70
|
+
*/
|
|
71
|
+
export declare const generateTreeNode: (type: string | undefined, label: string | undefined, parentId: any) => Node;
|
|
72
|
+
/**
|
|
73
|
+
* Generate a flat node representing a block with an optional label.
|
|
74
|
+
*
|
|
75
|
+
* @param {string} [type='block'] - The type of the block node. Default is 'BLOCK'.
|
|
76
|
+
* @param {string} [label='BLOCK'] - The label or name for the block node. Default is 'BLOCK'.
|
|
77
|
+
* @param {string|null} [parentId=null] - The ID of the parent node if this block is part of a hierarchy.
|
|
78
|
+
* @returns {FlatNode} A flat node object representing the block.
|
|
79
|
+
*/
|
|
80
|
+
export declare const generateFlatNode: (type: string | undefined, label: string | undefined, parentId: any) => FlatNode;
|
|
81
|
+
/**
|
|
82
|
+
* Recursively counts the total number of rows in a branch, including child branches.
|
|
83
|
+
* The purpose is to extend the connection path between node to the next one
|
|
84
|
+
*
|
|
85
|
+
* @param {Node} node - The node representing the branch to count rows in.
|
|
86
|
+
* @returns {number} The total number of rows in the branch, including child branches.
|
|
87
|
+
*/
|
|
88
|
+
export declare const countTotalRowInBranch: (node: Node) => number;
|
|
89
|
+
export declare const getOffset: (el: any) => {
|
|
90
|
+
top: number;
|
|
91
|
+
left: number;
|
|
92
|
+
};
|
|
@@ -20,6 +20,7 @@ export { EdgeSetting } from './EdgeSetting';
|
|
|
20
20
|
export { TreeSelect } from './TreeSelect';
|
|
21
21
|
export { Result } from './Result';
|
|
22
22
|
export { Card } from './Card';
|
|
23
|
+
export { SurveyFlowChart } from './SurveyFlowChart';
|
|
23
24
|
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
24
25
|
export type { ColorPickerProps } from './ColorPicker';
|
|
25
26
|
export type { AlignEditProps, AlignSettingProps } from './AlignSetting';
|
|
@@ -8,7 +8,7 @@ export declare const ButtonFeedback: import("styled-components").StyledComponent
|
|
|
8
8
|
target?: string | undefined;
|
|
9
9
|
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
10
10
|
} & import("antd/es/button/button").BaseButtonProps & Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "type" | "onClick"> & {
|
|
11
|
-
htmlType?: "button" | "
|
|
11
|
+
htmlType?: "button" | "reset" | "submit" | undefined;
|
|
12
12
|
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
13
13
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "type" | "onClick">> & import("react").RefAttributes<HTMLElement>> & {
|
|
14
14
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|