@adaptabletools/adaptable-cjs 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.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
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",
|
|
@@ -209,7 +209,6 @@ const ModuleView = (props) => {
|
|
|
209
209
|
}, moduleInfo: moduleInfo, data: null, configEntities: null, onCloseWizard: handleWizardClose, onFinishWizard: handleWizardClose }))));
|
|
210
210
|
};
|
|
211
211
|
const ColumnInfo = (props) => {
|
|
212
|
-
// const state = useSelector((state: AdaptableState) => state);
|
|
213
212
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
214
213
|
const [selectedColumnId, setSelectedColumnId] = React.useState(props.selectedColumnId);
|
|
215
214
|
const column = adaptable.api.columnApi.getColumnWithColumnId(selectedColumnId);
|
|
@@ -3,13 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdaptableObjectsSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const react_redux_1 = require("react-redux");
|
|
7
6
|
const rebass_1 = require("rebass");
|
|
8
7
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
9
8
|
const AdaptableObjectList_1 = require("../../Components/AdaptableObjectList");
|
|
9
|
+
const useRerender_1 = require("../../../components/utils/useRerender");
|
|
10
|
+
const react_1 = require("react");
|
|
10
11
|
const AdaptableObjectsSummary = () => {
|
|
11
|
-
const state = (0, react_redux_1.useSelector)((state) => state);
|
|
12
12
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
13
|
+
const rerender = (0, useRerender_1.useRerender)();
|
|
14
|
+
(0, react_1.useEffect)(() => {
|
|
15
|
+
return adaptable.api.eventApi.on('AdaptableStateChanged', rerender);
|
|
16
|
+
}, [adaptable]);
|
|
13
17
|
const modules = adaptable.ModuleService.getModuleCollection();
|
|
14
18
|
const baseClassName = 'ab-AdaptableObjectsSummary';
|
|
15
19
|
return (React.createElement(rebass_1.Box, { className: baseClassName }, [...modules].map(([moduleName, module]) => {
|
|
@@ -9,11 +9,7 @@ const StatusBarRedux_1 = require("../../Redux/ActionsReducers/StatusBarRedux");
|
|
|
9
9
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
10
10
|
const StatusBarPanel_1 = require("./StatusBarPanel");
|
|
11
11
|
const AdaptableStatusBar = (props) => {
|
|
12
|
-
|
|
13
|
-
* All state is selected so the Status Bar is re-rendered for all adaptable state changes
|
|
14
|
-
*/
|
|
15
|
-
const state = (0, react_redux_1.useSelector)((state) => state);
|
|
16
|
-
const statusPanels = (0, StatusBarRedux_1.getStatusPanelsSelector)(state);
|
|
12
|
+
const statusPanels = (0, react_redux_1.useSelector)(StatusBarRedux_1.getStatusPanelsSelector);
|
|
17
13
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
14
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
19
15
|
const statusSubPanels = statusPanels.find((statusPanel) => statusPanel.Key === props.context.Key);
|
|
@@ -525,7 +525,7 @@ class AgGridAdapter {
|
|
|
525
525
|
else if (Array.isArray(value)) {
|
|
526
526
|
const arrayDataType = agGridDataTypeDefinitions_1.ALL_ADAPTABLE_DATA_TYPES.find((arrayType) => {
|
|
527
527
|
const dataTypeDefinition = agGridDataTypeDefinitions_1.agGridDataTypeDefinitions[arrayType];
|
|
528
|
-
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher(value);
|
|
528
|
+
const dataTypeMatching = dataTypeDefinition?.dataTypeMatcher?.(value);
|
|
529
529
|
return dataTypeMatching;
|
|
530
530
|
});
|
|
531
531
|
if (arrayDataType) {
|
package/src/env.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
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" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "20.0.0-canary.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1741795405265 || Date.now(),
|
|
6
|
+
VERSION: "20.0.0-canary.15" || '--current-version--',
|
|
7
7
|
};
|