@adaptabletools/adaptable 17.0.0-canary.2 → 17.0.0-canary.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/base.css +1 -1
- package/index.css +1 -1
- package/package.json +3 -3
- package/src/Redux/ActionsReducers/ExportRedux.js +1 -3
- package/src/Redux/Store/AdaptableStore.js +1 -1
- package/src/Strategy/LayoutModule.js +4 -8
- package/src/Strategy/ThemeModule.js +2 -10
- package/src/View/Alert/Utilities/getAlertType.d.ts +1 -0
- package/src/View/Alert/Utilities/getAlertType.js +9 -1
- package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -1
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +5 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -6
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +8 -5
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +1 -1
- package/src/View/Charting/useChartingElements.js +8 -10
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/Export/ExportSelector.js +15 -17
- package/src/View/Export/ExportViewPanel.d.ts +4 -4
- package/src/View/Export/ExportViewPanel.js +14 -19
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +12 -7
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +7 -7
- package/src/View/Theme/ThemePopup.js +3 -18
- package/src/View/Theme/ThemeSelector.d.ts +5 -0
- package/src/View/Theme/ThemeSelector.js +29 -0
- package/src/View/Theme/ThemeStatusbar.d.ts +2 -0
- package/src/View/Theme/ThemeStatusbar.js +9 -0
- package/src/View/Theme/ThemeViewPanel.d.ts +2 -13
- package/src/View/Theme/ThemeViewPanel.js +6 -53
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +7 -6
- package/src/components/Select/Select.d.ts +1 -0
- package/src/components/Select/Select.js +12 -9
- package/src/metamodel/adaptable.metamodel.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.js +5 -5
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +3 -1
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +9 -0
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +0 -2
- package/src/View/Theme/ThemeStatusPanelPopover.js +0 -20
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SelectList } from '../../components/SelectList';
|
|
3
|
-
import { useAdaptable } from '../AdaptableContext';
|
|
4
|
-
export const ThemeStatusPanelPopover = () => {
|
|
5
|
-
const adaptable = useAdaptable();
|
|
6
|
-
const themes = adaptable.api.themeApi.getThemes();
|
|
7
|
-
const handleThemeChange = React.useCallback((option) => {
|
|
8
|
-
adaptable.api.themeApi.loadTheme(option.value);
|
|
9
|
-
}, []);
|
|
10
|
-
const options = React.useMemo(() => {
|
|
11
|
-
return themes.map((theme) => {
|
|
12
|
-
var _a;
|
|
13
|
-
return ({
|
|
14
|
-
label: (_a = theme.Description) !== null && _a !== void 0 ? _a : theme.Name,
|
|
15
|
-
value: theme.Name,
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
}, []);
|
|
19
|
-
return React.createElement(SelectList, { options: options, onChange: handleThemeChange });
|
|
20
|
-
};
|