@antscorp/antsomi-ui 1.3.7-beta.68 → 1.3.7-beta.69
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/__tests__/fileMock.test.d.ts +2 -0
- package/es/__tests__/fileMock.test.js +2 -0
- package/es/__tests__/styleMock.test.d.ts +1 -0
- package/es/__tests__/styleMock.test.js +2 -0
- package/es/assets/css/main.scss +2 -3
- package/es/components/atoms/Checkbox/Checkbox.d.ts +1 -0
- package/es/components/atoms/ContentEditable/styled.d.ts +2 -1
- package/es/components/atoms/Eyedropper/styled.d.ts +1 -0
- package/es/components/atoms/Grid/Grid.d.ts +1 -0
- package/es/components/atoms/Input/Input.d.ts +4 -18
- package/es/components/atoms/Input/Input.js +4 -2
- package/es/components/atoms/Input/index.d.ts +1 -1
- package/es/components/atoms/Input/styled.d.ts +9 -8
- package/es/components/atoms/Input/styled.js +8 -8
- package/es/components/atoms/Input/types.d.ts +17 -0
- package/es/components/atoms/Input/types.js +1 -0
- package/es/components/atoms/InputDynamic/InputDynamic.js +3 -3
- package/es/components/atoms/InputDynamic/styled.d.ts +1 -1
- package/es/components/atoms/InputDynamic/utils.js +8 -8
- package/es/components/atoms/MobileBrandingBar/index.d.ts +1 -0
- package/es/components/atoms/MobileBrandingBar/styled.d.ts +1 -0
- package/es/components/atoms/NotificationStatus/NotificationStatus.d.ts +1 -0
- package/es/components/atoms/Pagination/Pagination.d.ts +1 -0
- package/es/components/atoms/Popover/Popover.d.ts +1 -0
- package/es/components/atoms/Popover/styled.d.ts +4 -0
- package/es/components/atoms/Popover/styled.js +5 -0
- package/es/components/atoms/PreviewTabs/styled.d.ts +2 -1
- package/es/components/atoms/Progress/Progress.d.ts +1 -0
- package/es/components/atoms/Radio/index.d.ts +1 -0
- package/es/components/atoms/RateV2/RateV2.js +2 -2
- package/es/components/atoms/ReactIframe/types.d.ts +1 -0
- package/es/components/atoms/Segmented/Segmented.d.ts +1 -0
- package/es/components/atoms/SelectAssociatedTag/SelectAssociatedTag.js +1 -1
- package/es/components/atoms/SelectAssociatedTag/SelectTag.d.ts +1 -0
- package/es/components/atoms/SelectAssociatedTag/styled.d.ts +3 -2
- package/es/components/atoms/Skeleton/Skeleton.d.ts +1 -0
- package/es/components/atoms/SlideBar/SlideBar.js +1 -3
- package/es/components/atoms/SlideBar/styled.d.ts +9 -9
- package/es/components/atoms/SlideBar/utils.d.ts +2 -2
- package/es/components/atoms/Slider/index.js +8 -3
- package/es/components/atoms/Space/Space.d.ts +3 -2
- package/es/components/atoms/Steps/styled.d.ts +3 -2
- package/es/components/atoms/Switch/styled.d.ts +1 -0
- package/es/components/atoms/Tag/Tag.js +3 -6
- package/es/components/atoms/Text/styled.d.ts +1 -0
- package/es/components/atoms/Timeline/Timeline.d.ts +2 -1
- package/es/components/atoms/Typography/EllipsisMiddle.d.ts +1 -0
- package/es/components/atoms/Watermark/Watermark.d.ts +1 -0
- package/es/components/icons/AntsomiAIIcon.d.ts +2 -2
- package/es/components/icons/AntsomiAIIcon.js +3 -1
- package/es/components/icons/CircleInfoIcon.d.ts +1 -0
- package/es/components/icons/EmotionFeedbackIcon.d.ts +2 -2
- package/es/components/icons/LazyIcon/LazyIcon.d.ts +4 -3
- package/es/components/icons/LoadingIcon.d.ts +1 -1
- package/es/components/icons/document/IconGallery.d.ts +11 -0
- package/es/components/icons/document/IconGallery.js +20 -40
- package/es/components/icons/document/styled.js +4 -4
- package/es/components/icons/index.d.ts +1 -1
- package/es/components/icons/index.js +1 -1
- package/es/components/icons/types/index.d.ts +1 -0
- package/es/components/molecules/AccessDenied/styled.d.ts +2 -1
- package/es/components/molecules/AccountSelection/AccountListing.js +1 -1
- package/es/components/molecules/AccountSelection/index.d.ts +1 -2
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.d.ts +1 -32
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +28 -2
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts +3 -2
- package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.js +1 -0
- package/es/components/molecules/AddDynamicContent/components/FormatNumber/FormatNumber.d.ts +2 -2
- package/es/components/molecules/AddDynamicContent/constants.d.ts +35 -18
- package/es/components/molecules/AddDynamicContent/constants.js +2 -0
- package/es/components/molecules/AddDynamicContent/styled.d.ts +5 -4
- package/es/components/molecules/AddDynamicContent/types.d.ts +32 -0
- package/es/components/molecules/AddDynamicContent/utils.d.ts +1 -1
- package/es/components/molecules/AlignSetting/index.d.ts +1 -1
- package/es/components/molecules/AlignSetting/utils.d.ts +1 -1
- package/es/components/molecules/ApplyPopupContent/styled.d.ts +2 -1
- package/es/components/molecules/CalendarSelection/CalendarSelection.js +4 -5
- package/es/components/molecules/CalendarSelection/actions.d.ts +1 -11
- package/es/components/molecules/CalendarSelection/actions.js +1 -10
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/TimeRangeDisplay.d.ts +1 -8
- package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/TimeRangeDisplay.js +1 -1
- package/es/components/molecules/CalendarSelection/constants.d.ts +10 -22
- package/es/components/molecules/CalendarSelection/constants.js +10 -5
- package/es/components/molecules/CalendarSelection/context.d.ts +1 -0
- package/es/components/molecules/CalendarSelection/index.d.ts +2 -2
- package/es/components/molecules/CalendarSelection/reducer.js +1 -2
- package/es/components/molecules/CalendarSelection/styled.d.ts +2 -1
- package/es/components/molecules/CalendarSelection/types.d.ts +43 -4
- package/es/components/molecules/CalendarSelection/utils.d.ts +23 -2
- package/es/components/molecules/CalendarSelection/utils.js +5 -0
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +2 -2
- package/es/components/molecules/CaptureScreen/components/Cursor/styled.js +1 -3
- package/es/components/molecules/CaptureScreen/constants.d.ts +26 -4
- package/es/components/molecules/CaptureScreen/styled.d.ts +5 -4
- package/es/components/molecules/ChartTab/components/styled.d.ts +1 -1
- package/es/components/molecules/ChatBox/ChatBoxInsight/styled.d.ts +2 -1
- package/es/components/molecules/ChatBox/styled.d.ts +1 -1
- package/es/components/molecules/CodeStructure/styled.d.ts +1 -1
- package/es/components/molecules/CodeStructure/utils.d.ts +5 -5
- package/es/components/molecules/ColorPicker/ChromePicker/styled.js +2 -2
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +2 -2
- package/es/components/molecules/ColorPicker/CustomPicker/styled.d.ts +1 -1
- package/es/components/molecules/ColorPicker/CustomPicker/styled.js +6 -6
- package/es/components/molecules/ColorPicker/SketchPicker/styled.js +2 -2
- package/es/components/molecules/ColorPicker/index.d.ts +1 -0
- package/es/components/molecules/ColorPicker/index.js +3 -2
- package/es/components/molecules/ColorSetting/styled.d.ts +1 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +3 -3
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +93 -14
- package/es/components/molecules/DatePicker/components/AdvancedPicker/constants.js +2 -0
- package/es/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +1 -1
- package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +4 -4
- package/es/components/molecules/DisplayFormat/DisplayFormatSelect.js +2 -2
- package/es/components/molecules/DisplayFormat/DisplayFormatSettings.d.ts +1 -1
- package/es/components/molecules/DisplayFormat/components/FormatNumber.d.ts +1 -1
- package/es/components/molecules/DisplayFormat/constants.d.ts +37 -27
- package/es/components/molecules/DisplayFormat/index.d.ts +1 -0
- package/es/components/molecules/DisplayFormat/styled.d.ts +5 -4
- package/es/components/molecules/DisplayFormat/types.d.ts +1 -0
- package/es/components/molecules/DrawerDetail/DrawerDetail.js +2 -2
- package/es/components/molecules/DrawerDetail/styled.d.ts +3 -2
- package/es/components/molecules/Dropdown/styled.d.ts +2 -1
- package/es/components/molecules/Dropdown/types.d.ts +1 -0
- package/es/components/molecules/EditingList/components/List/List.d.ts +1 -0
- package/es/components/molecules/EditingList/components/Loadable.d.ts +6 -5
- package/es/components/molecules/EditingList/components/Popover/Popover.d.ts +1 -0
- package/es/components/molecules/EditingList/components/Search/Search.d.ts +1 -0
- package/es/components/molecules/EditingList/components/Title/Title.d.ts +1 -0
- package/es/components/molecules/EditingList/styled.d.ts +1 -0
- package/es/components/molecules/EditingList/types.d.ts +1 -0
- package/es/components/molecules/EditingListV2/components/List/List.js +1 -0
- package/es/components/molecules/EditingListV2/components/Loadable.d.ts +4 -3
- package/es/components/molecules/EditingListV2/components/Popover/Popover.d.ts +1 -0
- package/es/components/molecules/EditingListV2/types.d.ts +1 -0
- package/es/components/molecules/EditorScript/EditorScript.d.ts +1 -0
- package/es/components/molecules/EmojiCollections/styled.d.ts +4 -3
- package/es/components/molecules/EmojiPopover/styled.d.ts +4 -3
- package/es/components/molecules/EmptyData/constants.d.ts +2 -8
- package/es/components/molecules/EmptyData/styled.d.ts +3 -2
- package/es/components/molecules/FontSetting/index.js +2 -2
- package/es/components/molecules/FontSizeInput/FontSizeInput.d.ts +1 -0
- package/es/components/molecules/FontSizeInput/components/FontSizeControl.d.ts +1 -0
- package/es/components/molecules/FontSizeInput/styled.d.ts +1 -0
- package/es/components/molecules/FontSizeInput/types.d.ts +1 -0
- package/es/components/molecules/HeaderV2/HeaderV2.d.ts +1 -1
- package/es/components/molecules/HeaderV2/HeaderV2.js +2 -2
- package/es/components/molecules/IconSelection/components/Icon/index.d.ts +2 -3
- package/es/components/molecules/IconSelection/constants.d.ts +1 -0
- package/es/components/molecules/IconSelection/styled.d.ts +1 -0
- package/es/components/molecules/IconSelection/styled.js +4 -6
- package/es/components/molecules/ImageEditor/styled.d.ts +2 -1
- package/es/components/molecules/InputSelectAttribute/index.d.ts +1 -0
- package/es/components/molecules/InputSelectAttribute/styled.d.ts +1 -1
- package/es/components/molecules/ItemNotFound/styled.d.ts +1 -0
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +1 -3
- package/es/components/molecules/MatchAnySelect/styled.d.ts +15 -8
- package/es/components/molecules/MatchAnySelect/utils.d.ts +20 -20
- package/es/components/molecules/Modal/Modal.js +1 -1
- package/es/components/molecules/Modal/styled.d.ts +2 -1
- package/es/components/molecules/ModalSelect/styled.d.ts +2 -1
- package/es/components/molecules/ModalV2/styled.d.ts +2 -1
- package/es/components/molecules/Popconfirm/Popconfirm.d.ts +1 -0
- package/es/components/molecules/PopupDraggable/styled.d.ts +2 -2
- package/es/components/molecules/PreviewModal/styled.d.ts +2 -1
- package/es/components/molecules/ProcessLoading/styled.d.ts +2 -1
- package/es/components/molecules/QuillEditor/CustomToolbar.js +17 -26
- package/es/components/molecules/QuillEditor/EditorToolbar.js +0 -1
- package/es/components/molecules/QuillEditor/QuillEditor.js +1 -1
- package/es/components/molecules/RadioGroup/styled.d.ts +1 -0
- package/es/components/molecules/ResizeGrid/components/Cell/Cell.js +1 -2
- package/es/components/molecules/ResizeGrid/styled.d.ts +2 -2
- package/es/components/molecules/ResizeGrid/types.d.ts +1 -0
- package/es/components/molecules/RichMenu/RichMenuBlock/RichMenuCell/styled.d.ts +2 -2
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.js +1 -1
- package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +2 -1
- package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +3 -2
- package/es/components/molecules/SearchPopover/SearchPopover.d.ts +1 -0
- package/es/components/molecules/SearchPopover/styled.d.ts +1 -0
- package/es/components/molecules/Select/Select.d.ts +10 -2
- package/es/components/molecules/Select/Select.js +2 -2
- package/es/components/molecules/Select/styled.d.ts +5 -2
- package/es/components/molecules/Select/styled.js +50 -6
- package/es/components/molecules/SelectAccount/styled.d.ts +3 -2
- package/es/components/molecules/SelectMulti/styled.d.ts +5 -4
- package/es/components/molecules/SelectMulti/styled.js +4 -4
- package/es/components/molecules/SelectV2/styled.d.ts +6 -5
- package/es/components/molecules/SelectV2/styled.js +6 -6
- package/es/components/molecules/SettingWrapper/styled.d.ts +1 -1
- package/es/components/molecules/ShareAccess/actions.d.ts +2 -6
- package/es/components/molecules/ShareAccess/actions.js +1 -4
- package/es/components/molecules/ShareAccess/components/ModalTransferOwnerShip/styled.d.ts +2 -1
- package/es/components/molecules/ShareAccess/constants.d.ts +24 -2
- package/es/components/molecules/ShareAccess/constants.js +4 -0
- package/es/components/molecules/ShareAccess/hooks/useShareAccess.d.ts +6 -5
- package/es/components/molecules/ShareAccess/reducer.d.ts +1 -1
- package/es/components/molecules/ShareAccess/reducer.js +1 -1
- package/es/components/molecules/ShareAccess/types.d.ts +11 -3
- package/es/components/molecules/ShareAccess/utils.d.ts +3 -3
- package/es/components/molecules/Tabs/Tabs.d.ts +2 -1
- package/es/components/molecules/TagifyInput/TagifyInput.js +114 -27
- package/es/components/molecules/TagifyInput/constants.d.ts +11 -2
- package/es/components/molecules/TagifyInput/constants.js +1 -0
- package/es/components/molecules/TagifyInput/errorWrapper.d.ts +1 -1
- package/es/components/molecules/TagifyInput/styled.d.ts +1 -1
- package/es/components/molecules/TagifyInput/types.d.ts +27 -1
- package/es/components/molecules/TagifyInput/utils.d.ts +4 -1
- package/es/components/molecules/TagifyInput/utils.js +9 -0
- package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.d.ts +2 -1
- package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.d.ts +4 -3
- package/es/components/molecules/TemplateSaveAs/styled.d.ts +3 -2
- package/es/components/molecules/TemplateSaveAs/styled.js +1 -1
- package/es/components/molecules/Tree/Tree.d.ts +10 -1
- package/es/components/molecules/Tree/styled.d.ts +12 -5
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +9 -8
- package/es/components/molecules/UnsubscribePreferences/styled.d.ts +1 -0
- package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +1 -0
- package/es/components/molecules/UploadImage/MediaThumb.d.ts +8 -0
- package/es/components/molecules/UploadImage/MediaThumb.js +15 -0
- package/es/components/molecules/UploadImage/VideoThumbnail.d.ts +4 -0
- package/es/components/molecules/UploadImage/VideoThumbnail.js +40 -0
- package/es/components/molecules/UploadImage/styled.d.ts +1 -1
- package/es/components/molecules/UploadImage/styled.js +4 -6
- package/es/components/molecules/VirtualizedMenu/VirtualizedMenu.d.ts +2 -3
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/MenuInline.d.ts +6 -5
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useFocusManagement.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useItemInteraction.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/components/MenuInline/hooks/useKeyboardNavigation.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/styled.d.ts +1 -0
- package/es/components/molecules/VirtualizedMenu/utils.d.ts +1 -0
- package/es/components/molecules/index.d.ts +2 -2
- package/es/components/molecules/index.js +2 -2
- package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +2 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/constant.js +3 -3
- package/es/components/organism/AccountProfile/components/AccountSetting/components/EditableInput/index.js +1 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.d.ts +6 -5
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +1 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/styled.d.ts +1 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/types.d.ts +1 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/types.js +1 -0
- package/es/components/organism/AccountProfile/components/AccountSetting/utils.js +5 -7
- package/es/components/organism/AccountSharing/AccountSharing.d.ts +1 -0
- package/es/components/organism/AccountSharing/AccountSharing.js +17 -33
- package/es/components/organism/AccountSharing/styled.js +13 -3
- package/es/components/organism/ActivityTimeline/components/ItemGroupEvent/ItemGroupEvent.d.ts +1 -1
- package/es/components/organism/ActivityTimeline/components/List/styled.d.ts +1 -0
- package/es/components/organism/ActivityTimeline/components/ListItem/styled.d.ts +2 -1
- package/es/components/organism/ActivityTimeline/components/ProductCard/styled.d.ts +1 -0
- package/es/components/organism/ActivityTimeline/components/Slide/styled.d.ts +88 -87
- package/es/components/organism/ActivityTimeline/components/TimeLineTitle/styled.d.ts +1 -0
- package/es/components/organism/ActivityTimeline/components/TimelineSection/styled.d.ts +1 -1
- package/es/components/organism/ActivityTimeline/index.d.ts +16 -2
- package/es/components/organism/ActivityTimeline/styled.d.ts +1 -0
- package/es/components/organism/ActivityTimeline/types.d.ts +1 -0
- package/es/components/organism/AlgorithmsSetting/styled.d.ts +3 -2
- package/es/components/organism/BasicLogin/components/ChooseMethod/Method.d.ts +1 -0
- package/es/components/organism/BasicLogin/components/ChooseMethod/styled.d.ts +2 -1
- package/es/components/organism/BasicLogin/components/WidgetLayout/styled.d.ts +1 -0
- package/es/components/organism/BasicLogin/styled.d.ts +13 -12
- package/es/components/organism/ContentSources/Settings.d.ts +3 -0
- package/es/components/organism/ContentSources/Settings.js +1 -1
- package/es/components/organism/ContentSources/index.d.ts +3 -0
- package/es/components/organism/ContentSources/index.js +4 -3
- package/es/components/organism/ContentSources/styled.d.ts +2 -1
- package/es/components/organism/DataTable/DataTable.js +1 -1
- package/es/components/organism/DataTable/components/ModifyColumn/styled.d.ts +3 -2
- package/es/components/organism/DataTable/components/Pagination/index.js +1 -1
- package/es/components/organism/DataTable/components/Pagination/styled.d.ts +3 -2
- package/es/components/organism/DataTable/components/Table/styled.d.ts +6 -6
- package/es/components/organism/DataTable/components/Toolbar/styled.d.ts +6 -5
- package/es/components/organism/DataTable/constants/toolbar.d.ts +47 -2
- package/es/components/organism/DataTable/contexts/DataTableContext.d.ts +1 -0
- package/es/components/organism/DataTable/hooks/index.d.ts +1 -0
- package/es/components/organism/DataTable/hooks/index.js +1 -0
- package/es/components/organism/DataTable/hooks/useCDPTable/useCDPTable.d.ts +58 -0
- package/es/components/organism/DataTable/hooks/useCDPTable/useCDPTable.js +127 -0
- package/es/components/organism/DataTable/hooks/useDataTableListing/types.d.ts +1 -1
- package/es/components/organism/DataTable/index.d.ts +2 -2
- package/es/components/organism/DataTable/index.js +1 -1
- package/es/components/organism/DataTable/providers/AntdTableConfigProvider.d.ts +1 -2
- package/es/components/organism/DataTable/styled/index.d.ts +4 -3
- package/es/components/organism/DataTable/types/index.d.ts +3 -2
- package/es/components/organism/DataTable/types/toolbar.d.ts +1 -1
- package/es/components/organism/DataTable/utils/filter.d.ts +3 -3
- package/es/components/organism/Filter/components/FilterActionButton.js +1 -1
- package/es/components/organism/Filter/components/FilterCondition/styled.d.ts +2 -1
- package/es/components/organism/Filter/contexts/FilterContext.d.ts +1 -0
- package/es/components/organism/Filter/hooks/useAddFilterCondition.d.ts +8 -7
- package/es/components/organism/Filter/styled.d.ts +5 -4
- package/es/components/organism/Filter/types/index.d.ts +2 -1
- package/es/components/organism/Filter/utils/index.d.ts +3 -4
- package/es/components/organism/Filter/utils/index.js +1 -1
- package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.d.ts +9 -9
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/ColumnSuggestion/index.d.ts +1 -1
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/Tree/index.d.ts +1 -1
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.d.ts +1 -2
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/types.d.ts +1 -0
- package/es/components/organism/FilterSetting/components/common/InputSelectMulti/types.js +1 -0
- package/es/components/organism/FilterSetting/constants.d.ts +1 -57
- package/es/components/organism/FilterSetting/context.d.ts +1 -0
- package/es/components/organism/GenerativeInsights/constants.d.ts +1 -0
- package/es/components/organism/GenerativeInsights/constants.js +1 -0
- package/es/components/organism/GenerativeInsights/index.d.ts +11 -0
- package/es/components/organism/GenerativeInsights/index.js +54 -0
- package/es/components/organism/GenerativeInsights/styled.d.ts +12 -0
- package/es/components/organism/GenerativeInsights/styled.js +65 -0
- package/es/components/organism/GenerativeInsights/utils.d.ts +13 -0
- package/es/components/organism/GenerativeInsights/utils.js +49 -0
- package/es/components/organism/Help/Help.js +35 -37
- package/es/components/organism/Help/styled.d.ts +16 -11
- package/es/components/organism/Help/utils.js +0 -1
- package/es/components/organism/LeftMenu/LeftMenu.d.ts +1 -1
- package/es/components/organism/LeftMenu/LeftMenu.js +7 -7
- package/es/components/organism/LeftMenu/components/CustomMenu/index.js +1 -1
- package/es/components/organism/LeftMenu/components/HomeMenu/index.d.ts +1 -3
- package/es/components/organism/LeftMenu/components/HomeMenu/index.js +36 -0
- package/es/components/organism/LeftMenu/components/HomeMenu/styled.d.ts +2 -1
- package/es/components/organism/LeftMenu/components/HomeMenu/types.d.ts +3 -0
- package/es/components/organism/LeftMenu/components/HomeMenu/types.js +1 -0
- package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.d.ts +2 -1
- package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.js +1 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.d.ts +2 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/index.js +1 -1
- package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.d.ts +3 -2
- package/es/components/organism/LeftMenu/contexts/index.d.ts +1 -0
- package/es/components/organism/LeftMenu/hooks/types.d.ts +24 -0
- package/es/components/organism/LeftMenu/hooks/types.js +1 -0
- package/es/components/organism/LeftMenu/hooks/useLeftMenu.d.ts +1 -1
- package/es/components/organism/LeftMenu/index.d.ts +2 -24
- package/es/components/organism/LeftMenu/styled.d.ts +5 -4
- package/es/components/organism/LeftMenu/styled.js +2 -0
- package/es/components/organism/LeftMenu/types/index.d.ts +30 -1
- package/es/components/organism/LeftMenu/utils/index.d.ts +5 -5
- package/es/components/organism/LeftMenu/utils/index.js +7 -5
- package/es/components/organism/Login/Login.js +19 -36
- package/es/components/organism/Login/components/ChooseMethod/Method.d.ts +1 -0
- package/es/components/organism/Login/components/ChooseMethod/styled.d.ts +2 -1
- package/es/components/organism/Login/components/SignIn/SignIn.js +2 -2
- package/es/components/organism/Login/components/VerifyAccount/styled.d.ts +8 -7
- package/es/components/organism/Login/components/WidgetLayout/styled.d.ts +1 -0
- package/es/components/organism/Login/styled.d.ts +15 -14
- package/es/components/organism/Login/types/index.d.ts +2 -0
- package/es/components/organism/Menu/styled.d.ts +1 -1
- package/es/components/organism/ModifyColumnModal/styled.d.ts +4 -3
- package/es/components/organism/Notification/styled.d.ts +1 -0
- package/es/components/organism/PreviewCollections/WhatsappMessage/CarouselMessage/styled.d.ts +1 -0
- package/es/components/organism/PreviewCollections/WhatsappMessage/utils.d.ts +2 -2
- package/es/components/organism/PreviewCollections/styled.d.ts +3 -4
- package/es/components/organism/PreviewTemplateModal/components/Banner/styled.d.ts +1 -1
- package/es/components/organism/PreviewTemplateModal/components/Banner/styled.js +1 -3
- package/es/components/organism/PreviewTemplateModal/components/Information/styled.d.ts +3 -2
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/index.js +1 -1
- package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.d.ts +2 -1
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/index.js +1 -1
- package/es/components/organism/PreviewTemplateModal/stories/dataTypes/dataType.stories.js +1 -2
- package/es/components/organism/PreviewTemplateModal/styled.d.ts +1 -0
- package/es/components/organism/PreviewTemplateModal/styled.js +1 -1
- package/es/components/organism/PreviewTemplateModal/types.d.ts +3 -2
- package/es/components/organism/SQLGeneration/components/CheckboxShowDiff.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationCodeBlock.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPagination.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationQuerySummary.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationResult.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/styled.d.ts +2 -1
- package/es/components/organism/SQLGeneration/index.d.ts +1 -1
- package/es/components/organism/SQLGeneration/store/store.d.ts +83 -42
- package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +6 -6
- package/es/components/organism/TextEditor/TextEditor.d.ts +2 -2
- package/es/components/organism/TextEditor/index.d.ts +3 -2
- package/es/components/organism/TextEditor/provider.d.ts +1 -0
- package/es/components/organism/TextEditor/styled.d.ts +2 -1
- package/es/components/organism/TextEditor/types.d.ts +68 -3
- package/es/components/organism/TextEditor/ui/BubbleMenu/BubbleMenu.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Button/Button.d.ts +6 -5
- package/es/components/organism/TextEditor/ui/Button/types.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Emoji/EmojiList.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/FontPopover/FontPopover.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Popover/Popover.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/SplitButtonDropdown/styled.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/SplitButtonDropdown/types.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/TextAlignSelect/TextAlignSelect.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/BoldAction.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/FontSizeAction.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/SmartTagAction.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/TextColorAction.d.ts +1 -0
- package/es/components/organism/TextEditor/ui/Toolbar/actions/UnsetLink.d.ts +1 -0
- package/es/components/organism/TextEditor/utils/link.d.ts +6 -6
- package/es/components/organism/TicketEditor/Content.js +47 -29
- package/es/components/organism/TicketEditor/components/MessageComponent.js +3 -3
- package/es/components/organism/TicketEditor/components/icons/AddTicketIcon.d.ts +1 -1
- package/es/components/organism/TicketEditor/components/icons/AddTicketIcon.js +1 -3
- package/es/components/organism/TicketEditor/components/icons/TicketIcon.d.ts +2 -1
- package/es/components/organism/TicketEditor/components/icons/TicketIcon.js +1 -3
- package/es/components/organism/TicketEditor/styled.d.ts +6 -5
- package/es/components/organism/TicketEditor/styled.js +10 -0
- package/es/components/organism/TicketEditor/util.d.ts +2 -1
- package/es/components/organism/TicketEditor/util.js +27 -2
- package/es/components/organism/TicketEditorV2/Content.d.ts +1 -0
- package/es/components/organism/TicketEditorV2/Content.js +29 -18
- package/es/components/organism/TicketEditorV2/components/MessageComponent.js +1 -1
- package/es/components/organism/TicketEditorV2/queries/useGetDetailTicket.d.ts +1 -1
- package/es/components/organism/TicketEditorV2/queries/useGetListComments.d.ts +1 -1
- package/es/components/organism/TicketEditorV2/styled.d.ts +6 -5
- package/es/components/organism/index.d.ts +1 -1
- package/es/components/organism/index.js +1 -1
- package/es/components/template/Layout/Layout.js +3 -1
- package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.d.ts +2 -1
- package/es/components/template/Layout/stores/index.d.ts +3 -2
- package/es/components/template/Layout/styled.d.ts +5 -4
- package/es/components/template/Layout/types.d.ts +1 -0
- package/es/components/template/TemplateListing/Loadable.d.ts +1 -0
- package/es/components/template/TemplateListing/components/BlankTemplate/styled.d.ts +2 -1
- package/es/components/template/TemplateListing/components/CategoryListing/index.js +1 -1
- package/es/components/template/TemplateListing/components/CategoryListing/styled.d.ts +2 -1
- package/es/components/template/TemplateListing/components/CategoryListing/types.d.ts +1 -0
- package/es/components/template/TemplateListing/components/Empty/styled.d.ts +2 -1
- package/es/components/template/TemplateListing/constants/defaultProps.d.ts +1 -1
- package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +3 -2
- package/es/components/template/TemplateListing/stories/dataTypes/dataType.stories.js +1 -2
- package/es/components/template/TemplateListing/styled/index.d.ts +2 -1
- package/es/components/template/TemplateListing/types/Empty.d.ts +1 -0
- package/es/components/template/TemplateListing/types/TemplateItem.d.ts +7 -0
- package/es/components/template/TemplateListing/types/TemplateItem.js +1 -0
- package/es/components/template/TemplateListing/types/TemplateListing.d.ts +2 -8
- package/es/components/template/TemplateListing/types/index.d.ts +1 -0
- package/es/constants/api.d.ts +9 -19
- package/es/constants/api.js +7 -0
- package/es/constants/queries.d.ts +1 -0
- package/es/constants/queries.js +1 -0
- package/es/constants/theme.d.ts +3 -1
- package/es/constants/unsubscribe.d.ts +1 -11
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/useDebounce.d.ts +1 -0
- package/es/hooks/useDeepCompareMemo.d.ts +1 -0
- package/es/hooks/useDragEvent.d.ts +1 -1
- package/es/hooks/useEffectWithTarget.d.ts +2 -1
- package/es/hooks/useElementSize.d.ts +1 -0
- package/es/hooks/useFocusManagement.d.ts +1 -0
- package/es/hooks/useKeyEventCanvas.d.ts +1 -1
- package/es/hooks/useLatest.d.ts +1 -0
- package/es/hooks/useListingItemResize.d.ts +1 -0
- package/es/hooks/useOutsideClick.d.ts +1 -0
- package/es/locales/en/translation.json +0 -75
- package/es/locales/i18n.d.ts +0 -150
- package/es/locales/vi/translation.json +0 -75
- package/es/models/PromotionPool.d.ts +0 -3
- package/es/models/PromotionPool.js +0 -4
- package/es/providers/AppConfigProvider/contexts/index.d.ts +4 -3
- package/es/providers/AppConfigProvider/contexts/index.js +5 -3
- package/es/providers/ConfigProvider/ConfigProvider.d.ts +1 -1
- package/es/providers/ConfigProvider/ConfigProvider.js +1 -1
- package/es/providers/ConfigProvider/GlobalStyle.js +2 -3
- package/es/queries/Account/useGetAccountList.js +1 -1
- package/es/queries/BusinessObject/useGetListEventAttr.d.ts +1 -1
- package/es/queries/BusinessObject/useGetListPromotionCodeAttr.d.ts +1 -1
- package/es/queries/CustomFunction/useCustomFunction.d.ts +1 -1
- package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.d.ts +1 -1
- package/es/queries/PromotionPool/useGetListPromotionPool.d.ts +1 -1
- package/es/queries/TemplateListing/index.d.ts +1 -1
- package/es/queries/User/index.d.ts +0 -1
- package/es/queries/User/index.js +0 -1
- package/es/services/MediaTemplateDesign/BusinessObject/index.d.ts +3 -3
- package/es/services/index.js +3 -5
- package/es/styled/common.d.ts +2 -1
- package/es/test.d.ts +0 -11
- package/es/test.js +138 -377
- package/es/utils/color.d.ts +0 -1
- package/es/utils/common.js +0 -1
- package/es/utils/cookie.js +5 -4
- package/es/utils/crossSubdomainCookieOptions.d.ts +14 -0
- package/es/utils/crossSubdomainCookieOptions.js +12 -0
- package/es/utils/web.d.ts +2 -1
- package/package.json +81 -58
- package/es/components/organism/AllocateCoupon/AllocateCoupon.d.ts +0 -31
- package/es/components/organism/AllocateCoupon/AllocateCoupon.js +0 -33
- package/es/components/organism/AllocateCoupon/components/ConditionRow.d.ts +0 -16
- package/es/components/organism/AllocateCoupon/components/ConditionRow.js +0 -67
- package/es/components/organism/AllocateCoupon/components/ConditionsField.d.ts +0 -12
- package/es/components/organism/AllocateCoupon/components/ConditionsField.js +0 -27
- package/es/components/organism/AllocateCoupon/components/EventRefDisplay.d.ts +0 -15
- package/es/components/organism/AllocateCoupon/components/EventRefDisplay.js +0 -28
- package/es/components/organism/AllocateCoupon/components/FieldRow.d.ts +0 -15
- package/es/components/organism/AllocateCoupon/components/FieldRow.js +0 -15
- package/es/components/organism/AllocateCoupon/components/IdentifierField.d.ts +0 -13
- package/es/components/organism/AllocateCoupon/components/IdentifierField.js +0 -24
- package/es/components/organism/AllocateCoupon/components/PoolField.d.ts +0 -8
- package/es/components/organism/AllocateCoupon/components/PoolField.js +0 -17
- package/es/components/organism/AllocateCoupon/components/QuantityField.d.ts +0 -20
- package/es/components/organism/AllocateCoupon/components/QuantityField.js +0 -58
- package/es/components/organism/AllocateCoupon/components/RefreshButton.d.ts +0 -14
- package/es/components/organism/AllocateCoupon/components/RefreshButton.js +0 -21
- package/es/components/organism/AllocateCoupon/components/Root.d.ts +0 -10
- package/es/components/organism/AllocateCoupon/components/Root.js +0 -20
- package/es/components/organism/AllocateCoupon/components/SourceEventField.d.ts +0 -15
- package/es/components/organism/AllocateCoupon/components/SourceEventField.js +0 -50
- package/es/components/organism/AllocateCoupon/constants/index.d.ts +0 -59
- package/es/components/organism/AllocateCoupon/constants/index.js +0 -70
- package/es/components/organism/AllocateCoupon/contexts/AllocateCouponContext.d.ts +0 -4
- package/es/components/organism/AllocateCoupon/contexts/AllocateCouponContext.js +0 -15
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCoupon.d.ts +0 -2
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCoupon.js +0 -231
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponAttributeOptions.d.ts +0 -27
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponAttributeOptions.js +0 -45
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponStore.d.ts +0 -8
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponStore.js +0 -23
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponSync.d.ts +0 -8
- package/es/components/organism/AllocateCoupon/hooks/useAllocateCouponSync.js +0 -43
- package/es/components/organism/AllocateCoupon/index.d.ts +0 -15
- package/es/components/organism/AllocateCoupon/index.js +0 -5
- package/es/components/organism/AllocateCoupon/providers/AllocateCouponProvider.d.ts +0 -8
- package/es/components/organism/AllocateCoupon/providers/AllocateCouponProvider.js +0 -7
- package/es/components/organism/AllocateCoupon/stores/index.d.ts +0 -11
- package/es/components/organism/AllocateCoupon/stores/index.js +0 -59
- package/es/components/organism/AllocateCoupon/styles.scss +0 -141
- package/es/components/organism/AllocateCoupon/types/index.d.ts +0 -336
- package/es/components/organism/AllocateCoupon/types/index.js +0 -22
- package/es/components/organism/AllocateCoupon/utils/index.d.ts +0 -50
- package/es/components/organism/AllocateCoupon/utils/index.js +0 -215
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconProps } from './types';
|
|
3
3
|
export declare const EmotionFeedbackIcon: React.ForwardRefExoticComponent<IconProps & {
|
|
4
|
-
iconHappyColor?: string;
|
|
5
|
-
iconSadColor?: string;
|
|
4
|
+
iconHappyColor?: string | undefined;
|
|
5
|
+
iconSadColor?: string | undefined;
|
|
6
6
|
} & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const LazyIcon: {
|
|
2
3
|
AccountCircleIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
3
4
|
AccountCircleOutlineIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -153,8 +154,8 @@ export declare const LazyIcon: {
|
|
|
153
154
|
EmojiReactionIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
154
155
|
EmojiSmileIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
155
156
|
EmotionFeedbackIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & {
|
|
156
|
-
iconHappyColor?: string;
|
|
157
|
-
iconSadColor?: string;
|
|
157
|
+
iconHappyColor?: string | undefined;
|
|
158
|
+
iconSadColor?: string | undefined;
|
|
158
159
|
} & import("react").RefAttributes<SVGSVGElement>>>;
|
|
159
160
|
ErrorIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
160
161
|
EventAttribute30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -241,7 +242,7 @@ export declare const LazyIcon: {
|
|
|
241
242
|
LinkOffIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
242
243
|
ListIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
243
244
|
LoadingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & {
|
|
244
|
-
backgroundColor?: string;
|
|
245
|
+
backgroundColor?: string | undefined;
|
|
245
246
|
} & import("react").RefAttributes<SVGSVGElement>>>;
|
|
246
247
|
LocalMallIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
247
248
|
LongerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -1 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare global {
|
|
3
|
+
interface NodeRequire {
|
|
4
|
+
context: (directory: string, useSubdirectories: boolean, regExp: RegExp) => {
|
|
5
|
+
keys: () => string[];
|
|
6
|
+
(id: string): {
|
|
7
|
+
default: React.ComponentType;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
1
12
|
export declare const IconGallery: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/// <reference types="vite/client" />
|
|
3
2
|
import { useDebounce } from '@antscorp/antsomi-ui/es/hooks/useDebounceV2';
|
|
4
3
|
import { ConfigProvider } from '@antscorp/antsomi-ui/es/providers';
|
|
5
4
|
import { searchMatchAny } from '@antscorp/antsomi-ui/es/utils';
|
|
6
|
-
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
7
5
|
import { message } from 'antd';
|
|
8
|
-
import { useMemo,
|
|
6
|
+
import { useMemo, useState } from 'react';
|
|
9
7
|
import { Flex, Input, Typography } from '../../index';
|
|
10
8
|
import { IconGalleryStyled } from './styled';
|
|
11
9
|
import { queryClientAntsomiUI, QueryClientProviderAntsomiUI, } from '@antscorp/antsomi-ui/es/queries';
|
|
12
10
|
const REGEX_DATA_SEARCH = /(?<=\/\/ search tag: ).*/g;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const componentName =
|
|
19
|
-
const Component =
|
|
20
|
-
const compiledCode =
|
|
11
|
+
const requireContext = require.context('../', false, /\.tsx$/);
|
|
12
|
+
const icons = requireContext
|
|
13
|
+
.keys()
|
|
14
|
+
.filter(key => key.startsWith('./'))
|
|
15
|
+
.map(key => {
|
|
16
|
+
const componentName = key.replace('./', '').replace('.tsx', '');
|
|
17
|
+
const Component = requireContext(key)[componentName];
|
|
18
|
+
const compiledCode = requireContext(key)[componentName]?.render?.toString() || '';
|
|
19
|
+
// console.log('🚀 ~ compiledCode:', compiledCode);
|
|
21
20
|
const dataSearch = compiledCode.match(REGEX_DATA_SEARCH);
|
|
22
21
|
return {
|
|
23
22
|
name: componentName,
|
|
@@ -27,7 +26,6 @@ const icons = Object.entries(iconModules).map(([path, mod]) => {
|
|
|
27
26
|
});
|
|
28
27
|
export const IconGallery = () => {
|
|
29
28
|
const [search, setSearch] = useState('');
|
|
30
|
-
const scrollContainerRef = useRef(null);
|
|
31
29
|
const debounceSearchValue = useDebounce(search, 300);
|
|
32
30
|
const invalidIcons = [];
|
|
33
31
|
const validIcons = useMemo(() => icons.filter(iconObj => {
|
|
@@ -37,32 +35,14 @@ export const IconGallery = () => {
|
|
|
37
35
|
}),
|
|
38
36
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39
37
|
[]);
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
getScrollElement: () => scrollContainerRef.current,
|
|
51
|
-
estimateSize: () => ROW_ESTIMATE_SIZE,
|
|
52
|
-
overscan: 5,
|
|
53
|
-
});
|
|
54
|
-
return (_jsx(QueryClientProviderAntsomiUI, { client: queryClientAntsomiUI, children: _jsx(ConfigProvider, { children: _jsxs(IconGalleryStyled, { children: [invalidIcons.length > 0 ? (_jsxs("div", { children: [_jsx("h4", { children: "These components below are invalid (check name and file name is correct?)" }), invalidIcons.map(item => (_jsx("strong", { style: { color: 'red' }, children: _jsx("pre", { children: item.name }) }, item.name)))] })) : null, _jsx(Input, { placeholder: "Search Icon", value: search, onChange: e => setSearch(e.target.value), style: { fontSize: '16px' } }), _jsx("div", { ref: scrollContainerRef, className: "grid-scroll-container", children: _jsx("div", { style: { position: 'relative', width: '100%', height: rowVirtualizer.getTotalSize() }, children: rowVirtualizer.getVirtualItems().map(virtualRow => (_jsx(Flex, { ref: rowVirtualizer.measureElement, "data-index": virtualRow.index, className: "grid-container", gap: 16, style: {
|
|
55
|
-
position: 'absolute',
|
|
56
|
-
top: 0,
|
|
57
|
-
left: 0,
|
|
58
|
-
width: '100%',
|
|
59
|
-
transform: `translateY(${virtualRow.start}px)`,
|
|
60
|
-
}, children: rows[virtualRow.index].map(item => {
|
|
61
|
-
const { Component, name } = item;
|
|
62
|
-
return (_jsxs("div", { className: "grid-item", onClick: () => {
|
|
63
|
-
const copiedText = `<${name} />`;
|
|
64
|
-
navigator.clipboard.writeText(copiedText);
|
|
65
|
-
message.success(`${copiedText} copied to clipboard 🚀`);
|
|
66
|
-
}, children: [_jsx(Component, {}), _jsx(Typography.Text, { ellipsis: { tooltip: true }, children: name })] }, name));
|
|
67
|
-
}) }, virtualRow.key))) }) })] }) }) }));
|
|
38
|
+
return (_jsx(QueryClientProviderAntsomiUI, { client: queryClientAntsomiUI, children: _jsx(ConfigProvider, { children: _jsxs(IconGalleryStyled, { children: [invalidIcons.length > 0 ? (_jsxs("div", { children: [_jsx("h4", { children: "These components below are invalid (check name and file name is correct?)" }), invalidIcons.map(item => (_jsx("strong", { style: { color: 'red' }, children: _jsx("pre", { children: item.name }) }, item.name)))] })) : null, _jsx(Input, { placeholder: "Search Icon", value: search, onChange: e => setSearch(e.target.value), style: { fontSize: '16px' } }), _jsx(Flex, { className: "grid-container", gap: 16, children: validIcons
|
|
39
|
+
.filter(item => searchMatchAny([item.name, ...item.dataSearch], debounceSearchValue))
|
|
40
|
+
.map(item => {
|
|
41
|
+
const { Component, name } = item;
|
|
42
|
+
return (_jsxs("div", { className: "grid-item", onClick: () => {
|
|
43
|
+
const copiedText = `<${name} />`;
|
|
44
|
+
navigator.clipboard.writeText(copiedText);
|
|
45
|
+
message.success(`${copiedText} copied to clipboard 🚀`);
|
|
46
|
+
}, children: [_jsx(Component, {}), _jsx(Typography.Text, { ellipsis: { tooltip: true }, children: name })] }, name));
|
|
47
|
+
}) })] }) }) }));
|
|
68
48
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { globalToken } from '@antscorp/antsomi-ui/es/constants';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
export const IconGalleryStyled = styled.div `
|
|
4
|
-
.grid-
|
|
5
|
-
|
|
4
|
+
.grid-container {
|
|
5
|
+
/* NOTE: I don't know why gutter of antd Row doesn't apply for row-gap */
|
|
6
|
+
/* row-gap: 16px; */
|
|
6
7
|
margin-top: 24px;
|
|
7
|
-
|
|
8
|
-
overflow-y: auto;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.grid-item {
|
|
@@ -401,5 +401,5 @@ export { WebIcon } from './WebIcon';
|
|
|
401
401
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
402
402
|
export { WidgetIcon } from './WidgetIcon';
|
|
403
403
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
404
|
-
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
405
404
|
export { QRSetDashboardIcon } from './QRSetDashboardIcon';
|
|
405
|
+
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
@@ -401,5 +401,5 @@ export { WebIcon } from './WebIcon';
|
|
|
401
401
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
402
402
|
export { WidgetIcon } from './WidgetIcon';
|
|
403
403
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
404
|
-
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
405
404
|
export { QRSetDashboardIcon } from './QRSetDashboardIcon';
|
|
405
|
+
export { QRCodeManagementIcon } from './QRCodeManagementIcon';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const AccessDeniedWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
@@ -44,7 +44,7 @@ export const AccountListing = React.forwardRef((props, ref) => {
|
|
|
44
44
|
},
|
|
45
45
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
46
46
|
[onChange, recentData]);
|
|
47
|
-
return (_jsxs(AccountSelectionStyled, { className: className, children: [_jsx(Input, { placeholder: "Search", suffix: _jsx(Icon, { type: "icon-ants-search-2", style: { fontSize: '24px', color: THEME.token?.bw8 } }), value: searchValue, onChange: event => setSearchValue(event.target.value) }), _jsx("div", { className: "account-list", children: _jsx("ul", { children: _jsxs(Scrollbars, { style: { width: '100%', height: showAllAccount ? '364px' : '410px' }, children: [recentData?.value?.length ? (_jsxs(_Fragment, { children: [_jsx(Text, { className: "recent-text", children: "Recent" }), recentData?.value
|
|
47
|
+
return (_jsxs(AccountSelectionStyled, { className: className, children: [_jsx(Input, { placeholder: "Search", suffix: _jsx(Icon, { type: "icon-ants-search-2", style: { fontSize: '24px', color: THEME.token?.bw8 } }), value: searchValue, onChange: event => setSearchValue(event.target.value) }), _jsx("div", { className: "account-list", children: _jsx("ul", { children: _jsxs(Scrollbars, { style: { width: '100%', height: showAllAccount ? '364px' : '410px' }, children: [recentData?.value?.length && recentData?.value?.length > 0 ? (_jsxs(_Fragment, { children: [_jsx(Text, { className: "recent-text", children: "Recent" }), recentData?.value
|
|
48
48
|
.map(accountId => accountData?.find(account => account.userId === accountId))
|
|
49
49
|
.filter((accountId, index, self) => Boolean(accountId) && index === self.indexOf(accountId))
|
|
50
50
|
.map(account => (_jsx(AccountItem, { userName: account.userName, userId: account.userId, onClick: handleSelectAccount, isSelected: +currentAccount === account.userId }, account.userId))), _jsx(Divider, { style: { margin: '8px 0', color: THEME.token?.bw3 } })] })) : null, stateAccountData
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { AccountSelection, type AccountSelectionProps } from './AccountSelection';
|
|
2
|
-
export { AccountListing } from './AccountListing';
|
|
3
|
-
export type { AccountListingHandle } from './AccountListing';
|
|
2
|
+
export { AccountListing, type AccountListingHandle } from './AccountListing';
|
|
4
3
|
export { useAccountSelection } from './hooks';
|
|
@@ -1,34 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface LabeledValue {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
dataType?: TDataType;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
status?: any;
|
|
9
|
-
}
|
|
10
|
-
export interface LabeledTreeValue extends LabeledValue {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
children: LabeledTreeValue[];
|
|
13
|
-
disableCheckbox?: boolean;
|
|
14
|
-
selectable?: boolean;
|
|
15
|
-
checkable?: boolean;
|
|
16
|
-
type: number | null;
|
|
17
|
-
status?: any;
|
|
18
|
-
}
|
|
19
|
-
export interface AddDynamicContentProps {
|
|
20
|
-
defaultDynamicIndex?: number;
|
|
21
|
-
journeySettings: Record<string, any>;
|
|
22
|
-
contentSources: Record<string, any>;
|
|
23
|
-
additionalAttrProperties?: string[];
|
|
24
|
-
defaultData?: Record<string, any>;
|
|
25
|
-
visible: boolean;
|
|
26
|
-
showDisplayFormat?: boolean;
|
|
27
|
-
showIndex?: boolean;
|
|
28
|
-
onCancel?: () => void;
|
|
29
|
-
onOk?: (value: Record<string, any>) => void;
|
|
30
|
-
modalTitle?: string;
|
|
31
|
-
isShowCustomFunction?: boolean;
|
|
32
|
-
APIConfig: APIConfig;
|
|
33
|
-
}
|
|
2
|
+
import { AddDynamicContentProps } from './types';
|
|
34
3
|
export declare const AddDynamicContent: React.FC<AddDynamicContentProps>;
|
|
@@ -15,6 +15,7 @@ import { Text } from '@antscorp/antsomi-ui/es/components/atoms/Text';
|
|
|
15
15
|
import { Form, Select, TreeSelect } from 'antd';
|
|
16
16
|
import { TreeNode } from 'rc-tree-select';
|
|
17
17
|
// Locales
|
|
18
|
+
import { translate, translations as translationLib } from '@antscorp/antsomi-locales';
|
|
18
19
|
import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
19
20
|
import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
20
21
|
// Query
|
|
@@ -33,6 +34,7 @@ import { buildMappingFields, buildOptionAttrArchive, checkStatusAttr, CUSTOM_TYP
|
|
|
33
34
|
// Style
|
|
34
35
|
import { EditorScript } from '../EditorScript';
|
|
35
36
|
import { InputSuggestion, ModalCustom } from './styled';
|
|
37
|
+
import { Input, Radio } from '../../atoms';
|
|
36
38
|
const getMembers = (member) => {
|
|
37
39
|
if (!member.children || !member.children.length) {
|
|
38
40
|
return member;
|
|
@@ -303,6 +305,12 @@ export const AddDynamicContent = props => {
|
|
|
303
305
|
}
|
|
304
306
|
return false;
|
|
305
307
|
}, [selectedAttr, selectedDynamicContentType, eventTrackingAttributes?.mainObjects]);
|
|
308
|
+
const eventBOAttributeLabel = useMemo(() => {
|
|
309
|
+
if (!selectedAttr?.itemTypeId || !listEventAttributes)
|
|
310
|
+
return '';
|
|
311
|
+
const boAttr = listEventAttributes.find(row => row.itemTypeId === selectedAttr?.itemTypeId);
|
|
312
|
+
return boAttr?.label;
|
|
313
|
+
}, [listEventAttributes, selectedAttr]);
|
|
306
314
|
const itemTypeName = useMemo(() => {
|
|
307
315
|
let draftItemTypeName = '';
|
|
308
316
|
if (itemTypeId) {
|
|
@@ -416,6 +424,8 @@ export const AddDynamicContent = props => {
|
|
|
416
424
|
[DYNAMIC_CONTENT_SETTING_KEY.DISPLAY_FORMAT_TYPE]: undefined,
|
|
417
425
|
[DYNAMIC_CONTENT_SETTING_KEY.FUNCTION]: undefined,
|
|
418
426
|
[DYNAMIC_CONTENT_SETTING_KEY.DATA_TYPE]: optionDataType[0].value,
|
|
427
|
+
[DYNAMIC_CONTENT_SETTING_KEY.DEFAULT_VALUE]: '',
|
|
428
|
+
[DYNAMIC_CONTENT_SETTING_KEY.DATA_SOURCE]: 'event',
|
|
419
429
|
});
|
|
420
430
|
}, [form]);
|
|
421
431
|
useEffect(() => {
|
|
@@ -1119,7 +1129,7 @@ export const AddDynamicContent = props => {
|
|
|
1119
1129
|
__html: `${t(translations.dynamicContent.modal.label.displayFormat)}: <bdo dir='ltr'>${formatedAttr}</bdo>`,
|
|
1120
1130
|
} })) : null, !showDetailEditDF && (_jsx(Button, { disabled: isActionArchive &&
|
|
1121
1131
|
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, type: "text", style: { display: 'inline-block' }, onClick: () => setShowDetailEditDF(prevShow => !prevShow), children: t(translations.edit.title) }))] }), children: _jsx(Select, { disabled: isActionArchive &&
|
|
1122
|
-
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, style: { height: 28 }, options: attrDFOptions }) })] }));
|
|
1132
|
+
selectedDynamicContentType !== DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value, style: { height: 28 }, options: attrDFOptions }) }), renderDefaultValue()] }));
|
|
1123
1133
|
};
|
|
1124
1134
|
const renderCustomerAttrFields = () => {
|
|
1125
1135
|
if (hasError[DYNAMIC_CONTENT_SETTING_KEY.ATTRIBUTE]) {
|
|
@@ -1205,6 +1215,22 @@ export const AddDynamicContent = props => {
|
|
|
1205
1215
|
gap: '8px',
|
|
1206
1216
|
}, children: _jsx(DisplayFormat, { infos: infos, url: url, displayFormatType: selectedDFType, formatSettings: attrDFSettings, onSettingsChange: (values) => setAttrDFSettings(values), dynamicContentType: form.getFieldValue(DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE) }) }));
|
|
1207
1217
|
};
|
|
1218
|
+
const renderGetFromData = () => (_jsx(Form.Item, { className: "ants-items-center", label: translate(translationLib._TITL_PERSONALIZATION_LOOKUP_YES, 'Get data from'), name: DYNAMIC_CONTENT_SETTING_KEY.DATA_SOURCE, required: true, children: _jsx(Radio.Group, { defaultValue: "event", options: [
|
|
1219
|
+
{
|
|
1220
|
+
value: 'event',
|
|
1221
|
+
label: 'Event data',
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
value: 'object',
|
|
1225
|
+
label: (_jsxs(Text, { children: [translate(translationLib._TITL_PERSONALIZATION_LOOKUP_YES, 'Data object'), ' ', _jsx("b", { children: eventBOAttributeLabel })] })),
|
|
1226
|
+
disabled: !selectedAttr?.itemTypeId,
|
|
1227
|
+
},
|
|
1228
|
+
], style: {
|
|
1229
|
+
display: 'flex',
|
|
1230
|
+
flexDirection: 'column',
|
|
1231
|
+
gap: 8,
|
|
1232
|
+
} }) }));
|
|
1233
|
+
const renderDefaultValue = () => (_jsx(Form.Item, { className: "ants-items-center", label: translate(translations._TITL_DEFAULT_VALUE, 'Default value'), name: DYNAMIC_CONTENT_SETTING_KEY.DEFAULT_VALUE, children: _jsx(Input, { placeholder: "Enter fallback text when data is unavailable" }) }));
|
|
1208
1234
|
return (_jsx(ModalCustom, { closable: false, destroyOnClose: true, forceRender: true, mask: true, okButtonProps: { disabled: formSubmitDisabled }, title: modalTitle || t(translations.dynamicContent.modal.title.addDynamicContent), visible: visible, onCancel: handleOnCancelModal, onOk: handleOnOkModal, children: _jsxs(Spin, { spinning: isFetchingSourceBO ||
|
|
1209
1235
|
isFetchingListBoAttr ||
|
|
1210
1236
|
isFetchingEventAttr ||
|
|
@@ -1212,7 +1238,7 @@ export const AddDynamicContent = props => {
|
|
|
1212
1238
|
isFetchingPromotionCodeAttr ||
|
|
1213
1239
|
isFetchingDynamicContentAttr, children: [_jsxs(Form, { style: { width: '100%' }, form: form, labelAlign: "left", labelCol: { span: 9 }, wrapperCol: { span: 15 }, onValuesChange: handleFormValuesChanges, initialValues: {
|
|
1214
1240
|
[DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE]: listDynamicContentTypes[0].value,
|
|
1215
|
-
}, children: [_jsx(Form.Item, { style: { alignItems: 'center' }, label: t(translations.dynamicContent.modal.label.contentSource), name: DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE, required: true, children: _jsx(Select, { style: { height: 28 }, options: listDynamicContentTypes }) }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.VISITOR_ATTRIBUTE.value && (
|
|
1241
|
+
}, children: [_jsx(Form.Item, { style: { alignItems: 'center' }, label: t(translations.dynamicContent.modal.label.contentSource), name: DYNAMIC_CONTENT_SETTING_KEY.DYNAMIC_CONTENT_TYPE, required: true, children: _jsx(Select, { style: { height: 28 }, options: listDynamicContentTypes }) }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.VISITOR_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderVisitorAttrFields(), renderDefaultValue()] })), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.CUSTOMER_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderCustomerAttrFields(), renderDefaultValue()] })), selectedDynamicContentType === CUSTOM_TYPE.value && _jsx(_Fragment, { children: renderCustomFunctionFields() }), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.EVENT_ATTRIBUTE.value && (_jsxs(_Fragment, { children: [renderEventFields(), renderSourceFields(), renderEventAttrFields(), renderGetFromData(), renderDefaultValue(), isShowEventIndexField
|
|
1216
1242
|
? renderIndexFields({ disabled: false, loading: false })
|
|
1217
1243
|
: null] })), selectedDynamicContentType === DYNAMIC_CONTENT_TYPE.PROMOTION_CODE.value && (_jsxs(_Fragment, { children: [renderPromotionPoolFields(), renderPromotionCodeAttr()] })), selectedDynamicContentType && regexCSType.test(selectedDynamicContentType) && (_jsxs(_Fragment, { children: [renderBoAttrFields(), renderIndexFields({ disabled: isActionArchive, loading: isFetchingListBoAttr })] })), showDisplayFormat && renderDisplayFormat()] }), showDisplayFormat && renderDisplayFormat() !== null && renderDetailDFSettings(), isShowCustomFunction && selectedDynamicContentType === CUSTOM_TYPE.value && (_jsx("div", { style: {
|
|
1218
1244
|
display: 'flex',
|
package/es/components/molecules/AddDynamicContent/components/DisplayFormat/DisplayFormat.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
|
|
2
|
-
|
|
3
|
-
type DisplayFormatProps = {
|
|
3
|
+
import { TDisplayFormat } from '../../types';
|
|
4
|
+
export type DisplayFormatProps = {
|
|
4
5
|
onSettingsChange: (settings: any) => void;
|
|
5
6
|
formatSettings: any;
|
|
6
7
|
displayFormatType: TDisplayFormat;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TDisplayFormat } from '../DisplayFormat';
|
|
2
1
|
import { PayloadInfo } from '@antscorp/antsomi-ui/es/types';
|
|
2
|
+
import { TDisplayFormat } from '../../types';
|
|
3
3
|
declare const groupingOptions: {
|
|
4
4
|
readonly COMMA: {
|
|
5
5
|
readonly index: 0;
|
|
@@ -32,8 +32,8 @@ declare const decimalOptions: {
|
|
|
32
32
|
export type TGroupingSeparator = (typeof groupingOptions)[keyof typeof groupingOptions]['value'];
|
|
33
33
|
export type TDecimalSeparator = (typeof decimalOptions)[keyof typeof decimalOptions]['value'];
|
|
34
34
|
export type TNumberFormatSettings = {
|
|
35
|
-
decimalPlaces: number;
|
|
36
35
|
grouping: TGroupingSeparator;
|
|
36
|
+
decimalPlaces: number;
|
|
37
37
|
decimal: TDecimalSeparator;
|
|
38
38
|
isCompact: boolean;
|
|
39
39
|
currencyCode: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TDataType } from './types';
|
|
2
1
|
export declare const DYNAMIC_CONTENT_SETTING_KEY: {
|
|
3
2
|
EVENT: string;
|
|
4
3
|
INDEX: string;
|
|
@@ -13,6 +12,8 @@ export declare const DYNAMIC_CONTENT_SETTING_KEY: {
|
|
|
13
12
|
PERNAME: string;
|
|
14
13
|
SAVE_AS_TEMPLATE: string;
|
|
15
14
|
DATA_TYPE: string;
|
|
15
|
+
DATA_SOURCE: string;
|
|
16
|
+
DEFAULT_VALUE: string;
|
|
16
17
|
};
|
|
17
18
|
export declare const DYNAMIC_CONTENT_TYPE_KEY: {
|
|
18
19
|
readonly BO_SETTINGS: "bo-settings";
|
|
@@ -29,11 +30,27 @@ export declare const DYNAMIC_CONTENT_TYPE: {
|
|
|
29
30
|
value: string;
|
|
30
31
|
};
|
|
31
32
|
};
|
|
32
|
-
export declare const DYNAMIC_CONTENT_ATTR_DF_TYPE: {
|
|
33
|
-
label:
|
|
34
|
-
value:
|
|
35
|
-
dataType:
|
|
36
|
-
}
|
|
33
|
+
export declare const DYNAMIC_CONTENT_ATTR_DF_TYPE: readonly [{
|
|
34
|
+
readonly label: "Number";
|
|
35
|
+
readonly value: "number";
|
|
36
|
+
readonly dataType: "number";
|
|
37
|
+
}, {
|
|
38
|
+
readonly label: "Percentage";
|
|
39
|
+
readonly value: "percentage";
|
|
40
|
+
readonly dataType: "number";
|
|
41
|
+
}, {
|
|
42
|
+
readonly label: "Currency";
|
|
43
|
+
readonly value: "currency";
|
|
44
|
+
readonly dataType: "number";
|
|
45
|
+
}, {
|
|
46
|
+
readonly label: "Datetime";
|
|
47
|
+
readonly value: "datetime";
|
|
48
|
+
readonly dataType: "datetime";
|
|
49
|
+
}, {
|
|
50
|
+
readonly label: "Raw string";
|
|
51
|
+
readonly value: "raw_string";
|
|
52
|
+
readonly dataType: "string";
|
|
53
|
+
}];
|
|
37
54
|
export declare const DATA_TYPE: {
|
|
38
55
|
[key: string]: {
|
|
39
56
|
index: number;
|
|
@@ -100,19 +117,19 @@ export declare const ATTRIBUTE_NUMBERIC_FORMAT_OPTION: {
|
|
|
100
117
|
};
|
|
101
118
|
};
|
|
102
119
|
export declare const COLLECTION_STATUS: {
|
|
103
|
-
2: {
|
|
104
|
-
value:
|
|
105
|
-
label:
|
|
106
|
-
errorMessage:
|
|
120
|
+
readonly 2: {
|
|
121
|
+
readonly value: 2;
|
|
122
|
+
readonly label: "Disable";
|
|
123
|
+
readonly errorMessage: "This collection is disabled";
|
|
107
124
|
};
|
|
108
|
-
4: {
|
|
109
|
-
value:
|
|
110
|
-
label:
|
|
111
|
-
errorMessage:
|
|
125
|
+
readonly 4: {
|
|
126
|
+
readonly value: 4;
|
|
127
|
+
readonly label: "Archive";
|
|
128
|
+
readonly errorMessage: "This collection is not available";
|
|
112
129
|
};
|
|
113
|
-
DELETE: {
|
|
114
|
-
value:
|
|
115
|
-
label:
|
|
116
|
-
errorMessage:
|
|
130
|
+
readonly DELETE: {
|
|
131
|
+
readonly value: 3;
|
|
132
|
+
readonly label: "Delete";
|
|
133
|
+
readonly errorMessage: "This collection does not exist";
|
|
117
134
|
};
|
|
118
135
|
};
|
|
@@ -12,6 +12,8 @@ export const DYNAMIC_CONTENT_SETTING_KEY = {
|
|
|
12
12
|
PERNAME: 'templateName',
|
|
13
13
|
SAVE_AS_TEMPLATE: 'saveAsTemplate',
|
|
14
14
|
DATA_TYPE: 'dataType',
|
|
15
|
+
DATA_SOURCE: 'dataSource',
|
|
16
|
+
DEFAULT_VALUE: 'defaultValue',
|
|
15
17
|
};
|
|
16
18
|
export const DYNAMIC_CONTENT_TYPE_KEY = {
|
|
17
19
|
BO_SETTINGS: 'bo-settings',
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const InputSuggestion: import("styled-components").StyledComponent<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").AutoCompleteProps<ValueType, OptionType> & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("react").RefAttributes<import("antd").RefSelectProps>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
|
|
4
5
|
displayName?: string | undefined;
|
|
5
6
|
Option: import("rc-select/lib/Option").OptionFC;
|
|
6
|
-
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) =>
|
|
7
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
|
|
7
8
|
}, any, {}, never>;
|
|
8
9
|
export declare const ModalCustom: import("styled-components").StyledComponent<import("react").FC<import("../Modal").ModalProps> & {
|
|
9
10
|
confirm: (props: import("antd").ModalFuncProps) => {
|
|
@@ -11,3 +11,35 @@ export type APIParams = {
|
|
|
11
11
|
url: string;
|
|
12
12
|
} & Record<string, any>;
|
|
13
13
|
export type DynamicContentType = (typeof DYNAMIC_CONTENT_TYPE_KEY)[keyof typeof DYNAMIC_CONTENT_TYPE_KEY];
|
|
14
|
+
export interface LabeledValue {
|
|
15
|
+
label: string;
|
|
16
|
+
value: string;
|
|
17
|
+
dataType?: TDataType;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
status?: any;
|
|
20
|
+
}
|
|
21
|
+
export interface LabeledTreeValue extends LabeledValue {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
children: LabeledTreeValue[];
|
|
24
|
+
disableCheckbox?: boolean;
|
|
25
|
+
selectable?: boolean;
|
|
26
|
+
checkable?: boolean;
|
|
27
|
+
type: number | null;
|
|
28
|
+
status?: any;
|
|
29
|
+
}
|
|
30
|
+
export interface AddDynamicContentProps {
|
|
31
|
+
defaultDynamicIndex?: number;
|
|
32
|
+
journeySettings: Record<string, any>;
|
|
33
|
+
contentSources: Record<string, any>;
|
|
34
|
+
additionalAttrProperties?: string[];
|
|
35
|
+
defaultData?: Record<string, any>;
|
|
36
|
+
visible: boolean;
|
|
37
|
+
showDisplayFormat?: boolean;
|
|
38
|
+
showIndex?: boolean;
|
|
39
|
+
onCancel?: () => void;
|
|
40
|
+
onOk?: (value: Record<string, any>) => void;
|
|
41
|
+
modalTitle?: string;
|
|
42
|
+
isShowCustomFunction?: boolean;
|
|
43
|
+
APIConfig: APIConfig;
|
|
44
|
+
}
|
|
45
|
+
export type TDisplayFormat = 'number' | 'percentage' | 'currency' | 'datetime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
2
|
import type { TDatetimeFormatSetting, TNumberFormatSettings } from './components';
|
|
3
|
-
import { LabeledTreeValue, LabeledValue } from './
|
|
3
|
+
import { LabeledTreeValue, LabeledValue } from './types';
|
|
4
4
|
export declare function getStringFormatDateDF(formatSettings: TDatetimeFormatSetting): string;
|
|
5
5
|
export declare function formatDatetimeDF(date: string | number | dayjs.Dayjs | Date, formatSettings: TDatetimeFormatSetting): string;
|
|
6
6
|
export declare function formatNumberDF(number: number, fType: 'number' | 'percentage' | 'currency', fOptions?: Omit<TNumberFormatSettings, 'type'>): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TAlign } from './index';
|
|
2
2
|
export declare const mapAlignToJustifyContent: (value: TAlign) => "auto" | "center" | "end" | "start";
|
|
3
|
-
export declare const mapJustifyContentToAlign: (value:
|
|
3
|
+
export declare const mapJustifyContentToAlign: (value: 'start' | 'end' | 'center') => string | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const ContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
3
|
+
export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
|
|
@@ -10,16 +10,15 @@ import { LOCAL_TIMEZONE, RANGE_LIMIT } from './constants';
|
|
|
10
10
|
import { initState, resetValue } from './actions';
|
|
11
11
|
import { useTriggerOut } from './hooks/useTriggerOut';
|
|
12
12
|
export const CalendarSelection = props => {
|
|
13
|
-
const
|
|
13
|
+
const initialized = useRef(false);
|
|
14
14
|
const { value, rangeLimit = RANGE_LIMIT, timezone = LOCAL_TIMEZONE, timeDisplayProps, popoverProps, rangePickerProps, onChange, } = props;
|
|
15
15
|
const [state, dispatch] = useReducer(reducer, INITIAL_STATE);
|
|
16
16
|
useLayoutEffect(() => {
|
|
17
|
-
if (!value)
|
|
17
|
+
if (!value || initialized.current)
|
|
18
18
|
return;
|
|
19
|
-
const needTriggerOut = !
|
|
20
|
-
// console.log({ needTriggerOut });
|
|
19
|
+
const needTriggerOut = !initialized.current;
|
|
21
20
|
dispatch(initState(value, needTriggerOut));
|
|
22
|
-
|
|
21
|
+
initialized.current = true;
|
|
23
22
|
}, [value]);
|
|
24
23
|
useLayoutEffect(() => {
|
|
25
24
|
if (!state.open) {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { Custom, RangeInfo, CalendarSelectionValue, RangeValue } from './types';
|
|
2
|
-
export declare const ACTION_TYPES: {
|
|
3
|
-
readonly initState: "init_state";
|
|
4
|
-
readonly changeRangeType: "change_range_type";
|
|
5
|
-
readonly updateRangeInfo: "update_range_info";
|
|
6
|
-
readonly updateRangeValue: "update_range_value";
|
|
7
|
-
readonly changeAutoUpdateTo: "change_auto_update_to";
|
|
8
|
-
readonly togglePopover: "toggle_popover";
|
|
9
|
-
readonly apply: "apply";
|
|
10
|
-
readonly resetValue: "reset_value";
|
|
11
|
-
};
|
|
12
2
|
export declare const changeRangeType: (rangeType: string, callback?: (rangeInfo: RangeInfo) => void) => {
|
|
13
3
|
type: "change_range_type";
|
|
14
4
|
payload: {
|
|
@@ -33,7 +23,7 @@ export declare const updateRangeValue: (rangeValue: RangeValue[], options?: {
|
|
|
33
23
|
} | undefined;
|
|
34
24
|
};
|
|
35
25
|
};
|
|
36
|
-
export declare const changeAutoUpdateTo: (value: Custom[
|
|
26
|
+
export declare const changeAutoUpdateTo: (value: Custom['autoUpdateTo']) => {
|
|
37
27
|
type: "change_auto_update_to";
|
|
38
28
|
payload: import("./types").AutoUpdateTo;
|
|
39
29
|
};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
initState: 'init_state',
|
|
3
|
-
changeRangeType: 'change_range_type',
|
|
4
|
-
updateRangeInfo: 'update_range_info',
|
|
5
|
-
updateRangeValue: 'update_range_value',
|
|
6
|
-
changeAutoUpdateTo: 'change_auto_update_to',
|
|
7
|
-
togglePopover: 'toggle_popover',
|
|
8
|
-
apply: 'apply',
|
|
9
|
-
resetValue: 'reset_value',
|
|
10
|
-
};
|
|
1
|
+
import { ACTION_TYPES } from './constants';
|
|
11
2
|
export const changeRangeType = (rangeType, callback) => ({
|
|
12
3
|
type: ACTION_TYPES.changeRangeType,
|
|
13
4
|
payload: { rangeType, callback },
|
package/es/components/molecules/CalendarSelection/components/TimeRangeDisplay/TimeRangeDisplay.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export type TimeRangeDisplayProps = {
|
|
4
|
-
showType?: boolean;
|
|
5
|
-
formatStart?: string;
|
|
6
|
-
formatEnd?: string;
|
|
7
|
-
operator?: string;
|
|
8
|
-
render?: (value: CalendarSelectionValue, rangeSelectedTitle: string, rangeValueTitles: string[], handleOpenPopover: () => void) => React.ReactNode;
|
|
9
|
-
};
|
|
2
|
+
import { TimeRangeDisplayProps } from '../../types';
|
|
10
3
|
export declare const TimeRangeDisplay: React.FC<TimeRangeDisplayProps>;
|