@adaptabletools/adaptable-cjs 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.
Files changed (42) hide show
  1. package/base.css +1 -1
  2. package/index.css +1 -1
  3. package/package.json +3 -3
  4. package/src/Redux/ActionsReducers/ExportRedux.js +0 -2
  5. package/src/Redux/Store/AdaptableStore.js +1 -1
  6. package/src/Strategy/LayoutModule.js +3 -7
  7. package/src/Strategy/ThemeModule.js +2 -10
  8. package/src/View/Alert/Utilities/getAlertType.d.ts +1 -0
  9. package/src/View/Alert/Utilities/getAlertType.js +9 -1
  10. package/src/View/Alert/Utilities/getAvailablePredicates.js +1 -1
  11. package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +5 -0
  12. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +2 -6
  13. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +8 -5
  14. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +1 -1
  15. package/src/View/Alert/Wizard/AlertTypeWizardSection.js +2 -1
  16. package/src/View/Alert/Wizard/AlertWizard.js +1 -1
  17. package/src/View/Charting/useChartingElements.js +8 -10
  18. package/src/View/Components/Selectors/ColumnSelector.js +1 -1
  19. package/src/View/Export/ExportSelector.js +15 -17
  20. package/src/View/Export/ExportViewPanel.d.ts +4 -4
  21. package/src/View/Export/ExportViewPanel.js +14 -19
  22. package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +1 -1
  23. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +14 -9
  24. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  25. package/src/View/Layout/LayoutViewPanel.js +7 -7
  26. package/src/View/Theme/ThemePopup.js +3 -18
  27. package/src/View/Theme/ThemeSelector.d.ts +5 -0
  28. package/src/View/Theme/ThemeSelector.js +34 -0
  29. package/src/View/Theme/ThemeStatusbar.d.ts +2 -0
  30. package/src/View/Theme/ThemeStatusbar.js +14 -0
  31. package/src/View/Theme/ThemeViewPanel.d.ts +2 -13
  32. package/src/View/Theme/ThemeViewPanel.js +7 -53
  33. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +6 -5
  34. package/src/components/Select/Select.d.ts +1 -0
  35. package/src/components/Select/Select.js +12 -9
  36. package/src/metamodel/adaptable.metamodel.d.ts +1 -1
  37. package/src/metamodel/adaptable.metamodel.js +5 -5
  38. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +3 -1
  39. package/src/parser/src/predicate/mapQlPredicateToExpression.js +9 -0
  40. package/tsconfig.cjs.tsbuildinfo +1 -1
  41. package/src/View/Theme/ThemeStatusPanelPopover.d.ts +0 -2
  42. package/src/View/Theme/ThemeStatusPanelPopover.js +0 -25
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const ThemeStatusPanelPopover: React.FunctionComponent;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThemeStatusPanelPopover = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const SelectList_1 = require("../../components/SelectList");
7
- const AdaptableContext_1 = require("../AdaptableContext");
8
- const ThemeStatusPanelPopover = () => {
9
- const adaptable = (0, AdaptableContext_1.useAdaptable)();
10
- const themes = adaptable.api.themeApi.getThemes();
11
- const handleThemeChange = React.useCallback((option) => {
12
- adaptable.api.themeApi.loadTheme(option.value);
13
- }, []);
14
- const options = React.useMemo(() => {
15
- return themes.map((theme) => {
16
- var _a;
17
- return ({
18
- label: (_a = theme.Description) !== null && _a !== void 0 ? _a : theme.Name,
19
- value: theme.Name,
20
- });
21
- });
22
- }, []);
23
- return React.createElement(SelectList_1.SelectList, { options: options, onChange: handleThemeChange });
24
- };
25
- exports.ThemeStatusPanelPopover = ThemeStatusPanelPopover;