@adaptabletools/adaptable 20.0.0-canary.13 → 20.0.0-canary.15
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/package.json +1 -1
- package/src/View/ColumnInfo/ColumnInfo.js +0 -1
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +6 -2
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -5
- package/src/agGrid/AgGridAdapter.js +1 -1
- package/src/env.js +2 -2
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "20.0.0-canary.
|
|
3
|
+
"version": "20.0.0-canary.15",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -205,7 +205,6 @@ const ModuleView = (props) => {
|
|
|
205
205
|
}, moduleInfo: moduleInfo, data: null, configEntities: null, onCloseWizard: handleWizardClose, onFinishWizard: handleWizardClose }))));
|
|
206
206
|
};
|
|
207
207
|
export const ColumnInfo = (props) => {
|
|
208
|
-
// const state = useSelector((state: AdaptableState) => state);
|
|
209
208
|
const adaptable = useAdaptable();
|
|
210
209
|
const [selectedColumnId, setSelectedColumnId] = React.useState(props.selectedColumnId);
|
|
211
210
|
const column = adaptable.api.columnApi.getColumnWithColumnId(selectedColumnId);
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useSelector } from 'react-redux';
|
|
3
2
|
import { Box } from 'rebass';
|
|
4
3
|
import { useAdaptable } from '../../AdaptableContext';
|
|
5
4
|
import { AdaptableObjectList } from '../../Components/AdaptableObjectList';
|
|
5
|
+
import { useRerender } from '../../../components/utils/useRerender';
|
|
6
|
+
import { useEffect } from 'react';
|
|
6
7
|
export const AdaptableObjectsSummary = () => {
|
|
7
|
-
const state = useSelector((state) => state);
|
|
8
8
|
const adaptable = useAdaptable();
|
|
9
|
+
const rerender = useRerender();
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
return adaptable.api.eventApi.on('AdaptableStateChanged', rerender);
|
|
12
|
+
}, [adaptable]);
|
|
9
13
|
const modules = adaptable.ModuleService.getModuleCollection();
|
|
10
14
|
const baseClassName = 'ab-AdaptableObjectsSummary';
|
|
11
15
|
return (React.createElement(Box, { className: baseClassName }, [...modules].map(([moduleName, module]) => {
|
|
@@ -5,11 +5,7 @@ import { getStatusPanelsSelector } from '../../Redux/ActionsReducers/StatusBarRe
|
|
|
5
5
|
import { useAdaptable } from '../AdaptableContext';
|
|
6
6
|
import { StatusBarPanel } from './StatusBarPanel';
|
|
7
7
|
export const AdaptableStatusBar = (props) => {
|
|
8
|
-
|
|
9
|
-
* All state is selected so the Status Bar is re-rendered for all adaptable state changes
|
|
10
|
-
*/
|
|
11
|
-
const state = useSelector((state) => state);
|
|
12
|
-
const statusPanels = getStatusPanelsSelector(state);
|
|
8
|
+
const statusPanels = useSelector(getStatusPanelsSelector);
|
|
13
9
|
const adaptable = useAdaptable();
|
|
14
10
|
const dispatch = useDispatch();
|
|
15
11
|
const statusSubPanels = statusPanels.find((statusPanel) => statusPanel.Key === props.context.Key);
|
|
@@ -521,7 +521,7 @@ export class AgGridAdapter {
|
|
|
521
521
|
else if (Array.isArray(value)) {
|
|
522
522
|
const arrayDataType = ALL_ADAPTABLE_DATA_TYPES.find((arrayType) => {
|
|
523
523
|
const dataTypeDefinition = agGridDataTypeDefinitions[arrayType];
|
|
524
|
-
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher(value);
|
|
524
|
+
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher?.(value);
|
|
525
525
|
return dataTypeMatching;
|
|
526
526
|
});
|
|
527
527
|
if (arrayDataType) {
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
NEXT_PUBLIC_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" || '',
|
|
3
|
-
PUBLISH_TIMESTAMP:
|
|
4
|
-
VERSION: "20.0.0-canary.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1741795376820 || Date.now(),
|
|
4
|
+
VERSION: "20.0.0-canary.15" || '--current-version--',
|
|
5
5
|
};
|