@adaptabletools/adaptable 16.2.1 → 16.2.3

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.
package/src/types.d.ts CHANGED
@@ -18,7 +18,7 @@ export type { EditOptions, ValidationResult, SmartEditCustomOperation, SmartEdit
18
18
  export type { ActionRowOptions, ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionRowFormContext, ActionRowButtonType, ActionRowButtonConfigurationContext, ActionRowButtonsContext, SetPrimaryKeyValueContext, } from './AdaptableOptions/ActionRowOptions';
19
19
  export type { ActionColumnContext, ActionColumn, ActionColumnSettings, ActionColumnOptions, } from './AdaptableOptions/ActionColumnOptions';
20
20
  export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, ExternalReport, PreProcessExportContext, AdaptableReportColumn, DataFormatType, ExportFormContext, ReportContext, ExportableColumnContext, } from './AdaptableOptions/ExportOptions';
21
- export type { DataImportValidationError, DataImportOptions, DataImportFileHandler, HandleImportedDataContext, DataImportValidateContext, GetPrimaryKeyValueContext, PreprocessDataContext, HandleImportedDataResolution, } from './AdaptableOptions/DataImportOptions';
21
+ export type { DataImportValidationError, DataImportOptions, DataImportFileHandler, HandleImportedDataContext, DataImportValidateContext, GetPrimaryKeyValueContext, PreprocessRowDataContext, HandleImportedDataResolution, } from './AdaptableOptions/DataImportOptions';
22
22
  export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOptions/DataSetOptions';
23
23
  export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
24
24
  export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "16.2.1";
1
+ declare const _default: "16.2.3";
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 = '16.2.1'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '16.2.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,5 +0,0 @@
1
- import { GroupCellRenderer } from '@ag-grid-community/core';
2
- export declare class AdaptableGroupCellRenderer extends GroupCellRenderer {
3
- constructor();
4
- init(params: any): void;
5
- }
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdaptableGroupCellRenderer = void 0;
4
- const tslib_1 = require("tslib");
5
- const core_1 = require("@ag-grid-community/core");
6
- const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
7
- const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
8
- const TEMPLATE =
9
- /* html */
10
- `<span class="ag-cell-wrapper">
11
- <span class="ag-group-expanded" ref="eExpanded"></span>
12
- <span class="ag-group-contracted" ref="eContracted"></span>
13
- <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>
14
- <span class="ag-group-value" ref="eValue"></span>
15
- <span class="ag-group-child-count" ref="eChildCount"></span>
16
- </span>`;
17
- class AdaptableGroupCellRenderer extends core_1.GroupCellRenderer {
18
- constructor() {
19
- super();
20
- this.setTemplate(TEMPLATE);
21
- }
22
- init(params) {
23
- //@ts-ignore
24
- this.params = params;
25
- //@ts-ignore
26
- if (this.gridOptionsWrapper.isGroupIncludeTotalFooter()) {
27
- //@ts-ignore
28
- this.assignBlankValueToGroupFooterCell(params);
29
- }
30
- //@ts-ignore
31
- const embeddedRowMismatch = this.isEmbeddedRowMismatch();
32
- // This allows for empty strings to appear as groups since
33
- // it will only return for null or undefined.
34
- const nullValue = params.value == null;
35
- let skipCell = false;
36
- // if the groupCellRenderer is inside of a footer and groupHideOpenParents is true
37
- // we should only display the groupCellRenderer if the current column is the rowGroupedColumn
38
- if (
39
- //@ts-ignore
40
- this.gridOptionsWrapper.isGroupIncludeFooter() &&
41
- //@ts-ignore
42
- this.gridOptionsWrapper.isGroupHideOpenParents()) {
43
- const node = params.node;
44
- if (node.footer) {
45
- const showRowGroup = params.colDef && params.colDef.showRowGroup;
46
- const rowGroupColumnId = node.rowGroupColumn && node.rowGroupColumn.getColId();
47
- skipCell = showRowGroup !== rowGroupColumnId;
48
- }
49
- }
50
- let skipExpandTool = false;
51
- if (params.node.leafGroup == true) {
52
- const displayedCols = params.columnApi.getAllDisplayedColumns();
53
- if (displayedCols && displayedCols.length > 0) {
54
- const nonGroupingCols = displayedCols.map((col) => {
55
- if (!col.getColId().startsWith(GeneralConstants_1.AG_GRID_GROUPED_COLUMN)) {
56
- return col;
57
- }
58
- });
59
- skipExpandTool = ArrayExtensions_1.default.IsNullOrEmpty(nonGroupingCols.filter((c) => c != undefined));
60
- }
61
- }
62
- //@ts-ignore
63
- this.cellIsBlank = embeddedRowMismatch || nullValue || skipCell;
64
- //@ts-ignore
65
- if (this.cellIsBlank) {
66
- return;
67
- }
68
- //@ts-ignore
69
- this.setupDragOpenParents();
70
- if (!skipExpandTool) {
71
- //@ts-ignore
72
- this.addExpandAndContract();
73
- }
74
- //@ts-ignore
75
- this.addCheckboxIfNeeded();
76
- //@ts-ignore
77
- this.addValueElement();
78
- //@ts-ignore
79
- this.setupIndent();
80
- }
81
- }
82
- exports.AdaptableGroupCellRenderer = AdaptableGroupCellRenderer;