@antscorp/antsomi-ui 1.3.5-beta.722 → 1.3.5-beta.724
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/IdentityGraphIcon.d.ts +3 -0
- package/es/components/icons/IdentityGraphIcon.js +19 -0
- package/es/components/icons/LazyIcon/LazyIcon.d.ts +4 -1
- package/es/components/icons/LazyIcon/LazyIcon.js +4 -1
- package/es/components/icons/document/IconGallery.js +21 -19
- package/es/components/icons/index.d.ts +2 -1
- package/es/components/icons/index.js +2 -1
- package/es/components/molecules/MatchAnySelect/utils.d.ts +91 -1
- package/es/components/molecules/MatchAnySelect/utils.js +8 -3
- package/es/components/organism/ActivityTimeline/index.d.ts +1 -0
- package/es/components/organism/DataTable/index.d.ts +1 -1
- package/es/components/organism/index.d.ts +1 -0
- package/es/components/organism/index.js +1 -0
- package/es/constants/theme.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { useIcon } from './hooks/useIcon';
|
|
3
|
+
export const IdentityGraphIcon = forwardRef((props, ref) => {
|
|
4
|
+
const { width, height } = useIcon(props);
|
|
5
|
+
return (React.createElement("svg", Object.assign({ viewBox: "0 0 30 22", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { ref: ref, width: width, height: height }),
|
|
6
|
+
React.createElement("path", { d: "M12.5 8.5C14.1569 8.5 15.5 7.15685 15.5 5.5C15.5 3.84315 14.1569 2.5 12.5 2.5C10.8431 2.5 9.5 3.84315 9.5 5.5C9.5 7.15685 10.8431 8.5 12.5 8.5Z", fill: "#595959" }),
|
|
7
|
+
React.createElement("path", { d: "M7.5 13C8.88071 13 10 11.8807 10 10.5C10 9.11929 8.88071 8 7.5 8C6.11929 8 5 9.11929 5 10.5C5 11.8807 6.11929 13 7.5 13Z", stroke: "#585858" }),
|
|
8
|
+
React.createElement("path", { d: "M20.5 21C21.8807 21 23 19.8807 23 18.5C23 17.1193 21.8807 16 20.5 16C19.1193 16 18 17.1193 18 18.5C18 19.8807 19.1193 21 20.5 21Z", stroke: "#585858" }),
|
|
9
|
+
React.createElement("path", { d: "M20.5 6C21.8807 6 23 4.88071 23 3.5C23 2.11929 21.8807 1 20.5 1C19.1193 1 18 2.11929 18 3.5C18 4.88071 19.1193 6 20.5 6Z", stroke: "#585858" }),
|
|
10
|
+
React.createElement("path", { d: "M15.5 14.5C17.1569 14.5 18.5 13.1569 18.5 11.5C18.5 9.84315 17.1569 8.5 15.5 8.5C13.8431 8.5 12.5 9.84315 12.5 11.5C12.5 13.1569 13.8431 14.5 15.5 14.5Z", fill: "#595959" }),
|
|
11
|
+
React.createElement("path", { d: "M22.5 14.5C24.1569 14.5 25.5 13.1569 25.5 11.5C25.5 9.84315 24.1569 8.5 22.5 8.5C20.8431 8.5 19.5 9.84315 19.5 11.5C19.5 13.1569 20.8431 14.5 22.5 14.5Z", fill: "#595959" }),
|
|
12
|
+
React.createElement("path", { d: "M11.5 20.5C13.1569 20.5 14.5 19.1569 14.5 17.5C14.5 15.8431 13.1569 14.5 11.5 14.5C9.84315 14.5 8.5 15.8431 8.5 17.5C8.5 19.1569 9.84315 20.5 11.5 20.5Z", fill: "#595959" }),
|
|
13
|
+
React.createElement("path", { d: "M16 12L13 6", stroke: "#595959", strokeLinecap: "round" }),
|
|
14
|
+
React.createElement("path", { d: "M15.5883 11.5738L10.5 11.2578", stroke: "#595959", strokeLinecap: "round" }),
|
|
15
|
+
React.createElement("path", { d: "M16 12L11 17", stroke: "#595959", strokeLinecap: "round" }),
|
|
16
|
+
React.createElement("path", { d: "M18.9301 6.03716L16.6643 9.61607", stroke: "#595959", strokeLinecap: "round" }),
|
|
17
|
+
React.createElement("path", { d: "M16.5 13.5005L18.5 16.5006", stroke: "#595959", strokeLinecap: "round" }),
|
|
18
|
+
React.createElement("path", { d: "M16 12H23", stroke: "#595959", strokeLinecap: "round" })));
|
|
19
|
+
});
|
|
@@ -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>>>;
|
|
6
5
|
AccountSharing30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
7
6
|
AccountSharingIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
8
7
|
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>>>;
|
|
@@ -101,6 +101,7 @@ export declare const LazyIcon: {
|
|
|
101
101
|
DataSource30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
102
102
|
DataView30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
103
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>>>;
|
|
104
105
|
DatasourceIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
105
106
|
DatasourceSegment30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
106
107
|
DeleteRemoveTrashIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -183,6 +184,7 @@ export declare const LazyIcon: {
|
|
|
183
184
|
HomeIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
184
185
|
HowToRegIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
185
186
|
IdeaIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
187
|
+
IdentityGraphIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
186
188
|
ImageIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
187
189
|
InactiveIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
188
190
|
InactiveVariantIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -282,6 +284,7 @@ export declare const LazyIcon: {
|
|
|
282
284
|
ResumeIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
283
285
|
RightExpandIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
284
286
|
Role30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
287
|
+
SQLWorkspace30Icon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
285
288
|
SaveAsIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
286
289
|
SaveIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
287
290
|
ScheduleEmailDeliveryIcon: import("react").LazyExoticComponent<import("react").ForwardRefExoticComponent<import("../types").IconProps & import("react").RefAttributes<SVGSVGElement>>>;
|
|
@@ -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 }))),
|
|
@@ -107,6 +107,7 @@ export const LazyIcon = {
|
|
|
107
107
|
DataSource30Icon: lazy(() => import('../DataSource30Icon').then(m => ({ default: m.DataSource30Icon }))),
|
|
108
108
|
DataView30Icon: lazy(() => import('../DataView30Icon').then(m => ({ default: m.DataView30Icon }))),
|
|
109
109
|
DataViewIcon: lazy(() => import('../DataViewIcon').then(m => ({ default: m.DataViewIcon }))),
|
|
110
|
+
Dataflows30Icon: lazy(() => import('../Dataflows30Icon').then(m => ({ default: m.Dataflows30Icon }))),
|
|
110
111
|
DatasourceIcon: lazy(() => import('../DatasourceIcon').then(m => ({ default: m.DatasourceIcon }))),
|
|
111
112
|
DatasourceSegment30Icon: lazy(() => import('../DatasourceSegment30Icon').then(m => ({ default: m.DatasourceSegment30Icon }))),
|
|
112
113
|
DeleteRemoveTrashIcon: lazy(() => import('../DeleteRemoveTrashIcon').then(m => ({ default: m.DeleteRemoveTrashIcon }))),
|
|
@@ -189,6 +190,7 @@ export const LazyIcon = {
|
|
|
189
190
|
HomeIcon: lazy(() => import('../HomeIcon').then(m => ({ default: m.HomeIcon }))),
|
|
190
191
|
HowToRegIcon: lazy(() => import('../HowToRegIcon').then(m => ({ default: m.HowToRegIcon }))),
|
|
191
192
|
IdeaIcon: lazy(() => import('../IdeaIcon').then(m => ({ default: m.IdeaIcon }))),
|
|
193
|
+
IdentityGraphIcon: lazy(() => import('../IdentityGraphIcon').then(m => ({ default: m.IdentityGraphIcon }))),
|
|
192
194
|
ImageIcon: lazy(() => import('../ImageIcon').then(m => ({ default: m.ImageIcon }))),
|
|
193
195
|
InactiveIcon: lazy(() => import('../InactiveIcon').then(m => ({ default: m.InactiveIcon }))),
|
|
194
196
|
InactiveVariantIcon: lazy(() => import('../InactiveVariantIcon').then(m => ({ default: m.InactiveVariantIcon }))),
|
|
@@ -288,6 +290,7 @@ export const LazyIcon = {
|
|
|
288
290
|
ResumeIcon: lazy(() => import('../ResumeIcon').then(m => ({ default: m.ResumeIcon }))),
|
|
289
291
|
RightExpandIcon: lazy(() => import('../RightExpandIcon').then(m => ({ default: m.RightExpandIcon }))),
|
|
290
292
|
Role30Icon: lazy(() => import('../Role30Icon').then(m => ({ default: m.Role30Icon }))),
|
|
293
|
+
SQLWorkspace30Icon: lazy(() => import('../SQLWorkspace30Icon').then(m => ({ default: m.SQLWorkspace30Icon }))),
|
|
291
294
|
SaveAsIcon: lazy(() => import('../SaveAsIcon').then(m => ({ default: m.SaveAsIcon }))),
|
|
292
295
|
SaveIcon: lazy(() => import('../SaveIcon').then(m => ({ default: m.SaveIcon }))),
|
|
293
296
|
ScheduleEmailDeliveryIcon: lazy(() => import('../ScheduleEmailDeliveryIcon').then(m => ({ default: m.ScheduleEmailDeliveryIcon }))),
|
|
@@ -5,6 +5,7 @@ import { message } from 'antd';
|
|
|
5
5
|
import React, { useMemo, useState } from 'react';
|
|
6
6
|
import { Flex, Input, Typography } from '../../index';
|
|
7
7
|
import { IconGalleryStyled } from './styled';
|
|
8
|
+
import { queryClientAntsomiUI, QueryClientProviderAntsomiUI, } from '@antscorp/antsomi-ui/es/queries';
|
|
8
9
|
const REGEX_DATA_SEARCH = /(?<=\/\/ search tag: ).*/g;
|
|
9
10
|
const requireContext = require.context('../', false, /\.tsx$/);
|
|
10
11
|
const icons = requireContext
|
|
@@ -34,23 +35,24 @@ export const IconGallery = () => {
|
|
|
34
35
|
}),
|
|
35
36
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36
37
|
[]);
|
|
37
|
-
return (React.createElement(
|
|
38
|
-
React.createElement(
|
|
39
|
-
|
|
40
|
-
React.createElement("
|
|
41
|
-
|
|
42
|
-
React.createElement("
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
return (React.createElement(QueryClientProviderAntsomiUI, { client: queryClientAntsomiUI },
|
|
39
|
+
React.createElement(ConfigProvider, null,
|
|
40
|
+
React.createElement(IconGalleryStyled, null,
|
|
41
|
+
invalidIcons.length > 0 ? (React.createElement("div", null,
|
|
42
|
+
React.createElement("h4", null, "These components below are invalid (check name and file name is correct?)"),
|
|
43
|
+
invalidIcons.map(item => (React.createElement("strong", { key: item.name, style: { color: 'red' } },
|
|
44
|
+
React.createElement("pre", null, item.name)))))) : null,
|
|
45
|
+
React.createElement(Input, { placeholder: "Search Icon", value: search, onChange: e => setSearch(e.target.value), style: { fontSize: '16px' } }),
|
|
46
|
+
React.createElement(Flex, { className: "grid-container", gap: 16 }, validIcons
|
|
47
|
+
.filter(item => searchMatchAny([item.name, ...item.dataSearch], debounceSearchValue))
|
|
48
|
+
.map(item => {
|
|
49
|
+
const { Component, name } = item;
|
|
50
|
+
return (React.createElement("div", { key: name, className: "grid-item", onClick: () => {
|
|
51
|
+
const copiedText = `<${name} />`;
|
|
52
|
+
navigator.clipboard.writeText(copiedText);
|
|
53
|
+
message.success(`${copiedText} copied to clipboard 🚀`);
|
|
54
|
+
} },
|
|
55
|
+
React.createElement(Component, null),
|
|
56
|
+
React.createElement(Typography.Text, { ellipsis: { tooltip: true } }, name)));
|
|
57
|
+
}))))));
|
|
56
58
|
};
|
|
@@ -98,10 +98,10 @@ export { DataRefreshIcon } from './DataRefreshIcon';
|
|
|
98
98
|
export { DataSchema30Icon } from './DataSchema30Icon';
|
|
99
99
|
export { DataSource30Icon } from './DataSource30Icon';
|
|
100
100
|
export { DataView30Icon } from './DataView30Icon';
|
|
101
|
+
export { DataViewIcon } from './DataViewIcon';
|
|
101
102
|
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
102
103
|
export { DatasourceIcon } from './DatasourceIcon';
|
|
103
104
|
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
104
|
-
export { DataViewIcon } from './DataViewIcon';
|
|
105
105
|
export { DeleteRemoveTrashIcon } from './DeleteRemoveTrashIcon';
|
|
106
106
|
export { DeliveryLogIcon } from './DeliveryLogIcon';
|
|
107
107
|
export { DesktopLaptopIcon } from './DesktopLaptopIcon';
|
|
@@ -182,6 +182,7 @@ export { HomeHouse30Icon } from './HomeHouse30Icon';
|
|
|
182
182
|
export { HomeIcon } from './HomeIcon';
|
|
183
183
|
export { HowToRegIcon } from './HowToRegIcon';
|
|
184
184
|
export { IdeaIcon } from './IdeaIcon';
|
|
185
|
+
export { IdentityGraphIcon } from './IdentityGraphIcon';
|
|
185
186
|
export { ImageIcon } from './ImageIcon';
|
|
186
187
|
export { InactiveIcon } from './InactiveIcon';
|
|
187
188
|
export { InactiveVariantIcon } from './InactiveVariantIcon';
|
|
@@ -98,10 +98,10 @@ export { DataRefreshIcon } from './DataRefreshIcon';
|
|
|
98
98
|
export { DataSchema30Icon } from './DataSchema30Icon';
|
|
99
99
|
export { DataSource30Icon } from './DataSource30Icon';
|
|
100
100
|
export { DataView30Icon } from './DataView30Icon';
|
|
101
|
+
export { DataViewIcon } from './DataViewIcon';
|
|
101
102
|
export { Dataflows30Icon } from './Dataflows30Icon';
|
|
102
103
|
export { DatasourceIcon } from './DatasourceIcon';
|
|
103
104
|
export { DatasourceSegment30Icon } from './DatasourceSegment30Icon';
|
|
104
|
-
export { DataViewIcon } from './DataViewIcon';
|
|
105
105
|
export { DeleteRemoveTrashIcon } from './DeleteRemoveTrashIcon';
|
|
106
106
|
export { DeliveryLogIcon } from './DeliveryLogIcon';
|
|
107
107
|
export { DesktopLaptopIcon } from './DesktopLaptopIcon';
|
|
@@ -182,6 +182,7 @@ export { HomeHouse30Icon } from './HomeHouse30Icon';
|
|
|
182
182
|
export { HomeIcon } from './HomeIcon';
|
|
183
183
|
export { HowToRegIcon } from './HowToRegIcon';
|
|
184
184
|
export { IdeaIcon } from './IdeaIcon';
|
|
185
|
+
export { IdentityGraphIcon } from './IdentityGraphIcon';
|
|
185
186
|
export { ImageIcon } from './ImageIcon';
|
|
186
187
|
export { InactiveIcon } from './InactiveIcon';
|
|
187
188
|
export { InactiveVariantIcon } from './InactiveVariantIcon';
|
|
@@ -1,2 +1,92 @@
|
|
|
1
1
|
import { MatchesAnyItem } from './types';
|
|
2
|
-
export declare const getSelectedTreeData: (items: MatchesAnyItem<any>[], selectedItems: MatchesAnyItem<any>[], selectedTreeData?: MatchesAnyItem<any>[]) =>
|
|
2
|
+
export declare const getSelectedTreeData: (items: MatchesAnyItem<any>[], selectedItems: MatchesAnyItem<any>[], selectedTreeData?: MatchesAnyItem<any>[]) => {
|
|
3
|
+
toString: () => string;
|
|
4
|
+
charAt: (pos: number) => string;
|
|
5
|
+
charCodeAt: (index: number) => number;
|
|
6
|
+
concat: (...strings: string[]) => string;
|
|
7
|
+
indexOf: (searchString: string, position?: number | undefined) => number;
|
|
8
|
+
lastIndexOf: (searchString: string, position?: number | undefined) => number;
|
|
9
|
+
localeCompare: {
|
|
10
|
+
(that: string): number;
|
|
11
|
+
(that: string, locales?: string | string[] | undefined, options?: Intl.CollatorOptions | undefined): number;
|
|
12
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions | undefined): number;
|
|
13
|
+
};
|
|
14
|
+
match: {
|
|
15
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
16
|
+
(matcher: {
|
|
17
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
18
|
+
}): RegExpMatchArray | null;
|
|
19
|
+
};
|
|
20
|
+
replace: {
|
|
21
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
22
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
23
|
+
(searchValue: {
|
|
24
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
25
|
+
}, replaceValue: string): string;
|
|
26
|
+
(searchValue: {
|
|
27
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
28
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
29
|
+
};
|
|
30
|
+
search: {
|
|
31
|
+
(regexp: string | RegExp): number;
|
|
32
|
+
(searcher: {
|
|
33
|
+
[Symbol.search](string: string): number;
|
|
34
|
+
}): number;
|
|
35
|
+
};
|
|
36
|
+
slice: (start?: number | undefined, end?: number | undefined) => string;
|
|
37
|
+
split: {
|
|
38
|
+
(separator: string | RegExp, limit?: number | undefined): string[];
|
|
39
|
+
(splitter: {
|
|
40
|
+
[Symbol.split](string: string, limit?: number | undefined): string[];
|
|
41
|
+
}, limit?: number | undefined): string[];
|
|
42
|
+
};
|
|
43
|
+
substring: (start: number, end?: number | undefined) => string;
|
|
44
|
+
toLowerCase: () => string;
|
|
45
|
+
toLocaleLowerCase: {
|
|
46
|
+
(locales?: string | string[] | undefined): string;
|
|
47
|
+
(locales?: Intl.LocalesArgument): string;
|
|
48
|
+
};
|
|
49
|
+
toUpperCase: () => string;
|
|
50
|
+
toLocaleUpperCase: {
|
|
51
|
+
(locales?: string | string[] | undefined): string;
|
|
52
|
+
(locales?: Intl.LocalesArgument): string;
|
|
53
|
+
};
|
|
54
|
+
trim: () => string;
|
|
55
|
+
readonly length: number;
|
|
56
|
+
substr: (from: number, length?: number | undefined) => string;
|
|
57
|
+
valueOf: () => string;
|
|
58
|
+
codePointAt: (pos: number) => number | undefined;
|
|
59
|
+
includes: (searchString: string, position?: number | undefined) => boolean;
|
|
60
|
+
endsWith: (searchString: string, endPosition?: number | undefined) => boolean;
|
|
61
|
+
normalize: {
|
|
62
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
63
|
+
(form?: string | undefined): string;
|
|
64
|
+
};
|
|
65
|
+
repeat: (count: number) => string;
|
|
66
|
+
startsWith: (searchString: string, position?: number | undefined) => boolean;
|
|
67
|
+
anchor: (name: string) => string;
|
|
68
|
+
big: () => string;
|
|
69
|
+
blink: () => string;
|
|
70
|
+
bold: () => string;
|
|
71
|
+
fixed: () => string;
|
|
72
|
+
fontcolor: (color: string) => string;
|
|
73
|
+
fontsize: {
|
|
74
|
+
(size: number): string;
|
|
75
|
+
(size: string): string;
|
|
76
|
+
};
|
|
77
|
+
italics: () => string;
|
|
78
|
+
link: (url: string) => string;
|
|
79
|
+
small: () => string;
|
|
80
|
+
strike: () => string;
|
|
81
|
+
sub: () => string;
|
|
82
|
+
sup: () => string;
|
|
83
|
+
padStart: (maxLength: number, fillString?: string | undefined) => string;
|
|
84
|
+
padEnd: (maxLength: number, fillString?: string | undefined) => string;
|
|
85
|
+
trimEnd: () => string;
|
|
86
|
+
trimStart: () => string;
|
|
87
|
+
trimLeft: () => string;
|
|
88
|
+
trimRight: () => string;
|
|
89
|
+
matchAll: (regexp: RegExp) => IterableIterator<RegExpExecArray>;
|
|
90
|
+
[Symbol.iterator]: () => IterableIterator<string>;
|
|
91
|
+
at: (index: number) => string | undefined;
|
|
92
|
+
}[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Libraries
|
|
2
2
|
import deepmerge from 'deepmerge';
|
|
3
|
+
import { isEmpty, unionBy } from 'lodash';
|
|
3
4
|
// Utils
|
|
4
5
|
import { flatTree } from '@antscorp/antsomi-ui/es/utils';
|
|
5
6
|
const customMergeTreeData = (key) => (target, source) => {
|
|
@@ -16,8 +17,8 @@ const customMergeTreeData = (key) => (target, source) => {
|
|
|
16
17
|
export const getSelectedTreeData = (items, selectedItems, selectedTreeData = []) => {
|
|
17
18
|
const notExtendValueSelectedItems = (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(item => !item.isExtendValue)) || [];
|
|
18
19
|
const extendValueSelectedItems = (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.filter(item => item.isExtendValue)) || [];
|
|
19
|
-
// If all of
|
|
20
|
-
const notFoundItems = !items.some(item =>
|
|
20
|
+
// If all of items not have children then filter item is not found in list but has selected for display
|
|
21
|
+
const notFoundItems = !items.some(item => !isEmpty(item.children))
|
|
21
22
|
? notExtendValueSelectedItems === null || notExtendValueSelectedItems === void 0 ? void 0 : notExtendValueSelectedItems.filter(item => !(items === null || items === void 0 ? void 0 : items.some(i => i.key === item.key)))
|
|
22
23
|
: [];
|
|
23
24
|
const serializeTreeData = (list) => {
|
|
@@ -42,5 +43,9 @@ export const getSelectedTreeData = (items, selectedItems, selectedTreeData = [])
|
|
|
42
43
|
const mergeItems = deepmerge(selectedTreeData || [], items || [], {
|
|
43
44
|
arrayMerge: customMergeTreeData('key'),
|
|
44
45
|
});
|
|
45
|
-
|
|
46
|
+
const treeData = serializeTreeData(mergeItems).concat([
|
|
47
|
+
...notFoundItems,
|
|
48
|
+
...extendValueSelectedItems,
|
|
49
|
+
]);
|
|
50
|
+
return unionBy(treeData, 'key');
|
|
46
51
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DataTable } from './DataTable';
|
|
2
2
|
export type { DataTableProps, TableProps as DataTableTable, TSearchItem } from './types';
|
|
3
|
-
export type {
|
|
3
|
+
export type { FilterMetricItem as FilterMetic } from '../Filter';
|
|
4
4
|
export { useDataTableListing } from './hooks';
|
|
5
5
|
export { CDP_DATA_TABLE_SAMPLE, METRICS as FILTER_METRICS } from './constants';
|
package/es/constants/theme.js
CHANGED