@adaptabletools/adaptable-cjs 18.0.16 → 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: () => {
@@ -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) {
@@ -3160,13 +3166,8 @@ class AdaptableAgGrid {
3160
3166
  return this.ReportService.getCellExportValueFromRawValue(rowNode, rawValue, columnId);
3161
3167
  }
3162
3168
  processCellForExcelExport(rowNode, columnId) {
3163
- var _a;
3164
3169
  if (this.api.exportApi.internalApi.isVisualDataExportInProgress()) {
3165
- const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, (_a = this.getPrimaryKeyValueFromRowNode(rowNode)) !== null && _a !== void 0 ? _a : rowNode.id
3166
- // when getPrimaryKeyValueFromRowNode is called for group rows,
3167
- // which don't have a rowNode.data object, the result is undefined
3168
- // but we do have an id property on the rowNode object, so we'll use that
3169
- );
3170
+ const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, this.getPrimaryKeyValueFromRowNode(rowNode));
3170
3171
  const isoFormattedDate = this.ReportService.getExcelStyleWithFormattedDate(cellKey);
3171
3172
  if (isoFormattedDate) {
3172
3173
  // this is a Date cell which will be formatted by Excel
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: 1716977367968 || Date.now(),
6
- VERSION: "18.0.16" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1717077902341 || Date.now(),
6
+ VERSION: "18.0.17" || '--current-version--',
7
7
  };