@antscorp/antsomi-ui 2.0.13 → 2.0.15
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/es/components/atoms/Alert/Alert.js +10 -22
- package/es/components/atoms/Button/Button.d.ts +4 -2
- package/es/components/atoms/Button/Button.js +4 -1
- package/es/components/atoms/Button/test.js +9 -90
- package/es/components/atoms/Checkbox/Checkbox.d.ts +4 -1
- package/es/components/atoms/Checkbox/Checkbox.js +3 -1
- package/es/components/atoms/ContentEditable/ContentEditable.js +5 -16
- package/es/components/atoms/DividerPure/DividerPure.js +4 -15
- package/es/components/atoms/DividerPure/styled.js +2 -3
- package/es/components/atoms/Empty/Empty.js +2 -2
- package/es/components/atoms/Icon/index.js +4 -7
- package/es/components/atoms/Iframe/Iframe.js +6 -17
- package/es/components/atoms/Input/Input.js +12 -25
- package/es/components/atoms/Input/styled.js +12 -13
- package/es/components/atoms/InputDynamic/EditCaretPositioning.js +8 -9
- package/es/components/atoms/InputDynamic/InputDynamic.d.ts +1 -6
- package/es/components/atoms/InputDynamic/InputDynamic.js +105 -77
- package/es/components/atoms/InputDynamic/PopupShortLink.js +29 -24
- package/es/components/atoms/InputDynamic/constants.d.ts +4 -0
- package/es/components/atoms/InputDynamic/constants.js +4 -0
- package/es/components/atoms/InputDynamic/styled.d.ts +1 -2
- package/es/components/atoms/InputDynamic/styled.js +25 -21
- package/es/components/atoms/InputDynamic/types.d.ts +1 -1
- package/es/components/atoms/InputDynamic/utils.d.ts +0 -1
- package/es/components/atoms/InputDynamic/utils.js +14 -12
- package/es/components/atoms/InputNumber/InputNumber.js +6 -18
- package/es/components/atoms/MobileFrame/MobileFrame.js +2 -20
- package/es/components/atoms/MobileFrameV2/MobileFrameV2.js +2 -20
- package/es/components/atoms/PreviewTabs/PreviewTabs.js +14 -26
- package/es/components/atoms/PreviewTabs/styled.js +1 -2
- package/es/components/atoms/Radio/index.d.ts +2 -2
- package/es/components/atoms/Radio/index.js +8 -7
- package/es/components/atoms/RateV2/RateV2.js +19 -20
- package/es/components/atoms/ReactIframe/ReactIframe.js +5 -18
- package/es/components/atoms/ReactIframe/styled.js +1 -2
- package/es/components/atoms/RequiredLabel/index.js +4 -17
- package/es/components/atoms/RequiredLabel/styled.js +1 -2
- package/es/components/atoms/ScrollBox/index.js +11 -16
- package/es/components/atoms/Scrollbars/Scrollbars.js +6 -22
- package/es/components/atoms/Scrollbars/styled.js +1 -1
- package/es/components/atoms/SlideBar/SlideBar.js +68 -62
- package/es/components/atoms/SlideBar/styled.js +15 -19
- package/es/components/atoms/Slider/index.js +6 -11
- package/es/components/atoms/Slider/styled.js +2 -3
- package/es/components/atoms/SliderV2/index.js +12 -4
- package/es/components/atoms/Spin/Spin.d.ts +1 -2
- package/es/components/atoms/Spin/Spin.js +6 -18
- package/es/components/atoms/Steps/Steps.js +11 -20
- package/es/components/atoms/Steps/styled.d.ts +2 -2
- package/es/components/atoms/Steps/styled.js +17 -18
- package/es/components/atoms/Tag/Tag.js +3 -16
- package/es/components/atoms/Text/index.js +7 -15
- package/es/components/atoms/Text/styled.js +9 -11
- package/es/components/icons/AccountCircleIcon.js +3 -3
- package/es/components/icons/AccountCircleOutlineIcon.js +3 -3
- package/es/components/icons/AccountSharing30Icon.js +3 -3
- package/es/components/icons/AccountSharingIcon.js +3 -3
- package/es/components/icons/AccountTreeIcon.js +3 -3
- package/es/components/icons/Accounts30Icon.js +3 -3
- package/es/components/icons/AddChartIcon.js +3 -4
- package/es/components/icons/AddFolderIcon.js +3 -3
- package/es/components/icons/AddIcon.js +3 -3
- package/es/components/icons/AddRadiusIcon.js +3 -3
- package/es/components/icons/AddShoppingCartIcon.js +3 -3
- package/es/components/icons/AdjustIcon.js +3 -4
- package/es/components/icons/AllDevicesIcon.js +3 -4
- package/es/components/icons/AllJourneyChannelsIcon.js +3 -3
- package/es/components/icons/AnalyticModels30Icon.js +3 -3
- package/es/components/icons/AnalyticModelsIcon.js +3 -3
- package/es/components/icons/Analytics30Icon.js +3 -3
- package/es/components/icons/AnalyticsIcon.js +3 -10
- package/es/components/icons/AnlysisIcon.js +3 -3
- package/es/components/icons/AnlyticModelsIcon.js +3 -3
- package/es/components/icons/ArrowGrowIcon.js +3 -4
- package/es/components/icons/ArrowLineIcon.js +3 -3
- package/es/components/icons/ArticleIcon.js +3 -6
- package/es/components/icons/AssignmentIndIcon.js +3 -3
- package/es/components/icons/AttachmentIcon.js +3 -3
- package/es/components/icons/AudioRecordIcon.js +3 -4
- package/es/components/icons/BatchStreaming30Icon.js +3 -3
- package/es/components/icons/BatchStreamingIcon.js +3 -3
- package/es/components/icons/BlockIcon.js +3 -3
- package/es/components/icons/BudLightIcon.js +3 -4
- package/es/components/icons/BugIcon.js +3 -4
- package/es/components/icons/BusinessObjects30Icon.js +3 -3
- package/es/components/icons/BussinessObjectsIcon.js +3 -3
- package/es/components/icons/ByDayIcon.js +3 -3
- package/es/components/icons/ByMonthIcon.js +3 -3
- package/es/components/icons/ByScheduleIcon.js +3 -3
- package/es/components/icons/ByThreeDayIcon.js +3 -3
- package/es/components/icons/ByWeekIcon.js +3 -3
- package/es/components/icons/CalendarIcon.js +3 -3
- package/es/components/icons/CallIcon.js +3 -3
- package/es/components/icons/CameraIcon.js +3 -4
- package/es/components/icons/CampaignIcon.js +3 -9
- package/es/components/icons/CampaignMenuIcon.js +3 -3
- package/es/components/icons/CaptureIcon.js +3 -4
- package/es/components/icons/CatalogIcon.js +3 -3
- package/es/components/icons/CategoryIcon.js +3 -5
- package/es/components/icons/ChartRealTimeIcon.js +3 -5
- package/es/components/icons/ChartReviewIcon.js +3 -3
- package/es/components/icons/ChartTypeIcon.js +3 -4
- package/es/components/icons/ChatBubbleOutlineIcon.js +3 -3
- package/es/components/icons/ChatConversationCommentAddCommentIcon.js +3 -3
- package/es/components/icons/ChatMentionIcon.js +3 -3
- package/es/components/icons/ChatUnreadIcon.js +3 -3
- package/es/components/icons/CheckSlimIcon.js +3 -4
- package/es/components/icons/CheckboxChecked5RadiusIcon.js +3 -3
- package/es/components/icons/CheckboxCheckedIcon.js +3 -3
- package/es/components/icons/CheckboxIndeterminate5RadiusIcon.js +3 -3
- package/es/components/icons/CheckboxIndeterminateIcon.js +3 -3
- package/es/components/icons/CheckboxUnchecked5RadiusIcon.js +3 -3
- package/es/components/icons/CheckboxUncheckedIcon.js +3 -3
- package/es/components/icons/ChecklistRtlIcon.js +3 -4
- package/es/components/icons/CircleAddElementIcon.js +3 -3
- package/es/components/icons/CircleNotificationsIcon.js +3 -3
- package/es/components/icons/CloseIcon.js +3 -4
- package/es/components/icons/CodeIcon.js +3 -3
- package/es/components/icons/Collection30Icon.js +3 -3
- package/es/components/icons/ColorProfileStyleThemeIcon.js +3 -3
- package/es/components/icons/ColumnIcon.js +3 -3
- package/es/components/icons/CommentIcon.js +3 -4
- package/es/components/icons/CompareIcon.js +3 -3
- package/es/components/icons/ComputationHistoriesIcon.js +3 -3
- package/es/components/icons/ConfirmationNumberIcon.js +3 -3
- package/es/components/icons/ConnectOneNIcon.js +3 -3
- package/es/components/icons/ConnectOneOneIcon.js +3 -3
- package/es/components/icons/Connectors30Icon.js +3 -3
- package/es/components/icons/Content30Icon.js +3 -3
- package/es/components/icons/ConversionEvent30Icon.js +3 -4
- package/es/components/icons/ConversionIcon.js +3 -4
- package/es/components/icons/CopyDuplicateIcon.js +3 -3
- package/es/components/icons/CopyLinkActiveIcon.js +3 -8
- package/es/components/icons/CopyLinkIcon.js +3 -3
- package/es/components/icons/CropIcon.js +3 -3
- package/es/components/icons/CursorIcon.js +3 -3
- package/es/components/icons/CurvedConnectorIcon.js +3 -3
- package/es/components/icons/CustomerIcon.js +3 -4
- package/es/components/icons/CustomerInformationIcon.js +3 -9
- package/es/components/icons/CustomerJourney30Icon.js +3 -3
- package/es/components/icons/CustomerJourneyIcon.js +3 -3
- package/es/components/icons/Customers30Icon.js +3 -3
- package/es/components/icons/Dashboard30Icon.js +3 -3
- package/es/components/icons/DashboardIcon.js +3 -3
- package/es/components/icons/DataDestination30Icon.js +3 -3
- package/es/components/icons/DataDestinationIcon.js +3 -3
- package/es/components/icons/DataEncryption30Icon.js +3 -3
- package/es/components/icons/DataEncryptionIcon.js +3 -3
- package/es/components/icons/DataIcon.js +3 -3
- package/es/components/icons/DataRefreshIcon.js +3 -3
- package/es/components/icons/DataSchema30Icon.js +3 -3
- package/es/components/icons/DataSource30Icon.js +3 -3
- package/es/components/icons/DataView30Icon.js +3 -3
- package/es/components/icons/DataViewIcon.js +3 -3
- package/es/components/icons/Dataflows30Icon.js +3 -3
- package/es/components/icons/DatasourceIcon.js +3 -3
- package/es/components/icons/DatasourceSegment30Icon.js +3 -3
- package/es/components/icons/DeleteRemoveTrashIcon.js +3 -3
- package/es/components/icons/DeliveryLogIcon.js +3 -3
- package/es/components/icons/DesktopLaptopIcon.js +3 -3
- package/es/components/icons/DesktopWindowsIcon.js +3 -3
- package/es/components/icons/Destination130Icon.js +3 -5
- package/es/components/icons/Destinations30Icon.js +3 -3
- package/es/components/icons/DestinationsIcon.js +3 -3
- package/es/components/icons/Diagram30Icon.js +3 -3
- package/es/components/icons/DiagramIcon.js +3 -3
- package/es/components/icons/DirectoriesIcon.js +3 -3
- package/es/components/icons/DisplayMonitorScreenIcon.js +3 -3
- package/es/components/icons/DomainManagementIcon.js +4 -6
- package/es/components/icons/DownloadIcon.js +3 -3
- package/es/components/icons/DraftDocumentIcon.js +3 -3
- package/es/components/icons/DuplicateIcon.js +3 -3
- package/es/components/icons/DynamicFormIcon.js +3 -3
- package/es/components/icons/DynamicImageIcon.js +3 -4
- package/es/components/icons/DynamicTextIcon.js +3 -4
- package/es/components/icons/EditFilledIcon.js +3 -4
- package/es/components/icons/EditIcon.js +3 -3
- package/es/components/icons/ElbowConnectorIcon.js +3 -3
- package/es/components/icons/EmailTemplate30Icon.js +3 -3
- package/es/components/icons/EmailTemplateIcon.js +3 -3
- package/es/components/icons/EmailTemplateMenuIcon.js +3 -3
- package/es/components/icons/EmojiEmotionsIcon.js +3 -3
- package/es/components/icons/EventAttribute30Icon.js +3 -3
- package/es/components/icons/EventAttributeIcon.js +3 -3
- package/es/components/icons/EventIcon.js +3 -4
- package/es/components/icons/EventSources30Icon.js +3 -3
- package/es/components/icons/EventSourcesIcon.js +3 -3
- package/es/components/icons/ExcludePeopleIcon.js +3 -3
- package/es/components/icons/ExitFullScreenIcon.js +3 -4
- package/es/components/icons/ExitLogOutIcon.js +3 -4
- package/es/components/icons/ExpandLessIcon.js +3 -4
- package/es/components/icons/ExpandMoreIcon.js +3 -3
- package/es/components/icons/ExpandMoreRightIcon.js +3 -3
- package/es/components/icons/ExpandViewFullIcon.js +3 -4
- package/es/components/icons/ExploreBuiltIn30Icon.js +3 -3
- package/es/components/icons/ExploreBuiltInIcon.js +3 -3
- package/es/components/icons/ExploreIcon.js +3 -3
- package/es/components/icons/ExploreSegmentData30Icon.js +3 -10
- package/es/components/icons/ExploreStandard30Icon.js +3 -3
- package/es/components/icons/ExploreStandardIcon.js +3 -3
- package/es/components/icons/ExportHtmlIcon.js +3 -3
- package/es/components/icons/ExportMenuIcon.js +3 -3
- package/es/components/icons/ExtendValueIcon.js +3 -3
- package/es/components/icons/FactCheckIcon.js +3 -3
- package/es/components/icons/FileDownloadIcon.js +3 -3
- package/es/components/icons/FileTransferIcon.js +3 -7
- package/es/components/icons/FileUpload1Icon.js +3 -3
- package/es/components/icons/FileUploadIcon.js +3 -3
- package/es/components/icons/FilterIcon.js +3 -3
- package/es/components/icons/FolderCreateNewFolderIcon.js +3 -3
- package/es/components/icons/FolderShareIcon.js +3 -3
- package/es/components/icons/FolderUploadIcon.js +3 -3
- package/es/components/icons/ForceRunIcon.js +3 -3
- package/es/components/icons/ForecastIcon.js +3 -3
- package/es/components/icons/Form30Icon.js +3 -3
- package/es/components/icons/ForwardIcon.js +3 -3
- package/es/components/icons/FreeDrawIcon.js +3 -4
- package/es/components/icons/FullReviewIcon.js +3 -4
- package/es/components/icons/GPTIcon.js +3 -5
- package/es/components/icons/GalleryTemplateIcon.js +3 -5
- package/es/components/icons/GeneralSettingIcon.js +3 -3
- package/es/components/icons/GeneralSettings30Icon.js +3 -3
- package/es/components/icons/GenerateAutoWizardIcon.js +3 -3
- package/es/components/icons/Geofence30Icon.js +3 -3
- package/es/components/icons/GetInsightIcon.js +3 -3
- package/es/components/icons/GridViewIcon.js +3 -3
- package/es/components/icons/GroupIcon.js +3 -3
- package/es/components/icons/GroupLayerIcon.js +3 -3
- package/es/components/icons/HeartFavoriteBorderIcon.js +3 -3
- package/es/components/icons/HeartFavoriteIcon.js +3 -3
- package/es/components/icons/HelpIcon.js +3 -3
- package/es/components/icons/HighlightAltIcon.js +3 -3
- package/es/components/icons/HighlightIcon.js +3 -3
- package/es/components/icons/HomeHouse30Icon.js +3 -3
- package/es/components/icons/HomeIcon.js +3 -4
- package/es/components/icons/HowToRegIcon.js +3 -3
- package/es/components/icons/IdeaIcon.js +3 -4
- package/es/components/icons/ImageIcon.js +3 -3
- package/es/components/icons/InactiveIcon.js +3 -3
- package/es/components/icons/InactiveVariantIcon.js +3 -3
- package/es/components/icons/IncludePeopleIcon.js +3 -3
- package/es/components/icons/IncreaseDecreaseIcon.js +3 -3
- package/es/components/icons/Integration30Icon.js +3 -3
- package/es/components/icons/InteractiveIcon.js +3 -3
- package/es/components/icons/InvisibleIcon.js +3 -5
- package/es/components/icons/InvitePeopleIcon.js +3 -3
- package/es/components/icons/IssueBugIcon.js +3 -3
- package/es/components/icons/ItemRecommendationIcon.js +3 -6
- package/es/components/icons/JourneyTactic30Icon.js +3 -4
- package/es/components/icons/JourneyTacticIcon.js +3 -4
- package/es/components/icons/LayerIcon.js +3 -3
- package/es/components/icons/LeftExpandIcon.js +3 -4
- package/es/components/icons/LibraryIcon.js +3 -3
- package/es/components/icons/LineIcon.js +3 -3
- package/es/components/icons/LinkManagement30Icon.js +3 -3
- package/es/components/icons/LinkManagementIcon.js +3 -3
- package/es/components/icons/ListIcon.js +3 -3
- package/es/components/icons/LoadingIcon.js +4 -17
- package/es/components/icons/LocalMallIcon.js +3 -3
- package/es/components/icons/LongerIcon.js +3 -3
- package/es/components/icons/MapIcon.js +3 -3
- package/es/components/icons/MarkAsReadIcon.js +3 -3
- package/es/components/icons/MarketingHub30Icon.js +3 -3
- package/es/components/icons/MediaGalleryIcon.js +3 -3
- package/es/components/icons/MediaTemplate30Icon.js +3 -3
- package/es/components/icons/MediaTemplateIcon.js +3 -3
- package/es/components/icons/MediaTemplateMenuIcon.js +3 -3
- package/es/components/icons/Menu30Icon.js +3 -3
- package/es/components/icons/MenuCollapseIcon.js +3 -3
- package/es/components/icons/MenuExpandIcon.js +3 -3
- package/es/components/icons/MenuImageMultiIcon.js +3 -3
- package/es/components/icons/MenuImageSingleIcon.js +3 -3
- package/es/components/icons/MergeIcon.js +3 -3
- package/es/components/icons/MobileFriendlyIcon.js +3 -3
- package/es/components/icons/MobilePhoneIcon.js +3 -3
- package/es/components/icons/MonitorAppIcon.js +3 -3
- package/es/components/icons/MoreIcon.js +3 -3
- package/es/components/icons/MoreInfoIcon.js +3 -3
- package/es/components/icons/MoveToIcon.js +3 -3
- package/es/components/icons/MuteIcon.js +3 -4
- package/es/components/icons/NodeViewIcon.js +3 -9
- package/es/components/icons/NotificationIcon.js +3 -3
- package/es/components/icons/NotificationSettingIcon.js +3 -3
- package/es/components/icons/NotificationsActiveIcon.js +3 -3
- package/es/components/icons/OpenNewTabIcon.js +3 -3
- package/es/components/icons/OpenUrlIcon.js +3 -4
- package/es/components/icons/OrchestrationIcon.js +3 -3
- package/es/components/icons/PageArticleIcon.js +3 -3
- package/es/components/icons/PauseIcon.js +3 -4
- package/es/components/icons/PaymentIcon.js +3 -3
- package/es/components/icons/PenDrawingIcon.js +3 -3
- package/es/components/icons/PersonAddDisabledIcon.js +3 -4
- package/es/components/icons/PersonUserAccountIcon.js +3 -3
- package/es/components/icons/PhoneCallbackIcon.js +3 -3
- package/es/components/icons/PhoneIphoneIcon.js +3 -4
- package/es/components/icons/PivotTableChartIcon.js +3 -6
- package/es/components/icons/PlaneIcon.js +3 -5
- package/es/components/icons/Plannings30Icon.js +3 -3
- package/es/components/icons/Predictive30Icon.js +3 -3
- package/es/components/icons/PredictiveModel30Icon.js +3 -3
- package/es/components/icons/PredictiveModelIcon.js +3 -3
- package/es/components/icons/PreviewIcon.js +3 -3
- package/es/components/icons/PreviewVisibilityEyeIcon.js +3 -3
- package/es/components/icons/ProcessHistoryIcon.js +3 -4
- package/es/components/icons/ProfileTemplate30Icon.js +3 -3
- package/es/components/icons/ProfileTemplateIcon.js +3 -3
- package/es/components/icons/ProjectIcon.js +3 -3
- package/es/components/icons/PromotionCenter30Icon.js +3 -3
- package/es/components/icons/PromotionCenterIcon.js +3 -3
- package/es/components/icons/Providers30Icon.js +3 -3
- package/es/components/icons/PublicIcon.js +3 -3
- package/es/components/icons/PublishSendIcon.js +3 -3
- package/es/components/icons/QueryIcon.js +3 -3
- package/es/components/icons/QuickTestIcon.js +3 -3
- package/es/components/icons/RatingStarBorderIcon.js +3 -3
- package/es/components/icons/RatingStarFullIcon.js +3 -3
- package/es/components/icons/RatingStarHalfIcon.js +3 -3
- package/es/components/icons/RealtimeStreaming30Icon.js +3 -6
- package/es/components/icons/RealtimeStreamingIcon.js +3 -6
- package/es/components/icons/RecentHistoryVersionHistoryIcon.js +3 -3
- package/es/components/icons/RectangleIcon.js +3 -3
- package/es/components/icons/RedeemIcon.js +3 -3
- package/es/components/icons/RedoIcon.js +3 -3
- package/es/components/icons/RefreshIcon.js +3 -3
- package/es/components/icons/RemoveRedEyeIcon.js +3 -3
- package/es/components/icons/RemoveShoppingCartIcon.js +3 -3
- package/es/components/icons/ReportIcon.js +3 -3
- package/es/components/icons/RequestIcon.js +3 -4
- package/es/components/icons/RequiredIcon.js +3 -3
- package/es/components/icons/ResendValidateEmailIcon.js +3 -3
- package/es/components/icons/RestoreDefaultIcon.js +3 -4
- package/es/components/icons/ResumeIcon.js +3 -3
- package/es/components/icons/RightExpandIcon.js +3 -4
- package/es/components/icons/Role30Icon.js +3 -3
- package/es/components/icons/SQLWorkspace30Icon.js +3 -3
- package/es/components/icons/SaveAsIcon.js +3 -3
- package/es/components/icons/SaveIcon.js +3 -3
- package/es/components/icons/ScheduleEmailDeliveryIcon.js +3 -4
- package/es/components/icons/ScreenshotMonitorIcon.js +3 -4
- package/es/components/icons/SearchIcon.js +3 -3
- package/es/components/icons/SectionIcon.js +3 -3
- package/es/components/icons/Segments30Icon.js +3 -3
- package/es/components/icons/SegmentsIcon.js +3 -3
- package/es/components/icons/SendTranscriptIcon.js +3 -3
- package/es/components/icons/SettingIcon.js +3 -3
- package/es/components/icons/ShapeCircleIcon.js +3 -3
- package/es/components/icons/ShapeSquareIcon.js +3 -3
- package/es/components/icons/ShareIcon.js +3 -3
- package/es/components/icons/ShareWithMeAccountIcon.js +3 -3
- package/es/components/icons/ShoppingBagIcon.js +3 -3
- package/es/components/icons/ShoppingCartIcon.js +3 -3
- package/es/components/icons/ShowLeftPanelIcon.js +3 -3
- package/es/components/icons/ShowRightPanelIcon.js +3 -3
- package/es/components/icons/SignatureIcon.js +3 -3
- package/es/components/icons/SlideGroupIcon.js +3 -3
- package/es/components/icons/Sort1Icon.js +3 -3
- package/es/components/icons/SortIcon.js +3 -3
- package/es/components/icons/SqlWorkspaceIcon.js +3 -3
- package/es/components/icons/StatisticIcon.js +3 -4
- package/es/components/icons/StickerIcon.js +3 -3
- package/es/components/icons/StopRecordIcon.js +3 -4
- package/es/components/icons/StoreIcon.js +3 -3
- package/es/components/icons/StudioTemplates30Icon.js +3 -3
- package/es/components/icons/SubtractRadiusIcon.js +3 -3
- package/es/components/icons/SupportAssistantIcon.js +3 -3
- package/es/components/icons/Survey30Icon.js +3 -3
- package/es/components/icons/SurveyDirectorProfileIcon.js +3 -3
- package/es/components/icons/SurveyIcon.js +3 -3
- package/es/components/icons/SurveyProject30Icon.js +3 -3
- package/es/components/icons/SystemRunningIcon.js +3 -3
- package/es/components/icons/TabGroupIcon.js +3 -3
- package/es/components/icons/TableIcon.js +3 -3
- package/es/components/icons/TableVer2Icon.js +3 -3
- package/es/components/icons/TextIcon.js +3 -3
- package/es/components/icons/ThirdPartyPluginV130Icon.js +3 -3
- package/es/components/icons/ThirdPartyPluginV230Icon.js +3 -3
- package/es/components/icons/ThumbDownHandIcon.js +3 -3
- package/es/components/icons/ThumbUpHandIcon.js +3 -3
- package/es/components/icons/Ticket30Icon.js +3 -3
- package/es/components/icons/TicketIcon.js +3 -3
- package/es/components/icons/TimeIcon.js +3 -3
- package/es/components/icons/TipsAndUpdatesIcon.js +3 -3
- package/es/components/icons/TipsIdeaLight24Icon.js +3 -3
- package/es/components/icons/TipsIdeaLight30Icon.js +3 -3
- package/es/components/icons/UnblockIcon.js +3 -3
- package/es/components/icons/UndoIcon.js +3 -3
- package/es/components/icons/Unknown30Icon.js +3 -3
- package/es/components/icons/UploadIcon.js +3 -3
- package/es/components/icons/UploadMenuIcon.js +3 -3
- package/es/components/icons/UserActivityIcon.js +3 -12
- package/es/components/icons/UserAttributesIcon.js +3 -3
- package/es/components/icons/UserIcon.js +3 -5
- package/es/components/icons/ValidateFormatIcon.js +3 -3
- package/es/components/icons/VariantPriorityIcon.js +3 -3
- package/es/components/icons/VerticalDotsIcon.js +3 -4
- package/es/components/icons/ViewColumnIcon.js +3 -5
- package/es/components/icons/ViewDetailsInformationIcon.js +3 -3
- package/es/components/icons/VisibilityOffEyeIcon.js +3 -3
- package/es/components/icons/Visitor30Icon.js +3 -3
- package/es/components/icons/VisitorIcon.js +3 -3
- package/es/components/icons/WarningIcon.js +3 -4
- package/es/components/icons/WebAssetIcon.js +3 -3
- package/es/components/icons/WebIcon.js +3 -3
- package/es/components/icons/WebPersonalizationIcon.js +3 -3
- package/es/components/icons/WebhookIcon.js +3 -3
- package/es/components/icons/WidgetIcon.js +3 -3
- package/es/components/icons/WritingAIAssitantIcon.js +3 -5
- package/es/components/icons/document/IconGallery.d.ts +1 -1
- package/es/components/icons/document/IconGallery.js +13 -22
- package/es/components/icons/document/styled.js +2 -2
- package/es/components/icons/hooks/useIcon.js +1 -1
- package/es/components/molecules/AccessDenied/AccessDenied.js +3 -10
- package/es/components/molecules/AccessDenied/styled.js +1 -1
- package/es/components/molecules/AccountSelection/AccountListing.js +10 -16
- package/es/components/molecules/AccountSelection/AccountSelection.js +6 -21
- package/es/components/molecules/AccountSelection/components/AccountItem.js +2 -3
- package/es/components/molecules/AccountSelection/hooks/useAccountSelection.js +4 -4
- package/es/components/molecules/AccountSelection/styled.js +11 -12
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +168 -182
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +1 -0
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.js +3 -4
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/FormatDatetime.d.ts +1 -2
- package/es/components/molecules/AddDynamicContent/components/FormatDatetime/FormatDatetime.js +49 -65
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/FormatNumber.d.ts +1 -2
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/FormatNumber.js +45 -51
- package/es/components/molecules/AddDynamicContent/utils.js +17 -20
- package/es/components/molecules/AlignSetting/index.js +16 -35
- package/es/components/molecules/ApplyPopupContent/ApplyPopupContent.js +3 -24
- package/es/components/molecules/ApplyPopupContent/styled.js +5 -5
- package/es/components/molecules/CalendarSelection/CalendarSelection.js +10 -16
- package/es/components/molecules/CalendarSelection/components/AutoUpdateTo/AutoUpdateTo.js +2 -4
- package/es/components/molecules/CalendarSelection/components/CustomPicker/CustomPicker.js +46 -58
- package/es/components/molecules/CalendarSelection/components/Footer/Footer.d.ts +1 -2
- package/es/components/molecules/CalendarSelection/components/Footer/Footer.js +2 -4
- package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.js +2 -2
- package/es/components/molecules/CalendarSelection/components/RangePicker/styled.js +3 -2
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/RangeSelectOptions.js +3 -9
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/NumOfDaysRanges/NumOfDaysRanges.d.ts +1 -2
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/NumOfDaysRanges/NumOfDaysRanges.js +6 -8
- package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +13 -10
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/TimeRangeDisplay.js +5 -21
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/styled.js +2 -2
- package/es/components/molecules/CalendarSelection/constants.js +5 -1
- package/es/components/molecules/CalendarSelection/reducer.js +12 -17
- package/es/components/molecules/CalendarSelection/utils.js +5 -6
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +1 -2
- package/es/components/molecules/CaptureScreen/CaptureScreen.js +89 -129
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +1 -2
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.js +12 -23
- package/es/components/molecules/CaptureScreen/components/CommentBox/styled.js +16 -20
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +1 -2
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.js +3 -5
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +11 -15
- package/es/components/molecules/CaptureScreen/constants.js +2 -3
- package/es/components/molecules/CaptureScreen/styled.js +14 -18
- package/es/components/molecules/ChartTab/ChartTab.js +10 -12
- package/es/components/molecules/ChartTab/components/Item.js +27 -30
- package/es/components/molecules/ChartTab/components/styled.js +2 -3
- package/es/components/molecules/ChartTab/styled.js +5 -5
- package/es/components/molecules/ChatBox/AntsomiAI.d.ts +2 -0
- package/es/components/molecules/ChatBox/AntsomiAI.js +15 -0
- package/es/components/molecules/ChatBox/ChatBox.js +26 -48
- package/es/components/molecules/ChatBox/ChatBoxInsight/ChatBox.js +34 -53
- package/es/components/molecules/ChatBox/ChatBoxInsight/MessageItem.js +17 -22
- package/es/components/molecules/ChatBox/ChatBoxInsight/QuestionItem.js +9 -4
- package/es/components/molecules/ChatBox/ChatBoxInsight/index.js +5 -10
- package/es/components/molecules/ChatBox/ChatBoxInsight/styled.d.ts +1 -0
- package/es/components/molecules/ChatBox/ChatBoxInsight/styled.js +76 -22
- package/es/components/molecules/ChatBox/MessageItem.js +16 -13
- package/es/components/molecules/ChatBox/styled.js +76 -20
- package/es/components/molecules/Collapse/Collapse.js +2 -3
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +18 -59
- package/es/components/molecules/ColorPicker/CustomPicker/styled.d.ts +1 -2
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +8 -8
- package/es/components/molecules/ColorPicker/SketchPicker/index.js +2 -3
- package/es/components/molecules/ColorPicker/index.js +12 -17
- package/es/components/molecules/ColorSetting/index.js +7 -28
- package/es/components/molecules/ColorSetting/styled.d.ts +1 -3
- package/es/components/molecules/ColorSetting/styled.js +1 -1
- package/es/components/molecules/DatePicker/DatePicker.js +3 -4
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +6 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +126 -154
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +12 -38
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +1 -16
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +4 -2
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.js +11 -9
- package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +16 -15
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +34 -56
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +3 -0
- package/es/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.js +41 -41
- package/es/components/molecules/DatePicker/components/DropdownLabel/DropdownLabel.d.ts +0 -2
- package/es/components/molecules/DatePicker/components/DropdownLabel/DropdownLabel.js +14 -23
- package/es/components/molecules/DatePicker/components/ErrorMessage/ErrorMessage.js +2 -4
- package/es/components/molecules/DatePickerV2/index.js +10 -23
- package/es/components/molecules/DatePickerV2/styled.js +1 -2
- package/es/components/molecules/Drawer/Drawer.js +2 -3
- package/es/components/molecules/DrawerDetail/DrawerDetail.js +13 -34
- package/es/components/molecules/DrawerDetail/components/ToggleDrawerSizeButton.js +5 -17
- package/es/components/molecules/DrawerDetail/styled.js +11 -11
- package/es/components/molecules/Dropdown/Dropdown.d.ts +1 -2
- package/es/components/molecules/Dropdown/Dropdown.js +7 -20
- package/es/components/molecules/Dropdown/styled.js +7 -8
- package/es/components/molecules/EdgeSetting/index.js +58 -68
- package/es/components/molecules/EdgeSetting/styled.js +1 -2
- package/es/components/molecules/EditableName/EditableName.js +16 -29
- package/es/components/molecules/EditableName/styled.js +1 -2
- package/es/components/molecules/EditorScript/EditorScript.d.ts +0 -1
- package/es/components/molecules/EditorScript/EditorScript.js +20 -29
- package/es/components/molecules/EditorTab/EditorTab.js +56 -74
- package/es/components/molecules/EditorTab/styled.js +6 -6
- package/es/components/molecules/EmptyData/EmptyData.js +5 -25
- package/es/components/molecules/EmptyData/styled.js +5 -6
- package/es/components/molecules/FontFamilySelect/index.js +6 -17
- package/es/components/molecules/FontSetting/index.d.ts +3 -3
- package/es/components/molecules/FontSetting/index.js +28 -35
- package/es/components/molecules/FontWeightSelect/index.js +7 -18
- package/es/components/molecules/GradientSetting/index.js +37 -56
- package/es/components/molecules/HeaderV2/HeaderV2.d.ts +1 -1
- package/es/components/molecules/HeaderV2/HeaderV2.js +28 -43
- package/es/components/molecules/HeaderV2/styled.js +4 -5
- package/es/components/molecules/IconSelection/components/Icon/index.js +12 -17
- package/es/components/molecules/IconSelection/constants.js +4 -5
- package/es/components/molecules/IconSelection/index.js +25 -44
- package/es/components/molecules/IconSelection/styled.d.ts +1 -3
- package/es/components/molecules/IconSelection/styled.js +2 -3
- package/es/components/molecules/ImageEditor/ImageEditor.js +253 -219
- package/es/components/molecules/ImageEditor/components/ModalShortcut.js +2 -9
- package/es/components/molecules/ImageEditor/constants.js +6 -1
- package/es/components/molecules/ImageEditor/reducer.js +33 -9
- package/es/components/molecules/ImageEditor/styled.js +1 -1
- package/es/components/molecules/ImageResizeTuiEditor/ImageResizeTuiEditor.js +14 -15
- package/es/components/molecules/InputNumber/index.js +11 -24
- package/es/components/molecules/InputNumberWithUnit/index.js +3 -16
- package/es/components/molecules/InputNumberWithUnit/styled.js +2 -3
- package/es/components/molecules/InputSearch/index.js +4 -16
- package/es/components/molecules/InputSearch/styled.js +5 -6
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.d.ts +2 -3
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +140 -159
- package/es/components/molecules/MatchAnySelect/components/ExtendValuePopup.js +9 -22
- package/es/components/molecules/MatchAnySelect/styled.d.ts +5 -7
- package/es/components/molecules/MatchAnySelect/styled.js +9 -8
- package/es/components/molecules/MatchAnySelect/utils.js +22 -21
- package/es/components/molecules/Modal/Modal.js +11 -10
- package/es/components/molecules/Modal/styled.js +7 -8
- package/es/components/molecules/ModalSelect/Card.d.ts +3 -4
- package/es/components/molecules/ModalSelect/Card.js +24 -32
- package/es/components/molecules/ModalSelect/ModalSelect.d.ts +1 -2
- package/es/components/molecules/ModalSelect/ModalSelect.js +11 -18
- package/es/components/molecules/ModalSelect/index.d.ts +4 -5
- package/es/components/molecules/ModalSelect/styled.js +2 -2
- package/es/components/molecules/ModalV2/ModalV2.js +3 -17
- package/es/components/molecules/PopupDraggable/PopupDraggable.js +6 -10
- package/es/components/molecules/PopupDraggable/styled.js +18 -5
- package/es/components/molecules/PreviewModal/PreviewModal.js +3 -20
- package/es/components/molecules/PreviewModal/styled.d.ts +1 -1
- package/es/components/molecules/PreviewModal/styled.js +4 -3
- package/es/components/molecules/ProcessLoading/ProcessLoading.js +8 -27
- package/es/components/molecules/ProcessLoading/styled.js +1 -1
- package/es/components/molecules/RadioGroup/index.js +3 -17
- package/es/components/molecules/RequestAccess/RequestAccess.js +4 -14
- package/es/components/molecules/RequestAccess/styled.js +5 -5
- package/es/components/molecules/ResizeGrid/ResizeGrid.js +115 -75
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +23 -17
- package/es/components/molecules/ResizeGrid/constant.js +12 -3
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuBlock.js +19 -13
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/index.js +17 -44
- package/es/components/molecules/RichMenu/RichMenuBlock/styled.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuChatBar/RichMenuChatBar.js +3 -19
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/index.js +3 -8
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.js +1 -1
- package/es/components/molecules/RichMenu/RichMenuMobileView/RichMenuMobileView.js +12 -34
- package/es/components/molecules/RichMenu/RichMenuMobileView/styled.js +1 -2
- package/es/components/molecules/SearchPopover/SearchPopover.d.ts +1 -2
- package/es/components/molecules/SearchPopover/SearchPopover.js +4 -17
- package/es/components/molecules/SearchPopover/components/PopoverAddField/PopoverAddField.d.ts +1 -2
- package/es/components/molecules/SearchPopover/components/PopoverAddField/PopoverAddField.js +13 -25
- package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.d.ts +1 -2
- package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.js +11 -27
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.d.ts +1 -2
- package/es/components/molecules/SearchPopover/components/PopoverSelect/styled.js +3 -3
- package/es/components/molecules/SearchPopover/styled.d.ts +1 -2
- package/es/components/molecules/SearchPopover/styled.js +2 -1
- package/es/components/molecules/SearchPopover/utils.d.ts +1 -2
- package/es/components/molecules/SearchPopover/utils.js +6 -6
- package/es/components/molecules/Select/Select.js +6 -21
- package/es/components/molecules/Select/Test.d.ts +1 -2
- package/es/components/molecules/Select/Test.js +2 -2
- package/es/components/molecules/Select/styled.js +4 -5
- package/es/components/molecules/SelectAccount/AccountChip.js +4 -7
- package/es/components/molecules/SelectAccount/AccountItem.js +4 -4
- package/es/components/molecules/SelectAccount/AccountItemOnlyOne.js +2 -3
- package/es/components/molecules/SelectAccount/AccountList.js +26 -52
- package/es/components/molecules/SelectAccount/AccountListOnlyOne.d.ts +1 -2
- package/es/components/molecules/SelectAccount/AccountListOnlyOne.js +26 -48
- package/es/components/molecules/SelectAccount/ButtonAdd.d.ts +1 -2
- package/es/components/molecules/SelectAccount/ButtonAdd.js +4 -8
- package/es/components/molecules/SelectAccount/ButtonViewAll.d.ts +1 -2
- package/es/components/molecules/SelectAccount/ButtonViewAll.js +18 -20
- package/es/components/molecules/SelectAccount/Content.js +21 -26
- package/es/components/molecules/SelectAccount/context/SelectAccountContext.js +11 -17
- package/es/components/molecules/SelectAccount/context/reducer.js +8 -11
- package/es/components/molecules/SelectAccount/hook/useGetAbstractUsers.js +5 -2
- package/es/components/molecules/SelectAccount/index.js +2 -6
- package/es/components/molecules/SelectAccount/styled.d.ts +3 -9
- package/es/components/molecules/SelectAccount/styled.js +3 -2
- package/es/components/molecules/SelectAccount/utils.js +1 -1
- package/es/components/molecules/SelectEventAttribute/index.js +98 -63
- package/es/components/molecules/SelectEventAttribute/styled.d.ts +4 -5
- package/es/components/molecules/SelectMulti/index.js +11 -28
- package/es/components/molecules/SelectMulti/styled.js +11 -12
- package/es/components/molecules/SelectV2/index.d.ts +6 -6
- package/es/components/molecules/SelectV2/index.js +27 -50
- package/es/components/molecules/SelectV2/styled.js +18 -19
- package/es/components/molecules/SettingWrapper/index.js +4 -11
- package/es/components/molecules/SettingWrapper/styled.d.ts +3 -5
- package/es/components/molecules/SettingWrapper/styled.js +1 -1
- package/es/components/molecules/SettingWrapperPopover/index.d.ts +0 -6
- package/es/components/molecules/SettingWrapperPopover/index.js +11 -16
- package/es/components/molecules/ShareAccess/ShareAccess.d.ts +1 -2
- package/es/components/molecules/ShareAccess/ShareAccess.js +8 -4
- package/es/components/molecules/ShareAccess/components/GeneralAccess/GeneralAccess.js +23 -36
- package/es/components/molecules/ShareAccess/components/GeneralAccess/styled.js +2 -3
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.d.ts +1 -2
- package/es/components/molecules/ShareAccess/components/LayoutContent/LayoutContent.js +2 -6
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.d.ts +1 -2
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/ModalTransferOwnerShip.js +10 -6
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.d.ts +1 -2
- package/es/components/molecules/ShareAccess/components/PeopleAccess/PeopleAccess.js +26 -35
- package/es/components/molecules/ShareAccess/components/PeopleAccess/styled.js +2 -3
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.d.ts +1 -2
- package/es/components/molecules/ShareAccess/components/SearchUser/SearchUser.js +19 -27
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.js +8 -9
- package/es/components/molecules/ShareAccess/reducer.js +4 -1
- package/es/components/molecules/ShareAccess/utils.js +19 -10
- package/es/components/molecules/SliderWithInputNumber/index.js +10 -24
- package/es/components/molecules/SliderWithInputNumber/styled.js +1 -2
- package/es/components/molecules/TemplateSaveAs/TemplateSaveAs.js +111 -143
- package/es/components/molecules/TemplateSaveAs/TemplateSaveAsModal.js +6 -18
- package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +14 -28
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/BigImage.js +6 -13
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/ImageSlider.js +46 -71
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/SmallImage.js +7 -6
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.js +14 -18
- package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.js +24 -24
- package/es/components/molecules/TemplateSaveAs/styled.js +3 -4
- package/es/components/molecules/TextDecorationSelect/index.js +7 -18
- package/es/components/molecules/TextTransformSelect/index.js +7 -18
- package/es/components/molecules/ThumbnailCard/ThumbnailCard.d.ts +1 -2
- package/es/components/molecules/ThumbnailCard/ThumbnailCard.js +32 -62
- package/es/components/molecules/ThumbnailCard/styled.js +4 -4
- package/es/components/molecules/Tree/Tree.js +5 -16
- package/es/components/molecules/Tree/styled.js +1 -1
- package/es/components/molecules/Tree/utils.js +8 -2
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +1 -2
- package/es/components/molecules/UploadImage/MediaIcon.js +2 -3
- package/es/components/molecules/UploadImage/index.js +74 -137
- package/es/components/molecules/UploadImage/styled.js +4 -5
- package/es/components/molecules/VirtualizedMenu/VirtualizedMenu.js +2 -2
- package/es/components/molecules/VirtualizedMenu/components/Item/Item.d.ts +1 -1
- package/es/components/molecules/VirtualizedMenu/components/Item/Item.js +9 -11
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.d.ts +1 -2
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.js +15 -25
- package/es/components/molecules/VirtualizedMenu/config.js +2 -3
- package/es/components/molecules/VirtualizedMenu/styled.js +5 -6
- package/es/components/molecules/VirtualizedMenu/utils.js +1 -1
- package/es/components/organism/AccountProfile/AccountProfile.js +5 -5
- package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +181 -145
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/index.d.ts +1 -2
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/index.js +28 -94
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/index.d.ts +1 -2
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/index.js +7 -17
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.d.ts +1 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +2 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/UploadAvatar/index.d.ts +1 -2
- package/es/components/organism/AccountProfile/components/AccountSetting/components/UploadAvatar/index.js +9 -16
- package/es/components/organism/AccountProfile/components/AccountSetting/index.d.ts +2 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.d.ts +2 -4
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.js +4 -5
- package/es/components/organism/AccountProfile/components/AccountSetting/useModal.js +14 -20
- package/es/components/organism/AccountProfile/components/AccountSetting/utils.js +3 -12
- package/es/components/organism/AccountSharing/AccountSharing.js +57 -110
- package/es/components/organism/AccountSharing/icons/close.d.ts +1 -2
- package/es/components/organism/AccountSharing/icons/close.js +2 -4
- package/es/components/organism/AccountSharing/icons/search.d.ts +1 -2
- package/es/components/organism/AccountSharing/icons/search.js +2 -4
- package/es/components/organism/AccountSharing/index.d.ts +2 -1
- package/es/components/organism/AccountSharing/styled.js +13 -14
- package/es/components/organism/AlgorithmsSetting/constants.js +2 -2
- package/es/components/organism/AlgorithmsSetting/index.js +239 -363
- package/es/components/organism/AlgorithmsSetting/styled.d.ts +4 -4
- package/es/components/organism/AlgorithmsSetting/styled.js +3 -4
- package/es/components/organism/ContentSources/Content.d.ts +1 -2
- package/es/components/organism/ContentSources/Content.js +15 -18
- package/es/components/organism/ContentSources/Group.d.ts +1 -2
- package/es/components/organism/ContentSources/Group.js +37 -47
- package/es/components/organism/ContentSources/Settings.d.ts +1 -1
- package/es/components/organism/ContentSources/Settings.js +24 -36
- package/es/components/organism/ContentSources/components/LevelSetting/index.d.ts +1 -1
- package/es/components/organism/ContentSources/components/LevelSetting/index.js +2 -3
- package/es/components/organism/ContentSources/index.d.ts +1 -1
- package/es/components/organism/ContentSources/index.js +4 -5
- package/es/components/organism/ContentSources/provider.d.ts +1 -1
- package/es/components/organism/ContentSources/provider.js +3 -3
- package/es/components/organism/ContentSources/reducer.js +4 -1
- package/es/components/organism/ContentSources/utils.js +11 -11
- package/es/components/organism/DataTable/DataTable.d.ts +1 -2
- package/es/components/organism/DataTable/DataTable.js +14 -30
- package/es/components/organism/DataTable/components/AddButton/index.js +7 -17
- package/es/components/organism/DataTable/components/Filter/AddFilterButton.js +24 -24
- package/es/components/organism/DataTable/components/Filter/FilterActionButton.js +29 -41
- package/es/components/organism/DataTable/components/Filter/FilterCondition/index.js +21 -27
- package/es/components/organism/DataTable/components/Filter/FilterCondition/styled.js +4 -4
- package/es/components/organism/DataTable/components/Filter/FilterConditionList.js +37 -38
- package/es/components/organism/DataTable/components/Filter/FilterItem.js +10 -30
- package/es/components/organism/DataTable/components/Filter/SaveFilterPopover.js +7 -21
- package/es/components/organism/DataTable/components/Filter/SavedFilterAndMetrics.js +23 -44
- package/es/components/organism/DataTable/components/Filter/index.js +3 -7
- package/es/components/organism/DataTable/components/Filter/styled.js +5 -5
- package/es/components/organism/DataTable/components/GridView/index.js +4 -3
- package/es/components/organism/DataTable/components/ModifyColumn/index.js +61 -89
- package/es/components/organism/DataTable/components/ModifyColumn/styled.js +2 -1
- package/es/components/organism/DataTable/components/Pagination/index.js +9 -33
- package/es/components/organism/DataTable/components/Pagination/styled.js +4 -4
- package/es/components/organism/DataTable/components/Table/ResizableCell.js +19 -30
- package/es/components/organism/DataTable/components/Table/index.js +47 -46
- package/es/components/organism/DataTable/components/Toolbar/GroupByPopover.js +6 -16
- package/es/components/organism/DataTable/components/Toolbar/RowSelectedControl.js +9 -12
- package/es/components/organism/DataTable/components/Toolbar/SearchPopover.js +24 -51
- package/es/components/organism/DataTable/components/Toolbar/ToolbarActionButtons.js +20 -32
- package/es/components/organism/DataTable/components/Toolbar/index.js +19 -30
- package/es/components/organism/DataTable/components/Toolbar/styled.js +12 -12
- package/es/components/organism/DataTable/constants/theme.js +1 -1
- package/es/components/organism/DataTable/constants/toolbar.js +5 -5
- package/es/components/organism/DataTable/hooks/useAddFilterButton.js +11 -6
- package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +404 -232
- package/es/components/organism/DataTable/providers/AntdTableConfigProvider.js +3 -15
- package/es/components/organism/DataTable/providers/DataTableProvider.js +2 -3
- package/es/components/organism/DataTable/stores/index.js +32 -6
- package/es/components/organism/DataTable/styled/index.d.ts +1 -3
- package/es/components/organism/DataTable/styled/index.js +8 -7
- package/es/components/organism/DataTable/utils/filter.d.ts +2 -3
- package/es/components/organism/DataTable/utils/filter.js +40 -36
- package/es/components/organism/FilterSetting/components/common/InputArray/index.js +2 -3
- package/es/components/organism/FilterSetting/components/common/InputArray/styled.d.ts +4 -5
- package/es/components/organism/FilterSetting/components/common/InputArray/styled.js +1 -1
- package/es/components/organism/FilterSetting/components/common/InputBoolean/index.js +4 -15
- package/es/components/organism/FilterSetting/components/common/InputCalendar/index.js +6 -5
- package/es/components/organism/FilterSetting/components/common/InputCalendarBetween/index.js +7 -9
- package/es/components/organism/FilterSetting/components/common/InputDateTimeAgo/index.js +2 -5
- package/es/components/organism/FilterSetting/components/common/InputDateTimeBetweenAgo/index.js +3 -8
- package/es/components/organism/FilterSetting/components/common/InputNumber/index.js +2 -3
- package/es/components/organism/FilterSetting/components/common/InputNumberBetween/index.js +2 -6
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.d.ts +4 -12
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +215 -154
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.js +6 -15
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.js +8 -14
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +114 -178
- package/es/components/organism/FilterSetting/components/common/TextTreeSelect/index.js +2 -3
- package/es/components/organism/FilterSetting/index.js +91 -114
- package/es/components/organism/FilterSetting/styled.js +2 -3
- package/es/components/organism/FilterSetting/utils.js +7 -7
- package/es/components/organism/Help/Help.js +218 -313
- package/es/components/organism/Help/styled.d.ts +2 -6
- package/es/components/organism/Help/styled.js +27 -28
- package/es/components/organism/Help/utils.js +21 -22
- package/es/components/organism/LeftMenu/LeftMenu.js +27 -51
- package/es/components/organism/LeftMenu/components/CommonMenu/index.js +5 -4
- package/es/components/organism/LeftMenu/components/CustomMenu/index.js +3 -2
- package/es/components/organism/LeftMenu/components/HomeMenu/index.js +3 -10
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.d.ts +1 -3
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.js +4 -4
- package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.js +43 -33
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/index.js +5 -6
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.js +3 -4
- package/es/components/organism/LeftMenu/components/common/ChildMenu/index.js +49 -61
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.js +2 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/utils.js +9 -10
- package/es/components/organism/LeftMenu/hooks/useLeftMenu.js +19 -18
- package/es/components/organism/LeftMenu/hooks/useNavigatePath.js +9 -11
- package/es/components/organism/LeftMenu/hooks/usePermission.js +35 -35
- package/es/components/organism/LeftMenu/index.d.ts +1 -1
- package/es/components/organism/LeftMenu/index.js +3 -4
- package/es/components/organism/LeftMenu/providers/index.js +2 -3
- package/es/components/organism/LeftMenu/stores/index.js +5 -1
- package/es/components/organism/LeftMenu/styled.js +2 -2
- package/es/components/organism/LeftMenu/utils/index.js +168 -114
- package/es/components/organism/Login/Login.js +52 -64
- package/es/components/organism/Login/components/Avatar/Avatar.js +4 -10
- package/es/components/organism/Login/components/ForgotPassword/ForgotPassword.js +35 -34
- package/es/components/organism/Login/components/IconInfo/IconInfo.js +5 -12
- package/es/components/organism/Login/components/LoginSelectPortal/Item/Item.js +6 -11
- package/es/components/organism/Login/components/LoginSelectPortal/LoginSelectPortal.js +43 -43
- package/es/components/organism/Login/components/LoginStep2/LoginStep2.js +17 -37
- package/es/components/organism/Login/components/Logo/Logo.js +2 -2
- package/es/components/organism/Login/components/SetupGGAuthenticator/SetupGGAuthenticator.js +22 -49
- package/es/components/organism/Login/components/SignIn/SignIn.js +18 -29
- package/es/components/organism/Login/components/VerifyAccount/VerifyAccount.js +6 -15
- package/es/components/organism/Login/components/WidgetLayout/WidgetLayout.js +6 -12
- package/es/components/organism/Menu/Menu.js +2 -3
- package/es/components/organism/Menu/styled.d.ts +1 -1
- package/es/components/organism/Menu/styled.js +1 -1
- package/es/components/organism/ModifyColumnModal/ModifyColumnModal.js +54 -96
- package/es/components/organism/ModifyColumnModal/SelectedMetricsList.js +18 -38
- package/es/components/organism/ModifyColumnModal/styled.d.ts +2 -1
- package/es/components/organism/ModifyColumnModal/styled.js +16 -15
- package/es/components/organism/Notification/Notification.js +54 -71
- package/es/components/organism/Notification/styled.d.ts +1 -3
- package/es/components/organism/Notification/styled.js +11 -12
- package/es/components/organism/PositionSetting/index.js +15 -10
- package/es/components/organism/PreviewTemplateModal/components/Banner/index.js +9 -24
- package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +3 -3
- package/es/components/organism/PreviewTemplateModal/components/Information/index.js +3 -18
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.d.ts +1 -3
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.js +3 -3
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/index.js +7 -20
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.js +2 -2
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/index.js +26 -44
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +3 -4
- package/es/components/organism/PreviewTemplateModal/index.js +6 -24
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/BannerPropsTable/index.js +8 -12
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/DataTypeTable/index.js +10 -15
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/InformationPropsTable/index.js +20 -33
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/SimilarTemplatePropsTable/index.js +11 -17
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/TThumbnailTable/index.js +8 -11
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/components/ThumbnailPropsTable/index.js +11 -22
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/dataType.stories.d.ts +6 -6
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/dataType.stories.js +7 -6
- package/es/components/organism/Table/CrossTabTable/CrossTabTable.js +8 -20
- package/es/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.js +4 -6
- package/es/components/organism/Table/ExplorePivotTable/ExplorePivotTable.js +5 -10
- package/es/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.js +8 -12
- package/es/components/organism/Table/ExplorePivotTable/utils.js +19 -12
- package/es/components/organism/TicketEditor/Content.d.ts +1 -2
- package/es/components/organism/TicketEditor/Content.js +87 -147
- package/es/components/organism/TicketEditor/Service.js +8 -8
- package/es/components/organism/TicketEditor/components/DropdownComponent.d.ts +1 -2
- package/es/components/organism/TicketEditor/components/DropdownComponent.js +13 -3
- package/es/components/organism/TicketEditor/components/Message.d.ts +1 -2
- package/es/components/organism/TicketEditor/components/Message.js +11 -19
- package/es/components/organism/TicketEditor/components/MessageComponent.d.ts +1 -2
- package/es/components/organism/TicketEditor/components/MessageComponent.js +26 -61
- package/es/components/organism/TicketEditor/components/icons/AddTicketIcon.d.ts +1 -2
- package/es/components/organism/TicketEditor/components/icons/AddTicketIcon.js +2 -5
- package/es/components/organism/TicketEditor/components/icons/TicketIcon.d.ts +1 -2
- package/es/components/organism/TicketEditor/components/icons/TicketIcon.js +2 -3
- package/es/components/organism/TicketEditor/index.d.ts +1 -2
- package/es/components/organism/TicketEditor/index.js +38 -57
- package/es/components/organism/TicketEditor/styled.d.ts +2 -6
- package/es/components/organism/TicketEditor/styled.js +8 -4
- package/es/components/organism/TicketEditor/util.js +42 -37
- package/es/components/template/Layout/Layout.d.ts +2 -2
- package/es/components/template/Layout/Layout.js +88 -78
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/index.js +20 -24
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/styled.js +3 -4
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/components/OldLeftMenu/utils/index.js +2 -3
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/index.js +11 -16
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.js +5 -6
- package/es/components/template/Layout/components/RecommendationWorkspace/components/RecommendationImage/index.js +2 -7
- package/es/components/template/Layout/components/RecommendationWorkspace/index.js +2 -5
- package/es/components/template/Layout/stores/index.js +11 -8
- package/es/components/template/Layout/styled.d.ts +1 -1
- package/es/components/template/Layout/styled.js +4 -4
- package/es/components/template/Layout/utils/permission.js +3 -4
- package/es/components/template/TemplateListing/Loadable.d.ts +1 -0
- package/es/components/template/TemplateListing/components/BlankTemplate/index.js +4 -7
- package/es/components/template/TemplateListing/components/BlankTemplate/styled.js +1 -1
- package/es/components/template/TemplateListing/components/CategoryListing/index.js +49 -63
- package/es/components/template/TemplateListing/components/CategoryListing/styled.js +2 -3
- package/es/components/template/TemplateListing/components/Empty/index.js +3 -6
- package/es/components/template/TemplateListing/components/Empty/styled.js +3 -4
- package/es/components/template/TemplateListing/hooks/useTemplateListing.js +35 -24
- package/es/components/template/TemplateListing/index.js +27 -48
- package/es/components/template/TemplateListing/stories/dataTypes/components/BlankTemplatePropsTable/index.js +14 -15
- package/es/components/template/TemplateListing/stories/dataTypes/components/CategoryListingPropsTable/index.js +26 -28
- package/es/components/template/TemplateListing/stories/dataTypes/components/DataTypeTables/index.js +14 -21
- package/es/components/template/TemplateListing/stories/dataTypes/components/EmptyPropsTable/index.js +8 -9
- package/es/components/template/TemplateListing/stories/dataTypes/components/TCategoryItemTable/index.js +14 -15
- package/es/components/template/TemplateListing/stories/dataTypes/components/TTemplateItemTable/index.js +11 -12
- package/es/components/template/TemplateListing/stories/dataTypes/components/TemplatesPropsTable/index.js +17 -21
- package/es/components/template/TemplateListing/stories/dataTypes/dataType.stories.d.ts +7 -7
- package/es/components/template/TemplateListing/stories/dataTypes/dataType.stories.js +8 -7
- package/es/constants/storybook.d.ts +1 -2
- package/es/constants/storybook.js +2 -2
- package/es/constants/theme.js +34 -35
- package/es/hooks/createEffectWithTarget .js +2 -4
- package/es/hooks/index.js +1 -1
- package/es/hooks/useCustomRouter.js +1 -1
- package/es/hooks/useDeepCompareMemo.js +1 -1
- package/es/hooks/useDragEvent.js +2 -4
- package/es/hooks/useEffectDebugger.js +7 -4
- package/es/hooks/useEventListener.js +1 -2
- package/es/hooks/useIntersectionObserver.js +4 -6
- package/es/hooks/useListingItemResize.js +3 -4
- package/es/hooks/useMutationObserver.js +1 -1
- package/es/hooks/useUpdateEffect.js +1 -1
- package/es/hooks/useWindowSize.js +3 -1
- package/es/models/SavedMedia.js +5 -8
- package/es/providers/AppConfigProvider/contexts/index.js +7 -3
- package/es/providers/ConfigProvider/ConfigProvider.js +8 -27
- package/es/providers/ConfigProvider/GlobalStyle.js +74 -78
- package/es/queries/Account/useGetAccountList.js +21 -5
- package/es/queries/BusinessObject/useGetBODetail.js +8 -12
- package/es/queries/BusinessObject/useGetDataTableBO.js +4 -13
- package/es/queries/BusinessObject/useGetListAllEvents.js +7 -2
- package/es/queries/BusinessObject/useGetListAttributeBO.js +12 -15
- package/es/queries/BusinessObject/useGetListBO.js +7 -12
- package/es/queries/BusinessObject/useGetListEventAttr.js +7 -2
- package/es/queries/BusinessObject/useGetListPromotionCodeAttr.js +9 -15
- package/es/queries/BusinessObject/useGetListSourceByEvent.js +7 -1
- package/es/queries/CustomFunction/useCustomFunction.js +9 -14
- package/es/queries/DataTable/index.js +129 -20
- package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.js +7 -12
- package/es/queries/LeftMenu/index.js +26 -4
- package/es/queries/Permission/index.js +5 -1
- package/es/queries/PromotionPool/useGetListPromotionPool.js +7 -12
- package/es/queries/TemplateListing/index.js +67 -35
- package/es/queries/ThirdParty/useGetEventTrackingAttributes.js +8 -2
- package/es/queries/ThirdParty/useGetListFallbackBO.js +6 -1
- package/es/services/Abstract/index.js +12 -15
- package/es/services/Account/index.js +15 -26
- package/es/services/DataTable/index.js +168 -104
- package/es/services/LeftMenu/index.js +18 -27
- package/es/services/MediaTemplateDesign/BusinessObject/index.js +75 -84
- package/es/services/MediaTemplateDesign/CustomFunction/index.js +33 -36
- package/es/services/MediaTemplateDesign/DynamicContentAttribute/index.js +26 -19
- package/es/services/MediaTemplateDesign/ListCurrency/index.js +4 -13
- package/es/services/MediaTemplateDesign/PromotionPool/index.js +8 -15
- package/es/services/MediaTemplateDesign/UploadFile/index.js +15 -33
- package/es/services/Permission/index.js +8 -25
- package/es/services/TemplateListing/index.js +69 -59
- package/es/services/ThirParty/ListFallbackBO/getListFallbackBO.js +3 -12
- package/es/services/ThirParty/TableBO/index.js +3 -12
- package/es/services/ThirParty/index.js +6 -12
- package/es/services/Ticket.js +16 -16
- package/es/services/index.js +26 -20
- package/es/styled/common.js +2 -2
- package/es/test.d.ts +1 -2
- package/es/test.js +17 -13
- package/es/tests/DataTableTest.js +7 -11
- package/es/tests/MatchesAnySelect.d.ts +1 -2
- package/es/tests/MatchesAnySelect.js +18 -18
- package/es/utils/actionButtons.js +9 -13
- package/es/utils/common.js +12 -6
- package/es/utils/commonComponent.js +4 -14
- package/es/utils/cookie.js +17 -6
- package/es/utils/dataTable.js +7 -19
- package/es/utils/handleError.js +3 -23
- package/es/utils/loadable.js +3 -3
- package/es/utils/templateListing.js +1 -2
- package/es/utils/validateURL.d.ts +1 -0
- package/es/utils/validateURL.js +5 -0
- package/package.json +34 -42
- package/es/stories/assets/code-brackets.svg +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { queryClientAntsomiUI, QueryClientProviderAntsomiUI, } from '@antscorp/antsomi-ui/es/queries/configs';
|
|
4
3
|
// Context
|
|
5
4
|
import { SelectAccountProvider } from './context/SelectAccountContext';
|
|
@@ -7,10 +6,7 @@ import { SelectAccountProvider } from './context/SelectAccountContext';
|
|
|
7
6
|
import { Content } from './Content';
|
|
8
7
|
// Provider
|
|
9
8
|
import { AntdTableConfigProvider } from '../../organism/DataTable/providers';
|
|
10
|
-
export const SelectAccount = props => (
|
|
11
|
-
React.createElement(AntdTableConfigProvider, null,
|
|
12
|
-
React.createElement(SelectAccountProvider, Object.assign({}, props),
|
|
13
|
-
React.createElement(Content, null)))));
|
|
9
|
+
export const SelectAccount = props => (_jsx(QueryClientProviderAntsomiUI, { client: queryClientAntsomiUI, children: _jsx(AntdTableConfigProvider, { children: _jsx(SelectAccountProvider, { ...props, children: _jsx(Content, {}) }) }) }));
|
|
14
10
|
SelectAccount.defaultProps = {
|
|
15
11
|
initData: [],
|
|
16
12
|
limit: 10,
|
|
@@ -6,19 +6,13 @@ export declare const AccountChipWrapper: import("styled-components").StyledCompo
|
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
isError?: boolean | undefined;
|
|
8
8
|
}, never>;
|
|
9
|
-
export declare const ButtonAddStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd
|
|
10
|
-
|
|
11
|
-
}, any, {}, never>;
|
|
12
|
-
export declare const ButtonViewAllStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/button/button").ButtonProps & import("react").RefAttributes<HTMLElement>> & {
|
|
13
|
-
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
14
|
-
}, any, {}, never>;
|
|
9
|
+
export declare const ButtonAddStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {}, never>;
|
|
10
|
+
export declare const ButtonViewAllStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {}, never>;
|
|
15
11
|
export declare const AccountListWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
12
|
export declare const AccountListBody: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
13
|
export declare const AccountListFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
14
|
export declare const AccountListTitleGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
15
|
export declare const AccountListContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
20
|
-
export declare const CheckboxStyled: import("styled-components").StyledComponent<import("react").
|
|
21
|
-
Group: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("antd/es/checkbox").CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
22
|
-
}, any, {}, never>;
|
|
16
|
+
export declare const CheckboxStyled: import("styled-components").StyledComponent<import("react").FC<import("antd").CheckboxProps>, any, {}, never>;
|
|
23
17
|
export declare const ViewAllWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
24
18
|
export declare const ItemOnlyOne: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { Button
|
|
2
|
+
import { Button } from '@antscorp/antsomi-ui/es/components/atoms/Button';
|
|
3
|
+
import { Checkbox } from '@antscorp/antsomi-ui/es/components/atoms/Checkbox';
|
|
3
4
|
export const Wrapper = styled.div `
|
|
4
5
|
display: flex;
|
|
5
6
|
gap: 5px;
|
|
6
7
|
flex-wrap: wrap;
|
|
7
8
|
width: 100%;
|
|
8
|
-
pointer-events: ${props => (
|
|
9
|
+
pointer-events: ${props => (props?.disabled ? 'none' : 'initial')};
|
|
9
10
|
`;
|
|
10
11
|
export const AccountChipWrapper = styled.div `
|
|
11
12
|
color: #000000;
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
11
|
-
var t = {};
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13
|
-
t[p] = s[p];
|
|
14
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
17
|
-
t[p[i]] = s[p[i]];
|
|
18
|
-
}
|
|
19
|
-
return t;
|
|
20
|
-
};
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
2
|
// Libraries
|
|
22
|
-
import
|
|
3
|
+
import { memo, useEffect, useMemo, useState } from 'react';
|
|
23
4
|
import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
24
5
|
import get from 'lodash/get';
|
|
25
6
|
// Hooks
|
|
@@ -47,7 +28,7 @@ export const SelectEventAttribute = memo(props => {
|
|
|
47
28
|
// Selectors
|
|
48
29
|
const { triggerEvent } = journeySettings || {};
|
|
49
30
|
const serviceAuth = useSelectServiceAuth();
|
|
50
|
-
const { url = ''
|
|
31
|
+
const { url = '', ...restAuthInfo } = serviceAuth;
|
|
51
32
|
// State
|
|
52
33
|
const [listEvent, setListEvent] = useState([]);
|
|
53
34
|
const [listSourceByEvent, setListSourceByEvent] = useState([]);
|
|
@@ -79,7 +60,7 @@ export const SelectEventAttribute = memo(props => {
|
|
|
79
60
|
// Handle set trigger event when didn't chose event and trigger event is exists
|
|
80
61
|
useDeepCompareEffect(() => {
|
|
81
62
|
const { eventActionId, eventCategoryId, insightPropertyIds = [] } = triggerEvent || {};
|
|
82
|
-
const draftEventMetadata =
|
|
63
|
+
const draftEventMetadata = { ...eventMetadata };
|
|
83
64
|
if (!!eventActionId &&
|
|
84
65
|
!!eventCategoryId &&
|
|
85
66
|
listEvent.length &&
|
|
@@ -107,9 +88,8 @@ export const SelectEventAttribute = memo(props => {
|
|
|
107
88
|
}
|
|
108
89
|
}, [eventMetadata.event_action_id, eventMetadata.event_category_id]);
|
|
109
90
|
useEffect(() => {
|
|
110
|
-
var _a;
|
|
111
91
|
if (typeof eventMetadata.insight_property_id === 'object' &&
|
|
112
|
-
!
|
|
92
|
+
!eventMetadata.insight_property_id?.length) {
|
|
113
93
|
return;
|
|
114
94
|
}
|
|
115
95
|
if (!eventMetadata.insight_property_id) {
|
|
@@ -125,10 +105,13 @@ export const SelectEventAttribute = memo(props => {
|
|
|
125
105
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
126
106
|
}, [eventMetadata.insight_property_id]);
|
|
127
107
|
// Handlers
|
|
128
|
-
const getListEvents = () =>
|
|
108
|
+
const getListEvents = async () => {
|
|
129
109
|
try {
|
|
130
|
-
setLoading(loading => (
|
|
131
|
-
|
|
110
|
+
setLoading(loading => ({
|
|
111
|
+
...loading,
|
|
112
|
+
isLoadingEvent: true,
|
|
113
|
+
}));
|
|
114
|
+
const { rows } = await getListAllEvents({ url }, restAuthInfo);
|
|
132
115
|
setListEvent(rows);
|
|
133
116
|
}
|
|
134
117
|
catch (error) {
|
|
@@ -139,13 +122,19 @@ export const SelectEventAttribute = memo(props => {
|
|
|
139
122
|
});
|
|
140
123
|
}
|
|
141
124
|
finally {
|
|
142
|
-
setLoading(loading => (
|
|
125
|
+
setLoading(loading => ({
|
|
126
|
+
...loading,
|
|
127
|
+
isLoadingEvent: false,
|
|
128
|
+
}));
|
|
143
129
|
}
|
|
144
|
-
}
|
|
145
|
-
const getListSources =
|
|
130
|
+
};
|
|
131
|
+
const getListSources = async ({ event_action_id, event_category_id }) => {
|
|
146
132
|
try {
|
|
147
|
-
setLoading(loading => (
|
|
148
|
-
|
|
133
|
+
setLoading(loading => ({
|
|
134
|
+
...loading,
|
|
135
|
+
isLoadingSource: true,
|
|
136
|
+
}));
|
|
137
|
+
const { rows } = await getListSourceByEvent({
|
|
149
138
|
url,
|
|
150
139
|
eventActionId: event_action_id,
|
|
151
140
|
eventCategoryId: event_category_id,
|
|
@@ -160,29 +149,41 @@ export const SelectEventAttribute = memo(props => {
|
|
|
160
149
|
});
|
|
161
150
|
}
|
|
162
151
|
finally {
|
|
163
|
-
setLoading(loading => (
|
|
152
|
+
setLoading(loading => ({
|
|
153
|
+
...loading,
|
|
154
|
+
isLoadingSource: false,
|
|
155
|
+
}));
|
|
164
156
|
}
|
|
165
|
-
}
|
|
166
|
-
const getListAttributes =
|
|
157
|
+
};
|
|
158
|
+
const getListAttributes = async ({ insight_property_id, event_action_id, event_category_id }) => {
|
|
167
159
|
try {
|
|
168
|
-
setLoading(loading => (
|
|
169
|
-
|
|
160
|
+
setLoading(loading => ({
|
|
161
|
+
...loading,
|
|
162
|
+
isLoadingAttrs: true,
|
|
163
|
+
}));
|
|
164
|
+
const { rows } = await getListAttributesEvent(serviceAuth, {
|
|
170
165
|
sourceId: insight_property_id,
|
|
171
166
|
eventActionId: event_action_id,
|
|
172
167
|
eventCategoryId: event_category_id,
|
|
173
168
|
});
|
|
174
169
|
setEventAttrs(rows);
|
|
175
|
-
const treeAttrs = rows.map((attr) => (
|
|
170
|
+
const treeAttrs = rows.map((attr) => ({
|
|
171
|
+
value: get(attr, 'items.length', 0)
|
|
176
172
|
? `sub-${attr.eventPropertyName}`
|
|
177
|
-
: attr.eventPropertyName,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
173
|
+
: attr.eventPropertyName,
|
|
174
|
+
title: attr.eventPropertyDisplay,
|
|
175
|
+
isLeaf: attr.items ? get(attr, 'items.length', 0) === 0 : true,
|
|
176
|
+
selectable: attr.items ? get(attr, 'items.length', 0) === 0 : true,
|
|
177
|
+
...(attr.items &&
|
|
178
|
+
get(attr, 'items.length', 0) && {
|
|
179
|
+
children: attr.items.map((childAttr) => ({
|
|
180
|
+
value: `${childAttr.itemTypeId}.${childAttr.itemPropertyName}`,
|
|
181
|
+
title: childAttr.translateLabel,
|
|
182
|
+
status: childAttr.status,
|
|
183
|
+
isLeaf: true,
|
|
184
|
+
})),
|
|
185
|
+
}),
|
|
186
|
+
}));
|
|
186
187
|
setTreeEventAttrs(treeAttrs);
|
|
187
188
|
}
|
|
188
189
|
catch (error) {
|
|
@@ -193,15 +194,28 @@ export const SelectEventAttribute = memo(props => {
|
|
|
193
194
|
});
|
|
194
195
|
}
|
|
195
196
|
finally {
|
|
196
|
-
setLoading(loading => (
|
|
197
|
+
setLoading(loading => ({
|
|
198
|
+
...loading,
|
|
199
|
+
isLoadingAttrs: false,
|
|
200
|
+
}));
|
|
197
201
|
}
|
|
198
|
-
}
|
|
202
|
+
};
|
|
199
203
|
const onChangeEvent = (value) => {
|
|
200
204
|
try {
|
|
201
205
|
const eventSelected = listEvent.find(event => event.value === value);
|
|
202
|
-
onChange(
|
|
206
|
+
onChange({
|
|
207
|
+
...eventMetadata,
|
|
208
|
+
event_action_id: eventSelected.eventActionId,
|
|
209
|
+
event_category_id: eventSelected.eventCategoryId,
|
|
210
|
+
event_tracking_name: eventSelected.eventTrackingName,
|
|
203
211
|
// resets
|
|
204
|
-
insight_property_id: null,
|
|
212
|
+
insight_property_id: null,
|
|
213
|
+
item_type_id: null,
|
|
214
|
+
item_type_name: null,
|
|
215
|
+
item_property_name: null,
|
|
216
|
+
item_property_label: null,
|
|
217
|
+
event_property_syntax: null,
|
|
218
|
+
});
|
|
205
219
|
setEventAttrs([]);
|
|
206
220
|
setTreeEventAttrs([]);
|
|
207
221
|
}
|
|
@@ -220,9 +234,16 @@ export const SelectEventAttribute = memo(props => {
|
|
|
220
234
|
setTreeEventAttrs([]);
|
|
221
235
|
setEventAttrs([]);
|
|
222
236
|
}
|
|
223
|
-
onChange(
|
|
237
|
+
onChange({
|
|
238
|
+
...eventMetadata,
|
|
239
|
+
insight_property_id: sourcesSelected.map(source => source.insightPropertyId),
|
|
224
240
|
// resets
|
|
225
|
-
item_type_id: null,
|
|
241
|
+
item_type_id: null,
|
|
242
|
+
item_type_name: null,
|
|
243
|
+
item_property_name: null,
|
|
244
|
+
item_property_label: null,
|
|
245
|
+
event_property_syntax: null,
|
|
246
|
+
});
|
|
226
247
|
}
|
|
227
248
|
catch (error) {
|
|
228
249
|
handleError(error, {
|
|
@@ -238,14 +259,28 @@ export const SelectEventAttribute = memo(props => {
|
|
|
238
259
|
if (!item) {
|
|
239
260
|
const selected = eventAttrs.find(attr => attr.value === attribute);
|
|
240
261
|
if (selected) {
|
|
241
|
-
onChange(
|
|
262
|
+
onChange({
|
|
263
|
+
...eventMetadata,
|
|
264
|
+
item_type_id: null,
|
|
265
|
+
item_type_name: null,
|
|
266
|
+
item_property_name: selected.eventPropertyName,
|
|
267
|
+
item_property_label: selected.label,
|
|
268
|
+
event_property_syntax: selected.eventPropertySyntax,
|
|
269
|
+
});
|
|
242
270
|
}
|
|
243
271
|
}
|
|
244
272
|
else {
|
|
245
273
|
const selectedAttribute = eventAttrs.find(attr => +attr.itemTypeId === +attribute);
|
|
246
274
|
const selected = selectedAttribute.items.find((attr) => attr.itemPropertyName === item);
|
|
247
275
|
if (selected) {
|
|
248
|
-
onChange(
|
|
276
|
+
onChange({
|
|
277
|
+
...eventMetadata,
|
|
278
|
+
item_type_id: selected.itemTypeId,
|
|
279
|
+
item_type_name: selected.itemTypeName,
|
|
280
|
+
item_property_name: selected.itemPropertyName,
|
|
281
|
+
item_property_label: selected.translateLabel,
|
|
282
|
+
event_property_syntax: selected.eventPropertySyntax,
|
|
283
|
+
});
|
|
249
284
|
}
|
|
250
285
|
}
|
|
251
286
|
}
|
|
@@ -257,11 +292,11 @@ export const SelectEventAttribute = memo(props => {
|
|
|
257
292
|
});
|
|
258
293
|
}
|
|
259
294
|
};
|
|
260
|
-
return (
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
295
|
+
return (_jsxs(SelectEventAttributeWrapper, { style: styleWrapper, children: [_jsx(Select, { showSearch: true, required: true, focused: isShowErrorAlert, value: eventMetadata.event_tracking_name || undefined, loading: loading.isLoadingEvent, placeholder: t(translations.selectEvent.title).toString(), options: listEvent.map(({ value, label }) => ({ value, label })), onChange: onChangeEvent }), _jsx(StyledSelect, { showSearch: true, required: true, focused: isShowErrorAlert, value: eventMetadata.insight_property_id || undefined, mode: "multiple", allowClear: true, maxTagTextLength: 18, loading: loading.isLoadingSource, placeholder: t(translations.inAnySourceOf.title).toString(), options: listSourceByEvent.map(({ value, label }) => ({ value, label })), onChange: onChangeSource }), _jsx(TreeSelect, { showSearch: true,
|
|
296
|
+
// required
|
|
297
|
+
// focused={isShowErrorAlert}
|
|
298
|
+
value: memoizedEventAttributeValue || undefined, placeholder: t(translations.selectEventAttribute.title).toString(), treeData: treeEventAttrs.map(attr => ({
|
|
299
|
+
...attr,
|
|
300
|
+
children: buildOptionAttrArchive(attr.children || [], memoizedEventAttributeValue),
|
|
301
|
+
})), loading: loading.isLoadingAttrs, onChange: onChangeEventAttribute, status: errorMessage ? 'error' : '' })] }));
|
|
267
302
|
});
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SelectEventAttributeWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
2
|
export declare const StyledSelect: import("styled-components").StyledComponent<{
|
|
4
|
-
(props: import("@antscorp/antsomi-ui/es/components/molecules").SelectV2Props): import("react").JSX.Element;
|
|
3
|
+
(props: import("@antscorp/antsomi-ui/es/components/molecules").SelectV2Props): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
defaultProps: {
|
|
6
|
-
suffixIcon: import("react").JSX.Element;
|
|
5
|
+
suffixIcon: import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
filterOption: (input: any, option: any) => boolean;
|
|
8
|
-
tagRender: (props: any) => import("react").JSX.Element;
|
|
7
|
+
tagRender: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
containerStyle: {};
|
|
10
9
|
labelStyle: {};
|
|
11
|
-
clearIcon: import("react").JSX.Element;
|
|
10
|
+
clearIcon: import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
};
|
|
13
12
|
}, any, {}, never>;
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
// Libraries
|
|
13
|
-
import React from 'react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
2
|
// Antd components
|
|
15
3
|
import { Select as AntdSelect } from 'antd';
|
|
16
4
|
// Atoms
|
|
@@ -18,33 +6,28 @@ import { Text, Checkbox, Icon } from '../../atoms';
|
|
|
18
6
|
// Styled
|
|
19
7
|
import { StyledSelect, SelectWrapper as SelectMultiWrapper } from './styled';
|
|
20
8
|
export const SelectMulti = props => {
|
|
21
|
-
const { label, children
|
|
22
|
-
return (
|
|
23
|
-
label && (React.createElement(Text, { style: { marginBottom: 5 }, color: "#666666" }, label)),
|
|
24
|
-
React.createElement(StyledSelect, Object.assign({}, restOf), children),
|
|
25
|
-
React.createElement(Icon, { type: "icon-antsomi-expand-more", className: "icon-arrow-down" })));
|
|
9
|
+
const { label, children, ...restOf } = props;
|
|
10
|
+
return (_jsxs(SelectMultiWrapper, { children: [label && (_jsx(Text, { style: { marginBottom: 5 }, color: "#666666", children: label })), _jsx(StyledSelect, { ...restOf, children: children }), _jsx(Icon, { type: "icon-antsomi-expand-more", className: "icon-arrow-down" })] }));
|
|
26
11
|
};
|
|
27
12
|
export const SelectMultiOption = AntdSelect.Option;
|
|
28
13
|
export const SelectMultOptGroup = AntdSelect.OptGroup;
|
|
29
14
|
export const SelectOptionLabel = props => {
|
|
30
15
|
const { title, label, checked, onClick, disabled } = props;
|
|
31
|
-
return (
|
|
16
|
+
return (_jsxs("div", { style: {
|
|
32
17
|
display: 'flex',
|
|
33
18
|
alignItems: 'center',
|
|
34
19
|
pointerEvents: disabled ? 'none' : 'auto',
|
|
35
20
|
opacity: disabled ? 0.5 : 1,
|
|
36
|
-
}, onClick: onClick },
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
whiteSpace: 'nowrap',
|
|
43
|
-
}, title: title || label }, label)));
|
|
21
|
+
}, onClick: onClick, children: [_jsx(Checkbox, { checked: checked }), _jsx(Text, { style: {
|
|
22
|
+
marginLeft: 8,
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
textOverflow: 'ellipsis',
|
|
25
|
+
whiteSpace: 'nowrap',
|
|
26
|
+
}, title: title || label, children: label })] }));
|
|
44
27
|
};
|
|
45
28
|
SelectMulti.defaultProps = {
|
|
46
29
|
mode: 'multiple',
|
|
47
|
-
suffixIcon:
|
|
30
|
+
suffixIcon: _jsx(Icon, { type: "icon-antsomi-expand-more" }),
|
|
48
31
|
value: [],
|
|
49
32
|
onChange: () => { },
|
|
50
33
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2
1
|
// Libraries
|
|
3
2
|
import styled from 'styled-components';
|
|
4
3
|
// Antd components
|
|
@@ -17,31 +16,31 @@ export const SelectWrapper = styled.div `
|
|
|
17
16
|
}
|
|
18
17
|
`;
|
|
19
18
|
export const StyledSelect = styled(AntdSelect) `
|
|
20
|
-
font-family: ${
|
|
19
|
+
font-family: ${THEME.token?.fontFamily};
|
|
21
20
|
|
|
22
21
|
.antsomi-select-arrow {
|
|
23
22
|
display: flex;
|
|
24
23
|
align-items: center;
|
|
25
|
-
color: ${
|
|
24
|
+
color: ${THEME.token?.colorTextBase} !important;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.antsomi-select-selector {
|
|
29
28
|
justify-content: space-between;
|
|
30
29
|
height: 30px;
|
|
31
30
|
padding: 0 5px;
|
|
32
|
-
font-size: ${
|
|
31
|
+
font-size: ${THEME.token?.fontSize}px;
|
|
33
32
|
font-weight: normal;
|
|
34
33
|
|
|
35
34
|
transition: all 0.3s ease;
|
|
36
|
-
color: ${
|
|
35
|
+
color: ${THEME.token?.colorTextBase};
|
|
37
36
|
|
|
38
37
|
&:hover {
|
|
39
|
-
background-color: ${
|
|
38
|
+
background-color: ${THEME.token?.blue0};
|
|
40
39
|
}
|
|
41
40
|
|
|
42
41
|
border-radius: 0px !important;
|
|
43
42
|
border-style: none !important;
|
|
44
|
-
--tw-shadow: 0 1px 0 0 ${
|
|
43
|
+
--tw-shadow: 0 1px 0 0 ${THEME.token?.blue1} !important;
|
|
45
44
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
46
45
|
var(--tw-shadow) !important;
|
|
47
46
|
|
|
@@ -50,22 +49,22 @@ export const StyledSelect = styled(AntdSelect) `
|
|
|
50
49
|
|
|
51
50
|
&:active,
|
|
52
51
|
&:focus {
|
|
53
|
-
background-color: ${
|
|
52
|
+
background-color: ${THEME.token?.blue0};
|
|
54
53
|
--tw-shadow: 0 1px 0 0 #194e8d !important;
|
|
55
54
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000),
|
|
56
55
|
var(--tw-shadow) !important;
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
&:disabled {
|
|
60
|
-
background-color: ${
|
|
61
|
-
color: ${
|
|
62
|
-
box-shadow: 0 1px 0 0 ${
|
|
59
|
+
background-color: ${THEME.token?.accent};
|
|
60
|
+
color: ${THEME.token?.accent5};
|
|
61
|
+
box-shadow: 0 1px 0 0 ${THEME.token?.accent1};
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
&.antsomi-select-disabled {
|
|
67
66
|
.antsomi-select-arrow {
|
|
68
|
-
color: ${
|
|
67
|
+
color: ${THEME.token?.accent5} !important;
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import type { CustomTagProps } from 'rc-select/lib/BaseSelect';
|
|
3
3
|
import { CSSProperties } from 'styled-components';
|
|
4
4
|
import { SelectProps as AntdSelectProps } from 'antd';
|
|
@@ -20,15 +20,15 @@ type TTagRender = CustomTagProps & {
|
|
|
20
20
|
style?: CSSProperties;
|
|
21
21
|
};
|
|
22
22
|
export declare const SelectV2: {
|
|
23
|
-
(props: SelectProps):
|
|
23
|
+
(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
defaultProps: {
|
|
25
|
-
suffixIcon:
|
|
25
|
+
suffixIcon: import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
filterOption: (input: any, option: any) => boolean;
|
|
27
|
-
tagRender: (props: any) =>
|
|
27
|
+
tagRender: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
containerStyle: {};
|
|
29
29
|
labelStyle: {};
|
|
30
|
-
clearIcon:
|
|
30
|
+
clearIcon: import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export declare const tagRender: (props: TTagRender) =>
|
|
33
|
+
export declare const tagRender: (props: TTagRender) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export {};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
2
|
// Libraries
|
|
13
|
-
import
|
|
3
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
14
4
|
// Atoms
|
|
15
5
|
import { RequiredLabel, Spin, Text, Icon } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
16
6
|
// Styled
|
|
@@ -21,7 +11,7 @@ import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
|
21
11
|
// Constants
|
|
22
12
|
import { THEME } from '@antscorp/antsomi-ui/es/constants';
|
|
23
13
|
export const SelectV2 = (props) => {
|
|
24
|
-
const { label, children, errorMsg, labelClassname, showCount, maxLength, description, errorArchive, required, focused, containerStyle, labelStyle, isReverseMask
|
|
14
|
+
const { label, children, errorMsg, labelClassname, showCount, maxLength, description, errorArchive, required, focused, containerStyle, labelStyle, isReverseMask, ...restOf } = props;
|
|
25
15
|
// I18n
|
|
26
16
|
const { t } = i18nInstance;
|
|
27
17
|
const [isFocused, setFocused] = useState(false);
|
|
@@ -39,62 +29,49 @@ export const SelectV2 = (props) => {
|
|
|
39
29
|
}
|
|
40
30
|
}, [focused]);
|
|
41
31
|
const renderRequiredLabel = (label) => {
|
|
42
|
-
var _a, _b;
|
|
43
32
|
if (required) {
|
|
44
|
-
return (
|
|
33
|
+
return (_jsx(RequiredLabel, { style: { marginBottom: 5, ...(labelStyle || {}) }, color: THEME.token?.colorIcon, isReverseMask: isReverseMask, children: label }));
|
|
45
34
|
}
|
|
46
|
-
return (
|
|
35
|
+
return (_jsx(Text, { style: { marginBottom: 5, ...(labelStyle || {}) }, color: THEME.token?.colorIcon, children: label }));
|
|
47
36
|
};
|
|
48
|
-
return (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
position: 'absolute',
|
|
52
|
-
inset: '0px',
|
|
53
|
-
display: 'flex',
|
|
54
|
-
alignItems: 'center',
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
background: 'white',
|
|
57
|
-
opacity: '0.9',
|
|
58
|
-
zIndex: 20,
|
|
59
|
-
} },
|
|
60
|
-
React.createElement(Spin, { spinning: true, indicatorSize: 22 }))),
|
|
61
|
-
React.createElement("div", { style: { width: '100%' } },
|
|
62
|
-
React.createElement(StyledSelect, Object.assign({}, restOf, { style: Object.assign({ width: '100%' }, (restOf.style || {})), onBlur: e => {
|
|
63
|
-
if (!isFocused) {
|
|
64
|
-
setFocused(true);
|
|
65
|
-
}
|
|
66
|
-
props.onBlur && props.onBlur(e);
|
|
67
|
-
} }), children),
|
|
68
|
-
(!!showCount || !!description) && (React.createElement("div", { style: {
|
|
37
|
+
return (_jsxs(SelectWrapper, { style: containerStyle || {}, children: [label && renderRequiredLabel(label), restOf.loading && (_jsx("div", { style: {
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
inset: '0px',
|
|
69
40
|
display: 'flex',
|
|
70
41
|
alignItems: 'center',
|
|
71
|
-
justifyContent: '
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
42
|
+
justifyContent: 'center',
|
|
43
|
+
background: 'white',
|
|
44
|
+
opacity: '0.9',
|
|
45
|
+
zIndex: 20,
|
|
46
|
+
}, children: _jsx(Spin, { spinning: true, indicatorSize: 22 }) })), _jsxs("div", { style: { width: '100%' }, children: [_jsx(StyledSelect, { ...restOf, style: { width: '100%', ...(restOf.style || {}) }, onBlur: e => {
|
|
47
|
+
if (!isFocused) {
|
|
48
|
+
setFocused(true);
|
|
49
|
+
}
|
|
50
|
+
props.onBlur && props.onBlur(e);
|
|
51
|
+
}, children: children }), (!!showCount || !!description) && (_jsxs("div", { style: {
|
|
52
|
+
display: 'flex',
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
justifyContent: 'space-between',
|
|
55
|
+
marginTop: 6,
|
|
56
|
+
}, children: [_jsx(Text, { children: description }), showCount && (_jsx(Text, { children: `${Array.isArray(restOf.value) ? restOf.value.length : 1}/${maxLength || '1'}` }))] })), (restOf.status === 'error' && errorMsg) || errorArchive || requiredMsg ? (_jsx(Text, { color: "#ff4d4f", style: { marginLeft: 8, marginTop: 5 }, children: errorArchive || errorMsg || requiredMsg })) : null] })] }));
|
|
77
57
|
};
|
|
78
58
|
// Custom tag render
|
|
79
59
|
export const tagRender = (props) => {
|
|
80
|
-
var _a;
|
|
81
60
|
const { label, style, closable, onClose } = props;
|
|
82
61
|
const onPreventMouseDown = (event) => {
|
|
83
62
|
event.preventDefault();
|
|
84
63
|
event.stopPropagation();
|
|
85
64
|
};
|
|
86
|
-
return (
|
|
87
|
-
React.createElement(Icon, { type: "icon-ants-remove", color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.colorPrimary, size: 10 })) }, label));
|
|
65
|
+
return (_jsx(StyledTag, { style: style, onMouseDown: onPreventMouseDown, closable: closable, onClose: onClose, closeIcon: _jsx(CloseButton, { borderColor: style?.background, children: _jsx(Icon, { type: "icon-ants-remove", color: THEME.token?.colorPrimary, size: 10 }) }), children: label }));
|
|
88
66
|
};
|
|
89
67
|
SelectV2.defaultProps = {
|
|
90
|
-
suffixIcon:
|
|
68
|
+
suffixIcon: _jsx(Icon, { type: "icon-ants-expand-more" }),
|
|
91
69
|
filterOption: (input, option) => {
|
|
92
|
-
|
|
93
|
-
const value = ((_a = option === null || option === void 0 ? void 0 : option.label) === null || _a === void 0 ? void 0 : _a.toString()) || '';
|
|
70
|
+
const value = option?.label?.toString() || '';
|
|
94
71
|
return value.toLowerCase().trim().indexOf(input.toLowerCase().trim()) >= 0;
|
|
95
72
|
},
|
|
96
73
|
tagRender: (props) => tagRender(props),
|
|
97
74
|
containerStyle: {},
|
|
98
75
|
labelStyle: {},
|
|
99
|
-
clearIcon:
|
|
76
|
+
clearIcon: _jsx(Icon, { type: "icon-ants-remove-circle", size: 16 }),
|
|
100
77
|
};
|