@eccenca/gui-elements 23.2.0-rc.0 → 23.2.0

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.
Files changed (140) hide show
  1. package/CHANGELOG.md +32 -3
  2. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js +24 -20
  3. package/dist/cjs/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  4. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js +59 -50
  5. package/dist/cjs/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  6. package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js +3 -3
  7. package/dist/cjs/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
  8. package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js +9 -6
  9. package/dist/cjs/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
  10. package/dist/cjs/components/CodeAutocompleteField/CodeAutocompleteField.js +33 -0
  11. package/dist/cjs/components/CodeAutocompleteField/CodeAutocompleteField.js.map +1 -0
  12. package/dist/cjs/components/CodeAutocompleteField/index.js +14 -0
  13. package/dist/cjs/components/CodeAutocompleteField/index.js.map +1 -0
  14. package/dist/cjs/components/Depiction/Depiction.js +13 -13
  15. package/dist/cjs/components/Depiction/Depiction.js.map +1 -1
  16. package/dist/cjs/components/Dialog/SimpleDialog.js +5 -5
  17. package/dist/cjs/components/Dialog/SimpleDialog.js.map +1 -1
  18. package/dist/cjs/components/Icon/IconButton.js +9 -3
  19. package/dist/cjs/components/Icon/IconButton.js.map +1 -1
  20. package/dist/cjs/components/Icon/canonicalIconNames.js +2 -0
  21. package/dist/cjs/components/Icon/canonicalIconNames.js.map +1 -1
  22. package/dist/cjs/components/MultiSelect/MultiSelect.js +45 -17
  23. package/dist/cjs/components/MultiSelect/MultiSelect.js.map +1 -1
  24. package/dist/cjs/components/MultiSuggestField/MultiSuggestField.js +33 -0
  25. package/dist/cjs/components/MultiSuggestField/MultiSuggestField.js.map +1 -0
  26. package/dist/cjs/components/OverviewItem/OverviewItem.js +8 -10
  27. package/dist/cjs/components/OverviewItem/OverviewItem.js.map +1 -1
  28. package/dist/cjs/components/PropertyValuePair/PropertyName.js +4 -3
  29. package/dist/cjs/components/PropertyValuePair/PropertyName.js.map +1 -1
  30. package/dist/cjs/components/Select/Select.js +18 -3
  31. package/dist/cjs/components/Select/Select.js.map +1 -1
  32. package/dist/cjs/components/SuggestField/SuggestField.js +39 -0
  33. package/dist/cjs/components/SuggestField/SuggestField.js.map +1 -0
  34. package/dist/cjs/components/SuggestField/index.js +19 -0
  35. package/dist/cjs/components/SuggestField/index.js.map +1 -0
  36. package/dist/cjs/components/index.js +3 -0
  37. package/dist/cjs/components/index.js.map +1 -1
  38. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js +54 -41
  39. package/dist/cjs/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  40. package/dist/cjs/index.js +1 -0
  41. package/dist/cjs/index.js.map +1 -1
  42. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js +23 -18
  43. package/dist/esm/components/AutoSuggestion/AutoSuggestion.js.map +1 -1
  44. package/dist/esm/components/AutocompleteField/AutoCompleteField.js +68 -59
  45. package/dist/esm/components/AutocompleteField/AutoCompleteField.js.map +1 -1
  46. package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js +3 -3
  47. package/dist/esm/components/AutocompleteField/autoCompleteFieldUtils.js.map +1 -1
  48. package/dist/esm/components/Breadcrumb/BreadcrumbItem.js +9 -6
  49. package/dist/esm/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
  50. package/dist/esm/components/CodeAutocompleteField/CodeAutocompleteField.js +37 -0
  51. package/dist/esm/components/CodeAutocompleteField/CodeAutocompleteField.js.map +1 -0
  52. package/dist/esm/components/CodeAutocompleteField/index.js +2 -0
  53. package/dist/esm/components/CodeAutocompleteField/index.js.map +1 -0
  54. package/dist/esm/components/Depiction/Depiction.js +12 -12
  55. package/dist/esm/components/Depiction/Depiction.js.map +1 -1
  56. package/dist/esm/components/Dialog/SimpleDialog.js +7 -7
  57. package/dist/esm/components/Dialog/SimpleDialog.js.map +1 -1
  58. package/dist/esm/components/Icon/IconButton.js +10 -4
  59. package/dist/esm/components/Icon/IconButton.js.map +1 -1
  60. package/dist/esm/components/Icon/canonicalIconNames.js +2 -0
  61. package/dist/esm/components/Icon/canonicalIconNames.js.map +1 -1
  62. package/dist/esm/components/MultiSelect/MultiSelect.js +52 -22
  63. package/dist/esm/components/MultiSelect/MultiSelect.js.map +1 -1
  64. package/dist/esm/components/MultiSuggestField/MultiSuggestField.js +37 -0
  65. package/dist/esm/components/MultiSuggestField/MultiSuggestField.js.map +1 -0
  66. package/dist/esm/components/OverviewItem/OverviewItem.js +8 -10
  67. package/dist/esm/components/OverviewItem/OverviewItem.js.map +1 -1
  68. package/dist/esm/components/PropertyValuePair/PropertyName.js +4 -3
  69. package/dist/esm/components/PropertyValuePair/PropertyName.js.map +1 -1
  70. package/dist/esm/components/Select/Select.js +19 -4
  71. package/dist/esm/components/Select/Select.js.map +1 -1
  72. package/dist/esm/components/SuggestField/SuggestField.js +43 -0
  73. package/dist/esm/components/SuggestField/SuggestField.js.map +1 -0
  74. package/dist/esm/components/SuggestField/index.js +6 -0
  75. package/dist/esm/components/SuggestField/index.js.map +1 -0
  76. package/dist/esm/components/index.js +3 -0
  77. package/dist/esm/components/index.js.map +1 -1
  78. package/dist/esm/extensions/react-flow/nodes/NodeContent.js +51 -39
  79. package/dist/esm/extensions/react-flow/nodes/NodeContent.js.map +1 -1
  80. package/dist/esm/index.js +2 -1
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/types/components/AutoSuggestion/AutoSuggestion.d.ts +35 -4
  83. package/dist/types/components/AutocompleteField/AutoCompleteField.d.ts +23 -6
  84. package/dist/types/components/AutocompleteField/autoCompleteFieldUtils.d.ts +3 -3
  85. package/dist/types/components/AutocompleteField/index.d.ts +1 -1
  86. package/dist/types/components/AutocompleteField/interfaces.d.ts +1 -1
  87. package/dist/types/components/CodeAutocompleteField/CodeAutocompleteField.d.ts +10 -0
  88. package/dist/types/components/CodeAutocompleteField/index.d.ts +1 -0
  89. package/dist/types/components/Dialog/SimpleDialog.d.ts +2 -2
  90. package/dist/types/components/Icon/IconButton.d.ts +2 -2
  91. package/dist/types/components/Icon/canonicalIconNames.d.ts +1 -1
  92. package/dist/types/components/MultiSelect/MultiSelect.d.ts +20 -2
  93. package/dist/types/components/MultiSuggestField/MultiSuggestField.d.ts +10 -0
  94. package/dist/types/components/PropertyValuePair/PropertyName.d.ts +5 -1
  95. package/dist/types/components/Select/Select.d.ts +28 -9
  96. package/dist/types/components/SuggestField/SuggestField.d.ts +16 -0
  97. package/dist/types/components/SuggestField/index.d.ts +5 -0
  98. package/dist/types/components/index.d.ts +3 -0
  99. package/dist/types/extensions/react-flow/nodes/NodeContent.d.ts +7 -7
  100. package/dist/types/index.d.ts +2 -1
  101. package/package.json +1 -1
  102. package/src/components/Application/_header.scss +49 -58
  103. package/src/components/AutoSuggestion/AutoSuggestion.stories.tsx +14 -0
  104. package/src/components/AutoSuggestion/AutoSuggestion.tsx +280 -221
  105. package/src/components/AutocompleteField/AutoCompleteField.stories.tsx +14 -0
  106. package/src/components/AutocompleteField/AutoCompleteField.tsx +157 -121
  107. package/src/components/AutocompleteField/autoCompleteFieldUtils.tsx +10 -16
  108. package/src/components/AutocompleteField/interfaces.ts +5 -6
  109. package/src/components/Breadcrumb/BreadcrumbItem.tsx +19 -18
  110. package/src/components/Breadcrumb/breadcrumb.scss +18 -16
  111. package/src/components/Breadcrumb/stories/BreadcrumbList.stories.tsx +18 -15
  112. package/src/components/CodeAutocompleteField/CodeAutocompleteField.stories.tsx +89 -0
  113. package/src/components/CodeAutocompleteField/CodeAutocompleteField.tsx +22 -0
  114. package/src/components/CodeAutocompleteField/index.ts +1 -0
  115. package/src/components/ContextOverlay/contextoverlay.scss +10 -2
  116. package/src/components/Depiction/Depiction.tsx +57 -55
  117. package/src/components/Dialog/SimpleDialog.tsx +20 -33
  118. package/src/components/Icon/IconButton.tsx +25 -11
  119. package/src/components/Icon/canonicalIconNames.tsx +4 -0
  120. package/src/components/MultiSelect/MultiSelect.stories.tsx +9 -47
  121. package/src/components/MultiSelect/MultiSelect.tsx +110 -66
  122. package/src/components/MultiSuggestField/MultiSuggestField.stories.tsx +58 -0
  123. package/src/components/MultiSuggestField/MultiSuggestField.tsx +22 -0
  124. package/src/components/Notification/notification.scss +20 -17
  125. package/src/components/OverviewItem/OverviewItem.tsx +11 -20
  126. package/src/components/PropertyValuePair/PropertyName.tsx +17 -4
  127. package/src/components/PropertyValuePair/propertyvalue.scss +17 -1
  128. package/src/components/Select/Select.stories.tsx +49 -20
  129. package/src/components/Select/Select.tsx +96 -18
  130. package/src/components/Select/_select.scss +13 -1
  131. package/src/components/SuggestField/SuggestField.stories.tsx +99 -0
  132. package/src/components/SuggestField/SuggestField.tsx +28 -0
  133. package/src/components/SuggestField/index.ts +5 -0
  134. package/src/components/TagInput/taginput.scss +14 -0
  135. package/src/components/index.scss +1 -1
  136. package/src/components/index.ts +3 -0
  137. package/src/extensions/react-flow/nodes/NodeContent.tsx +105 -87
  138. package/src/index.ts +2 -5
  139. package/src/components/AutoSuggestion/stories/AutoSuggestion.stories.tsx +0 -83
  140. package/src/components/AutocompleteField/stories/AutoCompleteField.stories.tsx +0 -86
