@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.
Files changed (29) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +4 -4
  3. package/types/components/src/BasicTable/basicTableViewState.d.ts +3 -3
  4. package/types/components/src/EmptyState/EmptyState.d.ts +24 -0
  5. package/types/components/src/EmptyState/index.d.ts +1 -0
  6. package/types/components/src/EmptyState/styles.d.ts +1 -0
  7. package/types/components/src/HOCs/withErrorBoundary/index.d.ts +1 -0
  8. package/types/components/src/HOCs/withErrorBoundary/withErrorBoundary.d.ts +5 -0
  9. package/types/components/src/ProfileCard/components/ProfileCardPlaceholder/styles.d.ts +1 -1
  10. package/types/components/src/ReltioMap/components/TopRightMapControls/TopRightMapControls.d.ts +1 -1
  11. package/types/components/src/helpers/segments.d.ts +1 -0
  12. package/types/components/src/hooks/useSegmentsLoader/index.d.ts +1 -0
  13. package/types/components/src/hooks/useSegmentsLoader/useSegmentsLoader.d.ts +15 -0
  14. package/types/components/src/hooks/useSegmentsSizesLoader/index.d.ts +1 -0
  15. package/types/components/src/hooks/useSegmentsSizesLoader/useSegmentsSizesLoader.d.ts +6 -0
  16. package/types/components/src/icons/EmptyLoading.d.ts +3 -0
  17. package/types/components/src/icons/EmptySearchResults.d.ts +3 -0
  18. package/types/components/src/icons/Error.d.ts +3 -0
  19. package/types/components/src/icons/NoData.d.ts +3 -0
  20. package/types/components/src/icons/SelectAttributes.d.ts +3 -0
  21. package/types/components/src/types/basicTable.d.ts +1 -5
  22. package/types/dashboard/src/components/DashboardSegmentsTable/CellRenderers/LabelCellRenderer/LabelCellRenderer.d.ts +1 -1
  23. package/types/dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.d.ts +3 -4
  24. package/types/dashboard/src/components/DashboardSegmentsTable/helpers.d.ts +2 -2
  25. package/types/components/src/hooks/useSegmentsRequest/helper.d.ts +0 -2
  26. package/types/components/src/hooks/useSegmentsRequest/index.d.ts +0 -1
  27. package/types/components/src/hooks/useSegmentsRequest/useSegmentsRequest.d.ts +0 -42
  28. package/types/components/src/test-utils/index.d.ts +0 -32
  29. 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.2127",
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.2095",
9
- "@reltio/mdm-module": "^1.4.1967",
10
- "@reltio/mdm-sdk": "^1.4.1933",
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, Sorting } from '../types/basicTable';
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?: 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';
@@ -0,0 +1,5 @@
1
+ import React, { ComponentType } from 'react';
2
+ export declare const withErrorBoundary: <P extends Record<string, unknown>>(Component: ComponentType<P>) => {
3
+ (props: P): React.JSX.Element;
4
+ displayName: string;
5
+ };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "secondaryLabel" | "avatar" | "info" | "thirdRow" | "@keyframes keyframes-wave" | "wave">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"label" | "secondaryLabel" | "info" | "avatar" | "thirdRow" | "@keyframes keyframes-wave" | "wave">;
@@ -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" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon">, "ref"> & React.RefAttributes<HTMLElement>>;
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';
@@ -0,0 +1,6 @@
1
+ import { NewSegment } from '@reltio/mdm-sdk';
2
+ type SegmentsSizes = {
3
+ [id: string]: number;
4
+ };
5
+ export declare const useSegmentsSizesLoader: (segments: NewSegment[]) => SegmentsSizes;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgEmptyLoading: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgEmptyLoading;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgEmptySearchResults: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgEmptySearchResults;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgError: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgError;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgNoData: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgNoData;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgSelectAttributes: React.FC<React.SVGProps<SVGSVGElement>>;
3
+ export default SvgSelectAttributes;
@@ -1,11 +1,7 @@
1
1
  import React from 'react';
2
- import { DataTypeDefinition, SearchValue, SortOrder } from '@reltio/mdm-sdk';
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;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  type Props = {
3
3
  value?: string;
4
4
  rowValue: {
5
- isFavorite: boolean;
5
+ favorite: boolean;
6
6
  };
7
7
  };
8
8
  export declare const LabelCellRenderer: ({ value, rowValue }: Props) => React.JSX.Element;
@@ -1,13 +1,12 @@
1
1
  import React, { RefObject } from 'react';
2
- import { Sorting } from '@reltio/components/types/basicTable';
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: Segment[];
6
+ segments: SizedNewSegment[];
8
7
  basicTableRef?: RefObject<HTMLDivElement>;
9
8
  onSort: (field: string) => void;
10
- sorting?: 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 { Segment } from '@reltio/mdm-sdk';
1
+ import { SizedNewSegment } from '@reltio/mdm-sdk';
2
2
  import { ColumnData } from '@reltio/components/types/basicTable';
3
- export declare const getSegmentTableData: (segments: Segment[]) => ColumnData[];
3
+ export declare const getSegmentTableData: (segments: SizedNewSegment[]) => ColumnData[];
@@ -1,2 +0,0 @@
1
- import { Segment } from '@reltio/mdm-sdk';
2
- export declare const getAudienceCount: (segments: Segment[]) => Promise<{}>;
@@ -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 {};