@reltio/components 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 (85) hide show
  1. package/cjs/components/AttributesFiltersBuilder/helpers.d.ts +1 -1
  2. package/cjs/components/BasicTableView/BasicTablePagination/BasicTablePagination.d.ts +1 -1
  3. package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  4. package/cjs/components/RelationEditor/RelationEditor.js +24 -6
  5. package/cjs/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -3
  6. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +2 -4
  7. package/cjs/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -3
  8. package/cjs/components/charts/BarChart/BarChart.d.ts +1 -4
  9. package/cjs/components/charts/BarChart/getBarChartSettings.d.ts +1 -1
  10. package/cjs/components/charts/BubbleChart/BubbleChart.d.ts +5 -19
  11. package/cjs/components/charts/ChartsFactory.d.ts +3 -1
  12. package/cjs/components/charts/ChartsFactory.js +12 -13
  13. package/cjs/components/charts/CloudChart/CloudChart.d.ts +5 -11
  14. package/cjs/components/charts/LineChart/LineChart.d.ts +1 -4
  15. package/cjs/components/charts/LineChart/getLineChartSettings.d.ts +1 -1
  16. package/cjs/components/charts/MapChart/MapChart.d.ts +5 -17
  17. package/cjs/components/charts/MapChart/MapChart.js +2 -2
  18. package/cjs/components/charts/PieChart/PieChart.d.ts +6 -18
  19. package/cjs/components/charts/TableWithBars/TableWithBars.d.ts +2 -6
  20. package/cjs/components/charts/TreeChart/TreeChart.d.ts +2 -2
  21. package/cjs/components/charts/types/charts.d.ts +51 -0
  22. package/cjs/components/charts/types/index.d.ts +1 -5
  23. package/cjs/components/crosswalks/hooks/useAttributeActions.js +7 -8
  24. package/cjs/components/history/HistoryTree/styles.d.ts +1 -1
  25. package/cjs/components/history/hooks/useHistoryDiff.js +4 -0
  26. package/cjs/components/history/hooks/useHistorySlice.js +8 -0
  27. package/cjs/contexts/ConfigPermissionsContext/index.d.ts +2 -2
  28. package/cjs/contexts/MdmModuleContext/context.d.ts +7 -5
  29. package/cjs/contexts/MdmModuleContext/hooks.d.ts +2 -1
  30. package/cjs/hooks/usePivotingDataLoader/usePivotingDataLoader.d.ts +2 -4
  31. package/cjs/hooks/usePivotingDataLoader/usePivotingDataLoader.js +5 -5
  32. package/cjs/hooks/useRelationsLoader.d.ts +1 -1
  33. package/esm/components/AttributesFiltersBuilder/helpers.d.ts +1 -1
  34. package/esm/components/BasicTableView/BasicTablePagination/BasicTablePagination.d.ts +1 -1
  35. package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
  36. package/esm/components/RelationEditor/RelationEditor.js +27 -9
  37. package/esm/components/attributes/PivotingAttributes/PivotingTooltip.js +4 -3
  38. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.d.ts +2 -4
  39. package/esm/components/attributes/PivotingAttributes/PivotingTooltipContent.js +3 -3
  40. package/esm/components/charts/BarChart/BarChart.d.ts +1 -4
  41. package/esm/components/charts/BarChart/getBarChartSettings.d.ts +1 -1
  42. package/esm/components/charts/BubbleChart/BubbleChart.d.ts +5 -19
  43. package/esm/components/charts/ChartsFactory.d.ts +3 -1
  44. package/esm/components/charts/ChartsFactory.js +13 -14
  45. package/esm/components/charts/CloudChart/CloudChart.d.ts +5 -11
  46. package/esm/components/charts/LineChart/LineChart.d.ts +1 -4
  47. package/esm/components/charts/LineChart/getLineChartSettings.d.ts +1 -1
  48. package/esm/components/charts/MapChart/MapChart.d.ts +5 -17
  49. package/esm/components/charts/MapChart/MapChart.js +2 -2
  50. package/esm/components/charts/PieChart/PieChart.d.ts +6 -18
  51. package/esm/components/charts/TableWithBars/TableWithBars.d.ts +2 -6
  52. package/esm/components/charts/TreeChart/TreeChart.d.ts +2 -2
  53. package/esm/components/charts/types/charts.d.ts +51 -0
  54. package/esm/components/charts/types/index.d.ts +1 -5
  55. package/esm/components/crosswalks/hooks/useAttributeActions.js +9 -10
  56. package/esm/components/history/HistoryTree/styles.d.ts +1 -1
  57. package/esm/components/history/hooks/useHistoryDiff.js +4 -0
  58. package/esm/components/history/hooks/useHistorySlice.js +10 -2
  59. package/esm/contexts/ConfigPermissionsContext/index.d.ts +2 -2
  60. package/esm/contexts/MdmModuleContext/context.d.ts +7 -5
  61. package/esm/contexts/MdmModuleContext/hooks.d.ts +2 -1
  62. package/esm/hooks/usePivotingDataLoader/usePivotingDataLoader.d.ts +2 -4
  63. package/esm/hooks/usePivotingDataLoader/usePivotingDataLoader.js +5 -5
  64. package/esm/hooks/useRelationsLoader.d.ts +1 -1
  65. package/package.json +2 -2
  66. package/cjs/components/charts/types/BarChartOptions.d.ts +0 -7
  67. package/cjs/components/charts/types/ChartData.d.ts +0 -7
  68. package/cjs/components/charts/types/ChartData.js +0 -2
  69. package/cjs/components/charts/types/ChartProps.d.ts +0 -7
  70. package/cjs/components/charts/types/ChartProps.js +0 -2
  71. package/cjs/components/charts/types/LineChartOptions.d.ts +0 -6
  72. package/cjs/components/charts/types/LineChartOptions.js +0 -2
  73. package/cjs/components/charts/types/TableWithBarsOptions.d.ts +0 -4
  74. package/cjs/components/charts/types/TableWithBarsOptions.js +0 -2
  75. package/esm/components/charts/types/BarChartOptions.d.ts +0 -7
  76. package/esm/components/charts/types/ChartData.d.ts +0 -7
  77. package/esm/components/charts/types/ChartData.js +0 -1
  78. package/esm/components/charts/types/ChartProps.d.ts +0 -7
  79. package/esm/components/charts/types/ChartProps.js +0 -1
  80. package/esm/components/charts/types/LineChartOptions.d.ts +0 -6
  81. package/esm/components/charts/types/LineChartOptions.js +0 -1
  82. package/esm/components/charts/types/TableWithBarsOptions.d.ts +0 -4
  83. package/esm/components/charts/types/TableWithBarsOptions.js +0 -1
  84. /package/cjs/components/charts/types/{BarChartOptions.js → charts.js} +0 -0
  85. /package/esm/components/charts/types/{BarChartOptions.js → charts.js} +0 -0
