@adaptabletools/adaptable-cjs 18.0.0-canary.17 → 18.0.0-canary.19

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 (55) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
  3. package/src/AdaptableOptions/CommentOptions.d.ts +9 -6
  4. package/src/AdaptableOptions/GroupingOptions.d.ts +0 -7
  5. package/src/AdaptableOptions/NoteOptions.d.ts +4 -4
  6. package/src/Api/Events/GridDataChanged.d.ts +1 -1
  7. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  8. package/src/Api/Implementation/ApiBase.js +3 -0
  9. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +1 -0
  10. package/src/Api/Internal/ColumnFilterInternalApi.js +12 -0
  11. package/src/Api/Internal/GridFilterInternalApi.d.ts +5 -0
  12. package/src/Api/Internal/GridFilterInternalApi.js +6 -0
  13. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +1 -5
  14. package/src/PredefinedConfig/Common/Menu.d.ts +9 -4
  15. package/src/PredefinedConfig/Common/Menu.js +62 -36
  16. package/src/PredefinedConfig/NoteState.d.ts +1 -1
  17. package/src/Redux/Store/AdaptableStore.js +25 -10
  18. package/src/Strategy/AdaptableModuleBase.d.ts +5 -5
  19. package/src/Strategy/AdaptableModuleBase.js +3 -3
  20. package/src/Strategy/AlertModule.js +1 -1
  21. package/src/Strategy/CalculatedColumnModule.js +1 -1
  22. package/src/Strategy/ColumnFilterModule.d.ts +1 -1
  23. package/src/Strategy/ColumnFilterModule.js +44 -41
  24. package/src/Strategy/ColumnInfoModule.js +2 -2
  25. package/src/Strategy/CommentModule.js +7 -16
  26. package/src/Strategy/CustomSortModule.js +1 -1
  27. package/src/Strategy/DashboardModule.js +8 -8
  28. package/src/Strategy/DataImportModule.js +1 -1
  29. package/src/Strategy/ExportModule.js +3 -3
  30. package/src/Strategy/Fdc3Module.js +1 -1
  31. package/src/Strategy/FlashingCellModule.js +4 -4
  32. package/src/Strategy/FormatColumnModule.js +6 -6
  33. package/src/Strategy/FreeTextColumnModule.js +1 -1
  34. package/src/Strategy/GridInfoModule.js +2 -2
  35. package/src/Strategy/LayoutModule.js +13 -13
  36. package/src/Strategy/NoteModule.js +8 -11
  37. package/src/Strategy/PlusMinusModule.js +1 -1
  38. package/src/Strategy/SettingsPanelModule.js +3 -3
  39. package/src/Strategy/StyledColumnModule.js +13 -10
  40. package/src/Strategy/SystemStatusModule.js +1 -1
  41. package/src/Utilities/MenuItem.d.ts +7 -7
  42. package/src/View/Comments/CommentsEditor.js +7 -6
  43. package/src/View/Comments/CommentsPopup.js +2 -1
  44. package/src/View/Components/Selectors/PermittedValuesSelector.js +1 -1
  45. package/src/View/Note/NotePopup.js +5 -3
  46. package/src/agGrid/AdaptableAgGrid.js +0 -20
  47. package/src/agGrid/defaultAdaptableOptions.js +0 -1
  48. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
  49. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  50. package/src/components/Select/Select.d.ts +1 -1
  51. package/src/components/Select/Select.js +1 -1
  52. package/src/env.js +2 -2
  53. package/src/metamodel/adaptable.metamodel.d.ts +13 -16
  54. package/src/metamodel/adaptable.metamodel.js +1 -1
  55. package/tsconfig.cjs.tsbuildinfo +1 -1
@@ -49,6 +49,9 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
49
49
  styledColumn = Object.assign(Object.assign({}, ObjectFactory_1.default.CreateEmptyStyledColumn()), { ColumnId: column.columnId, SparkLineStyle: {} });
50
50
  }
