@reltio/dashboard 1.4.2127 → 1.4.2131
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/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 +1 -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.2131",
|
|
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.2099",
|
|
9
|
+
"@reltio/mdm-module": "^1.4.1971",
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.1937",
|
|
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 @@
|
|
|
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 {};
|