@reltio/components 1.4.1745 → 1.4.1747

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/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +2 -2
  2. package/cjs/components/DataTypeValue/DataTypeValue.js +2 -2
  3. package/cjs/components/EntityUriLink/EntityUriLink.d.ts +1 -1
  4. package/cjs/components/EntityUriLink/EntityUriLink.js +2 -3
  5. package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.d.ts +1 -2
  6. package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +3 -3
  7. package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +2 -3
  8. package/cjs/components/Popper/Popper.d.ts +1 -1
  9. package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +4 -5
  10. package/cjs/components/activityLog/activities/fields/DeltaField.js +2 -2
  11. package/cjs/components/activityLog/utils/activities.d.ts +2 -2
  12. package/cjs/components/activityLog/utils/activities.js +3 -3
  13. package/cjs/components/attributes/BranchDecorator/BranchDecorator.js +1 -1
  14. package/cjs/components/attributes/OvIcon/OvIcon.js +1 -1
  15. package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +2 -2
  16. package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +1 -16
  17. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.d.ts +1 -1
  18. package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +5 -4
  19. package/cjs/components/attributes/pagersCommon/ShowMore.js +1 -1
  20. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -1
  21. package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +2 -2
  22. package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +1 -1
  23. package/cjs/components/attributes/readMode/AttributesPager/OneLineRenderer.js +1 -1
  24. package/cjs/components/attributes/readMode/AttributesPager/SpecialRenderer.js +1 -1
  25. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +19 -18
  26. package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +2 -2
  27. package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  28. package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  29. package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +2 -3
  30. package/cjs/contexts/ConfigPermissionsContext/index.d.ts +2 -2
  31. package/cjs/contexts/MdmModuleContext/context.d.ts +13 -25
  32. package/cjs/contexts/MdmModuleContext/hooks.d.ts +4 -11
  33. package/cjs/contexts/MdmModuleContext/hooks.js +7 -7
  34. package/cjs/contexts/MdmModuleContext/index.d.ts +1 -1
  35. package/cjs/contexts/MdmModuleContext/index.js +3 -3
  36. package/cjs/contexts/index.d.ts +0 -1
  37. package/cjs/contexts/index.js +2 -4
  38. package/cjs/hooks/useAPI/types.d.ts +2 -2
  39. package/cjs/hooks/useAPI/useAPI.d.ts +2 -2
  40. package/cjs/hooks/useReadableSearchState.js +2 -2
  41. package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +3 -3
  42. package/esm/components/DataTypeValue/DataTypeValue.js +3 -3
  43. package/esm/components/EntityUriLink/EntityUriLink.d.ts +1 -1
  44. package/esm/components/EntityUriLink/EntityUriLink.js +3 -4
  45. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.d.ts +1 -2
  46. package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +3 -3
  47. package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -5
  48. package/esm/components/Popper/Popper.d.ts +1 -1
  49. package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +6 -7
  50. package/esm/components/activityLog/activities/fields/DeltaField.js +3 -3
  51. package/esm/components/activityLog/utils/activities.d.ts +2 -2
  52. package/esm/components/activityLog/utils/activities.js +3 -3
  53. package/esm/components/attributes/BranchDecorator/BranchDecorator.js +1 -1
  54. package/esm/components/attributes/OvIcon/OvIcon.js +1 -1
  55. package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +3 -3
  56. package/esm/components/attributes/editMode/AttributesView/AttributesView.js +3 -18
  57. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.d.ts +1 -1
  58. package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +6 -5
  59. package/esm/components/attributes/pagersCommon/ShowMore.js +1 -1
  60. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -1
  61. package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +3 -3
  62. package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +1 -1
  63. package/esm/components/attributes/readMode/AttributesPager/OneLineRenderer.js +1 -1
  64. package/esm/components/attributes/readMode/AttributesPager/SpecialRenderer.js +1 -1
  65. package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +19 -18
  66. package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +3 -3
  67. package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
  68. package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
  69. package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +3 -4
  70. package/esm/contexts/ConfigPermissionsContext/index.d.ts +2 -2
  71. package/esm/contexts/MdmModuleContext/context.d.ts +13 -25
  72. package/esm/contexts/MdmModuleContext/hooks.d.ts +4 -11
  73. package/esm/contexts/MdmModuleContext/hooks.js +4 -4
  74. package/esm/contexts/MdmModuleContext/index.d.ts +1 -1
  75. package/esm/contexts/MdmModuleContext/index.js +1 -1
  76. package/esm/contexts/index.d.ts +0 -1
  77. package/esm/contexts/index.js +0 -1
  78. package/esm/hooks/useAPI/types.d.ts +2 -2
  79. package/esm/hooks/useAPI/useAPI.d.ts +2 -2
  80. package/esm/hooks/useReadableSearchState.js +3 -3
  81. package/package.json +3 -3
  82. package/cjs/contexts/ViewIdContext/index.d.ts +0 -2
  83. package/cjs/contexts/ViewIdContext/index.js +0 -9
  84. package/esm/contexts/ViewIdContext/index.d.ts +0 -2
  85. package/esm/contexts/ViewIdContext/index.js +0 -3
