@antscorp/antsomi-ui 1.3.3-beta.47 → 1.3.3-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -78
- package/dist/0dfb9214dfd945cd7290.png +1 -0
- package/dist/3570ecd176167c157ca4.ttf +0 -0
- package/dist/574b7bee0563a9fe9a29.png +1 -0
- package/dist/6b586356e837581204dc.svg +1 -0
- package/dist/8fe5f001e9f235bedfe9.svg +1 -0
- package/dist/9df500764bebdef838b4.eot +0 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +1 -0
- package/dist/e32f09119052a55cce3c.png +1 -0
- package/dist/e3851b9384a984c6fdb5.png +1 -0
- package/dist/f422f99dc05cb0013092.png +1 -0
- package/dist/fc2ea7e45a1b0489b742.woff +0 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +69 -0
- package/dist/main.css +168 -0
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/97210ba7dc321670f4a144c1b40e88d8.png +0 -0
- package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +87 -0
- package/dist/public/icons/c856330eba3f0521e9e3a22b88124b81.svg +364 -0
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/iphone-top-bar.png +0 -0
- package/dist/public/icons/iphone.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/stars_slider.png +0 -0
- package/dist/public/icons/transparent.svg +1 -0
- package/es/assets/css/main.scss +4 -4
- package/es/assets/images/feedback.svg +3 -3
- package/es/components/atoms/Alert/Alert.d.ts +4 -4
- package/es/components/atoms/Alert/Alert.js +19 -19
- package/es/components/atoms/Alert/index.d.ts +1 -1
- package/es/components/atoms/Alert/index.js +1 -1
- package/es/components/atoms/Button/Button.d.ts +1 -1
- package/es/components/atoms/Button/Button.js +1 -1
- package/es/components/atoms/Button/index.d.ts +4 -4
- package/es/components/atoms/Button/index.js +2 -2
- package/es/components/atoms/Button/test.d.ts +3 -3
- package/es/components/atoms/Button/test.js +99 -99
- package/es/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/es/components/atoms/Checkbox/Checkbox.js +1 -1
- package/es/components/atoms/Checkbox/index.d.ts +1 -1
- package/es/components/atoms/Checkbox/index.js +1 -1
- package/es/components/atoms/Divider/Divider.d.ts +1 -1
- package/es/components/atoms/Divider/Divider.js +1 -1
- package/es/components/atoms/Divider/index.d.ts +1 -1
- package/es/components/atoms/Divider/index.js +1 -1
- package/es/components/atoms/DividerPure/DividerPure.d.ts +10 -10
- package/es/components/atoms/DividerPure/DividerPure.js +27 -27
- package/es/components/atoms/DividerPure/index.d.ts +1 -1
- package/es/components/atoms/DividerPure/index.js +1 -1
- package/es/components/atoms/DividerPure/styled.d.ts +1 -1
- package/es/components/atoms/DividerPure/styled.js +41 -41
- package/es/components/atoms/Empty/Empty.d.ts +5 -5
- package/es/components/atoms/Empty/Empty.js +2 -2
- package/es/components/atoms/Empty/index.d.ts +1 -1
- package/es/components/atoms/Empty/index.js +1 -1
- package/es/components/atoms/Flex/Flex.d.ts +2 -2
- package/es/components/atoms/Flex/Flex.js +1 -1
- package/es/components/atoms/Flex/index.d.ts +1 -1
- package/es/components/atoms/Flex/index.js +1 -1
- package/es/components/atoms/FloatButton/FloatButton.d.ts +1 -1
- package/es/components/atoms/FloatButton/FloatButton.js +1 -1
- package/es/components/atoms/FloatButton/index.d.ts +1 -1
- package/es/components/atoms/FloatButton/index.js +2 -2
- package/es/components/atoms/Grid/Grid.d.ts +3 -3
- package/es/components/atoms/Grid/Grid.js +3 -3
- package/es/components/atoms/Grid/index.d.ts +1 -1
- package/es/components/atoms/Grid/index.js +1 -1
- package/es/components/atoms/Icon/index.d.ts +10 -10
- package/es/components/atoms/Icon/index.js +36 -36
- package/es/components/atoms/Input/Input.d.ts +31 -31
- package/es/components/atoms/Input/Input.js +96 -96
- package/es/components/atoms/Input/index.d.ts +2 -2
- package/es/components/atoms/Input/index.js +1 -1
- package/es/components/atoms/Input/styled.d.ts +11 -11
- package/es/components/atoms/Input/styled.js +109 -109
- package/es/components/atoms/InputDynamic/EditCaretPositioning.d.ts +2 -2
- package/es/components/atoms/InputDynamic/EditCaretPositioning.js +89 -89
- package/es/components/atoms/InputDynamic/InputDynamic.d.ts +30 -30
- package/es/components/atoms/InputDynamic/InputDynamic.js +320 -320
- package/es/components/atoms/InputDynamic/PopupShortLink.d.ts +16 -16
- package/es/components/atoms/InputDynamic/PopupShortLink.js +85 -85
- package/es/components/atoms/InputDynamic/index.d.ts +2 -2
- package/es/components/atoms/InputDynamic/index.js +1 -1
- package/es/components/atoms/InputDynamic/styled.d.ts +12 -12
- package/es/components/atoms/InputDynamic/styled.js +281 -281
- package/es/components/atoms/InputDynamic/utils.d.ts +22 -22
- package/es/components/atoms/InputDynamic/utils.js +751 -751
- package/es/components/atoms/InputNumber/InputNumber.d.ts +6 -6
- package/es/components/atoms/InputNumber/InputNumber.js +27 -27
- package/es/components/atoms/InputNumber/index.d.ts +1 -1
- package/es/components/atoms/InputNumber/index.js +1 -1
- package/es/components/atoms/Message/Message.d.ts +1 -1
- package/es/components/atoms/Message/Message.js +1 -1
- package/es/components/atoms/Message/index.d.ts +1 -1
- package/es/components/atoms/Message/index.js +1 -1
- package/es/components/atoms/MobileFrame/MobileFrame.d.ts +4 -4
- package/es/components/atoms/MobileFrame/MobileFrame.js +22 -22
- package/es/components/atoms/MobileFrame/constants.d.ts +4 -4
- package/es/components/atoms/MobileFrame/constants.js +4 -4
- package/es/components/atoms/MobileFrame/index.d.ts +2 -2
- package/es/components/atoms/MobileFrame/index.js +1 -1
- package/es/components/atoms/MobileFrame/styled.d.ts +3 -3
- package/es/components/atoms/MobileFrame/styled.js +33 -33
- package/es/components/atoms/Notification/Notification.d.ts +1 -1
- package/es/components/atoms/Notification/Notification.js +1 -1
- package/es/components/atoms/Notification/index.d.ts +1 -1
- package/es/components/atoms/Notification/index.js +1 -1
- package/es/components/atoms/Pagination/Pagination.d.ts +2 -2
- package/es/components/atoms/Pagination/Pagination.js +2 -2
- package/es/components/atoms/Pagination/index.d.ts +2 -2
- package/es/components/atoms/Pagination/index.js +1 -1
- package/es/components/atoms/Popover/Popover.d.ts +4 -4
- package/es/components/atoms/Popover/Popover.js +2 -2
- package/es/components/atoms/Popover/index.d.ts +1 -1
- package/es/components/atoms/Popover/index.js +1 -1
- package/es/components/atoms/Popover/styled.d.ts +4 -4
- package/es/components/atoms/Popover/styled.js +5 -5
- package/es/components/atoms/PreviewTabs/PreviewTabs.d.ts +7 -7
- package/es/components/atoms/PreviewTabs/PreviewTabs.js +67 -67
- package/es/components/atoms/PreviewTabs/index.d.ts +2 -2
- package/es/components/atoms/PreviewTabs/index.js +1 -1
- package/es/components/atoms/PreviewTabs/styled.d.ts +6 -6
- package/es/components/atoms/PreviewTabs/styled.js +79 -79
- package/es/components/atoms/Progress/Progress.d.ts +2 -2
- package/es/components/atoms/Progress/Progress.js +2 -2
- package/es/components/atoms/Progress/index.d.ts +1 -1
- package/es/components/atoms/Progress/index.js +1 -1
- package/es/components/atoms/Radio/Radio.d.ts +1 -1
- package/es/components/atoms/Radio/Radio.js +1 -1
- package/es/components/atoms/Radio/index.d.ts +7 -7
- package/es/components/atoms/Radio/index.js +25 -25
- package/es/components/atoms/Rate/Rate.d.ts +2 -2
- package/es/components/atoms/Rate/Rate.js +2 -2
- package/es/components/atoms/Rate/index.d.ts +1 -1
- package/es/components/atoms/Rate/index.js +1 -1
- package/es/components/atoms/RateV2/RateV2.d.ts +18 -18
- package/es/components/atoms/RateV2/RateV2.js +73 -73
- package/es/components/atoms/RateV2/index.d.ts +1 -1
- package/es/components/atoms/RateV2/index.js +1 -1
- package/es/components/atoms/RequiredLabel/index.d.ts +8 -8
- package/es/components/atoms/RequiredLabel/index.js +25 -25
- package/es/components/atoms/RequiredLabel/styled.d.ts +2 -2
- package/es/components/atoms/RequiredLabel/styled.js +10 -10
- package/es/components/atoms/ScrollBox/index.d.ts +9 -9
- package/es/components/atoms/ScrollBox/index.js +51 -51
- package/es/components/atoms/Segmented/Segmented.d.ts +2 -2
- package/es/components/atoms/Segmented/Segmented.js +2 -2
- package/es/components/atoms/Segmented/index.d.ts +1 -1
- package/es/components/atoms/Segmented/index.js +1 -1
- package/es/components/atoms/Skeleton/Skeleton.d.ts +8 -8
- package/es/components/atoms/Skeleton/Skeleton.js +2 -2
- package/es/components/atoms/Skeleton/index.d.ts +1 -1
- package/es/components/atoms/Skeleton/index.js +1 -1
- package/es/components/atoms/Slider/index.d.ts +6 -6
- package/es/components/atoms/Slider/index.js +25 -25
- package/es/components/atoms/Slider/styled.d.ts +7 -7
- package/es/components/atoms/Slider/styled.js +44 -44
- package/es/components/atoms/SliderV2/index.d.ts +6 -6
- package/es/components/atoms/SliderV2/index.js +21 -21
- package/es/components/atoms/Space/Space.d.ts +6 -6
- package/es/components/atoms/Space/Space.js +9 -9
- package/es/components/atoms/Space/index.d.ts +1 -1
- package/es/components/atoms/Space/index.js +1 -1
- package/es/components/atoms/Spin/Spin.d.ts +10 -10
- package/es/components/atoms/Spin/Spin.js +28 -28
- package/es/components/atoms/Spin/index.d.ts +1 -1
- package/es/components/atoms/Spin/index.js +1 -1
- package/es/components/atoms/Spin/styled.d.ts +1 -1
- package/es/components/atoms/Spin/styled.js +7 -7
- package/es/components/atoms/Statistic/Statistic.d.ts +1 -1
- package/es/components/atoms/Statistic/Statistic.js +2 -2
- package/es/components/atoms/Statistic/index.d.ts +1 -1
- package/es/components/atoms/Statistic/index.js +1 -1
- package/es/components/atoms/Steps/Steps.d.ts +4 -4
- package/es/components/atoms/Steps/Steps.js +2 -2
- package/es/components/atoms/Steps/index.d.ts +1 -1
- package/es/components/atoms/Steps/index.js +1 -1
- package/es/components/atoms/Switch/Switch.d.ts +2 -2
- package/es/components/atoms/Switch/Switch.js +2 -2
- package/es/components/atoms/Switch/index.d.ts +1 -1
- package/es/components/atoms/Switch/index.js +1 -1
- package/es/components/atoms/Tag/Tag.d.ts +1 -1
- package/es/components/atoms/Tag/Tag.js +1 -1
- package/es/components/atoms/Tag/index.d.ts +1 -1
- package/es/components/atoms/Tag/index.js +1 -1
- package/es/components/atoms/Text/index.d.ts +10 -10
- package/es/components/atoms/Text/index.js +27 -27
- package/es/components/atoms/Text/styled.d.ts +7 -7
- package/es/components/atoms/Text/styled.js +52 -52
- package/es/components/atoms/Timeline/Timeline.d.ts +4 -4
- package/es/components/atoms/Timeline/Timeline.js +2 -2
- package/es/components/atoms/Timeline/index.d.ts +1 -1
- package/es/components/atoms/Timeline/index.js +1 -1
- package/es/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/es/components/atoms/Tooltip/Tooltip.js +1 -1
- package/es/components/atoms/Tooltip/index.d.ts +1 -1
- package/es/components/atoms/Tooltip/index.js +1 -1
- package/es/components/atoms/Typography/Text.d.ts +1 -1
- package/es/components/atoms/Typography/Text.js +1 -1
- package/es/components/atoms/Typography/index.d.ts +1 -1
- package/es/components/atoms/Typography/index.js +1 -1
- package/es/components/atoms/Watermark/Watermark.d.ts +2 -2
- package/es/components/atoms/Watermark/Watermark.js +2 -2
- package/es/components/atoms/Watermark/index.d.ts +1 -1
- package/es/components/atoms/Watermark/index.js +1 -1
- package/es/components/atoms/index.d.ts +41 -41
- package/es/components/atoms/index.js +38 -38
- package/es/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
- package/es/components/common/ConfigProvider/ConfigProvider.js +42 -42
- package/es/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
- package/es/components/common/ConfigProvider/GlobalStyle.js +727 -727
- package/es/components/common/ConfigProvider/index.d.ts +1 -1
- package/es/components/common/ConfigProvider/index.js +1 -1
- package/es/components/common/index.d.ts +1 -1
- package/es/components/common/index.js +1 -1
- package/es/components/icons/AccountCircle.d.ts +3 -3
- package/es/components/icons/AccountCircle.js +3 -3
- package/es/components/icons/AddShoppingCart.d.ts +3 -3
- package/es/components/icons/AddShoppingCart.js +3 -3
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -2
- package/es/components/icons/ArrowGrowIcon.js +4 -4
- package/es/components/icons/AssignmentInd.d.ts +3 -3
- package/es/components/icons/AssignmentInd.js +3 -3
- package/es/components/icons/AudioRecordIcon.d.ts +2 -2
- package/es/components/icons/AudioRecordIcon.js +4 -4
- package/es/components/icons/BugIcon.d.ts +2 -2
- package/es/components/icons/BugIcon.js +4 -4
- package/es/components/icons/Call.d.ts +3 -3
- package/es/components/icons/Call.js +3 -3
- package/es/components/icons/CameraIcon.d.ts +2 -2
- package/es/components/icons/CameraIcon.js +4 -4
- package/es/components/icons/CaptureIcon.d.ts +2 -2
- package/es/components/icons/CaptureIcon.js +4 -4
- package/es/components/icons/Category.d.ts +3 -3
- package/es/components/icons/Category.js +5 -5
- package/es/components/icons/ChatBubbleOutline.d.ts +3 -3
- package/es/components/icons/ChatBubbleOutline.js +3 -3
- package/es/components/icons/CheckSlimIcon.d.ts +2 -2
- package/es/components/icons/CheckSlimIcon.js +4 -4
- package/es/components/icons/CircleNotifications.d.ts +3 -3
- package/es/components/icons/CircleNotifications.js +3 -3
- package/es/components/icons/CloseIcon.d.ts +4 -4
- package/es/components/icons/CloseIcon.js +22 -22
- package/es/components/icons/CommentIcon.d.ts +2 -2
- package/es/components/icons/CommentIcon.js +4 -4
- package/es/components/icons/ConfirmationNumber.d.ts +3 -3
- package/es/components/icons/ConfirmationNumber.js +3 -3
- package/es/components/icons/DesktopWindows.d.ts +3 -3
- package/es/components/icons/DesktopWindows.js +3 -3
- package/es/components/icons/EventIcon.d.ts +4 -4
- package/es/components/icons/EventIcon.js +18 -18
- package/es/components/icons/FactCheck.d.ts +3 -3
- package/es/components/icons/FactCheck.js +3 -3
- package/es/components/icons/FreeDrawIcon.d.ts +2 -2
- package/es/components/icons/FreeDrawIcon.js +4 -4
- package/es/components/icons/GPTIcon.d.ts +2 -2
- package/es/components/icons/GPTIcon.js +18 -18
- package/es/components/icons/GPTIconV2.d.ts +2 -2
- package/es/components/icons/GPTIconV2.js +18 -18
- package/es/components/icons/GPTIconV3.d.ts +2 -2
- package/es/components/icons/GPTIconV3.js +5 -5
- package/es/components/icons/HighlightIcon.d.ts +2 -2
- package/es/components/icons/HighlightIcon.js +4 -4
- package/es/components/icons/HightlightAlt.d.ts +3 -3
- package/es/components/icons/HightlightAlt.js +3 -3
- package/es/components/icons/HowToReg.d.ts +3 -3
- package/es/components/icons/HowToReg.js +3 -3
- package/es/components/icons/IdeaIcon.d.ts +2 -2
- package/es/components/icons/IdeaIcon.js +4 -4
- package/es/components/icons/Interactive.d.ts +3 -3
- package/es/components/icons/Interactive.js +3 -3
- package/es/components/icons/InvisibleIcon.d.ts +2 -2
- package/es/components/icons/InvisibleIcon.js +5 -5
- package/es/components/icons/List.d.ts +3 -3
- package/es/components/icons/List.js +3 -3
- package/es/components/icons/LocalMallIcon.d.ts +3 -3
- package/es/components/icons/LocalMallIcon.js +3 -3
- package/es/components/icons/MobileFriendly.d.ts +3 -3
- package/es/components/icons/MobileFriendly.js +3 -3
- package/es/components/icons/MuteIcon.d.ts +2 -2
- package/es/components/icons/MuteIcon.js +4 -4
- package/es/components/icons/NotificationsActive.d.ts +3 -3
- package/es/components/icons/NotificationsActive.js +3 -3
- package/es/components/icons/OpenUrlIcon.d.ts +2 -2
- package/es/components/icons/OpenUrlIcon.js +4 -4
- package/es/components/icons/PauseIcon.d.ts +2 -2
- package/es/components/icons/PauseIcon.js +4 -4
- package/es/components/icons/Payment.d.ts +3 -3
- package/es/components/icons/Payment.js +3 -3
- package/es/components/icons/PersonAddDisabled.d.ts +3 -3
- package/es/components/icons/PersonAddDisabled.js +4 -4
- package/es/components/icons/PhoneCallback.d.ts +3 -3
- package/es/components/icons/PhoneCallback.js +3 -3
- package/es/components/icons/PlaneIcon.d.ts +2 -2
- package/es/components/icons/PlaneIcon.js +8 -8
- package/es/components/icons/Preview.d.ts +3 -3
- package/es/components/icons/Preview.js +3 -3
- package/es/components/icons/Redeem.d.ts +3 -3
- package/es/components/icons/Redeem.js +3 -3
- package/es/components/icons/RemoveRedEye.d.ts +3 -3
- package/es/components/icons/RemoveRedEye.js +3 -3
- package/es/components/icons/RemoveShoppingCart.d.ts +3 -3
- package/es/components/icons/RemoveShoppingCart.js +3 -3
- package/es/components/icons/RequestIcon.d.ts +2 -2
- package/es/components/icons/RequestIcon.js +4 -4
- package/es/components/icons/Search.d.ts +3 -3
- package/es/components/icons/Search.js +3 -3
- package/es/components/icons/ShoppingBag.d.ts +3 -3
- package/es/components/icons/ShoppingBag.js +3 -3
- package/es/components/icons/ShoppingCart.d.ts +3 -3
- package/es/components/icons/ShoppingCart.js +3 -3
- package/es/components/icons/StopRecordIcon.d.ts +2 -2
- package/es/components/icons/StopRecordIcon.js +4 -4
- package/es/components/icons/Store.d.ts +3 -3
- package/es/components/icons/Store.js +3 -3
- package/es/components/icons/UserIcon.d.ts +2 -2
- package/es/components/icons/UserIcon.js +8 -8
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -2
- package/es/components/icons/VerticalDotsIcon.js +4 -4
- package/es/components/icons/WarningIcon.d.ts +2 -2
- package/es/components/icons/WarningIcon.js +4 -4
- package/es/components/icons/Web.d.ts +3 -3
- package/es/components/icons/Web.js +3 -3
- package/es/components/icons/WebAsset.d.ts +3 -3
- package/es/components/icons/WebAsset.js +3 -3
- package/es/components/icons/index.d.ts +54 -54
- package/es/components/icons/index.js +54 -54
- package/es/components/icons/type.d.ts +3 -3
- package/es/components/icons/type.js +1 -1
- package/es/components/index.d.ts +4 -4
- package/es/components/index.js +4 -4
- package/es/components/molecules/AlignSetting/index.d.ts +19 -19
- package/es/components/molecules/AlignSetting/index.js +52 -52
- package/es/components/molecules/AlignSetting/styled.d.ts +1 -1
- package/es/components/molecules/AlignSetting/styled.js +7 -7
- package/es/components/molecules/AlignSetting/utils.d.ts +3 -3
- package/es/components/molecules/AlignSetting/utils.js +19 -19
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +16 -16
- package/es/components/molecules/CaptureScreen/CaptureScreen.js +834 -834
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +17 -17
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.js +80 -80
- package/es/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/index.js +1 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -12
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +136 -136
- package/es/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -15
- package/es/components/molecules/CaptureScreen/components/CommentBox/types.js +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +4 -4
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.js +17 -17
- package/es/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/index.js +1 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -7
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +79 -79
- package/es/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -10
- package/es/components/molecules/CaptureScreen/components/Cursor/types.js +1 -1
- package/es/components/molecules/CaptureScreen/constants.d.ts +41 -41
- package/es/components/molecules/CaptureScreen/constants.js +118 -118
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -5
- package/es/components/molecules/CaptureScreen/hooks/useImageEditor.js +103 -103
- package/es/components/molecules/CaptureScreen/index.d.ts +1 -1
- package/es/components/molecules/CaptureScreen/index.js +1 -1
- package/es/components/molecules/CaptureScreen/styled.d.ts +26 -26
- package/es/components/molecules/CaptureScreen/styled.js +255 -255
- package/es/components/molecules/CaptureScreen/themes/black.d.ts +54 -54
- package/es/components/molecules/CaptureScreen/themes/black.js +64 -64
- package/es/components/molecules/CaptureScreen/themes/white.d.ts +54 -54
- package/es/components/molecules/CaptureScreen/themes/white.js +64 -64
- package/es/components/molecules/CaptureScreen/types.d.ts +108 -108
- package/es/components/molecules/CaptureScreen/types.js +1 -1
- package/es/components/molecules/CaptureScreen/utils.d.ts +13 -13
- package/es/components/molecules/CaptureScreen/utils.js +62 -62
- package/es/components/molecules/Card/Card.d.ts +1 -1
- package/es/components/molecules/Card/Card.js +2 -2
- package/es/components/molecules/Card/index.d.ts +1 -1
- package/es/components/molecules/Card/index.js +1 -1
- package/es/components/molecules/Cascader/Cascader.d.ts +1 -1
- package/es/components/molecules/Cascader/Cascader.js +1 -1
- package/es/components/molecules/Cascader/index.d.ts +1 -1
- package/es/components/molecules/Cascader/index.js +1 -1
- package/es/components/molecules/ChatBox/ChatBox.d.ts +3 -3
- package/es/components/molecules/ChatBox/ChatBox.js +188 -188
- package/es/components/molecules/ChatBox/MessageItem.d.ts +5 -5
- package/es/components/molecules/ChatBox/MessageItem.js +66 -66
- package/es/components/molecules/ChatBox/constants.d.ts +6 -6
- package/es/components/molecules/ChatBox/constants.js +51 -51
- package/es/components/molecules/ChatBox/index.d.ts +1 -1
- package/es/components/molecules/ChatBox/index.js +1 -1
- package/es/components/molecules/ChatBox/styled.d.ts +10 -10
- package/es/components/molecules/ChatBox/styled.js +280 -280
- package/es/components/molecules/ChatBox/types.d.ts +32 -32
- package/es/components/molecules/ChatBox/types.js +1 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +4 -4
- package/es/components/molecules/Collapse/Collapse.js +11 -11
- package/es/components/molecules/Collapse/index.d.ts +1 -1
- package/es/components/molecules/Collapse/index.js +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/index.d.ts +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/index.js +3 -3
- package/es/components/molecules/ColorPicker/ChromePicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +15 -15
- package/es/components/molecules/ColorPicker/CustomPicker/index.d.ts +2 -2
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +117 -117
- package/es/components/molecules/ColorPicker/CustomPicker/styled.d.ts +9 -9
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +104 -104
- package/es/components/molecules/ColorPicker/SketchPicker/index.d.ts +10 -10
- package/es/components/molecules/ColorPicker/SketchPicker/index.js +5 -5
- package/es/components/molecules/ColorPicker/SketchPicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +10 -10
- package/es/components/molecules/ColorPicker/index.d.ts +13 -13
- package/es/components/molecules/ColorPicker/index.js +95 -95
- package/es/components/molecules/ColorPicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/styled.js +10 -10
- package/es/components/molecules/ColorSetting/index.d.ts +14 -14
- package/es/components/molecules/ColorSetting/index.js +97 -97
- package/es/components/molecules/ColorSetting/styled.d.ts +7 -7
- package/es/components/molecules/ColorSetting/styled.js +42 -42
- package/es/components/molecules/DatePicker/DatePicker.d.ts +8 -8
- package/es/components/molecules/DatePicker/DatePicker.js +8 -8
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +577 -577
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +68 -68
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +140 -140
- package/es/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
- package/es/components/molecules/DatePicker/components/AdvancedPicker/index.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +93 -93
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +36 -36
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +35 -35
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +173 -173
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +70 -70
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/constants.js +4 -4
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/index.js +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/types.js +1 -1
- package/es/components/molecules/DatePicker/index.d.ts +3 -3
- package/es/components/molecules/DatePicker/index.js +1 -1
- package/es/components/molecules/Drawer/Drawer.d.ts +5 -5
- package/es/components/molecules/Drawer/Drawer.js +4 -4
- package/es/components/molecules/Drawer/index.d.ts +2 -2
- package/es/components/molecules/Drawer/index.js +1 -1
- package/es/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/es/components/molecules/Dropdown/Dropdown.js +1 -1
- package/es/components/molecules/Dropdown/index.d.ts +1 -1
- package/es/components/molecules/Dropdown/index.js +1 -1
- package/es/components/molecules/EdgeSetting/index.d.ts +39 -39
- package/es/components/molecules/EdgeSetting/index.js +192 -192
- package/es/components/molecules/EdgeSetting/styled.d.ts +3 -3
- package/es/components/molecules/EdgeSetting/styled.js +18 -18
- package/es/components/molecules/FontFamilySelect/constants.d.ts +307 -307
- package/es/components/molecules/FontFamilySelect/constants.js +257 -257
- package/es/components/molecules/FontFamilySelect/index.d.ts +17 -17
- package/es/components/molecules/FontFamilySelect/index.js +53 -53
- package/es/components/molecules/FontSetting/constants.d.ts +3 -3
- package/es/components/molecules/FontSetting/constants.js +22 -22
- package/es/components/molecules/FontSetting/index.d.ts +24 -24
- package/es/components/molecules/FontSetting/index.js +54 -54
- package/es/components/molecules/FontSetting/types.d.ts +22 -22
- package/es/components/molecules/FontSetting/types.js +1 -1
- package/es/components/molecules/FontWeightSelect/constants.d.ts +28 -28
- package/es/components/molecules/FontWeightSelect/constants.js +11 -11
- package/es/components/molecules/FontWeightSelect/index.d.ts +9 -9
- package/es/components/molecules/FontWeightSelect/index.js +39 -39
- package/es/components/molecules/Form/Form.d.ts +1 -1
- package/es/components/molecules/Form/Form.js +1 -1
- package/es/components/molecules/Form/index.d.ts +1 -1
- package/es/components/molecules/Form/index.js +1 -1
- package/es/components/molecules/GradientSetting/index.d.ts +36 -36
- package/es/components/molecules/GradientSetting/index.js +99 -99
- package/es/components/molecules/GradientSetting/styled.d.ts +1 -1
- package/es/components/molecules/GradientSetting/styled.js +59 -59
- package/es/components/molecules/IconSelection/components/Icon/index.d.ts +10 -10
- package/es/components/molecules/IconSelection/components/Icon/index.js +28 -28
- package/es/components/molecules/IconSelection/constants.d.ts +56 -56
- package/es/components/molecules/IconSelection/constants.js +89 -89
- package/es/components/molecules/IconSelection/index.d.ts +3 -3
- package/es/components/molecules/IconSelection/index.js +143 -143
- package/es/components/molecules/IconSelection/styled.d.ts +8 -8
- package/es/components/molecules/IconSelection/styled.js +80 -80
- package/es/components/molecules/IconSelection/types.d.ts +26 -26
- package/es/components/molecules/IconSelection/types.js +2 -2
- package/es/components/molecules/IconSelection/utils.d.ts +4 -4
- package/es/components/molecules/IconSelection/utils.js +13 -13
- package/es/components/molecules/InputNumber/index.d.ts +9 -9
- package/es/components/molecules/InputNumber/index.js +81 -81
- package/es/components/molecules/InputNumberWithUnit/index.d.ts +31 -31
- package/es/components/molecules/InputNumberWithUnit/index.js +37 -37
- package/es/components/molecules/InputNumberWithUnit/styled.d.ts +1 -1
- package/es/components/molecules/InputNumberWithUnit/styled.js +20 -20
- package/es/components/molecules/InputSearch/index.d.ts +7 -7
- package/es/components/molecules/InputSearch/index.js +23 -23
- package/es/components/molecules/InputSearch/styled.d.ts +1 -1
- package/es/components/molecules/InputSearch/styled.js +48 -48
- package/es/components/molecules/Modal/Modal.d.ts +23 -23
- package/es/components/molecules/Modal/Modal.js +26 -26
- package/es/components/molecules/Modal/index.d.ts +2 -2
- package/es/components/molecules/Modal/index.js +1 -1
- package/es/components/molecules/Modal/styled.d.ts +15 -15
- package/es/components/molecules/Modal/styled.js +78 -78
- package/es/components/molecules/ModalV2/ModalV2.d.ts +5 -5
- package/es/components/molecules/ModalV2/ModalV2.js +26 -26
- package/es/components/molecules/ModalV2/index.d.ts +2 -2
- package/es/components/molecules/ModalV2/index.js +1 -1
- package/es/components/molecules/ModalV2/styled.d.ts +7 -7
- package/es/components/molecules/ModalV2/styled.js +22 -22
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +4 -4
- package/es/components/molecules/Popconfirm/Popconfirm.js +2 -2
- package/es/components/molecules/Popconfirm/index.d.ts +1 -1
- package/es/components/molecules/Popconfirm/index.js +1 -1
- package/es/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -6
- package/es/components/molecules/PopupDraggable/PopupDraggable.js +52 -52
- package/es/components/molecules/PopupDraggable/index.d.ts +1 -1
- package/es/components/molecules/PopupDraggable/index.js +1 -1
- package/es/components/molecules/PopupDraggable/styled.d.ts +5 -5
- package/es/components/molecules/PopupDraggable/styled.js +52 -52
- package/es/components/molecules/PopupDraggable/types.d.ts +15 -15
- package/es/components/molecules/PopupDraggable/types.js +1 -1
- package/es/components/molecules/PreviewModal/PreviewModal.d.ts +7 -7
- package/es/components/molecules/PreviewModal/PreviewModal.js +30 -30
- package/es/components/molecules/PreviewModal/index.d.ts +2 -2
- package/es/components/molecules/PreviewModal/index.js +1 -1
- package/es/components/molecules/PreviewModal/styled.d.ts +4 -4
- package/es/components/molecules/PreviewModal/styled.js +39 -39
- package/es/components/molecules/RadioGroup/index.d.ts +7 -7
- package/es/components/molecules/RadioGroup/index.js +23 -23
- package/es/components/molecules/RadioGroup/styled.d.ts +3 -3
- package/es/components/molecules/RadioGroup/styled.js +14 -14
- package/es/components/molecules/ResizeGrid/ResizeGrid.d.ts +3 -3
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +727 -719
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.d.ts +3 -3
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +87 -87
- package/es/components/molecules/ResizeGrid/components/Cell/index.d.ts +1 -1
- package/es/components/molecules/ResizeGrid/components/Cell/index.js +1 -1
- package/es/components/molecules/ResizeGrid/components/Cell/styled.d.ts +3 -3
- package/es/components/molecules/ResizeGrid/components/Cell/styled.js +80 -80
- package/es/components/molecules/ResizeGrid/constant.d.ts +35 -35
- package/es/components/molecules/ResizeGrid/constant.js +111 -111
- package/es/components/molecules/ResizeGrid/index.d.ts +2 -2
- package/es/components/molecules/ResizeGrid/index.js +1 -1
- package/es/components/molecules/ResizeGrid/styled.d.ts +10 -10
- package/es/components/molecules/ResizeGrid/styled.js +56 -56
- package/es/components/molecules/ResizeGrid/types.d.ts +147 -147
- package/es/components/molecules/ResizeGrid/types.js +1 -1
- package/es/components/molecules/Result/Result.d.ts +1 -1
- package/es/components/molecules/Result/Result.js +2 -2
- package/es/components/molecules/Result/index.d.ts +1 -1
- package/es/components/molecules/Result/index.js +1 -1
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.d.ts +9 -9
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.js +53 -53
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.d.ts +11 -10
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.js +47 -47
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.d.ts +9 -8
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.js +52 -36
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.d.ts +2 -2
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.js +765 -765
- package/es/components/molecules/RichMenu/RichMenuBlock/index.d.ts +3 -3
- package/es/components/molecules/RichMenu/RichMenuBlock/index.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.d.ts +9 -9
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +17 -17
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.d.ts +10 -10
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.js +32 -32
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.d.ts +6 -6
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.js +15 -15
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +4 -4
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +47 -47
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.d.ts +2 -2
- package/es/components/molecules/RichMenu/RichMenuChatBar/index.js +1 -1
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +9 -9
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +37 -37
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.d.ts +10 -10
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +37 -37
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.d.ts +1 -1
- package/es/components/molecules/RichMenu/RichMenuMobileView/index.js +1 -1
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.d.ts +6 -6
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +20 -20
- package/es/components/molecules/RichMenu/index.d.ts +3 -3
- package/es/components/molecules/RichMenu/index.js +3 -3
- package/es/components/molecules/Select/Select.d.ts +19 -19
- package/es/components/molecules/Select/Select.js +50 -50
- package/es/components/molecules/Select/Test.d.ts +3 -3
- package/es/components/molecules/Select/Test.js +22 -22
- package/es/components/molecules/Select/index.d.ts +2 -2
- package/es/components/molecules/Select/index.js +1 -1
- package/es/components/molecules/Select/styled.d.ts +4 -4
- package/es/components/molecules/Select/styled.js +41 -41
- package/es/components/molecules/SettingWrapper/index.d.ts +12 -12
- package/es/components/molecules/SettingWrapper/index.js +20 -20
- package/es/components/molecules/SettingWrapper/styled.d.ts +5 -5
- package/es/components/molecules/SettingWrapper/styled.js +17 -17
- package/es/components/molecules/SettingWrapperPopover/index.d.ts +16 -16
- package/es/components/molecules/SettingWrapperPopover/index.js +17 -17
- package/es/components/molecules/ShareAccess/ShareAccess.d.ts +3 -3
- package/es/components/molecules/ShareAccess/ShareAccess.js +23 -23
- package/es/components/molecules/ShareAccess/actions.d.ts +16 -16
- package/es/components/molecules/ShareAccess/actions.js +12 -12
- package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.d.ts +2 -2
- package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.js +70 -70
- package/es/components/molecules/ShareAccess/components/GeneralAccess/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/GeneralAccess/index.js +1 -1
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +57 -57
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.d.ts +3 -3
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.js +14 -14
- package/es/components/molecules/ShareAccess/components/LayoutContent/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/LayoutContent/index.js +1 -1
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/LayoutContent/styled.js +7 -7
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.d.ts +2 -2
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.js +43 -43
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/index.js +1 -1
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.d.ts +7 -7
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.js +18 -18
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.d.ts +5 -5
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.js +92 -92
- package/es/components/molecules/ShareAccess/components/PeopleAccess/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/PeopleAccess/index.js +1 -1
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +46 -46
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.d.ts +5 -5
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.js +73 -71
- package/es/components/molecules/ShareAccess/components/SearchUser/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/SearchUser/index.js +1 -1
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.d.ts +2 -2
- package/es/components/molecules/ShareAccess/components/SearchUser/styled.js +29 -29
- package/es/components/molecules/ShareAccess/components/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/components/index.js +1 -1
- package/es/components/molecules/ShareAccess/constants.d.ts +61 -61
- package/es/components/molecules/ShareAccess/constants.js +79 -79
- package/es/components/molecules/ShareAccess/context.d.ts +4 -4
- package/es/components/molecules/ShareAccess/context.js +3 -3
- package/es/components/molecules/ShareAccess/hooks/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/hooks/index.js +1 -1
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.d.ts +15 -13
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.js +15 -12
- package/es/components/molecules/ShareAccess/index.d.ts +1 -1
- package/es/components/molecules/ShareAccess/index.js +1 -1
- package/es/components/molecules/ShareAccess/reducer.d.ts +2 -2
- package/es/components/molecules/ShareAccess/reducer.js +19 -19
- package/es/components/molecules/ShareAccess/types.d.ts +46 -46
- package/es/components/molecules/ShareAccess/types.js +1 -1
- package/es/components/molecules/ShareAccess/utils.d.ts +14 -14
- package/es/components/molecules/ShareAccess/utils.js +22 -20
- package/es/components/molecules/SliderWithInputNumber/index.d.ts +11 -11
- package/es/components/molecules/SliderWithInputNumber/index.js +62 -62
- package/es/components/molecules/SliderWithInputNumber/styled.d.ts +1 -1
- package/es/components/molecules/SliderWithInputNumber/styled.js +8 -8
- package/es/components/molecules/Tabs/Tabs.d.ts +1 -1
- package/es/components/molecules/Tabs/Tabs.js +1 -1
- package/es/components/molecules/Tabs/index.d.ts +1 -1
- package/es/components/molecules/Tabs/index.js +1 -1
- package/es/components/molecules/TextDecorationSelect/constants.d.ts +19 -19
- package/es/components/molecules/TextDecorationSelect/constants.js +26 -26
- package/es/components/molecules/TextDecorationSelect/index.d.ts +15 -15
- package/es/components/molecules/TextDecorationSelect/index.js +45 -45
- package/es/components/molecules/TextTransformSelect/constants.d.ts +13 -13
- package/es/components/molecules/TextTransformSelect/constants.js +19 -19
- package/es/components/molecules/TextTransformSelect/index.d.ts +9 -9
- package/es/components/molecules/TextTransformSelect/index.js +39 -39
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +13 -13
- package/es/components/molecules/TreeSelect/TreeSelect.js +2 -2
- package/es/components/molecules/TreeSelect/index.d.ts +1 -1
- package/es/components/molecules/TreeSelect/index.js +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +3 -3
- package/es/components/molecules/UploadImage/MediaIcon.js +8 -8
- package/es/components/molecules/UploadImage/index.d.ts +33 -33
- package/es/components/molecules/UploadImage/index.js +366 -366
- package/es/components/molecules/UploadImage/styled.d.ts +13 -13
- package/es/components/molecules/UploadImage/styled.js +134 -134
- package/es/components/molecules/index.d.ts +45 -45
- package/es/components/molecules/index.js +39 -39
- package/es/components/organism/Help/Help.d.ts +5 -5
- package/es/components/organism/Help/Help.js +1005 -1005
- package/es/components/organism/Help/constants.d.ts +140 -140
- package/es/components/organism/Help/constants.js +1653 -1653
- package/es/components/organism/Help/index.d.ts +1 -1
- package/es/components/organism/Help/index.js +1 -1
- package/es/components/organism/Help/styled.d.ts +75 -75
- package/es/components/organism/Help/styled.js +264 -264
- package/es/components/organism/Help/types.d.ts +67 -67
- package/es/components/organism/Help/types.js +1 -1
- package/es/components/organism/Help/utils.d.ts +15 -15
- package/es/components/organism/Help/utils.js +82 -82
- package/es/components/organism/PositionSetting/config.d.ts +10 -10
- package/es/components/organism/PositionSetting/config.js +10 -10
- package/es/components/organism/PositionSetting/index.d.ts +15 -15
- package/es/components/organism/PositionSetting/index.js +62 -62
- package/es/components/organism/PositionSetting/styled.d.ts +1 -1
- package/es/components/organism/PositionSetting/styled.js +3 -3
- package/es/components/organism/PositionSetting/types.d.ts +10 -10
- package/es/components/organism/PositionSetting/types.js +1 -1
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -18
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.js +305 -305
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -11
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.js +22 -22
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/index.js +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/styled.js +13 -13
- package/es/components/organism/Table/CrossTabTable/constants.d.ts +75 -75
- package/es/components/organism/Table/CrossTabTable/constants.js +1525 -1525
- package/es/components/organism/Table/CrossTabTable/index.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/index.js +1 -1
- package/es/components/organism/Table/CrossTabTable/styled.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/styled.js +13 -13
- package/es/components/organism/Table/CrossTabTable/types.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/types.js +1 -1
- package/es/components/organism/Table/CrossTabTable/utils.d.ts +1 -1
- package/es/components/organism/Table/CrossTabTable/utils.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -11
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.js +51 -51
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -12
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.js +41 -41
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -1
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/index.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -3
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.js +21 -21
- package/es/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -4
- package/es/components/organism/Table/ExplorePivotTable/constants.js +84 -84
- package/es/components/organism/Table/ExplorePivotTable/index.d.ts +2 -2
- package/es/components/organism/Table/ExplorePivotTable/index.js +2 -2
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +12 -12
- package/es/components/organism/Table/ExplorePivotTable/styled.js +15 -15
- package/es/components/organism/Table/ExplorePivotTable/types.d.ts +17 -17
- package/es/components/organism/Table/ExplorePivotTable/types.js +1 -1
- package/es/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -4
- package/es/components/organism/Table/ExplorePivotTable/utils.js +154 -154
- package/es/components/organism/Table/Table.d.ts +1 -1
- package/es/components/organism/Table/Table.js +1 -1
- package/es/components/organism/Table/index.d.ts +2 -2
- package/es/components/organism/Table/index.js +2 -2
- package/es/components/organism/index.d.ts +3 -3
- package/es/components/organism/index.js +3 -3
- package/es/constants/gradientSetting.d.ts +83 -83
- package/es/constants/gradientSetting.js +86 -86
- package/es/constants/index.d.ts +4 -4
- package/es/constants/index.js +4 -4
- package/es/constants/keyCode.d.ts +387 -387
- package/es/constants/keyCode.js +394 -394
- package/es/constants/richMenu.d.ts +19 -19
- package/es/constants/richMenu.js +19 -19
- package/es/constants/storybook.d.ts +17 -17
- package/es/constants/storybook.js +36 -36
- package/es/constants/theme.d.ts +12 -12
- package/es/constants/theme.js +173 -173
- package/es/hooks/index.d.ts +2 -2
- package/es/hooks/index.js +21 -21
- package/es/hooks/useDebounce.d.ts +3 -3
- package/es/hooks/useDebounce.js +15 -15
- package/es/hooks/useDeepCompareEffect.d.ts +1 -1
- package/es/hooks/useDeepCompareEffect.js +21 -21
- package/es/hooks/usePrevious.d.ts +2 -2
- package/es/hooks/usePrevious.js +9 -9
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locales/en/translation.json +68 -68
- package/es/locales/i18n.d.ts +143 -143
- package/es/locales/i18n.js +38 -38
- package/es/locales/translations.d.ts +72 -72
- package/es/locales/translations.js +35 -35
- package/es/locales/types.d.ts +15 -15
- package/es/locales/types.js +1 -1
- package/es/locales/vi/translation.json +67 -67
- package/es/models/SavedImage.d.ts +32 -32
- package/es/models/SavedImage.js +26 -26
- package/es/models/Upload.d.ts +32 -32
- package/es/models/Upload.js +21 -21
- package/es/models/model.d.ts +8 -8
- package/es/models/model.js +5 -5
- package/es/services/MediaTemplateDesign/UploadFile/index.d.ts +6 -6
- package/es/services/MediaTemplateDesign/UploadFile/index.js +75 -75
- package/es/services/Ticket.d.ts +67 -67
- package/es/services/Ticket.js +73 -73
- package/es/services/constants.d.ts +20 -20
- package/es/services/constants.js +21 -21
- package/es/services/index.d.ts +9 -9
- package/es/services/index.js +64 -64
- package/es/test.d.ts +14 -14
- package/es/test.js +184 -253
- package/es/types/index.d.ts +18 -18
- package/es/types/index.js +2 -2
- package/es/types/richMenu.d.ts +191 -191
- package/es/types/richMenu.js +1 -1
- package/es/types/variables.d.ts +2 -2
- package/es/types/variables.js +1 -1
- package/es/utils/color.d.ts +10 -10
- package/es/utils/color.js +61 -61
- package/es/utils/common.d.ts +56 -56
- package/es/utils/common.js +375 -375
- package/es/utils/handleError.d.ts +32 -32
- package/es/utils/handleError.js +44 -44
- package/es/utils/index.d.ts +3 -3
- package/es/utils/index.js +3 -3
- package/es/utils/loadable.d.ts +7 -7
- package/es/utils/loadable.js +10 -10
- package/es/utils/web.d.ts +10 -10
- package/es/utils/web.js +26 -26
- package/package.json +185 -185
|
@@ -1,320 +1,320 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import React, { useState, useLayoutEffect, useEffect, useRef, useCallback, } from 'react';
|
|
3
|
-
import classnames from 'classnames';
|
|
4
|
-
// Components
|
|
5
|
-
import CaretPositioning from './EditCaretPositioning';
|
|
6
|
-
import { WrapperInputStyle, TooltipHover } from './styled';
|
|
7
|
-
import { PopupShortLink } from './PopupShortLink';
|
|
8
|
-
import Icon from '@antscorp/icons';
|
|
9
|
-
// Utils
|
|
10
|
-
import { getObjectPropSafely, random, safeParse } from '@antscorp/antsomi-ui/es/utils';
|
|
11
|
-
import { convertBreakTag, convertDivToBreakTag, convertHtmlText, genShortLinkValue, getInsertLinkPatternWithAppendSpaceEnd, handleUpdateInputPersonalization, initialValue, pasteHtmlAtCaret, removeHtmlTag, spacingNonTracking, validateHTMLTags, } from './utils';
|
|
12
|
-
// Hooks
|
|
13
|
-
import { useDebounce } from '@antscorp/antsomi-ui/es/hooks/useDebounce';
|
|
14
|
-
const PATH = 'src/components/atoms/InputDynamic/InputDynamic.tsx';
|
|
15
|
-
const defaultProps = {
|
|
16
|
-
value: '',
|
|
17
|
-
isViewMode: false,
|
|
18
|
-
errors: [],
|
|
19
|
-
canMultipleLine: false,
|
|
20
|
-
onError: () => { },
|
|
21
|
-
onChange: () => { },
|
|
22
|
-
addMessageToQueue: () => { },
|
|
23
|
-
};
|
|
24
|
-
export const InputDynamic = (props) => {
|
|
25
|
-
const { value, isViewMode, errors, disabledOpts, canMultipleLine, onError, onChange, addMessageToQueue, } = props;
|
|
26
|
-
// States
|
|
27
|
-
const [textValue, setTextValue] = useState(initialValue(value));
|
|
28
|
-
const [initSelectedProperties, setInitSelectedProperties] = useState({
|
|
29
|
-
keyTag: 'shortlink_static',
|
|
30
|
-
link: '',
|
|
31
|
-
urlDetected: '',
|
|
32
|
-
});
|
|
33
|
-
const [popoverOpenShortLink, setPopoverOpenShortLink] = useState(false);
|
|
34
|
-
const [tooltipHoverDebounce, _tooltipHover, setTooltipHover] = useDebounce({ x: 0, y: 0 }, 200);
|
|
35
|
-
// Refs
|
|
36
|
-
const caretPositionRef = useRef(null);
|
|
37
|
-
const personalizationInputRef = useRef(null);
|
|
38
|
-
const onTriggerChange = (event = null) => {
|
|
39
|
-
var _a;
|
|
40
|
-
try {
|
|
41
|
-
let tmp = (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.innerHTML;
|
|
42
|
-
if (event !== null) {
|
|
43
|
-
caretPositionRef.current = CaretPositioning.saveSelection(event.currentTarget);
|
|
44
|
-
tmp = event.currentTarget.innerHTML;
|
|
45
|
-
}
|
|
46
|
-
tmp = tmp === null || tmp === void 0 ? void 0 : tmp.replace(
|
|
47
|
-
// replace old non tracking url to detect url
|
|
48
|
-
/<button(?=[^>]*class="insert-word")[^>]*value=['"]#(?:{nontrackurl\()?(https?:\/\/[0-9a-zA-Z-{}|"\./?_=&%:#*@;]+)(?:\)})?['"][^>]*>.*?<\/button>/g, match => {
|
|
49
|
-
const url = match.match(/(https?:\/\/[0-9a-zA-Z-\./?_=&%:#*@;]+)/);
|
|
50
|
-
if (url) {
|
|
51
|
-
return `<span id="${random(5)}" class="detect-url">${url[1]}</span>`;
|
|
52
|
-
}
|
|
53
|
-
return match; // If no match found, return the original string
|
|
54
|
-
}).replace(
|
|
55
|
-
// replace url to detect url
|
|
56
|
-
/((?<!class="detect-url">|#{shortlink(?:_static)?\(|<span style="line-height: 20px;margin-right: 8px;pointer-events:none;">)\bhttps*:\/\/[0-9a-zA-Z-{}|"\./?_=&%:#*@;]+)/g, match => `<span id="${random(5)}" class="detect-url">${match}</span>`);
|
|
57
|
-
tmp = convertDivToBreakTag(tmp);
|
|
58
|
-
setTextValue(tmp);
|
|
59
|
-
const text = convertHtmlText(tmp, 'raw', {}, {}, 'input', 'add');
|
|
60
|
-
const textConverted = convertBreakTag(text);
|
|
61
|
-
onChange(removeHtmlTag(textConverted));
|
|
62
|
-
}
|
|
63
|
-
catch (error) {
|
|
64
|
-
if (typeof addMessageToQueue === 'function') {
|
|
65
|
-
addMessageToQueue({
|
|
66
|
-
path: 'app/containers/UIDev/UIEditorPersonalization/Input/index.jsx',
|
|
67
|
-
func: 'onTriggerChange',
|
|
68
|
-
data: error,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
// eslint-disable-next-line no-console
|
|
72
|
-
console.error(error);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
const callback = (type, data) => {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
switch (type) {
|
|
78
|
-
case 'REPLACE_DETECTED_URL': {
|
|
79
|
-
const innerHTML = getObjectPropSafely(() => { var _a; return (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.innerHTML; }, '');
|
|
80
|
-
if (innerHTML) {
|
|
81
|
-
// remove span url và focus vào vị trí remove để add tag shortlink vào vị trí này.
|
|
82
|
-
const index = Array.from((_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.childNodes).findIndex((element) => element.id === data.id);
|
|
83
|
-
const range = document.createRange(); // Tạo một đối tượng Range
|
|
84
|
-
const sel = window.getSelection(); // Lấy đối tượng Selection hiện tại
|
|
85
|
-
range.setStart((_b = personalizationInputRef.current) === null || _b === void 0 ? void 0 : _b.childNodes[index], 0); // Đặt điểm bắt đầu của Range
|
|
86
|
-
range.collapse(true); // Thu gọn Range để tập trung vào điểm bắt đầu
|
|
87
|
-
sel === null || sel === void 0 ? void 0 : sel.removeAllRanges(); // Xóa tất cả các Range hiện có
|
|
88
|
-
sel === null || sel === void 0 ? void 0 : sel.addRange(range); // Thêm Range mới vào Selection
|
|
89
|
-
caretPositionRef.current = CaretPositioning.saveSelection(personalizationInputRef.current);
|
|
90
|
-
const newDataUpdate = innerHTML.replace(data.outerHTML, '');
|
|
91
|
-
personalizationInputRef.current.innerHTML = newDataUpdate;
|
|
92
|
-
}
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
default:
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const onPaste = (e) => {
|
|
100
|
-
// cancel paste
|
|
101
|
-
e.preventDefault();
|
|
102
|
-
// get text representation of clipboard
|
|
103
|
-
const text = (e.originalEvent || e).clipboardData.getData('text/plain');
|
|
104
|
-
// insert text manually
|
|
105
|
-
document.execCommand('insertHTML', false, text);
|
|
106
|
-
};
|
|
107
|
-
const handleInsertSortLink = (url, type) => {
|
|
108
|
-
try {
|
|
109
|
-
const { id, value: linkValue, label: linkLabel } = genShortLinkValue(url, type);
|
|
110
|
-
setPopoverOpenShortLink(false);
|
|
111
|
-
if (personalizationInputRef.current instanceof HTMLElement) {
|
|
112
|
-
CaretPositioning.restoreSelection(personalizationInputRef.current, caretPositionRef.current);
|
|
113
|
-
pasteHtmlAtCaret(getInsertLinkPatternWithAppendSpaceEnd(id, linkValue, linkLabel), null);
|
|
114
|
-
onTriggerChange();
|
|
115
|
-
caretPositionRef.current = CaretPositioning.saveSelection(personalizationInputRef.current);
|
|
116
|
-
}
|
|
117
|
-
setInitSelectedProperties({ link: '', keyTag: 'shortlink_static', urlDetected: '' });
|
|
118
|
-
}
|
|
119
|
-
catch (err) {
|
|
120
|
-
if (typeof addMessageToQueue === 'function') {
|
|
121
|
-
addMessageToQueue({
|
|
122
|
-
path: 'app/containers/UIDev/UIEditorPersonalization/Input/index.jsx',
|
|
123
|
-
func: 'handleInsertText',
|
|
124
|
-
data: err,
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const handleKeyPress = (e) => {
|
|
130
|
-
if (canMultipleLine)
|
|
131
|
-
return;
|
|
132
|
-
if (+e.charCode === 13) {
|
|
133
|
-
e.preventDefault();
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
const getDangerouslySetInnerHTML = (text) => {
|
|
137
|
-
if (text) {
|
|
138
|
-
const regex = /<[^<>]+>/g;
|
|
139
|
-
let tag;
|
|
140
|
-
// eslint-disable-next-line no-cond-assign
|
|
141
|
-
while ((tag = regex.exec(text))) {
|
|
142
|
-
if (!validateHTMLTags.isValidTag(tag[0])) {
|
|
143
|
-
const finalTag = tag[0].replace('<', '<').replace('>', '>');
|
|
144
|
-
text = text.replace(tag[0], finalTag);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
text = text.replaceAll('\n', '<br>');
|
|
148
|
-
if (spacingNonTracking(text)) {
|
|
149
|
-
return text;
|
|
150
|
-
}
|
|
151
|
-
return safeParse(text, '').concat('<br />');
|
|
152
|
-
}
|
|
153
|
-
return '';
|
|
154
|
-
};
|
|
155
|
-
const toggleShortLinkModal = useCallback(() => {
|
|
156
|
-
setPopoverOpenShortLink(!popoverOpenShortLink);
|
|
157
|
-
}, [popoverOpenShortLink]);
|
|
158
|
-
/**
|
|
159
|
-
* [NOTE:open shortlink modal to edit]
|
|
160
|
-
*/
|
|
161
|
-
useEffect(() => {
|
|
162
|
-
const handleClickTag = (e) => {
|
|
163
|
-
try {
|
|
164
|
-
e.stopPropagation();
|
|
165
|
-
if (e.target) {
|
|
166
|
-
const { value = '' } = e.target;
|
|
167
|
-
const shortLink = value.replace(/#|{|}|/g, '').split('(');
|
|
168
|
-
if (shortLink && shortLink.length >= 2) {
|
|
169
|
-
const link = shortLink[1].substring(0, shortLink[1].length - 1) || '';
|
|
170
|
-
setInitSelectedProperties(prev => (Object.assign(Object.assign({}, prev), { link, keyTag: shortLink[0], urlDetected: e.currentTarget })));
|
|
171
|
-
toggleShortLinkModal();
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
catch (err) {
|
|
176
|
-
// eslint-disable-next-line no-console
|
|
177
|
-
console.log('err', err);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
const listTags = Array.from(document.querySelectorAll('#ants-ui-input-personalization .input-personal .insert-word'));
|
|
181
|
-
if (listTags && listTags.length > 0) {
|
|
182
|
-
listTags.forEach((tag) => {
|
|
183
|
-
tag.addEventListener('click', handleClickTag);
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
return () => {
|
|
187
|
-
listTags.forEach((tag) => {
|
|
188
|
-
tag.removeEventListener('click', handleClickTag);
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
}, [textValue, toggleShortLinkModal]);
|
|
192
|
-
/** Anchor tooltip */
|
|
193
|
-
useEffect(() => {
|
|
194
|
-
let listElement = [];
|
|
195
|
-
const handleMouseOver = (e, targetRect) => {
|
|
196
|
-
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
197
|
-
const viewportTop = window.pageYOffset;
|
|
198
|
-
const viewportLeft = window.pageXOffset;
|
|
199
|
-
const offsetWidth = targetRect.width / 2;
|
|
200
|
-
const offsetHeight = targetRect.height / 2;
|
|
201
|
-
const tooltipHeight = 16;
|
|
202
|
-
const x = targetRect.left - viewportLeft + offsetWidth;
|
|
203
|
-
const y = targetRect.top - viewportTop - offsetHeight - tooltipHeight;
|
|
204
|
-
setTooltipHover({
|
|
205
|
-
x,
|
|
206
|
-
y,
|
|
207
|
-
});
|
|
208
|
-
};
|
|
209
|
-
const handleMouseOut = (e) => {
|
|
210
|
-
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
211
|
-
setTooltipHover({ x: 0, y: 0 });
|
|
212
|
-
};
|
|
213
|
-
const handleClickDetectUrl = (e) => {
|
|
214
|
-
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
215
|
-
setInitSelectedProperties(prev => {
|
|
216
|
-
var _a;
|
|
217
|
-
return (Object.assign(Object.assign({}, prev), { link: ((_a = e === null || e === void 0 ? void 0 : e.currentTarget) === null || _a === void 0 ? void 0 : _a.textContent) || '', urlDetected: e === null || e === void 0 ? void 0 : e.currentTarget }));
|
|
218
|
-
});
|
|
219
|
-
toggleShortLinkModal();
|
|
220
|
-
};
|
|
221
|
-
if (!isViewMode) {
|
|
222
|
-
const elements = document.querySelectorAll('#ants-ui-input-personalization .detect-url');
|
|
223
|
-
listElement = Array.from(elements);
|
|
224
|
-
if (listElement.length) {
|
|
225
|
-
listElement.forEach((element) => {
|
|
226
|
-
element.addEventListener('mouseover', e => handleMouseOver(e, element.getBoundingClientRect()));
|
|
227
|
-
element.addEventListener('mouseout', handleMouseOut);
|
|
228
|
-
/** Open shortlink modal */
|
|
229
|
-
element.addEventListener('click', handleClickDetectUrl);
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
return () => {
|
|
234
|
-
listElement.forEach((element) => {
|
|
235
|
-
element.removeEventListener('mouseover', handleMouseOver);
|
|
236
|
-
element.removeEventListener('mouseout', handleMouseOut);
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
}, [textValue, isViewMode, setTooltipHover, toggleShortLinkModal]);
|
|
240
|
-
/** Style & remove for tag shortlink button & icon remove */
|
|
241
|
-
useLayoutEffect(() => {
|
|
242
|
-
// get button Els [x] to create hover and style it
|
|
243
|
-
const iconRemoveEls = document.querySelectorAll('.editor-icon-remove');
|
|
244
|
-
const listIconRemove = iconRemoveEls && Array.from(iconRemoveEls);
|
|
245
|
-
// get button elements
|
|
246
|
-
const buttonElement = document.querySelectorAll('.insert-word');
|
|
247
|
-
const listBtnElement = buttonElement && Array.from(buttonElement);
|
|
248
|
-
const handleRemoveTag = (e) => {
|
|
249
|
-
var _a, _b, _c, _d, _e;
|
|
250
|
-
if (e && ((_a = e.target) === null || _a === void 0 ? void 0 : _a.nodeName) === 'EM' && ((_b = e.target) === null || _b === void 0 ? void 0 : _b.className) === 'editor-icon-remove') {
|
|
251
|
-
e.stopPropagation();
|
|
252
|
-
(_d = (_c = e.target) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.remove();
|
|
253
|
-
setTextValue(personalizationInputRef && ((_e = personalizationInputRef.current) === null || _e === void 0 ? void 0 : _e.innerHTML));
|
|
254
|
-
}
|
|
255
|
-
};
|
|
256
|
-
listIconRemove.forEach(eachIcon => {
|
|
257
|
-
eachIcon.addEventListener('click', handleRemoveTag);
|
|
258
|
-
});
|
|
259
|
-
handleUpdateInputPersonalization(listIconRemove, listBtnElement);
|
|
260
|
-
return () => {
|
|
261
|
-
listIconRemove.forEach(eachIcon => {
|
|
262
|
-
eachIcon.removeEventListener('click', handleRemoveTag);
|
|
263
|
-
});
|
|
264
|
-
};
|
|
265
|
-
}, [textValue]);
|
|
266
|
-
useLayoutEffect(() => {
|
|
267
|
-
try {
|
|
268
|
-
// save caret position
|
|
269
|
-
if (!personalizationInputRef.current) {
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
// Perhaps React (whose VDOM gets outdated because we often prevent
|
|
273
|
-
// rerendering) did not update the DOM. So we update it manually now.
|
|
274
|
-
if (caretPositionRef && caretPositionRef.current) {
|
|
275
|
-
CaretPositioning.restoreSelection(personalizationInputRef.current, caretPositionRef.current);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
catch (error) {
|
|
279
|
-
if (typeof addMessageToQueue === 'function') {
|
|
280
|
-
addMessageToQueue({
|
|
281
|
-
path: PATH,
|
|
282
|
-
func: 'useLayoutEffect',
|
|
283
|
-
data: error,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
if (typeof onError === 'function') {
|
|
287
|
-
onError(error, {
|
|
288
|
-
component: PATH,
|
|
289
|
-
action: 'useLayoutEffect saved caret position',
|
|
290
|
-
args: {},
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}, [addMessageToQueue, onError, textValue]);
|
|
295
|
-
return (React.createElement(WrapperInputStyle, { id: "ants-ui-input-personalization" },
|
|
296
|
-
React.createElement("div", { className: classnames({
|
|
297
|
-
'input-wrapper-outter': true,
|
|
298
|
-
'styles-input-wrapper': !isViewMode,
|
|
299
|
-
'input-error': (errors === null || errors === void 0 ? void 0 : errors.length) && (errors === null || errors === void 0 ? void 0 : errors.length) > 0,
|
|
300
|
-
}), style: Object.assign(Object.assign({}, (isViewMode && {
|
|
301
|
-
padding: 0,
|
|
302
|
-
minHeight: 0,
|
|
303
|
-
fontSize: 12,
|
|
304
|
-
border: 'none',
|
|
305
|
-
})), { width: '100%' }), onClick: () => { var _a; return (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } },
|
|
306
|
-
React.createElement("div", { className: "input-personal", style: {
|
|
307
|
-
display: textValue && textValue !== '<br>' ? 'inline-block' : undefined,
|
|
308
|
-
}, contentEditable: !isViewMode, onBlur: onTriggerChange, onKeyPress: handleKeyPress, ref: personalizationInputRef,
|
|
309
|
-
// eslint-disable-next-line react/no-danger
|
|
310
|
-
dangerouslySetInnerHTML: {
|
|
311
|
-
__html: getDangerouslySetInnerHTML(textValue),
|
|
312
|
-
}, onPaste: onPaste }),
|
|
313
|
-
!isViewMode && (React.createElement(Icon, { type: "icon-ants-person-alt", onClick: e => {
|
|
314
|
-
e.stopPropagation();
|
|
315
|
-
toggleShortLinkModal();
|
|
316
|
-
}, className: "customize-antsomi-profile", style: { width: 24, height: 24 } }))),
|
|
317
|
-
React.createElement(TooltipHover, { isShow: tooltipHoverDebounce.x > 0 && tooltipHoverDebounce.y > 0, top: tooltipHoverDebounce.y, left: tooltipHoverDebounce.x }, "Click on the link to convert it to a shortlink"),
|
|
318
|
-
popoverOpenShortLink && (React.createElement(PopupShortLink, { open: popoverOpenShortLink, disabledOpts: disabledOpts, onOk: handleInsertSortLink, onClose: toggleShortLinkModal, initSelectedProperties: initSelectedProperties, callback: callback }))));
|
|
319
|
-
};
|
|
320
|
-
InputDynamic.defaultProps = defaultProps;
|
|
1
|
+
// Libraries
|
|
2
|
+
import React, { useState, useLayoutEffect, useEffect, useRef, useCallback, } from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
// Components
|
|
5
|
+
import CaretPositioning from './EditCaretPositioning';
|
|
6
|
+
import { WrapperInputStyle, TooltipHover } from './styled';
|
|
7
|
+
import { PopupShortLink } from './PopupShortLink';
|
|
8
|
+
import Icon from '@antscorp/icons';
|
|
9
|
+
// Utils
|
|
10
|
+
import { getObjectPropSafely, random, safeParse } from '@antscorp/antsomi-ui/es/utils';
|
|
11
|
+
import { convertBreakTag, convertDivToBreakTag, convertHtmlText, genShortLinkValue, getInsertLinkPatternWithAppendSpaceEnd, handleUpdateInputPersonalization, initialValue, pasteHtmlAtCaret, removeHtmlTag, spacingNonTracking, validateHTMLTags, } from './utils';
|
|
12
|
+
// Hooks
|
|
13
|
+
import { useDebounce } from '@antscorp/antsomi-ui/es/hooks/useDebounce';
|
|
14
|
+
const PATH = 'src/components/atoms/InputDynamic/InputDynamic.tsx';
|
|
15
|
+
const defaultProps = {
|
|
16
|
+
value: '',
|
|
17
|
+
isViewMode: false,
|
|
18
|
+
errors: [],
|
|
19
|
+
canMultipleLine: false,
|
|
20
|
+
onError: () => { },
|
|
21
|
+
onChange: () => { },
|
|
22
|
+
addMessageToQueue: () => { },
|
|
23
|
+
};
|
|
24
|
+
export const InputDynamic = (props) => {
|
|
25
|
+
const { value, isViewMode, errors, disabledOpts, canMultipleLine, onError, onChange, addMessageToQueue, } = props;
|
|
26
|
+
// States
|
|
27
|
+
const [textValue, setTextValue] = useState(initialValue(value));
|
|
28
|
+
const [initSelectedProperties, setInitSelectedProperties] = useState({
|
|
29
|
+
keyTag: 'shortlink_static',
|
|
30
|
+
link: '',
|
|
31
|
+
urlDetected: '',
|
|
32
|
+
});
|
|
33
|
+
const [popoverOpenShortLink, setPopoverOpenShortLink] = useState(false);
|
|
34
|
+
const [tooltipHoverDebounce, _tooltipHover, setTooltipHover] = useDebounce({ x: 0, y: 0 }, 200);
|
|
35
|
+
// Refs
|
|
36
|
+
const caretPositionRef = useRef(null);
|
|
37
|
+
const personalizationInputRef = useRef(null);
|
|
38
|
+
const onTriggerChange = (event = null) => {
|
|
39
|
+
var _a;
|
|
40
|
+
try {
|
|
41
|
+
let tmp = (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.innerHTML;
|
|
42
|
+
if (event !== null) {
|
|
43
|
+
caretPositionRef.current = CaretPositioning.saveSelection(event.currentTarget);
|
|
44
|
+
tmp = event.currentTarget.innerHTML;
|
|
45
|
+
}
|
|
46
|
+
tmp = tmp === null || tmp === void 0 ? void 0 : tmp.replace(
|
|
47
|
+
// replace old non tracking url to detect url
|
|
48
|
+
/<button(?=[^>]*class="insert-word")[^>]*value=['"]#(?:{nontrackurl\()?(https?:\/\/[0-9a-zA-Z-{}|"\./?_=&%:#*@;]+)(?:\)})?['"][^>]*>.*?<\/button>/g, match => {
|
|
49
|
+
const url = match.match(/(https?:\/\/[0-9a-zA-Z-\./?_=&%:#*@;]+)/);
|
|
50
|
+
if (url) {
|
|
51
|
+
return `<span id="${random(5)}" class="detect-url">${url[1]}</span>`;
|
|
52
|
+
}
|
|
53
|
+
return match; // If no match found, return the original string
|
|
54
|
+
}).replace(
|
|
55
|
+
// replace url to detect url
|
|
56
|
+
/((?<!class="detect-url">|#{shortlink(?:_static)?\(|<span style="line-height: 20px;margin-right: 8px;pointer-events:none;">)\bhttps*:\/\/[0-9a-zA-Z-{}|"\./?_=&%:#*@;]+)/g, match => `<span id="${random(5)}" class="detect-url">${match}</span>`);
|
|
57
|
+
tmp = convertDivToBreakTag(tmp);
|
|
58
|
+
setTextValue(tmp);
|
|
59
|
+
const text = convertHtmlText(tmp, 'raw', {}, {}, 'input', 'add');
|
|
60
|
+
const textConverted = convertBreakTag(text);
|
|
61
|
+
onChange(removeHtmlTag(textConverted));
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
if (typeof addMessageToQueue === 'function') {
|
|
65
|
+
addMessageToQueue({
|
|
66
|
+
path: 'app/containers/UIDev/UIEditorPersonalization/Input/index.jsx',
|
|
67
|
+
func: 'onTriggerChange',
|
|
68
|
+
data: error,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// eslint-disable-next-line no-console
|
|
72
|
+
console.error(error);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const callback = (type, data) => {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
switch (type) {
|
|
78
|
+
case 'REPLACE_DETECTED_URL': {
|
|
79
|
+
const innerHTML = getObjectPropSafely(() => { var _a; return (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.innerHTML; }, '');
|
|
80
|
+
if (innerHTML) {
|
|
81
|
+
// remove span url và focus vào vị trí remove để add tag shortlink vào vị trí này.
|
|
82
|
+
const index = Array.from((_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.childNodes).findIndex((element) => element.id === data.id);
|
|
83
|
+
const range = document.createRange(); // Tạo một đối tượng Range
|
|
84
|
+
const sel = window.getSelection(); // Lấy đối tượng Selection hiện tại
|
|
85
|
+
range.setStart((_b = personalizationInputRef.current) === null || _b === void 0 ? void 0 : _b.childNodes[index], 0); // Đặt điểm bắt đầu của Range
|
|
86
|
+
range.collapse(true); // Thu gọn Range để tập trung vào điểm bắt đầu
|
|
87
|
+
sel === null || sel === void 0 ? void 0 : sel.removeAllRanges(); // Xóa tất cả các Range hiện có
|
|
88
|
+
sel === null || sel === void 0 ? void 0 : sel.addRange(range); // Thêm Range mới vào Selection
|
|
89
|
+
caretPositionRef.current = CaretPositioning.saveSelection(personalizationInputRef.current);
|
|
90
|
+
const newDataUpdate = innerHTML.replace(data.outerHTML, '');
|
|
91
|
+
personalizationInputRef.current.innerHTML = newDataUpdate;
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
default:
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const onPaste = (e) => {
|
|
100
|
+
// cancel paste
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
// get text representation of clipboard
|
|
103
|
+
const text = (e.originalEvent || e).clipboardData.getData('text/plain');
|
|
104
|
+
// insert text manually
|
|
105
|
+
document.execCommand('insertHTML', false, text);
|
|
106
|
+
};
|
|
107
|
+
const handleInsertSortLink = (url, type) => {
|
|
108
|
+
try {
|
|
109
|
+
const { id, value: linkValue, label: linkLabel } = genShortLinkValue(url, type);
|
|
110
|
+
setPopoverOpenShortLink(false);
|
|
111
|
+
if (personalizationInputRef.current instanceof HTMLElement) {
|
|
112
|
+
CaretPositioning.restoreSelection(personalizationInputRef.current, caretPositionRef.current);
|
|
113
|
+
pasteHtmlAtCaret(getInsertLinkPatternWithAppendSpaceEnd(id, linkValue, linkLabel), null);
|
|
114
|
+
onTriggerChange();
|
|
115
|
+
caretPositionRef.current = CaretPositioning.saveSelection(personalizationInputRef.current);
|
|
116
|
+
}
|
|
117
|
+
setInitSelectedProperties({ link: '', keyTag: 'shortlink_static', urlDetected: '' });
|
|
118
|
+
}
|
|
119
|
+
catch (err) {
|
|
120
|
+
if (typeof addMessageToQueue === 'function') {
|
|
121
|
+
addMessageToQueue({
|
|
122
|
+
path: 'app/containers/UIDev/UIEditorPersonalization/Input/index.jsx',
|
|
123
|
+
func: 'handleInsertText',
|
|
124
|
+
data: err,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
const handleKeyPress = (e) => {
|
|
130
|
+
if (canMultipleLine)
|
|
131
|
+
return;
|
|
132
|
+
if (+e.charCode === 13) {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
const getDangerouslySetInnerHTML = (text) => {
|
|
137
|
+
if (text) {
|
|
138
|
+
const regex = /<[^<>]+>/g;
|
|
139
|
+
let tag;
|
|
140
|
+
// eslint-disable-next-line no-cond-assign
|
|
141
|
+
while ((tag = regex.exec(text))) {
|
|
142
|
+
if (!validateHTMLTags.isValidTag(tag[0])) {
|
|
143
|
+
const finalTag = tag[0].replace('<', '<').replace('>', '>');
|
|
144
|
+
text = text.replace(tag[0], finalTag);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
text = text.replaceAll('\n', '<br>');
|
|
148
|
+
if (spacingNonTracking(text)) {
|
|
149
|
+
return text;
|
|
150
|
+
}
|
|
151
|
+
return safeParse(text, '').concat('<br />');
|
|
152
|
+
}
|
|
153
|
+
return '';
|
|
154
|
+
};
|
|
155
|
+
const toggleShortLinkModal = useCallback(() => {
|
|
156
|
+
setPopoverOpenShortLink(!popoverOpenShortLink);
|
|
157
|
+
}, [popoverOpenShortLink]);
|
|
158
|
+
/**
|
|
159
|
+
* [NOTE:open shortlink modal to edit]
|
|
160
|
+
*/
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
const handleClickTag = (e) => {
|
|
163
|
+
try {
|
|
164
|
+
e.stopPropagation();
|
|
165
|
+
if (e.target) {
|
|
166
|
+
const { value = '' } = e.target;
|
|
167
|
+
const shortLink = value.replace(/#|{|}|/g, '').split('(');
|
|
168
|
+
if (shortLink && shortLink.length >= 2) {
|
|
169
|
+
const link = shortLink[1].substring(0, shortLink[1].length - 1) || '';
|
|
170
|
+
setInitSelectedProperties(prev => (Object.assign(Object.assign({}, prev), { link, keyTag: shortLink[0], urlDetected: e.currentTarget })));
|
|
171
|
+
toggleShortLinkModal();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
catch (err) {
|
|
176
|
+
// eslint-disable-next-line no-console
|
|
177
|
+
console.log('err', err);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
const listTags = Array.from(document.querySelectorAll('#ants-ui-input-personalization .input-personal .insert-word'));
|
|
181
|
+
if (listTags && listTags.length > 0) {
|
|
182
|
+
listTags.forEach((tag) => {
|
|
183
|
+
tag.addEventListener('click', handleClickTag);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
return () => {
|
|
187
|
+
listTags.forEach((tag) => {
|
|
188
|
+
tag.removeEventListener('click', handleClickTag);
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
}, [textValue, toggleShortLinkModal]);
|
|
192
|
+
/** Anchor tooltip */
|
|
193
|
+
useEffect(() => {
|
|
194
|
+
let listElement = [];
|
|
195
|
+
const handleMouseOver = (e, targetRect) => {
|
|
196
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
197
|
+
const viewportTop = window.pageYOffset;
|
|
198
|
+
const viewportLeft = window.pageXOffset;
|
|
199
|
+
const offsetWidth = targetRect.width / 2;
|
|
200
|
+
const offsetHeight = targetRect.height / 2;
|
|
201
|
+
const tooltipHeight = 16;
|
|
202
|
+
const x = targetRect.left - viewportLeft + offsetWidth;
|
|
203
|
+
const y = targetRect.top - viewportTop - offsetHeight - tooltipHeight;
|
|
204
|
+
setTooltipHover({
|
|
205
|
+
x,
|
|
206
|
+
y,
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
const handleMouseOut = (e) => {
|
|
210
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
211
|
+
setTooltipHover({ x: 0, y: 0 });
|
|
212
|
+
};
|
|
213
|
+
const handleClickDetectUrl = (e) => {
|
|
214
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
215
|
+
setInitSelectedProperties(prev => {
|
|
216
|
+
var _a;
|
|
217
|
+
return (Object.assign(Object.assign({}, prev), { link: ((_a = e === null || e === void 0 ? void 0 : e.currentTarget) === null || _a === void 0 ? void 0 : _a.textContent) || '', urlDetected: e === null || e === void 0 ? void 0 : e.currentTarget }));
|
|
218
|
+
});
|
|
219
|
+
toggleShortLinkModal();
|
|
220
|
+
};
|
|
221
|
+
if (!isViewMode) {
|
|
222
|
+
const elements = document.querySelectorAll('#ants-ui-input-personalization .detect-url');
|
|
223
|
+
listElement = Array.from(elements);
|
|
224
|
+
if (listElement.length) {
|
|
225
|
+
listElement.forEach((element) => {
|
|
226
|
+
element.addEventListener('mouseover', e => handleMouseOver(e, element.getBoundingClientRect()));
|
|
227
|
+
element.addEventListener('mouseout', handleMouseOut);
|
|
228
|
+
/** Open shortlink modal */
|
|
229
|
+
element.addEventListener('click', handleClickDetectUrl);
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
return () => {
|
|
234
|
+
listElement.forEach((element) => {
|
|
235
|
+
element.removeEventListener('mouseover', handleMouseOver);
|
|
236
|
+
element.removeEventListener('mouseout', handleMouseOut);
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
}, [textValue, isViewMode, setTooltipHover, toggleShortLinkModal]);
|
|
240
|
+
/** Style & remove for tag shortlink button & icon remove */
|
|
241
|
+
useLayoutEffect(() => {
|
|
242
|
+
// get button Els [x] to create hover and style it
|
|
243
|
+
const iconRemoveEls = document.querySelectorAll('.editor-icon-remove');
|
|
244
|
+
const listIconRemove = iconRemoveEls && Array.from(iconRemoveEls);
|
|
245
|
+
// get button elements
|
|
246
|
+
const buttonElement = document.querySelectorAll('.insert-word');
|
|
247
|
+
const listBtnElement = buttonElement && Array.from(buttonElement);
|
|
248
|
+
const handleRemoveTag = (e) => {
|
|
249
|
+
var _a, _b, _c, _d, _e;
|
|
250
|
+
if (e && ((_a = e.target) === null || _a === void 0 ? void 0 : _a.nodeName) === 'EM' && ((_b = e.target) === null || _b === void 0 ? void 0 : _b.className) === 'editor-icon-remove') {
|
|
251
|
+
e.stopPropagation();
|
|
252
|
+
(_d = (_c = e.target) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.remove();
|
|
253
|
+
setTextValue(personalizationInputRef && ((_e = personalizationInputRef.current) === null || _e === void 0 ? void 0 : _e.innerHTML));
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
listIconRemove.forEach(eachIcon => {
|
|
257
|
+
eachIcon.addEventListener('click', handleRemoveTag);
|
|
258
|
+
});
|
|
259
|
+
handleUpdateInputPersonalization(listIconRemove, listBtnElement);
|
|
260
|
+
return () => {
|
|
261
|
+
listIconRemove.forEach(eachIcon => {
|
|
262
|
+
eachIcon.removeEventListener('click', handleRemoveTag);
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
}, [textValue]);
|
|
266
|
+
useLayoutEffect(() => {
|
|
267
|
+
try {
|
|
268
|
+
// save caret position
|
|
269
|
+
if (!personalizationInputRef.current) {
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
// Perhaps React (whose VDOM gets outdated because we often prevent
|
|
273
|
+
// rerendering) did not update the DOM. So we update it manually now.
|
|
274
|
+
if (caretPositionRef && caretPositionRef.current) {
|
|
275
|
+
CaretPositioning.restoreSelection(personalizationInputRef.current, caretPositionRef.current);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
if (typeof addMessageToQueue === 'function') {
|
|
280
|
+
addMessageToQueue({
|
|
281
|
+
path: PATH,
|
|
282
|
+
func: 'useLayoutEffect',
|
|
283
|
+
data: error,
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
if (typeof onError === 'function') {
|
|
287
|
+
onError(error, {
|
|
288
|
+
component: PATH,
|
|
289
|
+
action: 'useLayoutEffect saved caret position',
|
|
290
|
+
args: {},
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}, [addMessageToQueue, onError, textValue]);
|
|
295
|
+
return (React.createElement(WrapperInputStyle, { id: "ants-ui-input-personalization" },
|
|
296
|
+
React.createElement("div", { className: classnames({
|
|
297
|
+
'input-wrapper-outter': true,
|
|
298
|
+
'styles-input-wrapper': !isViewMode,
|
|
299
|
+
'input-error': (errors === null || errors === void 0 ? void 0 : errors.length) && (errors === null || errors === void 0 ? void 0 : errors.length) > 0,
|
|
300
|
+
}), style: Object.assign(Object.assign({}, (isViewMode && {
|
|
301
|
+
padding: 0,
|
|
302
|
+
minHeight: 0,
|
|
303
|
+
fontSize: 12,
|
|
304
|
+
border: 'none',
|
|
305
|
+
})), { width: '100%' }), onClick: () => { var _a; return (_a = personalizationInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } },
|
|
306
|
+
React.createElement("div", { className: "input-personal", style: {
|
|
307
|
+
display: textValue && textValue !== '<br>' ? 'inline-block' : undefined,
|
|
308
|
+
}, contentEditable: !isViewMode, onBlur: onTriggerChange, onKeyPress: handleKeyPress, ref: personalizationInputRef,
|
|
309
|
+
// eslint-disable-next-line react/no-danger
|
|
310
|
+
dangerouslySetInnerHTML: {
|
|
311
|
+
__html: getDangerouslySetInnerHTML(textValue),
|
|
312
|
+
}, onPaste: onPaste }),
|
|
313
|
+
!isViewMode && (React.createElement(Icon, { type: "icon-ants-person-alt", onClick: e => {
|
|
314
|
+
e.stopPropagation();
|
|
315
|
+
toggleShortLinkModal();
|
|
316
|
+
}, className: "customize-antsomi-profile", style: { width: 24, height: 24 } }))),
|
|
317
|
+
React.createElement(TooltipHover, { isShow: tooltipHoverDebounce.x > 0 && tooltipHoverDebounce.y > 0, top: tooltipHoverDebounce.y, left: tooltipHoverDebounce.x }, "Click on the link to convert it to a shortlink"),
|
|
318
|
+
popoverOpenShortLink && (React.createElement(PopupShortLink, { open: popoverOpenShortLink, disabledOpts: disabledOpts, onOk: handleInsertSortLink, onClose: toggleShortLinkModal, initSelectedProperties: initSelectedProperties, callback: callback }))));
|
|
319
|
+
};
|
|
320
|
+
InputDynamic.defaultProps = defaultProps;
|