@eccenca/gui-elements 23.0.0-rc.1 → 23.0.0-rc.2
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/CHANGELOG.md +13 -0
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js +4 -10
- package/dist/cjs/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js +2 -1
- package/dist/cjs/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +19 -19
- package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js +4 -12
- package/dist/cjs/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +15 -6
- package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/cjs/components/Button/Button.js +2 -2
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextMenu.js +6 -5
- package/dist/cjs/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js +6 -8
- package/dist/cjs/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/cjs/components/Form/FieldItem.js +2 -2
- package/dist/cjs/components/Form/FieldItem.js.map +1 -1
- package/dist/cjs/components/Icon/Icon.js +2 -2
- package/dist/cjs/components/Icon/Icon.js.map +1 -1
- package/dist/cjs/components/Icon/IconButton.js +2 -2
- package/dist/cjs/components/Icon/IconButton.js.map +1 -1
- package/dist/cjs/components/Label/Label.js +6 -6
- package/dist/cjs/components/Label/Label.js.map +1 -1
- package/dist/cjs/components/Menu/MenuItem.js +2 -5
- package/dist/cjs/components/Menu/MenuItem.js.map +1 -1
- package/dist/cjs/components/MultiSelect/MultiSelect.js +8 -10
- package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +29 -0
- package/dist/cjs/components/Select/Select.js.map +1 -0
- package/dist/cjs/components/Tabs/TabTitle.js +2 -4
- package/dist/cjs/components/Tabs/TabTitle.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +7 -4
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js +2 -1
- package/dist/cjs/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/cjs/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js +1 -3
- package/dist/cjs/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js +4 -10
- package/dist/esm/cmem/ActivityControl/ActivityControlWidget.js.map +1 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js +2 -1
- package/dist/esm/cmem/react-flow/ReactFlow/ReactFlow.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +23 -21
- package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js +4 -12
- package/dist/esm/components/AutoSuggestion/AutoSuggestionList.js.map +1 -1
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js +32 -23
- package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
- package/dist/esm/components/Button/Button.js +2 -2
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextMenu.js +6 -5
- package/dist/esm/components/ContextOverlay/ContextMenu.js.map +1 -1
- package/dist/esm/components/ContextOverlay/ContextOverlay.js +6 -8
- package/dist/esm/components/ContextOverlay/ContextOverlay.js.map +1 -1
- package/dist/esm/components/Form/FieldItem.js +2 -2
- package/dist/esm/components/Form/FieldItem.js.map +1 -1
- package/dist/esm/components/Icon/Icon.js +2 -2
- package/dist/esm/components/Icon/Icon.js.map +1 -1
- package/dist/esm/components/Icon/IconButton.js +2 -2
- package/dist/esm/components/Icon/IconButton.js.map +1 -1
- package/dist/esm/components/Label/Label.js +6 -6
- package/dist/esm/components/Label/Label.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js +2 -5
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultiSelect/MultiSelect.js +5 -7
- package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/esm/components/Select/Select.js +35 -0
- package/dist/esm/components/Select/Select.js.map +1 -0
- package/dist/esm/components/Tabs/TabTitle.js +2 -4
- package/dist/esm/components/Tabs/TabTitle.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +7 -4
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js +2 -1
- package/dist/esm/extensions/react-flow/edges/EdgeTools.js.map +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js +1 -1
- package/dist/esm/extensions/react-flow/handles/HandleContent.js.map +1 -1
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js +1 -3
- package/dist/esm/extensions/react-flow/nodes/NodeTools.js.map +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +7 -4
- package/dist/types/components/Button/Button.d.ts +2 -2
- package/dist/types/components/ContextOverlay/ContextMenu.d.ts +37 -3
- package/dist/types/components/ContextOverlay/ContextOverlay.d.ts +12 -1
- package/dist/types/components/Form/FieldItem.d.ts +3 -2
- package/dist/types/components/Icon/Icon.d.ts +32 -7
- package/dist/types/components/Icon/IconButton.d.ts +21 -7
- package/dist/types/components/Label/Label.d.ts +30 -2
- package/dist/types/components/Menu/MenuItem.d.ts +3 -7
- package/dist/types/components/MultiSelect/MultiSelect.d.ts +13 -9
- package/dist/types/components/Select/Select.d.ts +22 -0
- package/dist/types/components/Tooltip/Tooltip.d.ts +13 -11
- package/dist/types/components/interfaces.d.ts +1 -0
- package/dist/types/extensions/react-flow/edges/EdgeTools.d.ts +2 -2
- package/dist/types/extensions/react-flow/nodes/NodeTools.d.ts +2 -2
- package/dist/types/index.d.ts +2 -1
- package/package.json +8 -5
- package/src/cmem/ActivityControl/ActivityControlWidget.stories.tsx +2 -2
- package/src/cmem/ActivityControl/ActivityControlWidget.tsx +5 -10
- package/src/cmem/react-flow/ReactFlow/ReactFlow.stories.tsx +48 -15
- package/src/cmem/react-flow/ReactFlow/ReactFlow.tsx +2 -0
- package/src/common/utils/CssCustomProperties.ts +12 -10
- package/src/components/AutoSuggestion/AutoSuggestion.tsx +23 -23
- package/src/components/AutoSuggestion/AutoSuggestionList.tsx +15 -17
- package/src/components/AutoSuggestion/tests/AutoSuggestionList.test.tsx +1 -1
- package/src/components/AutocompleteField/AutoCompleteField.tsx +44 -19
- package/src/components/AutocompleteField/autocompletefield.scss +5 -3
- package/src/components/AutocompleteField/stories/AutoCompleteField.stories.tsx +75 -0
- package/src/components/Button/Button.tsx +3 -3
- package/src/components/ContextOverlay/ContextMenu.stories.tsx +30 -0
- package/src/components/ContextOverlay/ContextMenu.tsx +46 -8
- package/src/components/ContextOverlay/ContextOverlay.stories.tsx +148 -0
- package/src/components/ContextOverlay/ContextOverlay.tsx +16 -9
- package/src/components/ContextOverlay/contextoverlay.scss +3 -3
- package/src/components/Form/FieldItem.tsx +4 -4
- package/src/components/Icon/Icon.tsx +33 -18
- package/src/components/Icon/IconButton.tsx +24 -19
- package/src/components/Icon/stories/Icon.stories.tsx +52 -0
- package/src/components/Icon/stories/IconButton.stories.tsx +27 -0
- package/src/components/Label/Label.stories.tsx +27 -0
- package/src/components/Label/Label.tsx +47 -15
- package/src/components/Menu/MenuItem.tsx +9 -16
- package/src/components/Menu/menu.scss +4 -3
- package/src/components/MultiSelect/MultiSelect.tsx +30 -18
- package/src/components/Select/Select.stories.tsx +35 -0
- package/src/components/Select/Select.tsx +38 -0
- package/src/components/Select/_select.scss +8 -0
- package/src/components/Tabs/TabTitle.tsx +2 -4
- package/src/components/Tabs/tabs.scss +1 -1
- package/src/components/Tag/tag.scss +26 -22
- package/src/components/Tooltip/Tooltip.stories.tsx +36 -0
- package/src/components/Tooltip/Tooltip.tsx +23 -18
- package/src/components/Tooltip/tooltip.scss +6 -6
- package/src/components/Typography/typography.scss +1 -0
- package/src/components/interfaces.ts +3 -1
- package/src/extensions/react-flow/edges/EdgeTools.tsx +6 -4
- package/src/extensions/react-flow/handles/HandleContent.tsx +0 -1
- package/src/extensions/react-flow/nodes/NodeTools.tsx +10 -7
- package/src/extensions/react-flow/nodes/stories/NodeContent.stories.tsx +18 -0
- package/src/includes/blueprintjs/_variables.scss +1 -1
- package/src/index.scss +9 -5
- package/src/index.ts +3 -1
|
@@ -6,10 +6,8 @@ import Button from "../Button/Button.js";
|
|
|
6
6
|
*/
|
|
7
7
|
var TabTitle = function (_a) {
|
|
8
8
|
var text = _a.text, tooltip = _a.tooltip, titlePrefix = _a.titlePrefix, titleSuffix = _a.titleSuffix, _b = _a.large, large = _b === void 0 ? false : _b, _c = _a.small, small = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d;
|
|
9
|
-
return (React.createElement(Button, { className: eccgui + "-tabtitle", minimal: true, tabIndex: -1, text: text, tooltip: disabled ? undefined : tooltip,
|
|
10
|
-
|
|
11
|
-
boundary: "window"
|
|
12
|
-
}
|
|
9
|
+
return (React.createElement(Button, { className: eccgui + "-tabtitle", minimal: true, tabIndex: -1, text: text, tooltip: disabled ? undefined : tooltip, tooltipProps: {
|
|
10
|
+
rootBoundary: "viewport"
|
|
13
11
|
}, icon: React.createElement(React.Fragment, null, titlePrefix), rightIcon: React.createElement(React.Fragment, null, titleSuffix), small: small, large: large, disabled: disabled }));
|
|
14
12
|
};
|
|
15
13
|
export default TabTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabTitle.js","sourceRoot":"","sources":["../../../../src/components/Tabs/TabTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAmCtC;;GAEG;AACH,IAAM,QAAQ,GAAG,UAAC,EAQF;QAPZ,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAW,EAAX,KAAK,mBAAC,KAAK,KAAA,EACX,aAAW,EAAX,KAAK,mBAAC,KAAK,KAAA,EACX,gBAAc,EAAd,QAAQ,mBAAC,KAAK,KAAA;IAEd,OAAO,CACH,oBAAC,MAAM,IACH,SAAS,EAAK,MAAM,cAAW,EAC/B,OAAO,QACP,QAAQ,EAAE,CAAC,CAAC,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACvC,
|
|
1
|
+
{"version":3,"file":"TabTitle.js","sourceRoot":"","sources":["../../../../src/components/Tabs/TabTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAmCtC;;GAEG;AACH,IAAM,QAAQ,GAAG,UAAC,EAQF;QAPZ,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,WAAW,iBAAA,EACX,aAAW,EAAX,KAAK,mBAAC,KAAK,KAAA,EACX,aAAW,EAAX,KAAK,mBAAC,KAAK,KAAA,EACX,gBAAc,EAAd,QAAQ,mBAAC,KAAK,KAAA;IAEd,OAAO,CACH,oBAAC,MAAM,IACH,SAAS,EAAK,MAAM,cAAW,EAC/B,OAAO,QACP,QAAQ,EAAE,CAAC,CAAC,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EACvC,YAAY,EAAE;YACV,YAAY,EAAE,UAAU;SAC3B,EACD,IAAI,EAAE,0CAAG,WAAW,CAAI,EACxB,SAAS,EAAE,0CAAG,WAAW,CAAI,EAC7B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GACpB,CACL,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -21,13 +21,16 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import React from "react";
|
|
24
|
-
import {
|
|
24
|
+
import { TOOLTIP2_INDICATOR } from "@blueprintjs/popover2/src/classes";
|
|
25
|
+
import { Tooltip2 as BlueprintTooltip } from "@blueprintjs/popover2";
|
|
25
26
|
import { CLASSPREFIX as eccgui } from "../../configuration/constants.js";
|
|
26
27
|
function Tooltip(_a) {
|
|
27
|
-
var children = _a.children, content = _a.content, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.addIndicator, addIndicator = _d === void 0 ? false : _d,
|
|
28
|
-
return (React.createElement(BlueprintTooltip, __assign({ lazy: true, hoverOpenDelay: 500 }, otherProps, { content: content
|
|
28
|
+
var children = _a.children, content = _a.content, _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.size, size = _c === void 0 ? "medium" : _c, _d = _a.addIndicator, addIndicator = _d === void 0 ? false : _d, otherProps = __rest(_a, ["children", "content", "className", "size", "addIndicator"]);
|
|
29
|
+
return (React.createElement(BlueprintTooltip, __assign({ lazy: true, hoverOpenDelay: 500 }, otherProps, { content: content, className: eccgui + "-tooltip__wrapper" +
|
|
29
30
|
(className ? " " + className : "") +
|
|
30
|
-
(addIndicator === true ? " " +
|
|
31
|
+
(addIndicator === true ? " " + TOOLTIP2_INDICATOR : ""),
|
|
32
|
+
//targetClassName={`${eccgui}-tooltip__target` + (className ? " " + className + "__target" : "")}
|
|
33
|
+
popoverClassName: eccgui + "-tooltip__content" +
|
|
31
34
|
(" " + eccgui + "-tooltip--" + size) +
|
|
32
35
|
(className ? " " + className + "__content" : "") }), children));
|
|
33
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,kBAAkB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,QAAQ,IAAI,gBAAgB,EAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAkBtE,SAAS,OAAO,CAAC,EAOF;IANX,IAAA,QAAQ,cAAA,EACR,OAAO,aAAA,EACP,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACjB,UAAU,cANA,4DAOhB,CADgB;IAEb,OAAO,CACH,oBAAC,gBAAgB,aACb,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,GAAG,IACf,UAAU,IACd,OAAO,EAAE,OAAO,EAChB,SAAS,EACF,MAAM,sBAAmB;YAC5B,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;YAClC,CAAC,YAAY,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;QAE3D,iGAAiG;QACjG,gBAAgB,EACT,MAAM,sBAAmB;aAC5B,MAAI,MAAM,kBAAa,IAAM,CAAA;YAC7B,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,KAGnD,QAAQ,CACM,CACtB,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -27,6 +27,7 @@ import { PopoverInteractionKind as BlueprintPopoverInteractionKind, } from "@blu
|
|
|
27
27
|
export var EdgeTools = memo(function (_a) {
|
|
28
28
|
var posOffset = _a.posOffset, children = _a.children, otherProps = __rest(_a, ["posOffset", "children"]);
|
|
29
29
|
return (React.createElement("div", { className: eccgui + "-graphviz__edgetools-target", style: __assign({}, posOffset) },
|
|
30
|
-
React.createElement(ContextOverlay, __assign({}, otherProps, { defaultIsOpen: true, autoFocus: true, interactionKind: BlueprintPopoverInteractionKind.HOVER, content: React.createElement("div", { className: eccgui + "-graphviz__edgetools-content" }, children),
|
|
30
|
+
React.createElement(ContextOverlay, __assign({}, otherProps, { defaultIsOpen: true, autoFocus: true, interactionKind: BlueprintPopoverInteractionKind.HOVER, content: React.createElement("div", { className: eccgui + "-graphviz__edgetools-content" }, children), popoverClassName: eccgui + "-graphviz__edgetools-overlay" }),
|
|
31
|
+
React.createElement("div", { className: eccgui + "-graphviz__edgetools-target", style: __assign({}, posOffset) }))));
|
|
31
32
|
});
|
|
32
33
|
//# sourceMappingURL=EdgeTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EdgeTools.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/edges/EdgeTools.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,WAAW,IAAI,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"EdgeTools.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/edges/EdgeTools.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,WAAW,IAAI,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACvE,OAAO,EACH,sBAAsB,IAAI,+BAA+B,GAC5D,MAAM,mBAAmB,CAAC;AAc3B,MAAM,CAAC,IAAM,SAAS,GAAG,IAAI,CACzB,UAAC,EAIgB;IAHb,IAAA,SAAS,eAAA,EACT,QAAQ,cAAA,EACL,UAAU,cAHhB,yBAIA,CADgB;IAEb,OAAO,CACH,6BAAK,SAAS,EAAK,MAAM,gCAA6B,EAAE,KAAK,eAAO,SAAS;QACzE,oBAAC,cAAc,eACP,UAAU,IACd,aAAa,EAAE,IAAI,EACnB,SAAS,EAAE,IAAI,EACf,eAAe,EAAE,+BAA+B,CAAC,KAAK,EACtD,OAAO,EAAE,6BAAK,SAAS,EAAK,MAAM,iCAA8B,IAAG,QAAQ,CAAO,EAClF,gBAAgB,EAAK,MAAM,iCAA8B;YAEzD,6BAAK,SAAS,EAAK,MAAM,gCAA6B,EAAE,KAAK,eAAO,SAAS,IAAM,CACtE,CACf,CACT,CAAC;AACN,CAAC,CACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ export var HandleContent = memo(function (_a) {
|
|
|
5
5
|
var children = _a.children, extendedTooltip = _a.extendedTooltip;
|
|
6
6
|
var handleContent = !!children ? (React.createElement("div", { className: eccgui + "-graphviz__handle__content" }, children)) : !!extendedTooltip ? (React.createElement("div", { className: eccgui + "-graphviz__handle__content" })) : (React.createElement(React.Fragment, null));
|
|
7
7
|
if (!!extendedTooltip) {
|
|
8
|
-
return (React.createElement(Tooltip, { content: extendedTooltip,
|
|
8
|
+
return (React.createElement(Tooltip, { content: extendedTooltip, autoFocus: false, enforceFocus: false, openOnTargetFocus: false }, handleContent));
|
|
9
9
|
}
|
|
10
10
|
return handleContent;
|
|
11
11
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandleContent.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/handles/HandleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAOzC,MAAM,CAAC,IAAM,aAAa,GAAG,IAAI,CAAC,UAAC,EAGd;QAFjB,QAAQ,cAAA,EACR,eAAe,qBAAA;IAEf,IAAM,aAAa,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC/B,6BAAK,SAAS,EAAK,MAAM,+BAA4B,IAC/C,QAAQ,CACR,CACT,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CACpB,6BAAK,SAAS,EAAK,MAAM,+BAA4B,GAAI,CAC5D,CAAC,CAAC,CAAC,CACA,yCAAK,CACR,CAAC;IAEF,IAAI,CAAC,CAAC,eAAe,EAAE;QACnB,OAAO,CACH,oBAAC,OAAO,IACJ,OAAO,EAAE,eAAe,EACxB,
|
|
1
|
+
{"version":3,"file":"HandleContent.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/handles/HandleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAOzC,MAAM,CAAC,IAAM,aAAa,GAAG,IAAI,CAAC,UAAC,EAGd;QAFjB,QAAQ,cAAA,EACR,eAAe,qBAAA;IAEf,IAAM,aAAa,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAC/B,6BAAK,SAAS,EAAK,MAAM,+BAA4B,IAC/C,QAAQ,CACR,CACT,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CACpB,6BAAK,SAAS,EAAK,MAAM,+BAA4B,GAAI,CAC5D,CAAC,CAAC,CAAC,CACA,yCAAK,CACR,CAAC;IAEF,IAAI,CAAC,CAAC,eAAe,EAAE;QACnB,OAAO,CACH,oBAAC,OAAO,IACJ,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,KAAK,EAChB,YAAY,EAAE,KAAK,EACnB,iBAAiB,EAAE,KAAK,IAEtB,aAAa,CACT,CACb,CAAC;KACL;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC,CAAC"}
|
|
@@ -50,8 +50,6 @@ export var NodeTools = memo(function (_a) {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}, [menuFunctionsCallback]);
|
|
53
|
-
return (React.createElement(ContextOverlay, __assign({ isOpen: isOpen, onClose: function () { return setIsOpen(false); }, hoverCloseDelay: 500, interactionKind: isOpen ? BlueprintPopoverInteractionKind.HOVER : BlueprintPopoverInteractionKind.CLICK }, otherOverlayProps),
|
|
54
|
-
typeof togglerElement === "string" ? (React.createElement(IconButton, { "data-test-id": menuButtonDataTestId, name: togglerElement, text: togglerText, onClick: function () { return setIsOpen(function (previous) { return !previous; }); } })) : ({ togglerElement: togglerElement }),
|
|
55
|
-
React.createElement("div", { className: eccgui + "-graphviz__nodetools__content" }, children)));
|
|
53
|
+
return (React.createElement(ContextOverlay, __assign({ isOpen: isOpen, onClose: function () { return setIsOpen(false); }, hoverCloseDelay: 500, interactionKind: isOpen ? BlueprintPopoverInteractionKind.HOVER : BlueprintPopoverInteractionKind.CLICK }, otherOverlayProps, { content: (React.createElement("div", { className: eccgui + "-graphviz__nodetools__content" }, children)) }), typeof togglerElement === "string" ? (React.createElement(IconButton, { "data-test-id": menuButtonDataTestId, name: togglerElement, text: togglerText, onClick: function () { return setIsOpen(function (previous) { return !previous; }); } })) : (React.createElement(React.Fragment, null, togglerElement))));
|
|
56
54
|
});
|
|
57
55
|
//# sourceMappingURL=NodeTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeTools.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/nodes/NodeTools.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NodeTools.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/nodes/NodeTools.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACvD,OAAO,EACH,sBAAsB,IAAI,+BAA+B,GAC5D,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAC,WAAW,IAAI,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAkBvE,MAAM,CAAC,IAAM,SAAS,GAAG,IAAI,CAAC,UAAC,EAOd;IANb,IAAA,QAAQ,cAAA,EACR,sBAAgC,EAAhC,cAAc,mB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51
51
|
import Notification from "./components/Notification/Notification.js";
|
|
52
52
|
import Toast from "./components/Notification/Toast.js";
|
|
53
|
-
import
|
|
53
|
+
import Select from "./components/Select/Select.js";
|
|
54
54
|
import MultiSelect from "./components/MultiSelect/MultiSelect.js";
|
|
55
55
|
import { Iframe } from "./components/Iframe/Iframe.js";
|
|
56
56
|
import { IframeModal } from "./components/Iframe/IframeModal.js";
|
|
@@ -94,4 +94,5 @@ export { ApplicationContainer, ApplicationHeader, ApplicationContent, Applicatio
|
|
|
94
94
|
MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
|
|
95
95
|
export * from "./cmem/index.js";
|
|
96
96
|
export * from "./extensions/index.js";
|
|
97
|
+
export * from "./components/interfaces.js";
|
|
97
98
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,+CAA+C,CAAC;AACjF,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AACjG,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,gBAAgB,MAAM,2CAA2C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6CAA6C,CAAC;AAC7E,OAAO,yBAAyB,MAAM,oDAAoD,CAAC;AAC3F,OAAO,wBAAwB,MAAM,mDAAmD,CAAC;AACzF,OAAO,uBAAuB,MAAM,kDAAkD,CAAC;AACvF,OAAO,cAAc,MAAM,4CAA4C,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,oBAAoB,MAAM,kDAAkD,CAAC;AAEpF,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,YAAY,M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,WAAW,EACX,MAAM,EACN,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,cAAc,EACd,KAAK,EACL,YAAY,EACZ,WAAW,EACX,IAAI,EACJ,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,WAAW,EACX,cAAc,EACd,OAAO,EACP,OAAO,EACP,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,aAAa,EACb,OAAO,EACP,cAAc,EACd,GAAG,EACH,OAAO,EACP,UAAU,EACV,YAAY,EACZ,IAAI,EACJ,OAAO,EACP,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,EACL,aAAa,EACb,MAAM,EAAE,2CAA2C;AACnD,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,kBAAkB,GACrB,CAAC;AAEF,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { HTMLInputProps
|
|
2
|
+
import { HTMLInputProps as BlueprintHTMLInputProps, InputGroupProps as BlueprintInputGroupProps } from "@blueprintjs/core";
|
|
3
|
+
import { ContextOverlayProps } from "../../index";
|
|
3
4
|
declare type SearchFunction<T extends any> = (value: string) => T[];
|
|
4
5
|
declare type AsyncSearchFunction<T extends any> = (value: string) => Promise<T[]>;
|
|
5
6
|
export interface IRenderModifiers {
|
|
@@ -56,11 +57,11 @@ export interface IAutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any
|
|
|
56
57
|
* `query` and `onQueryChange` instead of `inputProps.value` and
|
|
57
58
|
* `inputProps.onChange`.
|
|
58
59
|
*/
|
|
59
|
-
inputProps?:
|
|
60
|
+
inputProps?: BlueprintInputGroupProps & BlueprintHTMLInputProps;
|
|
60
61
|
/**
|
|
61
|
-
* Optional props of the
|
|
62
|
+
* Optional props of the internally used `<ContextOverlay/>` element..
|
|
62
63
|
*/
|
|
63
|
-
|
|
64
|
+
contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children">>;
|
|
64
65
|
/** Defines if a value can be reset, i.e. a reset icon is shown and the value is set to a specific value.
|
|
65
66
|
* When undefined, a value cannot be reset.
|
|
66
67
|
*/
|
|
@@ -94,6 +95,8 @@ export interface IAutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any
|
|
|
94
95
|
* @param selectedValue The currently selected value.
|
|
95
96
|
*/
|
|
96
97
|
resetQueryToValue?(selectedValue: T): string;
|
|
98
|
+
/** If an error occurs during the auto-completion request, the error details will be prefixed with this string. */
|
|
99
|
+
requestErrorPrefix?: string;
|
|
97
100
|
}
|
|
98
101
|
/** Style object to be used in menu option items. */
|
|
99
102
|
export interface IElementWidth {
|
|
@@ -42,7 +42,7 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
42
42
|
/**
|
|
43
43
|
* Object with additional properties for the tooltip.
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
|
|
46
46
|
/**
|
|
47
47
|
* If an URL is set then the button is included as HTML anchor element instead of a button form element.
|
|
48
48
|
*/
|
|
@@ -55,5 +55,5 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
55
55
|
* Display a button element to enable user interaction.
|
|
56
56
|
* It normally should trigger action when clicked.
|
|
57
57
|
*/
|
|
58
|
-
declare function Button({ children, className, affirmative, disruptive, elevated, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, icon, rightIcon, tooltip,
|
|
58
|
+
declare function Button({ children, className, affirmative, disruptive, elevated, hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, icon, rightIcon, tooltip, tooltipProps, ...restProps }: ButtonProps & AnchorOrButtonProps): JSX.Element;
|
|
59
59
|
export default Button;
|
|
@@ -1,8 +1,42 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { TestableComponent } from "../interfaces";
|
|
3
|
+
import { ContextOverlayProps } from "./ContextOverlay";
|
|
2
4
|
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
3
|
-
interface ContextMenuProps {
|
|
5
|
+
interface ContextMenuProps extends TestableComponent {
|
|
6
|
+
/**
|
|
7
|
+
* Addional CSS class names.
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The elements of the context menu.
|
|
12
|
+
* They will be wrapped in a `Menu` element automatically.
|
|
13
|
+
*/
|
|
14
|
+
children?: JSX.Element | JSX.Element[];
|
|
15
|
+
/**
|
|
16
|
+
* Toggler that need to be used to display menu.
|
|
17
|
+
* If a valid icon name is used then the icon element is displayed.
|
|
18
|
+
* In this case `togglerText`, `togglerLarge` and `tooltipAsTitle` are used, too.
|
|
19
|
+
*/
|
|
4
20
|
togglerElement?: ValidIconName | JSX.Element;
|
|
5
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Text displayed as title or tooltip on toggler element.
|
|
23
|
+
*/
|
|
24
|
+
togglerText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Toggler element is displayed larger than normal.
|
|
27
|
+
*/
|
|
28
|
+
togglerLarge?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Tooltip on toggler element is display as HTML title, not as extra tooltip element.
|
|
31
|
+
*/
|
|
32
|
+
tooltipAsTitle?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Props to spread to `ContextOverlay` that is used to display the dropdown.
|
|
35
|
+
*/
|
|
36
|
+
contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children" | "className">>;
|
|
6
37
|
}
|
|
7
|
-
|
|
38
|
+
/**
|
|
39
|
+
* Element displays menu items after toggler is clicked.
|
|
40
|
+
*/
|
|
41
|
+
declare function ContextMenu({ children, className, togglerElement, togglerText, contextOverlayProps, togglerLarge, tooltipAsTitle, ...restProps }: ContextMenuProps): JSX.Element;
|
|
8
42
|
export default ContextMenu;
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { Popover2Props as BlueprintPopoverProps } from "@blueprintjs/popover2";
|
|
3
|
+
export interface ContextOverlayProps extends Omit<BlueprintPopoverProps, "position"> {
|
|
4
|
+
/**
|
|
5
|
+
* `target` element to use as toggler for the overlay display.
|
|
6
|
+
*/
|
|
7
|
+
children?: JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Element displays connected content by interacting with a target element.
|
|
11
|
+
* Full list of available option can be seen at https://blueprintjs.com/docs/#popover2-package/popover2
|
|
12
|
+
*/
|
|
13
|
+
declare function ContextOverlay({ children, className, ...restProps }: ContextOverlayProps): JSX.Element;
|
|
3
14
|
export default ContextOverlay;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { LabelProps } from "../Label/Label";
|
|
2
3
|
import { TestableComponent } from "../interfaces";
|
|
3
4
|
interface IProps extends TestableComponent {
|
|
4
5
|
hasStatePrimary?: boolean;
|
|
@@ -8,9 +9,9 @@ interface IProps extends TestableComponent {
|
|
|
8
9
|
children: JSX.Element | JSX.Element[] | null;
|
|
9
10
|
className?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
|
-
|
|
12
|
+
labelProps?: LabelProps;
|
|
12
13
|
helperText?: string | JSX.Element;
|
|
13
14
|
messageText?: string;
|
|
14
15
|
}
|
|
15
|
-
declare function FieldItem({ hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, children, className, disabled,
|
|
16
|
+
declare function FieldItem({ hasStatePrimary, hasStateSuccess, hasStateWarning, hasStateDanger, children, className, disabled, labelProps, helperText, messageText, ...otherProps }: IProps): JSX.Element;
|
|
16
17
|
export default FieldItem;
|
|
@@ -4,17 +4,42 @@ import { IntentTypes } from "../../common/Intent";
|
|
|
4
4
|
import { TooltipProps } from "./../Tooltip/Tooltip";
|
|
5
5
|
import { ValidIconName } from "./canonicalIconNames";
|
|
6
6
|
export interface IconProps extends Omit<CarbonIconProps, "icon" | "description" | "name"> {
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Canonical icon name, or an array of strings.
|
|
9
|
+
* In case of the array the first valid icon name is used.
|
|
10
|
+
*/
|
|
8
11
|
name: ValidIconName | string[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Add tooltip text to icon
|
|
14
|
+
*/
|
|
12
15
|
tooltipText?: string;
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Intent state of icon.
|
|
18
|
+
* Currently only `success`, `info`, `warning` and `danger` are implemented for icons, even there are more states available.
|
|
19
|
+
*/
|
|
15
20
|
intent?: IntentTypes;
|
|
21
|
+
/**
|
|
22
|
+
* Display large icon version.
|
|
23
|
+
*/
|
|
24
|
+
large?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Display small icon version.
|
|
27
|
+
*/
|
|
28
|
+
small?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Additional CSS classes.
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Description for icon as accessibility fallback.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Additonal tooltip properties, e.g. `hoverOpenDelay`.
|
|
39
|
+
*/
|
|
40
|
+
tooltipProps?: Partial<Omit<TooltipProps, "content" | "children">>;
|
|
16
41
|
}
|
|
17
42
|
/** Returns the first icon name that exists or the fallback icon name. */
|
|
18
43
|
export declare const findExistingIconName: (iconNames: string[], fallbackIconName?: ValidIconName) => ValidIconName;
|
|
19
|
-
declare function Icon({ className, name, large, small, tooltipText,
|
|
44
|
+
declare function Icon({ className, name, large, small, tooltipText, tooltipProps, intent, ...restProps }: IconProps): JSX.Element;
|
|
20
45
|
export default Icon;
|
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps, AnchorOrButtonProps } from "../Button/Button";
|
|
3
3
|
import { ValidIconName } from "./canonicalIconNames";
|
|
4
|
-
interface IconButtonProps extends ButtonProps {
|
|
4
|
+
interface IconButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
|
|
5
|
+
/**
|
|
6
|
+
* Canonical icon name, or an array of strings.
|
|
7
|
+
* In case of the array the first valid icon name is used.
|
|
8
|
+
*/
|
|
5
9
|
name: ValidIconName | string[];
|
|
6
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Button text, will be displayed as tooltip.
|
|
12
|
+
*/
|
|
7
13
|
text?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
/**
|
|
15
|
+
* If `text` should be set as HTML `title` attribute instead of attaching it as tooltip.
|
|
16
|
+
* If true then `tooltipProps` is ignored.
|
|
17
|
+
*/
|
|
11
18
|
tooltipAsTitle?: boolean;
|
|
12
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Description for icon as accessibility fallback.
|
|
21
|
+
* If not set then `text` is used.
|
|
22
|
+
*/
|
|
13
23
|
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Button is displayed with minimal styles (no borders, no background color).
|
|
26
|
+
*/
|
|
27
|
+
minimal?: boolean;
|
|
14
28
|
}
|
|
15
29
|
/** A button with an icon instead of text. */
|
|
16
|
-
declare function IconButton({ className, name, text,
|
|
30
|
+
declare function IconButton({ className, name, text, tooltipProps, description, tooltipAsTitle, minimal, ...restProps }: IconButtonProps & AnchorOrButtonProps): JSX.Element;
|
|
17
31
|
export default IconButton;
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TooltipProps } from "../Tooltip/Tooltip";
|
|
3
|
+
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Label text.
|
|
6
|
+
*/
|
|
7
|
+
text?: string | JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Short info about label semantic, it is displayed in parentesis after the label text.
|
|
10
|
+
*/
|
|
11
|
+
info?: string | JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Additional tooltip, attached to an info icon that is displayed after the info.
|
|
14
|
+
*/
|
|
15
|
+
tooltip?: string | JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Additonal tooltip properties, e.g. `hoverOpenDelay`.
|
|
18
|
+
*/
|
|
19
|
+
tooltipProps?: Partial<Omit<TooltipProps, "content" | "children" | "disabled">>;
|
|
20
|
+
/**
|
|
21
|
+
* Set the name of an HTML element if the display should be used for something else that a `label` element.
|
|
22
|
+
*/
|
|
23
|
+
isLayoutForElement?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Label is displayed inactive.
|
|
26
|
+
* If there is no `isLayoutForElement` set then a `span` is used.
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare function Label({ children, className, disabled, text, info, tooltip, tooltipProps, isLayoutForElement, ...otherLabelProps }: LabelProps): JSX.Element;
|
|
3
31
|
export default Label;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MenuItemProps } from "@blueprintjs/core";
|
|
2
|
+
import { MenuItemProps as BlueprintMenuItemProps } from "@blueprintjs/core";
|
|
3
3
|
import { ValidIconName } from "../Icon/canonicalIconNames";
|
|
4
|
-
interface
|
|
5
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
6
|
-
className?: string;
|
|
4
|
+
export interface MenuItemProps extends Omit<BlueprintMenuItemProps, "icon">, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target"> {
|
|
7
5
|
icon?: ValidIconName | string[];
|
|
8
|
-
internalProps?: Partial<MenuItemProps> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
9
|
-
[key: string]: any;
|
|
10
6
|
}
|
|
11
7
|
/** A single item in a Menu. */
|
|
12
|
-
declare function MenuItem({ children, className, icon,
|
|
8
|
+
declare function MenuItem({ children, className, icon, onClick, href, ...restProps }: MenuItemProps): JSX.Element;
|
|
13
9
|
export default MenuItem;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { HTMLInputProps as BlueprintHTMLInputProps } from "@blueprintjs/core";
|
|
3
|
+
import { MultiSelect2 as BlueprintMultiSelect, MultiSelect2Props as BlueprintMultiSelectProps } from "@blueprintjs/select";
|
|
4
|
+
import { ContextOverlayProps } from "./../../index";
|
|
4
5
|
export interface SelectedParamsType<T> {
|
|
5
6
|
newlySelected: T;
|
|
6
7
|
selectedItems: T[];
|
|
7
8
|
createdItems: Partial<T>[];
|
|
8
9
|
}
|
|
9
|
-
interface IProps<T> extends Pick<
|
|
10
|
+
interface IProps<T> extends Pick<BlueprintMultiSelectProps<T>, "items" | "placeholder" | "openOnKeyDown"> {
|
|
10
11
|
/**
|
|
11
12
|
* Returns the unique ID of an item. This will be used for equality of items.
|
|
12
13
|
*/
|
|
@@ -25,22 +26,22 @@ interface IProps<T> extends Pick<MultiSelectProps<T>, "items" | "placeholder" |
|
|
|
25
26
|
*/
|
|
26
27
|
onSelection?: (params: SelectedParamsType<T>) => void;
|
|
27
28
|
/**
|
|
28
|
-
* Props to spread to `
|
|
29
|
+
* Props to spread to `ContextOverlay`. Note that `content` cannot be changed.
|
|
29
30
|
*/
|
|
30
|
-
|
|
31
|
+
contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "children">>;
|
|
31
32
|
/**
|
|
32
33
|
* Props to spread to `TagInput`. Use `query` and `onQueryChange` to control the input.
|
|
33
34
|
*/
|
|
34
|
-
tagInputProps?:
|
|
35
|
+
tagInputProps?: BlueprintMultiSelectProps<T>["tagInputProps"];
|
|
35
36
|
/** Additional properties for the (query) input field of the multi-selection. */
|
|
36
|
-
inputProps?:
|
|
37
|
+
inputProps?: BlueprintHTMLInputProps;
|
|
37
38
|
/**
|
|
38
39
|
* prop to listen for query changes, when text is entered in the multi-select input
|
|
39
40
|
*/
|
|
40
41
|
runOnQueryChange?: (query: string) => Promise<T[] | undefined>;
|
|
41
42
|
/**
|
|
42
43
|
* Whether the component should take up the full width of its container.
|
|
43
|
-
* This overrides `
|
|
44
|
+
* This overrides `tagInputProps.fill`.
|
|
44
45
|
*/
|
|
45
46
|
fullWidth?: boolean;
|
|
46
47
|
/**
|
|
@@ -82,5 +83,8 @@ interface IProps<T> extends Pick<MultiSelectProps<T>, "items" | "placeholder" |
|
|
|
82
83
|
*/
|
|
83
84
|
disabled?: boolean;
|
|
84
85
|
}
|
|
85
|
-
declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection,
|
|
86
|
+
declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, ...otherProps }: IProps<T>): JSX.Element;
|
|
87
|
+
declare namespace MultiSelect {
|
|
88
|
+
var ofType: typeof BlueprintMultiSelect.ofType;
|
|
89
|
+
}
|
|
86
90
|
export default MultiSelect;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Select2 as BlueprintSelect, Select2Props as BlueprintSelectProps } from "@blueprintjs/select";
|
|
3
|
+
import { ContextOverlayProps } from "./../../index";
|
|
4
|
+
/**
|
|
5
|
+
* FIXME: Currently we only route the original element through.
|
|
6
|
+
* We should add here basic elemeents and processes for target and selections, etc.
|
|
7
|
+
*/
|
|
8
|
+
export interface SelectProps<T> extends Omit<BlueprintSelectProps<T>, "popoverTargetProps" | "popoverContentProps" | "popoverProps" | "popoverRef"> {
|
|
9
|
+
/**
|
|
10
|
+
* Props to spread to `ContextOverlay` that is used to display the dropdown.
|
|
11
|
+
*/
|
|
12
|
+
contextOverlayProps?: Partial<Omit<ContextOverlayProps, "content" | "defaultIsOpen" | "disabled" | "fill" | "renderTarget" | "targetTagName">>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create a Select box without the HTML select element.
|
|
16
|
+
* It is possible to filter options, as well as to add new options if necessary.
|
|
17
|
+
*/
|
|
18
|
+
declare function Select<T>({ contextOverlayProps, ...otherSelectProps }: SelectProps<T>): JSX.Element;
|
|
19
|
+
declare namespace Select {
|
|
20
|
+
var ofType: typeof BlueprintSelect.ofType;
|
|
21
|
+
}
|
|
22
|
+
export default Select;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export interface TooltipProps {
|
|
4
|
-
|
|
2
|
+
import { Tooltip2Props as BlueprintTooltipProps } from "@blueprintjs/popover2";
|
|
3
|
+
export interface TooltipProps extends Omit<BlueprintTooltipProps, "position"> {
|
|
4
|
+
/**
|
|
5
|
+
* Add dotted underline as visual indication to the target that a tooltip is attached.
|
|
6
|
+
* Should be used together with text-only elements.
|
|
7
|
+
*/
|
|
5
8
|
addIndicator?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
content: JSX.Element | string;
|
|
10
|
-
/** The size specifies the dimension the element can maximal grow. */
|
|
9
|
+
/**
|
|
10
|
+
* The size specifies the dimension the tooltip overlay element can maximal grow.
|
|
11
|
+
*/
|
|
11
12
|
size?: "small" | "medium" | "large";
|
|
13
|
+
/**
|
|
14
|
+
* The tolltip will be attached to this element when it is hovered.
|
|
15
|
+
*/
|
|
12
16
|
children: React.ReactNode | React.ReactNode[];
|
|
13
|
-
/** @deprecated Use tooltipProps for Blueprint specific props or add concrete properties in all other cases. */
|
|
14
|
-
[key: string]: any;
|
|
15
17
|
}
|
|
16
|
-
declare function Tooltip({ children, content, className, size, addIndicator,
|
|
18
|
+
declare function Tooltip({ children, content, className, size, addIndicator, ...otherProps }: TooltipProps): JSX.Element;
|
|
17
19
|
export default Tooltip;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
3
3
|
interface PosOffset {
|
|
4
4
|
left: number;
|
|
5
5
|
top: number;
|
|
6
6
|
}
|
|
7
|
-
export interface EdgeToolsProps extends
|
|
7
|
+
export interface EdgeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
8
8
|
posOffset: PosOffset;
|
|
9
9
|
children: string | JSX.Element | JSX.Element[];
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ContextOverlayProps } from "./../../../components/ContextOverlay/ContextOverlay";
|
|
3
3
|
import { ValidIconName } from "../../../components/Icon/canonicalIconNames";
|
|
4
|
-
export interface NodeToolsProps extends
|
|
4
|
+
export interface NodeToolsProps extends Omit<ContextOverlayProps, "children"> {
|
|
5
5
|
children: string | JSX.Element;
|
|
6
6
|
togglerElement?: ValidIconName | JSX.Element;
|
|
7
7
|
togglerText?: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import Tag from "./components/Tag/Tag";
|
|
|
51
51
|
import TagList from "./components/Tag/TagList";
|
|
52
52
|
import Notification from "./components/Notification/Notification";
|
|
53
53
|
import Toast from "./components/Notification/Toast";
|
|
54
|
-
import
|
|
54
|
+
import Select from "./components/Select/Select";
|
|
55
55
|
import MultiSelect from "./components/MultiSelect/MultiSelect";
|
|
56
56
|
import { Iframe } from "./components/Iframe/Iframe";
|
|
57
57
|
import { IframeModal } from "./components/Iframe/IframeModal";
|
|
@@ -95,3 +95,4 @@ export { ApplicationContainer, ApplicationHeader, ApplicationContent, Applicatio
|
|
|
95
95
|
MultiSelect, AutoCompleteField, ProgressBar, Iframe, IframeModal, Utilities, LegacyReplacements, };
|
|
96
96
|
export * from "./cmem";
|
|
97
97
|
export * from "./extensions";
|
|
98
|
+
export * from "./components/interfaces";
|