@reltio/dashboard 1.4.2119 → 1.4.2120

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 (27) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +4 -4
  3. package/types/components/src/DefaultHeadCellRendererWithTooltip/DefaultHeadCellRendererWithTooltip.d.ts +14 -0
  4. package/types/components/src/DefaultHeadCellRendererWithTooltip/index.d.ts +2 -0
  5. package/types/components/src/ReactSelectDropdownIndicator/styles.d.ts +1 -1
  6. package/types/components/src/ReltioMap/components/TopRightMapControls/TopRightMapControls.d.ts +1 -1
  7. package/types/components/src/TableWithBars/components/HeadCellRenderer/HeadCellRenderer.d.ts +2 -8
  8. package/types/components/src/test-utils/index.d.ts +32 -0
  9. package/types/dashboard/src/components/DashboardSegmentsTable/CellRenderers/index.d.ts +3 -0
  10. package/types/{components/src/SegmentsTable/SegmentsTable.d.ts → dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.d.ts} +2 -2
  11. package/types/dashboard/src/components/DashboardSegmentsTable/DashboardSegmentsTable.test.d.ts +1 -0
  12. package/types/{components/src/SegmentsTable → dashboard/src/components/DashboardSegmentsTable}/helpers.d.ts +1 -1
  13. package/types/dashboard/src/components/DashboardSegmentsTable/index.d.ts +1 -0
  14. package/types/dashboard/src/components/EntityTable/cell-renderers/HeadCellRenderer.d.ts +2 -7
  15. package/types/components/src/SegmentsTable/components/AttributeCellRenderer/AttributeCellRenderer.d.ts +0 -6
  16. package/types/components/src/SegmentsTable/components/AttributeCellRenderer/index.d.ts +0 -1
  17. package/types/components/src/SegmentsTable/components/AudienceCountCellRenderer/AudienceCountCellRenderer.d.ts +0 -6
  18. package/types/components/src/SegmentsTable/components/AudienceCountCellRenderer/index.d.ts +0 -1
  19. package/types/components/src/SegmentsTable/components/HeadCellRenderer/HeadCellRenderer.d.ts +0 -9
  20. package/types/components/src/SegmentsTable/components/HeadCellRenderer/index.d.ts +0 -1
  21. package/types/components/src/SegmentsTable/index.d.ts +0 -1
  22. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/BarCellRenderer/BarCellRenderer.d.ts +0 -0
  23. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/BarCellRenderer/index.d.ts +0 -0
  24. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/BarHeadCellRenderer/BarHeadCellRenderer.d.ts +0 -0
  25. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/BarHeadCellRenderer/index.d.ts +0 -0
  26. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/LabelCellRenderer/LabelCellRenderer.d.ts +0 -0
  27. /package/types/{components/src/SegmentsTable/components → dashboard/src/components/DashboardSegmentsTable/CellRenderers}/LabelCellRenderer/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/dashboard",
3
- "version": "1.4.2119",
3
+ "version": "1.4.2120",
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.2087",
9
- "@reltio/mdm-module": "^1.4.1961",
10
- "@reltio/mdm-sdk": "^1.4.1927",
8
+ "@reltio/components": "^1.4.2088",
9
+ "@reltio/mdm-module": "^1.4.1962",
10
+ "@reltio/mdm-sdk": "^1.4.1928",
11
11
  "object-hash": "^2.1.1"
12
12
  },
