@antscorp/antsomi-ui 1.3.5-beta.937 → 1.3.5-beta.938
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.js +2 -0
- package/es/__tests__/styleMock.test.js +2 -0
- package/es/components/atoms/NotificationStatus/NotificationStatus.js +27 -0
- package/es/components/atoms/NotificationStatus/constants/index.js +15 -0
- package/es/components/atoms/NotificationStatus/index.js +1 -0
- package/es/components/atoms/NotificationStatus/styled.js +14 -0
- package/es/components/atoms/Popover/styled.js +5 -0
- package/es/components/atoms/RateV2/RateV2.js +2 -2
- package/es/components/atoms/SlideBar/SlideBar.js +1 -3
- package/es/components/atoms/Slider/index.js +8 -3
- package/es/components/atoms/index.js +1 -0
- package/es/components/icons/LazyIcon/LazyIcon.js +9 -9
- package/es/components/icons/index.js +9 -9
- package/es/components/molecules/AccountSelection/AccountListing.js +1 -1
- package/es/components/molecules/CalendarSelection/CalendarSelection.js +4 -5
- package/es/components/molecules/ColorPicker/CustomPicker/index.js +2 -2
- package/es/components/molecules/ColorPicker/index.js +3 -2
- package/es/components/molecules/DrawerDetail/DrawerDetail.js +3 -3
- package/es/components/molecules/FontSetting/index.js +2 -2
- package/es/components/molecules/RichMenu/RichMenuBlock/constants.js +1 -1
- package/es/components/molecules/SearchPopover/components/PopoverSelect/PopoverSelect.js +4 -1
- package/es/components/molecules/TagifyInput/TagifyInput.js +70 -33
- package/es/components/molecules/TagifyInput/constants.js +18 -3
- package/es/components/molecules/TagifyInput/patternHandlers.js +208 -12
- package/es/components/molecules/TagifyInput/utils.js +12 -3
- package/es/components/molecules/TagifyInput/utils.style.js +29 -37
- package/es/components/molecules/TemplateSaveAs/styled.js +1 -1
- package/es/components/molecules/UploadImage/MediaThumb.js +15 -0
- package/es/components/molecules/UploadImage/VideoThumbnail.js +40 -0
- package/es/components/molecules/UploadImage/index.js +41 -4
- package/es/components/molecules/index.js +1 -1
- package/es/components/organism/AccountSharing/AccountSharing.js +8 -2
- package/es/components/organism/AccountSharing/styled.js +12 -2
- package/es/components/organism/ContentSources/Settings.js +1 -1
- package/es/components/organism/ContentSources/index.js +4 -3
- package/es/components/organism/DataTable/hooks/index.js +1 -0
- package/es/components/organism/DataTable/hooks/useCDPTable/useCDPTable.js +126 -0
- package/es/components/organism/DataTable/index.js +1 -1
- package/es/components/organism/GenerativeInsights/constants.js +1 -0
- package/es/components/organism/GenerativeInsights/index.js +54 -0
- package/es/components/organism/GenerativeInsights/styled.js +65 -0
- package/es/components/organism/GenerativeInsights/utils.js +49 -0
- package/es/components/organism/LeftMenu/utils/index.js +7 -5
- package/es/components/organism/index.js +1 -0
- package/es/components/template/Layout/Layout.js +2 -0
- package/es/constants/queries.js +1 -0
- package/es/constants/theme.js +1 -0
- package/es/locales/en/google-sheet.json +1 -0
- package/es/locales/ja/google-sheet.json +49 -48
- package/es/locales/vi/google-sheet.json +2 -1
- package/es/providers/ConfigProvider/GlobalStyle.js +51 -3
- package/es/queries/Account/useGetAccountList.js +1 -1
- package/es/queries/Media/index.js +1 -0
- package/es/queries/Media/useGetListingSavedMedia.js +15 -0
- package/es/queries/index.js +1 -0
- package/es/test.js +138 -377
- package/package.json +18 -14
- package/es/stories/assets/code-brackets.svg +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { notification } from 'antd';
|
|
3
|
+
import { MAP_BY_TYPE, STYLE_NOTIFICATION } from './constants';
|
|
4
|
+
import { Content, Title } from './styled';
|
|
5
|
+
import { Icon } from '../Icon';
|
|
6
|
+
const useNotificationStatus = () => {
|
|
7
|
+
const [api, contextHolder] = notification.useNotification();
|
|
8
|
+
const showNotification = ({ title = '', message = '', type = 'success', timeout = 4, }) => {
|
|
9
|
+
const info = MAP_BY_TYPE[type];
|
|
10
|
+
return api[type]({
|
|
11
|
+
message: _jsx(Title, { color: info.color, children: title }),
|
|
12
|
+
description: _jsx(Content, { children: message }),
|
|
13
|
+
duration: timeout,
|
|
14
|
+
style: {
|
|
15
|
+
...STYLE_NOTIFICATION,
|
|
16
|
+
borderLeft: `4px solid ${info.color}`,
|
|
17
|
+
},
|
|
18
|
+
placement: 'bottomLeft',
|
|
19
|
+
closeIcon: _jsx(Icon, { size: 14, color: "#595959", type: "icon-ants-remove-slim" }),
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
contextHolder,
|
|
24
|
+
showNotification,
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default useNotificationStatus;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export const MAP_BY_TYPE = {
|
|
2
|
+
success: {
|
|
3
|
+
color: '#12B800',
|
|
4
|
+
},
|
|
5
|
+
error: {
|
|
6
|
+
color: '#ef3340',
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
|
+
export const STYLE_NOTIFICATION = {
|
|
10
|
+
display: 'flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
gap: '10px',
|
|
13
|
+
padding: '15px',
|
|
14
|
+
borderRadius: '10px',
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as useNotificationStatus } from './NotificationStatus';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
export const Title = styled.div `
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
line-height: 20px;
|
|
6
|
+
color: ${props => props.color || '#000'};
|
|
7
|
+
`;
|
|
8
|
+
export const WrapperIcon = styled.div `
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
`;
|
|
12
|
+
export const Content = styled.div `
|
|
13
|
+
color: #7f7f7f;
|
|
14
|
+
`;
|
|
@@ -29,7 +29,7 @@ export const RateV2 = ({ count = 5, className, defaultValue = 0, value, type = '
|
|
|
29
29
|
// The real current value that will be return to parent component by onChange function
|
|
30
30
|
// currWidth = value * STAR_WIDTH
|
|
31
31
|
const [currWidth, setCurrWidth] = useState(0);
|
|
32
|
-
const handleMouseMove = e => {
|
|
32
|
+
const handleMouseMove = (e) => {
|
|
33
33
|
const rect = e.currentTarget.getBoundingClientRect();
|
|
34
34
|
const x = e.clientX - rect.left;
|
|
35
35
|
const hoverWidth = Math.round(x);
|
|
@@ -48,7 +48,7 @@ export const RateV2 = ({ count = 5, className, defaultValue = 0, value, type = '
|
|
|
48
48
|
setCurrWidth(width);
|
|
49
49
|
setFillWidth(width);
|
|
50
50
|
}
|
|
51
|
-
}, [value]);
|
|
51
|
+
}, [value, type]);
|
|
52
52
|
return (_jsxs("div", { className: `antsomi-rate-continuous${className ? ` ${className}` : ''}`, style: {
|
|
53
53
|
position: 'relative',
|
|
54
54
|
width: `${fullWidth}px`,
|
|
@@ -270,9 +270,7 @@ export const SlideBar = props => {
|
|
|
270
270
|
fontSize: `${BTN_ADD_SIZE}px`,
|
|
271
271
|
cursor: disabledAdd ? 'not-allowed' : 'pointer',
|
|
272
272
|
color: disabledAdd ? THEME.token?.colorTextDisabled : THEME.token?.colorPrimary,
|
|
273
|
-
},
|
|
274
|
-
// disabled={disabledAdd}
|
|
275
|
-
onClick: (e) => {
|
|
273
|
+
}, onClick: (e) => {
|
|
276
274
|
e.stopPropagation();
|
|
277
275
|
if (!disabledAdd) {
|
|
278
276
|
handleAddSlide();
|
|
@@ -10,11 +10,16 @@ export const Slider = memo(props => {
|
|
|
10
10
|
const { range, value, min = 0, max = 0, className, tooltipVisible = false } = props;
|
|
11
11
|
const isNegative = useMemo(() => !!(!range && min < 0), [range, min]);
|
|
12
12
|
const calculateWidth = useMemo(() => ((value || 0) * 100) / (Math.abs(max) + Math.abs(min) || 1), [min, max, value]);
|
|
13
|
-
const restProps = tooltipVisible === 'default' ? omit(props, ['tooltipVisible']) : props;
|
|
13
|
+
// const restProps = tooltipVisible === 'default' ? omit(props, ['tooltipVisible']) : props;
|
|
14
|
+
const restProps = omit(props, ['tooltipVisible']);
|
|
14
15
|
if (isNegative) {
|
|
15
|
-
return (_jsx(SliderWrapper, { isNegative: true, width: calculateWidth, className: className, children: _jsx(AntdSlider, { ...omit(restProps, ['marks', 'className']),
|
|
16
|
+
return (_jsx(SliderWrapper, { isNegative: true, width: calculateWidth, className: className, children: _jsx(AntdSlider, { ...omit(restProps, ['marks', 'className']), tooltip: tooltipVisible !== 'default' && {
|
|
17
|
+
open: tooltipVisible,
|
|
18
|
+
}, marks: {
|
|
16
19
|
0: ' ',
|
|
17
20
|
} }) }));
|
|
18
21
|
}
|
|
19
|
-
return (_jsx(SliderWrapper, { className: className, children: _jsx(AntdSlider, { ...restProps
|
|
22
|
+
return (_jsx(SliderWrapper, { className: className, children: _jsx(AntdSlider, { ...restProps, tooltip: tooltipVisible !== 'default' && {
|
|
23
|
+
open: tooltipVisible,
|
|
24
|
+
} }) }));
|
|
20
25
|
});
|
|
@@ -2,10 +2,10 @@ import { lazy } from 'react';
|
|
|
2
2
|
export const LazyIcon = {
|
|
3
3
|
AccountCircleIcon: lazy(() => import('../AccountCircleIcon').then(m => ({ default: m.AccountCircleIcon }))),
|
|
4
4
|
AccountCircleOutlineIcon: lazy(() => import('../AccountCircleOutlineIcon').then(m => ({ default: m.AccountCircleOutlineIcon }))),
|
|
5
|
-
Accounts30Icon: lazy(() => import('../Accounts30Icon').then(m => ({ default: m.Accounts30Icon }))),
|
|
6
5
|
AccountSharing30Icon: lazy(() => import('../AccountSharing30Icon').then(m => ({ default: m.AccountSharing30Icon }))),
|
|
7
6
|
AccountSharingIcon: lazy(() => import('../AccountSharingIcon').then(m => ({ default: m.AccountSharingIcon }))),
|
|
8
7
|
AccountTreeIcon: lazy(() => import('../AccountTreeIcon').then(m => ({ default: m.AccountTreeIcon }))),
|
|
8
|
+
Accounts30Icon: lazy(() => import('../Accounts30Icon').then(m => ({ default: m.Accounts30Icon }))),
|
|
9
9
|
AddChartIcon: lazy(() => import('../AddChartIcon').then(m => ({ default: m.AddChartIcon }))),
|
|
10
10
|
AddFolderIcon: lazy(() => import('../AddFolderIcon').then(m => ({ default: m.AddFolderIcon }))),
|
|
11
11
|
AddIcon: lazy(() => import('../AddIcon').then(m => ({ default: m.AddIcon }))),
|
|
@@ -56,6 +56,7 @@ export const LazyIcon = {
|
|
|
56
56
|
}))),
|
|
57
57
|
ChatMentionIcon: lazy(() => import('../ChatMentionIcon').then(m => ({ default: m.ChatMentionIcon }))),
|
|
58
58
|
ChatUnreadIcon: lazy(() => import('../ChatUnreadIcon').then(m => ({ default: m.ChatUnreadIcon }))),
|
|
59
|
+
CheckSlimIcon: lazy(() => import('../CheckSlimIcon').then(m => ({ default: m.CheckSlimIcon }))),
|
|
59
60
|
CheckboxChecked5RadiusIcon: lazy(() => import('../CheckboxChecked5RadiusIcon').then(m => ({ default: m.CheckboxChecked5RadiusIcon }))),
|
|
60
61
|
CheckboxCheckedIcon: lazy(() => import('../CheckboxCheckedIcon').then(m => ({ default: m.CheckboxCheckedIcon }))),
|
|
61
62
|
CheckboxIndeterminate5RadiusIcon: lazy(() => import('../CheckboxIndeterminate5RadiusIcon').then(m => ({
|
|
@@ -67,7 +68,6 @@ export const LazyIcon = {
|
|
|
67
68
|
}))),
|
|
68
69
|
CheckboxUncheckedIcon: lazy(() => import('../CheckboxUncheckedIcon').then(m => ({ default: m.CheckboxUncheckedIcon }))),
|
|
69
70
|
ChecklistRtlIcon: lazy(() => import('../ChecklistRtlIcon').then(m => ({ default: m.ChecklistRtlIcon }))),
|
|
70
|
-
CheckSlimIcon: lazy(() => import('../CheckSlimIcon').then(m => ({ default: m.CheckSlimIcon }))),
|
|
71
71
|
CircleAddElementIcon: lazy(() => import('../CircleAddElementIcon').then(m => ({ default: m.CircleAddElementIcon }))),
|
|
72
72
|
CircleNotificationsIcon: lazy(() => import('../CircleNotificationsIcon').then(m => ({ default: m.CircleNotificationsIcon }))),
|
|
73
73
|
CloseIcon: lazy(() => import('../CloseIcon').then(m => ({ default: m.CloseIcon }))),
|
|
@@ -102,15 +102,15 @@ export const LazyIcon = {
|
|
|
102
102
|
DataDestinationIcon: lazy(() => import('../DataDestinationIcon').then(m => ({ default: m.DataDestinationIcon }))),
|
|
103
103
|
DataEncryption30Icon: lazy(() => import('../DataEncryption30Icon').then(m => ({ default: m.DataEncryption30Icon }))),
|
|
104
104
|
DataEncryptionIcon: lazy(() => import('../DataEncryptionIcon').then(m => ({ default: m.DataEncryptionIcon }))),
|
|
105
|
-
Dataflows30Icon: lazy(() => import('../Dataflows30Icon').then(m => ({ default: m.Dataflows30Icon }))),
|
|
106
105
|
DataIcon: lazy(() => import('../DataIcon').then(m => ({ default: m.DataIcon }))),
|
|
107
106
|
DataRefreshIcon: lazy(() => import('../DataRefreshIcon').then(m => ({ default: m.DataRefreshIcon }))),
|
|
108
107
|
DataSchema30Icon: lazy(() => import('../DataSchema30Icon').then(m => ({ default: m.DataSchema30Icon }))),
|
|
109
108
|
DataSource30Icon: lazy(() => import('../DataSource30Icon').then(m => ({ default: m.DataSource30Icon }))),
|
|
110
|
-
DatasourceIcon: lazy(() => import('../DatasourceIcon').then(m => ({ default: m.DatasourceIcon }))),
|
|
111
|
-
DatasourceSegment30Icon: lazy(() => import('../DatasourceSegment30Icon').then(m => ({ default: m.DatasourceSegment30Icon }))),
|
|
112
109
|
DataView30Icon: lazy(() => import('../DataView30Icon').then(m => ({ default: m.DataView30Icon }))),
|
|
113
110
|
DataViewIcon: lazy(() => import('../DataViewIcon').then(m => ({ default: m.DataViewIcon }))),
|
|
111
|
+
Dataflows30Icon: lazy(() => import('../Dataflows30Icon').then(m => ({ default: m.Dataflows30Icon }))),
|
|
112
|
+
DatasourceIcon: lazy(() => import('../DatasourceIcon').then(m => ({ default: m.DatasourceIcon }))),
|
|
113
|
+
DatasourceSegment30Icon: lazy(() => import('../DatasourceSegment30Icon').then(m => ({ default: m.DatasourceSegment30Icon }))),
|
|
114
114
|
DecreaseDecimalIcon: lazy(() => import('../DecreaseDecimalIcon').then(m => ({ default: m.DecreaseDecimalIcon }))),
|
|
115
115
|
DeleteRemoveTrashIcon: lazy(() => import('../DeleteRemoveTrashIcon').then(m => ({ default: m.DeleteRemoveTrashIcon }))),
|
|
116
116
|
DeliveryLogIcon: lazy(() => import('../DeliveryLogIcon').then(m => ({ default: m.DeliveryLogIcon }))),
|
|
@@ -187,13 +187,13 @@ export const LazyIcon = {
|
|
|
187
187
|
ForwardIcon: lazy(() => import('../ForwardIcon').then(m => ({ default: m.ForwardIcon }))),
|
|
188
188
|
FreeDrawIcon: lazy(() => import('../FreeDrawIcon').then(m => ({ default: m.FreeDrawIcon }))),
|
|
189
189
|
FullReviewIcon: lazy(() => import('../FullReviewIcon').then(m => ({ default: m.FullReviewIcon }))),
|
|
190
|
+
GPTIcon: lazy(() => import('../GPTIcon').then(m => ({ default: m.GPTIcon }))),
|
|
190
191
|
GalleryTemplateIcon: lazy(() => import('../GalleryTemplateIcon').then(m => ({ default: m.GalleryTemplateIcon }))),
|
|
191
192
|
GeneralSettingIcon: lazy(() => import('../GeneralSettingIcon').then(m => ({ default: m.GeneralSettingIcon }))),
|
|
192
193
|
GeneralSettings30Icon: lazy(() => import('../GeneralSettings30Icon').then(m => ({ default: m.GeneralSettings30Icon }))),
|
|
193
194
|
GenerateAutoWizardIcon: lazy(() => import('../GenerateAutoWizardIcon').then(m => ({ default: m.GenerateAutoWizardIcon }))),
|
|
194
195
|
Geofence30Icon: lazy(() => import('../Geofence30Icon').then(m => ({ default: m.Geofence30Icon }))),
|
|
195
196
|
GetInsightIcon: lazy(() => import('../GetInsightIcon').then(m => ({ default: m.GetInsightIcon }))),
|
|
196
|
-
GPTIcon: lazy(() => import('../GPTIcon').then(m => ({ default: m.GPTIcon }))),
|
|
197
197
|
GridViewIcon: lazy(() => import('../GridViewIcon').then(m => ({ default: m.GridViewIcon }))),
|
|
198
198
|
GroupIcon: lazy(() => import('../GroupIcon').then(m => ({ default: m.GroupIcon }))),
|
|
199
199
|
GroupLayerIcon: lazy(() => import('../GroupLayerIcon').then(m => ({ default: m.GroupLayerIcon }))),
|
|
@@ -255,8 +255,8 @@ export const LazyIcon = {
|
|
|
255
255
|
NodeViewIcon: lazy(() => import('../NodeViewIcon').then(m => ({ default: m.NodeViewIcon }))),
|
|
256
256
|
NoteNewIcon: lazy(() => import('../NoteNewIcon').then(m => ({ default: m.NoteNewIcon }))),
|
|
257
257
|
NotificationIcon: lazy(() => import('../NotificationIcon').then(m => ({ default: m.NotificationIcon }))),
|
|
258
|
-
NotificationsActiveIcon: lazy(() => import('../NotificationsActiveIcon').then(m => ({ default: m.NotificationsActiveIcon }))),
|
|
259
258
|
NotificationSettingIcon: lazy(() => import('../NotificationSettingIcon').then(m => ({ default: m.NotificationSettingIcon }))),
|
|
259
|
+
NotificationsActiveIcon: lazy(() => import('../NotificationsActiveIcon').then(m => ({ default: m.NotificationsActiveIcon }))),
|
|
260
260
|
OpenNewTabIcon: lazy(() => import('../OpenNewTabIcon').then(m => ({ default: m.OpenNewTabIcon }))),
|
|
261
261
|
OpenUrlIcon: lazy(() => import('../OpenUrlIcon').then(m => ({ default: m.OpenUrlIcon }))),
|
|
262
262
|
OrchestrationIcon: lazy(() => import('../OrchestrationIcon').then(m => ({ default: m.OrchestrationIcon }))),
|
|
@@ -309,6 +309,7 @@ export const LazyIcon = {
|
|
|
309
309
|
ResumeIcon: lazy(() => import('../ResumeIcon').then(m => ({ default: m.ResumeIcon }))),
|
|
310
310
|
RightExpandIcon: lazy(() => import('../RightExpandIcon').then(m => ({ default: m.RightExpandIcon }))),
|
|
311
311
|
Role30Icon: lazy(() => import('../Role30Icon').then(m => ({ default: m.Role30Icon }))),
|
|
312
|
+
SQLWorkspace30Icon: lazy(() => import('../SQLWorkspace30Icon').then(m => ({ default: m.SQLWorkspace30Icon }))),
|
|
312
313
|
SaveAsIcon: lazy(() => import('../SaveAsIcon').then(m => ({ default: m.SaveAsIcon }))),
|
|
313
314
|
SaveIcon: lazy(() => import('../SaveIcon').then(m => ({ default: m.SaveIcon }))),
|
|
314
315
|
ScheduleEmailDeliveryIcon: lazy(() => import('../ScheduleEmailDeliveryIcon').then(m => ({ default: m.ScheduleEmailDeliveryIcon }))),
|
|
@@ -332,7 +333,6 @@ export const LazyIcon = {
|
|
|
332
333
|
SlideGroupIcon: lazy(() => import('../SlideGroupIcon').then(m => ({ default: m.SlideGroupIcon }))),
|
|
333
334
|
Sort1Icon: lazy(() => import('../Sort1Icon').then(m => ({ default: m.Sort1Icon }))),
|
|
334
335
|
SortIcon: lazy(() => import('../SortIcon').then(m => ({ default: m.SortIcon }))),
|
|
335
|
-
SQLWorkspace30Icon: lazy(() => import('../SQLWorkspace30Icon').then(m => ({ default: m.SQLWorkspace30Icon }))),
|
|
336
336
|
SqlWorkspaceIcon: lazy(() => import('../SqlWorkspaceIcon').then(m => ({ default: m.SqlWorkspaceIcon }))),
|
|
337
337
|
StatisticIcon: lazy(() => import('../StatisticIcon').then(m => ({ default: m.StatisticIcon }))),
|
|
338
338
|
StickerIcon: lazy(() => import('../StickerIcon').then(m => ({ default: m.StickerIcon }))),
|
|
@@ -380,9 +380,9 @@ export const LazyIcon = {
|
|
|
380
380
|
VisitorInformationIcon: lazy(() => import('../VisitorInformationIcon').then(m => ({ default: m.VisitorInformationIcon }))),
|
|
381
381
|
WarningIcon: lazy(() => import('../WarningIcon').then(m => ({ default: m.WarningIcon }))),
|
|
382
382
|
WebAssetIcon: lazy(() => import('../WebAssetIcon').then(m => ({ default: m.WebAssetIcon }))),
|
|
383
|
-
WebhookIcon: lazy(() => import('../WebhookIcon').then(m => ({ default: m.WebhookIcon }))),
|
|
384
383
|
WebIcon: lazy(() => import('../WebIcon').then(m => ({ default: m.WebIcon }))),
|
|
385
384
|
WebPersonalizationIcon: lazy(() => import('../WebPersonalizationIcon').then(m => ({ default: m.WebPersonalizationIcon }))),
|
|
385
|
+
WebhookIcon: lazy(() => import('../WebhookIcon').then(m => ({ default: m.WebhookIcon }))),
|
|
386
386
|
WidgetIcon: lazy(() => import('../WidgetIcon').then(m => ({ default: m.WidgetIcon }))),
|
|
387
387
|
WritingAIAssitantIcon: lazy(() => import('../WritingAIAssitantIcon').then(m => ({ default: m.WritingAIAssitantIcon }))),
|
|
388
388
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AccountCircleIcon } from './AccountCircleIcon';
|
|
2
2
|
export { AccountCircleOutlineIcon } from './AccountCircleOutlineIcon';
|
|
3
|
-
export { Accounts30Icon } from './Accounts30Icon';
|
|
4
3
|
export { AccountSharing30Icon } from './AccountSharing30Icon';
|
|
5
4
|
export { AccountSharingIcon } from './AccountSharingIcon';
|
|
6
5
|
export { AccountTreeIcon } from './AccountTreeIcon';
|
|
6
|
+
export { Accounts30Icon } from './Accounts30Icon';
|
|
7
7
|
export { AddChartIcon } from './AddChartIcon';
|
|
8
8
|
export { AddFolderIcon } from './AddFolderIcon';
|
|
9
9
|
export { AddIcon } from './AddIcon';
|
|
@@ -52,6 +52,7 @@ export { ChatBubbleOutlineIcon } from './ChatBubbleOutlineIcon';
|
|
|
52
52
|
export { ChatConversationCommentAddCommentIcon } from './ChatConversationCommentAddCommentIcon';
|
|
53
53
|
export { ChatMentionIcon } from './ChatMentionIcon';
|
|
54
54
|
export { ChatUnreadIcon } from './ChatUnreadIcon';
|
|
55
|
+
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
55
56
|
export { CheckboxChecked5RadiusIcon } from './CheckboxChecked5RadiusIcon';
|
|
56
57
|
export { CheckboxCheckedIcon } from './CheckboxCheckedIcon';
|
|
57
58
|
export { CheckboxIndeterminate5RadiusIcon } from './CheckboxIndeterminate5RadiusIcon';
|
|
@@ -59,7 +60,6 @@ export { CheckboxIndeterminateIcon } from './CheckboxIndeterminateIcon';
|
|
|
59
60
|
export { CheckboxUnchecked5RadiusIcon } from './CheckboxUnchecked5RadiusIcon';
|
|
60
61
|
export { CheckboxUncheckedIcon } from './CheckboxUncheckedIcon';
|
|
61
62
|
export { ChecklistRtlIcon } from './ChecklistRtlIcon';
|
|
62
|
-
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
63
63
|
export { CircleAddElementIcon } from './CircleAddElementIcon';
|
|
64
64
|
export { CircleNotificationsIcon } from './CircleNotificationsIcon';
|
|
65
65
|
export { CloseIcon } from './CloseIcon';
|
|
@@ -94,15 +94,15 @@ export { DataDestination30Icon } from './DataDestination30Icon';
|
|
|
94
94
|
export { DataDestinationIcon } from './DataDestinationIcon';
|
|
95
95
|
export { DataEncryption30Icon } from './DataEncryption30Icon';
|
|
96
96
|
export { DataEncryptionIcon } from './DataEncryptionIcon';
|
|
97
|
-
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
98
97
|
export { DataIcon } from './DataIcon';
|
|
99
98
|
export { DataRefreshIcon } from './DataRefreshIcon';
|
|
100
99
|
export { DataSchema30Icon } from './DataSchema30Icon';
|
|
101
100
|
export { DataSource30Icon } from './DataSource30Icon';
|
|
102
|
-
export { DatasourceIcon } from './DatasourceIcon';
|
|
103
|
-
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
104
101
|
export { DataView30Icon } from './DataView30Icon';
|
|
105
102
|
export { DataViewIcon } from './DataViewIcon';
|
|
103
|
+
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
104
|
+
export { DatasourceIcon } from './DatasourceIcon';
|
|
105
|
+
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
106
106
|
export { DecreaseDecimalIcon } from './DecreaseDecimalIcon';
|
|
107
107
|
export { DeleteRemoveTrashIcon } from './DeleteRemoveTrashIcon';
|
|
108
108
|
export { DeliveryLogIcon } from './DeliveryLogIcon';
|
|
@@ -179,13 +179,13 @@ export { Form30Icon } from './Form30Icon';
|
|
|
179
179
|
export { ForwardIcon } from './ForwardIcon';
|
|
180
180
|
export { FreeDrawIcon } from './FreeDrawIcon';
|
|
181
181
|
export { FullReviewIcon } from './FullReviewIcon';
|
|
182
|
+
export { GPTIcon } from './GPTIcon';
|
|
182
183
|
export { GalleryTemplateIcon } from './GalleryTemplateIcon';
|
|
183
184
|
export { GeneralSettingIcon } from './GeneralSettingIcon';
|
|
184
185
|
export { GeneralSettings30Icon } from './GeneralSettings30Icon';
|
|
185
186
|
export { GenerateAutoWizardIcon } from './GenerateAutoWizardIcon';
|
|
186
187
|
export { Geofence30Icon } from './Geofence30Icon';
|
|
187
188
|
export { GetInsightIcon } from './GetInsightIcon';
|
|
188
|
-
export { GPTIcon } from './GPTIcon';
|
|
189
189
|
export { GridViewIcon } from './GridViewIcon';
|
|
190
190
|
export { GroupIcon } from './GroupIcon';
|
|
191
191
|
export { GroupLayerIcon } from './GroupLayerIcon';
|
|
@@ -247,8 +247,8 @@ export { MuteIcon } from './MuteIcon';
|
|
|
247
247
|
export { NodeViewIcon } from './NodeViewIcon';
|
|
248
248
|
export { NoteNewIcon } from './NoteNewIcon';
|
|
249
249
|
export { NotificationIcon } from './NotificationIcon';
|
|
250
|
-
export { NotificationsActiveIcon } from './NotificationsActiveIcon';
|
|
251
250
|
export { NotificationSettingIcon } from './NotificationSettingIcon';
|
|
251
|
+
export { NotificationsActiveIcon } from './NotificationsActiveIcon';
|
|
252
252
|
export { OpenNewTabIcon } from './OpenNewTabIcon';
|
|
253
253
|
export { OpenUrlIcon } from './OpenUrlIcon';
|
|
254
254
|
export { OrchestrationIcon } from './OrchestrationIcon';
|
|
@@ -299,6 +299,7 @@ export { RestoreDefaultIcon } from './RestoreDefaultIcon';
|
|
|
299
299
|
export { ResumeIcon } from './ResumeIcon';
|
|
300
300
|
export { RightExpandIcon } from './RightExpandIcon';
|
|
301
301
|
export { Role30Icon } from './Role30Icon';
|
|
302
|
+
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
302
303
|
export { SaveAsIcon } from './SaveAsIcon';
|
|
303
304
|
export { SaveIcon } from './SaveIcon';
|
|
304
305
|
export { ScheduleEmailDeliveryIcon } from './ScheduleEmailDeliveryIcon';
|
|
@@ -322,7 +323,6 @@ export { SignatureIcon } from './SignatureIcon';
|
|
|
322
323
|
export { SlideGroupIcon } from './SlideGroupIcon';
|
|
323
324
|
export { Sort1Icon } from './Sort1Icon';
|
|
324
325
|
export { SortIcon } from './SortIcon';
|
|
325
|
-
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
326
326
|
export { SqlWorkspaceIcon } from './SqlWorkspaceIcon';
|
|
327
327
|
export { StatisticIcon } from './StatisticIcon';
|
|
328
328
|
export { StickerIcon } from './StickerIcon';
|
|
@@ -370,8 +370,8 @@ export { VisitorIcon } from './VisitorIcon';
|
|
|
370
370
|
export { VisitorInformationIcon } from './VisitorInformationIcon';
|
|
371
371
|
export { WarningIcon } from './WarningIcon';
|
|
372
372
|
export { WebAssetIcon } from './WebAssetIcon';
|
|
373
|
-
export { WebhookIcon } from './WebhookIcon';
|
|
374
373
|
export { WebIcon } from './WebIcon';
|
|
375
374
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
375
|
+
export { WebhookIcon } from './WebhookIcon';
|
|
376
376
|
export { WidgetIcon } from './WidgetIcon';
|
|
377
377
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
@@ -33,7 +33,7 @@ export const AccountListing = React.forwardRef((props, ref) => {
|
|
|
33
33
|
},
|
|
34
34
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
35
35
|
[onChange, recentData]);
|
|
36
|
-
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
|
|
36
|
+
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
|
|
37
37
|
.map(accountId => accountData?.find(account => account.userId === accountId))
|
|
38
38
|
.filter((accountId, index, self) => Boolean(accountId) && index === self.indexOf(accountId))
|
|
39
39
|
.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, accountData
|
|
@@ -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) {
|
|
@@ -42,7 +42,7 @@ const styleContainAlpha = {
|
|
|
42
42
|
};
|
|
43
43
|
const CustomPicker = props => {
|
|
44
44
|
// Props
|
|
45
|
-
const { className, style, children, onChange, onChangeComplete, presetColors, ...restOf } = props;
|
|
45
|
+
const { className, style, children, isHideAlpha, onChange, onChangeComplete, presetColors, ...restOf } = props;
|
|
46
46
|
// State
|
|
47
47
|
const [isShowRgbaInput, setShowRgbaInput] = useState(true);
|
|
48
48
|
const onChangeRgbaColor = (key, value) => {
|
|
@@ -68,7 +68,7 @@ const CustomPicker = props => {
|
|
|
68
68
|
width: '100%',
|
|
69
69
|
height: 12,
|
|
70
70
|
marginTop: 10,
|
|
71
|
-
}, children: _jsx(Alpha, { ...restOf, pointer: HuePointer, onChange: onChange }) })] })] }), _jsxs("div", { style: { ...wrapperStyling, paddingBottom: 15 }, children: [_jsx(Icon, { type: "icon-ants-unfold-more", style: { cursor: 'pointer', fontSize: '20px' }, onClick: () => setShowRgbaInput(!isShowRgbaInput) }), isShowRgbaInput ? (_jsxs("div", { style: rgbaInputStyling, children: [_jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.r, controls: false, onChange: value => onChangeRgbaColor('r', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "R" })] }), _jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.g, controls: false, onChange: value => onChangeRgbaColor('g', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "G" })] }), _jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.b, controls: false, onChange: value => onChangeRgbaColor('b', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "B" })] }), _jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.a, controls: false, onChange: value => onChangeRgbaColor('a', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "A" })] })] })) : (_jsxs(EditableInputWrapper, { children: [_jsx(EditableInput, { value: props.color, onChange: onChange }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "HEX" })] })), _jsx(Button, { onClick: () => {
|
|
71
|
+
}, children: _jsx(Alpha, { ...restOf, pointer: HuePointer, onChange: onChange }) })] })] }), _jsxs("div", { style: { ...wrapperStyling, paddingBottom: 15 }, children: [_jsx(Icon, { type: "icon-ants-unfold-more", style: { cursor: 'pointer', fontSize: '20px' }, onClick: () => setShowRgbaInput(!isShowRgbaInput) }), isShowRgbaInput ? (_jsxs("div", { style: rgbaInputStyling, children: [_jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.r, controls: false, onChange: value => onChangeRgbaColor('r', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "R" })] }), _jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.g, controls: false, onChange: value => onChangeRgbaColor('g', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "G" })] }), _jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.b, controls: false, onChange: value => onChangeRgbaColor('b', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "B" })] }), !isHideAlpha && (_jsxs("div", { style: rgbaStyling, children: [_jsx(InputNumberWrapper, { value: props.rgb?.a, controls: false, onChange: value => onChangeRgbaColor('a', value) }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "A" })] }))] })) : (_jsxs(EditableInputWrapper, { children: [_jsx(EditableInput, { value: props.color, onChange: onChange }), _jsx(Text, { style: { position: 'absolute', bottom: '-20px' }, children: "HEX" })] })), _jsx(Button, { onClick: () => {
|
|
72
72
|
setShowRgbaInput(true);
|
|
73
73
|
onChange('rgba(0, 0, 0, 0)');
|
|
74
74
|
}, children: "Clear" })] }), presetColors ? (_jsxs("div", { children: [_jsx(Divider, {}), presetColors] })) : null] }));
|
|
@@ -22,7 +22,7 @@ const styleBtnColor = {
|
|
|
22
22
|
};
|
|
23
23
|
export const ColorPicker = props => {
|
|
24
24
|
// Props
|
|
25
|
-
const { className = '', defaultColor = '#000000', presetColors, positionInput = 'left', icon, showInput = true, style = {}, } = props;
|
|
25
|
+
const { className = '', defaultColor = '#000000', presetColors, positionInput = 'left', icon, showInput = true, style = {}, isHideAlpha, } = props;
|
|
26
26
|
const { onChange = () => { } } = props;
|
|
27
27
|
// States
|
|
28
28
|
const [color, setColor] = useState(defaultColor);
|
|
@@ -71,7 +71,7 @@ export const ColorPicker = props => {
|
|
|
71
71
|
const onPopoverVisibleChange = visible => {
|
|
72
72
|
setPopoverVisible(visible);
|
|
73
73
|
};
|
|
74
|
-
return (_jsxs(ColorPickerWrapper, { className: `antsomi-color-picker ${className || ''}`, style: style, children: [showInput && positionInput === 'left' && (_jsx(Input, { style: { textTransform: 'uppercase' }, value: color, onChange: onChangeColorInput })), _jsx(Popover, { arrow: true, content: _jsx(CustomPicker, { color: color, presetColors: presetColors, onChange: onChangeColorPicker, onChangeComplete: onChangeComplete }), trigger: "click", open: popoverVisible, getPopupContainer: triggerNode => triggerNode, onOpenChange: onPopoverVisibleChange, children: _jsx("div", { className: "antsomi-popover-button", style: styleBtnColor, children: iconNode || (_jsx("span", { style: {
|
|
74
|
+
return (_jsxs(ColorPickerWrapper, { className: `antsomi-color-picker ${className || ''}`, style: style, children: [showInput && positionInput === 'left' && (_jsx(Input, { style: { textTransform: 'uppercase' }, value: color, onChange: onChangeColorInput })), _jsx(Popover, { arrow: true, content: _jsx(CustomPicker, { color: color, presetColors: presetColors, isHideAlpha: isHideAlpha, onChange: onChangeColorPicker, onChangeComplete: onChangeComplete }), trigger: "click", open: popoverVisible, getPopupContainer: triggerNode => triggerNode, onOpenChange: onPopoverVisibleChange, children: _jsx("div", { className: "antsomi-popover-button", style: styleBtnColor, children: iconNode || (_jsx("span", { style: {
|
|
75
75
|
backgroundColor: color,
|
|
76
76
|
display: 'block',
|
|
77
77
|
width: 20,
|
|
@@ -83,6 +83,7 @@ ColorPicker.defaultProps = {
|
|
|
83
83
|
className: '',
|
|
84
84
|
color: '#000000',
|
|
85
85
|
defaultColor: '#000000',
|
|
86
|
+
isHideAlpha: false,
|
|
86
87
|
onChange: () => { },
|
|
87
88
|
showInput: true,
|
|
88
89
|
positionInput: 'left',
|
|
@@ -16,7 +16,7 @@ import { safeParseJson } from '@antscorp/antsomi-ui/es/utils';
|
|
|
16
16
|
import { POST_MESSAGE_TYPES } from '@antscorp/antsomi-ui/es/constants';
|
|
17
17
|
export const DrawerDetail = props => {
|
|
18
18
|
// Props
|
|
19
|
-
const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, onToggleCollapse, ...restProps } = props;
|
|
19
|
+
const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, mask = false, onToggleCollapse, closable = false, ...restProps } = props;
|
|
20
20
|
const { show: showMenu = true, showExpandButton = true, showClose = true, items, selectedKeys, footer, onClick = () => { }, } = menuProps || {};
|
|
21
21
|
const { children: headerChildren, ...restOfHeaderProps } = headerProps || {};
|
|
22
22
|
const { onClose = () => { } } = props;
|
|
@@ -110,7 +110,7 @@ export const DrawerDetail = props => {
|
|
|
110
110
|
localStorage.setItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY, JSON.stringify({ ...localStorageValues, [name || '']: !collapseDrawer }));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
return (_jsxs(StyledDrawer, { push: false, closable:
|
|
113
|
+
return (_jsxs(StyledDrawer, { push: false, closable: closable, width: drawerWidth, motion: {
|
|
114
114
|
visible: false,
|
|
115
115
|
motionAppear: false,
|
|
116
116
|
motionEnter: false,
|
|
@@ -120,7 +120,7 @@ export const DrawerDetail = props => {
|
|
|
120
120
|
motionAppear: false,
|
|
121
121
|
motionEnter: false,
|
|
122
122
|
motionLeave: false,
|
|
123
|
-
}, classNames: {
|
|
123
|
+
}, mask: mask, classNames: {
|
|
124
124
|
body: 'drawer-detail-body',
|
|
125
125
|
}, contentWrapperStyle: {
|
|
126
126
|
transition: 'none',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from 'react';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
3
|
/* Components */
|
|
4
4
|
import { Space } from '@antscorp/antsomi-ui/es/components/atoms/Space';
|
|
5
5
|
import { Switch } from '@antscorp/antsomi-ui/es/components/atoms/Switch';
|
|
@@ -35,7 +35,7 @@ export const FontSettingEdit = ({ settings, styles, showSettings, onChange, }) =
|
|
|
35
35
|
[settings]);
|
|
36
36
|
const filteredSetting = useMemo(() => {
|
|
37
37
|
if (!showSettings || showSettings?.length === 0) {
|
|
38
|
-
return Object.keys(settingMap).map(keySetting => settingMap[keySetting]);
|
|
38
|
+
return Object.keys(settingMap).map(keySetting => (_jsx(React.Fragment, { children: settingMap[keySetting] }, keySetting)));
|
|
39
39
|
}
|
|
40
40
|
return showSettings.map(keySetting => settingMap[keySetting]);
|
|
41
41
|
}, [showSettings, settingMap]);
|
|
@@ -721,7 +721,7 @@ export const SAMPLE_RICHMENU = {
|
|
|
721
721
|
displayDefault: true,
|
|
722
722
|
},
|
|
723
723
|
image: {
|
|
724
|
-
imageUrl: 'https://
|
|
724
|
+
imageUrl: 'https://s.cystack.net/portal/organizations/487b0f9dd9d8543312dc25e32ac71e4f/logo.jpg',
|
|
725
725
|
imageStyles: {
|
|
726
726
|
borderTopLeftRadius: '0px',
|
|
727
727
|
borderTopRightRadius: '0px',
|
|
@@ -4,6 +4,7 @@ import { SearchPopover } from '../../SearchPopover';
|
|
|
4
4
|
import './styles.scss';
|
|
5
5
|
import { Button } from '../../../../atoms/Button';
|
|
6
6
|
import { Checkbox } from '../../../../atoms/Checkbox';
|
|
7
|
+
import { Typography } from '../../../../atoms/Typography';
|
|
7
8
|
import { StyledAction, StyledFooter, StyledListFieldsWrapper } from './styled';
|
|
8
9
|
import { EmptyData } from '../../../EmptyData';
|
|
9
10
|
import i18nInstance from '@antscorp/antsomi-ui/es/locales/i18n';
|
|
@@ -104,7 +105,9 @@ export const PopoverSelect = (props) => {
|
|
|
104
105
|
if (typeof option.label === 'function') {
|
|
105
106
|
return option.label({ selected: selectedKeys.has(option.key) });
|
|
106
107
|
}
|
|
107
|
-
return
|
|
108
|
+
return (_jsx(Typography.Text, { ellipsis: {
|
|
109
|
+
tooltip: option.label,
|
|
110
|
+
}, style: { maxWidth: 310 }, children: option.label }));
|
|
108
111
|
};
|
|
109
112
|
const items = filteredOptions.map(opt => ({
|
|
110
113
|
key: opt.key,
|