@reltio/dashboard 1.4.2128 → 1.4.2132
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/bundle.js +1 -1
- package/package.json +4 -4
- package/types/components/src/BasicTable/basicTableViewState.d.ts +3 -3
- package/types/components/src/EmptyState/EmptyState.d.ts +24 -0
- package/types/components/src/EmptyState/index.d.ts +1 -0
- package/types/components/src/EmptyState/styles.d.ts +1 -0
- package/types/components/src/HOCs/withErrorBoundary/index.d.ts +1 -0
- package/types/components/src/HOCs/withErrorBoundary/withErrorBoundary.d.ts +5 -0
- package/types/components/src/ProfileCard/components/ProfileCardPlaceholder/styles.d.ts +1 -1
- package/types/components/src/ReltioMap/components/TopRightMapControls/TopRightMapControls.d.ts +1 -1
- package/types/components/src/SegmentIdLink/SegmentIdLink.d.ts +5 -0
- package/types/components/src/SegmentIdLink/index.d.ts +1 -0
- package/types/components/src/contexts/MdmModuleContext/context.d.ts +8 -0
- package/types/components/src/contexts/MdmModuleContext/hooks.d.ts +4 -0
- package/types/components/src/contexts/UrlGeneratorsContext/index.d.ts +6 -0
- package/types/components/src/helpers/segments.d.ts +1 -0
- package/types/components/src/hooks/useSegmentsLoader/index.d.ts +1 -0
- package/types/components/src/hooks/useSegmentsLoader/useSegmentsLoader.d.ts +15 -0
- package/types/components/src/hooks/useSegmentsSizesLoader/index.d.ts +1 -0
- package/types/components/src/hooks/useSegmentsSizesLoader/useSegmentsSizesLoader.d.ts +6 -0
- package/types/components/src/icons/EmptyLoading.d.ts +3 -0
- package/types/components/src/icons/EmptySearchResults.d.ts +3 -0
- package/types/components/src/icons/Error.d.ts +3 -0
- package/types/components/src/icons/NoData.d.ts +3 -0
- package/types/components/src/icons/SelectAttributes.d.ts +3 -0
- package/types/components/src/types/basicTable.d.ts +1 -5
- package/types/dashboard/src/components/DashboardSegmentsTable/CellRenderers/LabelCellRenderer/LabelCellRenderer.d.ts +2 -1
- package/types/dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.d.ts +3 -4
- package/types/dashboard/src/components/DashboardSegmentsTable/helpers.d.ts +2 -2
- package/types/components/src/hooks/useSegmentsRequest/helper.d.ts +0 -2
- package/types/components/src/hooks/useSegmentsRequest/index.d.ts +0 -1
- package/types/components/src/hooks/useSegmentsRequest/useSegmentsRequest.d.ts +0 -42
- package/types/components/src/test-utils/index.d.ts +0 -32
- package/types/dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.test.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/dashboard",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2132",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "bundle.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@reltio/components": "^1.4.
|
|
9
|
-
"@reltio/mdm-module": "^1.4.
|
|
10
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
8
|
+
"@reltio/components": "^1.4.2100",
|
|
9
|
+
"@reltio/mdm-module": "^1.4.1972",
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.1938",
|
|
11
11
|
"object-hash": "^2.1.1"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createStandardAction } from '@reltio/mdm-sdk';
|
|
2
|
-
import { ColumnData, ColumnFilter, ColumnSize
|
|
1
|
+
import { createStandardAction, SortingField } from '@reltio/mdm-sdk';
|
|
2
|
+
import { ColumnData, ColumnFilter, ColumnSize } from '../types/basicTable';
|
|
3
3
|
export declare enum ActionTypes {
|
|
4
4
|
CHANGE_COLUMNS = "CHANGE_COLUMNS",
|
|
5
5
|
TOGGLE_FILTERS = "TOGGLE_FILTERS",
|
|
@@ -12,7 +12,7 @@ export type BasicTableState = {
|
|
|
12
12
|
visibleColumns: ColumnData['id'][];
|
|
13
13
|
columnsSize?: ColumnSize[];
|
|
14
14
|
filters?: Record<ColumnData['id'], ColumnFilter>;
|
|
15
|
-
sorting?:
|
|
15
|
+
sorting?: SortingField;
|
|
16
16
|
page: number;
|
|
17
17
|
rowsPerPage: number;
|
|
18
18
|
rowsPerPageOptions?: number[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum EMPTY_STATE_VARIANTS {
|
|
3
|
+
full = "full",
|
|
4
|
+
embedded = "embedded",
|
|
5
|
+
small = "small"
|
|
6
|
+
}
|
|
7
|
+
export declare const EMPTY_STATE_ICONS: {
|
|
8
|
+
SEARCH_RESULTS: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
9
|
+
SELECT_ATTRIBUTES: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
10
|
+
NO_DATA: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
11
|
+
ERROR: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
12
|
+
LOADING: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
13
|
+
};
|
|
14
|
+
type Props = {
|
|
15
|
+
variant?: EMPTY_STATE_VARIANTS;
|
|
16
|
+
LogoRenderer?: React.ElementType;
|
|
17
|
+
text: string;
|
|
18
|
+
secondaryText?: string;
|
|
19
|
+
buttonTitle?: string;
|
|
20
|
+
access?: boolean;
|
|
21
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
22
|
+
};
|
|
23
|
+
export declare const EmptyState: ({ variant, LogoRenderer, text, secondaryText, buttonTitle, onClick, access }: Props) => React.JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EmptyState, EMPTY_STATE_ICONS, EMPTY_STATE_VARIANTS } from './EmptyState';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"small" | "embedded" | "text" | "button" | "root" | "root_small" | "full" | "textBox" | "secondaryText">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { withErrorBoundary } from './withErrorBoundary';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "secondaryLabel" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "secondaryLabel" | "info" | "avatar" | "thirdRow" | "@keyframes keyframes-wave" | "wave">;
|
package/types/components/src/ReltioMap/components/TopRightMapControls/TopRightMapControls.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare const ButtonWithTooltip: React.ForwardRefExoticComponent<Omit<{
|
|
|
36
36
|
touchRippleRef?: React.Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
|
|
37
37
|
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
38
38
|
ref?: React.Ref<HTMLButtonElement>;
|
|
39
|
-
}, "children" | "size" | "action" | "disabled" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "href" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "
|
|
39
|
+
}, "children" | "size" | "action" | "disabled" | "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "tabIndex" | "href" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
40
40
|
type Props = {
|
|
41
41
|
className?: string;
|
|
42
42
|
onDrawingModeChanged: (value: DrawingMode | null) => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SegmentIdLink: React.ForwardRefExoticComponent<Omit<Omit<React.HTMLProps<HTMLAnchorElement>, "target" | "href" | "onClick"> & {
|
|
3
|
+
segmentId: string;
|
|
4
|
+
shouldOpenInNewTab?: boolean;
|
|
5
|
+
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SegmentIdLink } from './SegmentIdLink';
|
|
@@ -75,6 +75,10 @@ export type MdmModuleActionsContextProps = Partial<{
|
|
|
75
75
|
source?: string | null;
|
|
76
76
|
screen?: string;
|
|
77
77
|
}) => void;
|
|
78
|
+
openSegment: (payload: {
|
|
79
|
+
segmentId: string;
|
|
80
|
+
tabId?: string;
|
|
81
|
+
}) => void;
|
|
78
82
|
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
79
83
|
entityUri: string;
|
|
80
84
|
value: ImageAttributeValue;
|
|
@@ -146,6 +150,10 @@ export declare const MdmModuleActionsContext: import("@fluentui/react-context-se
|
|
|
146
150
|
source?: string | null;
|
|
147
151
|
screen?: string;
|
|
148
152
|
}) => void;
|
|
153
|
+
openSegment: (payload: {
|
|
154
|
+
segmentId: string;
|
|
155
|
+
tabId?: string;
|
|
156
|
+
}) => void;
|
|
149
157
|
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
150
158
|
entityUri: string;
|
|
151
159
|
value: ImageAttributeValue;
|
|
@@ -91,6 +91,10 @@ export declare const useMdmAction: <T extends keyof MdmModuleActionsContextProps
|
|
|
91
91
|
source?: string | null;
|
|
92
92
|
screen?: string;
|
|
93
93
|
}) => void;
|
|
94
|
+
openSegment: (payload: {
|
|
95
|
+
segmentId: string;
|
|
96
|
+
tabId?: string;
|
|
97
|
+
}) => void;
|
|
94
98
|
setDefaultProfilePicForModifiedEntity: (payload: {
|
|
95
99
|
entityUri: string;
|
|
96
100
|
value: import("@reltio/mdm-sdk").ImageAttributeValue;
|
|
@@ -14,10 +14,16 @@ type GenerateTagUrl = (params: {
|
|
|
14
14
|
tag: string;
|
|
15
15
|
entityUri: string;
|
|
16
16
|
}) => string;
|
|
17
|
+
type GenerateSegmentUrl = (params: {
|
|
18
|
+
uiPath: string;
|
|
19
|
+
segmentId: string;
|
|
20
|
+
screen?: string;
|
|
21
|
+
}) => string;
|
|
17
22
|
type UrlGenerators = {
|
|
18
23
|
generateEntityUrl?: GenerateEntityUrl;
|
|
19
24
|
generatePivotingUrl?: GeneratePivotingUrl;
|
|
20
25
|
generateTagUrl?: GenerateTagUrl;
|
|
26
|
+
generateSegmentUrl?: GenerateSegmentUrl;
|
|
21
27
|
};
|
|
22
28
|
export declare const UrlGeneratorsContext: React.Context<UrlGenerators>;
|
|
23
29
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildSegmentsFilterString: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSegmentsLoader } from './useSegmentsLoader';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { NewSegment, SegmentationFilters, SortingField } from '@reltio/mdm-sdk';
|
|
2
|
+
import { RequestStates } from '../../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
sorting?: SortingField;
|
|
5
|
+
rowsPerPage: number;
|
|
6
|
+
page: number;
|
|
7
|
+
filters?: SegmentationFilters;
|
|
8
|
+
};
|
|
9
|
+
export declare const useSegmentsLoader: ({ sorting, rowsPerPage, page, filters }: Props) => {
|
|
10
|
+
state: RequestStates;
|
|
11
|
+
segments: NewSegment[];
|
|
12
|
+
total: number;
|
|
13
|
+
reload: () => Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useSegmentsSizesLoader } from './useSegmentsSizesLoader';
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DataTypeDefinition, SearchValue
|
|
2
|
+
import { DataTypeDefinition, SearchValue } from '@reltio/mdm-sdk';
|
|
3
3
|
import { useCollapsibleTableRows } from '../hooks/useCollapsibleTableRows';
|
|
4
4
|
import { DraggableAttributes } from '@dnd-kit/core';
|
|
5
|
-
export type Sorting = {
|
|
6
|
-
field: string;
|
|
7
|
-
order: SortOrder;
|
|
8
|
-
};
|
|
9
5
|
export type ColumnFilter = {
|
|
10
6
|
filter: string;
|
|
11
7
|
value?: SearchValue;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Segment } from '@reltio/mdm-sdk';
|
|
2
|
+
import { SizedNewSegment, SortingField } from '@reltio/mdm-sdk';
|
|
4
3
|
type Props = {
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
7
|
-
segments:
|
|
6
|
+
segments: SizedNewSegment[];
|
|
8
7
|
basicTableRef?: RefObject<HTMLDivElement>;
|
|
9
8
|
onSort: (field: string) => void;
|
|
10
|
-
sorting?:
|
|
9
|
+
sorting?: SortingField;
|
|
11
10
|
};
|
|
12
11
|
export declare const DashboardSegmentsTable: ({ width, height, segments, basicTableRef, onSort, sorting }: Props) => React.JSX.Element;
|
|
13
12
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SizedNewSegment } from '@reltio/mdm-sdk';
|
|
2
2
|
import { ColumnData } from '@reltio/components/types/basicTable';
|
|
3
|
-
export declare const getSegmentTableData: (segments:
|
|
3
|
+
export declare const getSegmentTableData: (segments: SizedNewSegment[]) => ColumnData[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { useSegmentsRequest } from './useSegmentsRequest';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { SavedSearchesOptions, SavedSearchType, SortOrder } from '@reltio/mdm-sdk';
|
|
2
|
-
import { RequestStates } from '../../types';
|
|
3
|
-
type Props = {
|
|
4
|
-
options?: SavedSearchesOptions;
|
|
5
|
-
defaultRowsPerPage: number;
|
|
6
|
-
};
|
|
7
|
-
export declare const useSegmentsRequest: ({ options, defaultRowsPerPage }: Props) => {
|
|
8
|
-
data: {
|
|
9
|
-
uri: string;
|
|
10
|
-
name: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
query: string;
|
|
13
|
-
isFavorite: boolean;
|
|
14
|
-
uiState: Record<string, any>;
|
|
15
|
-
createDate: number;
|
|
16
|
-
updateDate: number;
|
|
17
|
-
isPublic: boolean;
|
|
18
|
-
count: number;
|
|
19
|
-
owner: string;
|
|
20
|
-
type: SavedSearchType;
|
|
21
|
-
isLoadingTotal?: boolean;
|
|
22
|
-
}[];
|
|
23
|
-
total: number;
|
|
24
|
-
page: number;
|
|
25
|
-
rowsPerPage: number;
|
|
26
|
-
audienceCountMap: Record<string, {
|
|
27
|
-
isLoading?: boolean;
|
|
28
|
-
count?: number;
|
|
29
|
-
}>;
|
|
30
|
-
loadingState: RequestStates;
|
|
31
|
-
reload: () => void;
|
|
32
|
-
updateRowsPerPage: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
33
|
-
updatePage: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
34
|
-
loadSegments: () => Promise<void>;
|
|
35
|
-
nameSortOrder: SortOrder;
|
|
36
|
-
setNameSortOrder: import("react").Dispatch<import("react").SetStateAction<SortOrder>>;
|
|
37
|
-
favoriteOnly: boolean;
|
|
38
|
-
setFavoriteOnly: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
39
|
-
containsWordStartingWith: string;
|
|
40
|
-
setContainsWordStartingWith: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const awaitMockPromises: () => Promise<unknown>;
|
|
2
|
-
export declare const deepFreeze: (obj: any) => any;
|
|
3
|
-
export declare const rerenderWrapper: (wrapper: any) => any;
|
|
4
|
-
export declare const mockElementSizes: (element?: HTMLElement, defaults?: {
|
|
5
|
-
offsetLeft?: number;
|
|
6
|
-
offsetTop?: number;
|
|
7
|
-
offsetHeight?: number;
|
|
8
|
-
offsetWidth?: number;
|
|
9
|
-
}) => {
|
|
10
|
-
mock: () => void;
|
|
11
|
-
unmock: () => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const mockComputedStyles: (styles?: {}) => () => void;
|
|
14
|
-
export declare const mockBasicTableSizing: ({ width, height }?: {
|
|
15
|
-
width?: number;
|
|
16
|
-
height?: number;
|
|
17
|
-
}) => () => void;
|
|
18
|
-
export declare const fixClicksOnResizablePanes: () => void;
|
|
19
|
-
export declare const getMuiIconByName: (name: string, el?: HTMLElement) => HTMLElement;
|
|
20
|
-
export declare const getMuiIconsByName: (name: string, el?: HTMLElement) => HTMLElement[];
|
|
21
|
-
interface MouseEventWithOffsets extends MouseEventInit {
|
|
22
|
-
pageX?: number;
|
|
23
|
-
pageY?: number;
|
|
24
|
-
offsetX?: number;
|
|
25
|
-
offsetY?: number;
|
|
26
|
-
x?: number;
|
|
27
|
-
y?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare class FakeMouseEvent extends MouseEvent {
|
|
30
|
-
constructor(type: string, values: MouseEventWithOffsets);
|
|
31
|
-
}
|
|
32
|
-
export {};
|
package/types/dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|