@adaptabletools/adaptable-cjs 18.0.15 → 18.0.17

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.
@@ -127,6 +127,7 @@ const QuickFilterValues = (props) => {
127
127
  }
128
128
  return null;
129
129
  };
130
+ const [defaultSize, setDefaultSize] = React.useState(undefined);
130
131
  return (React.createElement(OverlayTrigger_1.default, { showEvent: showEvent,
131
132
  // cannot hide on blur, because the form input receives the input when this is opened
132
133
  hideEvent: "mouseleave", hideDelay: 50, ref: (api) => {
@@ -140,18 +141,24 @@ const QuickFilterValues = (props) => {
140
141
  }
141
142
  }, render: ({ targetWidth }) => {
142
143
  var _a;
143
- return (React.createElement(re_resizable_1.Resizable, { style: {
144
+ return (React.createElement(re_resizable_1.Resizable, { onResizeStop: (_e, _direction, element, _delta) => {
145
+ const { width, height } = element.getBoundingClientRect();
146
+ setDefaultSize({ width, height });
147
+ }, defaultSize: defaultSize, style: {
144
148
  fontSize: 'var(--ab-font-size-2)',
145
149
  border: '1px solid var(--ab-color-primarydark)',
146
150
  background: 'var(--ab-color-defaultbackground)',
147
151
  zIndex: 1000,
152
+ display: 'flex',
153
+ flexFlow: 'column',
154
+ flexWrap: 'nowrap',
148
155
  }, enable: {
149
156
  top: false,
150
157
  right: true,
151
- bottom: false,
158
+ bottom: true,
152
159
  left: false,
153
160
  topRight: false,
154
- bottomRight: false,
161
+ bottomRight: true,
155
162
  bottomLeft: false,
156
163
  topLeft: false,
157
164
  }, minWidth: getPopoverWidth(targetWidth) },
@@ -167,13 +174,7 @@ const QuickFilterValues = (props) => {
167
174
  (_a = valuesDropdownRef.current) === null || _a === void 0 ? void 0 : _a.show();
168
175
  });
169
176
  }
170
- }, "data-name": "quick-filter-form", flexDirection: "column", style: {
171
- // fontSize: 'var(--ab-font-size-2)',
172
- // border: '1px solid var(--ab-color-primarydark)',
173
- // background: 'var(--ab-color-defaultbackground)',
174
- // zIndex: 1000,
175
- // width: getPopoverWidth(targetWidth),
176
- } },
177
+ }, "data-name": "quick-filter-form", flexDirection: "column", flex: 1, display: 'flex' },
177
178
  React.createElement(rebass_1.Flex, { m: 2 },
178
179
  React.createElement(SimpleButton_1.default, { onClick: () => clearColumnFilter() }, "Clear Filter"),
179
180
  ((_a = api.optionsApi.getColumnFilterOptions()) === null || _a === void 0 ? void 0 : _a.autoApplyFilter) == false && (React.createElement(SimpleButton_1.default, { ml: 2, onClick: () => {
@@ -196,6 +196,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
196
196
  getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
197
197
  updateColumnModelAndRefreshGrid(config?: {
198
198
  skipColDefsRefresh?: boolean;
199
+ preemptiveColumnStateRefresh?: boolean;
199
200
  }): void;
200
201
  redrawBody(): void;
201
202
  refreshHeader(): void;
@@ -1800,6 +1800,12 @@ class AdaptableAgGrid {
1800
1800
  if (result == undefined && rowNode.data) {
1801
1801
  result = rowNode.data[this.adaptableOptions.primaryKey];
1802
1802
  }
1803
+ if (result == undefined && rowNode.id != undefined) {
1804
+ // when getPrimaryKeyValueFromRowNode is called for group rows,
1805
+ // which don't have a rowNode.data object, the result is undefined
1806
+ // but we do have an id property on the rowNode object, so we'll use that
1807
+ result = rowNode.id;
1808
+ }
1803
1809
  return result;
1804
1810
  }
1805
1811
  getRawValueFromRowNode(rowNode, columnId) {
@@ -1877,6 +1883,9 @@ class AdaptableAgGrid {
1877
1883
  return rawValue;
1878
1884
  }
1879
1885
  updateColumnModelAndRefreshGrid(config) {
1886
+ if (config === null || config === void 0 ? void 0 : config.preemptiveColumnStateRefresh) {
1887
+ this.deriveAdaptableColumnStateFromAgGrid();
1888
+ }
1880
1889
  if (!(config === null || config === void 0 ? void 0 : config.skipColDefsRefresh)) {
1881
1890
  this.refreshColDefs();
1882
1891
  }
@@ -3157,13 +3166,8 @@ class AdaptableAgGrid {
3157
3166
  return this.ReportService.getCellExportValueFromRawValue(rowNode, rawValue, columnId);
3158
3167
  }
3159
3168
  processCellForExcelExport(rowNode, columnId) {
3160
- var _a;
3161
3169
  if (this.api.exportApi.internalApi.isVisualDataExportInProgress()) {
3162
- const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, (_a = this.getPrimaryKeyValueFromRowNode(rowNode)) !== null && _a !== void 0 ? _a : rowNode.id
3163
- // when getPrimaryKeyValueFromRowNode is called for group rows,
3164
- // which don't have a rowNode.data object, the result is undefined
3165
- // but we do have an id property on the rowNode object, so we'll use that
3166
- );
3170
+ const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, this.getPrimaryKeyValueFromRowNode(rowNode));
3167
3171
  const isoFormattedDate = this.ReportService.getExcelStyleWithFormattedDate(cellKey);
3168
3172
  if (isoFormattedDate) {
3169
3173
  // this is a Date cell which will be formatted by Excel
@@ -3724,6 +3728,7 @@ class AdaptableAgGrid {
3724
3728
  */
3725
3729
  updateLayoutFromGrid() {
3726
3730
  var _a, _b;
3731
+ this.logger.info('updateLayoutFromGrid()');
3727
3732
  const agGridApi = this.agGridAdapter.getAgGridApi();
3728
3733
  const columnState = agGridApi.getColumnState();
3729
3734
  const expandedState = agGridApi.getState().rowGroupExpansion || { expandedRowGroupIds: [] };
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: 1716971701577 || Date.now(),
6
- VERSION: "18.0.15" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1717077902341 || Date.now(),
6
+ VERSION: "18.0.17" || '--current-version--',
7
7
  };