@@ -8,7 +8,7 @@ import { useEntityDetails } from './hooks/useEntityDetails';
8
8
  import { useStyles } from './styles';
9
9
  export var HierarchyNodeTitle = function (_a) {
10
10
  var _b;
11
- var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, viewId = _a.viewId, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c;
11
+ var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c;
12
12
  var styles = useStyles();
13
13
  var generateEntityUrl = useContext(UrlGeneratorsContext).generateEntityUrl;
14
14
  var openEntity = useMdmAction('openEntity');
@@ -17,8 +17,8 @@ export var HierarchyNodeTitle = function (_a) {
17
17
  var link = generateEntityUrl({ uiPath: uiPath, uri: entityUri });
18
18
  var showPopper = Boolean(anchorEl) && (Boolean(entityDetails) || isLoading);
19
19
  var handleClick = useCallback(function () {
20
- openEntity({ uri: entityUri, viewId: viewId });
21
- }, [openEntity, entityUri, viewId]);
20
+ openEntity({ uri: entityUri });
21
+ }, [openEntity, entityUri]);
22
22
  return (React.createElement(React.Fragment, null,
23
23
  React.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: classnames(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b)), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
24
24
  React.createElement(Link, { to: link, onClick: handleClick }, title)),
@@ -1,10 +1,9 @@
1
- import { useEffect, useState, useContext, useCallback } from 'react';
1
+ import { useEffect, useState, useCallback } from 'react';
2
2
  import { equals } from 'ramda';
3
3
  import { addAttribute, editAttribute, removeAttribute } from '@reltio/mdm-sdk';
4
- import { ViewIdContext, useMdmAction } from '../../../contexts';
4
+ import { useMdmAction } from '../../../contexts';
5
5
  export var useEditMetaInfo = function (_a) {
6
6
  var initialAttributeValue = _a.initialAttributeValue, attributeType = _a.attributeType;
7
- var viewId = useContext(ViewIdContext);
8
7
  var modifyAttribute = useMdmAction('modifyAttribute');
9
8
  var _b = useState(initialAttributeValue), attributeValue = _b[0], setAttributeValue = _b[1];
10
9
  useEffect(function () {
@@ -48,8 +47,8 @@ export var useEditMetaInfo = function (_a) {
48
47
  setAttributeValue(initialAttributeValue);
49
48
  }, [initialAttributeValue]);
50
49
  var applyLocalChanges = useCallback(function () {
51
- modifyAttribute({ value: attributeValue, attributeType: attributeType, uri: attributeValue.uri, viewId: viewId });
52
- }, [attributeValue, attributeType, viewId, modifyAttribute]);
50
+ modifyAttribute({ value: attributeValue, attributeType: attributeType, uri: attributeValue.uri });
51
+ }, [attributeValue, attributeType, modifyAttribute]);
53
52
  return {
54
53
  addAttributes: addAttributes,
55
54
  changeAttribute: changeAttribute,
@@ -13,5 +13,5 @@ declare const Popper: React.ForwardRefExoticComponent<Pick<Omit<import("@mui/bas
13
13
  anchorEl?: HTMLElement | null;
14
14
  excludeAnchorFromBackdrop?: boolean;
15
15
  onClose?: () => void;
16
- }, "id" | "hidden" | "open" | "title" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "style" | "color" | "translate" | "container" | "transition" | "className" | "sx" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "components" | "componentsProps" | "slotProps" | "slots" | "onClose" | "anchorEl" | "disablePortal" | "keepMounted" | "modifiers" | "placement" | "popperOptions" | "popperRef" | "component" | "modal" | "excludeAnchorFromBackdrop"> & React.RefAttributes<HTMLDivElement>>;
16
+ }, "id" | "hidden" | "open" | "title" | "key" | "children" | "defaultValue" | "prefix" | "component" | "results" | "slot" | "style" | "color" | "translate" | "container" | "transition" | "className" | "sx" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "components" | "componentsProps" | "slotProps" | "slots" | "onClose" | "anchorEl" | "disablePortal" | "keepMounted" | "modifiers" | "placement" | "popperOptions" | "popperRef" | "modal" | "excludeAnchorFromBackdrop"> & React.RefAttributes<HTMLDivElement>>;
17
17
  export default Popper;
@@ -7,10 +7,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
7
  }
8
8
  return to.concat(ar || Array.prototype.slice.call(from));
9
9
  };