@@ -35,8 +35,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
35
35
  }
36
36
  };
37
37
  import { useCallback } from 'react';
38
- import { createAttribute, deleteAttribute, getReferencedRelationFromAttrValue, ignoreAttribute, isComplexAttribute, isImage, isLookupAttrType, isReference, pinAttribute, removeRelation, updateAttribute } from '@reltio/mdm-sdk';
39
- import { andThen, pipe, prop } from 'ramda';
38
+ import { createAttribute, entityCumulativeUpdate, getBaseUri, getReferencedRelationFromAttrValue, ignoreAttribute, isComplexAttribute, isImage, isLookupAttrType, isReference, pinAttribute, removeRelation, updateAttribute } from '@reltio/mdm-sdk';
39
+ import { andThen, pipe, prop, defaultTo, map } from 'ramda';
40
40
  import { noop } from '../../../core';
41
41
  export var useAttributeActions = function (_a) {
42
42
  var _b = _a.onSuccess, onSuccess = _b === void 0 ? noop : _b, _c = _a.onError, onError = _c === void 0 ? noop : _c, _d = _a.onLoad, onLoad = _d === void 0 ? noop : _d;
@@ -59,15 +59,14 @@ export var useAttributeActions = function (_a) {
59
59
  var attributeValue = _a.attributeValue, attributeType = _a.attributeType, crosswalks = _a.crosswalks;
60
60
  var action = isReference(attributeType)
61
61
  ? pipe(getReferencedRelationFromAttrValue, prop('objectURI'), removeRelation, handleErrorResponse)(attributeValue)
62
- : Promise.all((crosswalks || []).map(function (_a) {
62
+ : pipe(defaultTo([]), map(function (_a) {
63
63
  var type = _a.type, value = _a.value, sourceTable = _a.sourceTable;
64
- return handleErrorResponse(deleteAttribute({
65
- attributeUri: attributeValue.uri,
66
- sourceUri: type,
67
- crosswalkValue: value,
68
- crosswalkSourceTable: sourceTable
69
- }));
70
- }));
64
+ return ({
65
+ type: 'DELETE_ATTRIBUTE',
66
+ uri: attributeValue.uri,
67
+ crosswalk: sourceTable ? { type: type, value: value, sourceTable: sourceTable } : { type: type, value: value }
68
+ });
69
+ }), function (diff) { return ({ uri: getBaseUri(attributeValue.uri), diff: diff }); }, entityCumulativeUpdate, handleErrorResponse)(crosswalks);
71
70
  handleAction(action);
72
71
  }, [handleAction, handleErrorResponse]);