51
51
  let label = hasSparklineStyle ? 'Edit ' : 'Create ';
52
+ let name = hasSparklineStyle
53
+ ? 'styled-column-sparkline-edit'
54
+ : 'styled-column-sparkline-add';
52
55
  let popupParam = {
53
56
  action: sparklineColumnExists ? 'Edit' : 'New',
54
57
  source: 'ColumnMenu',
@@ -57,7 +60,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
57
60
  defaultCurrentSectionName: 'Settings',
58
61
  },
59
62
  };
60
- returnColumnMenuItems.push(this.createColumnMenuItemShowPopup('styled-column-sparkline', label + 'Sparkline Column', this.moduleInfo.Popup, this.getGlyphForStyledColumn(styledColumn), popupParam));
63
+ returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label + 'Sparkline Column', this.moduleInfo.Popup, this.getGlyphForStyledColumn(styledColumn), popupParam));
61
64
  }
62
65
  }
63
66
  // Next do non sparkline
@@ -83,7 +86,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
83
86
  const icon = this.getGlyphForStyledColumn(styledColumn);
84
87
  const label = `Edit ${this.getTypeLabel(styledColumn)} Style`;
85
88
  const name = this.getTypeName(styledColumn);
86
- returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(name, label, this.moduleInfo.Popup, icon, popupParam));
89
+ returnColumnMenuItems.push(this.createMenuItemShowPopup(name, label, this.moduleInfo.Popup, icon, popupParam));
87
90
  }
88
91
  }
89
92
  else {
@@ -95,7 +98,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
95
98
  config: {},
96
99
  };
97
100
  const badgeLabel = column.dataType === 'Number' ? 'Badge' : 'Create Badge Style';
