@adaptabletools/adaptable 12.0.0-canary.7 → 12.0.1-canary.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 (79) hide show
  1. package/base.css +1 -1
  2. package/bundle.cjs.js +118 -118
  3. package/index.css +1 -1
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
  8. package/src/Api/DataSetApi.d.ts +3 -3
  9. package/src/Api/EventApi.d.ts +9 -9
  10. package/src/Api/Events/DataSetSelected.d.ts +11 -0
  11. package/src/Api/Events/{DataSetChanged.js → DataSetSelected.js} +0 -0
  12. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
  13. package/src/Api/Implementation/DataSetApiImpl.js +3 -3
  14. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -1
  15. package/src/Api/Implementation/InternalApiImpl.js +16 -3
  16. package/src/Api/InternalApi.d.ts +4 -1
  17. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -6
  18. package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -2
  19. package/src/PredefinedConfig/Selection/GridCellRange.d.ts +19 -0
  20. package/src/PredefinedConfig/StatusBarState.d.ts +1 -1
  21. package/src/Redux/Store/AdaptableStore.js +1 -1
  22. package/src/Strategy/AdaptableModuleBase.d.ts +6 -5
  23. package/src/Strategy/AlertModule.d.ts +2 -8
  24. package/src/Strategy/AlertModule.js +3 -0
  25. package/src/Strategy/Interface/IModule.d.ts +5 -3
  26. package/src/Utilities/MenuItem.d.ts +4 -4
  27. package/src/View/Alert/ActiveAlertsPanelItemLabel.d.ts +5 -0
  28. package/src/View/Alert/ActiveAlertsPanelItemLabel.js +22 -0
  29. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +2 -2
  30. package/src/View/ColorPicker.d.ts +1 -1
  31. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  32. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +8 -4
  33. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +6 -1
  34. package/src/View/Components/Buttons/ButtonPause.js +11 -1
  35. package/src/View/Components/FilterForm/QuickFilterForm.js +1 -1
  36. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -1
  37. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -2
  38. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -11
  39. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -11
  40. package/src/View/Dashboard/CustomDashboardButton.js +2 -15
  41. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -11
  42. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  43. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -0
  44. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  45. package/src/View/UIHelper.d.ts +2 -2
  46. package/src/agGrid/ActionColumnRenderer.js +5 -11
  47. package/src/agGrid/Adaptable.d.ts +2 -26
  48. package/src/agGrid/Adaptable.js +51 -51
  49. package/src/agGrid/agGridMenuHelper.d.ts +1 -0
  50. package/src/agGrid/agGridMenuHelper.js +15 -4
  51. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -12
  52. package/src/components/AdaptableIconComponent/index.d.ts +2 -1
  53. package/src/components/AdaptableIconComponent/index.js +36 -3
  54. package/src/components/Datepicker/index.d.ts +1 -1
  55. package/src/components/Input/index.d.ts +1 -1
  56. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  57. package/src/components/PopupWithFooter.d.ts +1 -1
  58. package/src/components/SimpleButton/index.js +1 -1
  59. package/src/components/Textarea/index.d.ts +1 -1
  60. package/src/components/icons/{color-drop.d.ts → ends-with.d.ts} +0 -0
  61. package/src/components/icons/{format-letter-ends-with.js → ends-with.js} +0 -0
  62. package/src/components/icons/{filter-outline.d.ts → filter.d.ts} +0 -0
  63. package/src/components/icons/{filter-outline.js → filter.js} +0 -0
  64. package/src/components/icons/index.d.ts +5 -7
  65. package/src/components/icons/index.js +7 -17
  66. package/src/components/icons/{format-letter-ends-with.d.ts → starts-with.d.ts} +0 -0
  67. package/src/components/icons/{format-letter-starts-with.js → starts-with.js} +0 -0
  68. package/src/metamodel/adaptable.metamodel.d.ts +82 -0
  69. package/src/metamodel/adaptable.metamodel.js +1 -1
  70. package/src/types.d.ts +2 -2
  71. package/version.d.ts +1 -1
  72. package/version.js +1 -1
  73. package/src/Api/Events/DataSetChanged.d.ts +0 -5
  74. package/src/agGrid/rowEditIcons.d.ts +0 -5
  75. package/src/agGrid/rowEditIcons.js +0 -10
  76. package/src/components/icons/color-drop.js +0 -7
  77. package/src/components/icons/format-letter-starts-with.d.ts +0 -3
  78. package/src/components/icons/pause-red.d.ts +0 -3
  79. package/src/components/icons/pause-red.js +0 -7
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { AdaptableInputProps } from '../AdaptableInput';
3
3
  export declare type AdaptableDateInputProps = AdaptableInputProps;