73
72
  var pinAttributeAction = useCallback(function (_a) {
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"historyTree" | "graph" | "history" | "buttonContainer" | "shadow">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"graph" | "historyTree" | "history" | "buttonContainer" | "shadow">;
@@ -22,6 +22,7 @@ var prepareHistorySlice = function (historySlice) {
22
22
  };
23
23
  export var useHistoryDiff = function () {
24
24
  var setHistoryDiff = useMdmAction('setHistoryDiff');
25
+ var clearHistoryDiff = useMdmAction('clearHistoryDiff');
25
26
  var historySlice = useMdmHistorySlice();
26
27
  var historyDiff = useMdmHistoryDiff();
27
28
  var historyMode = useMdmHistoryMode();
@@ -33,6 +34,9 @@ export var useHistoryDiff = function () {
33
34
  var historyDiff_1 = historyManager.computeEntityHistoryDiff(prepareHistorySlice(historyMode === HistoryMode.Current ? entity : bEntity), prepareHistorySlice(aEntity));
34
35
  setHistoryDiff(historyDiff_1);
35
36
  }
37
+ else {
38
+ clearHistoryDiff();
39
+ }
36
40
  }, [historySlice, historyMode, setHistoryDiff, entity]);
37
41
  return historyDiff || defaultHistoryDiff;
38
42
  };
@@ -1,15 +1,23 @@
1
1
  import { useState, useEffect } from 'react';
2
- import { getEntityTimeSlice } from '@reltio/mdm-sdk';
2
+ import { getEntityTimeSlice, isEditableMode } from '@reltio/mdm-sdk';
3
3
  import { useSafePromise } from '../../../hooks';
