@reltio/components 1.4.1603 → 1.4.1604
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/HOCs/index.d.ts +2 -0
- package/cjs/HOCs/index.js +5 -1
- package/cjs/HOCs/withDateRangeSelector/helpers.d.ts +8 -0
- package/cjs/HOCs/withDateRangeSelector/helpers.js +21 -0
- package/cjs/HOCs/withDateRangeSelector/styles.d.ts +1 -0
- package/cjs/HOCs/withDateRangeSelector/styles.js +18 -0
- package/cjs/HOCs/withDateRangeSelector/withDateRangeSelector.d.ts +19 -0
- package/cjs/HOCs/withDateRangeSelector/withDateRangeSelector.js +114 -0
- package/cjs/HOCs/withDragHandle/styles.d.ts +1 -0
- package/cjs/HOCs/withDragHandle/styles.js +43 -0
- package/cjs/HOCs/withDragHandle/withDragHandle.d.ts +6 -0
- package/cjs/HOCs/withDragHandle/withDragHandle.js +33 -0
- package/cjs/components/ActionButton/styles.d.ts +1 -1
- package/cjs/components/AttributeSelector/AttributeSelector.js +2 -2
- package/cjs/components/BasicTableView/BasicTablePagination/BasicTablePagination.d.ts +15 -26
- package/cjs/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +5 -16
- package/cjs/components/BasicTableView/BasicTablePagination/styles.d.ts +1 -1
- package/cjs/components/BasicTableView/BasicTablePagination/styles.js +20 -1
- package/cjs/components/BasicView/BasicView.d.ts +1 -1
- package/cjs/components/CollaborationItem/SendMessageArea/styles.d.ts +1 -1
- package/cjs/components/ConfirmationDialog/styles.d.ts +1 -1
- package/cjs/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/cjs/components/DateRangePicker/DateRangePicker.js +9 -12
- package/cjs/components/DateRangePicker/styles.d.ts +1 -1
- package/cjs/components/DateRangePicker/styles.js +3 -29
- package/cjs/components/DropDownMenuButton/styles.d.ts +1 -1
- package/cjs/components/DropDownSelector/styles.d.ts +1 -1
- package/cjs/components/FacetViewHeader/styles.js +0 -2
- package/cjs/components/ImageGalleryDialog/styles.d.ts +1 -1
- package/cjs/components/MetadataTypesSelector/styles.d.ts +1 -1
- package/cjs/components/ModeSwitcherSelect/styles.d.ts +1 -1
- package/cjs/components/MultipleInput/styles.d.ts +1 -1
- package/cjs/components/MultipliableSelect/styles.d.ts +1 -1
- package/cjs/components/Popper/Popper.d.ts +1 -1
- package/cjs/components/PopupWithArrow/styles.d.ts +1 -1
- package/cjs/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/cjs/components/ProfilesList/styles.d.ts +1 -1
- package/cjs/components/ReactSelect/MultiSelect/MultiSelect.d.ts +2 -0
- package/cjs/components/ReactSelect/MultiSelect/MultiSelect.js +2 -0
- package/cjs/components/ReltioGridLayout/styles.js +2 -2
- package/cjs/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.d.ts +2 -2
- package/cjs/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/cjs/components/SmallIconButton/index.d.ts +1 -1
- package/cjs/components/UserSelector/UserSelector.js +2 -2
- package/cjs/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +12 -7
- package/cjs/components/activityLog/ActivityFilterEditor/ActivitySelector.js +2 -2
- package/cjs/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +1 -1
- package/cjs/components/activityLog/ActivityFilterEditor/EntityTypesSelector.js +2 -2
- package/cjs/components/activityLog/ActivityFilterEditor/SourceSelector.js +2 -2
- package/cjs/components/activityLog/ActivityFilterEditor/styles.d.ts +2 -1
- package/cjs/components/activityLog/ActivityFilterEditor/styles.js +5 -5
- package/cjs/components/activityLog/ActivityLog/ActivityLog.d.ts +1 -7
- package/cjs/components/activityLog/ActivityLog/ActivityLog.js +10 -12
- package/cjs/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +7 -9
- package/cjs/components/activityLog/ActivityLog/items/ActivityItem/styles.d.ts +1 -1
- package/cjs/components/activityLog/ActivityLog/items/ActivityItem/styles.js +5 -4
- package/cjs/components/activityLog/ActivityLog/items/GroupItem/styles.js +2 -1
- package/cjs/components/activityLog/ActivityLog/styles.js +3 -2
- package/cjs/components/activityLog/ActivityLogFilter/styles.js +4 -3
- package/cjs/components/activityLog/activities/ActivityTitle/styles.js +1 -2
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/cjs/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/cjs/components/attributes/inline/SimpleAttributeEditor/styles.d.ts +1 -1
- package/cjs/components/commonReactSelectComponents/arrowIndicatorStyles.d.ts +1 -1
- package/cjs/components/editors/BooleanRadioEditor/styles.d.ts +1 -1
- package/cjs/components/editors/CustomDateRangeEditor/CustomDateRangeEditor.js +6 -9
- package/cjs/components/editors/CustomDateRangeEditor/styles.d.ts +1 -1
- package/cjs/components/editors/DateEditor/styles.d.ts +1 -1
- package/cjs/components/editors/DateRangeEditor/DateRangeEditor.d.ts +28 -17
- package/cjs/components/editors/DateRangeEditor/DateRangeEditor.js +24 -72
- package/cjs/components/editors/DateRangeEditor/styles.d.ts +1 -1
- package/cjs/components/editors/DateRangeEditor/styles.js +0 -12
- package/cjs/components/editors/TimestampEditor/styles.d.ts +1 -1
- package/cjs/components/history/DateRangeSelector/DateRangeSelector.js +1 -1
- package/cjs/components/history/HistoryActivitySelector/HistoryActivitySelector.d.ts +2 -1
- package/cjs/components/history/HistoryActivitySelector/HistoryActivitySelector.js +7 -4
- package/cjs/components/history/HistoryFilterButton/HistoryFilterButton.js +14 -9
- package/cjs/components/history/HistoryFilterButton/styles.d.ts +1 -1
- package/cjs/components/history/HistoryFilterButton/styles.js +8 -13
- package/cjs/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/cjs/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/cjs/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/esm/HOCs/index.d.ts +2 -0
- package/esm/HOCs/index.js +2 -0
- package/esm/HOCs/withDateRangeSelector/helpers.d.ts +8 -0
- package/esm/HOCs/withDateRangeSelector/helpers.js +17 -0
- package/esm/HOCs/withDateRangeSelector/styles.d.ts +1 -0
- package/esm/HOCs/withDateRangeSelector/styles.js +15 -0
- package/esm/HOCs/withDateRangeSelector/withDateRangeSelector.d.ts +19 -0
- package/esm/HOCs/withDateRangeSelector/withDateRangeSelector.js +86 -0
- package/esm/HOCs/withDragHandle/styles.d.ts +1 -0
- package/esm/HOCs/withDragHandle/styles.js +40 -0
- package/esm/HOCs/withDragHandle/withDragHandle.d.ts +6 -0
- package/esm/HOCs/withDragHandle/withDragHandle.js +28 -0
- package/esm/components/ActionButton/styles.d.ts +1 -1
- package/esm/components/AttributeSelector/AttributeSelector.js +2 -2
- package/esm/components/BasicTableView/BasicTablePagination/BasicTablePagination.d.ts +15 -26
- package/esm/components/BasicTableView/BasicTablePagination/BasicTablePagination.js +6 -17
- package/esm/components/BasicTableView/BasicTablePagination/styles.d.ts +1 -1
- package/esm/components/BasicTableView/BasicTablePagination/styles.js +20 -1
- package/esm/components/BasicView/BasicView.d.ts +1 -1
- package/esm/components/CollaborationItem/SendMessageArea/styles.d.ts +1 -1
- package/esm/components/ConfirmationDialog/styles.d.ts +1 -1
- package/esm/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/esm/components/DateRangePicker/DateRangePicker.js +9 -12
- package/esm/components/DateRangePicker/styles.d.ts +1 -1
- package/esm/components/DateRangePicker/styles.js +3 -29
- package/esm/components/DropDownMenuButton/styles.d.ts +1 -1
- package/esm/components/DropDownSelector/styles.d.ts +1 -1
- package/esm/components/FacetViewHeader/styles.js +0 -2
- package/esm/components/ImageGalleryDialog/styles.d.ts +1 -1
- package/esm/components/MetadataTypesSelector/styles.d.ts +1 -1
- package/esm/components/ModeSwitcherSelect/styles.d.ts +1 -1
- package/esm/components/MultipleInput/styles.d.ts +1 -1
- package/esm/components/MultipliableSelect/styles.d.ts +1 -1
- package/esm/components/Popper/Popper.d.ts +1 -1
- package/esm/components/PopupWithArrow/styles.d.ts +1 -1
- package/esm/components/ProfileBandNavigation/ProfileBandNavigationWidget.d.ts +1 -1
- package/esm/components/ProfilesList/styles.d.ts +1 -1
- package/esm/components/ReactSelect/MultiSelect/MultiSelect.d.ts +2 -0
- package/esm/components/ReactSelect/MultiSelect/MultiSelect.js +2 -0
- package/esm/components/ReltioGridLayout/styles.js +2 -2
- package/esm/components/ReltioMap/MapControls/TopRightMapControls/TopRightMapControls.d.ts +2 -2
- package/esm/components/SmallIconButton/SmallIconButton.d.ts +1 -1
- package/esm/components/SmallIconButton/index.d.ts +1 -1
- package/esm/components/UserSelector/UserSelector.js +2 -2
- package/esm/components/activityLog/ActivityFilterEditor/ActivityFilterEditor.js +12 -7
- package/esm/components/activityLog/ActivityFilterEditor/ActivitySelector.js +2 -2
- package/esm/components/activityLog/ActivityFilterEditor/DateRangeSelector.js +1 -1
- package/esm/components/activityLog/ActivityFilterEditor/EntityTypesSelector.js +2 -2
- package/esm/components/activityLog/ActivityFilterEditor/SourceSelector.js +2 -2
- package/esm/components/activityLog/ActivityFilterEditor/styles.d.ts +2 -1
- package/esm/components/activityLog/ActivityFilterEditor/styles.js +5 -5
- package/esm/components/activityLog/ActivityLog/ActivityLog.d.ts +1 -7
- package/esm/components/activityLog/ActivityLog/ActivityLog.js +10 -12
- package/esm/components/activityLog/ActivityLog/items/ActivityItem/ActivityItem.js +7 -9
- package/esm/components/activityLog/ActivityLog/items/ActivityItem/styles.d.ts +1 -1
- package/esm/components/activityLog/ActivityLog/items/ActivityItem/styles.js +5 -4
- package/esm/components/activityLog/ActivityLog/items/GroupItem/styles.js +2 -1
- package/esm/components/activityLog/ActivityLog/styles.js +3 -2
- package/esm/components/activityLog/ActivityLogFilter/styles.js +4 -3
- package/esm/components/activityLog/activities/ActivityTitle/styles.js +1 -2
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +1 -1
- package/esm/components/attributes/OvIcon/OvIcon.d.ts +1 -1
- package/esm/components/attributes/inline/SimpleAttributeEditor/styles.d.ts +1 -1
- package/esm/components/commonReactSelectComponents/arrowIndicatorStyles.d.ts +1 -1
- package/esm/components/editors/BooleanRadioEditor/styles.d.ts +1 -1
- package/esm/components/editors/CustomDateRangeEditor/CustomDateRangeEditor.js +6 -9
- package/esm/components/editors/CustomDateRangeEditor/styles.d.ts +1 -1
- package/esm/components/editors/DateEditor/styles.d.ts +1 -1
- package/esm/components/editors/DateRangeEditor/DateRangeEditor.d.ts +28 -17
- package/esm/components/editors/DateRangeEditor/DateRangeEditor.js +26 -74
- package/esm/components/editors/DateRangeEditor/styles.d.ts +1 -1
- package/esm/components/editors/DateRangeEditor/styles.js +0 -12
- package/esm/components/editors/TimestampEditor/styles.d.ts +1 -1
- package/esm/components/history/DateRangeSelector/DateRangeSelector.js +1 -1
- package/esm/components/history/HistoryActivitySelector/HistoryActivitySelector.d.ts +2 -1
- package/esm/components/history/HistoryActivitySelector/HistoryActivitySelector.js +7 -4
- package/esm/components/history/HistoryFilterButton/HistoryFilterButton.js +14 -9
- package/esm/components/history/HistoryFilterButton/styles.d.ts +1 -1
- package/esm/components/history/HistoryFilterButton/styles.js +8 -13
- package/esm/components/history/HistoryGraph/HistoryCircle.d.ts +1 -1
- package/esm/components/history/HistoryGraph/HistoryGraph.d.ts +1 -1
- package/esm/components/history/HistoryMenuButton/styles.d.ts +1 -1
- package/package.json +3 -3
- package/cjs/components/editors/DateRangeEditor/helpers.d.ts +0 -9
- package/cjs/components/editors/DateRangeEditor/helpers.js +0 -24
- package/esm/components/editors/DateRangeEditor/helpers.d.ts +0 -9
- package/esm/components/editors/DateRangeEditor/helpers.js +0 -20
|
@@ -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" | "local" | "visibility" | "type" | "operator" | "id" | "in" | "name" | "direction" | "max" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "
|
|
19
|
+
} & React.SVGProps<SVGGElement>, "string" | "y" | "d" | "filter" | "fill" | "values" | "local" | "visibility" | "type" | "operator" | "id" | "in" | "name" | "direction" | "max" | "attributeType" | "mode" | "key" | "children" | "offset" | "method" | "path" | "end" | "radius" | "order" | "width" | "height" | "version" | "format" | "attributeName" | "origin" | "from" | "to" | "style" | "clipPath" | "mask" | "color" | "cursor" | "display" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "imageRendering" | "letterSpacing" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "accumulate" | "unicode" | "x" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "className" | "viewBox" | "lang" | "media" | "min" | "target" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "additive" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "numOctaves" | "orient" | "orientation" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "isDashed" | "isCollapsed" | "showCollapseIcon" | "showLine"> & React.RefAttributes<unknown>>;
|
|
20
20
|
type Props = {
|
|
21
21
|
graphData: HistoryData;
|
|
22
22
|
onHistoryCircleMouseOver?: (uri: string, timestamp: number, index: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menuItem" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"menuItem" | "menuText" | "checkIcon">;
|
package/esm/HOCs/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as withTooltip } from './withTooltip/withTooltip';
|
|
2
2
|
export { default as withAsyncMount } from './withAsyncMount/withAsyncMount';
|
|
3
|
+
export { default as withDragHandle } from './withDragHandle/withDragHandle';
|
|
4
|
+
export { default as withDateRangeSelector } from './withDateRangeSelector/withDateRangeSelector';
|
|
3
5
|
export { withContext } from './withContext/withContext';
|
package/esm/HOCs/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as withTooltip } from './withTooltip/withTooltip';
|
|
2
2
|
export { default as withAsyncMount } from './withAsyncMount/withAsyncMount';
|
|
3
|
+
export { default as withDragHandle } from './withDragHandle/withDragHandle';
|
|
4
|
+
export { default as withDateRangeSelector } from './withDateRangeSelector/withDateRangeSelector';
|
|
3
5
|
export { withContext } from './withContext/withContext';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DataTypeDefinition, DatePeriod } from '@reltio/mdm-sdk';
|
|
2
|
+
export type Option = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
declare const getEditorLabel: (placeholder: string, dataTypeDefinition: DataTypeDefinition, value: DatePeriod | string, options: Option[]) => any;
|
|
7
|
+
declare const convertValuesToDate: any;
|
|
8
|
+
export { getEditorLabel, convertValuesToDate };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { always, cond, defaultTo, is, isNil, map, pipe, propEq } from 'ramda';
|
|
2
|
+
import { formatDataTypeValue, getDateRangeByValue, isEmptyValue } from '@reltio/mdm-sdk';
|
|
3
|
+
var formatValue = function (value, dataTypeDefinition, dateTimeMask) {
|
|
4
|
+
return isNil(value) ? "".concat(dateTimeMask) : "".concat(formatDataTypeValue({ dataTypeDefinition: dataTypeDefinition, dateTimeMask: dateTimeMask }, value));
|
|
5
|
+
};
|
|
6
|
+
var getEditorLabel = function (placeholder, dataTypeDefinition, value, options) {
|
|
7
|
+
return cond([
|
|
8
|
+
[isEmptyValue, always('')],
|
|
9
|
+
[
|
|
10
|
+
is(Array),
|
|
11
|
+
function (value) { return value.map(function (value) { return formatValue(value, dataTypeDefinition, placeholder); }).join(' \u2014 '); }
|
|
12
|
+
],
|
|
13
|
+
[is(String), function (value) { var _a; return (_a = options.find(propEq('value', value))) === null || _a === void 0 ? void 0 : _a.label; }]
|
|
14
|
+
])(value);
|
|
15
|
+
};
|
|
16
|
+
var convertValuesToDate = pipe(getDateRangeByValue, defaultTo([]), map(function (value) { return value && new Date(value); }));
|
|
17
|
+
export { getEditorLabel, convertValuesToDate };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"paper" | "menuItem" | "menuText">;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { makeStyles } from '@mui/styles';
|
|
2
|
+
export var useStyles = makeStyles(function (theme) { return ({
|
|
3
|
+
paper: {
|
|
4
|
+
minWidth: '112px'
|
|
5
|
+
},
|
|
6
|
+
menuItem: {
|
|
7
|
+
minHeight: '32px'
|
|
8
|
+
},
|
|
9
|
+
menuText: {
|
|
10
|
+
color: theme.palette.text.primary,
|
|
11
|
+
fontSize: '13px',
|
|
12
|
+
lineHeight: '15px',
|
|
13
|
+
letterSpacing: 0
|
|
14
|
+
}
|
|
15
|
+
}); });
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ComponentType } from 'react';
|
|
2
|
+
import { DataTypeDefinition, DatePeriod } from '@reltio/mdm-sdk';
|
|
3
|
+
import { MenuProps as MuiMaterialProps } from '@mui/material/Menu';
|
|
4
|
+
import DateRangePicker from '../../components/DateRangePicker/DateRangePicker';
|
|
5
|
+
import { Option } from './helpers';
|
|
6
|
+
type DateRangeMenuProps = {
|
|
7
|
+
values?: DatePeriod | string;
|
|
8
|
+
options?: Option[];
|
|
9
|
+
dataTypeDefinition?: DataTypeDefinition;
|
|
10
|
+
getValuesDateRange?: (value: DatePeriod | string) => [Date, Date];
|
|
11
|
+
onChange?: (value: DatePeriod | string) => void;
|
|
12
|
+
DateRangePickerProps?: Partial<React.ComponentProps<typeof DateRangePicker>>;
|
|
13
|
+
MenuProps?: Partial<MuiMaterialProps>;
|
|
14
|
+
};
|
|
15
|
+
declare const withDateRangeSelector: <T extends DateRangeMenuProps>(Component: React.ComponentType<T>) => {
|
|
16
|
+
(props: T & DateRangeMenuProps): JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export default withDateRangeSelector;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React, { useMemo, useRef, useState, useCallback } from 'react';
|
|
24
|
+
import moment from 'moment';
|
|
25
|
+
import { identity, prop } from 'ramda';
|
|
26
|
+
import { DataTypes, AllDateRangeValues, getRangeOptionLabel, getLocaleFormat } from '@reltio/mdm-sdk';
|
|
27
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
28
|
+
import Popover from '@mui/material/Popover';
|
|
29
|
+
import Typography from '@mui/material/Typography';
|
|
30
|
+
import Menu from '@mui/material/Menu';
|
|
31
|
+
import DateRangePicker from '../../components/DateRangePicker/DateRangePicker';
|
|
32
|
+
import { convertValuesToDate, getEditorLabel } from './helpers';
|
|
33
|
+
import { useStyles } from './styles';
|
|
34
|
+
var dateFormat = moment.localeData().longDateFormat('L');
|
|
35
|
+
var withDateRangeSelector = function (Component) {
|
|
36
|
+
var WithDateRangeSelector = function (props) {
|
|
37
|
+
var values = props.values, options = props.options, _a = props.getValuesDateRange, getValuesDateRange = _a === void 0 ? convertValuesToDate : _a, onChange = props.onChange, _b = props.dataTypeDefinition, dataTypeDefinition = _b === void 0 ? { type: DataTypes.TYPE_DATE } : _b, DateRangePickerProps = props.DateRangePickerProps, MenuProps = props.MenuProps, componentProps = __rest(props, ["values", "options", "getValuesDateRange", "onChange", "dataTypeDefinition", "DateRangePickerProps", "MenuProps"]);
|
|
38
|
+
var rangeOptions = useMemo(function () {
|
|
39
|
+
return options ||
|
|
40
|
+
Object.values(AllDateRangeValues).map(function (option) { return ({
|
|
41
|
+
value: option,
|
|
42
|
+
label: getRangeOptionLabel(option)
|
|
43
|
+
}); });
|
|
44
|
+
}, [options]);
|
|
45
|
+
var inputRef = useRef(null);
|
|
46
|
+
var _c = useState(false), isPickingDate = _c[0], setIsPickingDate = _c[1];
|
|
47
|
+
var _d = useState(false), open = _d[0], setOpen = _d[1];
|
|
48
|
+
var styles = useStyles();
|
|
49
|
+
var onItemClick = function (value) {
|
|
50
|
+
if (value === AllDateRangeValues.PICK_DATE) {
|
|
51
|
+
setIsPickingDate(true);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
setOpen(false);
|
|
55
|
+
setIsPickingDate(false);
|
|
56
|
+
onChange(value);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
var handleToggle = useCallback(function () { return setOpen(function (open) { return !open; }); }, []);
|
|
60
|
+
var onCancel = function () {
|
|
61
|
+
setIsPickingDate(false);
|
|
62
|
+
setOpen(false);
|
|
63
|
+
};
|
|
64
|
+
var isTimestamp = dataTypeDefinition.type === DataTypes.TYPE_TIMESTAMP;
|
|
65
|
+
var enhancePlaceHolder = isTimestamp ? function (timeFormat) { return timeFormat.replace(/^[hH]:/, 'HH:'); } : identity;
|
|
66
|
+
var format = isTimestamp ? getLocaleFormat() : dateFormat;
|
|
67
|
+
var editorPlaceholder = "".concat(enhancePlaceHolder(format), " \u2014 ").concat(enhancePlaceHolder(format)).toUpperCase();
|
|
68
|
+
var editorLabel = isPickingDate
|
|
69
|
+
? getRangeOptionLabel(AllDateRangeValues.PICK_DATE)
|
|
70
|
+
: getEditorLabel(format, dataTypeDefinition, values, rangeOptions);
|
|
71
|
+
var _e = MenuProps || {}, _f = _e.anchorOrigin, anchorOrigin = _f === void 0 ? { vertical: 'bottom', horizontal: 'left' } : _f, _g = _e.transformOrigin, transformOrigin = _g === void 0 ? { vertical: 'top', horizontal: 'left' } : _g;
|
|
72
|
+
return (React.createElement(React.Fragment, null,
|
|
73
|
+
React.createElement(Component, __assign({}, componentProps, { ref: inputRef, editorLabel: editorLabel, editorPlaceholder: editorPlaceholder, onMenuToggle: handleToggle, isMenuOpen: open, isPickingDate: isPickingDate })),
|
|
74
|
+
isPickingDate ? (React.createElement(Popover, __assign({ open: open, anchorEl: inputRef.current, onClose: onCancel, transformOrigin: transformOrigin, anchorOrigin: anchorOrigin, elevation: 2 }, MenuProps),
|
|
75
|
+
React.createElement(DateRangePicker, __assign({ values: getValuesDateRange(values), onApply: onItemClick, type: dataTypeDefinition.type }, DateRangePickerProps)))) : (React.createElement(Menu, __assign({ variant: "menu", open: open, autoFocus: false, classes: { paper: styles.paper }, anchorEl: inputRef.current, onClose: onCancel, anchorOrigin: anchorOrigin, transformOrigin: transformOrigin, elevation: 2, MenuListProps: {
|
|
76
|
+
autoFocusItem: open,
|
|
77
|
+
style: {
|
|
78
|
+
width: prop('clientWidth', inputRef.current)
|
|
79
|
+
}
|
|
80
|
+
} }, MenuProps), rangeOptions.map(function (option) { return (React.createElement(MenuItem, { key: option.value, value: option.value, onClick: function () { return onItemClick(option.value); }, className: styles.menuItem },
|
|
81
|
+
React.createElement(Typography, { classes: { root: styles.menuText } }, option.label))); })))));
|
|
82
|
+
};
|
|
83
|
+
WithDateRangeSelector.displayName = 'WithDateRangeSelector';
|
|
84
|
+
return WithDateRangeSelector;
|
|
85
|
+
};
|
|
86
|
+
export default withDateRangeSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"dragHandleContainer" | "dragHandleVisibilityArea" | "dragHandle" | "dragIcon">;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { makeStyles } from '@mui/styles';
|
|
2
|
+
export var useStyles = makeStyles({
|
|
3
|
+
dragHandleContainer: {
|
|
4
|
+
position: 'relative',
|
|
5
|
+
width: '100%',
|
|
6
|
+
'.react-draggable &': {
|
|
7
|
+
paddingTop: 4
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
dragHandleVisibilityArea: {
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
top: 0,
|
|
13
|
+
left: 0,
|
|
14
|
+
width: '100%',
|
|
15
|
+
height: '12px',
|
|
16
|
+
zIndex: 11,
|
|
17
|
+
visibility: 'hidden',
|
|
18
|
+
'&:hover $dragHandle': {
|
|
19
|
+
visibility: 'visible'
|
|
20
|
+
},
|
|
21
|
+
'.react-draggable &': {
|
|
22
|
+
visibility: 'visible'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dragHandle: {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
width: '100%',
|
|
28
|
+
display: 'flex',
|
|
29
|
+
justifyContent: 'center',
|
|
30
|
+
top: '-3px',
|
|
31
|
+
zIndex: 11,
|
|
32
|
+
cursor: 'move',
|
|
33
|
+
visibility: 'hidden'
|
|
34
|
+
},
|
|
35
|
+
dragIcon: {
|
|
36
|
+
transform: 'translateX(-50%) rotate(90deg)',
|
|
37
|
+
color: 'rgba(0, 0, 0, 0.3)',
|
|
38
|
+
fontSize: '20px'
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import classnames from 'classnames';
|
|
14
|
+
import DragIndicatorIcon from '@mui/icons-material/DragIndicator';
|
|
15
|
+
import { useStyles } from './styles';
|
|
16
|
+
var withDragHandle = function (Component) {
|
|
17
|
+
var WithDragHandle = function (props) {
|
|
18
|
+
var styles = useStyles();
|
|
19
|
+
return (React.createElement("div", { className: styles.dragHandleContainer },
|
|
20
|
+
React.createElement("div", { className: styles.dragHandleVisibilityArea },
|
|
21
|
+
React.createElement("div", { className: classnames('viewDraggableHandle', styles.dragHandle) },
|
|
22
|
+
React.createElement(DragIndicatorIcon, { className: styles.dragIcon }))),
|
|
23
|
+
React.createElement(Component, __assign({}, props))));
|
|
24
|
+
};
|
|
25
|
+
WithDragHandle.displayName = 'WithDragHandle';
|
|
26
|
+
return WithDragHandle;
|
|
27
|
+
};
|
|
28
|
+
export default withDragHandle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "startIcon" | "menuItem" | "menuText" | "iconButton" | "overflowStyle" | "menuIcon">;
|
|
@@ -65,7 +65,7 @@ var AttributeSelector = function (_a) {
|
|
|
65
65
|
var data = _a.data, props = __rest(_a, ["data"]);
|
|
66
66
|
return (React.createElement(MultiValue, __assign({}, props), data.chipLabel));
|
|
67
67
|
};
|
|
68
|
-
return (React.createElement("div", { className: classnames(styles.root, className) },
|
|
68
|
+
return (React.createElement("div", { className: classnames(styles.root, className), "data-reltio-id": "attribute-selector" },
|
|
69
69
|
React.createElement(Typography, { className: styles.title, variant: 'subtitle1' }, title || i18n.text('Attribute')),
|
|
70
70
|
React.createElement(MultiSelect, { value: selectedAttributes, options: options, TextFieldProps: {
|
|
71
71
|
InputProps: { disableUnderline: disableUnderline },
|
|
@@ -74,6 +74,6 @@ var AttributeSelector = function (_a) {
|
|
|
74
74
|
DropdownIndicator: DropdownIndicatorWithIconButton,
|
|
75
75
|
MultiValue: CustomMultiValue,
|
|
76
76
|
Option: CustomOption
|
|
77
|
-
}, onChange: pipe(defaultTo([]), onChange), styles: customStyles, classes: styles, menuPlacement: menuPlacement, menuPortalTarget: document.body })));
|
|
77
|
+
}, onChange: pipe(defaultTo([]), onChange), styles: customStyles, classes: styles, menuPlacement: menuPlacement, menuPortalTarget: document.body, menuShouldBlockScroll: true, captureMenuScroll: false })));
|
|
78
78
|
};
|
|
79
79
|
export default AttributeSelector;
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TablePaginationProps } from '@mui/material/TablePagination';
|
|
3
|
+
type BasicTablePaginationProps = {
|
|
4
|
+
classes?: TablePaginationProps['classes'];
|
|
5
|
+
basicTableRef?: React.Ref<HTMLElement>;
|
|
6
|
+
count?: number;
|
|
7
|
+
page?: number;
|
|
8
|
+
rowsPerPage?: number;
|
|
9
|
+
labelRowsPerPage?: React.ReactNode;
|
|
10
|
+
rowsPerPageOptions?: TablePaginationProps['rowsPerPageOptions'];
|
|
11
|
+
onChangePage?: (value: number) => void;
|
|
12
|
+
onChangeRowsPerPage?: (value: number) => void;
|
|
13
|
+
};
|
|
1
14
|
declare const _default: React.MemoExoticComponent<{
|
|
2
|
-
({ classes, count, rowsPerPageOptions, page, onChangePage, rowsPerPage, onChangeRowsPerPage, basicTableRef, labelRowsPerPage }:
|
|
3
|
-
|
|
4
|
-
count: any;
|
|
5
|
-
rowsPerPageOptions: any;
|
|
6
|
-
page: any;
|
|
7
|
-
onChangePage: any;
|
|
8
|
-
rowsPerPage: any;
|
|
9
|
-
onChangeRowsPerPage: any;
|
|
10
|
-
basicTableRef: any;
|
|
11
|
-
labelRowsPerPage: any;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
propTypes: {
|
|
14
|
-
classes: PropTypes.Requireable<object>;
|
|
15
|
-
rowsPerPageOptions: PropTypes.Requireable<number[]>;
|
|
16
|
-
count: PropTypes.Requireable<number>;
|
|
17
|
-
page: PropTypes.Requireable<number>;
|
|
18
|
-
onChangePage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
-
rowsPerPage: PropTypes.Requireable<number>;
|
|
20
|
-
onChangeRowsPerPage: PropTypes.Requireable<(...args: any[]) => any>;
|
|
21
|
-
basicTableRef: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
|
-
current: PropTypes.Requireable<object>;
|
|
23
|
-
}>>;
|
|
24
|
-
labelRowsPerPage: PropTypes.Requireable<string>;
|
|
25
|
-
};
|
|
15
|
+
({ classes, count, rowsPerPageOptions, page, onChangePage, rowsPerPage, onChangeRowsPerPage, basicTableRef, labelRowsPerPage }: BasicTablePaginationProps): JSX.Element;
|
|
16
|
+
displayName: string;
|
|
26
17
|
}>;
|
|
27
18
|
export default _default;
|
|
28
|
-
import PropTypes from 'prop-types';
|
|
29
|
-
import React from 'react';
|
|
@@ -9,16 +9,16 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import
|
|
13
|
-
import React, { useCallback } from 'react';
|
|
12
|
+
import React, { useCallback, memo } from 'react';
|
|
14
13
|
import classnames from 'classnames';
|
|
15
|
-
import TablePagination from '@mui/material/TablePagination';
|
|
16
14
|
import i18n from 'ui-i18n';
|
|
17
15
|
import { getValue } from '../../../core/utils';
|
|
18
16
|
import { nthArg, pipe, pathOr, identity } from 'ramda';
|
|
17
|
+
import TablePagination from '@mui/material/TablePagination';
|
|
19
18
|
import { useStyles } from './styles';
|
|
20
19
|
var BasicTablePagination = function (_a) {
|
|
21
20
|
var _b = _a.classes, classes = _b === void 0 ? {} : _b, count = _a.count, rowsPerPageOptions = _a.rowsPerPageOptions, page = _a.page, onChangePage = _a.onChangePage, rowsPerPage = _a.rowsPerPage, onChangeRowsPerPage = _a.onChangeRowsPerPage, basicTableRef = _a.basicTableRef, labelRowsPerPage = _a.labelRowsPerPage;
|
|
21
|
+
var styles = useStyles();
|
|
22
22
|
var labelDisplayedRows = function (_a) {
|
|
23
23
|
var from = _a.from, to = _a.to, count = _a.count;
|
|
24
24
|
return i18n.text('${fromRow}-${toRow} of ${countRows}', {
|
|
@@ -27,7 +27,6 @@ var BasicTablePagination = function (_a) {
|
|
|
27
27
|
countRows: i18n.number(count, '0,0')
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
var styles = useStyles();
|
|
31
30
|
var resetScrollbarPosition = useCallback(function () {
|
|
32
31
|
pathOr(identity, ['current', 'resetScrollbarPosition'], basicTableRef)();
|
|
33
32
|
}, [basicTableRef]);
|
|
@@ -40,17 +39,7 @@ var BasicTablePagination = function (_a) {
|
|
|
40
39
|
onChangeRowsPerPage(value);
|
|
41
40
|
resetScrollbarPosition();
|
|
42
41
|
}, [onChangePage, onChangeRowsPerPage, resetScrollbarPosition]);
|
|
43
|
-
return (React.createElement(TablePagination, { classes: __assign(__assign({}, classes), { root: classnames(styles.pagination, classes.root), select: classnames(styles.select, classes.select), selectLabel: classnames(styles.caption, classes.selectLabel), displayedRows: classnames(styles.
|
|
44
|
-
};
|
|
45
|
-
BasicTablePagination.propTypes = {
|
|
46
|
-
classes: PropTypes.object,
|
|
47
|
-
rowsPerPageOptions: PropTypes.arrayOf(PropTypes.number),
|
|
48
|
-
count: PropTypes.number,
|
|
49
|
-
page: PropTypes.number,
|
|
50
|
-
onChangePage: PropTypes.func,
|
|
51
|
-
rowsPerPage: PropTypes.number,
|
|
52
|
-
onChangeRowsPerPage: PropTypes.func,
|
|
53
|
-
basicTableRef: PropTypes.shape({ current: PropTypes.object }),
|
|
54
|
-
labelRowsPerPage: PropTypes.string
|
|
42
|
+
return (React.createElement(TablePagination, { classes: __assign(__assign({}, classes), { root: classnames(styles.pagination, classes.root), select: classnames(styles.select, classes.select), selectLabel: classnames(styles.caption, classes.selectLabel), displayedRows: classnames(styles.displayedRows, classes.displayedRows), input: classnames(styles.selectRoot, classes.selectRoot), actions: styles.actions }), backIconButtonProps: { size: 'large' }, nextIconButtonProps: { size: 'large' }, component: "div", labelRowsPerPage: labelRowsPerPage || i18n.text('Rows per page:'), labelDisplayedRows: labelDisplayedRows, count: count, rowsPerPageOptions: rowsPerPageOptions, page: page, onPageChange: pipe(nthArg(1), handleChangePage), rowsPerPage: rowsPerPage, onRowsPerPageChange: pipe(getValue, handleChangeRowsPerPage) }));
|
|
55
43
|
};
|
|
56
|
-
|
|
44
|
+
BasicTablePagination.displayName = 'BasicTablePagination';
|
|
45
|
+
export default memo(BasicTablePagination);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"caption" | "select" | "actions" | "pagination" | "selectRoot">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"caption" | "select" | "actions" | "pagination" | "displayedRows" | "selectRoot">;
|
|
@@ -5,10 +5,29 @@ export var useStyles = makeStyles({
|
|
|
5
5
|
alignItems: 'center',
|
|
6
6
|
justifyContent: 'flex-end',
|
|
7
7
|
height: '56px',
|
|
8
|
+
flexShrink: 0,
|
|
8
9
|
borderTop: '1px solid rgba(0,0,0,0.12)',
|
|
9
|
-
boxShadow: 'none'
|
|
10
|
+
boxShadow: 'none',
|
|
11
|
+
boxSizing: 'border-box',
|
|
12
|
+
overflowY: 'hidden',
|
|
13
|
+
containerType: 'inline-size',
|
|
14
|
+
'& .MuiInputBase-root': {
|
|
15
|
+
display: 'none',
|
|
16
|
+
'@container (min-width: 420px)': {
|
|
17
|
+
display: 'inline-flex'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
10
20
|
},
|
|
11
21
|
caption: {
|
|
22
|
+
color: 'rgba(0,0,0,0.6)',
|
|
23
|
+
fontSize: '12px',
|
|
24
|
+
lineHeight: '16px',
|
|
25
|
+
display: 'none',
|
|
26
|
+
'@container (min-width: 420px)': {
|
|
27
|
+
display: 'block'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
displayedRows: {
|
|
12
31
|
color: 'rgba(0,0,0,0.6)',
|
|
13
32
|
fontSize: '12px',
|
|
14
33
|
lineHeight: '16px'
|
|
@@ -8,5 +8,5 @@ declare const BasicView: React.ForwardRefExoticComponent<Pick<{
|
|
|
8
8
|
variant?: import("@mui/types").OverridableStringUnion<"elevation" | "outlined", import("@mui/material/Paper").PaperPropsVariantOverrides>;
|
|
9
9
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
-
}, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "title" | "id" | "hidden" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "
|
|
11
|
+
}, "children" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "elevation" | "variant">, "title" | "id" | "hidden" | "key" | "children" | "defaultValue" | "prefix" | "results" | "slot" | "color" | "translate" | "square" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "lang" | "role" | "tabIndex" | "elevation" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "security" | "unselectable" | "inputMode" | "is" | "variant"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default BasicView;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type StylesProps = {
|
|
2
2
|
isEditing?: boolean;
|
|
3
3
|
};
|
|
4
|
-
export declare const useStyles: (props: StylesProps) => import("@mui/styles").ClassNameMap<"button" | "form" | "main" | "root" | "
|
|
4
|
+
export declare const useStyles: (props: StylesProps) => import("@mui/styles").ClassNameMap<"button" | "form" | "main" | "root" | "textField" | "avatar" | "buttons">;
|
|
5
5
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "
|
|
1
|
+
declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "paper" | "contentText" | "actionButtons" | "discardButton">;
|
|
2
2
|
export { useStyles };
|
|
@@ -2,12 +2,11 @@ import React, { forwardRef, useRef, useState } from 'react';
|
|
|
2
2
|
import i18n from 'ui-i18n';
|
|
3
3
|
import { nanoid } from 'nanoid';
|
|
4
4
|
import { pathOr } from 'ramda';
|
|
5
|
-
import ArrowBack from '@mui/icons-material/ArrowBack';
|
|
6
|
-
import Button from '@mui/material/Button';
|
|
7
|
-
import Toolbar from '@mui/material/Toolbar';
|
|
8
|
-
import Typography from '@mui/material/Typography';
|
|
9
|
-
import SmallIconButton from '../SmallIconButton/SmallIconButton';
|
|
10
5
|
import { DataTypes } from '@reltio/mdm-sdk';
|
|
6
|
+
import Button from '@mui/material/Button';
|
|
7
|
+
import DialogTitle from '@mui/material/DialogTitle';
|
|
8
|
+
import DialogContent from '@mui/material/DialogContent';
|
|
9
|
+
import DialogActions from '@mui/material/DialogActions';
|
|
11
10
|
import TimestampEditor from '../editors/TimestampEditor/TimestampEditor';
|
|
12
11
|
import DateEditor from '../editors/DateEditor/DateEditor';
|
|
13
12
|
import { useStyles } from './styles';
|
|
@@ -15,7 +14,7 @@ var START_DATE = 0;
|
|
|
15
14
|
var END_DATE = 1;
|
|
16
15
|
var getDate = function (values, index) { return pathOr(null, [index], values); };
|
|
17
16
|
var DateRangePicker = forwardRef(function (_a, ref) {
|
|
18
|
-
var
|
|
17
|
+
var onApply = _a.onApply, values = _a.values, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate;
|
|
19
18
|
var styles = useStyles();
|
|
20
19
|
var editorFromId = useRef(nanoid());
|
|
21
20
|
var editorToId = useRef(nanoid());
|
|
@@ -43,10 +42,8 @@ var DateRangePicker = forwardRef(function (_a, ref) {
|
|
|
43
42
|
};
|
|
44
43
|
var onTabStopPropagation = function (e) { return e.key === 'Tab' && e.stopPropagation(); };
|
|
45
44
|
return (React.createElement("div", { className: styles.container, ref: ref, onKeyDown: onTabStopPropagation },
|
|
46
|
-
React.createElement(
|
|
47
|
-
|
|
48
|
-
React.createElement(Typography, { className: styles.title }, headerTitle)),
|
|
49
|
-
React.createElement("div", { className: styles.dateRangeContainer },
|
|
45
|
+
React.createElement(DialogTitle, null, headerTitle),
|
|
46
|
+
React.createElement(DialogContent, { className: styles.dateRangeContainer },
|
|
50
47
|
React.createElement(ComponentEditor, { slotProps: {
|
|
51
48
|
textField: {
|
|
52
49
|
id: editorFromId.current,
|
|
@@ -63,8 +60,8 @@ var DateRangePicker = forwardRef(function (_a, ref) {
|
|
|
63
60
|
className: styles.dateInput
|
|
64
61
|
}
|
|
65
62
|
}, label: i18n.text('To'), value: endDate, onChange: selectEndDateHandler, minDate: minDate, maxDate: maxDate })),
|
|
66
|
-
React.createElement(
|
|
67
|
-
React.createElement(Button, { color: "primary", onClick: onUpdate
|
|
63
|
+
React.createElement(DialogActions, null,
|
|
64
|
+
React.createElement(Button, { color: "primary", onClick: onUpdate }, i18n.text('Update')))));
|
|
68
65
|
});
|
|
69
66
|
DateRangePicker.displayName = 'DateRangePicker';
|
|
70
67
|
export default DateRangePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"container" | "dateRangeContainer" | "dateInput">;
|