10
- import { useCallback, useContext, useEffect, useMemo, useState } from 'react';
10
+ import { useCallback, useEffect, useMemo, useState } from 'react';
11
11
  import { getEntityUriForLink } from '@reltio/mdm-sdk';
12
12
  import { map, pipe, prop, reject } from 'ramda';
13
- import { useEntityLoadingIndication, useActionsHook, ViewIdContext, useMdmApiPath, useMdmDtssPath, useMdmGlobalSearchRequestOptions, useMdmSearchNavigationData, useMdmSearchProviderData, useMdmTenant, useMdmAction, useMdmListener } from '../../../contexts';
13
+ import { useEntityLoadingIndication, useActionsHook, useMdmApiPath, useMdmDtssPath, useMdmGlobalSearchRequestOptions, useMdmSearchNavigationData, useMdmSearchProviderData, useMdmTenant, useMdmAction, useMdmListener } from '../../../contexts';
14
14
  import { useSafePromise } from '../../../hooks';
15
15
  import { getSearchProvider } from '../searchProviders/SearchProviderFactory';
16
16
  export var REQUEST_PAGE_SIZE = 15;
@@ -21,7 +21,6 @@ var useSearchNavigation = function () {
21
21
  var safeCheckEntityPromise = useSafePromise();
22
22
  var safeRequestTotalPromise = useSafePromise();
23
23
  var safeRequestEntitiesPromise = useSafePromise();
24
- var viewId = useContext(ViewIdContext);
25
24
  var searchNavigationListener = useMdmListener('searchNavigationListener');
26
25
  var updateSearchNavigationDataFields = useMdmAction('updateSearchNavigationDataFields');
27
26
  var mdmOpenEntity = useMdmAction('openEntity');
@@ -40,11 +39,11 @@ var useSearchNavigation = function () {
40
39
  }, [updateSearchNavigationDataFields]);
