@adaptabletools/adaptable 17.0.0-canary.8 → 17.0.0
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/base.css +24 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +199 -226
- package/index.css +34 -1
- package/index.css.map +1 -1
- package/package.json +1 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +8 -8
- package/src/Api/EventApi.d.ts +19 -8
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/Events/RowSelectionChanged.js +2 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
- package/src/Strategy/LayoutModule.d.ts +12 -4
- package/src/Strategy/LayoutModule.js +11 -5
- package/src/Strategy/NotesModule.js +1 -1
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +8 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/GridFilter/GridFilterPopup.js +10 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +11 -10
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +16 -5
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
- package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Notes/NotesPopup.js +2 -2
- package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
- package/src/View/PlusMinus/MovePlusMinus.js +27 -0
- package/src/agGrid/Adaptable.js +2 -2
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +13 -3
- package/src/components/Datepicker/index.js +4 -4
- package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
- package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +11 -7
- package/src/components/ExpressionEditor/index.js +4 -7
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/OverlayTrigger/index.js +7 -2
- package/src/components/Select/Select.d.ts +0 -1
- package/src/components/Select/Select.js +4 -4
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/renderReactRoot.js +16 -10
- package/src/types.d.ts +2 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- /package/src/Api/Events/{SelectionChanged.js → CellSelectionChanged.js} +0 -0
package/src/renderReactRoot.js
CHANGED
|
@@ -5,18 +5,24 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ReactDOMClient = tslib_1.__importStar(require("react-dom/client"));
|
|
6
6
|
const renderWeakMap = new WeakMap();
|
|
7
7
|
const renderReactRoot = (el, container) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
// Keeping a reference to previous roots causes an error.
|
|
9
|
+
// Already (correctly) unmouted elements are not unmounted again, and triggers an error.
|
|
10
|
+
//
|
|
11
|
+
// let root = renderWeakMap.get(container);
|
|
12
|
+
// if (!root) {
|
|
13
|
+
// renderWeakMap.set(container, (root = ReactDOMClient.createRoot(container)));
|
|
14
|
+
// }
|
|
15
|
+
const root = ReactDOMClient.createRoot(container);
|
|
12
16
|
root.render(el);
|
|
13
17
|
return () => {
|
|
14
|
-
requestAnimationFrame(() => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// requestAnimationFrame(() => {
|
|
19
|
+
// // This pervents this warning:
|
|
20
|
+
// // Warning: Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.
|
|
21
|
+
// // https:stackoverflow.com/questions/73459382/react-18-async-way-to-unmount-root
|
|
22
|
+
// });
|
|
23
|
+
// This needs to be syncronous, if not, in a raf it may be to late, the element may be gone.
|
|
24
|
+
// To reproduce, move this in RAF and play with filters.
|
|
25
|
+
root.unmount();
|
|
20
26
|
};
|
|
21
27
|
};
|
|
22
28
|
exports.renderReactRoot = renderReactRoot;
|
package/src/types.d.ts
CHANGED
|
@@ -127,7 +127,8 @@ export type { GridFilterAppliedInfo } from './Api/Events/GridFilterApplied';
|
|
|
127
127
|
export type { GridSortedInfo, AdaptableSortState } from './Api/Events/GridSorted';
|
|
128
128
|
export type { AdaptableSearchState } from './Api/Events/AdaptableSearchState';
|
|
129
129
|
export type { DataSetSelectedInfo } from './Api/Events/DataSetSelected';
|
|
130
|
-
export type {
|
|
130
|
+
export type { CellSelectionChangedInfo } from './Api/Events/CellSelectionChanged';
|
|
131
|
+
export type { RowSelectionChangedInfo } from './Api/Events/RowSelectionChanged';
|
|
131
132
|
export type { AdaptableStateReloadedInfo } from './Api/Events/AdaptableStateReloaded';
|
|
132
133
|
export type { ThemeChangedInfo } from './Api/Events/ThemeChanged';
|
|
133
134
|
export type { ThemeEditedInfo } from './Api/Events/ThemeEdited';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "17.0.0
|
|
1
|
+
declare const _default: "17.0.0";
|
|
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 = '17.0.0
|
|
3
|
+
exports.default = '17.0.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SelectedCellInfo } from '../../PredefinedConfig/Selection/SelectedCellInfo';
|
|
2
|
-
import { SelectedRowInfo } from '../../PredefinedConfig/Selection/SelectedRowInfo';
|
|
3
|
-
import { BaseEventInfo } from './BaseEventInfo';
|
|
4
|
-
/**
|
|
5
|
-
* Event Info published by SelectionChanged event
|
|
6
|
-
*/
|
|
7
|
-
export interface SelectionChangedInfo extends BaseEventInfo {
|
|
8
|
-
/**
|
|
9
|
-
* Details of cells currently selected in the Grid
|
|
10
|
-
*/
|
|
11
|
-
selectedCellInfo: SelectedCellInfo;
|
|
12
|
-
/**
|
|
13
|
-
* Details of rows currently selected in the Grid
|
|
14
|
-
*/
|
|
15
|
-
selectedRowInfo: SelectedRowInfo;
|
|
16
|
-
}
|
|
File without changes
|