@reltio/dashboard 1.4.1602 → 1.4.1604

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/dashboard",
3
- "version": "1.4.1602",
3
+ "version": "1.4.1604",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "bundle.js",
6
6
  "types": "./types/index.d.ts",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
- "@reltio/mdm-module": "^1.4.1602",
10
- "@reltio/mdm-sdk": "^1.4.1602",
9
+ "@reltio/mdm-module": "^1.4.1604",
10
+ "@reltio/mdm-sdk": "^1.4.1604",
11
11
  "classnames": "^2.2.5",
12
12
  "memoize-one": "^5.1.0",
13
13
  "object-hash": "^2.1.1",
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import { DatePeriod } from '@reltio/mdm-sdk';
3
+ type DashboardDateRangeSelectorProps = {
4
+ values?: DatePeriod | string;
5
+ editorLabel?: string;
6
+ editorPlaceholder?: string;
7
+ isPickingDate?: boolean;
8
+ isMenuOpen?: boolean;
9
+ onMenuToggle?: () => void;
10
+ };
11
+ declare const _default: {
12
+ (props: DashboardDateRangeSelectorProps & React.RefAttributes<HTMLButtonElement> & {
13
+ values?: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">;
14
+ options?: import("@reltio/components/src/HOCs/withDateRangeSelector/helpers").Option[];
15
+ dataTypeDefinition?: import("@reltio/mdm-sdk").DataTypeDefinition;
16
+ getValuesDateRange?: (value: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">) => [Date, Date];
17
+ onChange?: (value: string | [Date, Date] | Omit<import("@reltio/mdm-sdk/src/constants/filter-values").default, "PICK_DATE">) => void;
18
+ DateRangePickerProps?: Partial<{
19
+ onApply: ([startDate, endDate]: [Date, Date]) => void;
20
+ values?: [Date, Date];
21
+ type?: string;
22
+ minDate?: Date;
23
+ maxDate?: Date;
24
+ } & React.RefAttributes<HTMLDivElement>>;
25
+ MenuProps?: Partial<import("@mui/material").MenuProps>;
26
+ }): JSX.Element;
27
+ displayName: string;
28
+ };
29
+ export default _default;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"periodSelector">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button">;
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  type DashboardErrorProps = {
3
- height?: number;
4
3
  onRefresh?: () => void;
5
4
  message?: string;
6
5
  };
7
- declare const DashboardError: ({ height, onRefresh, message }: DashboardErrorProps) => JSX.Element;
6
+ declare const DashboardError: ({ onRefresh, message }: DashboardErrorProps) => JSX.Element;
8
7
  export default DashboardError;
@@ -1,5 +1 @@
1
- type ErrorContainerProps = {
2
- height?: number;
3
- };
4
- export declare const useStyles: (props: ErrorContainerProps) => import("@mui/styles").ClassNameMap<"errorContainer" | "errorIcon" | "refreshButton" | "refreshIcon">;
5
- export {};
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"errorContainer" | "errorIcon" | "refreshButton" | "refreshIcon">;
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
- type DashboardNoDataProps = {
3
- height?: number;
4
- };
5
- declare const DashboardNoData: ({ height }: DashboardNoDataProps) => JSX.Element;
2
+ declare const DashboardNoData: () => JSX.Element;
6
3
  export default DashboardNoData;
@@ -1,5 +1 @@
1
- type NoDataContainer = {
2
- height?: number;
3
- };
4
- export declare const useStyles: (props: NoDataContainer) => import("@mui/styles").ClassNameMap<"icon" | "noDataContainer">;
5
- export {};
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"icon" | "noDataContainer">;
@@ -1,12 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
  import MenuItem from '@mui/material/MenuItem';
3
- interface MenuItem {
3
+ type MenuItem = {
4
4
  id: string;
5
5
  title: string;
6
6
  icon: ReactNode;
7
7
  active: boolean;
8
8
  action: () => void;
9
- }
9
+ };
10
10
  type DashboardPopupMenuProps = {
11
11
  items: MenuItem[];
12
12
  };
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menuItem" | "itemTitle" | "openIcon">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menuItemTitle" | "openIcon">;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "viewContent" | "toolbarRoot" | "dragIcon">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "dragIcon" | "viewContent" | "toolbarRoot">;
@@ -8,5 +8,8 @@ type Props = {
8
8
  onRemove?: (id: string) => void;
9
9
  children?: React.ReactNode;
10
10
  };
11
- declare const LayoutItemHeader: ({ title, onToggleFullscreen, isUpdated, isFullscreen, onRemove, onRefresh, children }: Props) => JSX.Element;
12
- export default LayoutItemHeader;
11
+ declare const _default: {
12
+ (props: Props): JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export default _default;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"title" | "toolbarRoot" | "dragIcon" | "rightMenu" | "updatedChip">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"rightMenu" | "updatedChip">;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"hidden" | "entityLabel" | "flag" | "taskItem" | "taskInfo" | "taskTitle" | "taskDetail" | "taskDetailTitle" | "taskDueDate" | "overdue">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"hidden" | "entityLabel" | "flag" | "titleContainer" | "taskItem" | "taskInfo" | "taskTitle" | "taskDetail" | "taskDetailTitle" | "taskDueDate" | "overdue">;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"iframe" | "pagination" | "viewContent" | "tasksSelector" | "tasksSelectorInput">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"iframe" | "viewContent">;
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { ActivitiesViewFacetConfig } from '../../types/ActivitiesViewFacetConfig';
3
3
  type Props = {
4
4
  config: ActivitiesViewFacetConfig;
5
- onToggleFullscreen: (id: string) => void;
6
5
  isUpdated?: boolean;
7
6
  isFullscreen: boolean;
8
7
  onRemove?: (id: string) => void;
8
+ onToggleFullscreen: (id: string) => void;
9
9
  };
10
10
  declare const _default: React.MemoExoticComponent<({ config, isUpdated, isFullscreen, onToggleFullscreen, onRemove }: Props) => JSX.Element>;
11
11
  export default _default;
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { FilteredEntitiesFacetConfig } from '../../types/FilteredEntitiesFacetConfig';
3
3
  type Props = {
4
4
  config: FilteredEntitiesFacetConfig;
5
- onToggleFullscreen: (id: string) => void;
6
5
  isUpdated?: boolean;
7
6
  isFullscreen: boolean;
8
7
  onRemove?: (id: string) => void;
8
+ onToggleFullscreen: (id: string) => void;
9
9
  };
10
10
  declare const _default: React.MemoExoticComponent<({ config, onToggleFullscreen, isUpdated, isFullscreen, onRemove }: Props) => JSX.Element>;
11
11
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export declare const DEFAULT_ROWS_PER_PAGE: number;
2
- export declare const getRowsPerPageOptions: (defaultRowsPerPage: any) => number[];
2
+ export declare const getRowsPerPageOptions: (defaultRowsPerPage: number) => number[];
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"activityLogFilter">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "activityLogFilter" | "categorySelector" | "inboxContent">;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- type RefProps = {
3
- basicTableRef?: React.MutableRefObject<any> | null;
4
- };
5
- type Props = {
6
- count?: number;
7
- height?: number;
8
- onChangePage?: (page: number) => void;
9
- page?: number;
10
- rowsPerPageOptions?: number[];
11
- rowsPerPage?: number;
12
- onChangeRowsPerPage?: (page: number) => void;
13
- };
14
- export declare function withPagination<T>(TableComponent: React.ComponentType<T>): {
15
- (props: Props & Omit<T, keyof RefProps>): JSX.Element;
16
- displayName: string;
17
- };
18
- export {};
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import { WorkflowInboxFacetConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
4
  config: WorkflowInboxFacetConfig;
5
- onToggleFullscreen: (id: string) => void;
6
5
  isUpdated?: boolean;
7
6
  isFullscreen: boolean;
8
7
  onRemove?: (id: string) => void;
8
+ onToggleFullscreen: (id: string) => void;
9
9
  };
10
10
  declare const _default: React.MemoExoticComponent<({ config, onToggleFullscreen, isUpdated, isFullscreen, onRemove }: Props) => JSX.Element>;
11
11
  export default _default;