41
40
  var openEntity = useCallback(function (uri) {
42
41
  var preparedUri = tenant !== searchTenant ? getEntityUriForLink({ uri: uri, dataTenant: searchTenant }) : uri;
43
- mdmOpenEntity({ uri: preparedUri, viewId: viewId, source: 'navigation' });
44
- }, [mdmOpenEntity, viewId, tenant, searchTenant]);
42
+ mdmOpenEntity({ uri: preparedUri, source: 'navigation' });
43
+ }, [mdmOpenEntity, tenant, searchTenant]);
45
44
  var onSearchResultsClick = useCallback(function () {
46
- openPerspective({ perspectiveId: type, viewId: viewId });
47
- }, [openPerspective, type, viewId]);
45
+ openPerspective(type);
46
+ }, [openPerspective, type]);
48
47
  useEffect(function () {
49
48
  if (total !== 0 && index >= total) {
50
49
  updateNavigationData({
@@ -5,7 +5,7 @@ import Chip from '@mui/material/Chip';
5
5
  import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
6
6
  import { findAttributeTypeByUri } from '@reltio/mdm-sdk';
7
7
  import { stringifyDeltaValue } from '../../utils/activities';
8
- import { useMdmMetadata, useMdmAttributePresentations } from '../../../../contexts';
8
+ import { useMdmMetadata, useMdmAttributesPresentation } from '../../../../contexts';
9
9
  import { useCommonStyles } from './commonStyles';
10
10
  import { useStyles } from './styles';
11
11
  var DeltaField = function (_a) {
@@ -14,14 +14,14 @@ var DeltaField = function (_a) {
14
14
  var styles = useStyles();
15
15
  var commonStyles = useCommonStyles();
16
16
  var metadata = useMdmMetadata();
17
- var attributePresentations = useMdmAttributePresentations();
17
+ var attributesPresentation = useMdmAttributesPresentation();
18
18
  var attribute = findAttributeTypeByUri(metadata, delta.attributeType);
19
19
  var newValue = (_b = delta.newValue) === null || _b === void 0 ? void 0 : _b.value;
20
20
  var oldValue = (_c = delta.oldValue) === null || _c === void 0 ? void 0 : _c.value;
21
21
  var value = oldValue || newValue;
22
22
  var deltaLabel = DeltaTypes[delta.type];
23
23
  var converter = function (value) {
24
- return stringifyDeltaValue(value, delta.attributeType, metadata, attributePresentations);
24
+ return stringifyDeltaValue(value, delta.attributeType, metadata, attributesPresentation);
25
25
  };
26
26
  return (React.createElement("div", { className: commonStyles.field },
27
27
  React.createElement("span", { className: commonStyles.fieldName },
@@ -1,8 +1,8 @@
1
- import { Metadata, AttributePresentations } from '@reltio/mdm-sdk';
1
+ import { Metadata, AttributesPresentation } from '@reltio/mdm-sdk';
2
2
  import { ActivityData, ActivityTypes, DeltaValue } from '../types';
3
3
  export declare const getActivityType: (activity: ActivityData) => any;
4
4
  export declare const isValidActivityType: (type: string) => boolean;
5
5
  export declare const removeIgnoredItems: (activity: ActivityData) => ActivityData;
6
6
  export declare const splitActivityByType: (activity: ActivityData) => any;
7
- export declare const stringifyDeltaValue: (deltaValue: DeltaValue['value'], attributeTypeUri: string, metadata: Metadata, attributePresentations: AttributePresentations) => any;
7
+ export declare const stringifyDeltaValue: (deltaValue: DeltaValue['value'], attributeTypeUri: string, metadata: Metadata, attributesPresentation?: AttributesPresentation) => any;
8
8
  export declare const getActivityLabel: (type: ActivityTypes) => string;
@@ -35,10 +35,10 @@ export var splitActivityByType = function (activity) {
35
35
  return length > 1;
36
36
  }, map(function (items) { return (__assign(__assign({}, activity), { items: items, itemsTotal: items.length })); }), function () { return [activity]; }))(activity);
37
37
  };
38
- export var stringifyDeltaValue = function (deltaValue, attributeTypeUri, metadata, attributePresentations) {
38
+ export var stringifyDeltaValue = function (deltaValue, attributeTypeUri, metadata, attributesPresentation) {
39
39
  var attributeType = findAttributeTypeByUri(metadata, attributeTypeUri);
40
40
  var dataTypeDefinition = getAttrDataTypeDefinition(attributeType);
41
- var formatValue = formatDataTypeValue({ attributePresentations: attributePresentations, dataTypeDefinition: dataTypeDefinition });
41
+ var formatValue = formatDataTypeValue({ attributesPresentation: attributesPresentation, dataTypeDefinition: dataTypeDefinition });
42
42
  if (isNil(deltaValue)) {
43
43
  return '';
44
44
  }
@@ -49,7 +49,7 @@ export var stringifyDeltaValue = function (deltaValue, attributeTypeUri, metadat
49
49
  .flatMap(function (_a) {
50
50
  var attributeTypeName = _a[0], deltaValues = _a[1];
51
51
  return deltaValues.map(function (deltaValue) {
52
- return stringifyDeltaValue(deltaValue.value, makeAttrTypeUri(attributeTypeUri, attributeTypeName), metadata, attributePresentations);
52
+ return stringifyDeltaValue(deltaValue.value, makeAttrTypeUri(attributeTypeUri, attributeTypeName), metadata, attributesPresentation);
53
53
  });
54
54
  })
55
55
  .join(', ');
@@ -5,7 +5,7 @@ var BranchDecorator = function (_a) {
5
5
  var _b;
6
6
  var className = _a.className, children = _a.children, _c = _a.plain, plain = _c === void 0 ? false : _c, _d = _a.enabled, enabled = _d === void 0 ? false : _d;
7
7
  var styles = useStyles();
8
- return enabled ? (React.createElement("div", { className: classnames(styles.decorator, (_b = {}, _b[styles.plain] = plain, _b), className) },
8
+ return enabled ? (React.createElement("div", { "data-reltio-id": "branch-decorator", className: classnames(styles.decorator, (_b = {}, _b[styles.plain] = plain, _b), className) },
9
9
  React.createElement("div", { className: styles.wrapper }, children))) : (React.createElement(React.Fragment, null, children));
10
10
  };
11
11
  export default BranchDecorator;
@@ -15,7 +15,7 @@ var OvIcon = function (_a) {
15
15
  var entity = useContext(EntityContext);
16
16
  var entityUri = getEntityUri(entity, nonOvValues);
17
17
  var onClick = useCallback(function () {
18
- openEntity({ uri: entityUri, viewId: null, screen: 'sources' });
18
+ openEntity({ uri: entityUri, screen: 'sources' });
19
19
  }, [openEntity, entityUri]);
20
20
  if (!nonOvTotal) {
21
21
  return null;
@@ -17,7 +17,7 @@ import AttributeRenderer from './AttributeRenderer';
17
17
  import SpecialRenderer from './SpecialRenderer';
18
18
  import { ImageLineRenderer } from './ImageLineRenderer';
19
19
  import { withContext } from '../../../../HOCs';
20
- import { isHighlightedAttributeType, isHighlightedErrorType, ScrollToElementContext, useMdmAction, useMdmActiveErrorsForAttributesPager, useMdmDefaultMaxValues, useMdmProfileErrors } from '../../../../contexts';
20
+ import { isHighlightedAttributeType, isHighlightedErrorType, ScrollToElementContext, useMdmAction, useMdmActiveErrorsForAttributesPager, useMdmMaxValuesInResponse, useMdmProfileErrors } from '../../../../contexts';
21
21
  var RENDERER_TYPES;
22
22
  (function (RENDERER_TYPES) {
23
23
  RENDERER_TYPES["imageLine"] = "imageLine";
@@ -31,9 +31,9 @@ var AttributesPager = function (_a) {
31
31
  var requestNextPageOfAttributeValues = useMdmAction('requestNextPageOfAttributeValues');
32
32
  var activeErrors = useMdmActiveErrorsForAttributesPager(parentUri, attributeType);
33
33
  var profileErrors = useMdmProfileErrors();
34
- var defaultMaxValues = useMdmDefaultMaxValues();
34
+ var maxValuesInResponse = useMdmMaxValuesInResponse();
35
35
  var errorMessage = getAttributePagerActiveTypeErrorMessage(parentUri, attributeType, profileErrors);
36
- var max = (_b = maxProp !== null && maxProp !== void 0 ? maxProp : defaultMaxValues) !== null && _b !== void 0 ? _b : Infinity;
36
+ var max = (_b = maxProp !== null && maxProp !== void 0 ? maxProp : maxValuesInResponse) !== null && _b !== void 0 ? _b : Infinity;
37
37
  var partitionByOv = partition(isOv);
38
38
  var _e = partitionByOv(values), ovValues = _e[0], nonOvValues = _e[1];
39
39
  var visibleValues = showNonOv ? values : ovValues;
@@ -1,22 +1,11 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React, { useCallback, useContext, useMemo } from 'react';
1
+ import React, { useMemo } from 'react';
13
2
  import classnames from 'classnames';
14
3
  import { isTempUri, getPinnedAttributesForUser } from '@reltio/mdm-sdk';
15
4
  import Box from '@mui/material/Box';
16
5
  import BasicView from '../../../BasicView/BasicView';
17
6
  import FacetViewHeader from '../../../FacetViewHeader/FacetViewHeader';
18
7
  import AttributesList from '../AttributesList';
19
- import { ViewIdContext, useMdmAction, useMdmMetadata, useMdmModifiedEntity, useMdmUserRoles } from '../../../../contexts';
8
+ import { useMdmAction, useMdmMetadata, useMdmModifiedEntity, useMdmUserRoles } from '../../../../contexts';
20
9
  import { getFilteredAttrTypes } from '../../helpers/attributesView';
21
10
  import { PinnedAttributesContext } from '../contexts/PinnedAttributesContext';
22
11
  import { useStyles } from './styles';
@@ -24,7 +13,6 @@ var AttributesView = function (_a) {
24
13
  var _b;
25
14
  var className = _a.className, mode = _a.mode, entity = _a.entity, _c = _a.caption, caption = _c === void 0 ? '' : _c, _d = _a.excludeUris, excludeUris = _d === void 0 ? [] : _d, _e = _a.includeUris, includeUris = _e === void 0 ? [] : _e, pinnedAttributes = _a.pinnedAttributes;
26
15
  var styles = useStyles();
27
- var viewId = useContext(ViewIdContext);
28
16
  var addAttributes = useMdmAction('addAttributes');
29
17
  var modifyAttribute = useMdmAction('modifyAttribute');
30
18
  var removeAttribute = useMdmAction('removeAttribute');
@@ -33,13 +21,10 @@ var AttributesView = function (_a) {
33
21
  var modifiedEntity = useMdmModifiedEntity(entity.uri) || {};
34
22
  var pinnedAttributeUris = useMemo(function () { return getPinnedAttributesForUser(pinnedAttributes, userRoles); }, [pinnedAttributes, userRoles]);
35
23
  var filteredAttrTypes = useMemo(function () { return getFilteredAttrTypes(metadata, modifiedEntity.type, includeUris, excludeUris); }, [excludeUris, includeUris, metadata, modifiedEntity.type]);
36
- var onAddAttributes = useCallback(function (params) { return addAttributes(params.map(function (param) { return (__assign(__assign({}, param), { viewId: viewId })); })); }, [viewId, addAttributes]);
37
- var onChangeAttribute = useCallback(function (params) { return modifyAttribute(__assign(__assign({}, params), { viewId: viewId })); }, [viewId, modifyAttribute]);
38
- var onDeleteAttribute = useCallback(function (params) { return removeAttribute(__assign(__assign({}, params), { viewId: viewId })); }, [viewId, removeAttribute]);
39
24
  return (React.createElement(BasicView, { className: className },
40
25
  caption && React.createElement(FacetViewHeader, { title: caption }),
41
26
  React.createElement(Box, { className: classnames(styles.attributesContainer, (_b = {}, _b[styles.noCaption] = !caption, _b)) },
42
27
  React.createElement(PinnedAttributesContext.Provider, { value: pinnedAttributeUris },
43
- React.createElement(AttributesList, { entity: modifiedEntity, attrTypes: filteredAttrTypes, parentUri: modifiedEntity.uri, drawLines: false, mode: mode, showEmptyEditors: isTempUri(modifiedEntity.uri), crosswalks: modifiedEntity.crosswalks, onAddAttributes: onAddAttributes, onChangeAttribute: onChangeAttribute, onDeleteAttribute: onDeleteAttribute })))));
28
+ React.createElement(AttributesList, { entity: modifiedEntity, attrTypes: filteredAttrTypes, parentUri: modifiedEntity.uri, drawLines: false, mode: mode, showEmptyEditors: isTempUri(modifiedEntity.uri), crosswalks: modifiedEntity.crosswalks, onAddAttributes: addAttributes, onChangeAttribute: modifyAttribute, onDeleteAttribute: removeAttribute })))));
44
29
  };
45
30
  export default AttributesView;
@@ -4,7 +4,7 @@ type Props = {
4
4
  selectProps: {
5
5
  currentEntityType: TEntityType;
6
6
  menuIsOpen: boolean;
7
- disableLinkClick: boolean;
7
+ disableLinkClick?: boolean;
8
8
  };
9
9
  children: string;
10
10
  data: {
@@ -14,7 +14,7 @@ import classnames from 'classnames';
14
14
  import i18n from 'ui-i18n';
15
15
  import { getLabel, isTempUri } from '@reltio/mdm-sdk';
16
16
  import Typography from '@mui/material/Typography';
17
- import { ViewIdContext, UrlGeneratorsContext, useMdmUiPath, useMdmAction } from '../../../../../contexts';
17
+ import { UrlGeneratorsContext, useMdmUiPath, useMdmAction } from '../../../../../contexts';
18
18
  import { useSingleValueStyles } from './styles';
19
19
  import { isControlOrCommandPressed } from '../../../../../core';
20
20
  var SingleValue = function (_a) {
@@ -22,7 +22,6 @@ var SingleValue = function (_a) {
22
22
  var styles = useSingleValueStyles();
23
23
  var openEntity = useMdmAction('openEntity');
24
24
  var uiPath = useMdmUiPath();
25
- var viewId = useContext(ViewIdContext);
26
25
  var generateEntityUrl = useContext(UrlGeneratorsContext).generateEntityUrl;
27
26
  var handleOnMouseDown = function (event) {
28
27
  event.stopPropagation();
@@ -33,7 +32,7 @@ var SingleValue = function (_a) {
33
32
  event.preventDefault();
34
33
  }
35
34
  else if (!isControlOrCommandPressed(event)) {
36
- openEntity({ uri: data.entityUri, viewId: viewId });
35
+ openEntity({ uri: data.entityUri });
37
36
  event.preventDefault();
38
37
  }
39
38
  };
@@ -49,8 +48,10 @@ var SingleValue = function (_a) {
49
48
  href: generateEntityUrl({ uiPath: uiPath, uri: data.entityUri }),
50
49
  component: 'a'
51
50
  };
52
- return (!menuIsOpen && (React.createElement(Typography, __assign({}, valueProps), isTempUri(data.entityUri)
51
+ if (menuIsOpen)
52
+ return null;
53
+ return (React.createElement(Typography, __assign({}, valueProps), isTempUri(data.entityUri)
53
54
  ? i18n.text("New ".concat(currentEntityType.label, " will be created"))
54
- : getLabel(children))));
55
+ : getLabel(children)));
55
56
  };
56
57
  export default SingleValue;
@@ -6,7 +6,7 @@ import { useStyles } from './styles';
6
6
  var ShowMore = function (_a) {
7
7
  var moreNumber = _a.moreNumber, valueNumber = _a.valueNumber, onClick = _a.onClick;
8
8
  var styles = useStyles();
9
- return (React.createElement(Link, { component: "button", variant: "caption", className: styles.link, onClick: onClick, underline: "none" },
9
+ return (React.createElement(Link, { "data-reltio-id": "show-more", component: "button", variant: "caption", className: styles.link, onClick: onClick, underline: "none" },
10
10
  React.createElement(KeyboardArrowDownIcon, { className: styles['svg-icon__root'] }),
11
11
  moreNumber && valueNumber
12
12
  ? i18n.text('Show ${moreNumber} more of remaining ${valueNumber} value', { moreNumber: moreNumber, valueNumber: valueNumber })
@@ -5,7 +5,7 @@ type Props = {
5
5
  attributeType: AttributeType;
6
6
  paging?: Paging;
7
7
  parentUri?: string;
8
- drawLines: boolean;
8
+ drawLines?: boolean;
9
9
  max?: number;
10
10
  titleClassName?: string;
11
11
  contentClassName?: string;
@@ -7,7 +7,7 @@ import OneLineRenderer from './OneLineRenderer';
7
7
  import MultiLineRenderer from './MultiLineRenderer';
8
8
  import SpecialRenderer from './SpecialRenderer';
9
9
  import { ImageLineRenderer } from './ImageLineRenderer';
10
- import { useMdmAction, useMdmDefaultMaxValues } from '../../../../contexts';
10
+ import { useMdmAction, useMdmMaxValuesInResponse } from '../../../../contexts';
11
11
  import { useStyles } from './styles';
12
12
  var RENDERER_TYPES = {
13
13
  oneLine: 'oneLine',
@@ -21,8 +21,8 @@ var AttributesPager = function (_a) {
21
21
  var values = _a.values, attributeType = _a.attributeType, drawLines = _a.drawLines, _e = _a.paging, paging = _e === void 0 ? {} : _e, parentUri = _a.parentUri, maxProp = _a.max, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv;
22
22
  var styles = useStyles();
23
23
  var requestNextPageOfAttributeValues = useMdmAction('requestNextPageOfAttributeValues');
24
- var defaultMaxValues = useMdmDefaultMaxValues();
25
- var max = (_d = maxProp !== null && maxProp !== void 0 ? maxProp : defaultMaxValues) !== null && _d !== void 0 ? _d : Infinity;
24
+ var maxValuesInResponse = useMdmMaxValuesInResponse();
25
+ var max = (_d = maxProp !== null && maxProp !== void 0 ? maxProp : maxValuesInResponse) !== null && _d !== void 0 ? _d : Infinity;
26
26
  var partitionByOv = partition(isOv);
27
27
  if (!values || !values.length) {
28
28
  return null;
@@ -33,7 +33,7 @@ var MultiLineRenderer = function (_a) {
33
33
  };
34
34
  var shownValues = values.slice(0, visibleValuesCount);
35
35
  var hiddenValuesCount = totalVisibleValues - visibleValuesCount;
36
- return (React.createElement("div", { className: styles.wrapper },
36
+ return (React.createElement("div", { "data-reltio-id": "multi-line-renderer", className: styles.wrapper },
37
37
  React.createElement("div", { className: styles.titleRow },
38
38
  React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
39
39
  React.createElement(DescriptionIcon, { description: description }),
@@ -15,7 +15,7 @@ var OneLineRenderer = function (_a) {
15
15
  var objectType = isRelationAttrType(attributeType)
16
16
  ? CollaborationObjectTypes.RELATION_ATTRIBUTE
17
17
  : CollaborationObjectTypes.ENTITY_ATTRIBUTE;
18
- return (React.createElement("div", { className: classnames(styles.collaborationWrapper, COMMENTS_CONTAINER_VISIBILITY_AREA) },
18
+ return (React.createElement("div", { "data-reltio-id": "one-line-renderer", className: classnames(styles.collaborationWrapper, COMMENTS_CONTAINER_VISIBILITY_AREA) },
19
19
  React.createElement("div", { className: classnames(styles.titleRow, styles.wrapper) },
20
20
  React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
21
21
  React.createElement(DescriptionIcon, { description: description, className: styles.descriptionIcon }),
@@ -27,7 +27,7 @@ var SpecialRenderer = function (_a) {
27
27
  }
28
28
  }
29
29
  };
30
- return (React.createElement("div", { className: classnames(styles.titleRow, styles.wrapper) },
30
+ return (React.createElement("div", { "data-reltio-id": "special-renderer", className: classnames(styles.titleRow, styles.wrapper) },
31
31
  renderIcon(styles.titleIcon),
32
32
  React.createElement(Title, { label: label, className: styles.title, "data-reltio-id": "reltio-attribute-label" }),
33
33
  renderValue(styles.attribute)));
@@ -1,25 +1,16 @@
1
- export default useEditorContext;
2
- declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
3
- entries: any;
4
- lookups?: undefined;
5
- lookupCode?: undefined;
6
- getLookups?: undefined;
7
- resolveLookups?: undefined;
8
- getSuggestions?: undefined;
9
- format?: undefined;
10
- tenant?: undefined;
11
- } | {
1
+ import { DataTypeDefinition } from '@reltio/mdm-sdk';
2
+ declare const useEditorContext: (fieldName: string, dataTypeDefinition: DataTypeDefinition) => {
12
3
  lookups: import("@reltio/mdm-sdk").Lookups;
13
- lookupCode: any;
4
+ lookupCode: string;
14
5
  getLookups: () => any;
15
- entries?: undefined;
16
6
  resolveLookups?: undefined;
17
7
  getSuggestions?: undefined;
18
8
  format?: undefined;
19
9
  tenant?: undefined;
10
+ entries?: undefined;
20
11
  } | {
21
12
  lookups: import("@reltio/mdm-sdk").Lookups;
22
- lookupCode: any;
13
+ lookupCode: string;
23
14
  getLookups: ({ type, parents, displayNamePrefix, max, offset }: {
24
15
  type: any;
25
16
  parents: any;
@@ -28,39 +19,47 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
28
19
  offset: any;
29
20
  }) => Promise<any>;
30
21
  resolveLookups: (type: any, codeValues: any) => Promise<void>;
31
- entries?: undefined;
32
22
  getSuggestions?: undefined;
33
23
  format?: undefined;
34
24
  tenant?: undefined;
25
+ entries?: undefined;
35
26
  } | {
36
27
  getSuggestions: (searchValue: any, max: any, pageNo: any) => Promise<Record<string, unknown>>;
37
- entries?: undefined;
38
28
  lookups?: undefined;
39
29
  lookupCode?: undefined;
40
30
  getLookups?: undefined;
41
31
  resolveLookups?: undefined;
42
32
  format?: undefined;
43
33
  tenant?: undefined;
34
+ entries?: undefined;
44
35
  } | {
45
36
  format: import("@reltio/mdm-sdk").NumberFormat;
46
- entries?: undefined;
47
37
  lookups?: undefined;
48
38
  lookupCode?: undefined;
49
39
  getLookups?: undefined;
50
40
  resolveLookups?: undefined;
51
41
  getSuggestions?: undefined;
52
42
  tenant?: undefined;
43
+ entries?: undefined;
53
44
  } | {
54
45
  tenant: string;
46
+ lookups?: undefined;
47
+ lookupCode?: undefined;
48
+ getLookups?: undefined;
49
+ resolveLookups?: undefined;
50
+ getSuggestions?: undefined;
51
+ format?: undefined;
55
52
  entries?: undefined;
53
+ } | {
54
+ entries: unknown[];
56
55
  lookups?: undefined;
57
56
  lookupCode?: undefined;
58
57
  getLookups?: undefined;
59
58
  resolveLookups?: undefined;
60
59
  getSuggestions?: undefined;
61
60
  format?: undefined;
61
+ tenant?: undefined;
62
62
  } | {
63
- entries?: undefined;
64
63
  lookups?: undefined;
65
64
  lookupCode?: undefined;
66
65
  getLookups?: undefined;
@@ -68,4 +67,6 @@ declare function useEditorContext(fieldName: any, dataTypeDefinition: any): {
68
67
  getSuggestions?: undefined;
69
68
  format?: undefined;
70
69
  tenant?: undefined;
70
+ entries?: undefined;
71
71
  };
72
+ export default useEditorContext;
@@ -12,13 +12,13 @@ var __assign = (this && this.__assign) || function () {
12
12
  import { useCallback } from 'react';
13
13
  import { propOr, prop, pipe, keys } from 'ramda';
14
14
  import { DataTypes, intl, getDependentLookups, getFacetedAttributeData, getLookups, resolveLookupsList, getNumberFormat } from '@reltio/mdm-sdk';
15
- import { useMdmAction, useMdmAttributePresentations, useMdmGlobalSearchRequestOptions, useMdmLookups, useMdmTenant } from '../../../contexts';
15
+ import { useMdmAction, useMdmAttributesPresentation, useMdmGlobalSearchRequestOptions, useMdmLookups, useMdmTenant } from '../../../contexts';
16
16
  var useEditorContext = function (fieldName, dataTypeDefinition) {
17
17
  var lookupsLoaded = useMdmAction('lookupsLoaded');
18
18
  var lookupsForTypeResolved = useMdmAction('lookupsForTypeResolved');
19
19
  var tenant = useMdmTenant();
20
20
  var lookups = useMdmLookups();
21
- var attributePresentations = useMdmAttributePresentations();
21
+ var attributesPresentation = useMdmAttributesPresentation();
22
22
  var globalSearchRequestOptions = useMdmGlobalSearchRequestOptions();
23
23
  var typeaheadGetSuggestion = useCallback(function (searchValue, max, pageNo) {
24
24
  return getFacetedAttributeData({
@@ -72,7 +72,7 @@ var useEditorContext = function (fieldName, dataTypeDefinition) {
72
72
  case DataTypes.TYPE_LONG:
73
73
  case DataTypes.TYPE_INT:
74
74
  return {
75
- format: getNumberFormat(dataTypeDefinition, attributePresentations, intl.getLocale())
75
+ format: getNumberFormat(dataTypeDefinition, attributesPresentation, intl.getLocale())
76
76
  };
77
77
  case DataTypes.TYPE_FILE:
78
78
  return { tenant: tenant };
@@ -9,5 +9,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<{
9
9
  isCollapsed?: boolean;
10
10
  showCollapseIcon?: boolean;
11
11
  showLine?: boolean;
12
- } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
12
+ } & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "in" | "id" | "type" | "name" | "direction" | "max" | "local" | "visibility" | "operator" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "format" | "version" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
13
13
  export default _default;