@reltio/components 1.4.1433 → 1.4.1435
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/BasicTable/helpers/dataHelpers.js +2 -1
- package/cjs/components/BasicViewHeader/BasicViewHeader.js +3 -2
- package/cjs/components/DateIntervalSelector/DateIntervalSelector.js +4 -11
- package/cjs/components/activityLog/ActivityLogFilter/helpers.js +8 -2
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +31 -0
- package/cjs/components/attributes/DescriptionIcon/DescriptionIcon.js +51 -0
- package/cjs/components/attributes/DescriptionIcon/index.d.ts +1 -0
- package/cjs/components/attributes/DescriptionIcon/index.js +8 -0
- package/cjs/components/attributes/DescriptionIcon/styles.d.ts +1 -0
- package/cjs/components/attributes/DescriptionIcon/styles.js +24 -0
- package/cjs/components/attributes/OvIcon/OvIcon.js +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/AttributeRenderer.js +3 -1
- package/cjs/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/cjs/components/attributes/editMode/AttributesPager/styles.js +3 -0
- package/cjs/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +3 -1
- package/cjs/components/attributes/readMode/AttributesPager/OneLineRenderer.js +3 -1
- package/cjs/components/attributes/readMode/AttributesPager/styles.d.ts +2 -2
- package/cjs/components/attributes/readMode/AttributesPager/styles.js +5 -0
- package/cjs/components/index.d.ts +1 -0
- package/cjs/components/index.js +5 -3
- package/cjs/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.js +1 -1
- package/cjs/contexts/FeaturesContext/index.d.ts +6 -0
- package/cjs/contexts/FeaturesContext/index.js +9 -0
- package/cjs/contexts/index.d.ts +1 -0
- package/cjs/contexts/index.js +3 -1
- package/cjs/icons/Description.d.ts +3 -0
- package/cjs/icons/Description.js +22 -0
- package/cjs/icons/index.d.ts +6 -3
- package/cjs/icons/index.js +14 -8
- package/esm/components/BasicTableView/BasicTable/helpers/dataHelpers.js +2 -1
- package/esm/components/BasicViewHeader/BasicViewHeader.js +3 -2
- package/esm/components/DateIntervalSelector/DateIntervalSelector.js +4 -11
- package/esm/components/activityLog/ActivityLogFilter/helpers.js +9 -3
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.d.ts +31 -0
- package/esm/components/attributes/DescriptionIcon/DescriptionIcon.js +22 -0
- package/esm/components/attributes/DescriptionIcon/index.d.ts +1 -0
- package/esm/components/attributes/DescriptionIcon/index.js +1 -0
- package/esm/components/attributes/DescriptionIcon/styles.d.ts +1 -0
- package/esm/components/attributes/DescriptionIcon/styles.js +21 -0
- package/esm/components/attributes/OvIcon/OvIcon.js +1 -1
- package/esm/components/attributes/editMode/AttributesPager/AttributeRenderer.js +3 -1
- package/esm/components/attributes/editMode/AttributesPager/styles.d.ts +1 -1
- package/esm/components/attributes/editMode/AttributesPager/styles.js +3 -0
- package/esm/components/attributes/readMode/AttributesPager/MultiLineRenderer.js +3 -1
- package/esm/components/attributes/readMode/AttributesPager/OneLineRenderer.js +3 -1
- package/esm/components/attributes/readMode/AttributesPager/styles.d.ts +2 -2
- package/esm/components/attributes/readMode/AttributesPager/styles.js +5 -0
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.js +1 -0
- package/esm/components/workflow/cards/GenericWorkflowTaskCard/GenericWorkflowTaskCard.js +1 -1
- package/esm/contexts/FeaturesContext/index.d.ts +6 -0
- package/esm/contexts/FeaturesContext/index.js +3 -0
- package/esm/contexts/index.d.ts +1 -0
- package/esm/contexts/index.js +1 -0
- package/esm/icons/Description.d.ts +3 -0
- package/esm/icons/Description.js +17 -0
- package/esm/icons/index.d.ts +6 -3
- package/esm/icons/index.js +6 -3
- package/package.json +3 -3
|
@@ -90,10 +90,11 @@ var getTableRowsData = function (rowValues, columnsData, renderRowCell, getRowCe
|
|
|
90
90
|
exports.getTableRowsData = getTableRowsData;
|
|
91
91
|
var getTableHeadData = function (columnsData, filters, onFilter) {
|
|
92
92
|
return columnsData.map(function (_a) {
|
|
93
|
-
var id = _a.id, label = _a.label, sortable = _a.sortable, _b = _a.filterable, filterable = _b === void 0 ? true : _b, resizable = _a.resizable, draggable = _a.draggable, _c = _a.autoResize, autoResize = _c === void 0 ? true : _c, initialWidth = _a.initialWidth, minWidth = _a.minWidth, dataTypeDefinition = _a.dataTypeDefinition, filterOptions = _a.filterOptions, _d = _a.headCellRenderer, headCellRenderer = _d === void 0 ? (0, withFilterAtBottom_1.default)(DefaultHeadCellRenderer_1.default) : _d;
|
|
93
|
+
var id = _a.id, label = _a.label, description = _a.description, sortable = _a.sortable, _b = _a.filterable, filterable = _b === void 0 ? true : _b, resizable = _a.resizable, draggable = _a.draggable, _c = _a.autoResize, autoResize = _c === void 0 ? true : _c, initialWidth = _a.initialWidth, minWidth = _a.minWidth, dataTypeDefinition = _a.dataTypeDefinition, filterOptions = _a.filterOptions, _d = _a.headCellRenderer, headCellRenderer = _d === void 0 ? (0, withFilterAtBottom_1.default)(DefaultHeadCellRenderer_1.default) : _d;
|
|
94
94
|
return ({
|
|
95
95
|
id: id,
|
|
96
96
|
label: label,
|
|
97
|
+
description: description,
|
|
97
98
|
sortable: sortable,
|
|
98
99
|
resizable: resizable,
|
|
99
100
|
draggable: draggable,
|
|
@@ -26,14 +26,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
29
30
|
var Toolbar_1 = __importDefault(require("@material-ui/core/Toolbar"));
|
|
30
31
|
var Typography_1 = __importDefault(require("@material-ui/core/Typography"));
|
|
31
32
|
var styles_1 = require("./styles");
|
|
32
33
|
var BasicViewHeader = function (_a) {
|
|
33
|
-
var
|
|
34
|
+
var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.children, children = _c === void 0 ? null : _c, _d = _a.classes, classes = _d === void 0 ? {} : _d, otherProps = __rest(_a, ["title", "children", "classes"]);
|
|
34
35
|
var styles = (0, styles_1.useStyles)();
|
|
35
36
|
return (react_1.default.createElement(Toolbar_1.default, __assign({ className: classes.root, classes: { root: styles.toolbar } }, otherProps),
|
|
36
|
-
react_1.default.createElement(Typography_1.default, { className: classes.title, classes: { root: styles.title }, variant: "h6" }, title),
|
|
37
|
+
react_1.default.createElement(Typography_1.default, { className: classes.title, classes: { root: styles.title }, variant: "h6" }, ui_i18n_1.default.text(title)),
|
|
37
38
|
children));
|
|
38
39
|
};
|
|
39
40
|
exports.default = BasicViewHeader;
|
|
@@ -5,20 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var react_1 = __importDefault(require("react"));
|
|
7
7
|
var ramda_1 = require("ramda");
|
|
8
|
-
var
|
|
8
|
+
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
9
9
|
var capitalize_1 = __importDefault(require("@material-ui/core/utils/capitalize"));
|
|
10
10
|
var TextField_1 = __importDefault(require("@material-ui/core/TextField"));
|
|
11
11
|
var SimpleDropDownSelector_1 = __importDefault(require("../SimpleDropDownSelector/SimpleDropDownSelector"));
|
|
12
12
|
var utils_1 = require("../../core/utils");
|
|
13
13
|
var styles_1 = require("./styles");
|
|
14
|
-
var periods = [
|
|
15
|
-
ui_i18n_1.default.text('minutes'),
|
|
16
|
-
ui_i18n_1.default.text('hours'),
|
|
17
|
-
ui_i18n_1.default.text('days'),
|
|
18
|
-
ui_i18n_1.default.text('weeks'),
|
|
19
|
-
ui_i18n_1.default.text('months'),
|
|
20
|
-
ui_i18n_1.default.text('years')
|
|
21
|
-
];
|
|
14
|
+
var periods = ['minutes', 'hours', 'days', 'weeks', 'months', 'years'];
|
|
22
15
|
var DateIntervalSelector = function (_a) {
|
|
23
16
|
var _b = _a.interval, value = _b[0], unit = _b[1], onChange = _a.onChange, onFocus = _a.onFocus;
|
|
24
17
|
var styles = (0, styles_1.useStyles)();
|
|
@@ -31,9 +24,9 @@ var DateIntervalSelector = function (_a) {
|
|
|
31
24
|
var onUnitChange = (0, ramda_1.pipe)(getIntervalFromUnit, onChange);
|
|
32
25
|
return (react_1.default.createElement("div", { className: styles.root },
|
|
33
26
|
react_1.default.createElement(TextField_1.default, { type: "number", value: value || '', onChange: onNumberChange, inputProps: { min: 1, onFocus: onFocus }, InputProps: { classes: { root: styles.input } }, className: styles.inputNumber }),
|
|
34
|
-
react_1.default.createElement(SimpleDropDownSelector_1.default, { label: '', placeholder: (0, capitalize_1.default)(unit), className: styles.inputUnit, value: { value: unit, label: (0, capitalize_1.default)(unit) }, options: periods.map(function (value) { return ({
|
|
27
|
+
react_1.default.createElement(SimpleDropDownSelector_1.default, { label: '', placeholder: (0, capitalize_1.default)(unit), className: styles.inputUnit, value: { value: unit, label: (0, capitalize_1.default)((0, mdm_sdk_1.getIntervalUnitLabel)(unit)) }, options: periods.map(function (value) { return ({
|
|
35
28
|
value: value,
|
|
36
|
-
label: (0, capitalize_1.default)(value)
|
|
29
|
+
label: (0, capitalize_1.default)((0, mdm_sdk_1.getIntervalUnitLabel)(value))
|
|
37
30
|
}); }), onChange: onUnitChange, TextFieldProps: {
|
|
38
31
|
inputProps: { onFocus: onFocus },
|
|
39
32
|
InputProps: { classes: { root: styles.input } }
|
|
@@ -25,9 +25,15 @@ var getFilterLabel = function (filters) {
|
|
|
25
25
|
};
|
|
26
26
|
switch (date.type) {
|
|
27
27
|
case mdm_sdk_1.DateRangeTypes.WITHIN:
|
|
28
|
-
return ui_i18n_1.default.text('Within ${amount} ${unit}', {
|
|
28
|
+
return ui_i18n_1.default.text('Within ${amount} ${unit}', {
|
|
29
|
+
amount: date.period[0],
|
|
30
|
+
unit: (0, mdm_sdk_1.getIntervalUnitLabel)(date.period[1])
|
|
31
|
+
});
|
|
29
32
|
case mdm_sdk_1.DateRangeTypes.AGO:
|
|
30
|
-
return ui_i18n_1.default.text('More than ${amount} ${unit} ago', {
|
|
33
|
+
return ui_i18n_1.default.text('More than ${amount} ${unit} ago', {
|
|
34
|
+
amount: date.period[0],
|
|
35
|
+
unit: (0, mdm_sdk_1.getIntervalUnitLabel)(date.period[1])
|
|
36
|
+
});
|
|
31
37
|
case mdm_sdk_1.DateRangeTypes.BETWEEN:
|
|
32
38
|
return ui_i18n_1.default.text('${startDate} to ${endDate}', {
|
|
33
39
|
startDate: formatDateValue(date.period[0]),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ChipWithTooltip: React.ForwardRefExoticComponent<import("prop-types").InferPropsInner<Pick<{
|
|
3
|
+
tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
4
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
5
|
+
showForDisabled: import("prop-types").Requireable<boolean>;
|
|
6
|
+
}, never>> & Partial<import("prop-types").InferPropsInner<Pick<{
|
|
7
|
+
tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
8
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
9
|
+
showForDisabled: import("prop-types").Requireable<boolean>;
|
|
10
|
+
}, "tooltipTitle" | "tooltipPlacement" | "showForDisabled">>> & {
|
|
11
|
+
avatar?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
|
+
children?: null;
|
|
13
|
+
clickable?: boolean;
|
|
14
|
+
color?: "default" | "primary" | "secondary";
|
|
15
|
+
deleteIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
label?: React.ReactNode;
|
|
19
|
+
onDelete?: (event: any) => void;
|
|
20
|
+
size?: "medium" | "small";
|
|
21
|
+
variant?: "default" | "outlined";
|
|
22
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core/Chip").ChipTypeMap<{}, "div">> & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
23
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
24
|
+
}, "translate" | "hidden" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "ref" | "key">>;
|
|
25
|
+
declare type Props = {
|
|
26
|
+
className?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
showDescription?: boolean;
|
|
29
|
+
};
|
|
30
|
+
declare const DescriptionIcon: ({ className, description }: Props) => JSX.Element;
|
|
31
|
+
export default DescriptionIcon;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ChipWithTooltip = void 0;
|
|
30
|
+
var react_1 = __importStar(require("react"));
|
|
31
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
32
|
+
var Chip_1 = __importDefault(require("@material-ui/core/Chip"));
|
|
33
|
+
var contexts_1 = require("../../../contexts");
|
|
34
|
+
var HOCs_1 = require("../../../HOCs");
|
|
35
|
+
var Description_1 = __importDefault(require("../../../icons/Description"));
|
|
36
|
+
var styles_1 = require("./styles");
|
|
37
|
+
exports.ChipWithTooltip = (0, HOCs_1.withTooltip)(Chip_1.default);
|
|
38
|
+
var DescriptionIcon = function (_a) {
|
|
39
|
+
var className = _a.className, description = _a.description;
|
|
40
|
+
var showDescription = (0, react_1.useContext)(contexts_1.FeaturesContext).showDescription;
|
|
41
|
+
var styles = (0, styles_1.useStyles)();
|
|
42
|
+
if (!description || !showDescription) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return (react_1.default.createElement(exports.ChipWithTooltip, { tooltipTitle: description, tooltipPlacement: "bottom", icon: react_1.default.createElement(Description_1.default, null), classes: {
|
|
46
|
+
root: (0, classnames_1.default)(styles.container, className),
|
|
47
|
+
label: styles.label,
|
|
48
|
+
icon: styles.icon
|
|
49
|
+
} }));
|
|
50
|
+
};
|
|
51
|
+
exports.default = DescriptionIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DescriptionIcon";
|
|
@@ -0,0 +1,8 @@
|
|
|
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.default = void 0;
|
|
7
|
+
var DescriptionIcon_1 = require("./DescriptionIcon");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(DescriptionIcon_1).default; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"icon" | "label" | "container">;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStyles = void 0;
|
|
4
|
+
var styles_1 = require("@material-ui/core/styles");
|
|
5
|
+
exports.useStyles = (0, styles_1.makeStyles)(function () { return ({
|
|
6
|
+
container: {
|
|
7
|
+
height: '15px',
|
|
8
|
+
backgroundColor: 'transparent',
|
|
9
|
+
'&:hover': {
|
|
10
|
+
backgroundColor: 'transparent'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
label: {
|
|
14
|
+
paddingLeft: '4px',
|
|
15
|
+
paddingRight: '4px',
|
|
16
|
+
fontSize: '10px',
|
|
17
|
+
lineHeight: '11px'
|
|
18
|
+
},
|
|
19
|
+
icon: {
|
|
20
|
+
width: '12px',
|
|
21
|
+
height: '12px',
|
|
22
|
+
marginRight: 0
|
|
23
|
+
}
|
|
24
|
+
}); });
|
|
@@ -53,7 +53,7 @@ var OvIcon = function (_a) {
|
|
|
53
53
|
var tooltipTitle = nonOvValues.length
|
|
54
54
|
? nonOvValues.map(function (value, i) { return (react_1.default.createElement("div", { key: i }, (0, mdm_sdk_1.isComplexAttribute)(attributeType) ? ((0, mdm_sdk_1.getLabel)(value.label)) : (react_1.default.createElement(DataTypeValue_1.default, { value: (0, mdm_sdk_1.getAttributeValue)(value), dataTypeDefinition: (0, mdm_sdk_1.getAttrDataTypeDefinition)(attributeType), rich: false })))); })
|
|
55
55
|
: null;
|
|
56
|
-
return (react_1.default.createElement(exports.ChipWithTooltip, { tooltipTitle: tooltipTitle, tooltipPlacement: "
|
|
56
|
+
return (react_1.default.createElement(exports.ChipWithTooltip, { tooltipTitle: tooltipTitle, tooltipPlacement: "bottom", label: "+ ".concat(nonOvTotal), variant: "outlined", onClick: onClick, classes: {
|
|
57
57
|
root: (0, classnames_1.default)(styles.container, className),
|
|
58
58
|
label: styles.label
|
|
59
59
|
} }));
|
|
@@ -43,13 +43,14 @@ var HOCs_1 = require("../../../../HOCs");
|
|
|
43
43
|
var PinnedAttributesContext_1 = require("../contexts/PinnedAttributesContext");
|
|
44
44
|
var hooks_1 = require("../../../../hooks");
|
|
45
45
|
var contexts_1 = require("../../../../contexts");
|
|
46
|
+
var DescriptionIcon_1 = __importDefault(require("../../DescriptionIcon/DescriptionIcon"));
|
|
46
47
|
var styles_1 = require("./styles");
|
|
47
48
|
var AttributeRenderer = function (_a) {
|
|
48
49
|
var max = _a.max, values = _a.values, attributeType = _a.attributeType, parentUri = _a.parentUri, mode = _a.mode, drawLines = _a.drawLines, showEmptyEditors = _a.showEmptyEditors, errorMessage = _a.errorMessage, errors = _a.errors, paging = _a.paging, crosswalks = _a.crosswalks, showNonOv = _a.showNonOv, nonVisibleValues = _a.nonVisibleValues, highlightedError = _a.highlightedError, onAddAttributes = _a.onAddAttributes, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, onDeactivateError = _a.onDeactivateError, additionalControlsRenderer = _a.additionalControlsRenderer, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues;
|
|
49
50
|
var styles = (0, styles_1.useStyles)();
|
|
50
51
|
var _b = (0, react_1.useState)(max), visibleValuesCount = _b[0], setVisibleValuesCount = _b[1];
|
|
51
52
|
var _c = (0, react_1.useState)(false), hadDeletions = _c[0], setHadDeletions = _c[1];
|
|
52
|
-
var label = attributeType.label, isRequired = attributeType.required, cardinality = attributeType.cardinality, name = attributeType.name, attributeTypeUri = attributeType.uri;
|
|
53
|
+
var label = attributeType.label, isRequired = attributeType.required, cardinality = attributeType.cardinality, name = attributeType.name, attributeTypeUri = attributeType.uri, description = attributeType.description;
|
|
53
54
|
var isEditableMode = (0, mdm_sdk_1.isEditableMode)(mode);
|
|
54
55
|
var _d = (0, hooks_1.useScrollToAttributeError)({ highlightedError: highlightedError }), ref = _d.ref, errorClassName = _d.errorClassName;
|
|
55
56
|
var pinnedAttributes = (0, react_1.useContext)(PinnedAttributesContext_1.PinnedAttributesContext);
|
|
@@ -110,6 +111,7 @@ var AttributeRenderer = function (_a) {
|
|
|
110
111
|
react_1.default.createElement("div", { ref: ref, className: (0, classnames_1.default)(styles.wrapper, errorClassName) },
|
|
111
112
|
react_1.default.createElement("div", { className: styles.titleWrapper },
|
|
112
113
|
react_1.default.createElement(Title_1.default, { label: label, isRequired: isRequired, className: styles.title, "data-reltio-id": "reltio-attribute-label" }),
|
|
114
|
+
react_1.default.createElement(DescriptionIcon_1.default, { description: description, className: styles.description }),
|
|
113
115
|
react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
|
|
114
116
|
isEditableMode && react_1.default.createElement(CardinalityMessage_1.default, { cardinality: cardinality }),
|
|
115
117
|
isEditableMode && react_1.default.createElement(ErrorMessage_1.default, { message: errorMessage, className: styles.typeError }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "title" | "link" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "title" | "link" | "description" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
@@ -35,6 +35,7 @@ var Title_1 = __importDefault(require("../../../Title/Title"));
|
|
|
35
35
|
var ShowMore_1 = __importDefault(require("../../pagersCommon/ShowMore"));
|
|
36
36
|
var ShowLess_1 = __importDefault(require("../../pagersCommon/ShowLess"));
|
|
37
37
|
var OvIcon_1 = __importDefault(require("../../OvIcon"));
|
|
38
|
+
var DescriptionIcon_1 = __importDefault(require("../../DescriptionIcon"));
|
|
38
39
|
var MultiLineRenderer = function (_a) {
|
|
39
40
|
var max = _a.max, values = _a.values, nonVisibleValues = _a.nonVisibleValues, totalVisibleValues = _a.totalVisibleValues, attributeType = _a.attributeType, parentUri = _a.parentUri, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
|
|
40
41
|
var styles = (0, styles_1.useMultiLineStyles)();
|
|
@@ -42,7 +43,7 @@ var MultiLineRenderer = function (_a) {
|
|
|
42
43
|
var hasPaging = max < totalVisibleValues;
|
|
43
44
|
var showMore = hasPaging && visibleValuesCount < totalVisibleValues;
|
|
44
45
|
var showLess = hasPaging && visibleValuesCount >= totalVisibleValues;
|
|
45
|
-
var label = attributeType.label;
|
|
46
|
+
var label = attributeType.label, description = attributeType.description;
|
|
46
47
|
var onShowMore = function () {
|
|
47
48
|
if (values.length < totalVisibleValues) {
|
|
48
49
|
requestNextPageOfAttributeValues({
|
|
@@ -63,6 +64,7 @@ var MultiLineRenderer = function (_a) {
|
|
|
63
64
|
return (react_1.default.createElement("div", { className: styles.wrapper },
|
|
64
65
|
react_1.default.createElement("div", { className: styles.titleRow },
|
|
65
66
|
react_1.default.createElement(Title_1.default, { label: label, className: (0, classnames_1.default)(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
|
|
67
|
+
react_1.default.createElement(DescriptionIcon_1.default, { description: description }),
|
|
66
68
|
react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
|
|
67
69
|
react_1.default.createElement("div", { className: styles.attributes }, shownValues.map(function (value) { return (react_1.default.createElement(Attribute_1.default, { key: value.uri, className: (0, classnames_1.default)(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv })); })),
|
|
68
70
|
showMore && (react_1.default.createElement(ShowMore_1.default, { moreNumber: (0, ramda_1.min)(max, hiddenValuesCount), valueNumber: hiddenValuesCount, onClick: onShowMore })),
|
|
@@ -10,18 +10,20 @@ var constants_1 = require("../../../../constants");
|
|
|
10
10
|
var CommentsContainer_1 = __importDefault(require("../../../CommentsContainer/CommentsContainer"));
|
|
11
11
|
var Title_1 = __importDefault(require("../../../Title/Title"));
|
|
12
12
|
var OvIcon_1 = __importDefault(require("../../OvIcon"));
|
|
13
|
+
var DescriptionIcon_1 = __importDefault(require("../../DescriptionIcon/DescriptionIcon"));
|
|
13
14
|
var Attribute_1 = __importDefault(require("../AttributesFactory/Attribute"));
|
|
14
15
|
var styles_1 = require("./styles");
|
|
15
16
|
var OneLineRenderer = function (_a) {
|
|
16
17
|
var value = _a.value, nonVisibleValues = _a.nonVisibleValues, attributeType = _a.attributeType, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
|
|
17
18
|
var styles = (0, styles_1.useOneLineStyles)();
|
|
18
|
-
var label = attributeType.label;
|
|
19
|
+
var label = attributeType.label, description = attributeType.description;
|
|
19
20
|
var objectType = (0, mdm_sdk_1.isRelationAttrType)(attributeType)
|
|
20
21
|
? mdm_sdk_1.CollaborationObjectTypes.RELATION_ATTRIBUTE
|
|
21
22
|
: mdm_sdk_1.CollaborationObjectTypes.ENTITY_ATTRIBUTE;
|
|
22
23
|
return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.collaborationWrapper, constants_1.COMMENTS_CONTAINER_VISIBILITY_AREA) },
|
|
23
24
|
react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.titleRow, styles.wrapper) },
|
|
24
25
|
react_1.default.createElement(Title_1.default, { label: label, className: (0, classnames_1.default)(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
|
|
26
|
+
react_1.default.createElement(DescriptionIcon_1.default, { description: description, className: styles.descriptionIcon }),
|
|
25
27
|
react_1.default.createElement(OvIcon_1.default, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }),
|
|
26
28
|
react_1.default.createElement(Attribute_1.default, { className: (0, classnames_1.default)(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv, inlined: true })),
|
|
27
29
|
react_1.default.createElement(CommentsContainer_1.default, { uri: value.uri, relatedObjectUris: (0, mdm_sdk_1.createRelatedObjectUris)(objectType, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"paddingWrapper" | "paddingWrapperWithLines">;
|
|
2
|
-
export const useOneLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attribute" | "wrapper" | "collaborationWrapper" | "titleIcon" | "titleRow" | "ovIcon">;
|
|
3
|
-
export const useMultiLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attributes" | "attribute" | "wrapper" | "titleRow" | "ovIcon">;
|
|
2
|
+
export const useOneLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attribute" | "wrapper" | "collaborationWrapper" | "titleIcon" | "titleRow" | "ovIcon" | "descriptionIcon">;
|
|
3
|
+
export const useMultiLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attributes" | "attribute" | "wrapper" | "titleRow" | "ovIcon" | "descriptionIcon">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './activityLog';
|
|
2
2
|
export { default as AttributeListItem } from './AttributeListItem/AttributeListItem';
|
|
3
3
|
export { default as AttributesView } from './attributes/AttributesView';
|
|
4
|
+
export { default as DescriptionIcon } from './attributes/DescriptionIcon';
|
|
4
5
|
export { default as BranchDecorator } from './attributes/BranchDecorator/BranchDecorator';
|
|
5
6
|
export { default as AttributesList } from './attributes/editMode/AttributesList';
|
|
6
7
|
export { default as EntityCreator } from './attributes/editMode/EntityCreator';
|
package/cjs/components/index.js
CHANGED
|
@@ -17,14 +17,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.DataTenantBadge = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = exports.DragAndDrop = exports.ConnectionEditor = exports.AttributesFiltersBuilder = exports.AttributesFiltersButton = exports.AttributeGroupIcon = exports.BasicAttributeSelector = exports.ProfilesList = exports.ActionButtonMode = exports.ActionButton = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.RelationEditor = exports.OvIcon = exports.ErrorMessage = exports.ReltioMap = exports.ConfirmDeleteDialog = exports.ConfirmationDialog = exports.Marginator = exports.LightArrowTooltip = exports.ArrowExpandButton = exports.ScrollableTabs = exports.ExpandableSearchInput = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = void 0;
|
|
20
|
+
exports.EmptyState = exports.NoResults = exports.NoData = exports.DropDownSelector = exports.DropDownMenuButton = exports.Drawer = exports.DataTypeValue = exports.ConnectionRelationTypeSelector = exports.ConfigureColumnsPopup = exports.MenuWithPopper = exports.MenuList = exports.LoadMoreButton = exports.DropdownIndicatorWithIconButton = exports.DropdownIndicator = exports.CommentsContainer = exports.ColorBar = exports.CollapseButton = exports.CollaborationItem = exports.ClickAwayProvider = exports.BasicViewHeader = exports.BasicViewContent = exports.BasicView = exports.ScreenProfileBand = exports.ProfileBandNavigation = exports.AvatarWithFallback = exports.AutoSizeList = exports.ReadOnlyAttributesPager = exports.SimpleAttribute = exports.ReferenceAttribute = exports.NestedAttribute = exports.EditableImageAttributesLine = exports.ImageAttributesLine = exports.ReadOnlyAttributesList = exports.ReadOnlyAttributeValuesBlock = exports.EditableAttribute = exports.ReadOnlyAttribute = exports.CardinalityMessage = exports.AttributesPager = exports.SimpleAttributeEditor = exports.RelationTypeSelector = exports.ReferenceAttributeEditor = exports.NestedAttributeEditor = exports.MoreAttributesButton = exports.EntitySelector = exports.EntityCreator = exports.AttributesList = exports.BranchDecorator = exports.DescriptionIcon = exports.AttributesView = exports.AttributeListItem = void 0;
|
|
21
|
+
exports.SelectorWithOnlyOptionAutoSelect = exports.SelectionPopupPopper = exports.SelectionPopup = exports.useKeyboardNavigation = exports.WhiteSearchInput = exports.SearchInput = exports.ResizablePanes = exports.ReltioGridLayout = exports.ReactSortableTreeUtils = exports.ReactSortableTreeHandlers = exports.ReactSortableTree = exports.ReactSelectOptionFilters = exports.MultiSelect = exports.QueryBuilderRowsGroup = exports.QueryBuilderRow = exports.ProfileCard = exports.ProfileBand = exports.PotentialMatchReviewCard = exports.PopupWithArrow = exports.Popper = exports.MultipleInput = exports.ModeSwitcherSelect = exports.ModeSwitcher = exports.TransitiveMatchBlock = exports.SimpleMatchRulesBlock = exports.MatchRuleVariant = exports.MatchRulesBlock = exports.LoadingSpinner = exports.Link = exports.LinearLoadIndicator = exports.ImportModes = exports.ImportButton = exports.ImageGalleryDialog = exports.Highlighter = exports.HierarchicalAttributeTooltip = exports.HideOnShrink = exports.FlipCard = exports.FacetViewHeader = exports.ExpandedValueTooltip = exports.ErrorWrapper = exports.ErrorPopup = exports.ErrorBoundary = exports.EntityUriLink = exports.RelationTypesSelector = exports.EntityTypesSelector = exports.EntityTypeIcon = exports.EntityTypeBadge = exports.EntityAvatar = exports.EMPTY_STATE_VARIANTS = exports.EMPTY_STATE_ICONS = void 0;
|
|
22
|
+
exports.DataTenantBadge = exports.SettingsMenu = exports.TenantsDropDownSelector = exports.TenantIcon = exports.SourceSystemsSelector = exports.MatchRulesSelector = exports.MultiValueSelector = exports.DragAndDrop = exports.ConnectionEditor = exports.AttributesFiltersBuilder = exports.AttributesFiltersButton = exports.AttributeGroupIcon = exports.BasicAttributeSelector = exports.ProfilesList = exports.ActionButtonMode = exports.ActionButton = exports.NotMatchButton = exports.MergeButton = exports.ProfileMatchCard = exports.RelationEditor = exports.OvIcon = exports.ErrorMessage = exports.ReltioMap = exports.ConfirmDeleteDialog = exports.ConfirmationDialog = exports.Marginator = exports.LightArrowTooltip = exports.ArrowExpandButton = exports.ScrollableTabs = exports.ExpandableSearchInput = exports.VirtualGroupedList = exports.ViewMoreToggle = exports.VerticalHeadingsTable = exports.VerticalDivider = exports.AttributeTitle = exports.Spacer = exports.SourceIcon = exports.SmallIconButtonWithTooltip = exports.SmallIconButton = exports.SimpleDropDownSelector = exports.SidePanelContentHeader = exports.SidePanel = exports.SidePanelEmptyState = exports.SideButtonsPanel = void 0;
|
|
23
23
|
__exportStar(require("./activityLog"), exports);
|
|
24
24
|
var AttributeListItem_1 = require("./AttributeListItem/AttributeListItem");
|
|
25
25
|
Object.defineProperty(exports, "AttributeListItem", { enumerable: true, get: function () { return __importDefault(AttributeListItem_1).default; } });
|
|
26
26
|
var AttributesView_1 = require("./attributes/AttributesView");
|
|
27
27
|
Object.defineProperty(exports, "AttributesView", { enumerable: true, get: function () { return __importDefault(AttributesView_1).default; } });
|
|
28
|
+
var DescriptionIcon_1 = require("./attributes/DescriptionIcon");
|
|
29
|
+
Object.defineProperty(exports, "DescriptionIcon", { enumerable: true, get: function () { return __importDefault(DescriptionIcon_1).default; } });
|
|
28
30
|
var BranchDecorator_1 = require("./attributes/BranchDecorator/BranchDecorator");
|
|
29
31
|
Object.defineProperty(exports, "BranchDecorator", { enumerable: true, get: function () { return __importDefault(BranchDecorator_1).default; } });
|
|
30
32
|
var AttributesList_1 = require("./attributes/editMode/AttributesList");
|
|
@@ -61,7 +61,7 @@ var GenericWorkflowTaskCard = function (_a) {
|
|
|
61
61
|
react_1.default.createElement(LineDecorator_1.default, { plain: true, first: true, transparent: !isExpanded },
|
|
62
62
|
react_1.default.createElement("div", { className: styles.mainInfo },
|
|
63
63
|
react_1.default.createElement("div", { className: styles.title },
|
|
64
|
-
react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.caption, styles.flex) }, processDefinitionDisplayName),
|
|
64
|
+
react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.caption, styles.flex) }, ui_i18n_1.default.text(processDefinitionDisplayName)),
|
|
65
65
|
react_1.default.createElement(Flag_1.default, { className: styles.flag }),
|
|
66
66
|
react_1.default.createElement(Tooltip_1.default, { title: ui_i18n_1.default.text('Due date') },
|
|
67
67
|
react_1.default.createElement("span", { className: styles.date }, ui_i18n_1.default.date(dueDate, 'L'))),
|
|
@@ -0,0 +1,9 @@
|
|
|
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.FeaturesContext = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.FeaturesContext = react_1.default.createContext({});
|
|
9
|
+
exports.FeaturesContext.displayName = 'FeaturesContext';
|
package/cjs/contexts/index.d.ts
CHANGED
|
@@ -25,3 +25,4 @@ export { SearchValueContext } from './SearchValueContext';
|
|
|
25
25
|
export { ScrollToErrorContext, ScrollToErrorProvider } from './ScrollToErrorContext';
|
|
26
26
|
export { UrlGeneratorsContext } from './UrlGeneratorsContext';
|
|
27
27
|
export { LabelsContext } from './LabelsContext';
|
|
28
|
+
export { FeaturesContext } from './FeaturesContext';
|
package/cjs/contexts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LabelsContext = exports.UrlGeneratorsContext = exports.ScrollToErrorProvider = exports.ScrollToErrorContext = 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.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
3
|
+
exports.FeaturesContext = exports.LabelsContext = exports.UrlGeneratorsContext = exports.ScrollToErrorProvider = exports.ScrollToErrorContext = 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.EntityMarkerContext = exports.useAttributeExpanded = exports.ExpandedAttributesProvider = exports.useHighlightedCrosswalks = exports.useCrosswalkHighlight = exports.useCrosswalkFocus = exports.useCrosswalkColor = exports.CrosswalksDisplayProvider = exports.EntitiesMapContext = exports.IdContext = exports.ProfilePerspectiveViewContext = exports.PivotingAttributeContext = exports.UsersContext = exports.CollaborationContextProvider = exports.CollaborationContext = exports.BlockImageGalleryDialogContext = exports.ViewIdContext = exports.PopupBoundariesContext = exports.HistoryDiffContext = exports.AsyncMountContext = void 0;
|
|
4
4
|
var AsyncMountContext_1 = require("./AsyncMountContext");
|
|
5
5
|
Object.defineProperty(exports, "AsyncMountContext", { enumerable: true, get: function () { return AsyncMountContext_1.AsyncMountContext; } });
|
|
6
6
|
var HistoryAppearanceContext_1 = require("./HistoryAppearanceContext");
|
|
@@ -64,3 +64,5 @@ var UrlGeneratorsContext_1 = require("./UrlGeneratorsContext");
|
|
|
64
64
|
Object.defineProperty(exports, "UrlGeneratorsContext", { enumerable: true, get: function () { return UrlGeneratorsContext_1.UrlGeneratorsContext; } });
|
|
65
65
|
var LabelsContext_1 = require("./LabelsContext");
|
|
66
66
|
Object.defineProperty(exports, "LabelsContext", { enumerable: true, get: function () { return LabelsContext_1.LabelsContext; } });
|
|
67
|
+
var FeaturesContext_1 = require("./FeaturesContext");
|
|
68
|
+
Object.defineProperty(exports, "FeaturesContext", { enumerable: true, get: function () { return FeaturesContext_1.FeaturesContext; } });
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var SvgDescription = function (props) {
|
|
19
|
+
return (react_1.default.createElement("svg", __assign({ width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
20
|
+
react_1.default.createElement("path", { d: "M5.417 9.5h1.166V8.333H5.417V9.5zM6 .167A5.835 5.835 0 00.167 6 5.835 5.835 0 006 11.833 5.835 5.835 0 0011.833 6 5.835 5.835 0 006 .167zm0 10.5A4.673 4.673 0 011.333 6 4.673 4.673 0 016 1.333 4.673 4.673 0 0110.667 6 4.673 4.673 0 016 10.667zM6 2.5a2.333 2.333 0 00-2.333 2.333h1.166A1.17 1.17 0 016 3.667a1.17 1.17 0 011.167 1.166c0 1.167-1.75 1.021-1.75 2.917h1.166c0-1.313 1.75-1.458 1.75-2.917A2.333 2.333 0 006 2.5z", fill: "#000", fillOpacity: 0.54 })));
|
|
21
|
+
};
|
|
22
|
+
exports.default = SvgDescription;
|
package/cjs/icons/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as DcrTaskIcon } from './DcrTaskIcon';
|
|
|
11
11
|
export { default as DefaultImage } from './DefaultImage';
|
|
12
12
|
export { default as DefaultTaskIcon } from './DefaultTaskIcon';
|
|
13
13
|
export { default as DeleteRequestTaskIcon } from './DeleteRequestTaskIcon';
|
|
14
|
+
export { default as Description } from './Description';
|
|
14
15
|
export { default as Details } from './Details';
|
|
15
16
|
export { default as Download } from './Download';
|
|
16
17
|
export { default as Draw } from './Draw';
|
|
@@ -22,20 +23,22 @@ export { default as Ignored } from './Ignored';
|
|
|
22
23
|
export { default as IgnoredOutlined } from './IgnoredOutlined';
|
|
23
24
|
export { default as LogIn } from './LogIn';
|
|
24
25
|
export { default as LogOut } from './LogOut';
|
|
25
|
-
export { default as MlMatch } from './MlMatch';
|
|
26
26
|
export { default as Merge } from './Merge';
|
|
27
27
|
export { default as MergeDark } from './MergeDark';
|
|
28
|
+
export { default as MlMatch } from './MlMatch';
|
|
29
|
+
export { default as NegativeRuleIcon } from './NegativeRuleIcon';
|
|
30
|
+
export { default as NegativeRuleTooltipIcon } from './NegativeRuleTooltipIcon';
|
|
28
31
|
export { default as NestedAttribute } from './NestedAttribute';
|
|
29
32
|
export { default as NoData } from './NoData';
|
|
30
33
|
export { default as NoDataSearch } from './NoDataSearch';
|
|
31
34
|
export { default as NoMatches } from './NoMatches';
|
|
32
35
|
export { default as NotMatchDark } from './NotMatchDark';
|
|
33
36
|
export { default as NotMatchRule } from './NotMatchRule';
|
|
34
|
-
export { default as PmIcon } from './PmIcon';
|
|
35
|
-
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
36
37
|
export { default as Pin } from './Pin';
|
|
37
38
|
export { default as PinOutlined } from './PinOutlined';
|
|
38
39
|
export { default as PivotingIcon } from './PivotingIcon';
|
|
40
|
+
export { default as PmIcon } from './PmIcon';
|
|
41
|
+
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
39
42
|
export { default as Polygon } from './Polygon';
|
|
40
43
|
export { default as PotentialMatch } from './PotentialMatch';
|
|
41
44
|
export { default as Profile } from './Profile';
|
package/cjs/icons/index.js
CHANGED
|
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.UploadIcon = exports.UnMerge = void 0;
|
|
6
|
+
exports.Search = exports.ResizeIconInline = exports.Remove = exports.ReferenceAttribute = exports.Recommended = exports.Radius = exports.Profile = exports.PotentialMatch = exports.Polygon = exports.PmTaskIcon = exports.PmIcon = exports.PivotingIcon = exports.PinOutlined = exports.Pin = exports.NotMatchRule = exports.NotMatchDark = exports.NoMatches = exports.NoDataSearch = exports.NoData = exports.NestedAttribute = exports.NegativeRuleTooltipIcon = exports.NegativeRuleIcon = exports.MlMatch = exports.MergeDark = exports.Merge = exports.LogOut = exports.LogIn = exports.IgnoredOutlined = exports.Ignored = exports.Filter = exports.Error = exports.EmptySearchResults = exports.Duplicate = exports.Draw = exports.Download = exports.Details = exports.Description = exports.DeleteRequestTaskIcon = exports.DefaultTaskIcon = exports.DefaultImage = exports.DcrTaskIcon = exports.Create = exports.Copy = exports.CommentBubble = exports.Comment = exports.CollaborationIcon = exports.Calendar = exports.AttributesList = exports.AddComment = exports.Add = void 0;
|
|
7
|
+
exports.UploadIcon = exports.UnMerge = exports.Table = exports.SimpleAttribute = exports.SelectAttributes = void 0;
|
|
8
8
|
var Add_1 = require("./Add");
|
|
9
9
|
Object.defineProperty(exports, "Add", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
|
|
10
10
|
var AddComment_1 = require("./AddComment");
|
|
@@ -31,6 +31,8 @@ var DefaultTaskIcon_1 = require("./DefaultTaskIcon");
|
|
|
31
31
|
Object.defineProperty(exports, "DefaultTaskIcon", { enumerable: true, get: function () { return __importDefault(DefaultTaskIcon_1).default; } });
|
|
32
32
|
var DeleteRequestTaskIcon_1 = require("./DeleteRequestTaskIcon");
|
|
33
33
|
Object.defineProperty(exports, "DeleteRequestTaskIcon", { enumerable: true, get: function () { return __importDefault(DeleteRequestTaskIcon_1).default; } });
|
|
34
|
+
var Description_1 = require("./Description");
|
|
35
|
+
Object.defineProperty(exports, "Description", { enumerable: true, get: function () { return __importDefault(Description_1).default; } });
|
|
34
36
|
var Details_1 = require("./Details");
|
|
35
37
|
Object.defineProperty(exports, "Details", { enumerable: true, get: function () { return __importDefault(Details_1).default; } });
|
|
36
38
|
var Download_1 = require("./Download");
|
|
@@ -53,12 +55,16 @@ var LogIn_1 = require("./LogIn");
|
|
|
53
55
|
Object.defineProperty(exports, "LogIn", { enumerable: true, get: function () { return __importDefault(LogIn_1).default; } });
|
|
54
56
|
var LogOut_1 = require("./LogOut");
|
|
55
57
|
Object.defineProperty(exports, "LogOut", { enumerable: true, get: function () { return __importDefault(LogOut_1).default; } });
|
|
56
|
-
var MlMatch_1 = require("./MlMatch");
|
|
57
|
-
Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
|
|
58
58
|
var Merge_1 = require("./Merge");
|
|
59
59
|
Object.defineProperty(exports, "Merge", { enumerable: true, get: function () { return __importDefault(Merge_1).default; } });
|
|
60
60
|
var MergeDark_1 = require("./MergeDark");
|
|
61
61
|
Object.defineProperty(exports, "MergeDark", { enumerable: true, get: function () { return __importDefault(MergeDark_1).default; } });
|
|
62
|
+
var MlMatch_1 = require("./MlMatch");
|
|
63
|
+
Object.defineProperty(exports, "MlMatch", { enumerable: true, get: function () { return __importDefault(MlMatch_1).default; } });
|
|
64
|
+
var NegativeRuleIcon_1 = require("./NegativeRuleIcon");
|
|
65
|
+
Object.defineProperty(exports, "NegativeRuleIcon", { enumerable: true, get: function () { return __importDefault(NegativeRuleIcon_1).default; } });
|
|
66
|
+
var NegativeRuleTooltipIcon_1 = require("./NegativeRuleTooltipIcon");
|
|
67
|
+
Object.defineProperty(exports, "NegativeRuleTooltipIcon", { enumerable: true, get: function () { return __importDefault(NegativeRuleTooltipIcon_1).default; } });
|
|
62
68
|
var NestedAttribute_1 = require("./NestedAttribute");
|
|
63
69
|
Object.defineProperty(exports, "NestedAttribute", { enumerable: true, get: function () { return __importDefault(NestedAttribute_1).default; } });
|
|
64
70
|
var NoData_1 = require("./NoData");
|
|
@@ -71,16 +77,16 @@ var NotMatchDark_1 = require("./NotMatchDark");
|
|
|
71
77
|
Object.defineProperty(exports, "NotMatchDark", { enumerable: true, get: function () { return __importDefault(NotMatchDark_1).default; } });
|
|
72
78
|
var NotMatchRule_1 = require("./NotMatchRule");
|
|
73
79
|
Object.defineProperty(exports, "NotMatchRule", { enumerable: true, get: function () { return __importDefault(NotMatchRule_1).default; } });
|
|
74
|
-
var PmIcon_1 = require("./PmIcon");
|
|
75
|
-
Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
|
|
76
|
-
var PmTaskIcon_1 = require("./PmTaskIcon");
|
|
77
|
-
Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
|
|
78
80
|
var Pin_1 = require("./Pin");
|
|
79
81
|
Object.defineProperty(exports, "Pin", { enumerable: true, get: function () { return __importDefault(Pin_1).default; } });
|
|
80
82
|
var PinOutlined_1 = require("./PinOutlined");
|
|
81
83
|
Object.defineProperty(exports, "PinOutlined", { enumerable: true, get: function () { return __importDefault(PinOutlined_1).default; } });
|
|
82
84
|
var PivotingIcon_1 = require("./PivotingIcon");
|
|
83
85
|
Object.defineProperty(exports, "PivotingIcon", { enumerable: true, get: function () { return __importDefault(PivotingIcon_1).default; } });
|
|
86
|
+
var PmIcon_1 = require("./PmIcon");
|
|
87
|
+
Object.defineProperty(exports, "PmIcon", { enumerable: true, get: function () { return __importDefault(PmIcon_1).default; } });
|
|
88
|
+
var PmTaskIcon_1 = require("./PmTaskIcon");
|
|
89
|
+
Object.defineProperty(exports, "PmTaskIcon", { enumerable: true, get: function () { return __importDefault(PmTaskIcon_1).default; } });
|
|
84
90
|
var Polygon_1 = require("./Polygon");
|
|
85
91
|
Object.defineProperty(exports, "Polygon", { enumerable: true, get: function () { return __importDefault(Polygon_1).default; } });
|
|
86
92
|
var PotentialMatch_1 = require("./PotentialMatch");
|
|
@@ -83,10 +83,11 @@ var getTableRowsData = function (rowValues, columnsData, renderRowCell, getRowCe
|
|
|
83
83
|
};
|
|
84
84
|
var getTableHeadData = function (columnsData, filters, onFilter) {
|
|
85
85
|
return columnsData.map(function (_a) {
|
|
86
|
-
var id = _a.id, label = _a.label, sortable = _a.sortable, _b = _a.filterable, filterable = _b === void 0 ? true : _b, resizable = _a.resizable, draggable = _a.draggable, _c = _a.autoResize, autoResize = _c === void 0 ? true : _c, initialWidth = _a.initialWidth, minWidth = _a.minWidth, dataTypeDefinition = _a.dataTypeDefinition, filterOptions = _a.filterOptions, _d = _a.headCellRenderer, headCellRenderer = _d === void 0 ? withFilterAtBottom(DefaultHeadCellRenderer) : _d;
|
|
86
|
+
var id = _a.id, label = _a.label, description = _a.description, sortable = _a.sortable, _b = _a.filterable, filterable = _b === void 0 ? true : _b, resizable = _a.resizable, draggable = _a.draggable, _c = _a.autoResize, autoResize = _c === void 0 ? true : _c, initialWidth = _a.initialWidth, minWidth = _a.minWidth, dataTypeDefinition = _a.dataTypeDefinition, filterOptions = _a.filterOptions, _d = _a.headCellRenderer, headCellRenderer = _d === void 0 ? withFilterAtBottom(DefaultHeadCellRenderer) : _d;
|
|
87
87
|
return ({
|
|
88
88
|
id: id,
|
|
89
89
|
label: label,
|
|
90
|
+
description: description,
|
|
90
91
|
sortable: sortable,
|
|
91
92
|
resizable: resizable,
|
|
92
93
|
draggable: draggable,
|
|
@@ -21,14 +21,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React from 'react';
|
|
24
|
+
import i18n from 'ui-i18n';
|
|
24
25
|
import Toolbar from '@material-ui/core/Toolbar';
|
|
25
26
|
import Typography from '@material-ui/core/Typography';
|
|
26
27
|
import { useStyles } from './styles';
|
|
27
28
|
var BasicViewHeader = function (_a) {
|
|
28
|
-
var
|
|
29
|
+
var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.children, children = _c === void 0 ? null : _c, _d = _a.classes, classes = _d === void 0 ? {} : _d, otherProps = __rest(_a, ["title", "children", "classes"]);
|
|
29
30
|
var styles = useStyles();
|
|
30
31
|
return (React.createElement(Toolbar, __assign({ className: classes.root, classes: { root: styles.toolbar } }, otherProps),
|
|
31
|
-
React.createElement(Typography, { className: classes.title, classes: { root: styles.title }, variant: "h6" }, title),
|
|
32
|
+
React.createElement(Typography, { className: classes.title, classes: { root: styles.title }, variant: "h6" }, i18n.text(title)),
|
|
32
33
|
children));
|
|
33
34
|
};
|
|
34
35
|
export default BasicViewHeader;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { pipe } from 'ramda';
|
|
3
|
-
import
|
|
3
|
+
import { getIntervalUnitLabel } from '@reltio/mdm-sdk';
|
|
4
4
|
import capitalize from '@material-ui/core/utils/capitalize';
|
|
5
5
|
import TextField from '@material-ui/core/TextField';
|
|
6
6
|
import SimpleDropDownSelector from '../SimpleDropDownSelector/SimpleDropDownSelector';
|
|
7
7
|
import { getValue } from '../../core/utils';
|
|
8
8
|
import { useStyles } from './styles';
|
|
9
|
-
var periods = [
|
|
10
|
-
i18n.text('minutes'),
|
|
11
|
-
i18n.text('hours'),
|
|
12
|
-
i18n.text('days'),
|
|
13
|
-
i18n.text('weeks'),
|
|
14
|
-
i18n.text('months'),
|
|
15
|
-
i18n.text('years')
|
|
16
|
-
];
|
|
9
|
+
var periods = ['minutes', 'hours', 'days', 'weeks', 'months', 'years'];
|
|
17
10
|
var DateIntervalSelector = function (_a) {
|
|
18
11
|
var _b = _a.interval, value = _b[0], unit = _b[1], onChange = _a.onChange, onFocus = _a.onFocus;
|
|
19
12
|
var styles = useStyles();
|
|
@@ -26,9 +19,9 @@ var DateIntervalSelector = function (_a) {
|
|
|
26
19
|
var onUnitChange = pipe(getIntervalFromUnit, onChange);
|
|
27
20
|
return (React.createElement("div", { className: styles.root },
|
|
28
21
|
React.createElement(TextField, { type: "number", value: value || '', onChange: onNumberChange, inputProps: { min: 1, onFocus: onFocus }, InputProps: { classes: { root: styles.input } }, className: styles.inputNumber }),
|
|
29
|
-
React.createElement(SimpleDropDownSelector, { label: '', placeholder: capitalize(unit), className: styles.inputUnit, value: { value: unit, label: capitalize(unit) }, options: periods.map(function (value) { return ({
|
|
22
|
+
React.createElement(SimpleDropDownSelector, { label: '', placeholder: capitalize(unit), className: styles.inputUnit, value: { value: unit, label: capitalize(getIntervalUnitLabel(unit)) }, options: periods.map(function (value) { return ({
|
|
30
23
|
value: value,
|
|
31
|
-
label: capitalize(value)
|
|
24
|
+
label: capitalize(getIntervalUnitLabel(value))
|
|
32
25
|
}); }), onChange: onUnitChange, TextFieldProps: {
|
|
33
26
|
inputProps: { onFocus: onFocus },
|
|
34
27
|
InputProps: { classes: { root: styles.input } }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import i18n from 'ui-i18n';
|
|
2
2
|
import { curry, join, identity, isNil, map, pipe, reject, sortBy, defaultTo, pluck } from 'ramda';
|
|
3
|
-
import { DataTypes, formatDataTypeValue, DateRangeTypes } from '@reltio/mdm-sdk';
|
|
3
|
+
import { DataTypes, formatDataTypeValue, DateRangeTypes, getIntervalUnitLabel } from '@reltio/mdm-sdk';
|
|
4
4
|
import { getActivityLabel } from '../utils/activities';
|
|
5
5
|
export var getFilterLabel = function (filters) {
|
|
6
6
|
var getLabel = curry(function (unit, pluralUnit, values) {
|
|
@@ -19,9 +19,15 @@ export var getFilterLabel = function (filters) {
|
|
|
19
19
|
};
|
|
20
20
|
switch (date.type) {
|
|
21
21
|
case DateRangeTypes.WITHIN:
|
|
22
|
-
return i18n.text('Within ${amount} ${unit}', {
|
|
22
|
+
return i18n.text('Within ${amount} ${unit}', {
|
|
23
|
+
amount: date.period[0],
|
|
24
|
+
unit: getIntervalUnitLabel(date.period[1])
|
|
25
|
+
});
|
|
23
26
|
case DateRangeTypes.AGO:
|
|
24
|
-
return i18n.text('More than ${amount} ${unit} ago', {
|
|
27
|
+
return i18n.text('More than ${amount} ${unit} ago', {
|
|
28
|
+
amount: date.period[0],
|
|
29
|
+
unit: getIntervalUnitLabel(date.period[1])
|
|
30
|
+
});
|
|
25
31
|
case DateRangeTypes.BETWEEN:
|
|
26
32
|
return i18n.text('${startDate} to ${endDate}', {
|
|
27
33
|
startDate: formatDateValue(date.period[0]),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ChipWithTooltip: React.ForwardRefExoticComponent<import("prop-types").InferPropsInner<Pick<{
|
|
3
|
+
tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
4
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
5
|
+
showForDisabled: import("prop-types").Requireable<boolean>;
|
|
6
|
+
}, never>> & Partial<import("prop-types").InferPropsInner<Pick<{
|
|
7
|
+
tooltipTitle: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
8
|
+
tooltipPlacement: import("prop-types").Requireable<string>;
|
|
9
|
+
showForDisabled: import("prop-types").Requireable<boolean>;
|
|
10
|
+
}, "tooltipTitle" | "tooltipPlacement" | "showForDisabled">>> & {
|
|
11
|
+
avatar?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
12
|
+
children?: null;
|
|
13
|
+
clickable?: boolean;
|
|
14
|
+
color?: "default" | "primary" | "secondary";
|
|
15
|
+
deleteIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
18
|
+
label?: React.ReactNode;
|
|
19
|
+
onDelete?: (event: any) => void;
|
|
20
|
+
size?: "medium" | "small";
|
|
21
|
+
variant?: "default" | "outlined";
|
|
22
|
+
} & import("@material-ui/core/OverridableComponent").CommonProps<import("@material-ui/core/Chip").ChipTypeMap<{}, "div">> & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
23
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
24
|
+
}, "translate" | "hidden" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "ref" | "key">>;
|
|
25
|
+
declare type Props = {
|
|
26
|
+
className?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
showDescription?: boolean;
|
|
29
|
+
};
|
|
30
|
+
declare const DescriptionIcon: ({ className, description }: Props) => JSX.Element;
|
|
31
|
+
export default DescriptionIcon;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import Chip from '@material-ui/core/Chip';
|
|
4
|
+
import { FeaturesContext } from '../../../contexts';
|
|
5
|
+
import { withTooltip } from '../../../HOCs';
|
|
6
|
+
import Description from '../../../icons/Description';
|
|
7
|
+
import { useStyles } from './styles';
|
|
8
|
+
export var ChipWithTooltip = withTooltip(Chip);
|
|
9
|
+
var DescriptionIcon = function (_a) {
|
|
10
|
+
var className = _a.className, description = _a.description;
|
|
11
|
+
var showDescription = useContext(FeaturesContext).showDescription;
|
|
12
|
+
var styles = useStyles();
|
|
13
|
+
if (!description || !showDescription) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return (React.createElement(ChipWithTooltip, { tooltipTitle: description, tooltipPlacement: "bottom", icon: React.createElement(Description, null), classes: {
|
|
17
|
+
root: classnames(styles.container, className),
|
|
18
|
+
label: styles.label,
|
|
19
|
+
icon: styles.icon
|
|
20
|
+
} }));
|
|
21
|
+
};
|
|
22
|
+
export default DescriptionIcon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./DescriptionIcon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DescriptionIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"icon" | "label" | "container">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { makeStyles } from '@material-ui/core/styles';
|
|
2
|
+
export var useStyles = makeStyles(function () { return ({
|
|
3
|
+
container: {
|
|
4
|
+
height: '15px',
|
|
5
|
+
backgroundColor: 'transparent',
|
|
6
|
+
'&:hover': {
|
|
7
|
+
backgroundColor: 'transparent'
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
label: {
|
|
11
|
+
paddingLeft: '4px',
|
|
12
|
+
paddingRight: '4px',
|
|
13
|
+
fontSize: '10px',
|
|
14
|
+
lineHeight: '11px'
|
|
15
|
+
},
|
|
16
|
+
icon: {
|
|
17
|
+
width: '12px',
|
|
18
|
+
height: '12px',
|
|
19
|
+
marginRight: 0
|
|
20
|
+
}
|
|
21
|
+
}); });
|
|
@@ -24,7 +24,7 @@ var OvIcon = function (_a) {
|
|
|
24
24
|
var tooltipTitle = nonOvValues.length
|
|
25
25
|
? nonOvValues.map(function (value, i) { return (React.createElement("div", { key: i }, isComplexAttribute(attributeType) ? (getLabel(value.label)) : (React.createElement(DataTypeValue, { value: getAttributeValue(value), dataTypeDefinition: getAttrDataTypeDefinition(attributeType), rich: false })))); })
|
|
26
26
|
: null;
|
|
27
|
-
return (React.createElement(ChipWithTooltip, { tooltipTitle: tooltipTitle, tooltipPlacement: "
|
|
27
|
+
return (React.createElement(ChipWithTooltip, { tooltipTitle: tooltipTitle, tooltipPlacement: "bottom", label: "+ ".concat(nonOvTotal), variant: "outlined", onClick: onClick, classes: {
|
|
28
28
|
root: classnames(styles.container, className),
|
|
29
29
|
label: styles.label
|
|
30
30
|
} }));
|
|
@@ -15,13 +15,14 @@ import { withContext } from '../../../../HOCs';
|
|
|
15
15
|
import { PinnedAttributesContext } from '../contexts/PinnedAttributesContext';
|
|
16
16
|
import { useScrollToAttributeError } from '../../../../hooks';
|
|
17
17
|
import { ScrollToErrorContext } from '../../../../contexts';
|
|
18
|
+
import DescriptionIcon from '../../DescriptionIcon/DescriptionIcon';
|
|
18
19
|
import { useStyles } from './styles';
|
|
19
20
|
var AttributeRenderer = function (_a) {
|
|
20
21
|
var max = _a.max, values = _a.values, attributeType = _a.attributeType, parentUri = _a.parentUri, mode = _a.mode, drawLines = _a.drawLines, showEmptyEditors = _a.showEmptyEditors, errorMessage = _a.errorMessage, errors = _a.errors, paging = _a.paging, crosswalks = _a.crosswalks, showNonOv = _a.showNonOv, nonVisibleValues = _a.nonVisibleValues, highlightedError = _a.highlightedError, onAddAttributes = _a.onAddAttributes, onDeleteAttribute = _a.onDeleteAttribute, onChangeAttribute = _a.onChangeAttribute, onDeactivateError = _a.onDeactivateError, additionalControlsRenderer = _a.additionalControlsRenderer, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues;
|
|
21
22
|
var styles = useStyles();
|
|
22
23
|
var _b = useState(max), visibleValuesCount = _b[0], setVisibleValuesCount = _b[1];
|
|
23
24
|
var _c = useState(false), hadDeletions = _c[0], setHadDeletions = _c[1];
|
|
24
|
-
var label = attributeType.label, isRequired = attributeType.required, cardinality = attributeType.cardinality, name = attributeType.name, attributeTypeUri = attributeType.uri;
|
|
25
|
+
var label = attributeType.label, isRequired = attributeType.required, cardinality = attributeType.cardinality, name = attributeType.name, attributeTypeUri = attributeType.uri, description = attributeType.description;
|
|
25
26
|
var isEditableMode = checkIsEditableMode(mode);
|
|
26
27
|
var _d = useScrollToAttributeError({ highlightedError: highlightedError }), ref = _d.ref, errorClassName = _d.errorClassName;
|
|
27
28
|
var pinnedAttributes = useContext(PinnedAttributesContext);
|
|
@@ -82,6 +83,7 @@ var AttributeRenderer = function (_a) {
|
|
|
82
83
|
React.createElement("div", { ref: ref, className: classNames(styles.wrapper, errorClassName) },
|
|
83
84
|
React.createElement("div", { className: styles.titleWrapper },
|
|
84
85
|
React.createElement(Title, { label: label, isRequired: isRequired, className: styles.title, "data-reltio-id": "reltio-attribute-label" }),
|
|
86
|
+
React.createElement(DescriptionIcon, { description: description, className: styles.description }),
|
|
85
87
|
React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
|
|
86
88
|
isEditableMode && React.createElement(Cardinality, { cardinality: cardinality }),
|
|
87
89
|
isEditableMode && React.createElement(ErrorMessage, { message: errorMessage, className: styles.typeError }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "title" | "link" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
1
|
+
export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"caption" | "title" | "link" | "description" | "wrapper" | "ovIcon" | "svg-icon__root" | "attributesWrapper" | "typeError" | "titleWrapper">;
|
|
@@ -7,6 +7,7 @@ import Title from '../../../Title/Title';
|
|
|
7
7
|
import ShowMore from '../../pagersCommon/ShowMore';
|
|
8
8
|
import ShowLess from '../../pagersCommon/ShowLess';
|
|
9
9
|
import OvIcon from '../../OvIcon';
|
|
10
|
+
import DescriptionIcon from '../../DescriptionIcon';
|
|
10
11
|
var MultiLineRenderer = function (_a) {
|
|
11
12
|
var max = _a.max, values = _a.values, nonVisibleValues = _a.nonVisibleValues, totalVisibleValues = _a.totalVisibleValues, attributeType = _a.attributeType, parentUri = _a.parentUri, requestNextPageOfAttributeValues = _a.requestNextPageOfAttributeValues, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
|
|
12
13
|
var styles = useMultiLineStyles();
|
|
@@ -14,7 +15,7 @@ var MultiLineRenderer = function (_a) {
|
|
|
14
15
|
var hasPaging = max < totalVisibleValues;
|
|
15
16
|
var showMore = hasPaging && visibleValuesCount < totalVisibleValues;
|
|
16
17
|
var showLess = hasPaging && visibleValuesCount >= totalVisibleValues;
|
|
17
|
-
var label = attributeType.label;
|
|
18
|
+
var label = attributeType.label, description = attributeType.description;
|
|
18
19
|
var onShowMore = function () {
|
|
19
20
|
if (values.length < totalVisibleValues) {
|
|
20
21
|
requestNextPageOfAttributeValues({
|
|
@@ -35,6 +36,7 @@ var MultiLineRenderer = function (_a) {
|
|
|
35
36
|
return (React.createElement("div", { className: styles.wrapper },
|
|
36
37
|
React.createElement("div", { className: styles.titleRow },
|
|
37
38
|
React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
|
|
39
|
+
React.createElement(DescriptionIcon, { description: description }),
|
|
38
40
|
React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues })),
|
|
39
41
|
React.createElement("div", { className: styles.attributes }, shownValues.map(function (value) { return (React.createElement(Attribute, { key: value.uri, className: classnames(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv })); })),
|
|
40
42
|
showMore && (React.createElement(ShowMore, { moreNumber: min(max, hiddenValuesCount), valueNumber: hiddenValuesCount, onClick: onShowMore })),
|
|
@@ -5,18 +5,20 @@ import { COMMENTS_CONTAINER_VISIBILITY_AREA } from '../../../../constants';
|
|
|
5
5
|
import CommentsContainer from '../../../CommentsContainer/CommentsContainer';
|
|
6
6
|
import Title from '../../../Title/Title';
|
|
7
7
|
import OvIcon from '../../OvIcon';
|
|
8
|
+
import DescriptionIcon from '../../DescriptionIcon/DescriptionIcon';
|
|
8
9
|
import Attribute from '../AttributesFactory/Attribute';
|
|
9
10
|
import { useOneLineStyles } from './styles';
|
|
10
11
|
var OneLineRenderer = function (_a) {
|
|
11
12
|
var value = _a.value, nonVisibleValues = _a.nonVisibleValues, attributeType = _a.attributeType, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, showNonOv = _a.showNonOv, totalNonVisibleValues = _a.totalNonVisibleValues;
|
|
12
13
|
var styles = useOneLineStyles();
|
|
13
|
-
var label = attributeType.label;
|
|
14
|
+
var label = attributeType.label, description = attributeType.description;
|
|
14
15
|
var objectType = isRelationAttrType(attributeType)
|
|
15
16
|
? CollaborationObjectTypes.RELATION_ATTRIBUTE
|
|
16
17
|
: CollaborationObjectTypes.ENTITY_ATTRIBUTE;
|
|
17
18
|
return (React.createElement("div", { className: classnames(styles.collaborationWrapper, COMMENTS_CONTAINER_VISIBILITY_AREA) },
|
|
18
19
|
React.createElement("div", { className: classnames(styles.titleRow, styles.wrapper) },
|
|
19
20
|
React.createElement(Title, { label: label, className: classnames(styles.title, titleClassName), "data-reltio-id": "reltio-attribute-label" }),
|
|
21
|
+
React.createElement(DescriptionIcon, { description: description, className: styles.descriptionIcon }),
|
|
20
22
|
React.createElement(OvIcon, { nonOvValues: nonVisibleValues, attributeType: attributeType, className: styles.ovIcon, nonOvTotal: totalNonVisibleValues }),
|
|
21
23
|
React.createElement(Attribute, { className: classnames(styles.attribute, contentClassName), attributeValue: value, attributeType: attributeType, showNonOv: showNonOv, inlined: true })),
|
|
22
24
|
React.createElement(CommentsContainer, { uri: value.uri, relatedObjectUris: createRelatedObjectUris(objectType, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"paddingWrapper" | "paddingWrapperWithLines">;
|
|
2
|
-
export const useOneLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attribute" | "wrapper" | "collaborationWrapper" | "titleIcon" | "titleRow" | "ovIcon">;
|
|
3
|
-
export const useMultiLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attributes" | "attribute" | "wrapper" | "titleRow" | "ovIcon">;
|
|
2
|
+
export const useOneLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attribute" | "wrapper" | "collaborationWrapper" | "titleIcon" | "titleRow" | "ovIcon" | "descriptionIcon">;
|
|
3
|
+
export const useMultiLineStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"title" | "attributes" | "attribute" | "wrapper" | "titleRow" | "ovIcon" | "descriptionIcon">;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './activityLog';
|
|
2
2
|
export { default as AttributeListItem } from './AttributeListItem/AttributeListItem';
|
|
3
3
|
export { default as AttributesView } from './attributes/AttributesView';
|
|
4
|
+
export { default as DescriptionIcon } from './attributes/DescriptionIcon';
|
|
4
5
|
export { default as BranchDecorator } from './attributes/BranchDecorator/BranchDecorator';
|
|
5
6
|
export { default as AttributesList } from './attributes/editMode/AttributesList';
|
|
6
7
|
export { default as EntityCreator } from './attributes/editMode/EntityCreator';
|
package/esm/components/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './activityLog';
|
|
2
2
|
export { default as AttributeListItem } from './AttributeListItem/AttributeListItem';
|
|
3
3
|
export { default as AttributesView } from './attributes/AttributesView';
|
|
4
|
+
export { default as DescriptionIcon } from './attributes/DescriptionIcon';
|
|
4
5
|
export { default as BranchDecorator } from './attributes/BranchDecorator/BranchDecorator';
|
|
5
6
|
export { default as AttributesList } from './attributes/editMode/AttributesList';
|
|
6
7
|
export { default as EntityCreator } from './attributes/editMode/EntityCreator';
|
|
@@ -33,7 +33,7 @@ var GenericWorkflowTaskCard = function (_a) {
|
|
|
33
33
|
React.createElement(LineDecorator, { plain: true, first: true, transparent: !isExpanded },
|
|
34
34
|
React.createElement("div", { className: styles.mainInfo },
|
|
35
35
|
React.createElement("div", { className: styles.title },
|
|
36
|
-
React.createElement("div", { className: classnames(styles.caption, styles.flex) }, processDefinitionDisplayName),
|
|
36
|
+
React.createElement("div", { className: classnames(styles.caption, styles.flex) }, i18n.text(processDefinitionDisplayName)),
|
|
37
37
|
React.createElement(FlagIcon, { className: styles.flag }),
|
|
38
38
|
React.createElement(Tooltip, { title: i18n.text('Due date') },
|
|
39
39
|
React.createElement("span", { className: styles.date }, i18n.date(dueDate, 'L'))),
|
package/esm/contexts/index.d.ts
CHANGED
|
@@ -25,3 +25,4 @@ export { SearchValueContext } from './SearchValueContext';
|
|
|
25
25
|
export { ScrollToErrorContext, ScrollToErrorProvider } from './ScrollToErrorContext';
|
|
26
26
|
export { UrlGeneratorsContext } from './UrlGeneratorsContext';
|
|
27
27
|
export { LabelsContext } from './LabelsContext';
|
|
28
|
+
export { FeaturesContext } from './FeaturesContext';
|
package/esm/contexts/index.js
CHANGED
|
@@ -25,3 +25,4 @@ export { SearchValueContext } from './SearchValueContext';
|
|
|
25
25
|
export { ScrollToErrorContext, ScrollToErrorProvider } from './ScrollToErrorContext';
|
|
26
26
|
export { UrlGeneratorsContext } from './UrlGeneratorsContext';
|
|
27
27
|
export { LabelsContext } from './LabelsContext';
|
|
28
|
+
export { FeaturesContext } from './FeaturesContext';
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
var SvgDescription = function (props) {
|
|
14
|
+
return (React.createElement("svg", __assign({ width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
15
|
+
React.createElement("path", { d: "M5.417 9.5h1.166V8.333H5.417V9.5zM6 .167A5.835 5.835 0 00.167 6 5.835 5.835 0 006 11.833 5.835 5.835 0 0011.833 6 5.835 5.835 0 006 .167zm0 10.5A4.673 4.673 0 011.333 6 4.673 4.673 0 016 1.333 4.673 4.673 0 0110.667 6 4.673 4.673 0 016 10.667zM6 2.5a2.333 2.333 0 00-2.333 2.333h1.166A1.17 1.17 0 016 3.667a1.17 1.17 0 011.167 1.166c0 1.167-1.75 1.021-1.75 2.917h1.166c0-1.313 1.75-1.458 1.75-2.917A2.333 2.333 0 006 2.5z", fill: "#000", fillOpacity: 0.54 })));
|
|
16
|
+
};
|
|
17
|
+
export default SvgDescription;
|
package/esm/icons/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { default as DcrTaskIcon } from './DcrTaskIcon';
|
|
|
11
11
|
export { default as DefaultImage } from './DefaultImage';
|
|
12
12
|
export { default as DefaultTaskIcon } from './DefaultTaskIcon';
|
|
13
13
|
export { default as DeleteRequestTaskIcon } from './DeleteRequestTaskIcon';
|
|
14
|
+
export { default as Description } from './Description';
|
|
14
15
|
export { default as Details } from './Details';
|
|
15
16
|
export { default as Download } from './Download';
|
|
16
17
|
export { default as Draw } from './Draw';
|
|
@@ -22,20 +23,22 @@ export { default as Ignored } from './Ignored';
|
|
|
22
23
|
export { default as IgnoredOutlined } from './IgnoredOutlined';
|
|
23
24
|
export { default as LogIn } from './LogIn';
|
|
24
25
|
export { default as LogOut } from './LogOut';
|
|
25
|
-
export { default as MlMatch } from './MlMatch';
|
|
26
26
|
export { default as Merge } from './Merge';
|
|
27
27
|
export { default as MergeDark } from './MergeDark';
|
|
28
|
+
export { default as MlMatch } from './MlMatch';
|
|
29
|
+
export { default as NegativeRuleIcon } from './NegativeRuleIcon';
|
|
30
|
+
export { default as NegativeRuleTooltipIcon } from './NegativeRuleTooltipIcon';
|
|
28
31
|
export { default as NestedAttribute } from './NestedAttribute';
|
|
29
32
|
export { default as NoData } from './NoData';
|
|
30
33
|
export { default as NoDataSearch } from './NoDataSearch';
|
|
31
34
|
export { default as NoMatches } from './NoMatches';
|
|
32
35
|
export { default as NotMatchDark } from './NotMatchDark';
|
|
33
36
|
export { default as NotMatchRule } from './NotMatchRule';
|
|
34
|
-
export { default as PmIcon } from './PmIcon';
|
|
35
|
-
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
36
37
|
export { default as Pin } from './Pin';
|
|
37
38
|
export { default as PinOutlined } from './PinOutlined';
|
|
38
39
|
export { default as PivotingIcon } from './PivotingIcon';
|
|
40
|
+
export { default as PmIcon } from './PmIcon';
|
|
41
|
+
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
39
42
|
export { default as Polygon } from './Polygon';
|
|
40
43
|
export { default as PotentialMatch } from './PotentialMatch';
|
|
41
44
|
export { default as Profile } from './Profile';
|
package/esm/icons/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { default as DcrTaskIcon } from './DcrTaskIcon';
|
|
|
11
11
|
export { default as DefaultImage } from './DefaultImage';
|
|
12
12
|
export { default as DefaultTaskIcon } from './DefaultTaskIcon';
|
|
13
13
|
export { default as DeleteRequestTaskIcon } from './DeleteRequestTaskIcon';
|
|
14
|
+
export { default as Description } from './Description';
|
|
14
15
|
export { default as Details } from './Details';
|
|
15
16
|
export { default as Download } from './Download';
|
|
16
17
|
export { default as Draw } from './Draw';
|
|
@@ -22,20 +23,22 @@ export { default as Ignored } from './Ignored';
|
|
|
22
23
|
export { default as IgnoredOutlined } from './IgnoredOutlined';
|
|
23
24
|
export { default as LogIn } from './LogIn';
|
|
24
25
|
export { default as LogOut } from './LogOut';
|
|
25
|
-
export { default as MlMatch } from './MlMatch';
|
|
26
26
|
export { default as Merge } from './Merge';
|
|
27
27
|
export { default as MergeDark } from './MergeDark';
|
|
28
|
+
export { default as MlMatch } from './MlMatch';
|
|
29
|
+
export { default as NegativeRuleIcon } from './NegativeRuleIcon';
|
|
30
|
+
export { default as NegativeRuleTooltipIcon } from './NegativeRuleTooltipIcon';
|
|
28
31
|
export { default as NestedAttribute } from './NestedAttribute';
|
|
29
32
|
export { default as NoData } from './NoData';
|
|
30
33
|
export { default as NoDataSearch } from './NoDataSearch';
|
|
31
34
|
export { default as NoMatches } from './NoMatches';
|
|
32
35
|
export { default as NotMatchDark } from './NotMatchDark';
|
|
33
36
|
export { default as NotMatchRule } from './NotMatchRule';
|
|
34
|
-
export { default as PmIcon } from './PmIcon';
|
|
35
|
-
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
36
37
|
export { default as Pin } from './Pin';
|
|
37
38
|
export { default as PinOutlined } from './PinOutlined';
|
|
38
39
|
export { default as PivotingIcon } from './PivotingIcon';
|
|
40
|
+
export { default as PmIcon } from './PmIcon';
|
|
41
|
+
export { default as PmTaskIcon } from './PmTaskIcon';
|
|
39
42
|
export { default as Polygon } from './Polygon';
|
|
40
43
|
export { default as PotentialMatch } from './PotentialMatch';
|
|
41
44
|
export { default as Profile } from './Profile';
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1435",
|
|
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
|
"@date-io/moment": "^1.3.5",
|
|
9
9
|
"@react-google-maps/api": "2.7.0",
|
|
10
|
-
"@reltio/mdm-module": "^1.4.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.1435",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1435",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|