4
- import { useMdmAction, useMdmHistorySlice } from '../../../contexts';
4
+ import { useMdmAction, useMdmHistorySlice, useMdmMode } from '../../../contexts';
5
5
  export var useHistorySlice = function (_a) {
6
6
  var entity = _a.entity, historyEvent = _a.historyEvent;
7
7
  var _b = useState(false), isLoading = _b[0], setIsLoading = _b[1];
8
8
  var setHistorySlice = useMdmAction('setHistorySlice');
9
+ var clearHistoryEvent = useMdmAction('clearHistoryEvent');
9
10
  var historySlice = useMdmHistorySlice();
10
11
  var safePromise = useSafePromise();
12
+ var mode = useMdmMode();
11
13
  var _c = historyEvent || {}, aStamp = _c.aStamp, bStamp = _c.bStamp, overrideUri = _c.overrideUri;
12
14
  var entityUri = overrideUri || (entity === null || entity === void 0 ? void 0 : entity.uri);
15
+ useEffect(function () {
16
+ if (isEditableMode(mode) && entityUri) {
17
+ safePromise(Promise.resolve());
18
+ clearHistoryEvent();
19
+ }
20
+ }, [mode, entityUri]);
13
21
  useEffect(function () {
14
22
  if (historyEvent && entityUri) {
15
23
  setIsLoading(true);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProfileViewConfig } from '@reltio/mdm-sdk';
2
+ import { ProfileView } from '@reltio/mdm-sdk';
3
3
  type ConfigPermissionsContextValue = {
4
4
  canCreate: boolean;
5
5
  canUpdate: boolean;
@@ -8,7 +8,7 @@ type ConfigPermissionsContextValue = {
8
8
  declare const ConfigPermissionsContext: React.Context<ConfigPermissionsContextValue>;
9
9
  type Props = {
10
10
  children: React.ReactNode;
11
- view?: ProfileViewConfig;
11
+ view?: ProfileView;
12
12
  };
13
13
  declare const ConfigPermissionsContextProvider: ({ children, view }: Props) => JSX.Element;
14
14
  declare const useAttributeValueConfigPermissions: (attributeValueUri: string) => {
@@ -1,4 +1,4 @@
1
- import { Metadata, SearchState, AttributesPresentation, Entity, Mode, AttributeType, AttributeError, ImageAttributeValue, SortingStrategy, DependentLookupsConfig, PivotingValue, PivotingAttribute, DataTenant, HistoryDiff, ImageAttributeFieldsOrder, Connection, User, SearchNavigationData, SearchProviderData, Lookups, HistoryMode, HistorySlice, HistoryEvent, RequestNextPageOfAttributeValuesPayload, LookupsForTypeResolvedPayload, RelationsLoadedPayload, CompactRelationType, AddAttributesPayload, ModifyAttributePayload, RemoveAttributePayload, RelationsState, DependentLookupsState, ActivityFilter, SearchOptions, GlobalFilter, LayoutConfig, ProfileConfigItem } from '@reltio/mdm-sdk';
1
+ import { Metadata, SearchState, AttributesPresentation, Entity, Mode, AttributeType, AttributeError, ImageAttributeValue, SortingStrategy, DependentLookupsConfig, PivotingValue, PivotingAttribute, DataTenant, HistoryDiff, ImageAttributeFieldsOrder, Connection, User, SearchNavigationData, SearchProviderData, Lookups, HistoryMode, HistorySlice, HistoryEvent, RequestNextPageOfAttributeValuesPayload, LookupsForTypeResolvedPayload, RelationsLoadedPayload, CompactRelationType, AddAttributesPayload, ModifyAttributePayload, RemoveAttributePayload, RelationsState, DependentLookupsState, ActivityFilter, SearchOptions, GlobalFilter, Layout, Profile } from '@reltio/mdm-sdk';
2
2
  import { AnyAction } from '../../types';
3
3
  export type MdmModuleValuesContextProps = Partial<{
4
4
  autoCloseInterval: number;
@@ -51,8 +51,8 @@ export type MdmModuleValuesContextProps = Partial<{
51
51
  searchProviderData: SearchProviderData;
52
52
  isWorkflowEnabled: boolean;
53
53
  isCollaborationEnabled: boolean;
54
- uiConfigLayout: LayoutConfig;
55
- uiConfigProfile: ProfileConfigItem[];
54
+ uiConfigLayout: Layout;
55
+ uiConfigProfile: Profile;
56
56
  }>;
57
57
  export type MdmModuleActionsContextProps = Partial<{
58
58
  openSearch: (payload: SearchState) => void;
@@ -93,6 +93,7 @@ export type MdmModuleActionsContextProps = Partial<{
93
93
  modeUpdated: (payload: Mode) => void;
94
94
  setHistoryEvent: (payload: HistoryEvent) => void;
95
95
  clearHistoryEvent: () => void;
96
+ clearHistoryDiff: () => void;
96
97
  setHistoryDiff: (payload: HistoryDiff) => void;
97
98
  setHistorySlice: (payload: HistorySlice) => void;
98
99
  updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
@@ -158,6 +159,7 @@ export declare const MdmModuleActionsContext: import("@fluentui/react-context-se
158
159
  modeUpdated: (payload: Mode) => void;
159
160
  setHistoryEvent: (payload: HistoryEvent) => void;
160
161
  clearHistoryEvent: () => void;
162
+ clearHistoryDiff: () => void;
161
163
  setHistoryDiff: (payload: HistoryDiff) => void;
162
164
  setHistorySlice: (payload: HistorySlice) => void;
163
165
  updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
@@ -230,8 +232,8 @@ export declare const MdmModuleValuesContext: import("@fluentui/react-context-sel
230
232
  searchProviderData: SearchProviderData;
231
233
  isWorkflowEnabled: boolean;
232
234
  isCollaborationEnabled: boolean;
233
- uiConfigLayout: LayoutConfig;
234
- uiConfigProfile: ProfileConfigItem[];
235
+ uiConfigLayout: Layout;
236
+ uiConfigProfile: Profile;
235
237
  }>>;
236
238
  export declare const MdmModuleListenersContext: import("@fluentui/react-context-selector").Context<Partial<{
237
239
  expandInvalidRelatonsListener: (callback: () => void) => (action: any) => void;
@@ -70,7 +70,7 @@ export declare const useMdmDependentLookupEditorContext: (attributeValue: Simple
70
70
  };
71
71
  export declare const useMdmGlobalSearchRequestOptions: (omittingFields?: string[]) => import("@reltio/mdm-sdk").GlobalSearchRequestOptions;
72
72
  export declare const useMdmAuthoringItemsByEntityType: (entityTypeUri: string) => import("@reltio/mdm-sdk").AuthoringItem[];
73
- export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent" | "openConsoleApp" | "addAttributes" | "modifyAttribute" | "removeAttribute" | "entityDeleted" | "entityCreated" | "errorDeactivated" | "requestNextPageOfAttributeValues" | "openEntity" | "setDefaultProfilePicForModifiedEntity" | "setDefaultProfilePicForEntity" | "dependentLookupsEditorTouched" | "openPivotingPerspective" | "lookupsLoaded" | "lookupsForTypeResolved" | "errorSet" | "setHistoryMode" | "modeUpdated" | "setHistoryEvent" | "clearHistoryEvent" | "setHistoryDiff" | "setHistorySlice" | "updateSearchNavigationDataFields" | "openPerspective" | "entityDeletionFinished" | "loadEntity" | "updateSearchNavigationDataOnMerge" | "lookupsListResolved" | "relationsLoaded" | "setInitialInfo" | "setRelationType" | "closeRelationEditor" | "openRelationEditor" | "setRelationEntity" | "errorsSet" | "addRelation" | "editRelation">(action: T) => Partial<{
73
+ export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent" | "openConsoleApp" | "addAttributes" | "modifyAttribute" | "removeAttribute" | "entityDeleted" | "entityCreated" | "errorDeactivated" | "requestNextPageOfAttributeValues" | "openEntity" | "setDefaultProfilePicForModifiedEntity" | "setDefaultProfilePicForEntity" | "dependentLookupsEditorTouched" | "openPivotingPerspective" | "lookupsLoaded" | "lookupsForTypeResolved" | "errorSet" | "setHistoryMode" | "modeUpdated" | "setHistoryEvent" | "clearHistoryEvent" | "clearHistoryDiff" | "setHistoryDiff" | "setHistorySlice" | "updateSearchNavigationDataFields" | "openPerspective" | "entityDeletionFinished" | "loadEntity" | "updateSearchNavigationDataOnMerge" | "lookupsListResolved" | "relationsLoaded" | "setInitialInfo" | "setRelationType" | "closeRelationEditor" | "openRelationEditor" | "setRelationEntity" | "errorsSet" | "addRelation" | "editRelation">(action: T) => Partial<{
74
74
  openSearch: (payload: import("@reltio/mdm-sdk").SearchState) => void;
75
75
  openHistoryEvent: (payload: {
76
76
  entityUri: string;
@@ -109,6 +109,7 @@ export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent"
109
109
  modeUpdated: (payload: import("@reltio/mdm-sdk").Mode) => void;
110
110
  setHistoryEvent: (payload: import("@reltio/mdm-sdk").HistoryEvent) => void;
111
111
  clearHistoryEvent: () => void;
112
+ clearHistoryDiff: () => void;
112
113
  setHistoryDiff: (payload: import("@reltio/mdm-sdk").HistoryDiff) => void;
113
114
  setHistorySlice: (payload: import("@reltio/mdm-sdk").HistorySlice) => void;
114
115
  updateSearchNavigationDataFields: (payload: Partial<import("@reltio/mdm-sdk").SearchNavigationData>) => void;
@@ -3,11 +3,9 @@ export declare const MAX_ENTITIES_PIVOTING_TOOLTIP = 6;
3
3
  export type Props = {
4
4
  value: PivotingValue[] | PrimitiveValue;
5
5
  attributeType: AttributeType;
6
- config: {
7
- entityType?: string;
8
- };
6
+ entityType?: string;
9
7
  };
10
- export declare const usePivotingDataLoader: ({ value, attributeType, config }: Props) => {
8
+ export declare const usePivotingDataLoader: ({ value, attributeType, entityType: configEntityType }: Props) => {
11
9
  entities: Entity[];
12
10
  total: number;
13
11
  loadPivotingData: () => void;
@@ -15,13 +15,13 @@ import { useMdmEntity, useMdmGlobalSearchRequestOptions } from '../../contexts';
15
15
  import { useSafePromise } from '../useSafePromise';
16
16
  export var MAX_ENTITIES_PIVOTING_TOOLTIP = 6;
17
17
  export var usePivotingDataLoader = function (_a) {
18
- var value = _a.value, attributeType = _a.attributeType, _b = _a.config, config = _b === void 0 ? {} : _b;
19
- var _c = useState([]), entities = _c[0], setEntities = _c[1];
20
- var _d = useState(0), total = _d[0], setTotal = _d[1];
18
+ var value = _a.value, attributeType = _a.attributeType, configEntityType = _a.entityType;
19
+ var _b = useState([]), entities = _b[0], setEntities = _b[1];
20
+ var _c = useState(0), total = _c[0], setTotal = _c[1];
21
21
  var safePromise = useSafePromise();
22
- var entity = useMdmEntity() || {};
22
+ var entity = useMdmEntity();
23
23
  var globalSearchRequestOptions = useMdmGlobalSearchRequestOptions();
24
- var entityType = config.entityType || entity.type;
24
+ var entityType = configEntityType || (entity === null || entity === void 0 ? void 0 : entity.type);
25
25
  var filters = useMemo(function () { return convertPivotingValueToSearchFilters({ value: value, attributeType: attributeType, entityType: entityType }); }, [attributeType, entityType, value]);
26
26
  var options = useMemo(function () { return (__assign({ max: MAX_ENTITIES_PIVOTING_TOOLTIP, sort: 'label' }, (globalSearchRequestOptions || {}))); }, [globalSearchRequestOptions]);
27
27
  var loadPivotingData = useCallback(function () {
@@ -7,7 +7,7 @@ type Props = {
7
7
  filter?: string;
8
8
  page: number;
9
9
  rowsPerPage: number;
10
- config: Pick<RelationsViewConfig | RelationsTableViewConfig, 'suggested' | 'content' | 'id'>;
10
+ config: Pick<RelationsViewConfig, 'suggested' | 'content' | 'id'> | Pick<RelationsTableViewConfig, 'content' | 'id'>;
11
11
  entity: Entity;
12
12
  relationActivityFilter?: ActivityFilter;
13
13
  mode: Mode;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1806-hf",
3
+ "version": "1.4.1824-hf",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@fluentui/react-context-selector": "^9.1.26",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-sdk": "^1.4.1806-hf",
10
+ "@reltio/mdm-sdk": "^1.4.1752",
11
11
  "classnames": "^2.2.5",
12
12
  "d3-cloud": "^1.2.5",
13
13
  "d3-geo": "^2.0.1",
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { BarChart } from 'recharts';
3
- export type BarChartOptions = {
4
- margin?: React.ComponentProps<typeof BarChart>['margin'];
5
- isLabelRotated?: boolean;
6
- isHorizontal?: boolean;
7
- };
@@ -1,7 +0,0 @@
1
- export type ChartData = {
2
- value: number;
3
- label: string;
4
- group: string;
5
- localizedValue?: string;
6
- percent?: number;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { ChartData } from './ChartData';
2
- export type ChartProps = {
3
- data: ChartData[];
4
- width: number;
5
- height: number;
6
- onItemClick?: (group: string) => void;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { LineChart } from 'recharts';
3
- export type LineChartOptions = {
4
- margin?: React.ComponentProps<typeof LineChart>['margin'];
5
- isLabelRotated?: boolean;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export type TableWithBarsOptions = {
2
- headers?: string[];
3
- showValues?: boolean;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { BarChart } from 'recharts';
3
- export type BarChartOptions = {
4
- margin?: React.ComponentProps<typeof BarChart>['margin'];
5
- isLabelRotated?: boolean;
6
- isHorizontal?: boolean;
7
- };
@@ -1,7 +0,0 @@
1
- export type ChartData = {
2
- value: number;
3
- label: string;
4
- group: string;
5
- localizedValue?: string;
6
- percent?: number;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import { ChartData } from './ChartData';
2
- export type ChartProps = {
3
- data: ChartData[];
4
- width: number;
5
- height: number;
6
- onItemClick?: (group: string) => void;
7
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { LineChart } from 'recharts';
3
- export type LineChartOptions = {
4
- margin?: React.ComponentProps<typeof LineChart>['margin'];
5
- isLabelRotated?: boolean;
6
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export type TableWithBarsOptions = {
2
- headers?: string[];
3
- showValues?: boolean;
4
- };
@@ -1 +0,0 @@
1
- export {};