@@ -37,13 +37,13 @@ var __read = (this && this.__read) || function (o, n) {
37
37
  return ar;
38
38
  };
39
39
  import React from "react";
40
- import Color from "color";
41
- import { Resizable } from "re-resizable";
42
40
  import { Position, useStoreState as getStoreStateFlowLegacy } from "react-flow-renderer";
43
41
  import { useStore as getStoreStateFlowNext } from "react-flow-renderer-lts";
44
- import { Icon, Depiction, OverflowText } from "../../../index.js";
45
- import { CLASSPREFIX as eccgui } from "../../../configuration/constants.js";
42
+ import Color from "color";
43
+ import { Resizable } from "re-resizable";
46
44
  import { intentClassName } from "../../../common/Intent/index.js";
45
+ import { CLASSPREFIX as eccgui } from "../../../configuration/constants.js";
46
+ import { Depiction, Icon, OverflowText } from "../../../index.js";
47
47
  import { useReactFlowVersion } from "../versionsupport.js";
48
48
  import { HandleDefault } from "./../handles/HandleDefault.js";
49
49
  var defaultHandles = function (flowVersion) {
@@ -79,7 +79,7 @@ var addHandles = function (handles, position, posDirection, isConnectable, nodeS
79
79
  style: __assign(__assign({}, style), styleAdditions),
80
80
  posdirection: posDirection,
81
81
  isConnectable: typeof handle.isConnectable !== "undefined" ? handle.isConnectable : isConnectable,
82
- className: !!category
82
+ className: category
83
83
  ? (className ? className + " " : "") +
84
84
  gethighlightedStateClasses(category, eccgui + "-graphviz__handle")
85
85
  : className,
@@ -95,8 +95,7 @@ var MemoHandler = React.memo(function (props) { return React.createElement(Handl
95
95
  return (
96
96
  // we only test a few properties to control re-rendering
97
97
  // need to be extended if also other properties need to be changed late
98
- prev.style[prev.posdirection] === next.style[next.posdirection]
99
- && prev.isConnectable === next.isConnectable);
98
+ prev.style[prev.posdirection] === next.style[next.posdirection] && prev.isConnectable === next.isConnectable);
100
99
  });
101
100
  /**
102
101
  * The `NodeContent` element manages the main view of how a node is displaying which content.
@@ -119,7 +118,7 @@ export function NodeContent(_a) {
119
118
  var evaluateFlowVersion = useReactFlowVersion();
120
119
  var flowVersionCheck = flowVersion || evaluateFlowVersion;
121
120
  var _s = otherDomProps.handles, handles = _s === void 0 ? defaultHandles(flowVersionCheck) : _s, otherProps = __rest(otherDomProps, ["handles"]);
122
- var isResizeable = (!!onNodeResize && minimalShape === "none");
121
+ var isResizeable = !!onNodeResize && minimalShape === "none";
123
122
  var _t = __read(React.useState((_c = nodeDimensions === null || nodeDimensions === void 0 ? void 0 : nodeDimensions.width) !== null && _c !== void 0 ? _c : 0), 2), width = _t[0], setWidth = _t[1];
124
123
  var _u = __read(React.useState((_d = nodeDimensions === null || nodeDimensions === void 0 ? void 0 : nodeDimensions.height) !== null && _d !== void 0 ? _d : 0), 2), height = _u[0], setHeight = _u[1];
125
124
  var zoom = 1;
@@ -129,14 +128,23 @@ export function NodeContent(_a) {
129
128
  ? getStoreStateFlowLegacy(function (state) { return state.transform; })
130
129
  : getStoreStateFlowNext(function (state) { return state.transform; }), 3), zoom = _b[2];
131
130
  }
132
- catch (_v) { }
133
- var _w = __read(React.useState({}), 2), adjustedContentProps = _w[0], setAdjustedContentProps = _w[1];
131
+ catch (error) {
132
+ // do not handle error but at least push it to the console
133
+ console.error(error);
134
+ }
135
+ var _v = __read(React.useState({}), 2), adjustedContentProps = _v[0], setAdjustedContentProps = _v[1];
134
136
  var nodeContentRef = React.useRef();
135
- var handleStack = flowVersionCheck === "legacy" ? {} : {};
136
- handleStack[Position.Top] = flowVersionCheck === "legacy" ? [] : [];
137
- handleStack[Position.Right] = flowVersionCheck === "legacy" ? [] : [];
138
- handleStack[Position.Bottom] = flowVersionCheck === "legacy" ? [] : [];
139
- handleStack[Position.Left] = flowVersionCheck === "legacy" ? [] : [];
137
+ var handleStack = flowVersionCheck === "legacy"
138
+ ? {}
139
+ : {};
140
+ handleStack[Position.Top] =
141
+ flowVersionCheck === "legacy" ? [] : [];
142
+ handleStack[Position.Right] =
143
+ flowVersionCheck === "legacy" ? [] : [];
144
+ handleStack[Position.Bottom] =
145
+ flowVersionCheck === "legacy" ? [] : [];
146
+ handleStack[Position.Left] =
147
+ flowVersionCheck === "legacy" ? [] : [];
140
148
  // initial dimension before resize
141
149
  React.useEffect(function () {
142
150
  if (!!onNodeResize && minimalShape === "none") {
@@ -160,7 +168,7 @@ export function NodeContent(_a) {
160
168
  }, [nodeDimensions]);
161
169
  if (handles.length > 0) {
162
170
  handles.forEach(function (handle) {
163
- if (!!handle.position) {
171
+ if (handle.position) {
164
172
  handleStack[handle.position].push(handle);
165
173
  }
166
174
  else if (handle.category === "configuration") {
@@ -176,7 +184,7 @@ export function NodeContent(_a) {
176
184
  }
177
185
  });
178
186
  }
179
- var styleExpandDimensions = {};
187
+ var styleExpandDimensions = Object.create(null);
180
188
  if (typeof adaptHeightForHandleMinCount !== "undefined" &&
181
189
  (minimalShape === "none" || !!selected) &&
182
190
  adaptSizeIncrement &&
@@ -186,8 +194,8 @@ export function NodeContent(_a) {
186
194
  var minHeightRight = handleStack[Position.Right].length * adaptSizeIncrement;
187
195
  styleExpandDimensions["minHeight"] = Math.max(minHeightLeft, minHeightRight);
188
196
  }
189
- var _x = evaluateHighlightColors("--node-highlight", highlightColor), highlightClassNameSuffix = _x.highlightClassNameSuffix, highlightCustomPropertySettings = _x.highlightCustomPropertySettings;
190
- var resizableStyles = (!!onNodeResize === true && minimalShape === "none" && (width + height > 0)) ? { width: width, height: height } : {};
197
+ var _w = evaluateHighlightColors("--node-highlight", highlightColor), highlightClassNameSuffix = _w.highlightClassNameSuffix, highlightCustomPropertySettings = _w.highlightCustomPropertySettings;
198
+ var resizableStyles = !!onNodeResize === true && minimalShape === "none" && width + height > 0 ? { width: width, height: height } : {};
191
199
  var nodeContent = (React.createElement(React.Fragment, null,
192
200
  React.createElement("section", __assign({ ref: nodeContentRef }, otherProps, { style: __assign(__assign(__assign(__assign({}, style), highlightCustomPropertySettings), styleExpandDimensions), resizableStyles), className: eccgui + "-graphviz__node" +
193
201
  (" " + eccgui + "-graphviz__node--" + size) +
@@ -196,32 +204,35 @@ export function NodeContent(_a) {
196
204
  (border ? " " + eccgui + "-graphviz__node--border-" + border : "") +
197
205
  (intent ? " " + intentClassName(intent) : "") +
198
206
  (highlightClassNameSuffix.length > 0
199
- ? highlightClassNameSuffix.map(function (highlight) { return " " + eccgui + "-graphviz__node--highlight-" + highlight; }).join("")
207
+ ? highlightClassNameSuffix
208
+ .map(function (highlight) { return " " + eccgui + "-graphviz__node--highlight-" + highlight; })
209
+ .join("")
200
210
  : "") +
201
- (!!highlightedState
211
+ (highlightedState
202
212
  ? " " + gethighlightedStateClasses(highlightedState, eccgui + "-graphviz__node")
203
213
  : "") +
204
214
  (animated ? " " + eccgui + "-graphviz__node--animated" : "") +
205
215
  (showUnconnectableHandles === false ? " " + eccgui + "-graphviz__node--hidehandles" : "") +
206
216
  (letPassWheelEvents === false ? " nowheel" : "") }),
207
217
  React.createElement("header", { className: eccgui + "-graphviz__node__header" +
208
- ((enlargeHeader && minimalShape === "none") ? " " + eccgui + "-graphviz__node__header--large" : "") },
218
+ (enlargeHeader && minimalShape === "none" ? " " + eccgui + "-graphviz__node__header--large" : "") },
209
219
  (!!iconName || !!depiction || !!leftElement) && (React.createElement("div", { className: eccgui + "-graphviz__node__header-depiction" },
210
220
  leftElement,
211
221
  !!depiction && !leftElement && typeof depiction === "string" && (React.createElement(Depiction, { image: React.createElement("img", { src: depiction, alt: "" }), caption: minimalShape === "none" || selected ? typeLabel : undefined, captionPosition: "tooltip", padding: "tiny", ratio: "1:1", resizing: "contain", forceInlineSvg: true })),
212
- !!depiction && !leftElement && typeof depiction !== "string" && (React.cloneElement(depiction, {
213
- caption: minimalShape === "none" || selected ? typeLabel : undefined,
214
- captionPosition: "tooltip",
215
- padding: "tiny",
216
- ratio: "1:1",
217
- resizing: "contain",
218
- forceInlineSvg: true,
219
- })),
222
+ !!depiction &&
223
+ !leftElement &&
224
+ typeof depiction !== "string" &&
225
+ React.cloneElement(depiction, {
226
+ caption: minimalShape === "none" || selected ? typeLabel : undefined,
227
+ captionPosition: "tooltip",
228
+ padding: "tiny",
229
+ ratio: "1:1",
230
+ resizing: "contain",
231
+ forceInlineSvg: true,
232
+ }),
220
233
  !!iconName && !leftElement && !depiction && (React.createElement(Depiction, { image: React.createElement(Icon, { name: iconName }), caption: minimalShape === "none" || selected ? typeLabel : undefined, captionPosition: "tooltip", padding: "tiny", ratio: "1:1", resizing: "contain", forceInlineSvg: true })))),
221
234
  React.createElement("div", { className: eccgui + "-graphviz__node__header-label", title: typeof label === "string" ? label : undefined },
222
- typeof label === "string"
223
- ? React.createElement(OverflowText, { className: eccgui + "-graphviz__node__header-label__mainline" }, label)
224
- : React.createElement("div", { className: eccgui + "-graphviz__node__header-label__mainline" }, label),
235
+ typeof label === "string" ? (React.createElement(OverflowText, { className: eccgui + "-graphviz__node__header-label__mainline" }, label)) : (React.createElement("div", { className: eccgui + "-graphviz__node__header-label__mainline" }, label)),
225
236
  !!labelSubline && (React.createElement("div", { className: eccgui + "-graphviz__node__header-label__subline" }, labelSubline))),
226
237
  (menuButtons || (showExecutionButtons && executionButtons)) && (React.createElement("div", { className: eccgui + "-graphviz__node__header-menu" },
227
238
  showExecutionButtons && typeof executionButtons === "function"
@@ -229,7 +240,7 @@ export function NodeContent(_a) {
229
240
  : null, menuButtons !== null && menuButtons !== void 0 ? menuButtons : null))),
230
241
  content && (React.createElement("div", { className: eccgui + "-graphviz__node__content" }, typeof content === "function" ? content(adjustedContentProps) : content)),
231
242
  contentExtension,
232
- footerContent && (React.createElement("footer", { className: eccgui + "-graphviz__node__footer" }, footerContent))),
243
+ footerContent && React.createElement("footer", { className: eccgui + "-graphviz__node__footer" }, footerContent)),
233
244
  !!handles && (React.createElement(React.Fragment, null,
234
245
  addHandles(handleStack, Position.Top, "left", isConnectable, style, flowVersionCheck),
235
246
  addHandles(handleStack, Position.Right, "top", isConnectable, style, flowVersionCheck),
@@ -249,7 +260,7 @@ export function NodeContent(_a) {
249
260
  width: width + d.width,
250
261
  });
251
262
  } }, nodeContent)); };
252
- return (isResizeable) ? resizableNode() : nodeContent;
263
+ return isResizeable ? resizableNode() : nodeContent;
253
264
  }
254
265
  var evaluateHighlightColors = function (baseCustomProperty, highlightColor) {
255
266
  var _a;
@@ -258,8 +269,8 @@ var evaluateHighlightColors = function (baseCustomProperty, highlightColor) {
258
269
  _a[baseCustomProperty + "-alternate-color"] = undefined,
259
270
  _a);
260
271
  var classesHightlightColors = [];
261
- if (!!highlightColor) {
262
- var highlightingColors = (typeof highlightColor === "string") ? [highlightColor] : highlightColor;
272
+ if (highlightColor) {
273
+ var highlightingColors = typeof highlightColor === "string" ? [highlightColor] : highlightColor;
263
274
  highlightingColors.map(function (color, idx) {
264
275
  var _a, _b;
265
276
  switch (color) {
@@ -269,7 +280,7 @@ var evaluateHighlightColors = function (baseCustomProperty, highlightColor) {
269
280
  case "alternate":
270
281
  classesHightlightColors.push("alternate");
271
282
  break;
272
- default:
283
+ default: {
273
284
  classesHightlightColors.push("custom");
274
285
  var customColor = Color("#ffffff");
275
286
  try {
@@ -285,6 +296,7 @@ var evaluateHighlightColors = function (baseCustomProperty, highlightColor) {
285
296
  styleHighlightColors = __assign(__assign({}, styleHighlightColors), (_b = {}, _b[baseCustomProperty + "-alternate-color"] = customColor.rgb().toString(), _b));
286
297
  }
287
298
  break;
299
+ }
288
300
  }
289
301
  return color;
290
302
  });
@@ -296,6 +308,6 @@ var evaluateHighlightColors = function (baseCustomProperty, highlightColor) {
296
308
  };
297
309
  export var nodeContentUtils = {
298
310
  evaluateHighlightColors: evaluateHighlightColors,
299
- gethighlightedStateClasses: gethighlightedStateClasses
311
+ gethighlightedStateClasses: gethighlightedStateClasses,
300
312
  };
301
313
  //# sourceMappingURL=NodeContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NodeContent.js","sourceRoot":"","sources":["../../../../../src/extensions/react-flow/nodes/NodeContent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,aAAa,IAAI,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,QAAQ,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAGzE,OAAO,EAAe,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAA+B,mBAAmB,E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CAAC,IAAI,CAAC,wCAAwC,GAAG,KAAK,CAAC,CAAC;qBAClE;oBACD,IAAI,GAAG,KAAK,CAAC,EAAE;wBACX,oBAAoB,GAAG,sBAChB,oBAAoB,gBACnB,kBAAkB,mBAAgB,IAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,MACjD,CAAC;qBAC5B;yBAAM;wBACH,oBAAoB,GAAG,sBAChB,oBAAoB,gBACnB,kBAAkB,qBAAkB,IAAG,WAAW,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,MACnD,CAAC;qBAC5B;oBACD,MAAM;iBACT;aACJ;YACD,OAAO,KAAK,CAAC;QACjB,CAAC,CAAC,CAAC;KACN;IAED,OAAO;QACH,wBAAwB,EAAE,uBAAuB;QACjD,+BAA+B,EAAE,oBAAoB;KACxD,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG;IAC5B,uBAAuB,yBAAA;IACvB,0BAA0B,4BAAA;CAC7B,CAAC"}
package/dist/esm/index.js CHANGED
@@ -7,9 +7,10 @@ var ClassNames = {
7
7
  };
8
8
  // @deprecated use `ClassNames`
9
9
  var HelperClasses = ClassNames;
10
+ export * from "./configuration/constants.js";
10
11
  export * from "./common/index.js";
11
12
  export * from "./components/index.js";
12
13
  export * from "./extensions/index.js";
13
14
  export * from "./cmem/index.js";
14
- export { ClassNames, HelperClasses, LegacyReplacements, };
15
+ export { ClassNames, HelperClasses, LegacyReplacements };
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAE5D,IAAM,UAAU,GAAG;IACf,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,gBAAgB;CAC3B,CAAC;AACF,+BAA+B;AAC/B,IAAM,aAAa,GAAG,UAAU,CAAC;AAEjC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AAEvB,OAAO,EACH,UAAU,EACV,aAAa,EACb,kBAAkB,GACrB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,oBAAoB,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,kBAAkB,MAAM,uBAAuB,CAAC;AAE5D,IAAM,UAAU,GAAG;IACf,UAAU,EAAE,oBAAoB;IAChC,MAAM,EAAE,gBAAgB;CAC3B,CAAC;AACF,+BAA+B;AAC/B,IAAM,aAAa,GAAG,UAAU,CAAC;AAEjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
@@ -5,7 +5,7 @@ export declare enum OVERWRITTEN_KEYS {
5
5
  Enter = "Enter",
6
6
  Tab = "Tab"
7
7
  }
8
- export declare type OverwrittenKeyTypes = typeof OVERWRITTEN_KEYS[keyof typeof OVERWRITTEN_KEYS];
8
+ export declare type OverwrittenKeyTypes = (typeof OVERWRITTEN_KEYS)[keyof typeof OVERWRITTEN_KEYS];
9
9
  /** A single suggestion. */
10
10
  export interface ISuggestionBase {
11
11
  value: string;
@@ -42,19 +42,46 @@ export interface IValidationResult {
42
42
  };
43
43
  }
44
44
  export interface AutoSuggestionProps {
45
+ /** Additional class name.
46
+ */
47
+ className?: string;
48
+ /** Optional label to be shown for the input (above). This will create a FieldItem around the input.
49
+ */
45
50
  label?: string;
51
+ /** The value the component is initialized with, do not use this to control value changes.
52
+ */
46
53
  initialValue: string;
54
+ /** Callback on value change
55
+ */
47
56
  onChange: (currentValue: string) => any;
57
+ /** Fetches the suggestions
58
+ */
48
59
  fetchSuggestions: (inputString: string, cursorPosition: number) => (IPartialAutoCompleteResult | undefined) | Promise<IPartialAutoCompleteResult | undefined>;
60
+ /** Checks if the input is valid
61
+ */
49
62
  checkInput?: (inputString: string) => IValidationResult | Promise<IValidationResult | undefined>;
63
+ /** Called with the input validation result
64
+ */
50
65
  onInputChecked?: (validInput: boolean) => any;
66
+ /** Text that should be shown if the input validation failed.
67
+ */
51
68
  validationErrorText?: string;
69
+ /** Text that should be shown when hovering over the clear icon
70
+ */
52
71
  clearIconText?: string;
72
+ /** Called when focus status changes
73
+ */
53
74
  onFocusChange?: (hasFocus: boolean) => any;
75
+ /** Optional ID to attach to the outer element
76
+ */
54
77
  id?: string;
78
+ /** If the <Tab> key should be used for auto-completing items. Else it will have its default behavior.
79
+ */
55
80
  useTabForCompletions?: boolean;
56
81
  /** An additional element that is put to the left side of the input field */
57
82
  leftElement?: JSX.Element | null;
83
+ /** An additional element that is put to the right side of the input field
84
+ */
58
85
  rightElement?: JSX.Element | null;
59
86
  /** Placeholder tobe shown when no text has been entered, yet. */
60
87
  placeholder?: string;
@@ -68,7 +95,11 @@ export interface AutoSuggestionProps {
68
95
  validationRequestDelay?: number;
69
96
  }
70
97
  export declare type IProps = AutoSuggestionProps;
71
- /** Input component that allows partial, fine-grained auto-completion, i.e. of sub-strings of the input string.
72
- * This is comparable to a one line code editor. */
73
- export declare const AutoSuggestion: ({ label, initialValue, onChange, fetchSuggestions, checkInput, validationErrorText, clearIconText, onFocusChange, id, onInputChecked, leftElement, rightElement, useTabForCompletions, placeholder, showScrollBar, autoCompletionRequestDelay, validationRequestDelay }: AutoSuggestionProps) => React.JSX.Element;
98
+ /**
99
+ * **Element is deprecated.**
100
+ * Use `CodeAutocompleteField` as replacement.
101
+ *
102
+ * @deprecated
103
+ */
104
+ export declare const AutoSuggestion: ({ className, label, initialValue, onChange, fetchSuggestions, checkInput, validationErrorText, clearIconText, onFocusChange, id, onInputChecked, leftElement, rightElement, useTabForCompletions, placeholder, showScrollBar, autoCompletionRequestDelay, validationRequestDelay, }: AutoSuggestionProps) => React.JSX.Element;
74
105
  export default AutoSuggestion;
@@ -4,14 +4,18 @@ import { ContextOverlayProps } from "../../index";
4
4
  import { IElementWidth as IElementWidthOrig, IRenderModifiers as IRenderModifiersOrig } from "./interfaces";
5
5
  export declare type IElementWidth = IElementWidthOrig;
6
6
  export declare type IRenderModifiers = IRenderModifiersOrig;
7
- declare type SearchFunction<T extends any> = (value: string) => T[];
8
- declare type AsyncSearchFunction<T extends any> = (value: string) => Promise<T[]>;
7
+ declare type SearchFunction<T> = (value: string) => T[];
8
+ declare type AsyncSearchFunction<T> = (value: string) => Promise<T[]>;
9
9
  /**
10
10
  * Parameters for the auto-complete field parameterized by T and U.
11
11
  * @param T is the input data structure/type of the items that can be selected.
12
12
  * @param UPDATE_VALUE The value type that will be pushed into the onChange callback.
13
13
  */
14
- export interface AutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any> {
14
+ export interface AutoCompleteFieldProps<T, UPDATE_VALUE> {
15
+ /**
16
+ * Additional class names.
17
+ */
18
+ className?: string;
15
19
  /**
16
20
  * Fired when text is typed into the input field. Returns a list of items of type T.
17
21
  */
@@ -101,14 +105,27 @@ export interface AutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any>
101
105
  * hasBackDrop should then be set to true in these cases otherwise the popover won't close when clicking those other components.
102
106
  **/
103
107
  hasBackDrop?: boolean;
108
+ /**
109
+ * Use the full available width of the parent container.
110
+ */
111
+ fill?: boolean;
104
112
  }
105
- export declare type IAutoCompleteFieldProps<T extends any, UPDATE_VALUE extends any> = AutoCompleteFieldProps<T, UPDATE_VALUE>;
106
- /** Auto-complete input widget. */
107
- export declare function AutoCompleteField<T extends any, UPDATE_VALUE extends any>(props: AutoCompleteFieldProps<T, UPDATE_VALUE>): React.JSX.Element;
113
+ export declare type IAutoCompleteFieldProps<T, UPDATE_VALUE> = AutoCompleteFieldProps<T, UPDATE_VALUE>;
114
+ /**
115
+ * **Element is deprecated.**
116
+ * Use `SuggestField` as replacement.
117
+ *
118
+ * @deprecated
119
+ */
120
+ export declare function AutoCompleteField<T, UPDATE_VALUE>(props: AutoCompleteFieldProps<T, UPDATE_VALUE>): React.JSX.Element;
108
121
  export declare namespace AutoCompleteField {
109
122
  var defaultProps: {
110
123
  autoFocus: boolean;
111
124
  disabled: boolean;
125
+ onlyDropdownWithQuery: boolean;
126
+ fill: boolean;
127
+ requestErrorPrefix: string;
128
+ hasBackDrop: boolean;
112
129
  };
113
130
  }
114
131
  export default AutoCompleteField;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
- import { IElementWidth, IRenderModifiers } from "./interfaces";
3
- import { TestIconProps } from "./../Icon/TestIcon";
4
2
  import { ValidIconName } from "../Icon/canonicalIconNames";
3
+ import { TestIconProps } from "./../Icon/TestIcon";
4
+ import { IRenderModifiers } from "./interfaces";
5
5
  /**
6
6
  * Returns a function to be used in an AutoComplete widget for rendering custom elements based on the query string.
7
7
  *
8
8
  * @param itemTextRenderer The text or element that should be displayed for the new custom item suggestion.
9
9
  * @param iconName Optional icon to show left to the text.
10
10
  */
11
- export declare const createNewItemRendererFactory: (itemTextRenderer: (query: string, styleWidth: IElementWidth) => string | JSX.Element, iconName?: ValidIconName | React.ReactElement<TestIconProps, string | React.JSXElementConstructor<any>> | undefined) => (query: string, modifiers: IRenderModifiers, handleClick: React.MouseEventHandler<HTMLElement>) => React.JSX.Element;
11
+ export declare const createNewItemRendererFactory: (itemTextRenderer: (query: string) => string | JSX.Element, iconName?: ValidIconName | React.ReactElement<TestIconProps, string | React.JSXElementConstructor<any>> | undefined) => (query: string, modifiers: IRenderModifiers, handleClick: React.MouseEventHandler<HTMLElement>) => React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export * from "./AutoCompleteField";
3
3
  export declare const autoCompleteFieldUtils: {
4
- createNewItemRendererFactory: (itemTextRenderer: (query: string, styleWidth: import("./interfaces").IElementWidth) => string | JSX.Element, iconName?: import("../Icon/canonicalIconNames").ValidIconName | import("react").ReactElement<import("..").TestIconProps, string | import("react").JSXElementConstructor<any>> | undefined) => (query: string, modifiers: import("./interfaces").IRenderModifiers, handleClick: import("react").MouseEventHandler<HTMLElement>) => import("react").JSX.Element;
4
+ createNewItemRendererFactory: (itemTextRenderer: (query: string) => string | JSX.Element, iconName?: import("../Icon/canonicalIconNames").ValidIconName | import("react").ReactElement<import("..").TestIconProps, string | import("react").JSXElementConstructor<any>> | undefined) => (query: string, modifiers: import("./interfaces").IRenderModifiers, handleClick: import("react").MouseEventHandler<HTMLElement>) => import("react").JSX.Element;
5
5
  };
@@ -1,7 +1,7 @@
1
1
  export interface IRenderModifiers {
2
2
  active: boolean;
3
3
  disabled?: boolean;
4
- styleWidth: IElementWidth;
4
+ styleWidth?: IElementWidth;
5
5
  highlightingEnabled: boolean;
6
6
  }
7
7
  /** Style object to be used in menu option items. */
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AutoSuggestionProps } from "../AutoSuggestion/AutoSuggestion";
3
+ export declare type CodeAutocompleteFieldProps = AutoSuggestionProps;
4
+ /**
5
+ * Input component that allows partial, fine-grained auto-completion, i.e. of sub-strings of the input string.
6
+ * This is comparable to a one line code editor.
7
+ *
8
+ * Example usage: input of a path string offering auto-completion for each single part of the path.
9
+ */
10
+ export declare function CodeAutocompleteField({ className, ...otherProps }: CodeAutocompleteFieldProps): React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./CodeAutocompleteField";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { IntentTypes } from "../../common/Intent";
3
- import { ModalProps } from "./Modal";
4
3
  import { TestableComponent } from "../interfaces";
4
+ import { ModalProps } from "./Modal";
5
5
  export interface SimpleDialogProps extends ModalProps, TestableComponent {
6
6
  /**
7
7
  * The title of the dialog.
@@ -43,5 +43,5 @@ export interface SimpleDialogProps extends ModalProps, TestableComponent {
43
43
  * Simplifies the dialog display by providing a direct `Card` template for the `Modal` element.
44
44
  * Inherits all properties from `Modal`.
45
45
  */
46
- export declare const SimpleDialog: ({ children, canOutsideClickClose, canEscapeKeyClose, title, actions, notifications, hasBorder, preventSimpleClosing, intent, headerOptions, showFullScreenToggler, startInFullScreenMode, size, ...otherProps }: SimpleDialogProps) => React.JSX.Element;
46
+ export declare const SimpleDialog: ({ children, canOutsideClickClose, canEscapeKeyClose, title, actions, notifications, hasBorder, preventSimpleClosing, enforceFocus, intent, headerOptions, showFullScreenToggler, startInFullScreenMode, size, ...otherProps }: SimpleDialogProps) => React.JSX.Element;
47
47
  export default SimpleDialog;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import { ButtonProps, AnchorOrButtonProps } from "../Button/Button";
3
- import { TestIconProps } from "./TestIcon";
2
+ import { AnchorOrButtonProps, ButtonProps } from "../Button/Button";
4
3
  import { ValidIconName } from "./canonicalIconNames";
4
+ import { TestIconProps } from "./TestIcon";
5
5
  interface ExtendedButtonProps extends Omit<ButtonProps, "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
6
6
  /**
7
7
  * Canonical icon name, or an array of strings.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { IconProps as CarbonIconProps } from "carbon-components-react";
3
3
  /** Valid icon names. */
4
- export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-skip-forward" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "item-hidedetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-down" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-left" | "navigation-next" | "navigation-previous" | "navigation-right" | "navigation-up" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-erase" | "operation-filter" | "operation-filteredit" | "operation-link" | "operation-logout" | "operation-merge" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-translate" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-caretright" | "toggler-caretdown" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-rowexpand" | "toggler-rowcollapse" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "form-template" | "undefined";
4
+ export declare type ValidIconName = "application-activities" | "application-dataintegration" | "application-explore" | "application-homepage" | "application-legacygui" | "application-mapping" | "application-queries" | "application-useraccount" | "application-vocabularies" | "application-warning" | "artefact-commit" | "artefact-customtask" | "artefact-dataset" | "artefact-dataset-csv" | "artefact-dataset-eccencadataplatform" | "artefact-dataset-excel" | "artefact-dataset-file" | "artefact-dataset-jdbc" | "artefact-dataset-json" | "artefact-dataset-multicsv" | "artefact-dataset-neo4j" | "artefact-dataset-sparkview" | "artefact-dataset-sparqlendpoint" | "artefact-dataset-sqlendpoint" | "artefact-dataset-xml" | "artefact-deprecated" | "artefact-embedded" | "artefact-errorlog" | "artefact-file" | "artefact-linking" | "artefact-project" | "artefact-rawdata" | "artefact-remote" | "artefact-report" | "artefact-task" | "artefact-transform" | "artefact-uncategorized" | "artefact-workflow" | "data-sourcepath" | "data-targetpath" | "item-add-artefact" | "item-clone" | "item-comment" | "item-copy" | "item-download" | "item-draggable" | "item-edit" | "item-evaluation" | "item-execution" | "item-info" | "item-launch" | "item-moremenu" | "item-question" | "item-reload" | "item-remove" | "item-reset" | "item-save" | "item-settings" | "item-shuffle" | "item-skip-forward" | "item-start" | "item-stop" | "item-upload" | "item-vertmenu" | "item-viewdetails" | "item-hidedetails" | "list-sort" | "list-sortasc" | "list-sortdesc" | "module-accesscontrol" | "module-annotation" | "module-dashboard" | "module-gdprsearch" | "module-integrations" | "module-linkedrules" | "module-reports" | "module-search" | "module-thesauri" | "module-timetracker" | "module-visualization" | "navigation-back" | "navigation-close" | "navigation-down" | "navigation-first" | "navigation-forth" | "navigation-jump" | "navigation-last" | "navigation-left" | "navigation-next" | "navigation-previous" | "navigation-right" | "navigation-up" | "operation-aggregation" | "operation-autolayout" | "operation-clear" | "operation-commit" | "operation-comparison" | "operation-erase" | "operation-filter" | "operation-filteredit" | "operation-filterremove" | "operation-fix" | "operation-link" | "operation-logout" | "operation-merge" | "operation-redo" | "operation-search" | "operation-sharelink" | "operation-transform" | "operation-translate" | "operation-undo" | "operation-unlink" | "state-checked" | "state-checkedsimple" | "state-confirmed" | "state-danger" | "state-declined" | "state-info" | "state-partlychecked" | "state-protected" | "state-success" | "state-unchecked" | "state-warning" | "toggler-caret" | "toggler-caretright" | "toggler-caretdown" | "toggler-maximize" | "toggler-minimize" | "toggler-moveleft" | "toggler-moveright" | "toggler-rowexpand" | "toggler-rowcollapse" | "toggler-showless" | "toggler-showmore" | "toggler-star-empty" | "toggler-star-filled" | "toggler-tree" | "form-template" | "undefined";
5
5
  export declare type CarbonIconType = React.ComponentType<CarbonIconProps>;
6
6
  /**
7
7
  * @deprecated
@@ -9,6 +9,10 @@ export interface MultiSelectSelectionProps<T> {
9
9
  }
10
10
  export declare type SelectedParamsType<T> = MultiSelectSelectionProps<T>;
11
11
  export interface MultiSelectProps<T> extends Pick<BlueprintMultiSelectProps<T>, "items" | "placeholder" | "openOnKeyDown"> {
12
+ /**
13
+ * Additional class name, space separated.
14
+ */
15
+ className?: string;
12
16
  /**
13
17
  * Returns the unique ID of an item. This will be used for equality of items.
14
18
  */
@@ -83,10 +87,24 @@ export interface MultiSelectProps<T> extends Pick<BlueprintMultiSelectProps<T>,
83
87
  * Disables the input element
84
88
  */
85
89
  disabled?: boolean;
86
- /** Delay in ms how long the request for the given query should be delayed. */
90
+ /**
91
+ * Delay in ms how long the request for the given query should be delayed.
92
+ */
87
93
  requestDelay?: number;
94
+ /**
95
+ * Clear query when an option is selected or unselected.
96
+ * The query is empty then and the user need to enter a new query.
97
+ */
98
+ clearQueryOnSelection?: boolean;
88
99
  }
89
- export declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, requestDelay, ...otherProps }: MultiSelectProps<T>): React.JSX.Element;
100
+ /**
101
+ * **Element is deprecated for the current type of usage.**
102
+ * Use `MultiSuggestField` as replacement.
103
+ *
104
+ * This component will be re-implemented later as a `Select` allowing multiple selections.
105
+ * @deprecated
106
+ */
107
+ export declare function MultiSelect<T>({ items, prePopulateWithItems, itemId, itemLabel, onSelection, contextOverlayProps, tagInputProps, inputProps, runOnQueryChange, fullWidth, noResultText, newItemCreationText, newItemPostfix, hasStatePrimary, hasStateDanger, hasStateSuccess, hasStateWarning, disabled, createNewItemFromQuery, requestDelay, clearQueryOnSelection, className, ...otherProps }: MultiSelectProps<T>): React.JSX.Element;
90
108
  export declare namespace MultiSelect {
91
109
  var ofType: typeof BlueprintMultiSelect.ofType;
92
110
  }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { MultiSelectProps } from "../MultiSelect/MultiSelect";
3
+ export declare type MultiSuggestFieldProps<T> = MultiSelectProps<T>;
4
+ /**
5
+ * Element behaves very similar to `SuggestField` but allows multiple selections.
6
+ * Its value does not represent a string but a stack of objects.
7
+ *
8
+ * Example usage: input field for user created tags.
9
+ */
10
+ export declare function MultiSuggestField<T>({ className, ...otherProps }: MultiSuggestFieldProps<T>): React.JSX.Element;
@@ -1,5 +1,9 @@
1
1
  import React from "react";
2
2
  export interface PropertyNameProps extends React.HTMLAttributes<HTMLElement> {
3
+ /**
4
+ * Increase or decrease the width used for the property name.
5
+ */
6
+ size?: "small" | "medium" | "large";
3
7
  }
4
- export declare const PropertyName: ({ className, children, ...otherProps }: PropertyNameProps) => React.JSX.Element;
8
+ export declare const PropertyName: ({ className, size, children, ...otherProps }: PropertyNameProps) => React.JSX.Element;
5
9
  export default PropertyName;