@reltio/components 1.4.1744 → 1.4.1746
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +2 -2
- package/cjs/components/DataTypeValue/DataTypeValue.js +2 -2
- package/cjs/components/EntityUriLink/EntityUriLink.d.ts +1 -1
- package/cjs/components/EntityUriLink/EntityUriLink.js +2 -3
- package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.d.ts +1 -2
- package/cjs/components/HierarchyNodeTitle/HierarchyNodeTitle.js +3 -3
- package/cjs/components/ImageDetailsView/hooks/useEditMetaInfo.js +2 -3
- package/cjs/components/Popper/Popper.d.ts +1 -1
- package/cjs/components/ProfileBandNavigation/hooks/useSearchNavigation.js +4 -5
- package/cjs/components/activityLog/activities/fields/DeltaField.js +2 -2
- package/cjs/components/activityLog/utils/activities.d.ts +2 -2
- package/cjs/components/activityLog/utils/activities.js +3 -3
- package/cjs/components/attributes/BranchDecorator/BranchDecorator.js +1 -1
- package/cjs/components/attributes/OvIcon/OvIcon.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributesPager.js +2 -2
- package/cjs/components/attributes/editMode/AttributesView/AttributesView.js +1 -16
- package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.d.ts +1 -1
- package/cjs/components/attributes/editMode/EntitySelector/components/SingleValue.js +5 -4
- package/cjs/components/attributes/pagersCommon/ShowMore.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/AttributesPager.js +2 -2
- package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/OneLineRenderer.js +1 -1
- package/cjs/components/attributes/readMode/AttributesPager/SpecialRenderer.js +1 -1
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.d.ts +19 -18
- package/cjs/components/editors/DataTypeValueEditor/useEditorContext.js +2 -2
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +2 -3
- package/cjs/contexts/ConfigPermissionsContext/index.d.ts +2 -2
- package/cjs/contexts/MdmModuleContext/context.d.ts +13 -25
- package/cjs/contexts/MdmModuleContext/hooks.d.ts +4 -11
- package/cjs/contexts/MdmModuleContext/hooks.js +7 -7
- package/cjs/contexts/MdmModuleContext/index.d.ts +1 -1
- package/cjs/contexts/MdmModuleContext/index.js +3 -3
- package/cjs/contexts/index.d.ts +0 -1
- package/cjs/contexts/index.js +2 -4
- package/cjs/hooks/useAPI/types.d.ts +2 -2
- package/cjs/hooks/useAPI/useAPI.d.ts +2 -2
- package/cjs/hooks/useReadableSearchState.js +2 -2
- package/esm/components/BasicTableView/ColumnFilter/FilterChip/FilterChip.js +3 -3
- package/esm/components/DataTypeValue/DataTypeValue.js +3 -3
- package/esm/components/EntityUriLink/EntityUriLink.d.ts +1 -1
- package/esm/components/EntityUriLink/EntityUriLink.js +3 -4
- package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.d.ts +1 -2
- package/esm/components/HierarchyNodeTitle/HierarchyNodeTitle.js +3 -3
- package/esm/components/ImageDetailsView/hooks/useEditMetaInfo.js +4 -5
- package/esm/components/Popper/Popper.d.ts +1 -1
- package/esm/components/ProfileBandNavigation/hooks/useSearchNavigation.js +6 -7
- package/esm/components/activityLog/activities/fields/DeltaField.js +3 -3
- package/esm/components/activityLog/utils/activities.d.ts +2 -2
- package/esm/components/activityLog/utils/activities.js +3 -3
- package/esm/components/attributes/BranchDecorator/BranchDecorator.js +1 -1
- package/esm/components/attributes/OvIcon/OvIcon.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/AttributesPager.js +3 -3
- package/esm/components/attributes/editMode/AttributesView/AttributesView.js +3 -18
- package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.d.ts +1 -1
- package/esm/components/attributes/editMode/EntitySelector/components/SingleValue.js +6 -5
- package/esm/components/attributes/pagersCommon/ShowMore.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.d.ts +1 -1
- package/esm/components/attributes/readMode/AttributesPager/AttributesPager.js +3 -3
- package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/OneLineRenderer.js +1 -1
- package/esm/components/attributes/readMode/AttributesPager/SpecialRenderer.js +1 -1
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.d.ts +19 -18
- package/esm/components/editors/DataTypeValueEditor/useEditorContext.js +3 -3
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/workflow/hooks/useWorkflowDefaultActionSuccessHandler.js +3 -4
- package/esm/contexts/ConfigPermissionsContext/index.d.ts +2 -2
- package/esm/contexts/MdmModuleContext/context.d.ts +13 -25
- package/esm/contexts/MdmModuleContext/hooks.d.ts +4 -11
- package/esm/contexts/MdmModuleContext/hooks.js +4 -4
- package/esm/contexts/MdmModuleContext/index.d.ts +1 -1
- package/esm/contexts/MdmModuleContext/index.js +1 -1
- package/esm/contexts/index.d.ts +0 -1
- package/esm/contexts/index.js +0 -1
- package/esm/hooks/useAPI/types.d.ts +2 -2
- package/esm/hooks/useAPI/useAPI.d.ts +2 -2
- package/esm/hooks/useReadableSearchState.js +3 -3
- package/package.json +2 -2
- package/cjs/contexts/ViewIdContext/index.d.ts +0 -2
- package/cjs/contexts/ViewIdContext/index.js +0 -9
- package/esm/contexts/ViewIdContext/index.d.ts +0 -2
- package/esm/contexts/ViewIdContext/index.js +0 -3
|
@@ -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" | "
|
|
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;
|
|
@@ -16,7 +16,7 @@ export declare const HistoryCircleWithTooltip: React.ForwardRefExoticComponent<i
|
|
|
16
16
|
isCollapsed?: boolean;
|
|
17
17
|
showCollapseIcon?: boolean;
|
|
18
18
|
showLine?: boolean;
|
|
19
|
-
} & 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" | "
|
|
19
|
+
} & 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>>;
|
|
20
20
|
type Props = {
|
|
21
21
|
graphData: HistoryData;
|
|
22
22
|
onHistoryCircleMouseOver?: (uri: string, timestamp: number, index: number) => void;
|
|
@@ -5,7 +5,6 @@ var react_1 = require("react");
|
|
|
5
5
|
var contexts_1 = require("../../../contexts");
|
|
6
6
|
var useWorkflowDefaultActionSuccessHandler = function () {
|
|
7
7
|
var loadTasks = ((0, react_1.useContext)(contexts_1.WorkflowTasksContext) || {}).loadTasks;
|
|
8
|
-
var viewId = (0, react_1.useContext)(contexts_1.ViewIdContext);
|
|
9
8
|
var loadEntity = (0, contexts_1.useMdmAction)('loadEntity');
|
|
10
9
|
var entityDeletionFinished = (0, contexts_1.useMdmAction)('entityDeletionFinished');
|
|
11
10
|
var entityUri = (0, contexts_1.useMdmEntityUri)();
|
|
@@ -15,9 +14,9 @@ var useWorkflowDefaultActionSuccessHandler = function () {
|
|
|
15
14
|
}
|
|
16
15
|
else {
|
|
17
16
|
// entity refreshing
|
|
18
|
-
loadEntity(
|
|
17
|
+
loadEntity(entityUri);
|
|
19
18
|
loadTasks === null || loadTasks === void 0 ? void 0 : loadTasks();
|
|
20
19
|
}
|
|
21
|
-
}, [entityUri, loadTasks,
|
|
20
|
+
}, [entityUri, loadTasks, loadEntity, entityDeletionFinished]);
|
|
22
21
|
};
|
|
23
22
|
exports.useWorkflowDefaultActionSuccessHandler = useWorkflowDefaultActionSuccessHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ProfileViewConfig } 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?:
|
|
11
|
+
view?: ProfileViewConfig;
|
|
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,
|
|
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';
|
|
2
2
|
import { AnyAction } from '../../types';
|
|
3
3
|
export type MdmModuleValuesContextProps = Partial<{
|
|
4
4
|
autoCloseInterval: number;
|
|
@@ -19,8 +19,8 @@ export type MdmModuleValuesContextProps = Partial<{
|
|
|
19
19
|
pivotingAttributes: PivotingAttribute[];
|
|
20
20
|
dateMask: string;
|
|
21
21
|
dateTimeMask: string;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
attributesPresentation: AttributesPresentation;
|
|
23
|
+
maxValuesInResponse: number;
|
|
24
24
|
attributesSortingStrategy: SortingStrategy;
|
|
25
25
|
lookupAutocomplete: DependentLookupsConfig;
|
|
26
26
|
modifiedEntities: Record<string, Entity>;
|
|
@@ -51,7 +51,8 @@ export type MdmModuleValuesContextProps = Partial<{
|
|
|
51
51
|
searchProviderData: SearchProviderData;
|
|
52
52
|
isWorkflowEnabled: boolean;
|
|
53
53
|
isCollaborationEnabled: boolean;
|
|
54
|
-
uiConfigLayout:
|
|
54
|
+
uiConfigLayout: LayoutConfig;
|
|
55
|
+
uiConfigProfile: ProfileConfigItem[];
|
|
55
56
|
}>;
|
|
56
57
|
export type MdmModuleActionsContextProps = Partial<{
|
|
57
58
|
openSearch: (payload: SearchState) => void;
|
|
@@ -69,7 +70,6 @@ export type MdmModuleActionsContextProps = Partial<{
|
|
|
69
70
|
requestNextPageOfAttributeValues: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
70
71
|
openEntity: (payload: {
|
|
71
72
|
uri: string;
|
|
72
|
-
viewId: string | null;
|
|
73
73
|
source?: string | null;
|
|
74
74
|
screen?: string;
|
|
75
75
|
}) => void;
|
|
@@ -96,15 +96,9 @@ export type MdmModuleActionsContextProps = Partial<{
|
|
|
96
96
|
setHistoryDiff: (payload: HistoryDiff) => void;
|
|
97
97
|
setHistorySlice: (payload: HistorySlice) => void;
|
|
98
98
|
updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
|
|
99
|
-
openPerspective: (payload:
|
|
100
|
-
perspectiveId: string;
|
|
101
|
-
viewId: string;
|
|
102
|
-
}) => void;
|
|
99
|
+
openPerspective: (payload: string) => void;
|
|
103
100
|
entityDeletionFinished: () => void;
|
|
104
|
-
loadEntity: (payload:
|
|
105
|
-
viewId?: string;
|
|
106
|
-
uri: string;
|
|
107
|
-
}) => void;
|
|
101
|
+
loadEntity: (payload: string) => void;
|
|
108
102
|
updateSearchNavigationDataOnMerge: (payload: {
|
|
109
103
|
winnerUri: string;
|
|
110
104
|
losersUris: string[];
|
|
@@ -141,7 +135,6 @@ export declare const MdmModuleActionsContext: import("@fluentui/react-context-se
|
|
|
141
135
|
requestNextPageOfAttributeValues: (payload: RequestNextPageOfAttributeValuesPayload) => void;
|
|
142
136
|
openEntity: (payload: {
|
|
143
137
|
uri: string;
|
|
144
|
-
viewId: string | null;
|
|
145
138
|
source?: string | null;
|
|
146
139
|
screen?: string;
|
|
147
140
|
}) => void;
|
|
@@ -168,15 +161,9 @@ export declare const MdmModuleActionsContext: import("@fluentui/react-context-se
|
|
|
168
161
|
setHistoryDiff: (payload: HistoryDiff) => void;
|
|
169
162
|
setHistorySlice: (payload: HistorySlice) => void;
|
|
170
163
|
updateSearchNavigationDataFields: (payload: Partial<SearchNavigationData>) => void;
|
|
171
|
-
openPerspective: (payload:
|
|
172
|
-
perspectiveId: string;
|
|
173
|
-
viewId: string;
|
|
174
|
-
}) => void;
|
|
164
|
+
openPerspective: (payload: string) => void;
|
|
175
165
|
entityDeletionFinished: () => void;
|
|
176
|
-
loadEntity: (payload:
|
|
177
|
-
viewId?: string;
|
|
178
|
-
uri: string;
|
|
179
|
-
}) => void;
|
|
166
|
+
loadEntity: (payload: string) => void;
|
|
180
167
|
updateSearchNavigationDataOnMerge: (payload: {
|
|
181
168
|
winnerUri: string;
|
|
182
169
|
losersUris: string[];
|
|
@@ -211,8 +198,8 @@ export declare const MdmModuleValuesContext: import("@fluentui/react-context-sel
|
|
|
211
198
|
pivotingAttributes: PivotingAttribute[];
|
|
212
199
|
dateMask: string;
|
|
213
200
|
dateTimeMask: string;
|
|
214
|
-
|
|
215
|
-
|
|
201
|
+
attributesPresentation: AttributesPresentation;
|
|
202
|
+
maxValuesInResponse: number;
|
|
216
203
|
attributesSortingStrategy: SortingStrategy;
|
|
217
204
|
lookupAutocomplete: DependentLookupsConfig;
|
|
218
205
|
modifiedEntities: Record<string, Entity>;
|
|
@@ -243,7 +230,8 @@ export declare const MdmModuleValuesContext: import("@fluentui/react-context-sel
|
|
|
243
230
|
searchProviderData: SearchProviderData;
|
|
244
231
|
isWorkflowEnabled: boolean;
|
|
245
232
|
isCollaborationEnabled: boolean;
|
|
246
|
-
uiConfigLayout:
|
|
233
|
+
uiConfigLayout: LayoutConfig;
|
|
234
|
+
uiConfigProfile: ProfileConfigItem[];
|
|
247
235
|
}>>;
|
|
248
236
|
export declare const MdmModuleListenersContext: import("@fluentui/react-context-selector").Context<Partial<{
|
|
249
237
|
expandInvalidRelatonsListener: (callback: () => void) => (action: any) => void;
|
|
@@ -17,8 +17,8 @@ export declare const useMdmShowEntityId: () => boolean;
|
|
|
17
17
|
export declare const useMdmPivotingAttributes: () => import("@reltio/mdm-sdk").PivotingAttribute[];
|
|
18
18
|
export declare const useMdmDateMask: () => string;
|
|
19
19
|
export declare const useMdmDateTimeMask: () => string;
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
20
|
+
export declare const useMdmAttributesPresentation: () => import("@reltio/mdm-sdk").AttributesPresentation;
|
|
21
|
+
export declare const useMdmMaxValuesInResponse: () => number;
|
|
22
22
|
export declare const useMdmAttributesSortingStrategy: () => import("@reltio/mdm-sdk").SortingStrategy;
|
|
23
23
|
export declare const useMdmLookupAutocomplete: () => import("@reltio/mdm-sdk").DependentLookupsConfig;
|
|
24
24
|
export declare const useMdmModifiedEntities: () => Record<string, import("@reltio/mdm-sdk").Entity>;
|
|
@@ -86,7 +86,6 @@ export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent"
|
|
|
86
86
|
requestNextPageOfAttributeValues: (payload: import("@reltio/mdm-sdk").RequestNextPageOfAttributeValuesPayload) => void;
|
|
87
87
|
openEntity: (payload: {
|
|
88
88
|
uri: string;
|
|
89
|
-
viewId: string;
|
|
90
89
|
source?: string;
|
|
91
90
|
screen?: string;
|
|
92
91
|
}) => void;
|
|
@@ -113,15 +112,9 @@ export declare const useMdmAction: <T extends "openSearch" | "openHistoryEvent"
|
|
|
113
112
|
setHistoryDiff: (payload: import("@reltio/mdm-sdk").HistoryDiff) => void;
|
|
114
113
|
setHistorySlice: (payload: import("@reltio/mdm-sdk").HistorySlice) => void;
|
|
115
114
|
updateSearchNavigationDataFields: (payload: Partial<import("@reltio/mdm-sdk").SearchNavigationData>) => void;
|
|
116
|
-
openPerspective: (payload:
|
|
117
|
-
perspectiveId: string;
|
|
118
|
-
viewId: string;
|
|
119
|
-
}) => void;
|
|
115
|
+
openPerspective: (payload: string) => void;
|
|
120
116
|
entityDeletionFinished: () => void;
|
|
121
|
-
loadEntity: (payload:
|
|
122
|
-
viewId?: string;
|
|
123
|
-
uri: string;
|
|
124
|
-
}) => void;
|
|
117
|
+
loadEntity: (payload: string) => void;
|
|
125
118
|
updateSearchNavigationDataOnMerge: (payload: {
|
|
126
119
|
winnerUri: string;
|
|
127
120
|
losersUris: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useMdmIsWorkflowEnabled = exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.
|
|
3
|
+
exports.useMdmIsWorkflowEnabled = exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.useMdmMaxValuesInResponse = exports.useMdmAttributesPresentation = exports.useMdmDateTimeMask = exports.useMdmDateMask = exports.useMdmPivotingAttributes = exports.useMdmShowEntityId = exports.useMdmImageAttributesFieldsOrder = exports.useMdmCollaborationPath = exports.useMdmApiPath = exports.useMdmReltioPath = exports.useMdmImageServicePath = exports.useMdmWorkflowPath = exports.useMdmServicesPath = exports.useMdmDtssPath = exports.useMdmUiPath = exports.useMdmAbsoluteImagePath = exports.useMdmExportPath = exports.useMdmWorkflowEnvironmentUrl = exports.useMdmUiError = exports.useMdmAutoCloseInterval = void 0;
|
|
4
4
|
exports.useMdmListener = exports.useMdmAction = exports.useMdmAuthoringItemsByEntityType = exports.useMdmGlobalSearchRequestOptions = exports.useMdmDependentLookupEditorContext = exports.useMdmRelationsDrafts = exports.useMdmAllRelationsToAddAndEdit = exports.useMdmDependentLookupsStructureNode = exports.useMdmActiveErrorsForAttributesPager = exports.useMdmDependentLookupEditorState = exports.useMdmInitialConnection = exports.useMdmInitialConnectionTempEntity = exports.useMdmModifiedEntity = exports.useMdmModifiedEntityDefaultProfilePic = exports.useMdmProfileErrors = void 0;
|
|
5
5
|
var react_context_selector_1 = require("@fluentui/react-context-selector");
|
|
6
6
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
@@ -56,12 +56,12 @@ var useMdmDateMask = function () { return useMdmModuleValuesContext(function (co
|
|
|
56
56
|
exports.useMdmDateMask = useMdmDateMask;
|
|
57
57
|
var useMdmDateTimeMask = function () { return useMdmModuleValuesContext(function (context) { return context.dateTimeMask; }); };
|
|
58
58
|
exports.useMdmDateTimeMask = useMdmDateTimeMask;
|
|
59
|
-
var
|
|
60
|
-
return useMdmModuleValuesContext(function (context) { return context.
|
|
59
|
+
var useMdmAttributesPresentation = function () {
|
|
60
|
+
return useMdmModuleValuesContext(function (context) { return context.attributesPresentation; });
|
|
61
61
|
};
|
|
62
|
-
exports.
|
|
63
|
-
var
|
|
64
|
-
exports.
|
|
62
|
+
exports.useMdmAttributesPresentation = useMdmAttributesPresentation;
|
|
63
|
+
var useMdmMaxValuesInResponse = function () { return useMdmModuleValuesContext(function (context) { return context.maxValuesInResponse; }); };
|
|
64
|
+
exports.useMdmMaxValuesInResponse = useMdmMaxValuesInResponse;
|
|
65
65
|
var useMdmAttributesSortingStrategy = function () {
|
|
66
66
|
return useMdmModuleValuesContext(function (context) { return context.attributesSortingStrategy; });
|
|
67
67
|
};
|
|
@@ -202,7 +202,7 @@ var useMdmGlobalSearchRequestOptions = function (omittingFields) {
|
|
|
202
202
|
exports.useMdmGlobalSearchRequestOptions = useMdmGlobalSearchRequestOptions;
|
|
203
203
|
var useMdmAuthoringItemsByEntityType = function (entityTypeUri) {
|
|
204
204
|
return useMdmModuleValuesContext(function (context) {
|
|
205
|
-
return (0, mdm_sdk_1.getAuthoringItemsFromLayoutByEntityType)(context.
|
|
205
|
+
return (0, mdm_sdk_1.getAuthoringItemsFromLayoutByEntityType)(context.uiConfigProfile, entityTypeUri);
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
208
|
exports.useMdmAuthoringItemsByEntityType = useMdmAuthoringItemsByEntityType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { MdmModuleProvider } from './provider';
|
|
2
|
-
export { useMdmAutoCloseInterval, useMdmUiError, useMdmWorkflowEnvironmentUrl, useMdmExportPath, useMdmAbsoluteImagePath, useMdmUiPath, useMdmDtssPath, useMdmServicesPath, useMdmWorkflowPath, useMdmImageServicePath, useMdmReltioPath, useMdmApiPath, useMdmCollaborationPath, useMdmImageAttributesFieldsOrder, useMdmShowEntityId, useMdmPivotingAttributes, useMdmDateMask, useMdmDateTimeMask,
|
|
2
|
+
export { useMdmAutoCloseInterval, useMdmUiError, useMdmWorkflowEnvironmentUrl, useMdmExportPath, useMdmAbsoluteImagePath, useMdmUiPath, useMdmDtssPath, useMdmServicesPath, useMdmWorkflowPath, useMdmImageServicePath, useMdmReltioPath, useMdmApiPath, useMdmCollaborationPath, useMdmImageAttributesFieldsOrder, useMdmShowEntityId, useMdmPivotingAttributes, useMdmDateMask, useMdmDateTimeMask, useMdmAttributesPresentation, useMdmMaxValuesInResponse, useMdmAttributesSortingStrategy, useMdmLookupAutocomplete, useMdmModifiedEntities, useMdmEntity, useMdmEntityUri, useMdmEntityWithDiff, useMdmEntityUriWithDataTenant, useMdmMode, useMdmIsViewMode, useMdmIsEditableMode, useMdmHistoryDiff, useMdmHistoryMode, useMdmHistorySlice, useMdmHistoryEvent, useMdmProfileLastLoadedTime, useMdmLookups, useMdmDependentLookups, useMdmMetadata, useMdmUser, useMdmUsername, useMdmUserRoles, useMdmTenantObject, useMdmTenant, useMdmTenantName, useMdmEnvironment, useMdmDataTenants, useMdmSearchNavigationData, useMdmSearchProviderData, useMdmIsCollaborationEnabled, useMdmIsWorkflowEnabled, useMdmProfileErrors, useMdmRelationsDrafts, useMdmModifiedEntityDefaultProfilePic, useMdmModifiedEntity, useMdmInitialConnectionTempEntity, useMdmInitialConnection, useMdmDependentLookupEditorState, useMdmActiveErrorsForAttributesPager, useMdmDependentLookupsStructureNode, useMdmAllRelationsToAddAndEdit, useMdmDependentLookupEditorContext, useMdmGlobalSearchRequestOptions, useMdmAuthoringItemsByEntityType, useMdmAction, useMdmListener } from './hooks';
|
|
3
3
|
export type { MdmModuleActionsContextProps, MdmModuleValuesContextProps, MdmModuleListenersContextProps } from './context';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.
|
|
3
|
+
exports.useMdmIsCollaborationEnabled = exports.useMdmSearchProviderData = exports.useMdmSearchNavigationData = exports.useMdmDataTenants = exports.useMdmEnvironment = exports.useMdmTenantName = exports.useMdmTenant = exports.useMdmTenantObject = exports.useMdmUserRoles = exports.useMdmUsername = exports.useMdmUser = exports.useMdmMetadata = exports.useMdmDependentLookups = exports.useMdmLookups = exports.useMdmProfileLastLoadedTime = exports.useMdmHistoryEvent = exports.useMdmHistorySlice = exports.useMdmHistoryMode = exports.useMdmHistoryDiff = exports.useMdmIsEditableMode = exports.useMdmIsViewMode = exports.useMdmMode = exports.useMdmEntityUriWithDataTenant = exports.useMdmEntityWithDiff = exports.useMdmEntityUri = exports.useMdmEntity = exports.useMdmModifiedEntities = exports.useMdmLookupAutocomplete = exports.useMdmAttributesSortingStrategy = exports.useMdmMaxValuesInResponse = exports.useMdmAttributesPresentation = exports.useMdmDateTimeMask = exports.useMdmDateMask = exports.useMdmPivotingAttributes = exports.useMdmShowEntityId = exports.useMdmImageAttributesFieldsOrder = exports.useMdmCollaborationPath = exports.useMdmApiPath = exports.useMdmReltioPath = exports.useMdmImageServicePath = exports.useMdmWorkflowPath = exports.useMdmServicesPath = exports.useMdmDtssPath = exports.useMdmUiPath = exports.useMdmAbsoluteImagePath = exports.useMdmExportPath = exports.useMdmWorkflowEnvironmentUrl = exports.useMdmUiError = exports.useMdmAutoCloseInterval = exports.MdmModuleProvider = void 0;
|
|
4
4
|
exports.useMdmListener = exports.useMdmAction = exports.useMdmAuthoringItemsByEntityType = exports.useMdmGlobalSearchRequestOptions = exports.useMdmDependentLookupEditorContext = exports.useMdmAllRelationsToAddAndEdit = exports.useMdmDependentLookupsStructureNode = exports.useMdmActiveErrorsForAttributesPager = exports.useMdmDependentLookupEditorState = exports.useMdmInitialConnection = exports.useMdmInitialConnectionTempEntity = exports.useMdmModifiedEntity = exports.useMdmModifiedEntityDefaultProfilePic = exports.useMdmRelationsDrafts = exports.useMdmProfileErrors = exports.useMdmIsWorkflowEnabled = void 0;
|
|
5
5
|
var provider_1 = require("./provider");
|
|
6
6
|
Object.defineProperty(exports, "MdmModuleProvider", { enumerable: true, get: function () { return provider_1.MdmModuleProvider; } });
|
|
@@ -23,8 +23,8 @@ Object.defineProperty(exports, "useMdmShowEntityId", { enumerable: true, get: fu
|
|
|
23
23
|
Object.defineProperty(exports, "useMdmPivotingAttributes", { enumerable: true, get: function () { return hooks_1.useMdmPivotingAttributes; } });
|
|
24
24
|
Object.defineProperty(exports, "useMdmDateMask", { enumerable: true, get: function () { return hooks_1.useMdmDateMask; } });
|
|
25
25
|
Object.defineProperty(exports, "useMdmDateTimeMask", { enumerable: true, get: function () { return hooks_1.useMdmDateTimeMask; } });
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "useMdmAttributesPresentation", { enumerable: true, get: function () { return hooks_1.useMdmAttributesPresentation; } });
|
|
27
|
+
Object.defineProperty(exports, "useMdmMaxValuesInResponse", { enumerable: true, get: function () { return hooks_1.useMdmMaxValuesInResponse; } });
|
|
28
28
|
Object.defineProperty(exports, "useMdmAttributesSortingStrategy", { enumerable: true, get: function () { return hooks_1.useMdmAttributesSortingStrategy; } });
|
|
29
29
|
Object.defineProperty(exports, "useMdmLookupAutocomplete", { enumerable: true, get: function () { return hooks_1.useMdmLookupAutocomplete; } });
|
|
30
30
|
Object.defineProperty(exports, "useMdmModifiedEntities", { enumerable: true, get: function () { return hooks_1.useMdmModifiedEntities; } });
|
package/cjs/contexts/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { AsyncMountContext } from './AsyncMountContext';
|
|
2
2
|
export { HistoryDiffContext } from './HistoryAppearanceContext';
|
|
3
3
|
export { PopupBoundariesContext } from './PopupBoundariesContext';
|
|
4
|
-
export { ViewIdContext } from './ViewIdContext';
|
|
5
4
|
export { BlockImageGalleryDialogContext } from './BlockImageGalleryDialogContext';
|
|
6
5
|
export { CollaborationContext, CollaborationContextProvider } from './CollaborationContext';
|
|
7
6
|
export { UsersContext } from './UsersContext';
|
package/cjs/contexts/index.js
CHANGED
|
@@ -14,16 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ConfigPermissionsContextProvider = exports.ConfigPermissionsContext = exports.useActionsHook = exports.ActionsHookProvider = exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.
|
|
18
|
-
exports.useReloadData = exports.ReloadDataProvider =
|
|
17
|
+
exports.useAttributeValueConfigPermissions = exports.ConfigPermissionsContextProvider = exports.ConfigPermissionsContext = exports.useActionsHook = exports.ActionsHookProvider = exports.PageRequestsAbortingContext = exports.DependentLookupAutopopulationContext = exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.isHighlightedAttributeType = exports.isHighlightedErrorType = exports.ScrollType = exports.ScrollToElementProvider = exports.ScrollToElementContext = exports.SearchValueContext = exports.InterceptHandlersContext = exports.HighlightedValuesContext = exports.SnackbarContext = exports.SearchFiltersContext = exports.useReloadFacet = exports.ReloadFacetProvider = exports.useReloadAllFacets = exports.SandboxAPIContext = exports.EntityContext = exports.RelatedObjectUrisContext = exports.WorkflowTasksContext = exports.useEntityLoadingIndication = exports.EntityLoadingIndicationProvider = exports.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.usePerspectivesSettings = exports.PerspectivesSettingsContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
18
|
+
exports.useReloadData = exports.ReloadDataProvider = void 0;
|
|
19
19
|
var AsyncMountContext_1 = require("./AsyncMountContext");
|
|
20
20
|
Object.defineProperty(exports, "AsyncMountContext", { enumerable: true, get: function () { return AsyncMountContext_1.AsyncMountContext; } });
|
|
21
21
|
var HistoryAppearanceContext_1 = require("./HistoryAppearanceContext");
|
|
22
22
|
Object.defineProperty(exports, "HistoryDiffContext", { enumerable: true, get: function () { return HistoryAppearanceContext_1.HistoryDiffContext; } });
|
|
23
23
|
var PopupBoundariesContext_1 = require("./PopupBoundariesContext");
|
|
24
24
|
Object.defineProperty(exports, "PopupBoundariesContext", { enumerable: true, get: function () { return PopupBoundariesContext_1.PopupBoundariesContext; } });
|
|
25
|
-
var ViewIdContext_1 = require("./ViewIdContext");
|
|
26
|
-
Object.defineProperty(exports, "ViewIdContext", { enumerable: true, get: function () { return ViewIdContext_1.ViewIdContext; } });
|
|
27
25
|
var BlockImageGalleryDialogContext_1 = require("./BlockImageGalleryDialogContext");
|
|
28
26
|
Object.defineProperty(exports, "BlockImageGalleryDialogContext", { enumerable: true, get: function () { return BlockImageGalleryDialogContext_1.BlockImageGalleryDialogContext; } });
|
|
29
27
|
var CollaborationContext_1 = require("./CollaborationContext");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { CustomActionTask, CustomActionTaskParams,
|
|
1
|
+
import { CustomActionTask, CustomActionTaskParams, CustomActionConfig, CustomActionViewConfig, CustomScriptExtension, Entity } from '@reltio/mdm-sdk';
|
|
2
2
|
export type ProcessRequestParams = {
|
|
3
3
|
params: CustomActionTaskParams;
|
|
4
4
|
permissions?: string[];
|
|
5
5
|
worker: Worker;
|
|
6
6
|
metadata: any;
|
|
7
|
-
config:
|
|
7
|
+
config: CustomActionConfig | CustomActionViewConfig | CustomScriptExtension;
|
|
8
8
|
user: any;
|
|
9
9
|
apiPath: string;
|
|
10
10
|
workflowPath?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
type Config = CustomActionViewConfig |
|
|
2
|
+
import { CustomActionConfig, CustomActionViewConfig } from '@reltio/mdm-sdk';
|
|
3
|
+
type Config = CustomActionViewConfig | CustomActionConfig;
|
|
4
4
|
export declare const useAPI: (config?: Config) => {
|
|
5
5
|
html: HTMLElement;
|
|
6
6
|
visible: boolean;
|
|
@@ -9,7 +9,7 @@ var useReadableSearchState = function (searchState) {
|
|
|
9
9
|
var lookupsListResolved = (0, contexts_1.useMdmAction)('lookupsListResolved');
|
|
10
10
|
var metadata = (0, contexts_1.useMdmMetadata)();
|
|
11
11
|
var dataTenants = (0, contexts_1.useMdmDataTenants)();
|
|
12
|
-
var
|
|
12
|
+
var attributesPresentation = (0, contexts_1.useMdmAttributesPresentation)();
|
|
13
13
|
var lookups = (0, contexts_1.useMdmLookups)();
|
|
14
14
|
var map = searchState.map;
|
|
15
15
|
var keyword = (0, mdm_sdk_1.getKeywordFromSearchState)(searchState);
|
|
@@ -23,6 +23,6 @@ var useReadableSearchState = function (searchState) {
|
|
|
23
23
|
}), mdm_sdk_1.resolveLookupsList, (0, ramda_1.andThen)(lookupsListResolved))(unresolvedLookups);
|
|
24
24
|
}
|
|
25
25
|
}, [searchState]); // eslint-disable-line
|
|
26
|
-
return (0, mdm_sdk_1.buildReadableQueryToString)(metadata,
|
|
26
|
+
return (0, mdm_sdk_1.buildReadableQueryToString)(metadata, attributesPresentation, lookups, groups, keyword, map);
|
|
27
27
|
};
|
|
28
28
|
exports.useReadableSearchState = useReadableSearchState;
|
|
@@ -2,17 +2,17 @@ import Chip from '@mui/material/Chip';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { checkIfOptionHasValues, formatDataTypeValue, getFilterValueLabel, mapFilterValue } from '@reltio/mdm-sdk';
|
|
4
4
|
import ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';
|
|
5
|
-
import {
|
|
5
|
+
import { useMdmAttributesPresentation, useMdmDateMask, useMdmDateTimeMask } from '../../../../contexts';
|
|
6
6
|
import { useStyles } from './styles';
|
|
7
7
|
var FilterChip = function (_a) {
|
|
8
8
|
var filterOption = _a.filterOption, filterValue = _a.filterValue, onDelete = _a.onDelete, dataTypeDefinition = _a.dataTypeDefinition;
|
|
9
9
|
var styles = useStyles();
|
|
10
|
-
var
|
|
10
|
+
var attributesPresentation = useMdmAttributesPresentation();
|
|
11
11
|
var dateMask = useMdmDateMask();
|
|
12
12
|
var dateTimeMask = useMdmDateTimeMask();
|
|
13
13
|
var canFilterAcceptValues = checkIfOptionHasValues(filterOption.value);
|
|
14
14
|
var optionLabel = filterOption.label + (canFilterAcceptValues ? ': ' : '');
|
|
15
|
-
var formatValue = formatDataTypeValue({
|
|
15
|
+
var formatValue = formatDataTypeValue({ attributesPresentation: attributesPresentation, dataTypeDefinition: dataTypeDefinition, dateMask: dateMask, dateTimeMask: dateTimeMask });
|
|
16
16
|
var convertedValue = mapFilterValue(formatValue, filterValue);
|
|
17
17
|
var filterLabel = canFilterAcceptValues ? getFilterValueLabel(filterOption.value, convertedValue) : '';
|
|
18
18
|
return (React.createElement(Chip, { label: React.createElement(ExpandedValueTooltip, { value: optionLabel + filterLabel },
|
|
@@ -4,15 +4,15 @@ import moment from 'moment';
|
|
|
4
4
|
import { formatDataTypeValue, isAttributeValueLink, addProtocolToLink } from '@reltio/mdm-sdk';
|
|
5
5
|
import Link from '@mui/material/Link';
|
|
6
6
|
import SearchHighlighter from '../SearchHighlighter/SearchHighlighter';
|
|
7
|
-
import {
|
|
7
|
+
import { useMdmAttributesPresentation, useMdmDateMask, useMdmDateTimeMask } from '../../contexts';
|
|
8
8
|
var DataTypeValue = function (_a) {
|
|
9
9
|
var _b = _a.value, value = _b === void 0 ? null : _b, dataTypeDefinition = _a.dataTypeDefinition, _c = _a.rich, rich = _c === void 0 ? true : _c;
|
|
10
10
|
var localeDateFormat = moment.localeData().longDateFormat('L');
|
|
11
11
|
var localeTimeFormat = moment.localeData().longDateFormat('LTS');
|
|
12
|
-
var
|
|
12
|
+
var attributesPresentation = useMdmAttributesPresentation();
|
|
13
13
|
var dateMask = useMdmDateMask() || localeDateFormat;
|
|
14
14
|
var dateTimeMask = useMdmDateTimeMask() || localeDateFormat + ' ' + localeTimeFormat;
|
|
15
|
-
var formattedValue = formatDataTypeValue({
|
|
15
|
+
var formattedValue = formatDataTypeValue({ attributesPresentation: attributesPresentation, dataTypeDefinition: dataTypeDefinition, dateMask: dateMask, dateTimeMask: dateTimeMask }, value);
|
|
16
16
|
return rich && isAttributeValueLink(dataTypeDefinition, value) ? (React.createElement(Link, { target: "_blank", href: addProtocolToLink(formattedValue), underline: "none" },
|
|
17
17
|
React.createElement(SearchHighlighter, { text: formattedValue }))) : (React.createElement(SearchHighlighter, { text: formattedValue }));
|
|
18
18
|
};
|
|
@@ -3,5 +3,5 @@ declare const EntityUriLink: React.ForwardRefExoticComponent<Pick<Omit<React.HTM
|
|
|
3
3
|
value: string;
|
|
4
4
|
screen?: string;
|
|
5
5
|
shouldOpenInNewTab?: boolean;
|
|
6
|
-
}, "value" | "label" | "id" | "step" | "type" | "name" | "hidden" | "content" | "max" | "open" | "title" | "data" | "list" | "scope" | "key" | "children" | "default" | "defaultValue" | "required" | "size" | "method" | "headers" | "start" | "prefix" | "action" | "width" | "height" | "
|
|
6
|
+
}, "value" | "label" | "id" | "step" | "type" | "name" | "hidden" | "content" | "max" | "open" | "title" | "data" | "list" | "scope" | "key" | "children" | "default" | "defaultValue" | "required" | "size" | "method" | "headers" | "start" | "prefix" | "action" | "width" | "height" | "pattern" | "summary" | "integrity" | "results" | "cite" | "form" | "slot" | "span" | "style" | "color" | "translate" | "screen" | "wrap" | "multiple" | "disabled" | "className" | "lang" | "media" | "min" | "role" | "tabIndex" | "crossOrigin" | "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" | "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" | "classID" | "useMap" | "wmode" | "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" | "htmlFor" | "as" | "hrefLang" | "rel" | "sizes" | "charSet" | "cellPadding" | "cellSpacing" | "selected" | "src" | "srcSet" | "autoComplete" | "autoFocus" | "dateTime" | "manifest" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "acceptCharset" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "challenge" | "keyType" | "keyParams" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "colSpan" | "rowSpan" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "shouldOpenInNewTab"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
7
7
|
export default EntityUriLink;
|
|
@@ -21,22 +21,21 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React, { forwardRef, useCallback, useContext } from 'react';
|
|
24
|
-
import {
|
|
24
|
+
import { UrlGeneratorsContext, useMdmUiPath, useMdmAction } from '../../contexts';
|
|
25
25
|
import { isControlOrCommandPressed } from '../../core';
|
|
26
26
|
var EntityUriLink = forwardRef(function (_a, ref) {
|
|
27
27
|
var value = _a.value, children = _a.children, screen = _a.screen, className = _a.className, _b = _a.shouldOpenInNewTab, shouldOpenInNewTab = _b === void 0 ? false : _b, otherProps = __rest(_a, ["value", "children", "screen", "className", "shouldOpenInNewTab"]);
|
|
28
|
-
var viewId = useContext(ViewIdContext);
|
|
29
28
|
var generateEntityUrl = useContext(UrlGeneratorsContext).generateEntityUrl;
|
|
30
29
|
var openEntity = useMdmAction('openEntity');
|
|
31
30
|
var uiPath = useMdmUiPath();
|
|
32
31
|
var generateEntityUrlByUri = function (uri) { return generateEntityUrl({ uiPath: uiPath, uri: uri, screen: screen }); };
|
|
33
32
|
var handleClick = useCallback(function (e) {
|
|
34
33
|
if (!isControlOrCommandPressed(e)) {
|
|
35
|
-
openEntity({ uri: value,
|
|
34
|
+
openEntity({ uri: value, screen: screen });
|
|
36
35
|
e.preventDefault();
|
|
37
36
|
}
|
|
38
37
|
e.stopPropagation();
|
|
39
|
-
}, [openEntity, screen, value
|
|
38
|
+
}, [openEntity, screen, value]);
|
|
40
39
|
return (React.createElement("a", __assign({ ref: ref, href: generateEntityUrlByUri(value), onClick: shouldOpenInNewTab ? undefined : handleClick, target: shouldOpenInNewTab ? '_blank' : '_self', className: className }, otherProps), children));
|
|
41
40
|
});
|
|
42
41
|
EntityUriLink.displayName = 'EntityUriLink';
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
type NodeTitleProps = {
|
|
3
3
|
title: string;
|
|
4
4
|
entityUri: string;
|
|
5
|
-
viewId: string;
|
|
6
5
|
isSelected?: boolean;
|
|
7
6
|
anchorEl?: HTMLElement;
|
|
8
7
|
withEntityDetails?: boolean;
|
|
9
8
|
};
|
|
10
|
-
export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri,
|
|
9
|
+
export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri, anchorEl, withEntityDetails }: NodeTitleProps) => JSX.Element;
|
|
11
10
|
export {};
|