@reltio/dashboard 1.4.1806-hf → 1.4.1824-hf

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 (34) hide show
  1. package/bundle.js +1 -1
  2. package/package.json +4 -4
  3. package/types/components/DashboardLayout/DashboardLayout.d.ts +2 -2
  4. package/types/components/DashboardLayoutItem/DashboardLayoutItem.d.ts +2 -2
  5. package/types/components/DashboardLayoutPanel/DashboardLayoutPanel.d.ts +2 -2
  6. package/types/components/InternalDashboardScreen/InternalDashboardScreen.d.ts +10 -0
  7. package/types/{perspective → components/InternalDashboardScreen}/helpers.d.ts +1 -1
  8. package/types/{perspective → components/InternalDashboardScreen}/styles.d.ts +1 -1
  9. package/types/hooks/useFacetRequest.d.ts +2 -2
  10. package/types/hooks/useFilteredEntitiesRequest.d.ts +2 -2
  11. package/types/index.d.ts +11 -7
  12. package/types/services/facets.d.ts +3 -3
  13. package/types/services/filters.d.ts +5 -5
  14. package/types/types/DashboardViewWithStatus.d.ts +10 -0
  15. package/types/types/index.d.ts +2 -7
  16. package/types/views/ViewsFactory.d.ts +4 -9
  17. package/types/views/chartBased/DashboardFacet.d.ts +2 -2
  18. package/types/views/chartBased/EntitiesByTypeViewFacet.d.ts +2 -2
  19. package/types/views/chartBased/ProfileStatsFacet.d.ts +2 -2
  20. package/types/views/custom/CustomActionViewFacet.d.ts +2 -2
  21. package/types/views/ria/RiaFactory.d.ts +2 -2
  22. package/types/views/ria/SearchResult/SearchResult.d.ts +2 -2
  23. package/types/views/tableBased/ActivitiesViewFacet.d.ts +2 -2
  24. package/types/views/tableBased/FilteredEntitiesViewFacet.d.ts +2 -2
  25. package/types/views/tableBased/FilteredSavedSearchesFacet.d.ts +2 -2
  26. package/types/views/tableBased/NotificationInboxFacet.d.ts +2 -2
  27. package/types/perspective/DashboardPerspectiveView.d.ts +0 -11
  28. package/types/perspective/index.d.ts +0 -11
  29. package/types/types/ActivitiesViewFacetConfig.d.ts +0 -4
  30. package/types/types/CustomActionViewFacetConfig.d.ts +0 -4
  31. package/types/types/DashboardPerspectiveConfig.d.ts +0 -10
  32. package/types/types/EntityByTypeViewFacetConfig.d.ts +0 -6
  33. package/types/types/FilteredEntitiesFacetConfig.d.ts +0 -5
  34. package/types/types/FilteredSavedSearchesFacetConfig.d.ts +0 -5
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/dashboard",
3
- "version": "1.4.1806-hf",
3
+ "version": "1.4.1824-hf",
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.1806-hf",
9
- "@reltio/mdm-module": "^1.4.1806-hf",
10
- "@reltio/mdm-sdk": "^1.4.1806-hf",
8
+ "@reltio/components": "^1.4.1824-hf",
9
+ "@reltio/mdm-module": "^1.4.1762",
10
+ "@reltio/mdm-sdk": "^1.4.1752",
11
11
  "classnames": "^2.2.5",
12
12
  "object-hash": "^2.1.1",