98
- const newBadgeButton = this.createColumnMenuItemShowPopup('styled-column-badge', badgeLabel, this.moduleInfo.Popup, 'badge', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { BadgeStyle: {
101
+ const newBadgeButton = this.createMenuItemShowPopup('styled-column-badge-add', badgeLabel, this.moduleInfo.Popup, 'badge', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { BadgeStyle: {
99
102
  Badges: [ObjectFactory_1.default.CreateDefaultStyledColumnBadge()],
100
103
  } }), config: {
101
104
  defaultCurrentSectionName: 'Badges',
@@ -107,18 +110,18 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
107
110
  const emptyRanges = this.api.scopeApi.createCellColorRangesForScope({
108
111
  ColumnIds: [column.columnId],
109
112
  });
110
- const newGrandientButton = this.createColumnMenuItemShowPopup('styled-column-gradient', 'Gradient', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
113
+ const newGrandientButton = this.createMenuItemShowPopup('styled-column-gradient-add', 'Gradient', this.moduleInfo.Popup, 'gradient', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { GradientStyle: {
111
114
  CellRanges: emptyRanges,
112
115
  } }), config: {
113
116
  defaultCurrentSectionName: 'Style',
114
117
  } }));
115
- const newPrecentBarButton = this.createColumnMenuItemShowPopup('styled-column-percent-bar', 'Percent Bar', this.moduleInfo.Popup, 'percent', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { PercentBarStyle: {
118
+ const newPrecentBarButton = this.createMenuItemShowPopup('styled-column-percent-bar-add', 'Percent Bar', this.moduleInfo.Popup, 'percent', Object.assign(Object.assign({}, popupParam), { value: Object.assign(Object.assign({}, newStyledColumn), { PercentBarStyle: {
116
119
  CellRanges: emptyRanges,
117
120
  } }), config: {
118
121
  defaultCurrentSectionName: 'Style',
119
122
  } }));
120
123
  returnColumnMenuItems.push({
121
- name: 'styled-column',
124
+ name: 'parent',
122
125
  label: 'Create Styled Column',
123
126
  module: this.moduleInfo.ModuleName,
124
127
  isVisible: true,
@@ -239,16 +242,16 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
239
242
  getTypeName(styledColumn) {
240
243
  let type = null;
241
244
  if (styledColumn.GradientStyle) {
242
- type = 'styled-column-gradient';
245
+ type = 'styled-column-gradient-edit';
243
246
  }
244
247
  else if (styledColumn.PercentBarStyle) {
245
- type = 'styled-column-percent-bar';
248
+ type = 'styled-column-percent-bar-edit';
246
249
  }
247
250
  else if (styledColumn.SparkLineStyle) {
248
- type = 'styled-column-sparkline';
251
+ type = 'styled-column-sparkline-edit';
249
252
  }
250
253
  else if (styledColumn.BadgeStyle) {
251
- type = 'styled-column-badge';
254
+ type = 'styled-column-badge-edit';
252
255
  }
253
256
  return type;
254
257
  }
@@ -12,7 +12,7 @@ class SystemStatusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
12
  addColumnMenuItems(column) {
13
13
  if (this.isModuleAvailable()) {
14
14
  return [
15
- this.createColumnMenuItemShowPopup('system-status-show', 'Show System Status', this.moduleInfo.Popup, this.moduleInfo.Glyph),
15
+ this.createMenuItemShowPopup('system-status-show', 'Show System Status', this.moduleInfo.Popup, this.moduleInfo.Glyph),
16
16
  ];
17
17
  }
18
18
  }
@@ -1,11 +1,11 @@
1
1
  import * as Redux from 'redux';
2
2
  import { ModuleParams } from '../View/Components/SharedProps/ModuleViewPopupProps';
3
- import { AdaptableMenuItem, AdaptableMenuItemName } from '../PredefinedConfig/Common/Menu';
3
+ import { AdaptableMenuItem, AdaptableContextMenuItemName, AdaptableColumnMenuItemName } from '../PredefinedConfig/Common/Menu';
4
4
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
5
5
  import { AdaptableIcon, AdaptableSystemIconName } from '../PredefinedConfig/Common/AdaptableIcon';
6
6
  export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
7
- constructor(name: AdaptableMenuItemName, label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableSystemIconName, isVisible: boolean);
8
- name: AdaptableMenuItemName;
7
+ constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, reduxAction: Redux.Action, icon: AdaptableSystemIconName, isVisible: boolean);
8
+ name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
9
9
  reduxAction: Redux.Action;
10
10
  label: string;
11
11
  module: AdaptableModule;
@@ -13,8 +13,8 @@ export declare class MenuItemDoReduxAction implements AdaptableMenuItem {
13
13
  icon: AdaptableIcon;
14
14
  }
15
15
  export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
16
- constructor(name: AdaptableMenuItemName, label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableSystemIconName, isVisible: boolean);
17
- name: AdaptableMenuItemName;
16
+ constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, clickFunction: () => void, icon: AdaptableSystemIconName, isVisible: boolean);
17
+ name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
18
18
  onClick: () => void;
19
19
  label: string;
20
20
  module: AdaptableModule;
@@ -22,8 +22,8 @@ export declare class MenuItemDoClickFunction implements AdaptableMenuItem {
22
22
  icon: AdaptableIcon;
23
23
  }
24
24
  export declare class MenuItemShowPopup implements AdaptableMenuItem {
25
- constructor(name: AdaptableMenuItemName, label: string, module: AdaptableModule, componentName: string, icon: AdaptableSystemIconName, isVisible: boolean, popupParams?: ModuleParams);
26
- name: AdaptableMenuItemName;
25
+ constructor(name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName, label: string, module: AdaptableModule, componentName: string, icon: AdaptableSystemIconName, isVisible: boolean, popupParams?: ModuleParams);
26
+ name: AdaptableColumnMenuItemName | AdaptableContextMenuItemName;
27
27
  reduxAction: Redux.Action;
28
28
  label: string;
29
29
  module: AdaptableModule;
@@ -28,6 +28,7 @@ const CommentsEditor = (props) => {
28
28
  return adaptable.api.optionsApi.getUserName();
29
29
  }, []);
30
30
  const commentThread = (0, react_redux_1.useSelector)((state) => CommentsRedux.GetCellCommentSelector(state.Comment, cellAddress));
31
+ const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Comment') === 'ReadOnly';
31
32
  const [activeEditingComment, setActiveEditingComment] = React.useState(() => {
32
33
  /**
33
34
  * When opening the popup and there is only one comment, we want to open it in edit mode.
@@ -62,14 +63,14 @@ const CommentsEditor = (props) => {
62
63
  React.createElement(rebass_1.Box, { fontSize: 3, fontWeight: "bold" }, (_d = comment === null || comment === void 0 ? void 0 : comment.Author) === null || _d === void 0 ? void 0 : _d.UserName),
63
64
  comment.Timestamp && (React.createElement(rebass_1.Box, { fontSize: 2 }, (0, dateUtils_1.formatDate)(comment.Timestamp, 'MM.DD.YYYY HH:mm')))),
64
65
  React.createElement(rebass_1.Box, { flex: 1 }),
65
- React.createElement(SimpleButton_1.default, { variant: "text", icon: "edit", disabled: !isOwnComment, onClick: () => setActiveEditingComment(comment.Uuid) }),
66
- React.createElement(SimpleButton_1.default, { variant: "text", icon: "delete", disabled: !isOwnComment, onClick: () => {
66
+ React.createElement(SimpleButton_1.default, { variant: "text", icon: "edit", disabled: !isOwnComment || isReadOnlyModule, onClick: () => setActiveEditingComment(comment.Uuid) }),
67
+ React.createElement(SimpleButton_1.default, { variant: "text", icon: "delete", disabled: !isOwnComment || isReadOnlyModule, onClick: () => {
67
68
  adaptable.api.commentApi.deleteComment(comment, cellAddress);
68
69
  requestAnimationFrame(() => {
69
70
  props.onRefreshContent();
70
71
  });
71
72
  } })),
72
- React.createElement(rebass_1.Box, { onClick: () => setActiveEditingComment(comment.Uuid) }, comment.Uuid === activeEditingComment ? (React.createElement(AdaptableInput_1.default, { autoFocus: true, width: "100%", defaultValue: comment.Value, onBlur: () => {
73
+ React.createElement(rebass_1.Box, { onClick: () => setActiveEditingComment(comment.Uuid) }, comment.Uuid === activeEditingComment ? (React.createElement(AdaptableInput_1.default, { autoFocus: true, width: "100%", defaultValue: comment.Value, disabled: isReadOnlyModule, onBlur: () => {
73
74
  if (comment.Uuid === activeEditingComment) {
74
75
  setActiveEditingComment(null);
75
76
  }
@@ -77,7 +78,7 @@ const CommentsEditor = (props) => {
77
78
  adaptable.api.commentApi.editComment(Object.assign(Object.assign({}, comment), { Value: event.target.value }), cellAddress);
78
79
  } })) : (React.createElement(rebass_1.Text, null, comment.Value)))));
79
80
  }),
80
- React.createElement(AdaptableInput_1.default, { autoFocus: !comments || comments.length === 0, value: newCommentText, onChange: (event) => {
81
+ React.createElement(AdaptableInput_1.default, { autoFocus: !comments || comments.length === 0, value: newCommentText, disabled: isReadOnlyModule, onChange: (event) => {
81
82
  setNewCommentText(event.target.value);
82
83
  }, onKeyDown: (event) => {
83
84
  if (event.key === 'Enter') {
@@ -87,7 +88,7 @@ const CommentsEditor = (props) => {
87
88
  props.onRefreshContent();
88
89
  });
89
90
  }
90
- }, mt: 2, mb: "2", width: "100%", placeholder: "Write new comment" }),
91
+ }, mt: 2, mb: "2", width: "100%", placeholder: "Write new Comment" }),
91
92
  React.createElement(SimpleButton_1.default, { width: "100%", variant: "raised", onClick: () => {
92
93
  adaptable.api.settingsPanelApi.openSettingsPanel('Comment');
93
94
  adaptable.api.internalApi.getCellPopupService().hidePopup();
@@ -95,6 +96,6 @@ const CommentsEditor = (props) => {
95
96
  React.createElement(rebass_1.Box, { mr: 2 },
96
97
  React.createElement(icons_1.Icon, { name: "folder" })),
97
98
  ' ',
98
- "Open all comments")));
99
+ "Open all Comments")));
99
100
  };
100
101
  exports.CommentsEditor = CommentsEditor;
@@ -19,6 +19,7 @@ const tableDOMProps = {
19
19
  };
20
20
  const CellComments = (props) => {
21
21
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
22
+ const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Comment') === 'ReadOnly';
22
23
  const columnsMap = React.useMemo(() => {
23
24
  const columns = {
24
25
  author: {
@@ -69,7 +70,7 @@ const CellComments = (props) => {
69
70
  PrimaryKeyValue: props.commentThread.PrimaryKeyValue,
70
71
  }, true);
71
72
  } }),
72
- React.createElement(AdaptableButton_1.AdaptableButtonComponent, { icon: "delete", variant: "text", onClick: () => {
73
+ React.createElement(AdaptableButton_1.AdaptableButtonComponent, { icon: "delete", disabled: isReadOnlyModule, variant: "text", onClick: () => {
73
74
  adaptable.api.commentApi.deleteCommentThread(props.commentThread);
74
75
  } })) },
75
76
  React.createElement(InfiniteTable_1.DataSource, { data: props.commentThread.Comments, primaryKey: "Uuid" },
@@ -68,6 +68,6 @@ const PermittedValuesSelector = function (props) {
68
68
  handleSingleValueChange(value);
69
69
  }
70
70
  };
71
- return (React.createElement(Select_1.Select, { isMulti: props.isMulti, className: props.className, disabled: props.disabled, "data-name": "permitted-values-selector", placeholder: props.placeholder || (props.allowNewValues ? 'Select or type new value' : 'Select value'), isCreatable: isCreatable, isClearable: true, options: options, isLoding: isLoading, onInputChange: setFilter, onChange: handleOnChange, value: props.value }));
71
+ return (React.createElement(Select_1.Select, { isMulti: props.isMulti, className: props.className, disabled: props.disabled, "data-name": "permitted-values-selector", placeholder: props.placeholder || (props.allowNewValues ? 'Select or type new value' : 'Select value'), isCreatable: isCreatable, isClearable: true, options: options, isLoading: isLoading, onInputChange: setFilter, onChange: handleOnChange, value: props.value }));
72
72
  };
73
73
  exports.PermittedValuesSelector = PermittedValuesSelector;
@@ -20,6 +20,7 @@ const NotePopup = (props) => {
20
20
  const adaptable = (0, AdaptableContext_1.useAdaptable)();
21
21
  const primaryKeyHeader = adaptable.api.columnApi.getFriendlyNameForColumnId(adaptable.api.columnApi.getPrimaryKeyColumn().columnId);
22
22
  const allNotes = (0, react_redux_1.useSelector)((state) => (0, NoteRedux_1.GetAllNotesSelector)(state.Note));
23
+ const isReadOnlyModule = adaptable.api.entitlementApi.getEntitlementAccessLevelForModule('Note') === 'ReadOnly';
23
24
  const columnsMap = React.useMemo(() => {
24
25
  const columns = {
25
26
  primaryKey: {
@@ -36,19 +37,20 @@ const NotePopup = (props) => {
36
37
  text: {
37
38
  field: 'Text',
38
39
  header: 'Text',
39
- defaultEditable: true,
40
+ defaultEditable: !isReadOnlyModule,
40
41
  defaultFlex: 3,
41
42
  },
42
43
  timestamp: {
43
44
  field: 'Timestamp',
44
45
  valueGetter: (params) => {
45
- return new Date(params.data.Timestamp).toDateString();
46
+ var _a;
47
+ return (_a = new Date(params.data.Timestamp)) === null || _a === void 0 ? void 0 : _a.toDateString();
46
48
  },
47
49
  },
48
50
  delete: {
49
51
  defaultWidth: 50,
50
52
  render: (params) => {
51
- return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { variant: "text", icon: "delete", onClick: () => {
53
+ return (React.createElement(AdaptableButton_1.AdaptableButtonComponent, { disabled: isReadOnlyModule, variant: "text", icon: "delete", onClick: () => {
52
54
  const note = adaptable.api.noteApi.getNoteByUuid(params.data.Uuid);
53
55
  adaptable.api.noteApi.deleteNote(note);
54
56
  } }));
@@ -1443,26 +1443,6 @@ class AdaptableAgGrid {
1443
1443
  this.onSortChanged();
1444
1444
  this.debouncedSetSelectedCells();
1445
1445
  }));
1446
- const showGroupingTotalsAsHeader = this.adaptableOptions.groupingOptions.showGroupingTotalsAsHeader;
1447
- /**
1448
- * Use Case: Model has updated
1449
- * Action: If user has set to see grouping totals as header create a pinned row (bit of a hack)
1450
- */
1451
- this.agGridAdapter.getAgGridApi().addEventListener(core_1.Events.EVENT_MODEL_UPDATED, (this.listenerModelUpdated = (params) => {
1452
- if (showGroupingTotalsAsHeader) {
1453
- if (params && params.api) {
1454
- const pinnedData = params.api.getPinnedTopRow(0);
1455
- const model = params.api.getModel();
1456
- const rootNode = model.getRootNode();
1457
- if (!pinnedData) {
1458
- params.api.setPinnedTopRowData([rootNode.aggData]);
1459
- }
1460
- else {
1461
- pinnedData.updateData(rootNode.aggData);
1462
- }
1463
- }
1464
- }
1465
- }));
1466
1446
  const eventsThatTriggerChartingChanges = [
1467
1447
  core_1.Events.EVENT_CHART_CREATED,
1468
1448
  /** Chart Range selection has changed */
@@ -148,7 +148,6 @@ const DefaultAdaptableOptions = {
148
148
  customSortOptions: { customSortComparers: undefined },
149
149
  dataSetOptions: { dataSets: GeneralConstants_1.EMPTY_ARRAY },
150
150
  groupingOptions: {
151
- showGroupingTotalsAsHeader: false,
152
151
  balancedGroupsKey: undefined,
153
152
  restoreUngroupedColumns: false,
154
153
  autoOrderGroupedColumns: true,
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ICellEditorParams, ICellEditorComp } from '@ag-grid-community/core';
2
+ import { ICellEditorComp, ICellEditorParams } from '@ag-grid-community/core';
3
3
  import { IAdaptable } from '../../../AdaptableInterfaces/IAdaptable';
4
4
  export declare const ReactAdaptableDateEditor: React.ForwardRefExoticComponent<ICellEditorParams<any, any, any> & {
5
5
  showClearButton?: boolean;
@@ -6,8 +6,8 @@ const React = tslib_1.__importStar(require("react"));
6
6
  const renderWithAdaptableContext_1 = require("../../../View/renderWithAdaptableContext");
7
7
  const InternalAdaptableDateEditor_1 = require("./InternalAdaptableDateEditor");
8
8
  const core_1 = require("ag-grid-community");
9
- const FormatHelper_1 = require("../../../Utilities/Helpers/FormatHelper");
10
9
  const react_1 = require("react");
10
+ const FormatHelper_1 = require("../../../Utilities/Helpers/FormatHelper");
11
11
  function shouldClearExistingValue(params) {
12
12
  return params.eventKey === core_1.KeyCode.BACKSPACE || params.eventKey === core_1.KeyCode.DELETE;
13
13
  }
@@ -21,7 +21,7 @@ export type SelectProps<SelectValue extends unknown, IsMulti extends boolean = f
21
21
  'data-id'?: string;
22
22
  renderSingleValue?: (option: SelectOption<SelectValue>) => React.ReactNode;
23
23
  className?: string;
24
- isLoding?: boolean;
24
+ isLoading?: boolean;
25
25
  onFocus?: () => void;
26
26
  accessLevel?: AccessLevel;
27
27
  style?: React.CSSProperties;
@@ -84,7 +84,7 @@ const Select = function (props) {
84
84
  React.createElement(icons_1.Icon, { name: "triangle-down", style: { height: 20, width: 20 } })));
85
85
  };
86
86
  }, []);
87
- return (React.createElement(SelectComponent, { onInputChange: props.onInputChange, onFocus: props.onFocus, isLoading: props.isLoding, options: props.options, className: props.className, isDisabled: disabled, menuPlacement: (_g = props.menuPlacement) !== null && _g !== void 0 ? _g : 'auto', isSearchable: props.searchable, isMulti: props.isMulti, value: selectedOption, menuPosition: (_h = props.menuPosition) !== null && _h !== void 0 ? _h : 'absolute',
87
+ return (React.createElement(SelectComponent, { onInputChange: props.onInputChange, onFocus: props.onFocus, isLoading: props.isLoading, options: props.options, className: props.className, isDisabled: disabled, menuPlacement: (_g = props.menuPlacement) !== null && _g !== void 0 ? _g : 'auto', isSearchable: props.searchable, isMulti: props.isMulti, value: selectedOption, menuPosition: (_h = props.menuPosition) !== null && _h !== void 0 ? _h : 'absolute',
88
88
  // This needed so the menu is not clipped by overflow: hidden
89
89
  menuPortalTarget: document.body, isClearable: props.isClearable, onChange: (option) => {
90
90
  if (props.isMulti) {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1711543434054 || Date.now(),
6
- VERSION: "18.0.0-canary.17" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1711969937271 || Date.now(),
6
+ VERSION: "18.0.0-canary.19" || '--current-version--',
7
7
  };
@@ -563,12 +563,6 @@ export declare const ADAPTABLE_METAMODEL: {
563
563
  desc: string;
564
564
  isOpt?: undefined;
565
565
  ref?: undefined;
566
- } | {
567
- name: string;
568
- kind: string;
569
- desc: string;
570
- ref: string;
571
- isOpt?: undefined;
572
566
  } | {
573
567
  name: string;
574
568
  kind: string;
@@ -601,11 +595,17 @@ export declare const ADAPTABLE_METAMODEL: {
601
595
  name: string;
602
596
  kind: string;
603
597
  desc: string;
604
- props: {
598
+ props: ({
605
599
  name: string;
606
600
  kind: string;
607
601
  desc: string;
608
- }[];
602
+ isOpt?: undefined;
603
+ } | {
604
+ name: string;
605
+ kind: string;
606
+ desc: string;
607
+ isOpt: boolean;
608
+ })[];
609
609
  };
610
610
  AdaptableNotes: {
611
611
  name: string;
@@ -1965,6 +1965,11 @@ export declare const ADAPTABLE_METAMODEL: {
1965
1965
  ref: string;
1966
1966
  }[];
1967
1967
  };
1968
+ CommentLoadContext: {
1969
+ name: string;
1970
+ kind: string;
1971
+ desc: string;
1972
+ };
1968
1973
  CommentOptions: {
1969
1974
  name: string;
1970
1975
  kind: string;
@@ -3650,14 +3655,6 @@ export declare const ADAPTABLE_METAMODEL: {
3650
3655
  noCode: string;
3651
3656
  defVal: string;
3652
3657
  gridInfo?: undefined;
3653
- } | {
3654
- name: string;
3655
- kind: string;
3656
- desc: string;
3657
- isOpt: boolean;
3658
- gridInfo: string;
3659
- defVal: string;
3660
- noCode?: undefined;
3661
3658
  })[];
3662
3659
  };
3663
3660
  HandleFdc3Context: {