13
13
  "peerDependencies": {
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ export type DefaultHeadCellRendererWithTooltipProps = {
3
+ className?: string;
4
+ headCellData: {
5
+ label: string;
6
+ columnClassName?: string;
7
+ };
8
+ classes?: {
9
+ headCell?: string;
10
+ headLabel?: string;
11
+ };
12
+ dataReltioId?: string;
13
+ };
14
+ export declare const DefaultHeadCellRendererWithTooltip: ({ classes, dataReltioId, headCellData, className, ...props }: DefaultHeadCellRendererWithTooltipProps) => React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { DefaultHeadCellRendererWithTooltip } from './DefaultHeadCellRendererWithTooltip';
2
+ export type { DefaultHeadCellRendererWithTooltipProps } from './DefaultHeadCellRendererWithTooltip';
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"expanded" | "disabled">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"disabled" | "expanded">;
@@ -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" | "color" | "disabled" | 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" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon">, "ref"> & React.RefAttributes<HTMLElement>>;
40
40
  type Props = {
41
41
  className?: string;
42
42
  onDrawingModeChanged: (value: DrawingMode | null) => void;
@@ -1,9 +1,3 @@
1
1
  import React from 'react';
2
- type HeadCellRendererProps = {
3
- className?: string;
4
- headCellData: {
5
- label: string;
6
- };
7
- };
8
- export declare const HeadCellRenderer: ({ className, headCellData, ...otherProps }: HeadCellRendererProps) => React.JSX.Element;
9
- export {};
2
+ import { DefaultHeadCellRendererWithTooltipProps } from '../../../DefaultHeadCellRendererWithTooltip/DefaultHeadCellRendererWithTooltip';
3
+ export declare const HeadCellRenderer: (props: DefaultHeadCellRendererWithTooltipProps) => React.JSX.Element;
@@ -0,0 +1,32 @@
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 {};
@@ -0,0 +1,3 @@
1
+ export { BarCellRenderer } from './BarCellRenderer';
2
+ export { BarHeadCellRenderer } from './BarHeadCellRenderer';
3
+ export { LabelCellRenderer } from './LabelCellRenderer';
@@ -1,6 +1,6 @@
1
1
  import React, { RefObject } from 'react';
2
+ import { Sorting } from '@reltio/components/types/basicTable';
2
3
  import { Segment } from '@reltio/mdm-sdk';
3
- import { Sorting } from '../types/basicTable';
4
4
  type Props = {
5
5
  width: number;
6
6
  height: number;
@@ -9,5 +9,5 @@ type Props = {
9
9
  onSort: (field: string) => void;
10
10
  sorting?: Sorting;
11
11
  };
12
- export declare const SegmentsTable: ({ width, height, segments, basicTableRef, onSort, sorting }: Props) => React.JSX.Element;
12
+ export declare const DashboardSegmentsTable: ({ width, height, segments, basicTableRef, onSort, sorting }: Props) => React.JSX.Element;
13
13
  export {};
@@ -1,3 +1,3 @@
1
1
  import { Segment } from '@reltio/mdm-sdk';
2
- import { ColumnData } from '../types/basicTable';
2
+ import { ColumnData } from '@reltio/components/types/basicTable';
3
3
  export declare const getSegmentTableData: (segments: Segment[]) => ColumnData[];
@@ -0,0 +1 @@
1
+ export { DashboardSegmentsTable } from './DashboardSegmentsTable';
@@ -1,9 +1,4 @@
1
1
  import React from 'react';
2
- type HeadCellRendererProps = {
3
- className?: string;
4
- headCellData: {
5
- label: string;
6
- };
7
- };
8
- declare const HeadCellRenderer: ({ className, headCellData, ...otherProps }: HeadCellRendererProps) => React.JSX.Element;
2
+ import { DefaultHeadCellRendererWithTooltipProps } from '@reltio/components/DefaultHeadCellRendererWithTooltip';
3
+ declare const HeadCellRenderer: (props: DefaultHeadCellRendererWithTooltipProps) => React.JSX.Element;
9
4
  export default HeadCellRenderer;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- value?: string;
4
- };
5
- export declare const AttributeCellRenderer: ({ value }: Props) => React.JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export { AttributeCellRenderer } from './AttributeCellRenderer';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- value: string;
4
- };
5
- export declare const AudienceCountCellRenderer: ({ value }: Props) => React.JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export { AudienceCountCellRenderer } from './AudienceCountCellRenderer';
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- type HeadCellRendererProps = {
3
- className?: string;
4
- headCellData: {
5
- label: string;
6
- };
7
- };
8
- export declare const HeadCellRenderer: ({ className, headCellData, ...otherProps }: HeadCellRendererProps) => React.JSX.Element;
9
- export {};
@@ -1 +0,0 @@
1
- export { HeadCellRenderer } from './HeadCellRenderer';
@@ -1 +0,0 @@
1
- export { SegmentsTable } from './SegmentsTable';