13
13
  "prop-types": "^15.6.2",
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ReltioGridLayoutItem } from '@reltio/mdm-sdk';
3
- import { DashboardView } from '../../types';
3
+ import { DashboardViewWithStatus } from '../../types';
4
4
  type DashboardLayoutProps = {
5
- views: DashboardView[];
5
+ views: DashboardViewWithStatus[];
6
6
  layout?: ReltioGridLayoutItem[];
7
7
  onLayoutChanged: (layout: ReltioGridLayoutItem[]) => void;
8
8
  openConfigPanel?: boolean;
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ReactGridLayoutItem } from '@reltio/components';
3
- import { DashboardView } from '../../types';
3
+ import { DashboardViewWithStatus } from '../../types';
4
4
  type Props = {
5
5
  className?: string;
6
6
  isFullscreen: boolean;
7
7
  style: React.CSSProperties;
8
8
  onRemove: (id: string) => void;
9
9
  onToggleFullscreen: (id: string) => void;
10
- views: DashboardView[];
10
+ views: DashboardViewWithStatus[];
11
11
  layoutItemConfig: ReactGridLayoutItem;
12
12
  children: React.ReactNode;
13
13
  };
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ReltioGridLayoutItem } from '@reltio/mdm-sdk';
3
- import { DashboardView } from '../../types';
3
+ import { DashboardViewWithStatus } from '../../types';
4
4
  type Props = {
5
- views: DashboardView[];
5
+ views: DashboardViewWithStatus[];
6
6
  layout: ReltioGridLayoutItem[];
7
7
  onRemove: (id: string) => void;
8
8
  onAdd: (id: string) => void;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { DashboardScreenConfig } from '@reltio/mdm-sdk';
3
+ import { DashboardSavedState } from '../../types/DashboardSavedState';
4
+ type Props = {
5
+ config: DashboardScreenConfig;
6
+ saveState: (state: DashboardSavedState) => void;
7
+ getSavedState: () => Promise<DashboardSavedState>;
8
+ };
9
+ declare const _default: React.MemoExoticComponent<({ config: dashboardConfig, saveState, getSavedState }: Props) => JSX.Element>;
10
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { ViewStatus } from '../types';
1
+ import { ViewStatus } from '../../types';
2
2
  export declare const createReltioLayoutItem: (id: string) => {
3
3
  x: number;
4
4
  y: number;
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"perspectiveView">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"view">;
@@ -1,7 +1,7 @@
1
- import { DashboardConfigFilter } from '@reltio/mdm-sdk';
1
+ import { DashboardViewFilter } from '@reltio/mdm-sdk';
2
2
  import { ChartData, RequestStates } from '@reltio/components';
3
3
  type Props = {
4
- filters: DashboardConfigFilter[];
4
+ filters: DashboardViewFilter[];
5
5
  attributeUri: string;
6
6
  pageSize: number;
7
7
  orderType?: string;
@@ -1,8 +1,8 @@
1
1
  import { RequestStates } from '@reltio/components';
2
- import { DashboardConfigFilter } from '@reltio/mdm-sdk';
2
+ import { DashboardViewFilter } from '@reltio/mdm-sdk';
3
3
  import { EntityData } from '../types/EntityData';
4
4
  type Props = {
5
- filters: DashboardConfigFilter[];
5
+ filters: DashboardViewFilter[];
6
6
  offset: number;
7
7
  max: number;
8
8
  };
package/types/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
- import { DashboardPerspective } from './perspective';
2
- import { DashboardLayoutItemView, DashboardLayoutItemHeader, DashboardLayoutItemContent, DashboardLinearLoader, DashboardNoData, DashboardError, StatsChart, DashboardPopupMenu } from './components';
3
- import ViewsFactory from './views/ViewsFactory';
4
- import RiaFactory from './views/ria/RiaFactory';
5
- import { useFacetRequest } from './hooks/useFacetRequest';
6
- import { createReltioLayoutItem } from './perspective/helpers';
7
- export { createReltioLayoutItem, DashboardPerspective, DashboardLayoutItemView, DashboardLayoutItemHeader, DashboardLayoutItemContent, DashboardLinearLoader, DashboardNoData, DashboardError, ViewsFactory, StatsChart, useFacetRequest, DashboardPopupMenu, RiaFactory };
1
+ /// <reference types="react" />
2
+ import { DashboardScreenConfig } from '@reltio/mdm-sdk';
3
+ import { DashboardSavedState } from './types/DashboardSavedState';
4
+ type Props = {
5
+ config: DashboardScreenConfig;
6
+ onResize?: (width: number, height: number) => void;
7
+ saveState: (state: DashboardSavedState) => void;
8
+ getSavedState: (clb: (state: DashboardSavedState) => void) => void;
9
+ };
10
+ declare const DashboardScreen: ({ config, onResize, saveState, getSavedState }: Props) => JSX.Element;
11
+ export default DashboardScreen;
@@ -1,8 +1,8 @@
1
- import { ActivityFilter, AttributeType, DashboardConfigFilter, Metadata } from '@reltio/mdm-sdk';
1
+ import { ActivityFilter, AttributeType, DashboardViewFilter, Metadata } from '@reltio/mdm-sdk';
2
2
  import { ChartData } from '@reltio/components';
3
3
  type FacetsRequest = {
4
4
  attribute: string;
5
- filters: DashboardConfigFilter[];
5
+ filters: DashboardViewFilter[];
6
6
  globalFilter?: string;
7
7
  searchByOv?: boolean;
8
8
  activityFilter?: ActivityFilter;
@@ -14,7 +14,7 @@ export declare const requestOtherValues: any;
14
14
  export declare const localizeFacetValues: any;
15
15
  export declare const resolveFacetLabels: (metadata: Metadata, attrType: AttributeType, signal?: AbortSignal) => any;
16
16
  export declare const getFacetFieldName: any;
17
- export declare const getFiltersForFacet: (attributeUri: string, filters?: DashboardConfigFilter[]) => DashboardConfigFilter[];
17
+ export declare const getFiltersForFacet: (attributeUri: string, filters?: DashboardViewFilter[]) => DashboardViewFilter[];
18
18
  export declare const getFiltersForFacetItem: any;
19
19
  export declare const facetFiltersToSearchState: any;
20
20
  export {};
@@ -1,8 +1,8 @@
1
- import { DashboardConfigFilter, SearchFilter } from '@reltio/mdm-sdk';
1
+ import { DashboardViewFilter, SearchFilter } from '@reltio/mdm-sdk';
2
2
  export declare const configFilterToSearchFilter: any;
3
- export declare const buildQuery: (filters: DashboardConfigFilter[], globalFilter?: string, searchByOv?: boolean, activityFilter?: string) => string;
3
+ export declare const buildQuery: (filters: DashboardViewFilter[], globalFilter?: string, searchByOv?: boolean, activityFilter?: string) => string;
4
4
  export declare const createNotEqualFilter: any;
5
- export declare const convertSearchFilterToDashboardConfigFilter: (searchFilter: SearchFilter) => DashboardConfigFilter;
5
+ export declare const convertSearchFilterToDashboardConfigFilter: (searchFilter: SearchFilter) => DashboardViewFilter;
6
6
  export declare const createEntityTypeFilter: (entityTypeUri: string) => {
7
7
  filter: string;
8
8
  fieldName: string;
@@ -10,5 +10,5 @@ export declare const createEntityTypeFilter: (entityTypeUri: string) => {
10
10
  };
11
11
  export declare const createFacetItemFilter: any;
12
12
  export declare const convertFilterToFacetState: any;
13
- export declare const isSomeEntityTypeFilter: ({ filter, fieldName }: DashboardConfigFilter) => boolean;
14
- export declare const isEntityTypeFilter: ({ filter, fieldName, values }: DashboardConfigFilter, entityTypeUri: string) => boolean;
13
+ export declare const isSomeEntityTypeFilter: ({ filter, fieldName }: DashboardViewFilter) => boolean;
14
+ export declare const isEntityTypeFilter: ({ filter, fieldName, values }: DashboardViewFilter, entityTypeUri: string) => boolean;
@@ -0,0 +1,10 @@
1
+ import { DashboardView } from '@reltio/mdm-sdk';
2
+ export declare enum ViewStatus {
3
+ UPDATED = "updated",
4
+ NEW = "new",
5
+ PERSISTED = "persisted"
6
+ }
7
+ export type DashboardViewWithStatus = {
8
+ config: DashboardView;
9
+ status: ViewStatus;
10
+ };
@@ -1,13 +1,8 @@
1
- export type { CustomActionViewFacetConfig } from './CustomActionViewFacetConfig';
2
- export type { ActivitiesViewFacetConfig } from './ActivitiesViewFacetConfig';
3
- export type { DashboardView } from './DashboardPerspectiveConfig';
1
+ export type { DashboardViewWithStatus } from './DashboardViewWithStatus';
4
2
  export type { DashboardSavedState } from './DashboardSavedState';
5
- export type { EntityByTypeViewFacetConfig } from './EntityByTypeViewFacetConfig';
6
3
  export type { EntityData } from './EntityData';
7
- export type { FilteredEntitiesFacetConfig } from './FilteredEntitiesFacetConfig';
8
- export type { FilteredSavedSearchesFacetConfig } from './FilteredSavedSearchesFacetConfig';
9
4
  export type { PeriodStep } from './PeriodStep';
10
5
  export type { SavedSearchData } from './SavedSearchData';
11
6
  export type { StatsData } from './StatsData';
12
7
  export type { EnrichedWorkflowTaskData, WorkflowTaskObjectData, WorkflowTasksCategories } from './WorkflowTasks';
13
- export { ViewStatus } from './DashboardPerspectiveConfig';
8
+ export { ViewStatus } from './DashboardViewWithStatus';
@@ -1,19 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { DashboardFacetConfig, DashboardView, DashboardViewTypes } from '@reltio/mdm-sdk';
3
- import { ActivitiesViewFacetConfig, CustomActionViewFacetConfig, EntityByTypeViewFacetConfig, FilteredSavedSearchesFacetConfig, FilteredEntitiesFacetConfig } from '../types';
2
+ import { ChartType, DashboardView } from '@reltio/mdm-sdk';
4
3
  type Props = {
5
- config: ActivitiesViewFacetConfig | CustomActionViewFacetConfig | DashboardFacetConfig | EntityByTypeViewFacetConfig | FilteredEntitiesFacetConfig | FilteredSavedSearchesFacetConfig | DashboardView;
6
- type: string;
4
+ config: DashboardView;
7
5
  onToggleFullscreen: (id: string) => void;
8
6
  isUpdated?: boolean;
9
7
  isFullscreen: boolean;
10
8
  onRemove?: (id: string) => void;
11
9
  };
12
10
  declare class ViewsFactory {
13
- static ViewTypes: typeof DashboardViewTypes;
14
- static getComponent: ({ config, type, isUpdated, isFullscreen, onToggleFullscreen, onRemove }: Props) => JSX.Element;
15
- static getChartType: (view: DashboardView & {
16
- chartType?: string;
17
- }) => string;
11
+ static getComponent: ({ config, isUpdated, isFullscreen, onToggleFullscreen, onRemove }: Props) => JSX.Element;
12
+ static getChartType: (view: DashboardView) => ChartType;
18
13
  }
19
14
  export default ViewsFactory;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { DashboardFacetConfig } from '@reltio/mdm-sdk';
2
+ import { ChartViewConfig } from '@reltio/mdm-sdk';
3
3
  type DashboardFacetProps = {
4
- config: DashboardFacetConfig;
4
+ config: ChartViewConfig;
5
5
  onToggleFullscreen: (id: string) => void;
6
6
  isUpdated?: boolean;
7
7
  isFullscreen: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { EntityByTypeViewFacetConfig } from '../../types/EntityByTypeViewFacetConfig';
2
+ import { EntityByTypeViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: EntityByTypeViewFacetConfig;
4
+ config: EntityByTypeViewConfig;
5
5
  onToggleFullscreen: (id: string) => void;
6
6
  isUpdated?: boolean;
7
7
  isFullscreen: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { DashboardView } from '@reltio/mdm-sdk';
2
+ import { ProfileStatsViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: DashboardView;
4
+ config: ProfileStatsViewConfig;
5
5
  onToggleFullscreen: (id: string) => void;
6
6
  isUpdated?: boolean;
7
7
  isFullscreen: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { CustomActionViewFacetConfig } from '../../types/CustomActionViewFacetConfig';
2
+ import { CustomViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: CustomActionViewFacetConfig;
4
+ config: CustomViewConfig;
5
5
  onToggleFullscreen: (id: string) => void;
6
6
  isUpdated?: boolean;
7
7
  isFullscreen: boolean;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { FilteredEntitiesViewConfig } from '@reltio/mdm-sdk';
2
3
  import { RiaWidgets } from './RiaWidgets';
3
- import { FilteredEntitiesFacetConfig } from '../../types';
4
4
  type Props = {
5
- config: FilteredEntitiesFacetConfig;
5
+ config: FilteredEntitiesViewConfig;
6
6
  type: string;
7
7
  };
8
8
  declare class RiaFactory {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { FilteredEntitiesFacetConfig } from '../../../types/FilteredEntitiesFacetConfig';
2
+ import { FilteredEntitiesViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: FilteredEntitiesFacetConfig;
4
+ config: FilteredEntitiesViewConfig;
5
5
  };
6
6
  declare const _default: React.MemoExoticComponent<({ config }: Props) => JSX.Element>;
7
7
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { ActivitiesViewFacetConfig } from '../../types/ActivitiesViewFacetConfig';
2
+ import { ActivitiesViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: ActivitiesViewFacetConfig;
4
+ config: ActivitiesViewConfig;
5
5
  isUpdated?: boolean;
6
6
  isFullscreen: boolean;
7
7
  onRemove?: (id: string) => void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { FilteredEntitiesFacetConfig } from '../../types/FilteredEntitiesFacetConfig';
2
+ import { FilteredEntitiesViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: FilteredEntitiesFacetConfig;
4
+ config: FilteredEntitiesViewConfig;
5
5
  isUpdated?: boolean;
6
6
  isFullscreen: boolean;
7
7
  onRemove?: (id: string) => void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { FilteredSavedSearchesFacetConfig } from '../../types/FilteredSavedSearchesFacetConfig';
2
+ import { FilteredSavedSearchesViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: FilteredSavedSearchesFacetConfig;
4
+ config: FilteredSavedSearchesViewConfig;
5
5
  onToggleFullscreen: (id: string) => void;
6
6
  isUpdated?: boolean;
7
7
  isFullscreen: boolean;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { WorkflowInboxFacetConfig } from '@reltio/mdm-sdk';
2
+ import { NotificationsInboxViewConfig } from '@reltio/mdm-sdk';
3
3
  type Props = {
4
- config: WorkflowInboxFacetConfig;
4
+ config: NotificationsInboxViewConfig;
5
5
  isUpdated?: boolean;
6
6
  isFullscreen: boolean;
7
7
  onRemove?: (id: string) => void;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { DashboardPerspectiveConfig } from '@reltio/mdm-sdk';
3
- import { DashboardSavedState } from '../types/DashboardSavedState';
4
- type DashboardPerspectiveView = {
5
- config: DashboardPerspectiveConfig;
6
- saveState: (state: DashboardSavedState) => void;
7
- getSavedState: () => Promise<DashboardSavedState>;
8
- };
9
- declare const DashboardPerspectiveView: ({ config: dashboardConfig, saveState, getSavedState }: DashboardPerspectiveView) => JSX.Element;
10
- declare const _default: React.MemoExoticComponent<({ config: dashboardConfig, saveState, getSavedState }: DashboardPerspectiveView) => JSX.Element>;
11
- export default _default;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { DashboardPerspectiveConfig } from '@reltio/mdm-sdk';
3
- import { DashboardSavedState } from '../types/DashboardSavedState';
4
- type Props = {
5
- config: DashboardPerspectiveConfig;
6
- onResize?: (width: number, height: number) => void;
7
- saveState: (state: DashboardSavedState) => void;
8
- getSavedState: (clb: (state: DashboardSavedState) => void) => void;
9
- };
10
- declare const DashboardPerspective: ({ config, onResize, saveState, getSavedState }: Props) => JSX.Element;
11
- export { DashboardPerspective };
@@ -1,4 +0,0 @@
1
- import { DashboardView } from '@reltio/mdm-sdk';
2
- export type ActivitiesViewFacetConfig = DashboardView & {
3
- exportTypes?: string[];
4
- };
@@ -1,4 +0,0 @@
1
- import { DashboardView } from '@reltio/mdm-sdk';
2
- export type CustomActionViewFacetConfig = DashboardView & {
3
- url: string;
4
- };
@@ -1,10 +0,0 @@
1
- import { DashboardView as DashboardViewConfig } from '@reltio/mdm-sdk';
2
- export declare enum ViewStatus {
3
- UPDATED = "updated",
4
- NEW = "new",
5
- PERSISTED = "persisted"
6
- }
7
- export type DashboardView = {
8
- config: DashboardViewConfig;
9
- status: ViewStatus;
10
- };
@@ -1,6 +0,0 @@
1
- import { DashboardView } from '@reltio/mdm-sdk';
2
- export type EntityByTypeViewFacetConfig = DashboardView & {
3
- orderType?: string;
4
- hideEmpty: boolean;
5
- inheritChildren: boolean;
6
- };
@@ -1,5 +0,0 @@
1
- import { DashboardConfigFilter, DashboardView } from '@reltio/mdm-sdk';
2
- export type FilteredEntitiesFacetConfig = DashboardView & {
3
- filters?: DashboardConfigFilter[];
4
- max?: number;
5
- };
@@ -1,5 +0,0 @@
1
- import { DashboardView, SavedSearchesOptions } from '@reltio/mdm-sdk';
2
- export type FilteredSavedSearchesFacetConfig = DashboardView & {
3
- options?: SavedSearchesOptions;
4
- max?: number;
5
- };