@antscorp/antsomi-ui 2.0.38 → 2.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/icons/ErrorIcon.d.ts +3 -0
- package/es/components/icons/ErrorIcon.js +7 -0
- package/es/components/icons/LazyIcon/LazyIcon.d.ts +10 -9
- package/es/components/icons/LazyIcon/LazyIcon.js +10 -9
- package/es/components/icons/index.d.ts +10 -9
- package/es/components/icons/index.js +10 -9
- package/es/components/molecules/ApplyPopupContent/ApplyPopupContent.js +3 -5
- package/es/components/molecules/EditableName/EditableName.js +2 -1
- package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +53 -22
- package/es/components/molecules/MatchAnySelect/types.d.ts +7 -1
- package/es/components/molecules/TagifyInput/TagifyInput.js +20 -7
- package/es/components/molecules/TagifyInput/constants.js +1 -0
- package/es/components/molecules/TagifyInput/types.d.ts +7 -0
- package/es/components/molecules/TagifyInput/utils.d.ts +8 -0
- package/es/components/molecules/TagifyInput/utils.js +23 -0
- package/es/components/organism/DataTable/utils/filter.js +3 -1
- package/es/components/organism/Filter/utils/index.js +3 -1
- package/package.json +3 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useIcon } from './hooks/useIcon';
|
|
4
|
+
export const ErrorIcon = forwardRef((props, ref) => {
|
|
5
|
+
const { width, height } = useIcon(props);
|
|
6
|
+
return (_jsxs("svg", { viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, ref: ref, width: width, height: height, children: [_jsx("circle", { cx: "8", cy: "9", r: "8", fill: "#F44336" }), _jsx("path", { d: "M7 13C7 12.8022 7.05865 12.6089 7.16853 12.4444C7.27841 12.28 7.43459 12.1518 7.61732 12.0761C7.80004 12.0004 8.00111 11.9806 8.19509 12.0192C8.38907 12.0578 8.56725 12.153 8.70711 12.2929C8.84696 12.4327 8.9422 12.6109 8.98079 12.8049C9.01937 12.9989 8.99957 13.2 8.92388 13.3827C8.84819 13.5654 8.72002 13.7216 8.55557 13.8315C8.39112 13.9414 8.19778 14 8 14C7.73478 14 7.48043 13.8946 7.29289 13.7071C7.10536 13.5196 7 13.2652 7 13ZM7 10V6C7 5.73478 7.10536 5.48043 7.29289 5.29289C7.48043 5.10536 7.73478 5 8 5C8.26522 5 8.51957 5.10536 8.70711 5.29289C8.89464 5.48043 9 5.73478 9 6V10C9 10.2652 8.89464 10.5196 8.70711 10.7071C8.51957 10.8946 8.26522 11 8 11C7.73478 11 7.48043 10.8946 7.29289 10.7071C7.10536 10.5196 7 10.2652 7 10Z", fill: "white" })] }));
|
|
7
|
+
});
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
export declare const LazyIcon: {
|
|
3
3
|
AccountCircleIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
4
4
|
AccountCircleOutlineIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
5
|
+
Accounts30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
5
6
|
AccountSharing30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
6
7
|
AccountSharingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
7
8
|
AccountTreeIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
8
|
-
Accounts30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
9
9
|
AddChartIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
10
10
|
AddFolderIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
11
11
|
AddIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -53,7 +53,6 @@ export declare const LazyIcon: {
|
|
|
53
53
|
ChatConversationCommentAddCommentIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
54
54
|
ChatMentionIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
55
55
|
ChatUnreadIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
56
|
-
CheckSlimIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
57
56
|
CheckboxChecked5RadiusIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
58
57
|
CheckboxCheckedIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
59
58
|
CheckboxIndeterminate5RadiusIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -61,6 +60,7 @@ export declare const LazyIcon: {
|
|
|
61
60
|
CheckboxUnchecked5RadiusIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
62
61
|
CheckboxUncheckedIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
63
62
|
ChecklistRtlIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
63
|
+
CheckSlimIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
64
64
|
CircleAddElementIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
65
65
|
CircleNotificationsIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
66
66
|
CloseIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -95,15 +95,15 @@ export declare const LazyIcon: {
|
|
|
95
95
|
DataDestinationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
96
96
|
DataEncryption30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
97
97
|
DataEncryptionIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
98
|
+
Dataflows30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
98
99
|
DataIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
99
100
|
DataRefreshIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
100
101
|
DataSchema30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
101
102
|
DataSource30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
102
|
-
DataView30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
103
|
-
DataViewIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
104
|
-
Dataflows30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
105
103
|
DatasourceIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
106
104
|
DatasourceSegment30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
105
|
+
DataView30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
106
|
+
DataViewIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
107
107
|
DecreaseDecimalIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
108
108
|
DeleteRemoveTrashIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
109
109
|
DeliveryLogIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -143,6 +143,7 @@ export declare const LazyIcon: {
|
|
|
143
143
|
EmojiRamenDiningIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
144
144
|
EmojiReactionIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
145
145
|
EmojiSmileIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
146
|
+
ErrorIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
146
147
|
EventAttribute30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
147
148
|
EventAttributeIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
148
149
|
EventIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -179,13 +180,13 @@ export declare const LazyIcon: {
|
|
|
179
180
|
ForwardIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
180
181
|
FreeDrawIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
181
182
|
FullReviewIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
182
|
-
GPTIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
183
183
|
GalleryTemplateIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
184
184
|
GeneralSettingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
185
185
|
GeneralSettings30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
186
186
|
GenerateAutoWizardIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
187
187
|
Geofence30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
188
188
|
GetInsightIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
189
|
+
GPTIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
189
190
|
GridViewIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
190
191
|
GroupIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
191
192
|
GroupLayerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -248,8 +249,8 @@ export declare const LazyIcon: {
|
|
|
248
249
|
MuteIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
249
250
|
NodeViewIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
250
251
|
NotificationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
251
|
-
NotificationSettingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
252
252
|
NotificationsActiveIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
253
|
+
NotificationSettingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
253
254
|
OpenNewTabIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
254
255
|
OpenUrlIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
255
256
|
OrchestrationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -300,7 +301,6 @@ export declare const LazyIcon: {
|
|
|
300
301
|
ResumeIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
301
302
|
RightExpandIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
302
303
|
Role30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
303
|
-
SQLWorkspace30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
304
304
|
SaveAsIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
305
305
|
SaveIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
306
306
|
ScheduleEmailDeliveryIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -324,6 +324,7 @@ export declare const LazyIcon: {
|
|
|
324
324
|
SlideGroupIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
325
325
|
Sort1Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
326
326
|
SortIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
327
|
+
SQLWorkspace30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
327
328
|
SqlWorkspaceIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
328
329
|
StatisticIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
329
330
|
StickerIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -370,9 +371,9 @@ export declare const LazyIcon: {
|
|
|
370
371
|
VisitorInformationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
371
372
|
WarningIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
372
373
|
WebAssetIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
374
|
+
WebhookIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
373
375
|
WebIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
374
376
|
WebPersonalizationIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
375
|
-
WebhookIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
376
377
|
WidgetIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
377
378
|
WritingAIAssitantIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
378
379
|
};
|
|
@@ -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 }))),
|
|
5
6
|
AccountSharing30Icon: lazy(() => import('../AccountSharing30Icon').then(m => ({ default: m.AccountSharing30Icon }))),
|
|
6
7
|
AccountSharingIcon: lazy(() => import('../AccountSharingIcon').then(m => ({ default: m.AccountSharingIcon }))),
|
|
7
8
|
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 }))),
|
|
@@ -55,7 +55,6 @@ export const LazyIcon = {
|
|
|
55
55
|
}))),
|
|
56
56
|
ChatMentionIcon: lazy(() => import('../ChatMentionIcon').then(m => ({ default: m.ChatMentionIcon }))),
|
|
57
57
|
ChatUnreadIcon: lazy(() => import('../ChatUnreadIcon').then(m => ({ default: m.ChatUnreadIcon }))),
|
|
58
|
-
CheckSlimIcon: lazy(() => import('../CheckSlimIcon').then(m => ({ default: m.CheckSlimIcon }))),
|
|
59
58
|
CheckboxChecked5RadiusIcon: lazy(() => import('../CheckboxChecked5RadiusIcon').then(m => ({ default: m.CheckboxChecked5RadiusIcon }))),
|
|
60
59
|
CheckboxCheckedIcon: lazy(() => import('../CheckboxCheckedIcon').then(m => ({ default: m.CheckboxCheckedIcon }))),
|
|
61
60
|
CheckboxIndeterminate5RadiusIcon: lazy(() => import('../CheckboxIndeterminate5RadiusIcon').then(m => ({
|
|
@@ -67,6 +66,7 @@ export const LazyIcon = {
|
|
|
67
66
|
}))),
|
|
68
67
|
CheckboxUncheckedIcon: lazy(() => import('../CheckboxUncheckedIcon').then(m => ({ default: m.CheckboxUncheckedIcon }))),
|
|
69
68
|
ChecklistRtlIcon: lazy(() => import('../ChecklistRtlIcon').then(m => ({ default: m.ChecklistRtlIcon }))),
|
|
69
|
+
CheckSlimIcon: lazy(() => import('../CheckSlimIcon').then(m => ({ default: m.CheckSlimIcon }))),
|
|
70
70
|
CircleAddElementIcon: lazy(() => import('../CircleAddElementIcon').then(m => ({ default: m.CircleAddElementIcon }))),
|
|
71
71
|
CircleNotificationsIcon: lazy(() => import('../CircleNotificationsIcon').then(m => ({ default: m.CircleNotificationsIcon }))),
|
|
72
72
|
CloseIcon: lazy(() => import('../CloseIcon').then(m => ({ default: m.CloseIcon }))),
|
|
@@ -101,15 +101,15 @@ export const LazyIcon = {
|
|
|
101
101
|
DataDestinationIcon: lazy(() => import('../DataDestinationIcon').then(m => ({ default: m.DataDestinationIcon }))),
|
|
102
102
|
DataEncryption30Icon: lazy(() => import('../DataEncryption30Icon').then(m => ({ default: m.DataEncryption30Icon }))),
|
|
103
103
|
DataEncryptionIcon: lazy(() => import('../DataEncryptionIcon').then(m => ({ default: m.DataEncryptionIcon }))),
|
|
104
|
+
Dataflows30Icon: lazy(() => import('../Dataflows30Icon').then(m => ({ default: m.Dataflows30Icon }))),
|
|
104
105
|
DataIcon: lazy(() => import('../DataIcon').then(m => ({ default: m.DataIcon }))),
|
|
105
106
|
DataRefreshIcon: lazy(() => import('../DataRefreshIcon').then(m => ({ default: m.DataRefreshIcon }))),
|
|
106
107
|
DataSchema30Icon: lazy(() => import('../DataSchema30Icon').then(m => ({ default: m.DataSchema30Icon }))),
|
|
107
108
|
DataSource30Icon: lazy(() => import('../DataSource30Icon').then(m => ({ default: m.DataSource30Icon }))),
|
|
108
|
-
DataView30Icon: lazy(() => import('../DataView30Icon').then(m => ({ default: m.DataView30Icon }))),
|
|
109
|
-
DataViewIcon: lazy(() => import('../DataViewIcon').then(m => ({ default: m.DataViewIcon }))),
|
|
110
|
-
Dataflows30Icon: lazy(() => import('../Dataflows30Icon').then(m => ({ default: m.Dataflows30Icon }))),
|
|
111
109
|
DatasourceIcon: lazy(() => import('../DatasourceIcon').then(m => ({ default: m.DatasourceIcon }))),
|
|
112
110
|
DatasourceSegment30Icon: lazy(() => import('../DatasourceSegment30Icon').then(m => ({ default: m.DatasourceSegment30Icon }))),
|
|
111
|
+
DataView30Icon: lazy(() => import('../DataView30Icon').then(m => ({ default: m.DataView30Icon }))),
|
|
112
|
+
DataViewIcon: lazy(() => import('../DataViewIcon').then(m => ({ default: m.DataViewIcon }))),
|
|
113
113
|
DecreaseDecimalIcon: lazy(() => import('../DecreaseDecimalIcon').then(m => ({ default: m.DecreaseDecimalIcon }))),
|
|
114
114
|
DeleteRemoveTrashIcon: lazy(() => import('../DeleteRemoveTrashIcon').then(m => ({ default: m.DeleteRemoveTrashIcon }))),
|
|
115
115
|
DeliveryLogIcon: lazy(() => import('../DeliveryLogIcon').then(m => ({ default: m.DeliveryLogIcon }))),
|
|
@@ -149,6 +149,7 @@ export const LazyIcon = {
|
|
|
149
149
|
EmojiRamenDiningIcon: lazy(() => import('../EmojiRamenDiningIcon').then(m => ({ default: m.EmojiRamenDiningIcon }))),
|
|
150
150
|
EmojiReactionIcon: lazy(() => import('../EmojiReactionIcon').then(m => ({ default: m.EmojiReactionIcon }))),
|
|
151
151
|
EmojiSmileIcon: lazy(() => import('../EmojiSmileIcon').then(m => ({ default: m.EmojiSmileIcon }))),
|
|
152
|
+
ErrorIcon: lazy(() => import('../ErrorIcon').then(m => ({ default: m.ErrorIcon }))),
|
|
152
153
|
EventAttribute30Icon: lazy(() => import('../EventAttribute30Icon').then(m => ({ default: m.EventAttribute30Icon }))),
|
|
153
154
|
EventAttributeIcon: lazy(() => import('../EventAttributeIcon').then(m => ({ default: m.EventAttributeIcon }))),
|
|
154
155
|
EventIcon: lazy(() => import('../EventIcon').then(m => ({ default: m.EventIcon }))),
|
|
@@ -185,13 +186,13 @@ export const LazyIcon = {
|
|
|
185
186
|
ForwardIcon: lazy(() => import('../ForwardIcon').then(m => ({ default: m.ForwardIcon }))),
|
|
186
187
|
FreeDrawIcon: lazy(() => import('../FreeDrawIcon').then(m => ({ default: m.FreeDrawIcon }))),
|
|
187
188
|
FullReviewIcon: lazy(() => import('../FullReviewIcon').then(m => ({ default: m.FullReviewIcon }))),
|
|
188
|
-
GPTIcon: lazy(() => import('../GPTIcon').then(m => ({ default: m.GPTIcon }))),
|
|
189
189
|
GalleryTemplateIcon: lazy(() => import('../GalleryTemplateIcon').then(m => ({ default: m.GalleryTemplateIcon }))),
|
|
190
190
|
GeneralSettingIcon: lazy(() => import('../GeneralSettingIcon').then(m => ({ default: m.GeneralSettingIcon }))),
|
|
191
191
|
GeneralSettings30Icon: lazy(() => import('../GeneralSettings30Icon').then(m => ({ default: m.GeneralSettings30Icon }))),
|
|
192
192
|
GenerateAutoWizardIcon: lazy(() => import('../GenerateAutoWizardIcon').then(m => ({ default: m.GenerateAutoWizardIcon }))),
|
|
193
193
|
Geofence30Icon: lazy(() => import('../Geofence30Icon').then(m => ({ default: m.Geofence30Icon }))),
|
|
194
194
|
GetInsightIcon: lazy(() => import('../GetInsightIcon').then(m => ({ default: m.GetInsightIcon }))),
|
|
195
|
+
GPTIcon: lazy(() => import('../GPTIcon').then(m => ({ default: m.GPTIcon }))),
|
|
195
196
|
GridViewIcon: lazy(() => import('../GridViewIcon').then(m => ({ default: m.GridViewIcon }))),
|
|
196
197
|
GroupIcon: lazy(() => import('../GroupIcon').then(m => ({ default: m.GroupIcon }))),
|
|
197
198
|
GroupLayerIcon: lazy(() => import('../GroupLayerIcon').then(m => ({ default: m.GroupLayerIcon }))),
|
|
@@ -252,8 +253,8 @@ export const LazyIcon = {
|
|
|
252
253
|
MuteIcon: lazy(() => import('../MuteIcon').then(m => ({ default: m.MuteIcon }))),
|
|
253
254
|
NodeViewIcon: lazy(() => import('../NodeViewIcon').then(m => ({ default: m.NodeViewIcon }))),
|
|
254
255
|
NotificationIcon: lazy(() => import('../NotificationIcon').then(m => ({ default: m.NotificationIcon }))),
|
|
255
|
-
NotificationSettingIcon: lazy(() => import('../NotificationSettingIcon').then(m => ({ default: m.NotificationSettingIcon }))),
|
|
256
256
|
NotificationsActiveIcon: lazy(() => import('../NotificationsActiveIcon').then(m => ({ default: m.NotificationsActiveIcon }))),
|
|
257
|
+
NotificationSettingIcon: lazy(() => import('../NotificationSettingIcon').then(m => ({ default: m.NotificationSettingIcon }))),
|
|
257
258
|
OpenNewTabIcon: lazy(() => import('../OpenNewTabIcon').then(m => ({ default: m.OpenNewTabIcon }))),
|
|
258
259
|
OpenUrlIcon: lazy(() => import('../OpenUrlIcon').then(m => ({ default: m.OpenUrlIcon }))),
|
|
259
260
|
OrchestrationIcon: lazy(() => import('../OrchestrationIcon').then(m => ({ default: m.OrchestrationIcon }))),
|
|
@@ -306,7 +307,6 @@ export const LazyIcon = {
|
|
|
306
307
|
ResumeIcon: lazy(() => import('../ResumeIcon').then(m => ({ default: m.ResumeIcon }))),
|
|
307
308
|
RightExpandIcon: lazy(() => import('../RightExpandIcon').then(m => ({ default: m.RightExpandIcon }))),
|
|
308
309
|
Role30Icon: lazy(() => import('../Role30Icon').then(m => ({ default: m.Role30Icon }))),
|
|
309
|
-
SQLWorkspace30Icon: lazy(() => import('../SQLWorkspace30Icon').then(m => ({ default: m.SQLWorkspace30Icon }))),
|
|
310
310
|
SaveAsIcon: lazy(() => import('../SaveAsIcon').then(m => ({ default: m.SaveAsIcon }))),
|
|
311
311
|
SaveIcon: lazy(() => import('../SaveIcon').then(m => ({ default: m.SaveIcon }))),
|
|
312
312
|
ScheduleEmailDeliveryIcon: lazy(() => import('../ScheduleEmailDeliveryIcon').then(m => ({ default: m.ScheduleEmailDeliveryIcon }))),
|
|
@@ -330,6 +330,7 @@ export const LazyIcon = {
|
|
|
330
330
|
SlideGroupIcon: lazy(() => import('../SlideGroupIcon').then(m => ({ default: m.SlideGroupIcon }))),
|
|
331
331
|
Sort1Icon: lazy(() => import('../Sort1Icon').then(m => ({ default: m.Sort1Icon }))),
|
|
332
332
|
SortIcon: lazy(() => import('../SortIcon').then(m => ({ default: m.SortIcon }))),
|
|
333
|
+
SQLWorkspace30Icon: lazy(() => import('../SQLWorkspace30Icon').then(m => ({ default: m.SQLWorkspace30Icon }))),
|
|
333
334
|
SqlWorkspaceIcon: lazy(() => import('../SqlWorkspaceIcon').then(m => ({ default: m.SqlWorkspaceIcon }))),
|
|
334
335
|
StatisticIcon: lazy(() => import('../StatisticIcon').then(m => ({ default: m.StatisticIcon }))),
|
|
335
336
|
StickerIcon: lazy(() => import('../StickerIcon').then(m => ({ default: m.StickerIcon }))),
|
|
@@ -376,9 +377,9 @@ export const LazyIcon = {
|
|
|
376
377
|
VisitorInformationIcon: lazy(() => import('../VisitorInformationIcon').then(m => ({ default: m.VisitorInformationIcon }))),
|
|
377
378
|
WarningIcon: lazy(() => import('../WarningIcon').then(m => ({ default: m.WarningIcon }))),
|
|
378
379
|
WebAssetIcon: lazy(() => import('../WebAssetIcon').then(m => ({ default: m.WebAssetIcon }))),
|
|
380
|
+
WebhookIcon: lazy(() => import('../WebhookIcon').then(m => ({ default: m.WebhookIcon }))),
|
|
379
381
|
WebIcon: lazy(() => import('../WebIcon').then(m => ({ default: m.WebIcon }))),
|
|
380
382
|
WebPersonalizationIcon: lazy(() => import('../WebPersonalizationIcon').then(m => ({ default: m.WebPersonalizationIcon }))),
|
|
381
|
-
WebhookIcon: lazy(() => import('../WebhookIcon').then(m => ({ default: m.WebhookIcon }))),
|
|
382
383
|
WidgetIcon: lazy(() => import('../WidgetIcon').then(m => ({ default: m.WidgetIcon }))),
|
|
383
384
|
WritingAIAssitantIcon: lazy(() => import('../WritingAIAssitantIcon').then(m => ({ default: m.WritingAIAssitantIcon }))),
|
|
384
385
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AccountCircleIcon } from './AccountCircleIcon';
|
|
2
2
|
export { AccountCircleOutlineIcon } from './AccountCircleOutlineIcon';
|
|
3
|
+
export { Accounts30Icon } from './Accounts30Icon';
|
|
3
4
|
export { AccountSharing30Icon } from './AccountSharing30Icon';
|
|
4
5
|
export { AccountSharingIcon } from './AccountSharingIcon';
|
|
5
6
|
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';
|
|
@@ -51,7 +51,6 @@ export { ChatBubbleOutlineIcon } from './ChatBubbleOutlineIcon';
|
|
|
51
51
|
export { ChatConversationCommentAddCommentIcon } from './ChatConversationCommentAddCommentIcon';
|
|
52
52
|
export { ChatMentionIcon } from './ChatMentionIcon';
|
|
53
53
|
export { ChatUnreadIcon } from './ChatUnreadIcon';
|
|
54
|
-
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
55
54
|
export { CheckboxChecked5RadiusIcon } from './CheckboxChecked5RadiusIcon';
|
|
56
55
|
export { CheckboxCheckedIcon } from './CheckboxCheckedIcon';
|
|
57
56
|
export { CheckboxIndeterminate5RadiusIcon } from './CheckboxIndeterminate5RadiusIcon';
|
|
@@ -59,6 +58,7 @@ export { CheckboxIndeterminateIcon } from './CheckboxIndeterminateIcon';
|
|
|
59
58
|
export { CheckboxUnchecked5RadiusIcon } from './CheckboxUnchecked5RadiusIcon';
|
|
60
59
|
export { CheckboxUncheckedIcon } from './CheckboxUncheckedIcon';
|
|
61
60
|
export { ChecklistRtlIcon } from './ChecklistRtlIcon';
|
|
61
|
+
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
62
62
|
export { CircleAddElementIcon } from './CircleAddElementIcon';
|
|
63
63
|
export { CircleNotificationsIcon } from './CircleNotificationsIcon';
|
|
64
64
|
export { CloseIcon } from './CloseIcon';
|
|
@@ -93,15 +93,15 @@ export { DataDestination30Icon } from './DataDestination30Icon';
|
|
|
93
93
|
export { DataDestinationIcon } from './DataDestinationIcon';
|
|
94
94
|
export { DataEncryption30Icon } from './DataEncryption30Icon';
|
|
95
95
|
export { DataEncryptionIcon } from './DataEncryptionIcon';
|
|
96
|
+
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
96
97
|
export { DataIcon } from './DataIcon';
|
|
97
98
|
export { DataRefreshIcon } from './DataRefreshIcon';
|
|
98
99
|
export { DataSchema30Icon } from './DataSchema30Icon';
|
|
99
100
|
export { DataSource30Icon } from './DataSource30Icon';
|
|
100
|
-
export { DataView30Icon } from './DataView30Icon';
|
|
101
|
-
export { DataViewIcon } from './DataViewIcon';
|
|
102
|
-
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
103
101
|
export { DatasourceIcon } from './DatasourceIcon';
|
|
104
102
|
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
103
|
+
export { DataView30Icon } from './DataView30Icon';
|
|
104
|
+
export { DataViewIcon } from './DataViewIcon';
|
|
105
105
|
export { DecreaseDecimalIcon } from './DecreaseDecimalIcon';
|
|
106
106
|
export { DeleteRemoveTrashIcon } from './DeleteRemoveTrashIcon';
|
|
107
107
|
export { DeliveryLogIcon } from './DeliveryLogIcon';
|
|
@@ -141,6 +141,7 @@ export { EmojiPetFootIcon } from './EmojiPetFootIcon';
|
|
|
141
141
|
export { EmojiRamenDiningIcon } from './EmojiRamenDiningIcon';
|
|
142
142
|
export { EmojiReactionIcon } from './EmojiReactionIcon';
|
|
143
143
|
export { EmojiSmileIcon } from './EmojiSmileIcon';
|
|
144
|
+
export { ErrorIcon } from './ErrorIcon';
|
|
144
145
|
export { EventAttribute30Icon } from './EventAttribute30Icon';
|
|
145
146
|
export { EventAttributeIcon } from './EventAttributeIcon';
|
|
146
147
|
export { EventIcon } from './EventIcon';
|
|
@@ -177,13 +178,13 @@ export { Form30Icon } from './Form30Icon';
|
|
|
177
178
|
export { ForwardIcon } from './ForwardIcon';
|
|
178
179
|
export { FreeDrawIcon } from './FreeDrawIcon';
|
|
179
180
|
export { FullReviewIcon } from './FullReviewIcon';
|
|
180
|
-
export { GPTIcon } from './GPTIcon';
|
|
181
181
|
export { GalleryTemplateIcon } from './GalleryTemplateIcon';
|
|
182
182
|
export { GeneralSettingIcon } from './GeneralSettingIcon';
|
|
183
183
|
export { GeneralSettings30Icon } from './GeneralSettings30Icon';
|
|
184
184
|
export { GenerateAutoWizardIcon } from './GenerateAutoWizardIcon';
|
|
185
185
|
export { Geofence30Icon } from './Geofence30Icon';
|
|
186
186
|
export { GetInsightIcon } from './GetInsightIcon';
|
|
187
|
+
export { GPTIcon } from './GPTIcon';
|
|
187
188
|
export { GridViewIcon } from './GridViewIcon';
|
|
188
189
|
export { GroupIcon } from './GroupIcon';
|
|
189
190
|
export { GroupLayerIcon } from './GroupLayerIcon';
|
|
@@ -244,8 +245,8 @@ export { MoveToIcon } from './MoveToIcon';
|
|
|
244
245
|
export { MuteIcon } from './MuteIcon';
|
|
245
246
|
export { NodeViewIcon } from './NodeViewIcon';
|
|
246
247
|
export { NotificationIcon } from './NotificationIcon';
|
|
247
|
-
export { NotificationSettingIcon } from './NotificationSettingIcon';
|
|
248
248
|
export { NotificationsActiveIcon } from './NotificationsActiveIcon';
|
|
249
|
+
export { NotificationSettingIcon } from './NotificationSettingIcon';
|
|
249
250
|
export { OpenNewTabIcon } from './OpenNewTabIcon';
|
|
250
251
|
export { OpenUrlIcon } from './OpenUrlIcon';
|
|
251
252
|
export { OrchestrationIcon } from './OrchestrationIcon';
|
|
@@ -296,7 +297,6 @@ export { RestoreDefaultIcon } from './RestoreDefaultIcon';
|
|
|
296
297
|
export { ResumeIcon } from './ResumeIcon';
|
|
297
298
|
export { RightExpandIcon } from './RightExpandIcon';
|
|
298
299
|
export { Role30Icon } from './Role30Icon';
|
|
299
|
-
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
300
300
|
export { SaveAsIcon } from './SaveAsIcon';
|
|
301
301
|
export { SaveIcon } from './SaveIcon';
|
|
302
302
|
export { ScheduleEmailDeliveryIcon } from './ScheduleEmailDeliveryIcon';
|
|
@@ -320,6 +320,7 @@ export { SignatureIcon } from './SignatureIcon';
|
|
|
320
320
|
export { SlideGroupIcon } from './SlideGroupIcon';
|
|
321
321
|
export { Sort1Icon } from './Sort1Icon';
|
|
322
322
|
export { SortIcon } from './SortIcon';
|
|
323
|
+
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
323
324
|
export { SqlWorkspaceIcon } from './SqlWorkspaceIcon';
|
|
324
325
|
export { StatisticIcon } from './StatisticIcon';
|
|
325
326
|
export { StickerIcon } from './StickerIcon';
|
|
@@ -366,8 +367,8 @@ export { VisitorIcon } from './VisitorIcon';
|
|
|
366
367
|
export { VisitorInformationIcon } from './VisitorInformationIcon';
|
|
367
368
|
export { WarningIcon } from './WarningIcon';
|
|
368
369
|
export { WebAssetIcon } from './WebAssetIcon';
|
|
370
|
+
export { WebhookIcon } from './WebhookIcon';
|
|
369
371
|
export { WebIcon } from './WebIcon';
|
|
370
372
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
371
|
-
export { WebhookIcon } from './WebhookIcon';
|
|
372
373
|
export { WidgetIcon } from './WidgetIcon';
|
|
373
374
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { AccountCircleIcon } from './AccountCircleIcon';
|
|
2
2
|
export { AccountCircleOutlineIcon } from './AccountCircleOutlineIcon';
|
|
3
|
+
export { Accounts30Icon } from './Accounts30Icon';
|
|
3
4
|
export { AccountSharing30Icon } from './AccountSharing30Icon';
|
|
4
5
|
export { AccountSharingIcon } from './AccountSharingIcon';
|
|
5
6
|
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';
|
|
@@ -51,7 +51,6 @@ export { ChatBubbleOutlineIcon } from './ChatBubbleOutlineIcon';
|
|
|
51
51
|
export { ChatConversationCommentAddCommentIcon } from './ChatConversationCommentAddCommentIcon';
|
|
52
52
|
export { ChatMentionIcon } from './ChatMentionIcon';
|
|
53
53
|
export { ChatUnreadIcon } from './ChatUnreadIcon';
|
|
54
|
-
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
55
54
|
export { CheckboxChecked5RadiusIcon } from './CheckboxChecked5RadiusIcon';
|
|
56
55
|
export { CheckboxCheckedIcon } from './CheckboxCheckedIcon';
|
|
57
56
|
export { CheckboxIndeterminate5RadiusIcon } from './CheckboxIndeterminate5RadiusIcon';
|
|
@@ -59,6 +58,7 @@ export { CheckboxIndeterminateIcon } from './CheckboxIndeterminateIcon';
|
|
|
59
58
|
export { CheckboxUnchecked5RadiusIcon } from './CheckboxUnchecked5RadiusIcon';
|
|
60
59
|
export { CheckboxUncheckedIcon } from './CheckboxUncheckedIcon';
|
|
61
60
|
export { ChecklistRtlIcon } from './ChecklistRtlIcon';
|
|
61
|
+
export { CheckSlimIcon } from './CheckSlimIcon';
|
|
62
62
|
export { CircleAddElementIcon } from './CircleAddElementIcon';
|
|
63
63
|
export { CircleNotificationsIcon } from './CircleNotificationsIcon';
|
|
64
64
|
export { CloseIcon } from './CloseIcon';
|
|
@@ -93,15 +93,15 @@ export { DataDestination30Icon } from './DataDestination30Icon';
|
|
|
93
93
|
export { DataDestinationIcon } from './DataDestinationIcon';
|
|
94
94
|
export { DataEncryption30Icon } from './DataEncryption30Icon';
|
|
95
95
|
export { DataEncryptionIcon } from './DataEncryptionIcon';
|
|
96
|
+
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
96
97
|
export { DataIcon } from './DataIcon';
|
|
97
98
|
export { DataRefreshIcon } from './DataRefreshIcon';
|
|
98
99
|
export { DataSchema30Icon } from './DataSchema30Icon';
|
|
99
100
|
export { DataSource30Icon } from './DataSource30Icon';
|
|
100
|
-
export { DataView30Icon } from './DataView30Icon';
|
|
101
|
-
export { DataViewIcon } from './DataViewIcon';
|
|
102
|
-
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
103
101
|
export { DatasourceIcon } from './DatasourceIcon';
|
|
104
102
|
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
103
|
+
export { DataView30Icon } from './DataView30Icon';
|
|
104
|
+
export { DataViewIcon } from './DataViewIcon';
|
|
105
105
|
export { DecreaseDecimalIcon } from './DecreaseDecimalIcon';
|
|
106
106
|
export { DeleteRemoveTrashIcon } from './DeleteRemoveTrashIcon';
|
|
107
107
|
export { DeliveryLogIcon } from './DeliveryLogIcon';
|
|
@@ -141,6 +141,7 @@ export { EmojiPetFootIcon } from './EmojiPetFootIcon';
|
|
|
141
141
|
export { EmojiRamenDiningIcon } from './EmojiRamenDiningIcon';
|
|
142
142
|
export { EmojiReactionIcon } from './EmojiReactionIcon';
|
|
143
143
|
export { EmojiSmileIcon } from './EmojiSmileIcon';
|
|
144
|
+
export { ErrorIcon } from './ErrorIcon';
|
|
144
145
|
export { EventAttribute30Icon } from './EventAttribute30Icon';
|
|
145
146
|
export { EventAttributeIcon } from './EventAttributeIcon';
|
|
146
147
|
export { EventIcon } from './EventIcon';
|
|
@@ -177,13 +178,13 @@ export { Form30Icon } from './Form30Icon';
|
|
|
177
178
|
export { ForwardIcon } from './ForwardIcon';
|
|
178
179
|
export { FreeDrawIcon } from './FreeDrawIcon';
|
|
179
180
|
export { FullReviewIcon } from './FullReviewIcon';
|
|
180
|
-
export { GPTIcon } from './GPTIcon';
|
|
181
181
|
export { GalleryTemplateIcon } from './GalleryTemplateIcon';
|
|
182
182
|
export { GeneralSettingIcon } from './GeneralSettingIcon';
|
|
183
183
|
export { GeneralSettings30Icon } from './GeneralSettings30Icon';
|
|
184
184
|
export { GenerateAutoWizardIcon } from './GenerateAutoWizardIcon';
|
|
185
185
|
export { Geofence30Icon } from './Geofence30Icon';
|
|
186
186
|
export { GetInsightIcon } from './GetInsightIcon';
|
|
187
|
+
export { GPTIcon } from './GPTIcon';
|
|
187
188
|
export { GridViewIcon } from './GridViewIcon';
|
|
188
189
|
export { GroupIcon } from './GroupIcon';
|
|
189
190
|
export { GroupLayerIcon } from './GroupLayerIcon';
|
|
@@ -244,8 +245,8 @@ export { MoveToIcon } from './MoveToIcon';
|
|
|
244
245
|
export { MuteIcon } from './MuteIcon';
|
|
245
246
|
export { NodeViewIcon } from './NodeViewIcon';
|
|
246
247
|
export { NotificationIcon } from './NotificationIcon';
|
|
247
|
-
export { NotificationSettingIcon } from './NotificationSettingIcon';
|
|
248
248
|
export { NotificationsActiveIcon } from './NotificationsActiveIcon';
|
|
249
|
+
export { NotificationSettingIcon } from './NotificationSettingIcon';
|
|
249
250
|
export { OpenNewTabIcon } from './OpenNewTabIcon';
|
|
250
251
|
export { OpenUrlIcon } from './OpenUrlIcon';
|
|
251
252
|
export { OrchestrationIcon } from './OrchestrationIcon';
|
|
@@ -296,7 +297,6 @@ export { RestoreDefaultIcon } from './RestoreDefaultIcon';
|
|
|
296
297
|
export { ResumeIcon } from './ResumeIcon';
|
|
297
298
|
export { RightExpandIcon } from './RightExpandIcon';
|
|
298
299
|
export { Role30Icon } from './Role30Icon';
|
|
299
|
-
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
300
300
|
export { SaveAsIcon } from './SaveAsIcon';
|
|
301
301
|
export { SaveIcon } from './SaveIcon';
|
|
302
302
|
export { ScheduleEmailDeliveryIcon } from './ScheduleEmailDeliveryIcon';
|
|
@@ -320,6 +320,7 @@ export { SignatureIcon } from './SignatureIcon';
|
|
|
320
320
|
export { SlideGroupIcon } from './SlideGroupIcon';
|
|
321
321
|
export { Sort1Icon } from './Sort1Icon';
|
|
322
322
|
export { SortIcon } from './SortIcon';
|
|
323
|
+
export { SQLWorkspace30Icon } from './SQLWorkspace30Icon';
|
|
323
324
|
export { SqlWorkspaceIcon } from './SqlWorkspaceIcon';
|
|
324
325
|
export { StatisticIcon } from './StatisticIcon';
|
|
325
326
|
export { StickerIcon } from './StickerIcon';
|
|
@@ -366,8 +367,8 @@ export { VisitorIcon } from './VisitorIcon';
|
|
|
366
367
|
export { VisitorInformationIcon } from './VisitorInformationIcon';
|
|
367
368
|
export { WarningIcon } from './WarningIcon';
|
|
368
369
|
export { WebAssetIcon } from './WebAssetIcon';
|
|
370
|
+
export { WebhookIcon } from './WebhookIcon';
|
|
369
371
|
export { WebIcon } from './WebIcon';
|
|
370
372
|
export { WebPersonalizationIcon } from './WebPersonalizationIcon';
|
|
371
|
-
export { WebhookIcon } from './WebhookIcon';
|
|
372
373
|
export { WidgetIcon } from './WidgetIcon';
|
|
373
374
|
export { WritingAIAssitantIcon } from './WritingAIAssitantIcon';
|
|
@@ -5,13 +5,11 @@ import { Flex, Typography, Icon, Button, } from '@antscorp/antsomi-ui/es/compone
|
|
|
5
5
|
// Styled
|
|
6
6
|
import { CloseButton, ContentWrapper } from './styled';
|
|
7
7
|
// Locales
|
|
8
|
-
import
|
|
9
|
-
// Constants
|
|
10
|
-
import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
8
|
+
import { translate, translations } from '@antscorp/antsomi-locales';
|
|
11
9
|
const { Text } = Typography;
|
|
12
10
|
export const ApplyPopupContent = props => {
|
|
13
11
|
const { title, children, cancelButtonProps, applyButtonProps, footerProps, onApply, onCancel, ...restProps } = props;
|
|
14
12
|
const { align = 'center', justify = 'flex-end' } = footerProps || {};
|
|
15
|
-
const { t } = i18nInstance;
|
|
16
|
-
return (_jsxs(ContentWrapper, { ...restProps, children: [_jsxs(Flex, { className: "content__body", vertical: true, gap: 20, children: [_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsx(Text, { className: "content__title", ellipsis: { tooltip: true }, children: title }), _jsx(CloseButton, { align: "center", justify: "center", onClick: onCancel, children: _jsx(Icon, { type: "icon-ants-remove-slim" }) })] }), children] }), _jsxs(Flex, { ...footerProps, align: align, justify: justify, className: clsx('content__footer', footerProps?.className), children: [_jsx(Button, { onClick: onCancel, ...cancelButtonProps, children:
|
|
13
|
+
// const { t } = i18nInstance;
|
|
14
|
+
return (_jsxs(ContentWrapper, { ...restProps, children: [_jsxs(Flex, { className: "content__body", vertical: true, gap: 20, children: [_jsxs(Flex, { align: "center", justify: "space-between", children: [_jsx(Text, { className: "content__title", ellipsis: { tooltip: true }, children: title }), _jsx(CloseButton, { align: "center", justify: "center", onClick: onCancel, children: _jsx(Icon, { type: "icon-ants-remove-slim" }) })] }), children] }), _jsxs(Flex, { ...footerProps, align: align, justify: justify, className: clsx('content__footer', footerProps?.className), children: [_jsx(Button, { onClick: onCancel, ...cancelButtonProps, children: translate(translations._ACT_CANCEL) }), _jsx(Button, { type: "primary", onClick: onApply, ...applyButtonProps, children: translate(translations._ACT_APPLY) })] })] }));
|
|
17
15
|
};
|
|
@@ -7,6 +7,7 @@ import Icon from '@antscorp/icons';
|
|
|
7
7
|
import { useInView } from 'react-intersection-observer';
|
|
8
8
|
import { Spin } from '../../atoms';
|
|
9
9
|
import { EditIcon } from '../../icons';
|
|
10
|
+
import { translate, translations } from '@antscorp/antsomi-locales';
|
|
10
11
|
export const EditableName = React.forwardRef((props, ref) => {
|
|
11
12
|
const { className, isLoading, required, error, value, style, readonly, maxLength = 255, editIcon, onBlur, onChange, } = props;
|
|
12
13
|
const defaultValue = useRef(props.defaultValue);
|
|
@@ -15,7 +16,7 @@ export const EditableName = React.forwardRef((props, ref) => {
|
|
|
15
16
|
const { ref: componentInViewRef, inView: componentInView } = useInView();
|
|
16
17
|
const requiredError = useMemo(() => {
|
|
17
18
|
const newValue = value ? value.trim() : internalValue.trim();
|
|
18
|
-
return required && newValue.length === 0 ?
|
|
19
|
+
return required && newValue.length === 0 ? translate(translations._NOTI_EMPTY_NAME) : '';
|
|
19
20
|
}, [required, internalValue, value]);
|
|
20
21
|
const spanRef = useRef(null);
|
|
21
22
|
const inputRef = useRef(null);
|
|
@@ -25,7 +25,8 @@ import { useDeepCompareEffect, useDeepCompareMemo, useIntersectionObserver, } fr
|
|
|
25
25
|
import { flatTree, recursiveFindParents, recursiveSearchItems, } from '@antscorp/antsomi-ui/es/utils';
|
|
26
26
|
import { getSelectedTreeData } from './utils';
|
|
27
27
|
// Icons
|
|
28
|
-
import { DataIcon, LongerIcon, WarningIcon } from '../../icons';
|
|
28
|
+
import { DataIcon, ErrorIcon, LongerIcon, WarningIcon } from '../../icons';
|
|
29
|
+
import { translate, translations as translationsLocale } from '@antscorp/antsomi-locales';
|
|
29
30
|
const initialState = {
|
|
30
31
|
isOpenPopover: false,
|
|
31
32
|
searchValue: '',
|
|
@@ -42,13 +43,26 @@ const { t } = i18nInstance;
|
|
|
42
43
|
const { Text } = Typography;
|
|
43
44
|
export function MatchesAny(props) {
|
|
44
45
|
// Props
|
|
45
|
-
const { objectName, loading = false, showExtendValue = true, selectedItems: selectedItemsProp, items, groupSelectProps, renderExtraValues, customItemRenders, listEmptyProps, selectedListEmptyProps, selectedTreeData: selectedTreeDataProp, searchValue = '', isExternalSearch, onApply = () => { }, onCancel = () => { }, onLoadMore = () => { }, onChangeSearch, ...restOfProps } = props;
|
|
46
|
+
const { maxSelectedItem, maxLengthEachItem, objectName, loading = false, showExtendValue = true, selectedItems: selectedItemsProp, items, groupSelectProps, renderExtraValues, customItemRenders, listEmptyProps, selectedListEmptyProps, selectedTreeData: selectedTreeDataProp, searchValue = '', isExternalSearch, onApply = () => { }, onCancel = () => { }, onLoadMore = () => { }, onChangeSearch, ...restOfProps } = props;
|
|
46
47
|
// State
|
|
47
48
|
const [state, setState] = useState(matchesAnyInitialState);
|
|
49
|
+
const [maxItemsError, setMaxItemsError] = useState(false);
|
|
50
|
+
const [itemOverMaxLength, setItemOverMaxLength] = useState(false);
|
|
51
|
+
const [isApply, setIsApply] = useState(false);
|
|
48
52
|
// Variables
|
|
49
53
|
const { selectedItems, selectedTreeData, isShowLoadMoreEl, expandedKeys, selectedExpandedKeys } = state;
|
|
50
54
|
const { icon: listEmptyIcon = _jsx(LongerIcon, {}), description: listEmptyDescription = (_jsx("div", { dangerouslySetInnerHTML: { __html: t(translations.matchesAnySelect.noData) } })), ...restListEmptyProps } = listEmptyProps || {};
|
|
51
55
|
const { description: selectedListEmptyDescription = t(translations.global.selectItemsFromList).toString(), icon: selectedListEmptyIcon = _jsx(DataIcon, { color: globalToken?.bw5, size: 48 }), ...restSelectedListEmptyProps } = selectedListEmptyProps || {};
|
|
56
|
+
useDeepCompareEffect(() => {
|
|
57
|
+
const isOverMaxSelected = maxSelectedItem && selectedItems && selectedItems.length > maxSelectedItem;
|
|
58
|
+
const isSomeTextTooLong = maxLengthEachItem
|
|
59
|
+
? selectedItems && selectedItems.some(item => item.key?.toString().length > maxLengthEachItem)
|
|
60
|
+
: false;
|
|
61
|
+
setMaxItemsError(!!isOverMaxSelected);
|
|
62
|
+
setItemOverMaxLength(!!isSomeTextTooLong);
|
|
63
|
+
if (isApply && !isOverMaxSelected && !isSomeTextTooLong)
|
|
64
|
+
setIsApply(false);
|
|
65
|
+
}, [selectedItems, maxSelectedItem, maxLengthEachItem, isApply]);
|
|
52
66
|
// Refs
|
|
53
67
|
const { ref: loadMoreRef } = useIntersectionObserver({
|
|
54
68
|
threshold: 0,
|
|
@@ -142,27 +156,41 @@ export function MatchesAny(props) {
|
|
|
142
156
|
*
|
|
143
157
|
*/
|
|
144
158
|
const onRemoveItem = (item) => {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
159
|
+
setState(prev => {
|
|
160
|
+
const newSelectedItems = prev.selectedItems?.filter(selectedItem => {
|
|
161
|
+
if (item.children) {
|
|
162
|
+
const flattenChild = flatTree(item.children, 'children');
|
|
163
|
+
return (selectedItem.key !== item.key &&
|
|
164
|
+
!flattenChild?.some(item => item.key === selectedItem.key));
|
|
165
|
+
}
|
|
166
|
+
return selectedItem.key !== item.key;
|
|
167
|
+
});
|
|
168
|
+
const newSelectedTreeData = getSelectedTreeData(items || [], newSelectedItems || [], selectedTreeData || []);
|
|
169
|
+
return {
|
|
170
|
+
...prev,
|
|
171
|
+
selectedItems: newSelectedItems,
|
|
172
|
+
selectedTreeData: newSelectedTreeData,
|
|
173
|
+
};
|
|
152
174
|
});
|
|
153
|
-
const newSelectedTreeData = getSelectedTreeData(items || [], newSelectedItems || [], selectedTreeData || []);
|
|
154
|
-
setState(prev => ({
|
|
155
|
-
...prev,
|
|
156
|
-
selectedItems: newSelectedItems,
|
|
157
|
-
selectedTreeData: newSelectedTreeData,
|
|
158
|
-
}));
|
|
159
175
|
};
|
|
160
176
|
const onRemoveAll = () => {
|
|
161
177
|
setState(prev => ({ ...prev, selectedItems: [], selectedTreeData: [] }));
|
|
162
178
|
};
|
|
163
179
|
const onClickApply = () => {
|
|
180
|
+
if (maxItemsError || itemOverMaxLength) {
|
|
181
|
+
setIsApply(true);
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
164
184
|
onApply(selectedItems || [], selectedTreeData || []);
|
|
165
185
|
};
|
|
186
|
+
const handleClickRemoveInvalid = () => {
|
|
187
|
+
selectedItems?.forEach(item => {
|
|
188
|
+
if (maxLengthEachItem && item.key?.toString().length > maxLengthEachItem) {
|
|
189
|
+
onRemoveItem(item);
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
// setItemOverMaxLength(false);
|
|
193
|
+
};
|
|
166
194
|
const renderItemError = useCallback((item) => {
|
|
167
195
|
if (customItemRenders?.error) {
|
|
168
196
|
return customItemRenders?.error(item);
|
|
@@ -177,7 +205,10 @@ export function MatchesAny(props) {
|
|
|
177
205
|
? typeof extraValue.render === 'function'
|
|
178
206
|
? extraValue.render(item)
|
|
179
207
|
: extraValue.render
|
|
180
|
-
: item[extraValue.key] }) }, `${extraValue.key}`))) }))] }), _jsxs(Flex, { align: "center", gap: 10, children: [mode === 'select' && renderItemError(item),
|
|
208
|
+
: item[extraValue.key] }) }, `${extraValue.key}`))) }))] }), _jsxs(Flex, { align: "center", gap: 10, children: [mode === 'select' && renderItemError(item), mode === 'select' &&
|
|
209
|
+
item.key?.toString().length &&
|
|
210
|
+
maxLengthEachItem &&
|
|
211
|
+
item.key?.toString().length > maxLengthEachItem && _jsx(ErrorIcon, { size: 16 }), isExtendValue && (_jsx(Icon, { type: "icon-ants-empty-flag", size: 20, color: globalToken?.colorPrimary })), _jsx(ActionButton, { className: "select-button", align: "center", justify: "center", onClick: () => {
|
|
181
212
|
// Call onSelectItem function if provided
|
|
182
213
|
if (onSelectItem) {
|
|
183
214
|
onSelectItem(item);
|
|
@@ -187,7 +218,7 @@ export function MatchesAny(props) {
|
|
|
187
218
|
onRemoveItem(item);
|
|
188
219
|
}
|
|
189
220
|
}, children: _jsx(Icon, { type: `icon-ants-${onSelectItem ? 'double-arrow-up' : 'remove-slim'}`, size: 11 }) })] })] }));
|
|
190
|
-
}, [customItemRenders,
|
|
221
|
+
}, [renderExtraValues, customItemRenders, maxLengthEachItem, renderItemError]);
|
|
191
222
|
// Memos
|
|
192
223
|
const { treeData } = useDeepCompareMemo(() => {
|
|
193
224
|
const { results, matchedParents } = recursiveSearchItems({
|
|
@@ -296,7 +327,7 @@ export function MatchesAny(props) {
|
|
|
296
327
|
}
|
|
297
328
|
return null;
|
|
298
329
|
};
|
|
299
|
-
const renderSelectList = () => (_jsxs("div", { className: "matches-any__section matches-any__section--left", children: [_jsxs("div", { className: "matches-any__header", children: [!!groupSelectProps && (_jsx(PopoverSelect, { ...groupSelectProps, children: _jsxs(GroupSelectButton, { type: "default", size: "small", shape: "round", children: [_jsxs("span", { className: "group-name", children: [groupSelectProps?.name, ":"] }), `${groupSelectProps?.selected?.length || 0} ${t(translations.global.selected)}`] }) })), _jsx("div", { style: { width: '100%' }, children: _jsx(Input.CustomSearch, { ref: searchInputRef, autoFocus: true, value: searchValue, placeholder:
|
|
330
|
+
const renderSelectList = () => (_jsxs("div", { className: "matches-any__section matches-any__section--left", children: [_jsxs("div", { className: "matches-any__header", children: [!!groupSelectProps && (_jsx(PopoverSelect, { ...groupSelectProps, children: _jsxs(GroupSelectButton, { type: "default", size: "small", shape: "round", children: [_jsxs("span", { className: "group-name", children: [groupSelectProps?.name, ":"] }), `${groupSelectProps?.selected?.length || 0} ${t(translations.global.selected)}`] }) })), _jsx("div", { style: { width: '100%' }, children: _jsx(Input.CustomSearch, { ref: searchInputRef, autoFocus: true, value: searchValue, placeholder: translate(translationsLocale._ACT_SEARCH), onAfterChange: searchValue => {
|
|
300
331
|
if (onChangeSearch) {
|
|
301
332
|
onChangeSearch(searchValue);
|
|
302
333
|
}
|
|
@@ -312,7 +343,7 @@ export function MatchesAny(props) {
|
|
|
312
343
|
*/
|
|
313
344
|
!loading &&
|
|
314
345
|
(!!searchValue && !listEmptyProps ? (_jsx(EmptyData, { showIcon: false, description: t(translations.global.noResultsMatchesKeyWord).toString() })) : (_jsx(EmptyData, { icon: listEmptyIcon, showIcon: !!listEmptyIcon, description: listEmptyDescription, ...restListEmptyProps })))) })] })] }));
|
|
315
|
-
const renderSelectedList = () => (_jsxs("div", { className: "matches-any__section", children: [_jsxs(Flex, { className: "matches-any__header", justify: "space-between", children: [_jsx(Text, { strong: true, children: `${t(translations.global.selected)} (${selectedItems?.length || 0})` }), _jsx(TextButton, { disabled: isDisableRemoveAll, onClick: onRemoveAll, children:
|
|
346
|
+
const renderSelectedList = () => (_jsxs("div", { className: "matches-any__section", children: [_jsxs(Flex, { className: "matches-any__header", justify: "space-between", children: [_jsx(Text, { strong: true, children: `${t(translations.global.selected)} (${selectedItems?.length || 0}${maxSelectedItem && maxSelectedItem > 0 ? `/${maxSelectedItem}` : ''})` }), _jsx(TextButton, { disabled: isDisableRemoveAll, onClick: onRemoveAll, children: translate(translations._ACT_REMOVE_ALL) })] }), _jsx("div", { className: "matches-any__body", children: !selectedItems?.length && !loading ? (_jsx(EmptyData, { icon: selectedListEmptyIcon, description: selectedListEmptyDescription, ...restSelectedListEmptyProps })) : (_jsx(StyledTree, { defaultExpandAll: true, expandedKeys: selectedExpandedKeys, selectable: false, treeData: selectedTreeData, titleRender: item => renderItemNodeTitle({
|
|
316
347
|
item: item,
|
|
317
348
|
mode: 'select',
|
|
318
349
|
onRemoveItem,
|
|
@@ -345,10 +376,10 @@ export function MatchesAny(props) {
|
|
|
345
376
|
}));
|
|
346
377
|
}
|
|
347
378
|
};
|
|
348
|
-
return (_jsx(ConfigProvider, { theme: MATCHES_ANY_THEME, children: _jsxs(MatchesAnyWrapper, { ...restOfProps, vertical: true, justify: "space-between", children: [_jsxs(Flex, { style: { width: '100%', height: '100%' }, children: [renderSelectList(), renderSelectedList()] }), _jsxs(Flex, { className: "matches-any__footer", align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: 10, children: [_jsx(Button, { type: "primary", disabled: isDisableApply, onClick: onClickApply, children:
|
|
379
|
+
return (_jsx(ConfigProvider, { theme: MATCHES_ANY_THEME, children: _jsxs(MatchesAnyWrapper, { ...restOfProps, vertical: true, justify: "space-between", children: [_jsxs(Flex, { style: { width: '100%', height: '100%' }, children: [renderSelectList(), renderSelectedList()] }), _jsxs(Flex, { className: "matches-any__footer", align: "center", justify: "space-between", children: [_jsxs(Flex, { align: "center", gap: 10, children: [_jsx(Button, { type: "primary", disabled: isDisableApply, onClick: onClickApply, children: translate(translationsLocale._ACT_APPLY) }), _jsx(Button, { onClick: () => onCancel(), children: translate(translationsLocale._ACT_CANCEL) }), isApply && (maxItemsError || itemOverMaxLength) && (_jsxs(_Fragment, { children: [_jsx(Typography, { style: { color: globalToken?.colorError }, children: translate(translationsLocale._OPERATOR_MATCH_ANY_EX_VALUE_LIMIT) }), itemOverMaxLength && (_jsx(Button, { type: "text", onClick: handleClickRemoveInvalid, children: translate(translationsLocale._OPERATOR_MATCH_ANY_EX_VALUE_LIMIT_REMOVE_INV) }))] }))] }), showExtendValue && (_jsx(ExtendValuePopup, { getPopupContainer: trigger => trigger.parentElement || document.body, onApply: onApplyExtendValue, children: _jsx(Button, { icon: _jsx(Icon, { type: "icon-ants-empty-flag" }), children: t(translations.extendValue.title).toString() }) }))] })] }) }));
|
|
349
380
|
}
|
|
350
381
|
export function MatchesAnySelect(props) {
|
|
351
|
-
const { placeholder = 'Select an item', dropdownStyle, objectName, selectedItems, items, loading, popupClassName, groupSelectProps, renderExtraValues, customItemRenders, popoverProps, listEmptyProps, selectedListEmptyProps, selectedTreeData, error, onChangeSearch, onChange = () => { }, onLoadMore, ...restProps } = props;
|
|
382
|
+
const { maxSelectedItem, maxLengthEachItem, placeholder = 'Select an item', dropdownStyle, objectName, selectedItems, items, loading, popupClassName, groupSelectProps, renderExtraValues, customItemRenders, popoverProps, listEmptyProps, selectedListEmptyProps, selectedTreeData, error, onChangeSearch, onChange = () => { }, onLoadMore, ...restProps } = props;
|
|
352
383
|
// State
|
|
353
384
|
const [state, setState] = useState(initialState);
|
|
354
385
|
// Variables
|
|
@@ -365,7 +396,7 @@ export function MatchesAnySelect(props) {
|
|
|
365
396
|
onChange(selectedItems, selectedTreeData);
|
|
366
397
|
setState(prev => ({ ...prev, isOpenPopover: false }));
|
|
367
398
|
};
|
|
368
|
-
return (_jsx(Popover, { open: isOpenPopover, arrow: false, placement: "bottomLeft", content: _jsx(MatchesAny, { isExternalSearch: !!onChangeSearch, searchValue: state.searchValue, className: popupClassName, items: items, selectedItems: selectedItems, loading: loading, objectName: objectName, groupSelectProps: groupSelectProps, renderExtraValues: renderExtraValues, customItemRenders: customItemRenders, listEmptyProps: listEmptyProps, selectedListEmptyProps: selectedListEmptyProps, selectedTreeData: selectedTreeData, onChangeSearch: searchValue => {
|
|
399
|
+
return (_jsx(Popover, { open: isOpenPopover, arrow: false, placement: "bottomLeft", content: _jsx(MatchesAny, { maxSelectedItem: maxSelectedItem, maxLengthEachItem: maxLengthEachItem, isExternalSearch: !!onChangeSearch, searchValue: state.searchValue, className: popupClassName, items: items, selectedItems: selectedItems, loading: loading, objectName: objectName, groupSelectProps: groupSelectProps, renderExtraValues: renderExtraValues, customItemRenders: customItemRenders, listEmptyProps: listEmptyProps, selectedListEmptyProps: selectedListEmptyProps, selectedTreeData: selectedTreeData, onChangeSearch: searchValue => {
|
|
369
400
|
setState(prev => ({ ...prev, searchValue }));
|
|
370
401
|
if (onChangeSearch)
|
|
371
402
|
onChangeSearch(searchValue);
|
|
@@ -28,6 +28,12 @@ export type CustomItemRenders<TItem> = {
|
|
|
28
28
|
error?: (item: MatchesAnyItem<TItem>) => ReactNode;
|
|
29
29
|
};
|
|
30
30
|
export interface MatchesAnySelectProps<TItem = any> extends Omit<SelectProps, 'onChange'> {
|
|
31
|
+
/** Maximum item can select from items list */
|
|
32
|
+
maxSelectedItem?: number;
|
|
33
|
+
/** Max character of each item selected
|
|
34
|
+
* @default 200
|
|
35
|
+
*/
|
|
36
|
+
maxLengthEachItem?: number;
|
|
31
37
|
/** The name of object to be displayed in Popover */
|
|
32
38
|
objectName?: string;
|
|
33
39
|
/** Indicates whether show the extend value button */
|
|
@@ -61,7 +67,7 @@ export interface MatchesAnySelectProps<TItem = any> extends Omit<SelectProps, 'o
|
|
|
61
67
|
/** Callback function that is called when the user scroll */
|
|
62
68
|
onLoadMore?: () => void;
|
|
63
69
|
}
|
|
64
|
-
export interface MatchesAnyProps<TItem = any> extends Omit<FlexProps, 'children'>, Pick<MatchesAnySelectProps<TItem>, 'objectName' | 'loading' | 'showExtendValue' | 'items' | 'selectedItems' | 'onLoadMore' | 'groupSelectProps' | 'onChangeSearch' | 'renderExtraValues' | 'customItemRenders' | 'listEmptyProps' | 'selectedListEmptyProps' | 'selectedTreeData' | 'searchValue'> {
|
|
70
|
+
export interface MatchesAnyProps<TItem = any> extends Omit<FlexProps, 'children'>, Pick<MatchesAnySelectProps<TItem>, 'objectName' | 'loading' | 'showExtendValue' | 'items' | 'selectedItems' | 'onLoadMore' | 'groupSelectProps' | 'onChangeSearch' | 'renderExtraValues' | 'customItemRenders' | 'listEmptyProps' | 'selectedListEmptyProps' | 'selectedTreeData' | 'searchValue' | 'maxSelectedItem' | 'maxLengthEachItem'> {
|
|
65
71
|
/** Indicates handle search out of component */
|
|
66
72
|
isExternalSearch?: boolean;
|
|
67
73
|
/**
|
|
@@ -16,13 +16,13 @@ import '@yaireo/tagify/dist/tagify.css';
|
|
|
16
16
|
// Styled
|
|
17
17
|
import { TagTextArea, TagifyWrapper, WrapperPlaceHolder } from './styled';
|
|
18
18
|
// Utils
|
|
19
|
-
import { parseTagStringToTagify, convertInputStringToOriginal, emojiManufacturer, getEmojiTag, isPersonalizeTagType, generateTagContent, unescapeString, hasLineBreak, selectRange, isTagClickable, findURLInTextNodes, getAttributesString, } from './utils';
|
|
19
|
+
import { parseTagStringToTagify, convertInputStringToOriginal, emojiManufacturer, getEmojiTag, isPersonalizeTagType, generateTagContent, unescapeString, hasLineBreak, selectRange, isTagClickable, findURLInTextNodes, getAttributesString, isAnchorNodeChildOfElement, } from './utils';
|
|
20
20
|
import { acceptablePatternChecking, detectURLRegex, getCachedRegex, getPersonalizeTagInfo, patternHandlers, } from './patternHandlers';
|
|
21
21
|
// Constants
|
|
22
22
|
import { DETECT_LINK, EMOJI, FORCE_SHOW_TOOLTIP, INVALID_TAG, MESSAGE_TAG, NO_VIEW_TAG, PERSONALIZE_PTN, PROMOTION_CODE, READONLY_TAG, REMOVED_TAG, SHORT_LINK, SHORT_LINK_PTN, defaultCssVariables, tagifyDefaultProps, } from './constants';
|
|
23
23
|
const TagifyInput = forwardRef((props, ref) => {
|
|
24
24
|
// Props
|
|
25
|
-
const { initialValue, escapeHTML, status, readonly, readonlyTag, disabled, maxLength, maxHeight, minWidth, placeholder, isSingleLineText, acceptableTagPattern, mapAttributes, mapErrorAttributes, maxPersonalizeTags, name, children, cssTagifyVariables, onTagClick, onChange, } = props;
|
|
25
|
+
const { initialValue, escapeHTML, status, readonly, readonlyTag, realtime, disabled, maxLength, maxHeight, minWidth, placeholder, isSingleLineText, acceptableTagPattern, mapAttributes, mapErrorAttributes, maxPersonalizeTags, name, children, cssTagifyVariables, onTagClick, onChange, } = props;
|
|
26
26
|
// States
|
|
27
27
|
const [isLineBreak, setIsLineBreak] = useState(hasLineBreak(initialValue));
|
|
28
28
|
const [tooltipRefresher, setTooltipRefresher] = useState(1);
|
|
@@ -80,8 +80,15 @@ const TagifyInput = forwardRef((props, ref) => {
|
|
|
80
80
|
}, []);
|
|
81
81
|
const onSelectionAfterInjection = useCallback((addRangeAfterInjected) => {
|
|
82
82
|
try {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
if (!tagifyRef.current) {
|
|
84
|
+
throw new Error('Tagify instance is not initialized');
|
|
85
|
+
}
|
|
86
|
+
const { scope } = tagifyRef.current?.DOM;
|
|
87
|
+
const isValidSelection = isAnchorNodeChildOfElement(scope);
|
|
88
|
+
if (isValidSelection) {
|
|
89
|
+
const selection = window.getSelection();
|
|
90
|
+
if (!selection?.rangeCount)
|
|
91
|
+
return;
|
|
85
92
|
const range = selection.getRangeAt(0);
|
|
86
93
|
if (addRangeAfterInjected) {
|
|
87
94
|
// Need to re-select to keep the caret position
|
|
@@ -107,9 +114,10 @@ const TagifyInput = forwardRef((props, ref) => {
|
|
|
107
114
|
const { settings, DOM } = tagifyRef.current;
|
|
108
115
|
const rangeInstance = _.get(tagifyRef.current, 'state.selection.range', null);
|
|
109
116
|
const { empty } = settings.classNames;
|
|
117
|
+
const isValidSelection = isAnchorNodeChildOfElement(DOM.scope);
|
|
110
118
|
const selection = window.getSelection();
|
|
111
119
|
// In case not have the selection yet or lost the selection,
|
|
112
|
-
if (!selection?.rangeCount || !rangeInstance) {
|
|
120
|
+
if (!selection?.rangeCount || !isValidSelection || !rangeInstance) {
|
|
113
121
|
// need to restore the last range before inject a new tag if the last range exists
|
|
114
122
|
if (lastRange.current) {
|
|
115
123
|
selection?.removeAllRanges();
|
|
@@ -406,15 +414,20 @@ const TagifyInput = forwardRef((props, ref) => {
|
|
|
406
414
|
// Used to trigger replace URL detection and line break
|
|
407
415
|
const onTagifyTyping = useCallback((event) => {
|
|
408
416
|
if (event.detail) {
|
|
409
|
-
const { textContent } = event.detail;
|
|
417
|
+
const { textContent, tagify } = event.detail;
|
|
410
418
|
// Tracking if the tagify input is line break
|
|
411
419
|
setIsLineBreak(hasLineBreak(textContent));
|
|
412
420
|
// Update URL to tag to show hint in the tooltip with tag
|
|
413
421
|
if (textContent) {
|
|
414
422
|
detectReplaceURLToTag();
|
|
415
423
|
}
|
|
424
|
+
if (realtime) {
|
|
425
|
+
const inputValue = tagify.getInputValue();
|
|
426
|
+
const convertedValue = convertInputStringToOriginal(inputValue);
|
|
427
|
+
onOutputData(convertedValue);
|
|
428
|
+
}
|
|
416
429
|
}
|
|
417
|
-
}, [detectReplaceURLToTag]);
|
|
430
|
+
}, [realtime, detectReplaceURLToTag, onOutputData]);
|
|
418
431
|
/**
|
|
419
432
|
* Capture to trigger when tagify changed
|
|
420
433
|
*/
|
|
@@ -20,6 +20,13 @@ export interface TagifyInputProps {
|
|
|
20
20
|
* Defines whether the input should escape HTML characters.
|
|
21
21
|
*/
|
|
22
22
|
escapeHTML?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Defines whether the input should be in *realtime* mode.
|
|
25
|
+
* In *realtime* mode, the input is updated as the user stops typing, otherwise only on blur types.
|
|
26
|
+
*
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
realtime?: boolean;
|
|
23
30
|
/**
|
|
24
31
|
* Optional mapping configuration for custom attributes associated with tags.
|
|
25
32
|
* Defines how tag attributes are mapped and processed internally.
|
|
@@ -174,3 +174,11 @@ export declare function findURLInTextNodes(element: HTMLSpanElement, minLengthVa
|
|
|
174
174
|
* // Returns: 'class="btn-primary" disabled data-testid="submit-button" aria-label="Submit form" tabindex="0"'
|
|
175
175
|
*/
|
|
176
176
|
export declare const getAttributesString: (map: Map<string, string | boolean | number>) => string;
|
|
177
|
+
/**
|
|
178
|
+
* Checks if the anchor node of the current text selection
|
|
179
|
+
* is a child of a specific DOM element.
|
|
180
|
+
*
|
|
181
|
+
* @param {HTMLElement} element - The parent element to check against
|
|
182
|
+
* @returns {boolean} True if the anchor node is a child of the element, false otherwise
|
|
183
|
+
*/
|
|
184
|
+
export declare const isAnchorNodeChildOfElement: (element: Node) => boolean;
|
|
@@ -617,3 +617,26 @@ export const getAttributesString = (map) => Array.from(map.entries())
|
|
|
617
617
|
})
|
|
618
618
|
.filter(Boolean)
|
|
619
619
|
.join(' ');
|
|
620
|
+
/**
|
|
621
|
+
* Checks if the anchor node of the current text selection
|
|
622
|
+
* is a child of a specific DOM element.
|
|
623
|
+
*
|
|
624
|
+
* @param {HTMLElement} element - The parent element to check against
|
|
625
|
+
* @returns {boolean} True if the anchor node is a child of the element, false otherwise
|
|
626
|
+
*/
|
|
627
|
+
export const isAnchorNodeChildOfElement = (element) => {
|
|
628
|
+
// Get the current selection
|
|
629
|
+
const selection = window.getSelection();
|
|
630
|
+
// Check if there's an active selection
|
|
631
|
+
if (!selection || selection.rangeCount === 0) {
|
|
632
|
+
return false;
|
|
633
|
+
}
|
|
634
|
+
// Get the anchor node (where the selection starts)
|
|
635
|
+
const { anchorNode } = selection;
|
|
636
|
+
// Check if the anchor node exists and the element exists
|
|
637
|
+
if (!anchorNode || !element) {
|
|
638
|
+
return false;
|
|
639
|
+
}
|
|
640
|
+
// Use Node.contains() to check if the element contains the anchor node
|
|
641
|
+
return element.contains(anchorNode);
|
|
642
|
+
};
|
|
@@ -20,6 +20,8 @@ import { OPERATORS_CODE } from '@antscorp/antsomi-ui/es/constants/condition';
|
|
|
20
20
|
import { translations } from '@antscorp/antsomi-ui/es/locales/translations';
|
|
21
21
|
import { EXCEPTION_OFF_FILTER_CLASS, METRIC_MAP_NUMBER_TYPE, METRIC_MAP_STRING_TYPE, } from '../constants/filter';
|
|
22
22
|
const { MATCHES, MATCHES_ANY, NOT_MATCHES, ON, BEFORE, BEFORE_DATE, AFTER, AFTER_DATE } = OPERATORS_CODE;
|
|
23
|
+
const MAX_SELECTED_ITEM = 100;
|
|
24
|
+
const MAX_LENGTH_EACH_ITEM = 200;
|
|
23
25
|
const { t } = i18nInstance;
|
|
24
26
|
const { Text } = Typography;
|
|
25
27
|
/* Filter */
|
|
@@ -161,7 +163,7 @@ export const renderValueField = ({ filterMetric, operator, value, matchesAny, on
|
|
|
161
163
|
case OPERATORS_CODE.MATCHES_ANY:
|
|
162
164
|
case OPERATORS_CODE.NOT_MATCHES: {
|
|
163
165
|
const { list, isLoading } = matchesAny || {};
|
|
164
|
-
return (_jsx(MatchesAnySelect, { selectedItems: Array.isArray(value) ? value : [], popupClassName: EXCEPTION_OFF_FILTER_CLASS, objectName: name, items: list, loading: isLoading, onChange: onChangeValue, onLoadMore: onLoadMore }));
|
|
166
|
+
return (_jsx(MatchesAnySelect, { maxSelectedItem: MAX_SELECTED_ITEM, maxLengthEachItem: MAX_LENGTH_EACH_ITEM, selectedItems: Array.isArray(value) ? value : [], popupClassName: EXCEPTION_OFF_FILTER_CLASS, objectName: name, items: list, loading: isLoading, onChange: onChangeValue, onLoadMore: onLoadMore }));
|
|
165
167
|
}
|
|
166
168
|
case OPERATORS_CODE.AFTER:
|
|
167
169
|
case OPERATORS_CODE.AFTER_DATE:
|
|
@@ -16,6 +16,8 @@ import { EXCEPTION_OFF_FILTER_CLASS, METRIC_MAP_NUMBER_TYPE, METRIC_MAP_STRING_T
|
|
|
16
16
|
const { MATCHES, MATCHES_ANY, NOT_MATCHES, ON, BEFORE, BEFORE_DATE, AFTER, AFTER_DATE } = OPERATORS_CODE;
|
|
17
17
|
const { t } = i18nInstance;
|
|
18
18
|
const { Text } = Typography;
|
|
19
|
+
const MAX_SELECTED_ITEM = 100;
|
|
20
|
+
const MAX_LENGTH_EACH_ITEM = 200;
|
|
19
21
|
/* Filter */
|
|
20
22
|
export const serializeFilterMetricsToMenuItems = ({ filterMetrics = [], level = 0, onSelectFilterMetric, onClickFilterMetric, }) => {
|
|
21
23
|
const isShowPopover = level >= 1;
|
|
@@ -155,7 +157,7 @@ export const renderValueField = ({ filterMetric, operator, value, matchesAny, on
|
|
|
155
157
|
case OPERATORS_CODE.MATCHES_ANY:
|
|
156
158
|
case OPERATORS_CODE.NOT_MATCHES: {
|
|
157
159
|
const { list, isLoading } = matchesAny || {};
|
|
158
|
-
return (_jsx(MatchesAnySelect, { selectedItems: Array.isArray(value) ? value : [], popupClassName: EXCEPTION_OFF_FILTER_CLASS, objectName: name, items: list, loading: isLoading, onChange: onChangeValue, onLoadMore: onLoadMore }));
|
|
160
|
+
return (_jsx(MatchesAnySelect, { maxSelectedItem: MAX_SELECTED_ITEM, maxLengthEachItem: MAX_LENGTH_EACH_ITEM, selectedItems: Array.isArray(value) ? value : [], popupClassName: EXCEPTION_OFF_FILTER_CLASS, objectName: name, items: list, loading: isLoading, onChange: onChangeValue, onLoadMore: onLoadMore }));
|
|
159
161
|
}
|
|
160
162
|
case OPERATORS_CODE.AFTER:
|
|
161
163
|
case OPERATORS_CODE.AFTER_DATE:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/antsomi-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.40",
|
|
4
4
|
"description": "An enterprise-class UI design language and React UI library.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"dist/*",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint": "eslint --ext js,ts,tsx",
|
|
29
29
|
"lint": "yarn run eslint src",
|
|
30
30
|
"lint:fix": "yarn run eslint src --fix",
|
|
31
|
-
"storybook": "
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
32
|
"build-storybook": "storybook build",
|
|
33
33
|
"serve-storybook": "serve storybook-static",
|
|
34
34
|
"version": "auto-changelog -p && git add CHANGELOG.md",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"not op_mini all"
|
|
61
61
|
],
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@antscorp/antsomi-locales": "
|
|
63
|
+
"@antscorp/antsomi-locales": "1.0.17",
|
|
64
64
|
"@antscorp/icons": "0.27.54",
|
|
65
65
|
"@antscorp/image-editor": "1.0.2",
|
|
66
66
|
"@antscorp/processing-notification": "^1.0.3",
|