4
- declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
4
+ declare const AdaptableDateInput: React.ForwardRefExoticComponent<Pick<import("../../../components/Input").InputProps, "max" | "required" | "default" | "high" | "low" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "disabled" | "m" | "color" | "content" | "size" | "flex" | "wrap" | "padding" | "multiple" | "alignSelf" | "backgroundColor" | "fontSize" | "height" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "width" | "margin" | "children" | "key" | "list" | "step" | "type" | "min" | "contextMenu" | "value" | "onKeyDown" | "rows" | "name" | "checked" | "className" | "id" | "lang" | "method" | "target" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "as" | "hrefLang" | "integrity" | "rel" | "sizes" | "charSet" | "kind" | "src" | "srcLang" | "download" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "maxLength" | "minLength" | "readOnly" | "htmlFor" | "httpEquiv" | "optimum" | "reversed" | "selected" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "poster" | "challenge" | "keyType" | "keyParams" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "css" | "bg" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
5
5
  export default AdaptableDateInput;
@@ -11,7 +11,7 @@ const ValueSelector_1 = require("../ValueSelector");
11
11
  const baseClassName = 'ab-Adaptable-Object-Compact-List';
12
12
  const ICON_SIZE = 20;
13
13
  const AdaptableObjectCompactListItem = (props) => {
14
- var _a, _b, _c, _d, _e, _f, _g, _h;
14
+ var _a, _b, _c, _d, _e, _f;
15
15
  const dispatch = react_redux_1.useDispatch();
16
16
  const adaptable = AdaptableContext_1.useAdaptable();
17
17
  const objectView = props.module.toViewCompact(props.abObject);
@@ -23,15 +23,19 @@ const AdaptableObjectCompactListItem = (props) => {
23
23
  const handleDelete = React.useCallback(() => {
24
24
  dispatch(deleteAction);
25
25
  }, []);
26
- const name = (_d = objectView.item.label) !== null && _d !== void 0 ? _d : objectView.item.name;
26
+ let labelEl = objectView.item.label;
27
+ if (typeof labelEl === 'function') {
28
+ labelEl = React.createElement(labelEl, { data: props.abObject });
29
+ }
30
+ labelEl = labelEl !== null && labelEl !== void 0 ? labelEl : objectView.item.name;
27
31
  return (React.createElement(rebass_1.Flex, { className: `${baseClassName}__Item`, alignItems: "center" },
28
- name && (React.createElement(rebass_1.Flex, { className: `${baseClassName}__Item__Name` }, (_e = objectView.item.label) !== null && _e !== void 0 ? _e : objectView.item.name)),
32
+ labelEl && React.createElement(rebass_1.Flex, { className: `${baseClassName}__Item__Name` }, labelEl),
29
33
  React.createElement(rebass_1.Box, { flex: 1 },
30
34
  objectView.item.view &&
31
35
  React.createElement(objectView.item.view, {
32
36
  data: props.abObject,
33
37
  }),
34
- Boolean(((_f = objectView.item) === null || _f === void 0 ? void 0 : _f.values) && ((_h = (_g = objectView.item) === null || _g === void 0 ? void 0 : _g.values) === null || _h === void 0 ? void 0 : _h.length)) && (React.createElement(rebass_1.Box, { mb: 2, className: `${baseClassName}__Item__Values` },
38
+ Boolean(((_d = objectView.item) === null || _d === void 0 ? void 0 : _d.values) && ((_f = (_e = objectView.item) === null || _e === void 0 ? void 0 : _e.values) === null || _f === void 0 ? void 0 : _f.length)) && (React.createElement(rebass_1.Box, { mb: 2, className: `${baseClassName}__Item__Values` },
35
39
  React.createElement(ValueSelector_1.ValueOptionsTags, { style: { marginRight: 0 }, readOnly: true, options: objectView.item.values, value: objectView.item.values, allowWrap: true, toIdentifier: (c) => c, toLabel: (c) => React.createElement(React.Fragment, null, c) })))),
36
40
  React.createElement(rebass_1.Flex, { ml: 1 }, deleteAction && (React.createElement(SimpleButton_1.default, { iconSize: ICON_SIZE, icon: "delete", variant: "text", onClick: handleDelete, accessLevel: moduleAccessLevel })))));
37
41
  };
@@ -59,9 +59,14 @@ const AdaptableObjectListItem = (props) => {
59
59
  return (React.createElement(rebass_1.Flex, { "data-name": "adaptable-object-list-item", "data-value": props.data.abObject.Uuid, as: "li", mb: 3, className: itemClassName },
60
60
  React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__rows` }, (_j = (_h = (_g = props.data.items).filter) === null || _h === void 0 ? void 0 : _h.call(_g, Boolean)) === null || _j === void 0 ? void 0 : _j.map((tag, index) => {
61
61
  var _a;
62
+ let labelEl = tag.label;
63
+ if (typeof tag.label === 'function') {
64
+ labelEl = React.createElement(tag.label, { data: props.data.abObject });
65
+ }
66
+ labelEl = labelEl !== null && labelEl !== void 0 ? labelEl : tag.name;
62
67
  return (React.createElement(rebass_1.Flex, { "data-name": tag.name, key: index, mb: 2, className: `${baseClassName}__row` },
63
68
  React.createElement(rebass_1.Box, { className: `${baseClassName}__label`, mr: 3 },
64
- tag.label || tag.name,
69
+ labelEl,
65
70
  EditWizard && (React.createElement(SimpleButton_1.default, { accessLevel: accessLevel, className: `${baseClassName}__edit-property`, ml: 1, icon: "edit", tooltip: "edit", iconSize: 18, variant: "text", onClick: () => {
66
71
  handleOnEdit(tag.name);
67
72
  } }))),
@@ -6,7 +6,17 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
7
7
  class ButtonPause extends React.Component {
8
8
  render() {
9
- return (React.createElement(SimpleButton_1.default, Object.assign({ "data-name": "pause", tooltip: "Pause", iconSize: 20, icon: this.props.fillColor === 'red' ? 'pause-red' : 'pause', variant: "text" }, this.props)));
9
+ const buttonIcon = this.props.fillColor === 'red'
10
+ ? {
11
+ name: 'pause',
12
+ style: {
13
+ fill: 'red',
14
+ },
15
+ }
16
+ : {
17
+ name: 'pause',
18
+ };
19
+ return (React.createElement(SimpleButton_1.default, Object.assign({ "data-name": "pause", tooltip: "Pause", iconSize: 20, icon: buttonIcon, variant: "text" }, this.props)));
10
20
  }
11
21
  }
12
22
  exports.ButtonPause = ButtonPause;
@@ -153,7 +153,7 @@ class QuickFilterFormComponent extends React.Component {
153
153
  }
154
154
  renderPredicateIcon(predicateDef) {
155
155
  if (!predicateDef || !predicateDef.icon) {
156
- return React.createElement(icons_1.Icon, { name: "filter-outline" });
156
+ return React.createElement(icons_1.Icon, { name: "filter" });
157
157
  }
158
158
  if ('text' in predicateDef.icon) {
159
159
  return React.createElement("span", null, predicateDef.icon.text);
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { PanelProps } from '../../../components/Panel';
3
3
  import { BoxProps } from 'rebass';
4
+ import { AdaptableInternalIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
4
5
  export interface PanelWithButtonProps extends PanelProps {
5
6
  buttonContent?: React.ReactNode;
6
7
  buttonClick?: () => void;
@@ -10,7 +11,7 @@ export interface PanelWithButtonProps extends PanelProps {
10
11
  headerProps?: BoxProps & {
11
12
  'data-name': string;
12
13
  };
13
- glyphicon?: string;
14
+ glyphicon?: AdaptableInternalIconName;
14
15
  buttonDisabled?: boolean;
15
16
  buttonStyle?: string;
16
17
  borderRadius?: string;
@@ -1,9 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { PanelProps } from '../../../components/Panel';
3
3
  import { BoxProps } from 'rebass';
4
+ import { AdaptableInternalIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
4
5
  export interface PanelWithImageProps extends PanelProps {
5
- glyphicon?: string;
6
- icon?: string;
6
+ glyphicon?: AdaptableInternalIconName;
7
+ icon?: AdaptableInternalIconName;
7
8
  infoLink?: string;
8
9
  infoLinkDisabled?: boolean;
9
10
  borderRadius?: string;
@@ -148,19 +148,11 @@ const AdaptableToolPanelComponent = (props) => {
148
148
  return props.api.toolPanelApi.getCustomToolPanelButtons().map((button) => {
149
149
  // TODO: variants of this mapping are present in several places (just search for api.internalApi.getStyleForButton() usages)
150
150
  // with the next opportunity we should abstract it
151
- // the default size of AdapTable SVG ModuleButtons
152
- const defaultIconProps = {
153
- style: {
154
- height: 'var(--ab-cmp-simple-button__height)',
155
- width: 'var(--ab-cmp-simple-button__width)',
156
- },
157
- };
158
151
  const toolPanelContext = {
159
152
  adaptableApi: props.api,
160
153
  toolPanelState: props.api.toolPanelApi.getToolPanelState(),
161
154
  };
162
155
  const buttonIcon = props.api.internalApi.getIconForButton(button, toolPanelContext);
163
- const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
164
156
  let buttonStyle = props.api.internalApi.getStyleForButton(button, toolPanelContext);
165
157
  let buttonLabel = props.api.internalApi.getLabelForButton(button, toolPanelContext);
166
158
  let buttonTooltip = props.api.internalApi.getTooltipForButton(button, toolPanelContext);
@@ -171,9 +163,7 @@ const AdaptableToolPanelComponent = (props) => {
171
163
  const buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text';
172
164
  const buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none';
173
165
  const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : uuid_1.createUuid();
174
- return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' },
175
- buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
176
- buttonLabel));
166
+ return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
177
167
  });
178
168
  };
179
169
  const onSetColumnVisibility = (name) => {
@@ -44,20 +44,12 @@ const CustomToolPanelContent = (props) => {
44
44
  ((_a = customToolPanel.buttons) === null || _a === void 0 ? void 0 : _a.length) && (React.createElement("div", { id: buttonsDivId, className: `ab-ToolPanel__custom-content__buttons ${buttonsDivId}` }, customToolPanel.buttons.map((button) => {
45
45
  // TODO: variants of this mapping are present in several places (just search for api.internalApi.getStyleForButton() usages)
46
46
  // with the next opportunity we should abstract it
47
- // the default size of AdapTable SVG ModuleButtons
48
- const defaultIconProps = {
49
- style: {
50
- height: 'var(--ab-cmp-simple-button__height)',
51
- width: 'var(--ab-cmp-simple-button__width)',
52
- },
53
- };
54
47
  const toolPanelContext = {
55
48
  adaptableApi: api,
56
49
  toolPanelState: api.toolPanelApi.getToolPanelState(),
57
50
  customToolPanel: customToolPanel,
58
51
  };
59
52
  const buttonIcon = api.internalApi.getIconForButton(button, toolPanelContext);
60
- const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
61
53
  let buttonStyle = api.internalApi.getStyleForButton(button, toolPanelContext);
62
54
  let buttonLabel = api.internalApi.getLabelForButton(button, toolPanelContext);
63
55
  let buttonTooltip = api.internalApi.getTooltipForButton(button, toolPanelContext);
@@ -68,9 +60,7 @@ const CustomToolPanelContent = (props) => {
68
60
  const buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text';
69
61
  const buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none';
70
62
  const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : uuid_1.createUuid();
71
- return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' },
72
- buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
73
- buttonLabel));
63
+ return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
74
64
  })))));
75
65
  };
76
66
  exports.CustomToolPanelContent = CustomToolPanelContent;
@@ -15,18 +15,7 @@ const CustomDashboardButton = (props) => {
15
15
  adaptableApi: props.api,
16
16
  dashboardState: props.api.dashboardApi.getDashboardState(),
17
17
  };
18
- const defaultIconProps = {
19
- style: {
20
- height: 'var(--ab-cmp-simple-button__height)',
21
- width: 'var(--ab-cmp-simple-button__width)',
22
- },
23
- };
24
18
  const buttonIcon = props.api.internalApi.getIconForButton(button, dashboardContext);
25
- const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
26
- // const iconProps: any = button.icon ? { ...button.icon } : null;
27
- // if (iconProps) {
28
- // delete iconProps.Uuid;
29
- // }
30
19
  let buttonStyle = props.api.internalApi.getStyleForButton(button, dashboardContext);
31
20
  let buttonLabel = props.api.internalApi.getLabelForButton(button, dashboardContext);
32
21
  let buttonTooltip = props.api.internalApi.getTooltipForButton(button, dashboardContext);
@@ -34,15 +23,13 @@ const CustomDashboardButton = (props) => {
34
23
  return null;
35
24
  }
36
25
  const disabled = button.disabled && button.disabled(button, dashboardContext);
37
- return (React.createElement(SimpleButton_1.default, { key: buttonLabel, variant: buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text', tone: buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none', className: `ab-DashboardToolbar__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, disabled: disabled || props.accessLevel == 'ReadOnly', onClick: () => {
26
+ return (React.createElement(SimpleButton_1.default, { key: buttonLabel, variant: buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text', tone: buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none', className: `ab-DashboardToolbar__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled || props.accessLevel == 'ReadOnly', onClick: () => {
38
27
  var _a;
39
28
  (_a = button.onClick) === null || _a === void 0 ? void 0 : _a.call(button, button, dashboardContext);
40
29
  setTimeout(() => {
41
30
  // mutate state to force a re-rendering
42
31
  setComponentRevision(componentRevision + 1);
43
32
  }, 16);
44
- }, accessLevel: 'Full' },
45
- buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
46
- buttonLabel));
33
+ }, accessLevel: 'Full' }, buttonLabel));
47
34
  };
48
35
  exports.CustomDashboardButton = CustomDashboardButton;
@@ -69,14 +69,7 @@ const CustomToolbarWrapper = (props) => {
69
69
  adaptableApi: api,
70
70
  dashboardState: api.dashboardApi.getDashboardState(),
71
71
  };
72
- const defaultIconProps = {
73
- style: {
74
- height: 'var(--ab-cmp-simple-button__height)',
75
- width: 'var(--ab-cmp-simple-button__width)',
76
- },
77
- };
78
72
  const buttonIcon = api.internalApi.getIconForButton(button, dashboardContext);
79
- const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
80
73
  let buttonStyle = api.internalApi.getStyleForButton(button, dashboardContext);
81
74
  let buttonLabel = api.internalApi.getLabelForButton(button, dashboardContext);
82
75
  let buttonTooltip = api.internalApi.getTooltipForButton(button, dashboardContext);
@@ -86,15 +79,13 @@ const CustomToolbarWrapper = (props) => {
86
79
  const disabled = button.disabled && button.disabled(button, dashboardContext);
87
80
  let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
88
81
  let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
89
- return (React.createElement(SimpleButton_1.default, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, variant: buttonVariant, tone: buttonTone, onClick: () => {
82
+ return (React.createElement(SimpleButton_1.default, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, onClick: () => {
90
83
  button.onClick ? button.onClick(button, dashboardContext) : null;
91
84
  setTimeout(() => {
92
85
  // mutate state to force a re-rendering
93
86
  setComponentRevision(componentRevision + 1);
94
87
  }, 16);
95
- } },
96
- buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
97
- buttonLabel));
88
+ } }, buttonLabel));
98
89
  }))));
99
90
  };
100
91
  exports.CustomToolbarWrapper = CustomToolbarWrapper;
@@ -113,6 +113,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
113
113
  },
114
114
  layoutOptions: {
115
115
  createDefaultLayout: false,
116
+ autoSizeColumnsInLayout: true,
116
117
  },
117
118
  actionOptions: actionOptions,
118
119
  predefinedConfig: {
@@ -287,7 +288,7 @@ const getColumnHeaderLabel = (columnId, mainAdaptableInstance) => {
287
288
  return headerMap.get(columnId);
288
289
  };
289
290
  const getChangeTriggerLabel = (changeInfo) => {
290
- return changeInfo.trigger === 'tick' ? 'Ticking data' : 'User edit';
291
+ return changeInfo.trigger === 'tick' ? 'Ticking' : 'User Edit';
291
292
  };
292
293
  const filterChangeHistoryLog = (changeObject, filterValues) => {
293
294
  const result = {};
@@ -60,6 +60,7 @@ const isValidFreeTextColumn = (data, api) => {
60
60
  };
61
61
  exports.isValidFreeTextColumn = isValidFreeTextColumn;
62
62
  const FreeTextColumnSettingsWizardSection = (props) => {
63
+ var _a;
63
64
  const { data, api } = OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext();
64
65
  const Pattern = api.internalApi.getAdaptableOptions().userInterfaceOptions.dateInputOptions.dateFormat;
65
66
  const [ColumnNameFocused, setColumnNameFocused] = react_1.useState(false);
@@ -128,6 +129,11 @@ const FreeTextColumnSettingsWizardSection = (props) => {
128
129
  } })) : (React.createElement(AdaptableInput_1.default, { value: data.DataType === 'Date' && data.DefaultValue
129
130
  ? DateHelper_1.parseToISO(data.DefaultValue, Pattern) || ''
130
131
  : data.DefaultValue || '', style: { width: '100%', maxWidth: 500 }, type: data.DataType === 'Number' ? 'number' : data.DataType === 'Date' ? 'date' : 'text', placeholder: "Default Column Value (not required)", onChange: (e) => handleDefaultValueChange(e) }))),
132
+ React.createElement(FormLayout_1.FormRow, { label: "Header Tooltip" },
133
+ React.createElement(Input_1.default, { "data-name": "header-tooltip", type: "text", style: { width: '100%', maxWidth: 500 }, value: ((_a = data.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.HeaderToolTip) || '', onChange: (e) => handleSpecialColumnSettingsChange({
134
+ HeaderToolTip: e.target.value,
135
+ }) })),
136
+ ' ',
131
137
  data.DataType == 'String' && (React.createElement(FormLayout_1.FormRow, { label: "Editor Type" },
132
138
  React.createElement(Radio_1.default, { value: "Inline", checked: data.TextEditor == 'Inline', onChange: (_, e) => onDynamicSelectChanged(e), marginRight: 2 }, "Inline Editor"),
133
139
  React.createElement(Radio_1.default, { value: "Large", checked: data.TextEditor == 'Large', onChange: (_, e) => onDynamicSelectChanged(e) }, "Large Editor")))),
@@ -102,7 +102,7 @@ const GridInfoPopup = (props) => {
102
102
  return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: index, colItems: x });
103
103
  });
104
104
  const showRadioButtons = [showGridSummary, showAdaptableOptions, showColumnInfo, showAdaptableObjects].filter((item) => item).length > 1;
105
- return (React.createElement(PopupPanel_1.PopupPanel, { headerText: 'Grid Info', glyphicon: 'info-sign' },
105
+ return (React.createElement(PopupPanel_1.PopupPanel, { headerText: 'Grid Info', glyphicon: 'info' },
106
106
  React.createElement(rebass_1.Flex, { marginBottom: 2, padding: 3 }, showRadioButtons && (React.createElement(React.Fragment, null,
107
107
  showGridSummary && (React.createElement(Radio_1.default, { "data-name": "radioButton-GridSummary", marginRight: 3, value: "GridSummary", checked: state.ActiveTab == 'GridSummary', onChange: (_, e) => onShowGridSummaryChanged('GridSummary') }, "Summary")),
108
108
  showAdaptableOptions && (React.createElement(Radio_1.default, { "data-name": "radioButton-AdaptableOptions", marginRight: 3, value: "AdaptableOptions", checked: state.ActiveTab == 'AdaptableOptions', onChange: (_, e) => onShowGridSummaryChanged('AdaptableOptions') }, "Options")),
@@ -3,7 +3,7 @@ import { EditableConfigEntityState } from './Components/SharedProps/EditableConf
3
3
  import { StatusColour } from '../PredefinedConfig/Common/Enums';
4
4
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
5
5
  import { Schedule, Weekday } from '../PredefinedConfig/Common/Schedule';
6
- import { AdaptableColumnDataType, AdaptableOptions } from '../types';
6
+ import { AdaptableColumnDataType, AdaptableInternalIconName, AdaptableOptions } from '../types';
7
7
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
8
8
  import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
9
9
  export declare const BLACK: string;
@@ -36,7 +36,7 @@ export declare function IsEmptyStyle(style: AdaptableStyle): boolean;
36
36
  export declare function IsNotEmptyStyle(style: AdaptableStyle): boolean;
37
37
  export declare function getMessageTypeByStatusColour(statusColour: StatusColour): AdaptableMessageType;
38
38
  export declare function getButtonToneByMessageType(messageType: AdaptableMessageType): 'success' | 'error' | 'neutral' | 'none' | 'warning' | 'info' | 'accent';
39
- export declare function getGlyphByMessageType(messageType: AdaptableMessageType): string;
39
+ export declare function getGlyphByMessageType(messageType: AdaptableMessageType): AdaptableInternalIconName;
40
40
  export declare function getColorByMessageType(messageType: AdaptableMessageType): string;
41
41
  export declare function getStyleForStatusColour(statusColour: StatusColour): CSSProperties;
42
42
  export declare function getStyleForMessageType(messageType: AdaptableMessageType): CSSProperties;
@@ -45,14 +45,10 @@ class ActionColumnRenderer {
45
45
  if (button.hidden && button.hidden(button, context)) {
46
46
  return;
47
47
  }
48
- const defaultIconProps = {
49
- style: {
50
- height: 15,
51
- width: 15,
52
- },
53
- };
54
- const buttonIcon = adaptableApi.internalApi.getIconForButton(button, context);
55
- const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
48
+ const buttonIcon = adaptableApi.internalApi.getIconForButton(button, context, {
49
+ height: 15,
50
+ width: 15,
51
+ });
56
52
  const buttonStyle = adaptableApi.internalApi.getStyleForButton(button, context);
57
53
  const buttonLabel = adaptableApi.internalApi.getLabelForButton(button, context);
58
54
  const buttonTooltip = adaptableApi.internalApi.getTooltipForButton(button, context);
@@ -66,9 +62,7 @@ class ActionColumnRenderer {
66
62
  }, 16);
67
63
  };
68
64
  const disabled = button.disabled && button.disabled(button, context);
69
- return (React.createElement(SimpleButton_1.default, { key: button.Uuid, "data-name": `action-button-${index + 1}`, variant: (_a = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant) !== null && _a !== void 0 ? _a : 'text', disabled: disabled, tooltip: buttonTooltip, tone: (_b = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone) !== null && _b !== void 0 ? _b : 'none', onClick: handleClick, className: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className, accessLevel: 'Full' },
70
- buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
71
- buttonLabel));
65
+ return (React.createElement(SimpleButton_1.default, { key: button.Uuid, "data-name": `action-button-${index + 1}`, variant: (_a = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant) !== null && _a !== void 0 ? _a : 'text', disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, tone: (_b = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone) !== null && _b !== void 0 ? _b : 'none', onClick: handleClick, className: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className, accessLevel: 'Full' }, buttonLabel));
72
66
  })));
73
67
  };
74
68
  const eGui = this.eGui;
@@ -1,4 +1,4 @@
1
- import { ColDef, ColGroupDef, Column, ExcelStyle, GridOptions, Module, RowNode, ValueGetterParams, ValueSetterParams } from '@ag-grid-community/all-modules';
1
+ import { ColDef, ColGroupDef, Column, ExcelStyle, GridOptions, Module, RowNode } from '@ag-grid-community/all-modules';
2
2
  import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
3
3
  import { IAdaptable } from '../AdaptableInterfaces/IAdaptable';
4
4
  import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
@@ -18,7 +18,6 @@ import { SelectedRowInfo } from '../PredefinedConfig/Selection/SelectedRowInfo';
18
18
  import { AdaptableTheme } from '../PredefinedConfig/ThemeState';
19
19
  import { IAdaptableStore } from '../Redux/Store/Interface/IAdaptableStore';
20
20
  import { IModuleCollection } from '../Strategy/Interface/IModule';
21
- import { AdaptableColumnType } from '../types';
22
21
  import { EmitterCallback } from '../Utilities/Emitter';
23
22
  import { IPPStyle } from '../Utilities/Interface/IPPStyle';
24
23
  import { LicenseService } from '../Utilities/Services/LicenseService';
@@ -31,8 +30,6 @@ import { IModuleService } from '../Utilities/Services/Interface/IModuleService';
31
30
  import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
32
31
  import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
33
32
  import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
34
- import { AdaptableNumberEditor } from './editors/AdaptableNumberEditor';
35
- import { AdaptableDateEditor } from './editors/AdaptableDateEditor';
36
33
  import { ColumnSetupInfo } from './ColumnSetupInfo';
37
34
  import { CustomSort } from '../PredefinedConfig/CustomSortState';
38
35
  import { ColumnValuesComparer } from '../AdaptableOptions/GeneralOptions';
@@ -224,28 +221,7 @@ export declare class Adaptable implements IAdaptable {
224
221
  */
225
222
  private mapColumnDefs;
226
223
  private getColDefsForSpecialColumns;
227
- getColDefsForFreeTextColumns(): {
228
- headerName: string;
229
- colId: string;
230
- editable: boolean;
231
- hide: boolean;
232
- width: number;
233
- enableValue: boolean;
234
- filter: boolean;
235
- floatingFilter: boolean;
236
- resizable: boolean;
237
- enableRowGroup: boolean;
238
- sortable: boolean;
239
- enablePivot: boolean;
240
- suppressMenu: boolean;
241
- suppressMovable: boolean;
242
- headerTooltip: string;
243
- cellEditor: string | typeof AdaptableNumberEditor | typeof AdaptableDateEditor;
244
- type: AdaptableColumnType[];
245
- valueSetter: (params: ValueSetterParams) => any;
246
- cellRenderer: import("@ag-grid-community/all-modules").ICellRendererFunc;
247
- valueGetter: (params: ValueGetterParams) => any;
248
- }[];
224
+ getColDefsForFreeTextColumns(): ColDef[];
249
225
  setupColumnValueGetter({ col }: ColumnSetupInfo): void;
250
226
  setupColumnAggFunc({ col }: ColumnSetupInfo): void;
251
227
  private getColDefsForRowEditColumns;
@@ -62,7 +62,6 @@ const StatusBarState_1 = require("../PredefinedConfig/StatusBarState");
62
62
  const createAgStatusPanelComponent_1 = require("./createAgStatusPanelComponent");
63
63
  const AdaptableStatusBar_1 = require("../View/StatusBar/AdaptableStatusBar");
64
64
  const RowEditService_1 = require("../Utilities/Services/RowEditService");
65
- const rowEditIcons_1 = require("./rowEditIcons");
66
65
  const tinycolor = require('tinycolor2');
67
66
  all_modules_1.ModuleRegistry.registerModules(all_modules_1.AllCommunityModules);
68
67
  const GROUP_PATH_SEPARATOR = '/';
@@ -2132,7 +2131,6 @@ class Adaptable {
2132
2131
  : freeTextColumn.DataType === 'Date'
2133
2132
  ? AdaptableDateEditor_1.AdaptableDateEditor
2134
2133
  : null;
2135
- LoggingHelper_1.LogAdaptableInfo('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
2136
2134
  const columnTypes = [
2137
2135
  GeneralConstants_1.AB_SPECIAL_COLUMN,
2138
2136
  this.agGridHelper.getAgGridDataType(freeTextColumn.DataType),
@@ -2140,7 +2138,7 @@ class Adaptable {
2140
2138
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty((_a = freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.FreeTextColumnSettings) === null || _a === void 0 ? void 0 : _a.ColumnTypes)) {
2141
2139
  columnTypes.push(...freeTextColumn.FreeTextColumnSettings.ColumnTypes);
2142
2140
  }
2143
- return {
2141
+ const newColDef = {
2144
2142
  headerName: freeTextColumn.FriendlyName || freeTextColumn.ColumnId,
2145
2143
  colId: freeTextColumn.ColumnId,
2146
2144
  editable: true,
@@ -2155,7 +2153,6 @@ class Adaptable {
2155
2153
  enablePivot: freeTextColumnSettings.Pivotable,
2156
2154
  suppressMenu: freeTextColumnSettings.SuppressMenu,
2157
2155
  suppressMovable: freeTextColumnSettings.SuppressMovable,
2158
- headerTooltip: freeTextColumnSettings.HeaderToolTip,
2159
2156
  cellEditor: dataTypeEditor !== null && dataTypeEditor !== void 0 ? dataTypeEditor : (freeTextColumn.TextEditor && freeTextColumn.TextEditor == 'Large'
2160
2157
  ? 'agLargeTextCellEditor'
2161
2158
  : 'agTextCellEditor'),
@@ -2168,6 +2165,11 @@ class Adaptable {
2168
2165
  : undefined,
2169
2166
  valueGetter: (params) => this.api.freeTextColumnApi.getFreeTextColumnValueFromRowNode(freeTextColumn, params.node),
2170
2167
  };
2168
+ if (freeTextColumnSettings.HeaderToolTip) {
2169
+ newColDef.headerTooltip = freeTextColumnSettings.HeaderToolTip;
2170
+ }
2171
+ LoggingHelper_1.LogAdaptableInfo('Setting up FreeText Column: ' + freeTextColumn.ColumnId);
2172
+ return newColDef;
2171
2173
  });
2172
2174
  }
2173
2175
  setupColumnValueGetter({ col }) {
@@ -2193,57 +2195,55 @@ class Adaptable {
2193
2195
  }
2194
2196
  const editButtons = actionRowButtons
2195
2197
  .map((buttonName) => {
2196
- if (buttonName === 'create') {
2197
- // we need this dirty hack until ActionColumn support for custom icons is improved
2198
- const label = rowEditIcons_1.rowAddIcon;
2199
- return {
2200
- label,
2198
+ const button = buttonName === 'create'
2199
+ ? {
2200
+ icon: {
2201
+ name: 'add-row',
2202
+ },
2201
2203
  tooltip: 'Create',
2202
2204
  onClick: () => {
2203
2205
  this.api.actionApi.displayCreateActionRow();
2204
2206
  },
2205
- };
2206
- }
2207
- if (buttonName === 'edit') {
2208
- // we need this dirty hack until ActionColumn support for custom icons is improved
2209
- const label = rowEditIcons_1.rowEditIcon;
2210
- return {
2211
- label,
2212
- tooltip: 'Edit',
2213
- onClick: (button, context) => {
2214
- this.api.actionApi.displayEditActionRow(context.primaryKeyValue);
2215
- },
2216
- };
2217
- }
2218
- if (buttonName === 'clone') {
2219
- // we need this dirty hack until ActionColumn support for custom icons is improved
2220
- const label = rowEditIcons_1.rowCloneIcon;
2221
- return {
2222
- label,
2223
- tooltip: 'Clone',
2224
- onClick: (button, context) => {
2225
- this.api.actionApi.displayCloneActionRow(context.primaryKeyValue);
2226
- },
2227
- };
2228
- }
2229
- if (buttonName === 'delete') {
2230
- // we need this dirty hack until ActionColumn support for custom icons is improved
2231
- const label = rowEditIcons_1.rowDeleteIcon;
2232
- return {
2233
- label,
2234
- tooltip: 'Delete',
2235
- onClick: (button, context) => {
2236
- var _a, _b;
2237
- const eventInfo = {
2238
- type: 'rowDeleted',
2239
- rowNode: context.rowNode,
2240
- adaptableApi: context.adaptableApi,
2241
- };
2242
- this.api.eventApi.emit('ActionRowSubmitted', eventInfo);
2243
- (_b = (_a = this.adaptableOptions.actionOptions.actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
2244
- },
2245
- };
2246
- }
2207
+ }
2208
+ : buttonName === 'edit'
2209
+ ? {
2210
+ icon: {
2211
+ name: 'edit',
2212
+ },
2213
+ tooltip: 'Edit',
2214
+ onClick: (button, context) => {
2215
+ this.api.actionApi.displayEditActionRow(context.primaryKeyValue);
2216
+ },
2217
+ }
2218
+ : buttonName === 'clone'
2219
+ ? {
2220
+ icon: {
2221
+ name: 'clone',
2222
+ },
2223
+ tooltip: 'Clone',
2224
+ onClick: (button, context) => {
2225
+ this.api.actionApi.displayCloneActionRow(context.primaryKeyValue);
2226
+ },
2227
+ }
2228
+ : buttonName === 'delete'
2229
+ ? {
2230
+ icon: {
2231
+ name: 'delete',
2232
+ },
2233
+ tooltip: 'Delete',
2234
+ onClick: (button, context) => {
2235
+ var _a, _b;
2236
+ const eventInfo = {
2237
+ type: 'rowDeleted',
2238
+ rowNode: context.rowNode,
2239
+ adaptableApi: context.adaptableApi,
2240
+ };
2241
+ this.api.eventApi.emit('ActionRowSubmitted', eventInfo);
2242
+ (_b = (_a = this.adaptableOptions.actionOptions.actionRowFormOptions).onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
2243
+ },
2244
+ }
2245
+ : undefined;
2246
+ return button;
2247
2247
  })
2248
2248
  .filter(Boolean);
2249
2249
  if (!editButtons.length) {
@@ -12,6 +12,7 @@ export declare class agGridMenuHelper {
12
12
  createAgGridMenuDefFromAdaptableMenu(adaptableMenuItem: AdaptableMenuItem): MenuItemDef;
13
13
  createAgGridColumnMenuDefFromUserMenu(menuItem: UserMenuItem<ColumnMenuContext>, menuContext: ColumnMenuContext): MenuItemDef;
14
14
  createAgGridContextMenuDefFromUserMenu(menuItem: UserMenuItem<ContextMenuContext>, menuContext: ContextMenuContext): MenuItemDef;
15
+ private mapAdaptableIconToAgGridIcon;
15
16
  createAdaptableColumnMenuItemFromUserMenu(menuItem: UserMenuItem<ColumnMenuContext>, menuContext: ColumnMenuContext): AdaptableMenuItem;
16
17
  createAgGridColumnMenuItems(originalgetMainMenuItems: GetMainMenuItems, params: GetMainMenuItemsParams): (string | MenuItemDef)[] | undefined;
17
18
  createGroupedColumnMenuItem(): MenuItemDef | undefined;