@adaptabletools/adaptable 16.0.0-canary.2 → 16.0.0-canary.4

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 (189) hide show
  1. package/README.md +2 -0
  2. package/base.css +62 -54
  3. package/base.css.map +1 -1
  4. package/bundle.cjs.js +159 -159
  5. package/index.css +82 -70
  6. package/index.css.map +1 -1
  7. package/package.json +10 -2
  8. package/publishTimestamp.d.ts +1 -1
  9. package/publishTimestamp.js +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +5 -1
  11. package/src/AdaptableOptions/ActionRowOptions.d.ts +8 -5
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +9 -4
  13. package/src/AdaptableOptions/ColumnOptions.d.ts +1 -10
  14. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +6 -2
  15. package/src/AdaptableOptions/Fdc3Options.d.ts +150 -0
  16. package/src/AdaptableOptions/Fdc3Options.js +5 -0
  17. package/src/AdaptableOptions/FilterOptions.d.ts +1 -0
  18. package/src/AdaptableOptions/FinancePluginOptions.d.ts +9 -9
  19. package/src/AdaptableOptions/FormatColumnOptions.d.ts +7 -7
  20. package/src/AdaptableOptions/GroupingOptions.d.ts +6 -11
  21. package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +1 -1
  22. package/src/AdaptableOptions/QuickSearchOptions.d.ts +1 -1
  23. package/src/AdaptableOptions/TeamSharingOptions.d.ts +5 -0
  24. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +21 -11
  25. package/src/Api/AdaptableApi.d.ts +7 -2
  26. package/src/Api/ColumnApi.d.ts +18 -7
  27. package/src/Api/DataChangeHistoryApi.d.ts +6 -0
  28. package/src/Api/EventApi.d.ts +22 -9
  29. package/src/Api/Events/ChexboxColumnClicked.d.ts +1 -0
  30. package/src/Api/Events/ScheduleTriggered.d.ts +11 -0
  31. package/src/Api/Events/ThemeChanged.d.ts +0 -6
  32. package/src/Api/Events/ThemeEdited.d.ts +11 -0
  33. package/src/Api/Events/ThemeEdited.js +2 -0
  34. package/src/Api/Fdc3Api.d.ts +83 -0
  35. package/src/Api/Fdc3Api.js +2 -0
  36. package/src/Api/FinanceApi.d.ts +12 -12
  37. package/src/Api/Implementation/ActionRowApiImpl.js +7 -5
  38. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  39. package/src/Api/Implementation/AdaptableApiImpl.js +3 -0
  40. package/src/Api/Implementation/ApiBase.d.ts +4 -0
  41. package/src/Api/Implementation/ApiBase.js +6 -0
  42. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  43. package/src/Api/Implementation/ChartingApiImpl.js +4 -0
  44. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -1
  45. package/src/Api/Implementation/ColumnApiImpl.js +22 -3
  46. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  47. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  48. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +26 -0
  49. package/src/Api/Implementation/Fdc3ApiImpl.js +79 -0
  50. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
  51. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  52. package/src/Api/Implementation/PredicateApiImpl.d.ts +5 -5
  53. package/src/Api/Implementation/PredicateApiImpl.js +8 -8
  54. package/src/Api/Implementation/QuickSearchApiImpl.d.ts +2 -0
  55. package/src/Api/Implementation/QuickSearchApiImpl.js +7 -0
  56. package/src/Api/Implementation/ScheduleApiImpl.d.ts +4 -0
  57. package/src/Api/Implementation/ScheduleApiImpl.js +5 -0
  58. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +0 -3
  59. package/src/Api/Implementation/StyledColumnApiImpl.js +0 -26
  60. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  61. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -0
  62. package/src/Api/Internal/AdaptableInternalApi.d.ts +5 -3
  63. package/src/Api/Internal/AdaptableInternalApi.js +18 -12
  64. package/src/Api/Internal/AlertInternalApi.js +7 -2
  65. package/src/Api/Internal/Fdc3InternalApi.d.ts +11 -0
  66. package/src/Api/Internal/Fdc3InternalApi.js +72 -0
  67. package/src/Api/Internal/FilterInternalApi.js +8 -4
  68. package/src/Api/Internal/FormatColumnInternalApi.js +11 -13
  69. package/src/Api/Internal/ScheduleInternalApi.d.ts +8 -0
  70. package/src/Api/Internal/ScheduleInternalApi.js +20 -0
  71. package/src/Api/Internal/StyledColumnInternalApi.d.ts +5 -2
  72. package/src/Api/Internal/StyledColumnInternalApi.js +29 -2
  73. package/src/Api/Internal/UserInterfaceInternalApi.d.ts +5 -0
  74. package/src/Api/Internal/UserInterfaceInternalApi.js +18 -0
  75. package/src/Api/OptionsApi.d.ts +6 -1
  76. package/src/Api/PredicateApi.d.ts +5 -5
  77. package/src/Api/QuickSearchApi.d.ts +8 -0
  78. package/src/Api/StyledColumnApi.d.ts +0 -14
  79. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  80. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +7 -7
  81. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +8 -15
  82. package/src/PredefinedConfig/Common/AdaptablePredicate.js +65 -41
  83. package/src/PredefinedConfig/Common/{FDC3Context.d.ts → FDC3Context_DEPR.d.ts} +19 -19
  84. package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +2 -0
  85. package/src/PredefinedConfig/Common/Fdc3Context.d.ts +53 -0
  86. package/src/PredefinedConfig/Common/Fdc3Context.js +35 -0
  87. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +68 -0
  88. package/src/PredefinedConfig/Common/Fdc3Intent.js +75 -0
  89. package/src/PredefinedConfig/Common/Types.d.ts +2 -2
  90. package/src/PredefinedConfig/StyledColumnState.d.ts +3 -2
  91. package/src/PredefinedConfig/SystemState.d.ts +3 -0
  92. package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
  93. package/src/Redux/ActionsReducers/SystemRedux.d.ts +17 -6
  94. package/src/Redux/ActionsReducers/SystemRedux.js +33 -3
  95. package/src/Redux/Store/AdaptableStore.js +3 -4
  96. package/src/Strategy/AdaptableModuleBase.d.ts +6 -6
  97. package/src/Strategy/Fdc3Module.d.ts +13 -0
  98. package/src/Strategy/Fdc3Module.js +85 -0
  99. package/src/Strategy/FlashingCellModule.js +6 -2
  100. package/src/Strategy/Interface/IModule.d.ts +2 -2
  101. package/src/Strategy/ScheduleModule.js +3 -2
  102. package/src/Strategy/StyledColumnModule.js +24 -15
  103. package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
  104. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -0
  105. package/src/Utilities/Constants/ModuleConstants.js +5 -2
  106. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -3
  107. package/src/Utilities/MenuItem.d.ts +4 -4
  108. package/src/Utilities/Services/Fdc3Service.d.ts +20 -0
  109. package/src/Utilities/Services/Fdc3Service.js +87 -0
  110. package/src/Utilities/Services/MetamodelService.js +5 -1
  111. package/src/Utilities/Services/ModuleService.js +1 -1
  112. package/src/Utilities/Services/QueryLanguageService.js +1 -1
  113. package/src/Utilities/Services/RowEditService.js +1 -1
  114. package/src/Utilities/Services/TeamSharingService.d.ts +2 -0
  115. package/src/Utilities/Services/TeamSharingService.js +60 -3
  116. package/src/Utilities/Services/ValidationService.js +6 -2
  117. package/src/View/AdaptableView.js +9 -7
  118. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableConfig.d.ts +9 -0
  119. package/src/View/Charting/useChartingElements.js +1 -1
  120. package/src/View/Components/AdaptableButton/index.d.ts +3 -0
  121. package/src/View/Components/AdaptableButton/index.js +18 -0
  122. package/src/View/Components/AdaptableIconComponent/index.d.ts +7 -0
  123. package/src/View/Components/AdaptableIconComponent/index.js +16 -0
  124. package/src/View/Components/AdaptableIconComponent/useCustomIcon.d.ts +2 -0
  125. package/src/View/Components/AdaptableIconComponent/useCustomIcon.js +12 -0
  126. package/src/{components → View/Components}/Badge/index.d.ts +1 -1
  127. package/src/{components → View/Components}/Badge/index.js +1 -1
  128. package/src/View/Components/FilterForm/FilterForm.js +1 -1
  129. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  130. package/src/View/Components/FilterForm/QuickFilterForm.js +3 -2
  131. package/src/View/Components/Panels/PanelWithButton.d.ts +2 -2
  132. package/src/View/Components/Panels/PanelWithImage.d.ts +3 -3
  133. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +1 -1
  134. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +2 -3
  135. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  136. package/src/View/Components/PredicateEditor/PredicateEditor.js +4 -4
  137. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -2
  138. package/src/View/Dashboard/Dashboard.js +3 -3
  139. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -0
  140. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +13 -7
  141. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -1
  142. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
  143. package/src/View/DataChangeHistory/buildActionColumnButton.js +9 -2
  144. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  145. package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.d.ts +2 -0
  146. package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +26 -0
  147. package/src/View/QuickSearch/QuickSearchInput.d.ts +6 -0
  148. package/src/View/QuickSearch/QuickSearchInput.js +22 -0
  149. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +2 -5
  150. package/src/View/QuickSearch/QuickSearchViewPanel.js +5 -19
  151. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -2
  152. package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
  153. package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +1 -5
  154. package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +2 -9
  155. package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +0 -1
  156. package/src/View/UIHelper.d.ts +2 -2
  157. package/src/agGrid/ActionColumnRenderer.d.ts +0 -2
  158. package/src/agGrid/ActionColumnRenderer.js +21 -6
  159. package/src/agGrid/Adaptable.d.ts +7 -2
  160. package/src/agGrid/Adaptable.js +82 -37
  161. package/src/agGrid/BadgeRenderer.js +19 -20
  162. package/src/agGrid/CheckboxRenderer.js +1 -1
  163. package/src/agGrid/agGridHelper.js +4 -0
  164. package/src/agGrid/agGridMenuHelper.js +11 -4
  165. package/src/agGrid/attachAddaptableColumnTypes.d.ts +1 -0
  166. package/src/agGrid/attachAddaptableColumnTypes.js +5 -4
  167. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  168. package/src/components/Drawer/index.d.ts +6 -0
  169. package/src/components/Drawer/index.js +60 -0
  170. package/src/components/ExpressionEditor/index.js +4 -2
  171. package/src/components/Icon/index.d.ts +11 -0
  172. package/src/components/{AdaptableIconComponent → Icon}/index.js +10 -10
  173. package/src/components/IconSelector/IconSelector.js +3 -3
  174. package/src/components/SimpleButton/index.js +10 -10
  175. package/src/components/Toggle/Toggle.d.ts +2 -2
  176. package/src/components/Toggle/Toggle.js +2 -2
  177. package/src/components/icons/fdc3.d.ts +3 -0
  178. package/src/components/icons/fdc3.js +9 -0
  179. package/src/components/icons/index.d.ts +4 -4
  180. package/src/components/icons/index.js +9 -7
  181. package/src/metamodel/adaptable.metamodel.d.ts +117 -47
  182. package/src/metamodel/adaptable.metamodel.js +1 -1
  183. package/src/types.d.ts +9 -5
  184. package/version.d.ts +1 -1
  185. package/version.js +1 -1
  186. package/src/View/Components/AdaptableViewIcon/index.d.ts +0 -10
  187. package/src/View/Components/AdaptableViewIcon/index.js +0 -18
  188. package/src/components/AdaptableIconComponent/index.d.ts +0 -11
  189. /package/src/{PredefinedConfig/Common/FDC3Context.js → Api/Events/ScheduleTriggered.js} +0 -0
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCustomIcon = void 0;
4
+ const AdaptableContext_1 = require("../../AdaptableContext");
5
+ const useCustomIcon = (icon) => {
6
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
7
+ if (!icon) {
8
+ return icon;
9
+ }
10
+ return adaptable.api.userInterfaceApi.internalApi.prepareAdaptableIconDef(icon);
11
+ };
12
+ exports.useCustomIcon = useCustomIcon;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { AdaptableIcon, AdaptableStyle } from '../../types';
2
+ import { AdaptableIcon, AdaptableStyle } from '../../../types';
3
3
  export interface BadgeProps {
4
4
  adaptableStyle: AdaptableStyle;
5
5
  icon?: AdaptableIcon;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Badge = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
6
+ const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
7
7
  const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
8
8
  const Badge = (props) => {
9
9
  const { iconPosition = 'start', icon: iconProps } = props;
@@ -125,7 +125,7 @@ class FilterFormComponent extends React.Component {
125
125
  const filterOptions = this.props.api.optionsApi.getFilterOptions();
126
126
  const predicateDefs = this.props.api.filterApi
127
127
  .getFilterPredicateDefsForColumn(this.props.currentColumn)
128
- .filter((predicate) => !predicate.onlyQuickFilter);
128
+ .filter((predicate) => predicate.id !== 'BooleanToggle');
129
129
  let uiSelectedColumnValues = ((_b = (_a = this.state.editedColumnFilter) === null || _a === void 0 ? void 0 : _a.Predicate) === null || _b === void 0 ? void 0 : _b.PredicateId) === 'Values'
130
130
  ? this.state.editedColumnFilter.Predicate.Inputs
131
131
  : [];
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const ListGroupItem_1 = tslib_1.__importDefault(require("../../../components/List/ListGroupItem"));
7
7
  const ListGroup_1 = tslib_1.__importDefault(require("../../../components/List/ListGroup"));
8
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
8
+ const Icon_1 = require("../../../components/Icon");
9
9
  class ListBoxMenu extends React.Component {
10
10
  constructor(props) {
11
11
  super(props);
@@ -14,7 +14,7 @@ class ListBoxMenu extends React.Component {
14
14
  render() {
15
15
  let menuItems = this.props.MenuItems.map((menuItem, index) => {
16
16
  return (React.createElement(ListGroupItem_1.default, { key: index, onClick: () => this.onClick(menuItem) },
17
- menuItem.icon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: menuItem.icon }),
17
+ menuItem.icon && React.createElement(Icon_1.IconComponent, { icon: menuItem.icon }),
18
18
  menuItem.label));
19
19
  });
20
20
  return (React.createElement("div", { style: divStyle },
@@ -16,8 +16,9 @@ const AdaptableInput_1 = tslib_1.__importDefault(require("../AdaptableInput"));
16
16
  const renderWithAdaptableContext_1 = require("../../renderWithAdaptableContext");
17
17
  const CheckBox_1 = require("../../../components/CheckBox");
18
18
  const getDefaultColumnFilterPredicate_1 = require("./getDefaultColumnFilterPredicate");
19
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
19
+ const Icon_1 = require("../../../components/Icon");
20
20
  const QuickFilterValues_1 = require("./QuickFilterValues");
21
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
21
22
  class QuickFilterFormComponent extends React.Component {
22
23
  constructor(props) {
23
24
  super(props);
@@ -113,7 +114,7 @@ class QuickFilterFormComponent extends React.Component {
113
114
  if ('text' in predicateDef.icon) {
114
115
  return React.createElement("span", null, predicateDef.icon.text);
115
116
  }
116
- if ((0, AdaptableIconComponent_1.isAdaptableIcon)(predicateDef.icon)) {
117
+ if ((0, Icon_1.isAdaptableIcon)(predicateDef.icon)) {
117
118
  return React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: predicateDef.icon });
118
119
  }
119
120
  }
@@ -1,7 +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
+ import { AdaptableSystemIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
5
5
  export interface PanelWithButtonProps extends PanelProps {
6
6
  buttonContent?: React.ReactNode;
7
7
  buttonClick?: () => void;
@@ -11,7 +11,7 @@ export interface PanelWithButtonProps extends PanelProps {
11
11
  headerProps?: BoxProps & {
12
12
  'data-name': string;
13
13
  };
14
- glyphicon?: AdaptableInternalIconName;
14
+ glyphicon?: AdaptableSystemIconName;
15
15
  buttonDisabled?: boolean;
16
16
  buttonStyle?: string;
17
17
  borderRadius?: string;
@@ -1,10 +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
+ import { AdaptableSystemIconName } from '../../../PredefinedConfig/Common/AdaptableIcon';
5
5
  export interface PanelWithImageProps extends PanelProps {
6
- glyphicon?: AdaptableInternalIconName;
7
- icon?: AdaptableInternalIconName;
6
+ glyphicon?: AdaptableSystemIconName;
7
+ icon?: AdaptableSystemIconName;
8
8
  infoLink?: string;
9
9
  infoLinkDisabled?: boolean;
10
10
  borderRadius?: string;
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
7
  const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
8
8
  const useGlobalEvent_1 = require("../../../../components/utils/useGlobalEvent");
9
- const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
9
+ const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
10
10
  const Navigation = (props) => {
11
11
  const dispatch = (0, react_redux_1.useDispatch)();
12
12
  const handleKeyPress = React.useCallback((event) => {
@@ -4,9 +4,8 @@ exports.TopBar = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const icons_1 = require("../../../../components/icons");
8
7
  const AdaptableContext_1 = require("../../../AdaptableContext");
9
- const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
8
+ const AdaptableIconComponent_1 = require("../../AdaptableIconComponent");
10
9
  const TopBar = (props) => {
11
10
  var _a;
12
11
  const baseClassName = 'ab-Adaptable-Popup__TopBar';
@@ -15,7 +14,7 @@ const TopBar = (props) => {
15
14
  let icon = React.createElement(React.Fragment, null);
16
15
  const iconClassName = `${baseClassName}__Icon`;
17
16
  if (props.icon === 'ConfigurationIcon') {
18
- icon = React.createElement(icons_1.Icon, { className: iconClassName, name: "settings" });
17
+ icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { iconClassName: iconClassName, icon: { name: 'settings' } });
19
18
  }
20
19
  else if (props.icon === 'ApplicationIcon' && applicationIcon) {
21
20
  icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: applicationIcon, iconClassName: iconClassName });
@@ -10,7 +10,7 @@ const Dialog_1 = tslib_1.__importDefault(require("../../../components/Dialog"));
10
10
  const AdaptableFormComponent_1 = require("../../../components/AdaptableFormComponent");
11
11
  const react_1 = require("react");
12
12
  const AdaptableContext_1 = require("../../AdaptableContext");
13
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
13
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
14
14
  const AdaptablePopupAlert = (props) => {
15
15
  var _a;
16
16
  const messageType = props.adaptableAlert.alertDefinition.MessageType || 'Error';
@@ -4,13 +4,13 @@ exports.PredicateEditor = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
7
+ const Icon_1 = require("../../../components/Icon");
8
8
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
9
9
  const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
10
- const icons_1 = require("../../../components/icons");
11
10
  const Tag_1 = require("../../../components/Tag");
12
11
  const AdaptableInput_1 = tslib_1.__importDefault(require("../AdaptableInput"));
13
12
  const PermittedValuesSelector_1 = require("../PermittedValuesSelector");
13
+ const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
14
14
  const isValuesPredicateDef = (colDef) => colDef && ['Values', 'ExcludeValues'].includes(colDef.id);
15
15
  const PredicateEditor = (props) => {
16
16
  var _a, _b, _c;
@@ -40,8 +40,8 @@ const PredicateEditor = (props) => {
40
40
  const currentPredicateDef = (_b = props === null || props === void 0 ? void 0 : props.predicateDefs) === null || _b === void 0 ? void 0 : _b.find((item) => { var _a; return item.id === ((_a = props.predicate) === null || _a === void 0 ? void 0 : _a.PredicateId); });
41
41
  let icon = null;
42
42
  if (currentPredicateDef) {
43
- if ((0, AdaptableIconComponent_1.isAdaptableInternalIcon)(currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
44
- icon = React.createElement(icons_1.Icon, { name: currentPredicateDef.icon.name });
43
+ if ((0, Icon_1.isAdaptableSystemIcon)(currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
44
+ icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: currentPredicateDef.icon });
45
45
  }
46
46
  else if ((currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon) && 'text' in (currentPredicateDef === null || currentPredicateDef === void 0 ? void 0 : currentPredicateDef.icon)) {
47
47
  icon = React.createElement("span", null, currentPredicateDef.icon.text);
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_1 = require("react");
7
7
  const PanelDashboard_1 = require("../Components/Panels/PanelDashboard");
8
- const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
9
8
  const AdaptableContext_1 = require("../AdaptableContext");
9
+ const AdaptableButton_1 = require("../Components/AdaptableButton");
10
10
  const CustomToolbarWrapper = (props) => {
11
11
  let contentsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__contents';
12
12
  let buttonsDivId = 'ab-CustomToolbar__' + props.customToolbar.name + '__buttons';
@@ -97,7 +97,7 @@ const CustomToolbarWrapper = (props) => {
97
97
  const disabled = button.disabled && button.disabled(button, dashboardContext);
98
98
  let buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'outlined';
99
99
  let buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'neutral';
100
- 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, className: (buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || '', onClick: () => {
100
+ return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { style: { marginLeft: index ? 'var(--ab-space-1)' : 0 }, key: index, disabled: disabled, tooltip: buttonTooltip, icon: buttonIcon, variant: buttonVariant, tone: buttonTone, className: (buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || '', onClick: () => {
101
101
  button.onClick ? button.onClick(button, dashboardContext) : null;
102
102
  setTimeout(() => {
103
103
  // mutate state to force a re-rendering
@@ -10,7 +10,6 @@ const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
10
10
  const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
11
11
  const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
12
12
  const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
13
- const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
14
13
  const rebass_1 = require("rebass");
15
14
  const Dashboard_1 = require("../../components/Dashboard");
16
15
  const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
@@ -20,7 +19,8 @@ const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
20
19
  const ModuleToolbarWrapper_1 = require("./ModuleToolbarWrapper");
21
20
  const CustomToolbarWrapper_1 = require("./CustomToolbarWrapper");
22
21
  const CustomDashboardButton_1 = require("./CustomDashboardButton");
23
- const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
22
+ const AdaptableIconComponent_1 = require("../Components/AdaptableIconComponent");
23
+ const AdaptableButton_1 = require("../Components/AdaptableButton");
24
24
  const DashboardComponent = (props) => {
25
25
  const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
26
26
  const dashboardAccessLevel = props.api.internalApi
@@ -80,7 +80,7 @@ const DashboardComponent = (props) => {
80
80
  var _a, _b, _c;
81
81
  let menuItem = props.GridState.ModuleButtonMenuItems.find((y) => y.isVisible && y.module == x);
82
82
  if (menuItem) {
83
- return (React.createElement(SimpleButton_1.default, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
83
+ return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { "data-name": `dashboard-module-button-${(_a = menuItem.module) !== null && _a !== void 0 ? _a : 'custom-' + index}`, key: menuItem.label, variant: menuItem.module === 'SystemStatus' ? 'outlined' : 'text', tone: menuItem.module === 'SystemStatus' ? 'neutral' : 'none', className: `ab-DashboardToolbar__Home__${(0, kebabCase_1.default)(menuItem.label)}`, icon: menuItem.icon, tooltip: menuItem.label, disabled: props.accessLevel == 'ReadOnly', onClick: () => props.dispatch(menuItem.reduxAction), accessLevel: 'Full', style: menuItem.module === 'SystemStatus'
84
84
  ? Object.assign(Object.assign({}, UIHelper_1.default.getStyleForMessageType((_c = (_b = props.api.systemStatusApi.getCurrentSystemStatusMessageInfo()) === null || _b === void 0 ? void 0 : _b.statusType) !== null && _c !== void 0 ? _c : 'Success')), { border: 0 }) : {} }));
85
85
  }
86
86
  });
@@ -12,5 +12,6 @@ export interface DataChangeHistoryGridProps {
12
12
  agGridContainerId: string;
13
13
  changeHistoryLog: Record<string, CellDataChangedInfo>;
14
14
  onUndoChange: (changeKey: string) => void;
15
+ onClearRow: (changeKey: string) => void;
15
16
  }
16
17
  export declare const DataChangeHistoryGrid: (props: DataChangeHistoryGridProps) => JSX.Element;
@@ -9,7 +9,7 @@ const usePrevious_1 = tslib_1.__importDefault(require("../../components/utils/us
9
9
  const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
10
10
  const buildActionColumnButton_1 = require("./buildActionColumnButton");
11
11
  const DataChangeHistoryGrid = (props) => {
12
- const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange } = props;
12
+ const { changeHistoryLog, adaptableContainerId, agGridContainerId, onUndoChange, onClearRow } = props;
13
13
  const mainAdaptableInstance = (0, AdaptableContext_1.useAdaptable)();
14
14
  const [_adaptableApi, setAdaptableApi] = (0, react_1.useState)(null);
15
15
  const adaptableApiRef = (0, react_1.useRef)(null);
@@ -22,14 +22,15 @@ const DataChangeHistoryGrid = (props) => {
22
22
  (0, react_1.useEffect)(() => {
23
23
  const initializeAdaptableGrid = async () => {
24
24
  const gridOptions = buildGridOptions(mainAdaptableInstance, changeHistoryLog);
25
- const adaptableOptions = buildAdaptableOptions(mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange);
26
- const agGridOptions = {
25
+ const adaptableOptions = buildAdaptableOptions(mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange, onClearRow);
26
+ const modules = mainAdaptableInstance.getAgGridRegisteredModules();
27
+ const agGridConfig = {
27
28
  gridOptions,
28
- modules: mainAdaptableInstance.getAgGridRegisteredModules(),
29
+ modules: modules,
29
30
  };
30
31
  // to avoid direct dependency to Adaptable.ts and thus creating a circular dependency;
31
32
  const adaptableInitFn = Object.getPrototypeOf(mainAdaptableInstance).constructor.init;
32
- const dataChangeHistoryAdaptableApi = await adaptableInitFn(adaptableOptions, agGridOptions);
33
+ const dataChangeHistoryAdaptableApi = await adaptableInitFn(adaptableOptions, agGridConfig);
33
34
  setAdaptableApi(dataChangeHistoryAdaptableApi);
34
35
  };
35
36
  initializeAdaptableGrid();
@@ -76,7 +77,7 @@ const DataChangeHistoryGrid = (props) => {
76
77
  return React.createElement(React.Fragment, null);
77
78
  };
78
79
  exports.DataChangeHistoryGrid = DataChangeHistoryGrid;
79
- const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange) => {
80
+ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableContainerId, agGridContainerId, undoChangeEnabled, onUndoChange, onClearRow) => {
80
81
  var _a, _b, _c;
81
82
  const mainAdaptableOptions = mainAdaptableInstance.adaptableOptions;
82
83
  const mainAdaptableTheme = mainAdaptableInstance.api.themeApi.getCurrentTheme();
@@ -85,7 +86,12 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
85
86
  const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
86
87
  changeKey && onUndoChange(changeKey);
87
88
  };
88
- const actionColumnButton = (0, buildActionColumnButton_1.buildActionColumnButton)((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, mainAdaptableInstance.api, undoRowNode);
89
+ const clearRow = (rowNode) => {
90
+ const rowData = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data;
91
+ const changeKey = rowData === null || rowData === void 0 ? void 0 : rowData['changeKey'];
92
+ changeKey && onClearRow(changeKey);
93
+ };
94
+ const actionColumnButton = (0, buildActionColumnButton_1.buildActionColumnButton)((_a = mainAdaptableInstance.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataChangeHistoryOptions, mainAdaptableInstance.api, undoRowNode, clearRow);
89
95
  let actionColumnOptions = undefined;
90
96
  if (actionColumnButton) {
91
97
  actionColumnOptions = {
@@ -52,6 +52,12 @@ class DataChangeHistoryPopupComponent extends React.Component {
52
52
  this.props.api.dataChangeHistoryApi.undoDataChangeHistoryEntry(changeToBeUndone);
53
53
  }
54
54
  };
55
+ const handleClearRow = (changeKey) => {
56
+ const changeToBeUndone = this.props.changeHistoryLog[changeKey];
57
+ if (changeToBeUndone) {
58
+ this.props.api.dataChangeHistoryApi.clearDataChangeHistoryEntry(changeToBeUndone);
59
+ }
60
+ };
55
61
  const currentAgGridTheme = this.props.api.themeApi.getAgGridCurrentThemeName();
56
62
  return (React.createElement(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
57
63
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup", flexDirection: "column", style: { height: '100%' } },
@@ -65,7 +71,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
65
71
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup--grid", "data-name": 'data-change-history--grid', flex: 1, alignSelf: 'stretch', flexDirection: 'column' },
66
72
  React.createElement("div", { id: adaptableContainerId }),
67
73
  React.createElement("div", { id: agGridContainerId, className: currentAgGridTheme, style: { height: '100%' } }),
68
- React.createElement(DataChangeHistoryGrid_1.DataChangeHistoryGrid, { adaptableContainerId: adaptableContainerId, agGridContainerId: agGridContainerId, changeHistoryLog: this.props.changeHistoryLog, onUndoChange: handleChangeUndo })))));
74
+ React.createElement(DataChangeHistoryGrid_1.DataChangeHistoryGrid, { adaptableContainerId: adaptableContainerId, agGridContainerId: agGridContainerId, changeHistoryLog: this.props.changeHistoryLog, onUndoChange: handleChangeUndo, onClearRow: handleClearRow })))));
69
75
  }
70
76
  }
71
77
  function mapStateToProps(state, ownProps) {
@@ -1,3 +1,3 @@
1
1
  import { IRowNode } from '@ag-grid-community/core';
2
2
  import { ActionColumnContext, AdaptableApi, AdaptableButton, DataChangeHistoryOptions } from '../../types';
3
- export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, parentAdapTableApi: AdaptableApi, undoRowNode: (rowNode: IRowNode) => void) => AdaptableButton<ActionColumnContext<any>>[];
3
+ export declare const buildActionColumnButton: (options: DataChangeHistoryOptions, parentAdapTableApi: AdaptableApi, undoRowNode: (rowNode: IRowNode) => void, clearRow: (rowNode: IRowNode) => void) => AdaptableButton<ActionColumnContext<any>>[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildActionColumnButton = void 0;
4
- const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
4
+ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode, clearRow) => {
5
5
  let changeHistoryButtons = options.changeHistoryButton;
6
6
  if (!changeHistoryButtons ||
7
7
  (Array.isArray(changeHistoryButtons) && changeHistoryButtons.length === 0)) {
@@ -25,9 +25,13 @@ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
25
25
  undoRowNode(rowNode);
26
26
  }
27
27
  };
28
+ const onClearRow = (context) => {
29
+ const rowNode = context.rowNode;
30
+ clearRow(rowNode);
31
+ };
28
32
  const buildContext = (context) => {
29
33
  const dataChangedInfo = context.rowNode.data.changeInfo;
30
- return Object.assign(Object.assign({}, context), { isGroupNode: isGroupNode(context), undoDataChange: () => onUndo(context), dataChangedInfo,
34
+ return Object.assign(Object.assign({}, context), { isGroupNode: isGroupNode(context), undoDataChange: () => onUndo(context), clearRow: () => onClearRow(context), dataChangedInfo,
31
35
  parentAdapTableApi });
32
36
  };
33
37
  return changeHistoryButtons.map((actionColumnOption) => ({
@@ -59,6 +63,9 @@ const buildActionColumnButton = (options, parentAdapTableApi, undoRowNode) => {
59
63
  if (actionColumnOption.action === 'undo') {
60
64
  onUndo(buildContext(context));
61
65
  }
66
+ if (actionColumnOption.action === 'clear') {
67
+ onClearRow(buildContext(context));
68
+ }
62
69
  if (typeof actionColumnOption.onClick === 'function') {
63
70
  actionColumnOption.onClick(button, buildContext(context));
64
71
  }
@@ -40,7 +40,7 @@ const FormatColumnSettingsWizardSection = (props) => {
40
40
  props.onChange(Object.assign(Object.assign({}, data), { IncludeGroupedRows }));
41
41
  };
42
42
  return (React.createElement(Tabs_1.Tabs, null,
43
- React.createElement(Tabs_1.Tabs.Tab, null, "Format"),
43
+ React.createElement(Tabs_1.Tabs.Tab, null, "Settings"),
44
44
  React.createElement(Tabs_1.Tabs.Content, null,
45
45
  React.createElement(rebass_1.Flex, { flexDirection: "row" },
46
46
  React.createElement(FormLayout_1.default, null,
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const QuickSearchDrawer: React.FunctionComponent;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuickSearchDrawer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const react_redux_1 = require("react-redux");
7
+ const rebass_1 = require("rebass");
8
+ const index_1 = require("../../../components/Drawer/index");
9
+ const SystemRedux_1 = require("../../../Redux/ActionsReducers/SystemRedux");
10
+ const AdaptableContext_1 = require("../../AdaptableContext");
11
+ const QuickSearchInput_1 = require("../QuickSearchInput");
12
+ const QuickSearchDrawer = () => {
13
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
14
+ const isOpen = (0, react_redux_1.useSelector)((state) => (0, SystemRedux_1.SystemQuickSearchFloatingVisibilitySelector)(state.System));
15
+ return (React.createElement(index_1.Drawer, { open: isOpen, onOpenChange: (open) => {
16
+ if (open) {
17
+ adaptable.api.quickSearchApi.showFloatingQuickSearch();
18
+ }
19
+ else {
20
+ adaptable.api.quickSearchApi.hideFloatingQuickSearch();
21
+ }
22
+ } },
23
+ React.createElement(rebass_1.Flex, { className: "ab-FloatinQuickSearch" },
24
+ React.createElement(QuickSearchInput_1.QuickSearchInput, { autoFocus: true }))));
25
+ };
26
+ exports.QuickSearchDrawer = QuickSearchDrawer;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface QuickSearchInputProps {
3
+ className?: string;
4
+ autoFocus?: boolean;
5
+ }
6
+ export declare const QuickSearchInput: React.FunctionComponent<QuickSearchInputProps>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuickSearchInput = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const react_redux_1 = require("react-redux");
7
+ const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
8
+ const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
9
+ const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
10
+ const AdaptableContext_1 = require("../AdaptableContext");
11
+ const QuickSearchInput = (props) => {
12
+ const adaptable = (0, AdaptableContext_1.useAdaptable)();
13
+ const QuickSearchText = (0, react_redux_1.useSelector)((state) => state.QuickSearch.QuickSearchText);
14
+ const dispatch = (0, react_redux_1.useDispatch)();
15
+ const onRunQuickSearch = (newQuickSearchText) => dispatch(QuickSearchRedux.QuickSearchRun(newQuickSearchText));
16
+ const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)({
17
+ QuickSearchText,
18
+ onRunQuickSearch,
19
+ });
20
+ return (react_1.default.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", autoFocus: props.autoFocus, placeholder: adaptable.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: props.className, value: searchText, OnTextChange: search, style: { height: '100%' }, inputStyle: { width: '7rem' } }));
21
+ };
22
+ exports.QuickSearchInput = QuickSearchInput;
@@ -1,8 +1,5 @@
1
- /// <reference types="react" />
2
1
  import { ViewPanelProps } from '../Components/SharedProps/ViewPanelProps';
3
- import * as QuickSearchRedux from '../../Redux/ActionsReducers/QuickSearchRedux';
2
+ import * as React from 'react';
4
3
  export interface QuickSearchViewPanelComponentProps extends ViewPanelProps {
5
- onRunQuickSearch: (quickSearchText: string) => QuickSearchRedux.QuickSearchRunAction;
6
- QuickSearchText: string;
7
4
  }
8
- export declare const QuickSearchViewPanelControl: import("react-redux").ConnectedComponent<(props: QuickSearchViewPanelComponentProps) => JSX.Element, import("react-redux").Omit<QuickSearchViewPanelComponentProps, "api" | "accessLevel" | "moduleInfo" | "QuickSearchText" | "onRunQuickSearch" | "viewType">>;
5
+ export declare const QuickSearchViewPanelControl: React.FunctionComponent<QuickSearchViewPanelComponentProps>;
@@ -2,24 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.QuickSearchViewPanelControl = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const QuickSearchRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QuickSearchRedux"));
6
- const useQuickSearchDebounced_1 = require("./useQuickSearchDebounced");
7
- const AdaptableFormControlTextClear_1 = require("../Components/Forms/AdaptableFormControlTextClear");
8
- const react_redux_1 = require("react-redux");
9
5
  const React = tslib_1.__importStar(require("react"));
10
- const QuickSearchViewPanelComponent = (props) => {
11
- const [searchText, search] = (0, useQuickSearchDebounced_1.useQuickSearchDebounced)(props);
12
- const elementType = props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
13
- return (React.createElement(AdaptableFormControlTextClear_1.AdaptableFormControlTextClear, { type: "text", placeholder: props.api.optionsApi.getQuickSearchOptions().quickSearchPlaceholder, className: `ab-${elementType}__QuickSearch__text`, value: searchText, OnTextChange: search, style: { height: '100%' }, inputStyle: { width: '7rem' } }));
6
+ const QuickSearchInput_1 = require("./QuickSearchInput");
7
+ const QuickSearchViewPanelControl = (props) => {
8
+ let elementType = props.viewType === 'ToolPanel' ? 'DashboardToolbar' : 'ToolPanel';
9
+ return React.createElement(QuickSearchInput_1.QuickSearchInput, { className: `ab-${elementType}__QuickSearch__text` });
14
10
  };
15
- function mapStateToProps(state) {
16
- return {
17
- QuickSearchText: state.QuickSearch.QuickSearchText,
18
- };
19
- }
20
- function mapDispatchToProps(dispatch) {
21
- return {
22
- onRunQuickSearch: (newQuickSearchText) => dispatch(QuickSearchRedux.QuickSearchRun(newQuickSearchText)),
23
- };
24
- }
25
- exports.QuickSearchViewPanelControl = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(QuickSearchViewPanelComponent);
11
+ exports.QuickSearchViewPanelControl = QuickSearchViewPanelControl;
@@ -39,13 +39,13 @@ const ScheduleSettingsReminder = (props) => {
39
39
  React.createElement(Tabs_1.Tabs.Content, null,
40
40
  React.createElement(FormLayout_1.default, null,
41
41
  React.createElement(FormLayout_1.FormRow, { label: "Header" },
42
- React.createElement(Input_1.default, { "data-name": "header", width: 300, onChange: handleHeaderChange, placeholder: "Enter Reminder Header (optional)", type: "string", value: (_a = props.reminderSchedule) === null || _a === void 0 ? void 0 : _a.Header })),
42
+ React.createElement(Input_1.default, { "data-name": "header", width: 300, onChange: handleHeaderChange, placeholder: "Enter Reminder Header", type: "string", value: (_a = props.reminderSchedule) === null || _a === void 0 ? void 0 : _a.Header })),
43
43
  React.createElement(FormLayout_1.FormRow, { label: "Message" },
44
44
  React.createElement(Input_1.default, { "data-name": "message", width: 300, onChange: handleMessageChange, placeholder: "Enter Reminder Message", type: "string", value: (_b = props.reminderSchedule) === null || _b === void 0 ? void 0 : _b.Message })),
45
45
  React.createElement(FormLayout_1.FormRow, { label: "Type" },
46
46
  React.createElement(DropdownButton_1.default, { "data-name": "message-type", style: { width: 300 }, columns: ['label'], placeholder: "Select Option", items: messageTypes }, ((_c = props.reminderSchedule) === null || _c === void 0 ? void 0 : _c.MessageType) || 'Select Option')),
47
47
  React.createElement(FormLayout_1.FormRow, { label: "" },
48
- React.createElement(CheckBox_1.CheckBox, { "data-name": "display-notification", checked: (_d = props.reminderSchedule) === null || _d === void 0 ? void 0 : _d.DisplayNotification, onChange: handleDisplayNotificationChange }, "Show the Reminder as an Alert")),
48
+ React.createElement(CheckBox_1.CheckBox, { "data-name": "display-notification", checked: (_d = props.reminderSchedule) === null || _d === void 0 ? void 0 : _d.DisplayNotification, onChange: handleDisplayNotificationChange }, "Show the Reminder as a Notification")),
49
49
  React.createElement(FormLayout_1.FormRow, { label: "" },
50
50
  React.createElement(CheckBox_1.CheckBox, { "data-name": "display-system-status", checked: (_e = props.reminderSchedule) === null || _e === void 0 ? void 0 : _e.DisplaySystemStatusMessage, onChange: handleDisplaySystemStatusChange }, "Display a System Status Message")))))));
51
51
  };
@@ -4,8 +4,6 @@ exports.StyledColumnBadgeSection = exports.renderBadgeSummary = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const AdaptableIconComponent_1 = require("../../../components/AdaptableIconComponent");
8
- const Badge_1 = require("../../../components/Badge");
9
7
  const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
10
8
  const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
11
9
  const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
@@ -19,6 +17,8 @@ const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEdi
19
17
  const StyleComponent_1 = require("../../Components/StyleComponent");
20
18
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
21
19
  const StyledColumnBadgePreview_1 = require("./StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview");
20
+ const Badge_1 = require("../../Components/Badge");
21
+ const AdaptableIconComponent_1 = require("../../Components/AdaptableIconComponent");
22
22
  const BadgeEditor = (props) => {
23
23
  var _a, _b;
24
24
  const { api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
@@ -33,11 +33,7 @@ const StyledColumnWizardColumnSection = (props) => {
33
33
  sortableColumns = api.columnApi.getBooleanColumns();
34
34
  }
35
35
  else if (data.SparkLineStyle) {
36
- sortableColumns = [
37
- ...api.columnApi.getNumberArrayColumns(),
38
- ...api.columnApi.getTupleNumberArrayColumns(),
39
- ...api.columnApi.getObjectNumberArrayColumns(),
40
- ];
36
+ sortableColumns = api.columnApi.getNumericArrayColumns();
41
37
  }
42
38
  else if (data.BadgeStyle) {
43
39
  sortableColumns = [...api.columnApi.getNumericColumns(), ...api.columnApi.getStringColumns()];
@@ -4,9 +4,9 @@ exports.StyledColumnBadgePreview = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const Badge_1 = require("../../../../../components/Badge");
8
7
  const Tag_1 = require("../../../../../components/Tag");
9
8
  const AdaptableContext_1 = require("../../../../AdaptableContext");
9
+ const Badge_1 = require("../../../../Components/Badge");
10
10
  const StyledColumnBadgePreview = ({ data }) => {
11
11
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
12
12
  const badgeStyle = data.BadgeStyle;
@@ -21,15 +21,8 @@ const StyledColumnBadgePreview = ({ data }) => {
21
21
  const predicateStr = badge.Predicate
22
22
  ? adaptable.api.predicateApi.predicateToString(badge.Predicate)
23
23
  : 'No Predicate';
24
- let icon = badge.Icon;
25
- const customIcon = badge.Icon &&
26
- 'name' in badge.Icon &&
27
- adaptable.api.userInterfaceApi.getCustomIconDefinition(badge.Icon.name);
28
- if (customIcon) {
29
- icon = customIcon;
30
- }
31
24
  return (React.createElement(rebass_1.Box, { mb: 1, key: index },
32
- React.createElement(Badge_1.Badge, { icon: icon, adaptableStyle: badge.Style, iconPosition: badge.IconPosition }, value),
25
+ React.createElement(Badge_1.Badge, { icon: badge.Icon, adaptableStyle: badge.Style, iconPosition: badge.IconPosition }, value),
33
26
  React.createElement(Tag_1.Tag, { ml: 2 }, predicateStr)));
34
27
  })));
35
28
  };
@@ -74,7 +74,6 @@ const StyledColumnWizardTypeSection = (props) => {
74
74
  React.createElement(Tabs_1.Tabs.Content, null,
75
75
  React.createElement(TypeRadio_1.TypeRadio, { text: "Gradient", description: "Colour each cell in the column using a gradient value (Numeric Columns)", checked: Boolean(data.GradientStyle), onClick: () => handleTypeChange('gradient') }),
76
76
  React.createElement(TypeRadio_1.TypeRadio, { text: "Percent Bar", description: "Display a coloured bar where the width is based on the cell (Numeric Columns)", checked: Boolean(data.PercentBarStyle), onClick: () => handleTypeChange('percent') }),
77
- React.createElement(TypeRadio_1.TypeRadio, { text: "Check Box", description: "Display a checkbox (Boolean Columns)", checked: Boolean(data.CheckBoxStyle), onClick: () => handleTypeChange('checkbox') }),
78
77
  adaptable.api.styledColumnApi.canDisplaySparklines() && (React.createElement(TypeRadio_1.TypeRadio, { text: "Sparkline", description: "Render the column as a Sparkline (Numeric Array Columns)", checked: Boolean(data.SparkLineStyle), onClick: () => handleTypeChange('sparkline') })),
79
78
  React.createElement(TypeRadio_1.TypeRadio, { text: "Badge", description: "Display the column's values as Badges (All Columns)", checked: Boolean(data.BadgeStyle), onClick: () => handleTypeChange('badge') })))));
80
79
  };
@@ -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, AdaptableInternalIconName, AdaptableOptions } from '../types';
6
+ import { AdaptableColumnDataType, AdaptableSystemIconName, 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): AdaptableInternalIconName;
39
+ export declare function getGlyphByMessageType(messageType: AdaptableMessageType): AdaptableSystemIconName;
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;
@@ -1,8 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
3
- import { ActionColumn } from '../types';
4
3
  interface ActionColumnCellRendererParams extends ICellRendererParams {
5
- actionColumn?: ActionColumn;
6
4
  }
7
5
  export declare const ReactActionColumnRenderer: (props: ActionColumnCellRendererParams) => JSX.Element;
8
6
  export declare class ActionColumnRenderer implements ICellRendererComp {