@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.
- 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 +3 -3
- 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
|
@@ -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;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useCallback, useContext } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkflowTasksContext, useMdmAction, useMdmEntityUri } from '../../../contexts';
|
|
3
3
|
export var useWorkflowDefaultActionSuccessHandler = function () {
|
|
4
4
|
var loadTasks = (useContext(WorkflowTasksContext) || {}).loadTasks;
|
|
5
|
-
var viewId = useContext(ViewIdContext);
|
|
6
5
|
var loadEntity = useMdmAction('loadEntity');
|
|
7
6
|
var entityDeletionFinished = useMdmAction('entityDeletionFinished');
|
|
8
7
|
var entityUri = useMdmEntityUri();
|
|
@@ -12,8 +11,8 @@ export var useWorkflowDefaultActionSuccessHandler = function () {
|
|
|
12
11
|
}
|
|
13
12
|
else {
|
|
14
13
|
// entity refreshing
|
|
15
|
-
loadEntity(
|
|
14
|
+
loadEntity(entityUri);
|
|
16
15
|
loadTasks === null || loadTasks === void 0 ? void 0 : loadTasks();
|
|
17
16
|
}
|
|
18
|
-
}, [entityUri, loadTasks,
|
|
17
|
+
}, [entityUri, loadTasks, loadEntity, entityDeletionFinished]);
|
|
19
18
|
};
|
|
@@ -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[];
|
|
@@ -34,10 +34,10 @@ export var useMdmShowEntityId = function () { return useMdmModuleValuesContext(f
|
|
|
34
34
|
export var useMdmPivotingAttributes = function () { return useMdmModuleValuesContext(function (context) { return context.pivotingAttributes; }); };
|
|
35
35
|
export var useMdmDateMask = function () { return useMdmModuleValuesContext(function (context) { return context.dateMask; }); };
|
|
36
36
|
export var useMdmDateTimeMask = function () { return useMdmModuleValuesContext(function (context) { return context.dateTimeMask; }); };
|
|
37
|
-
export var
|
|
38
|
-
return useMdmModuleValuesContext(function (context) { return context.
|
|
37
|
+
export var useMdmAttributesPresentation = function () {
|
|
38
|
+
return useMdmModuleValuesContext(function (context) { return context.attributesPresentation; });
|
|
39
39
|
};
|
|
40
|
-
export var
|
|
40
|
+
export var useMdmMaxValuesInResponse = function () { return useMdmModuleValuesContext(function (context) { return context.maxValuesInResponse; }); };
|
|
41
41
|
export var useMdmAttributesSortingStrategy = function () {
|
|
42
42
|
return useMdmModuleValuesContext(function (context) { return context.attributesSortingStrategy; });
|
|
43
43
|
};
|
|
@@ -136,7 +136,7 @@ export var useMdmGlobalSearchRequestOptions = function (omittingFields) {
|
|
|
136
136
|
};
|
|
137
137
|
export var useMdmAuthoringItemsByEntityType = function (entityTypeUri) {
|
|
138
138
|
return useMdmModuleValuesContext(function (context) {
|
|
139
|
-
return getAuthoringItemsFromLayoutByEntityType(context.
|
|
139
|
+
return getAuthoringItemsFromLayoutByEntityType(context.uiConfigProfile, entityTypeUri);
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
142
|
export var useMdmAction = function (action) {
|
|
@@ -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,2 +1,2 @@
|
|
|
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';
|
package/esm/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/esm/contexts/index.js
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';
|
|
@@ -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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
import { andThen, chain, pipe } from 'ramda';
|
|
3
3
|
import { buildReadableQueryToString, getKeywordFromSearchState, getUnresolvedLookupsListFromSearchGroups, resolveLookupsList, getGroupsFromSearchState } from '@reltio/mdm-sdk';
|
|
4
|
-
import { useMdmAction,
|
|
4
|
+
import { useMdmAction, useMdmAttributesPresentation, useMdmDataTenants, useMdmLookups, useMdmMetadata } from '../contexts';
|
|
5
5
|
export var useReadableSearchState = function (searchState) {
|
|
6
6
|
var lookupsListResolved = useMdmAction('lookupsListResolved');
|
|
7
7
|
var metadata = useMdmMetadata();
|
|
8
8
|
var dataTenants = useMdmDataTenants();
|
|
9
|
-
var
|
|
9
|
+
var attributesPresentation = useMdmAttributesPresentation();
|
|
10
10
|
var lookups = useMdmLookups();
|
|
11
11
|
var map = searchState.map;
|
|
12
12
|
var keyword = getKeywordFromSearchState(searchState);
|
|
@@ -20,5 +20,5 @@ export var useReadableSearchState = function (searchState) {
|
|
|
20
20
|
}), resolveLookupsList, andThen(lookupsListResolved))(unresolvedLookups);
|
|
21
21
|
}
|
|
22
22
|
}, [searchState]); // eslint-disable-line
|
|
23
|
-
return buildReadableQueryToString(metadata,
|
|
23
|
+
return buildReadableQueryToString(metadata, attributesPresentation, lookups, groups, keyword, map);
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1747",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-sdk": "^1.4.1730",
|
|
11
11
|
"classnames": "^2.2.5",
|
|
12
12
|
"d3-cloud": "^1.2.5",
|
|
13
13
|
"d3-geo": "^2.0.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"prop-types": "^15.6.2",
|
|
20
20
|
"ramda": "^0.28.0",
|
|
21
21
|
"react-autosuggest": "^9.4.3",
|
|
22
|
-
"react-components": "bitbucket:reltio-ondemand/react-components#v3.
|
|
22
|
+
"react-components": "bitbucket:reltio-ondemand/react-components#v3.25.0",
|
|
23
23
|
"react-dnd": "^9.4.0",
|
|
24
24
|
"react-dnd-html5-backend": "^10.0.2",
|
|
25
25
|
"react-grid-layout": "1.4.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ViewIdContext = void 0;
|
|
7
|
-
var react_1 = __importDefault(require("react"));
|
|
8
|
-
exports.ViewIdContext = react_1.default.createContext(null);
|
|
9
|
-
exports.ViewIdContext.displayName = 'ViewIdContext';
|