@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,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Drawer = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const Drawer = (props) => {
7
+ const [isOpen, setIsOpen] = React.useState(() => {
8
+ return props.open;
9
+ });
10
+ const [show, setShow] = React.useState(props.open);
11
+ React.useEffect(() => {
12
+ // CLOSED -> OPEN
13
+ // SHOW Element, with closed class
14
+ // CHANGE class to opened
15
+ if (!isOpen && props.open) {
16
+ setShow(true);
17
+ requestAnimationFrame(() => {
18
+ setIsOpen(true);
19
+ });
20
+ }
21
+ // OPEN -> CLOSED
22
+ // CHANGE class to closed
23
+ // HIDE Element, when animation is finsihed
24
+ if (isOpen && !props.open) {
25
+ setIsOpen(false);
26
+ }
27
+ }, [props.open]);
28
+ const handleOnKeyDown = React.useCallback((event) => {
29
+ var _a;
30
+ // escape
31
+ if (event.key === 'Escape') {
32
+ (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, false);
33
+ }
34
+ }, []);
35
+ const handletransitionEnd = () => {
36
+ if (!isOpen) {
37
+ setShow(false);
38
+ }
39
+ };
40
+ if (!show) {
41
+ return null;
42
+ }
43
+ const style = {
44
+ position: 'fixed',
45
+ top: 0,
46
+ right: 0,
47
+ zIndex: 1000,
48
+ transition: 'transform 0.3s ease-in-out, opacity 0.3s ease-in-out',
49
+ };
50
+ if (isOpen) {
51
+ style.transform = 'translateY(0)';
52
+ style.opacity = 1;
53
+ }
54
+ else {
55
+ style.transform = 'translateY(-120%)';
56
+ style.opacity = 0;
57
+ }
58
+ return (React.createElement("div", { onKeyDown: handleOnKeyDown, style: style, onTransitionEnd: handletransitionEnd }, props.children));
59
+ };
60
+ exports.Drawer = Drawer;
@@ -51,10 +51,12 @@ function ExpressionEditor(props) {
51
51
  ? props.columns
52
52
  : props.columns.filter((c) => !props.api.columnApi.isCalculatedColumn(c.columnId));
53
53
  const getColValue = (column) => {
54
- return props.api.internalApi.getValueUsingField(data, column);
54
+ var _a;
55
+ return props.api.internalApi.getValueUsingField(data, (_a = column.field) !== null && _a !== void 0 ? _a : column.columnId);
55
56
  };
56
57
  const updateColValue = (rowData, column, newValue) => {
57
- const updatedRowData = props.api.internalApi.setValueUsingField(rowData, column, newValue);
58
+ var _a;
59
+ const updatedRowData = props.api.internalApi.setValueUsingField(rowData, (_a = column.field) !== null && _a !== void 0 ? _a : column.columnId, newValue);
58
60
  return Object.assign({}, updatedRowData);
59
61
  };
60
62
  const getColDateValue = (column) => {
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { AdaptableElementIcon, AdaptableCustomIcon, AdaptableIcon, AdaptableSystemIcon } from '../../PredefinedConfig/Common/AdaptableIcon';
3
+ export interface IconComponentProps {
4
+ icon: AdaptableIcon;
5
+ iconClassName?: string;
6
+ }
7
+ export declare const IconComponent: (props: IconComponentProps) => JSX.Element;
8
+ export declare const isAdaptableSystemIcon: (icon: unknown) => icon is AdaptableSystemIcon;
9
+ export declare const isAdaptableCustomIcon: (icon: unknown) => icon is AdaptableCustomIcon;
10
+ export declare const isAdaptableElementIcon: (icon: unknown) => icon is AdaptableElementIcon;
11
+ export declare const isAdaptableIcon: (icon: unknown) => icon is AdaptableIcon;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAdaptableIcon = exports.isAdaptableElementIcon = exports.isAdaptableExternalIcon = exports.isAdaptableInternalIcon = exports.AdaptableIconComponent = void 0;
3
+ exports.isAdaptableIcon = exports.isAdaptableElementIcon = exports.isAdaptableCustomIcon = exports.isAdaptableSystemIcon = exports.IconComponent = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const icons_1 = tslib_1.__importStar(require("../icons"));
7
7
  const join_1 = tslib_1.__importDefault(require("../utils/join"));
8
8
  const react_1 = require("react");
9
- const AdaptableIconComponent = (props) => {
9
+ const IconComponent = (props) => {
10
10
  var _a, _b, _c, _d, _e;
11
11
  const { icon, iconClassName } = props;
12
12
  if (!icon) {
@@ -38,10 +38,10 @@ const AdaptableIconComponent = (props) => {
38
38
  }
39
39
  };
40
40
  }, [icon]);
41
- if ((0, exports.isAdaptableInternalIcon)(icon) && icon.name in icons_1.default) {
41
+ if ((0, exports.isAdaptableSystemIcon)(icon) && icon.name in icons_1.default) {
42
42
  return (React.createElement(icons_1.Icon, { name: icon.name, size: icon.size, style: icon.style, className: className }));
43
43
  }
44
- if ((0, exports.isAdaptableExternalIcon)(icon)) {
44
+ if ((0, exports.isAdaptableCustomIcon)(icon)) {
45
45
  let width = (_b = (_a = icon.style) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : 'var(--ab-cmp-icon__width)';
46
46
  let height = (_d = (_c = icon.style) === null || _c === void 0 ? void 0 : _c.height) !== null && _d !== void 0 ? _d : 'var(--ab-cmp-icon__height)';
47
47
  const iconStyle = (_e = icon.style) !== null && _e !== void 0 ? _e : {};
@@ -52,15 +52,15 @@ const AdaptableIconComponent = (props) => {
52
52
  }
53
53
  return null;
54
54
  };
55
- exports.AdaptableIconComponent = AdaptableIconComponent;
56
- const isAdaptableInternalIcon = (icon) => {
55
+ exports.IconComponent = IconComponent;
56
+ const isAdaptableSystemIcon = (icon) => {
57
57
  return typeof (icon === null || icon === void 0 ? void 0 : icon.name) === 'string';
58
58
  };
59
- exports.isAdaptableInternalIcon = isAdaptableInternalIcon;
60
- const isAdaptableExternalIcon = (icon) => {
59
+ exports.isAdaptableSystemIcon = isAdaptableSystemIcon;
60
+ const isAdaptableCustomIcon = (icon) => {
61
61
  return typeof (icon === null || icon === void 0 ? void 0 : icon.src) === 'string';
62
62
  };
63
- exports.isAdaptableExternalIcon = isAdaptableExternalIcon;
63
+ exports.isAdaptableCustomIcon = isAdaptableCustomIcon;
64
64
  const isAdaptableElementIcon = (icon) => {
65
65
  return ((typeof HTMLElement === 'function' &&
66
66
  (icon === null || icon === void 0 ? void 0 : icon.element) instanceof HTMLElement) ||
@@ -68,6 +68,6 @@ const isAdaptableElementIcon = (icon) => {
68
68
  };
69
69
  exports.isAdaptableElementIcon = isAdaptableElementIcon;
70
70
  const isAdaptableIcon = (icon) => {
71
- return ((0, exports.isAdaptableInternalIcon)(icon) || (0, exports.isAdaptableExternalIcon)(icon) || (0, exports.isAdaptableElementIcon)(icon));
71
+ return ((0, exports.isAdaptableSystemIcon)(icon) || (0, exports.isAdaptableCustomIcon)(icon) || (0, exports.isAdaptableElementIcon)(icon));
72
72
  };
73
73
  exports.isAdaptableIcon = isAdaptableIcon;
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
6
  const rebass_1 = require("rebass");
7
7
  const AdaptableInput_1 = tslib_1.__importDefault(require("../../View/Components/AdaptableInput"));
8
- const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
8
+ const Icon_1 = require("../Icon");
9
9
  const icons_1 = tslib_1.__importStar(require("../icons"));
10
10
  const OverlayTrigger_1 = tslib_1.__importDefault(require("../OverlayTrigger"));
11
11
  const SimpleButton_1 = tslib_1.__importDefault(require("../SimpleButton"));
@@ -27,7 +27,7 @@ const IconSelector = (props) => {
27
27
  });
28
28
  const customIconsElements = (_a = props.customIcons) === null || _a === void 0 ? void 0 : _a.map((def) => {
29
29
  return (react_1.default.createElement(IconButton, { key: def.name, active: false, onClick: () => props.onChange(def.name) },
30
- react_1.default.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { key: def.name, icon: def.icon })));
30
+ react_1.default.createElement(Icon_1.IconComponent, { key: def.name, icon: def.icon })));
31
31
  });
32
32
  const popup = (react_1.default.createElement(rebass_1.Box, { className: "ab-IconSelector__Popup" },
33
33
  react_1.default.createElement(rebass_1.Box, { mb: 2 },
@@ -44,7 +44,7 @@ const IconSelector = (props) => {
44
44
  else {
45
45
  const icon = (_b = props.customIcons) === null || _b === void 0 ? void 0 : _b.find((def) => def.name === props.value);
46
46
  if (icon)
47
- value = react_1.default.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: icon.icon });
47
+ value = react_1.default.createElement(Icon_1.IconComponent, { icon: icon.icon });
48
48
  }
49
49
  return (react_1.default.createElement(rebass_1.Flex, { className: "ab-IconSelector" },
50
50
  react_1.default.createElement(OverlayTrigger_1.default, { preventPortalEventPropagation: false, render: () => popup, showEvent: "mouseenter", hideEvent: "mouseleave", hideDelay: 300 },
@@ -8,21 +8,21 @@ const join_1 = tslib_1.__importDefault(require("../utils/join"));
8
8
  const icons_1 = tslib_1.__importDefault(require("../icons"));
9
9
  const Tooltip_1 = tslib_1.__importDefault(require("../Tooltip"));
10
10
  const theme_1 = tslib_1.__importDefault(require("../../theme"));
11
- const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
11
+ const Icon_1 = require("../Icon");
12
12
  exports.baseClassName = 'ab-SimpleButton';
13
13
  const SimpleButton = React.forwardRef((props, theRef) => {
14
14
  var _a, _b;
15
15
  let { children, disabled, variant = 'outlined', tone = 'neutral', iconPosition = 'start', iconSize, className, icon, tooltip, accessLevel: accessLevel, type } = props, buttonProps = tslib_1.__rest(props, ["children", "disabled", "variant", "tone", "iconPosition", "iconSize", "className", "icon", "tooltip", "accessLevel", "type"]);
16
- let adaptableInternalIcon;
17
- if ((0, AdaptableIconComponent_1.isAdaptableInternalIcon)(icon)) {
18
- adaptableInternalIcon = icon;
16
+ let adaptableSystemIcon;
17
+ if ((0, Icon_1.isAdaptableSystemIcon)(icon)) {
18
+ adaptableSystemIcon = icon;
19
19
  }
20
20
  if (typeof icon === 'string' && icons_1.default[icon]) {
21
- adaptableInternalIcon = { name: icon };
21
+ adaptableSystemIcon = { name: icon };
22
22
  }
23
- if (adaptableInternalIcon) {
23
+ if (adaptableSystemIcon) {
24
24
  const iconProps = {
25
- icon: adaptableInternalIcon,
25
+ icon: adaptableSystemIcon,
26
26
  };
27
27
  if (iconSize) {
28
28
  iconProps.icon = Object.assign(Object.assign({}, iconProps.icon), { size: iconSize });
@@ -30,10 +30,10 @@ const SimpleButton = React.forwardRef((props, theRef) => {
30
30
  if (typeof buttonProps.color === 'string') {
31
31
  iconProps.icon = Object.assign(Object.assign({}, iconProps.icon), { style: { color: buttonProps.color } });
32
32
  }
33
- icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, Object.assign({}, iconProps));
33
+ icon = React.createElement(Icon_1.IconComponent, Object.assign({}, iconProps));
34
34
  }
35
- if ((0, AdaptableIconComponent_1.isAdaptableExternalIcon)(icon) || (0, AdaptableIconComponent_1.isAdaptableElementIcon)(icon)) {
36
- icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: icon });
35
+ if ((0, Icon_1.isAdaptableCustomIcon)(icon) || (0, Icon_1.isAdaptableElementIcon)(icon)) {
36
+ icon = React.createElement(Icon_1.IconComponent, { icon: icon });
37
37
  }
38
38
  if (icon) {
39
39
  children =
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { AdaptableInternalIconName } from '../../types';
2
+ import { AdaptableSystemIconName } from '../../types';
3
3
  export declare type ToggleProps = {
4
4
  onPressedChange: (pressed: boolean) => void;
5
5
  pressed?: boolean;
6
- icon?: AdaptableInternalIconName;
6
+ icon?: AdaptableSystemIconName;
7
7
  };
8
8
  export declare const Toggle: React.FunctionComponent<React.PropsWithChildren<ToggleProps>>;
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Toggle = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
6
+ const Icon_1 = require("../Icon");
7
7
  const join_1 = tslib_1.__importDefault(require("../utils/join"));
8
8
  const Toggle = (_a) => {
9
9
  var { onPressedChange, pressed, icon, children } = _a, rest = tslib_1.__rest(_a, ["onPressedChange", "pressed", "icon", "children"]);
10
10
  const baseClassName = 'ab-Toggle';
11
11
  return (React.createElement("button", Object.assign({}, rest, { className: (0, join_1.default)(baseClassName, pressed && `${baseClassName}--pressed`), onClick: () => onPressedChange(!pressed) }),
12
- icon && React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: { name: icon } }),
12
+ icon && React.createElement(Icon_1.IconComponent, { icon: { name: icon } }),
13
13
  children));
14
14
  };
15
15
  exports.Toggle = Toggle;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props, { viewBox: "0 0 612 792" }),
7
+ React.createElement("path", { d: "M545.58,533.27V271.23L334.25,393.24c0.13,1.11,0.65,2.07,0.65,3.22c0,13.13-8.85,23.8-20.8,27.43v243.03 L545.58,533.27L545.58,533.27z" }),
8
+ React.createElement("path", { d: "M328.46,378.97l208.38-120.31v-0.65L305.79,126L74.74,258.01v0.65l208.38,120.31 c5.32-6.89,13.29-11.62,22.67-11.62C315.17,367.34,323.14,372.08,328.46,378.97L328.46,378.97z" }),
9
+ React.createElement("path", { d: "M277.33,393.24L66,271.23v262.04l231.48,133.64V423.88c-11.94-3.63-20.8-14.3-20.8-27.43 C276.68,395.31,277.2,394.35,277.33,393.24L277.33,393.24z" })));
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { CSSProperties } from 'react';
3
3
  import { IconProps } from './DefaultIcon';
4
- import { AdaptableExternalIcon, AdaptableInternalIcon, AdaptableInternalIconName } from '../../PredefinedConfig/Common/AdaptableIcon';
5
- declare const allIcons: Record<AdaptableInternalIconName, React.FunctionComponent<IconProps>>;
4
+ import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptableSystemIconName } from '../../PredefinedConfig/Common/AdaptableIcon';
5
+ declare const allIcons: Record<AdaptableSystemIconName, React.FunctionComponent<IconProps>>;
6
6
  export declare const Icon: ({ name, style, className, tabIndex, ...props }: {
7
7
  style?: React.CSSProperties;
8
- name: AdaptableInternalIconName;
8
+ name: AdaptableSystemIconName;
9
9
  size?: number;
10
10
  className?: string;
11
11
  tabIndex?: number;
12
12
  props?: React.SVGProps<SVGElement>;
13
13
  }) => JSX.Element;
14
- export declare const iconToString: (icon: AdaptableInternalIcon | AdaptableExternalIcon, style?: CSSProperties) => string;
14
+ export declare const iconToString: (icon: AdaptableSystemIcon | AdaptableCustomIcon, style?: CSSProperties) => string;
15
15
  export default allIcons;
@@ -27,6 +27,7 @@ const call_1 = tslib_1.__importDefault(require("./call"));
27
27
  const justify_1 = tslib_1.__importDefault(require("./justify"));
28
28
  const error_1 = tslib_1.__importDefault(require("./error"));
29
29
  const export_1 = tslib_1.__importDefault(require("./export"));
30
+ const fdc3_1 = tslib_1.__importDefault(require("./fdc3"));
30
31
  const campaign_1 = tslib_1.__importDefault(require("./campaign"));
31
32
  const build_1 = tslib_1.__importDefault(require("./build"));
32
33
  const warning_1 = tslib_1.__importDefault(require("./warning"));
@@ -144,7 +145,7 @@ const instrument_1 = tslib_1.__importDefault(require("./instrument"));
144
145
  const analysis_1 = tslib_1.__importDefault(require("./analysis"));
145
146
  const visibility_1 = tslib_1.__importDefault(require("./visibility"));
146
147
  const visibility_off_1 = tslib_1.__importDefault(require("./visibility-off"));
147
- const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
148
+ const Icon_1 = require("../Icon");
148
149
  const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
149
150
  const allIcons = {
150
151
  search: query_1.default,
@@ -187,8 +188,8 @@ const allIcons = {
187
188
  assignment: state_management_1.default,
188
189
  clipboard: tool_panel_1.default,
189
190
  'traffic-lights': system_status_1.default,
190
- 'add': add_row_1.default,
191
- 'downloaded': updated_row_1.default,
191
+ add: add_row_1.default,
192
+ downloaded: updated_row_1.default,
192
193
  // others
193
194
  edit: edit_1.default,
194
195
  undo: undo_1.default,
@@ -226,7 +227,7 @@ const allIcons = {
226
227
  'sort-desc': sort_desc_1.default,
227
228
  logout: logout_1.default,
228
229
  'import-export': import_export_1.default,
229
- 'paperclip': attach_file_1.default,
230
+ paperclip: attach_file_1.default,
230
231
  info: info_1.default,
231
232
  'cloud-upload': cloud_upload_1.default,
232
233
  upload: upload_1.default,
@@ -265,7 +266,7 @@ const allIcons = {
265
266
  'not-contains': not_contains_1.default,
266
267
  contains: contains_1.default,
267
268
  regex: regex_1.default,
268
- 'target': track_changes_1.default,
269
+ target: track_changes_1.default,
269
270
  menu: menu_1.default,
270
271
  statusbar: statusbar_1.default,
271
272
  dashboard: dashboard_1.default,
@@ -287,7 +288,8 @@ const allIcons = {
287
288
  'case-lower': case_lower_1.default,
288
289
  'case-upper': case_upper_1.default,
289
290
  'case-sentence': case_sentence_1.default,
290
- flag: cell_validation_1.default, // original icon is flag,
291
+ flag: cell_validation_1.default,
292
+ fdc3: fdc3_1.default,
291
293
  };
292
294
  Object.keys(allIcons).forEach((name) => {
293
295
  const ReactCmp = allIcons[name];
@@ -307,7 +309,7 @@ const iconToString = (icon, style) => {
307
309
  if (!icon) {
308
310
  return;
309
311
  }
310
- return ReactDOMServer.renderToString(React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: Object.assign(Object.assign({}, icon), { style: Object.assign(Object.assign({}, icon.style), style) }) }));
312
+ return ReactDOMServer.renderToString(React.createElement(Icon_1.IconComponent, { icon: Object.assign(Object.assign({}, icon), { style: Object.assign(Object.assign({}, icon.style), style) }) }));
311
313
  };
312
314
  exports.iconToString = iconToString;
313
315
  exports.default = allIcons;