@adaptabletools/adaptable 11.0.0 → 11.0.2

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 (61) hide show
  1. package/README.md +4 -4
  2. package/base.css +1 -2
  3. package/bundle.cjs.js +66 -66
  4. package/index.css +1 -2
  5. package/package.json +1 -1
  6. package/publishTimestamp.d.ts +1 -1
  7. package/publishTimestamp.js +1 -1
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
  9. package/src/AdaptableOptions/FilterOptions.d.ts +4 -0
  10. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -3
  11. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
  12. package/src/Api/GridApi.d.ts +1 -2
  13. package/src/Api/Implementation/AlertApiImpl.js +1 -2
  14. package/src/Api/Implementation/ColumnApiImpl.js +1 -1
  15. package/src/Api/Implementation/GridApiImpl.js +14 -17
  16. package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
  17. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +1 -1
  18. package/src/PredefinedConfig/PlusMinusState.d.ts +1 -1
  19. package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
  20. package/src/Redux/ActionsReducers/AlertRedux.js +4 -4
  21. package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
  22. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +4 -4
  23. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
  24. package/src/Redux/ActionsReducers/CustomSortRedux.js +4 -4
  25. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +12 -12
  26. package/src/Redux/ActionsReducers/FlashingCellRedux.js +33 -29
  27. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
  28. package/src/Redux/ActionsReducers/FormatColumnRedux.js +4 -4
  29. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
  30. package/src/Redux/ActionsReducers/PlusMinusRedux.js +4 -4
  31. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
  32. package/src/Redux/ActionsReducers/ScheduleRedux.js +16 -16
  33. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
  34. package/src/Redux/ActionsReducers/ShortcutRedux.js +4 -4
  35. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  36. package/src/Redux/Store/AdaptableStore.js +20 -20
  37. package/src/Strategy/AlertModule.js +1 -1
  38. package/src/Strategy/FlashingCellModule.js +2 -2
  39. package/src/Strategy/FormatColumnModule.js +19 -0
  40. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
  41. package/src/Utilities/Services/DataService.d.ts +1 -1
  42. package/src/Utilities/Services/DataService.js +4 -3
  43. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  44. package/src/View/Components/EntityRulesEditor/index.d.ts +1 -1
  45. package/src/View/Components/EntityRulesEditor/index.js +1 -1
  46. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  47. package/src/View/Dashboard/DashboardPopup.js +1 -1
  48. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  49. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.d.ts +1 -1
  50. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  51. package/src/agGrid/Adaptable.d.ts +4 -2
  52. package/src/agGrid/Adaptable.js +63 -38
  53. package/src/agGrid/CheckboxRenderer.d.ts +8 -1
  54. package/src/agGrid/CheckboxRenderer.js +25 -4
  55. package/src/agGrid/agGridHelper.d.ts +1 -1
  56. package/src/agGrid/agGridHelper.js +7 -8
  57. package/src/components/icons/calculated-column.js +2 -2
  58. package/src/metamodel/adaptable.metamodel.d.ts +13 -4
  59. package/src/metamodel/adaptable.metamodel.js +18 -11
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
@@ -56,6 +56,7 @@ const publishTimestamp_1 = tslib_1.__importDefault(require("../../publishTimesta
56
56
  const MetamodelService_1 = require("../Utilities/Services/MetamodelService");
57
57
  const DocumentationLinkConstants_1 = require("../Utilities/Constants/DocumentationLinkConstants");
58
58
  const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
59
+ const CheckboxRenderer_1 = require("./CheckboxRenderer");
59
60
  const tinycolor = require('tinycolor2');
60
61
  all_modules_1.ModuleRegistry.registerModules(all_modules_1.AllCommunityModules);
61
62
  const GROUP_PATH_SEPARATOR = '/';
@@ -797,6 +798,7 @@ class Adaptable {
797
798
  return;
798
799
  }
799
800
  let style = {};
801
+ // percent bar && do we show text
800
802
  const columnStyle = formatColumn.ColumnStyle;
801
803
  if (columnStyle) {
802
804
  const gradientStyle = columnStyle === null || columnStyle === void 0 ? void 0 : columnStyle.GradientStyle;
@@ -824,6 +826,10 @@ class Adaptable {
824
826
  }
825
827
  style.backgroundColor = tinycolor(cellBackColor).setAlpha(alpha).toRgbString();
826
828
  }
829
+ if (columnStyle.PercentBarStyle && columnStyle.PercentBarStyle.CellText) {
830
+ style.paddingTop = 0;
831
+ style.paddingBottom = 0;
832
+ }
827
833
  }
828
834
  else if (formatColumn.Style) {
829
835
  style = this.convertAdaptableStyleToCSS(formatColumn.Style);
@@ -1240,6 +1246,24 @@ class Adaptable {
1240
1246
  }
1241
1247
  const pivoted = !!layout.EnablePivot;
1242
1248
  const shouldUpdatePivoted = this.gridOptions.columnApi.isPivotMode() !== pivoted;
1249
+ /**
1250
+ * Pivot columns are secondary columns that are created on the fly and base
1251
+ * their configuration on the main columns by copying that configuration.
1252
+ * Because they copy the colDefs they might have an old copy of the colldefs.
1253
+ * This is why when the layout is pivoted we need to set columns before pivoting is applied.
1254
+ * e.g. {
1255
+ * field: 'pivot-1',
1256
+ * pivotValueColumn: {
1257
+ * colDef: {
1258
+ * field: 'price',
1259
+ * // this is a copy of the original column
1260
+ * }
1261
+ * }
1262
+ *
1263
+ */
1264
+ if (shouldUpdatePivoted) {
1265
+ this.setupColumns();
1266
+ }
1243
1267
  isChanged = isChanged || shouldUpdatePivoted;
1244
1268
  let shouldUpdateHeaders = false;
1245
1269
  shouldUpdateHeaders = this.setupColumnHeaderAggregations(layout);
@@ -1483,7 +1507,8 @@ class Adaptable {
1483
1507
  return selectedRowInfo;
1484
1508
  }
1485
1509
  setValue(dataChangedInfo) {
1486
- // note: because we use rownode set data value this will cause Validation to fire
1510
+ // note: because we use RowNode.setDataValue() this will cause Validation to fire
1511
+ // see https://www.ag-grid.com/javascript-data-grid/change-detection/#triggering-value-change-detection
1487
1512
  let newValue;
1488
1513
  let dataType = dataChangedInfo.column.dataType;
1489
1514
  newValue =
@@ -1520,6 +1545,10 @@ class Adaptable {
1520
1545
  cancelEdit() {
1521
1546
  this.gridOptions.api.stopEditing(true);
1522
1547
  }
1548
+ isCellEditable(rowNode, column) {
1549
+ // it's safe to rely on the AG Grid implementation because we override the colDef.editable property, which is in this case the single source of truth
1550
+ return column === null || column === void 0 ? void 0 : column.isCellEditable(rowNode);
1551
+ }
1523
1552
  getDistinctValuesForColumn(column, visibleRowsOnly, skipRowNode, permittedValues) {
1524
1553
  let returnValues = [];
1525
1554
  // this function does NOT look up for server values but actually it should...
@@ -1931,7 +1960,7 @@ class Adaptable {
1931
1960
  LoggingHelper_1.ConsoleLogError('ag-grid redrawRows was unable to find some row nodes. Tried to redraw row node: ', rowNode, ex);
1932
1961
  }
1933
1962
  }
1934
- refreshCells(rowNodes, columns, forceUpdate) {
1963
+ refreshCells(rowNodes, columns, forceUpdate, suppressFlash = false) {
1935
1964
  const api = this.gridOptions.api;
1936
1965
  // in order to get a fresh reference to rowNodes
1937
1966
  // rowNodes = this.getRowNodesForPrimaryKeys(
@@ -1941,6 +1970,7 @@ class Adaptable {
1941
1970
  rowNodes,
1942
1971
  columns: columns,
1943
1972
  force: forceUpdate,
1973
+ suppressFlash,
1944
1974
  };
1945
1975
  api.refreshCells(refreshCellParams);
1946
1976
  }
@@ -2360,24 +2390,6 @@ class Adaptable {
2360
2390
  this.checkColumnsDataTypeSet();
2361
2391
  this.setLayout();
2362
2392
  });
2363
- /**
2364
- * Use Case: User has started to edit a readonly cell
2365
- * Action1: Stop editing immediately
2366
- * Note: Deals only with user edits and not ticking data (not a problem)
2367
- */
2368
- this.gridOptions.api.addEventListener(all_modules_1.Events.EVENT_CELL_EDITING_STARTED, (params) => {
2369
- if (this.gridOptions.columnApi.isPivotMode()) {
2370
- return;
2371
- }
2372
- const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
2373
- if (cellEditableFn) {
2374
- let gridCell = this.getGridCellFromRowNode(params.node, params.column.getColId());
2375
- let isEditable = cellEditableFn(gridCell);
2376
- if (!isEditable) {
2377
- this.gridOptions.api.stopEditing();
2378
- }
2379
- }
2380
- });
2381
2393
  /**
2382
2394
  * Use Case: Entered or Left Pivot Mode
2383
2395
  * Action 1: Autosize pivot columns when entering pivot mode (if autosize pivot in Layout is true)
@@ -2689,6 +2701,7 @@ class Adaptable {
2689
2701
  this.setupColumnFilter(colSetupInfo);
2690
2702
  this.setupColumnFloatingFilter(colSetupInfo);
2691
2703
  this.setupColumnValueFormatter(colSetupInfo);
2704
+ this.setupColumnEditable(colSetupInfo);
2692
2705
  this.setupColumnValueSetter(colSetupInfo);
2693
2706
  this.setupColumnComparator(colSetupInfo);
2694
2707
  this.setupColumnCellEditor(colSetupInfo);
@@ -2852,6 +2865,11 @@ class Adaptable {
2852
2865
  const adaptableColumn = this.api.columnApi.getColumnFromId(colId);
2853
2866
  const editLookUpItem = this.api.userInterfaceApi.getEditLookUpItemForColumn(adaptableColumn);
2854
2867
  this.setColDefProperty(col, 'cellEditor', () => {
2868
+ var _a;
2869
+ const formatColumn = this.api.formatColumnApi.getFormatColumnForColumn(adaptableColumn);
2870
+ if (formatColumn && !(formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.IsSuspended) && ((_a = formatColumn.ColumnStyle) === null || _a === void 0 ? void 0 : _a.CheckBoxStyle)) {
2871
+ return CheckboxRenderer_1.CheckboxEditor;
2872
+ }
2855
2873
  if (editLookUpItem) {
2856
2874
  return this.isModulePresent('rich-select')
2857
2875
  ? 'agRichSelectCellEditor'
@@ -2872,7 +2890,7 @@ class Adaptable {
2872
2890
  setupColumnCellRenderer({ col, colId, abColumn }) {
2873
2891
  this.setColDefProperty(col, 'cellRenderer', () => {
2874
2892
  const formatColumn = this.api.formatColumnApi.getFormatColumnForColumn(abColumn);
2875
- if (!(formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.IsSuspended) && formatColumn && formatColumn.ColumnStyle) {
2893
+ if (formatColumn && !(formatColumn === null || formatColumn === void 0 ? void 0 : formatColumn.IsSuspended) && formatColumn.ColumnStyle) {
2876
2894
  if (formatColumn.ColumnStyle.PercentBarStyle) {
2877
2895
  return this.agGridHelper.createNumericStyleRendererFunc(formatColumn);
2878
2896
  }
@@ -3019,6 +3037,23 @@ class Adaptable {
3019
3037
  }
3020
3038
  });
3021
3039
  }
3040
+ setupColumnEditable({ col }) {
3041
+ this.setColDefProperty(col, 'editable', (userValue) => {
3042
+ // if AG Grid defines the column as NOT editable, we don't mess with it
3043
+ if (typeof userValue === 'boolean' && userValue === false) {
3044
+ return userValue;
3045
+ }
3046
+ const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
3047
+ if (!cellEditableFn) {
3048
+ return userValue;
3049
+ }
3050
+ const editableCallback = (params) => {
3051
+ const gridCell = this.getGridCellFromRowNode(params.node, params.column.getColId());
3052
+ return cellEditableFn(gridCell);
3053
+ };
3054
+ return editableCallback;
3055
+ });
3056
+ }
3022
3057
  setupColumnValueSetter({ col, colId, abColumn }) {
3023
3058
  this.setColDefProperty(col, 'valueSetter', (userValueSetter) => {
3024
3059
  var _a;
@@ -3027,19 +3062,14 @@ class Adaptable {
3027
3062
  .filter((alertDefinition) => {
3028
3063
  return this.api.scopeApi.isColumnInScope(abColumn, alertDefinition.Scope);
3029
3064
  });
3030
- const cellEditableFn = this.adaptableOptions.editOptions.isCellEditable;
3031
3065
  const noValidations = !preventEditAlertsForColumn.length && !((_a = this.adaptableOptions.editOptions) === null || _a === void 0 ? void 0 : _a.validateOnServer);
3032
- if (noValidations && !cellEditableFn) {
3066
+ if (noValidations) {
3033
3067
  return;
3034
3068
  }
3035
3069
  const valueSetter = (params) => {
3036
3070
  var _a;
3037
- if (cellEditableFn) {
3038
- let gridCell = this.getGridCellFromRowNode(params.node, params.column.getColId());
3039
- let isEditable = cellEditableFn(gridCell);
3040
- if (!isEditable) {
3041
- return false;
3042
- }
3071
+ if (preventEditAlertsForColumn.length) {
3072
+ return false;
3043
3073
  }
3044
3074
  const field = params.column.getColDef().field;
3045
3075
  if (noValidations) {
@@ -3064,10 +3094,6 @@ class Adaptable {
3064
3094
  rowNode: params.node,
3065
3095
  trigger: 'edit',
3066
3096
  });
3067
- // just Prevent Edit Alerts below
3068
- if (!preventEditAlertsForColumn.length) {
3069
- return true;
3070
- }
3071
3097
  if (dataChangedInfo.oldValue === dataChangedInfo.newValue) {
3072
3098
  return true;
3073
3099
  }
@@ -3387,10 +3413,8 @@ class Adaptable {
3387
3413
  this.gridOptions.api.onGroupExpandedOrCollapsed();
3388
3414
  }
3389
3415
  }
3390
- getAgGridColumnForAdaptableColumn(abColumn) {
3391
- return this.gridOptions.columnApi
3392
- .getAllColumns()
3393
- .find((c) => c.getColId() === abColumn.columnId);
3416
+ getAgGridColumnForColumnId(columnId) {
3417
+ return this.gridOptions.columnApi.getColumn(columnId);
3394
3418
  }
3395
3419
  setRowGroupColumns(columnIds) {
3396
3420
  this.gridOptions.columnApi.setRowGroupColumns(columnIds);
@@ -3717,7 +3741,8 @@ class Adaptable {
3717
3741
  return false;
3718
3742
  }
3719
3743
  showQuickFilter() {
3720
- this.gridOptions.api.setFloatingFiltersHeight(null);
3744
+ const height = this.api.internalApi.getAdaptableOptions().filterOptions.quickFilterHeight;
3745
+ this.gridOptions.api.setFloatingFiltersHeight(height);
3721
3746
  }
3722
3747
  hideQuickFilter() {
3723
3748
  this.gridOptions.api.setFloatingFiltersHeight(0);
@@ -1,3 +1,10 @@
1
1
  import { ICellRendererFunc } from '@ag-grid-community/all-modules';
2
2
  import { AdaptableApi } from '../Api/AdaptableApi';
3
- export declare const getCheckboxRendererForColumn: (columnId: string, readOnly: boolean, api: AdaptableApi) => ICellRendererFunc;
3
+ import { ICellEditorComp, ICellEditorParams } from '@ag-grid-community/core/dist/cjs/es5/interfaces/iCellEditor';
4
+ export declare const getCheckboxRendererForColumn: (columnId: string, isColumnReadOnly: boolean, api: AdaptableApi) => ICellRendererFunc;
5
+ export declare class CheckboxEditor implements ICellEditorComp {
6
+ isCancelBeforeStart(): boolean;
7
+ init(params: ICellEditorParams): void;
8
+ getGui(): HTMLElement;
9
+ getValue(): any;
10
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCheckboxRendererForColumn = void 0;
4
- exports.getCheckboxRendererForColumn = (columnId, readOnly, api) => {
3
+ exports.CheckboxEditor = exports.getCheckboxRendererForColumn = void 0;
4
+ exports.getCheckboxRendererForColumn = (columnId, isColumnReadOnly, api) => {
5
5
  const CheckboxRenderer = function () {
6
6
  return '';
7
7
  };
@@ -10,7 +10,9 @@ exports.getCheckboxRendererForColumn = (columnId, readOnly, api) => {
10
10
  const inputElement = document.createElement('input');
11
11
  inputElement.type = 'checkbox';
12
12
  inputElement.checked = params.value;
13
- inputElement.disabled = readOnly;
13
+ inputElement.disabled =
14
+ isColumnReadOnly ||
15
+ !api.internalApi.getAdaptableInstance().isCellEditable(params.node, params.column);
14
16
  this.checkedHandler = this.checkedHandler.bind(this);
15
17
  inputElement.addEventListener('click', this.checkedHandler);
16
18
  this.eGui = document.createElement('div');
@@ -29,7 +31,26 @@ exports.getCheckboxRendererForColumn = (columnId, readOnly, api) => {
29
31
  return this.eGui;
30
32
  };
31
33
  CheckboxRenderer.prototype.refresh = function () {
32
- return true;
34
+ // by returning FALSE, AG Grid will remove the component from the DOM
35
+ // and (re)create a new component in its place with the new value & disabled state
36
+ return false;
37
+ };
38
+ CheckboxRenderer.prototype.destroy = function () {
39
+ var _a, _b;
40
+ (_b = (_a = this.eGui) === null || _a === void 0 ? void 0 : _a.firstChild) === null || _b === void 0 ? void 0 : _b.removeEventListener('click', this.checkedHandler);
33
41
  };
34
42
  return CheckboxRenderer;
35
43
  };
44
+ // this is just a stub editor instance, we just need the `isCancelBeforeStart()` hook
45
+ class CheckboxEditor {
46
+ isCancelBeforeStart() {
47
+ // never show the editor, we edit it via the checkbox input element
48
+ return true;
49
+ }
50
+ init(params) { }
51
+ getGui() {
52
+ return undefined;
53
+ }
54
+ getValue() { }
55
+ }
56
+ exports.CheckboxEditor = CheckboxEditor;
@@ -21,7 +21,7 @@ export declare class agGridHelper {
21
21
  getAgGridDarkThemeName(): string;
22
22
  setUpModules(): Map<AdaptableModule, IModule>;
23
23
  TrySetUpNodeIds(): boolean;
24
- createCheckboxRendererComp(columnId: string, isReadOnly: boolean): ICellRendererFunc | undefined;
24
+ createCheckboxRendererComp(columnId: string, isColumnReadOnly: boolean): ICellRendererFunc | undefined;
25
25
  createNumericStyleRendererFunc(formatColumn: FormatColumn): ICellRendererFunc;
26
26
  getCleanValue(value: string): string | undefined;
27
27
  getRenderedValue(colDef: ColDef, valueToRender: any): any;
@@ -118,8 +118,8 @@ class agGridHelper {
118
118
  };
119
119
  return true;
120
120
  }
121
- createCheckboxRendererComp(columnId, isReadOnly) {
122
- return CheckboxRenderer_1.getCheckboxRendererForColumn(columnId, isReadOnly, this.adaptable.api);
121
+ createCheckboxRendererComp(columnId, isColumnReadOnly) {
122
+ return CheckboxRenderer_1.getCheckboxRendererForColumn(columnId, isColumnReadOnly, this.adaptable.api);
123
123
  }
124
124
  createNumericStyleRendererFunc(formatColumn) {
125
125
  const numericStyle = formatColumn.ColumnStyle;
@@ -331,13 +331,12 @@ class agGridHelper {
331
331
  this.adaptable.api.eventApi.emit('SelectionChanged', selectionChangedInfo);
332
332
  }
333
333
  isColumnReadonly(colDef) {
334
- // currently we do not support the fact that some rows are editable and some are not
335
- // if editable is a function then we return that its not readonly since we assume that some rowNode will be editable
336
- // that's wrong but we ll see if we face the issue later
337
- if (colDef && typeof colDef.editable === 'boolean') {
338
- return !colDef.editable;
334
+ // if the column has conditional/dynamic editability, we assume some rows may be editable
335
+ if (colDef && typeof colDef.editable === 'function') {
336
+ return false;
339
337
  }
340
- return true;
338
+ // otherwise we evaluate the colDef.editable property (columns are NOT editable by default)
339
+ return !colDef.editable;
341
340
  }
342
341
  isColumnSortable(colDef) {
343
342
  if (colDef && colDef.sortable != null) {
@@ -4,5 +4,5 @@ const tslib_1 = require("tslib");
4
4
  const React = tslib_1.__importStar(require("react"));
5
5
  const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
6
  exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
- React.createElement("path", { d: "M14.67 14.4337V21.7831H9.33V14.4337H14.67ZM15.67 21.7831L20.9277 21.8072V14.4337H15.67V21.7831ZM8.33 21.7831V2.14458H3V21.7831H8.33Z", fill: "currentColor" }),
8
- React.createElement("path", { d: "M19.6426 2H10.6466C9.93976 2 9.36145 2.57831 9.36145 3.28514V12.2811C9.36145 12.988 9.93976 13.5663 10.6466 13.5663H19.6426C20.3494 13.5663 20.9277 12.988 20.9277 12.2811V3.28514C20.9277 2.57831 20.3494 2 19.6426 2ZM15.8064 4.60884L16.4876 3.92771L17.3936 4.83373L18.2996 3.92771L18.9807 4.60884L18.0747 5.51486L18.9807 6.42088L18.2996 7.10201L17.3936 6.20241L16.4876 7.10843L15.8064 6.42731L16.7124 5.52128L15.8064 4.60884ZM11.4498 5.03293H14.6627V5.99679H11.4498V5.03293ZM14.8233 10.3534H13.5382V11.6386H12.5743V10.3534H11.2892V9.38956H12.5743V8.10442H13.5382V9.38956H14.8233V10.3534ZM19 11.1566H15.7871V10.1928H19V11.1566ZM19 9.5502H15.7871V8.58635H19V9.5502Z", fill: "currentColor" })));
7
+ React.createElement("path", { d: "M14.67 14.4337V21.7831H9.33V14.4337H14.67ZM15.67 21.7831L20.9277 21.8072V14.4337H15.67V21.7831ZM8.33 21.7831V2.14458H3V21.7831H8.33Z" }),
8
+ React.createElement("path", { d: "M19.6426 2H10.6466C9.93976 2 9.36145 2.57831 9.36145 3.28514V12.2811C9.36145 12.988 9.93976 13.5663 10.6466 13.5663H19.6426C20.3494 13.5663 20.9277 12.988 20.9277 12.2811V3.28514C20.9277 2.57831 20.3494 2 19.6426 2ZM15.8064 4.60884L16.4876 3.92771L17.3936 4.83373L18.2996 3.92771L18.9807 4.60884L18.0747 5.51486L18.9807 6.42088L18.2996 7.10201L17.3936 6.20241L16.4876 7.10843L15.8064 6.42731L16.7124 5.52128L15.8064 4.60884ZM11.4498 5.03293H14.6627V5.99679H11.4498V5.03293ZM14.8233 10.3534H13.5382V11.6386H12.5743V10.3534H11.2892V9.38956H12.5743V8.10442H13.5382V9.38956H14.8233V10.3534ZM19 11.1566H15.7871V10.1928H19V11.1566ZM19 9.5502H15.7871V8.58635H19V9.5502Z" })));
@@ -1421,20 +1421,20 @@ export declare const ADAPTABLE_METAMODEL: {
1421
1421
  description: string;
1422
1422
  uiLabel: string;
1423
1423
  isOptional: boolean;
1424
- reference: string;
1424
+ reference?: undefined;
1425
1425
  } | {
1426
1426
  name: string;
1427
1427
  kind: string;
1428
1428
  description: string;
1429
1429
  uiLabel: string;
1430
- isOptional?: undefined;
1431
- reference?: undefined;
1430
+ isOptional: boolean;
1431
+ reference: string;
1432
1432
  } | {
1433
1433
  name: string;
1434
1434
  kind: string;
1435
1435
  description: string;
1436
1436
  uiLabel: string;
1437
- isOptional: boolean;
1437
+ isOptional?: undefined;
1438
1438
  reference?: undefined;
1439
1439
  })[];
1440
1440
  };
@@ -1998,6 +1998,15 @@ export declare const ADAPTABLE_METAMODEL: {
1998
1998
  defaultValue: string;
1999
1999
  gridInfo?: undefined;
2000
2000
  reference?: undefined;
2001
+ } | {
2002
+ name: string;
2003
+ kind: string;
2004
+ description: string;
2005
+ uiLabel: string;
2006
+ isOptional: boolean;
2007
+ gridInfo?: undefined;
2008
+ defaultValue?: undefined;
2009
+ reference?: undefined;
2001
2010
  } | {
2002
2011
  name: string;
2003
2012
  kind: string;
@@ -599,7 +599,7 @@ exports.ADAPTABLE_METAMODEL = {
599
599
  {
600
600
  "name": "readOnly",
601
601
  "kind": "boolean",
602
- "description": "Is column editable",
602
+ "description": "Is the column editable; returns FALSE if the column has conditional/dynamic editability, assuming some rows are editable",
603
603
  "uiLabel": "Read Only"
604
604
  },
605
605
  {
@@ -3861,6 +3861,13 @@ exports.ADAPTABLE_METAMODEL = {
3861
3861
  "kind": "Interface",
3862
3862
  "description": "Defines a Custom ToolPanel - provided by Users and contains custom content",
3863
3863
  "properties": [
3864
+ {
3865
+ "name": "buttons",
3866
+ "kind": "unknown",
3867
+ "description": "Optional set of buttons to show in the ToolPanel",
3868
+ "uiLabel": "Buttons",
3869
+ "isOptional": true
3870
+ },
3864
3871
  {
3865
3872
  "name": "frameworkComponent",
3866
3873
  "kind": "REFERENCE",
@@ -3888,13 +3895,6 @@ exports.ADAPTABLE_METAMODEL = {
3888
3895
  "description": "Title to display in Custom ToolPanel; if undefined, will default to `name` property",
3889
3896
  "uiLabel": "Title",
3890
3897
  "isOptional": true
3891
- },
3892
- {
3893
- "name": "toolPanelButtons",
3894
- "kind": "unknown",
3895
- "description": "Optional set of buttons to show in the ToolPanel",
3896
- "uiLabel": "Tool Panel Buttons",
3897
- "isOptional": true
3898
3898
  }
3899
3899
  ]
3900
3900
  },
@@ -5682,6 +5682,13 @@ exports.ADAPTABLE_METAMODEL = {
5682
5682
  "gridInfo": "item",
5683
5683
  "defaultValue": "2,000"
5684
5684
  },
5685
+ {
5686
+ "name": "quickFilterHeight",
5687
+ "kind": "number",
5688
+ "description": "TODO: add comment",
5689
+ "uiLabel": "Quick Filter Height",
5690
+ "isOptional": true
5691
+ },
5685
5692
  {
5686
5693
  "name": "quickFilterTrigger",
5687
5694
  "kind": "unknown",
@@ -8930,7 +8937,7 @@ exports.ADAPTABLE_METAMODEL = {
8930
8937
  {
8931
8938
  "name": "Rule",
8932
8939
  "kind": "REFERENCE",
8933
- "description": "(Optional) Boolean Query to determine whether to apply the Nudge",
8940
+ "description": "(Optional) Boolean Expression to determine whether to apply the Nudge",
8934
8941
  "uiLabel": "Rule",
8935
8942
  "isOptional": true,
8936
8943
  "reference": "unknown"
@@ -11087,10 +11094,10 @@ exports.ADAPTABLE_METAMODEL = {
11087
11094
  "defaultValue": "&#39;AdapTable&#39;"
11088
11095
  },
11089
11096
  {
11090
- "name": "customToolPanelButtons",
11097
+ "name": "customButtons",
11091
11098
  "kind": "unknown",
11092
11099
  "description": "ToolPanel Buttons provided by Users which perform custom behaviour",
11093
- "uiLabel": "Custom Tool Panel Buttons",
11100
+ "uiLabel": "Custom Buttons",
11094
11101
  "isOptional": true
11095
11102
  },
11096
11103
  {
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "11.0.0";
1
+ declare const _default: "11.0.2";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '11.0.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '11.0.2'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version