@adaptabletools/adaptable 14.0.4 → 15.0.0-canary.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.
Files changed (75) hide show
  1. package/bundle.cjs.js +177 -177
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableOptions/ChartingOptions.d.ts +6 -0
  6. package/src/Api/ChartingApi.d.ts +7 -8
  7. package/src/Api/DashboardApi.d.ts +4 -6
  8. package/src/Api/EventApi.d.ts +10 -10
  9. package/src/Api/Events/ChartChanged.d.ts +37 -0
  10. package/src/Api/Events/{ChartStateChangeInfo.js → ChartChanged.js} +0 -0
  11. package/src/Api/Events/DashboardChanged.d.ts +8 -0
  12. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -0
  13. package/src/Api/Implementation/ChartingApiImpl.js +3 -0
  14. package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -1
  15. package/src/Api/Implementation/DashboardApiImpl.js +3 -18
  16. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +2 -0
  17. package/src/Api/Implementation/StyledColumnApiImpl.js +6 -0
  18. package/src/Api/Implementation/ThemeApiImpl.js +4 -1
  19. package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
  20. package/src/Api/Internal/DashboardInternalApi.js +28 -3
  21. package/src/Api/Internal/ExportInternalApi.d.ts +1 -0
  22. package/src/Api/Internal/ExportInternalApi.js +6 -0
  23. package/src/Api/Internal/LayoutInternalApi.d.ts +1 -0
  24. package/src/Api/Internal/LayoutInternalApi.js +7 -0
  25. package/src/Api/StyledColumnApi.d.ts +10 -0
  26. package/src/Redux/ActionsReducers/AlertRedux.d.ts +14 -0
  27. package/src/Redux/ActionsReducers/AlertRedux.js +23 -1
  28. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +14 -0
  29. package/src/Redux/ActionsReducers/CustomSortRedux.js +23 -1
  30. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +15 -1
  31. package/src/Redux/ActionsReducers/FlashingCellRedux.js +23 -1
  32. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
  33. package/src/Redux/ActionsReducers/FormatColumnRedux.js +26 -1
  34. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +14 -0
  35. package/src/Redux/ActionsReducers/PlusMinusRedux.js +23 -1
  36. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +70 -0
  37. package/src/Redux/ActionsReducers/ScheduleRedux.js +112 -2
  38. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +14 -0
  39. package/src/Redux/ActionsReducers/ShortcutRedux.js +23 -1
  40. package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +14 -0
  41. package/src/Redux/ActionsReducers/StyledColumnRedux.js +23 -1
  42. package/src/Redux/ActionsReducers/utils.d.ts +2 -0
  43. package/src/Redux/ActionsReducers/utils.js +20 -2
  44. package/src/Redux/Store/AdaptableStore.js +45 -4
  45. package/src/Strategy/AlertModule.js +2 -0
  46. package/src/Strategy/CustomSortModule.d.ts +2 -0
  47. package/src/Strategy/CustomSortModule.js +2 -0
  48. package/src/Strategy/FlashingCellModule.js +2 -0
  49. package/src/Strategy/FormatColumnModule.js +2 -0
  50. package/src/Strategy/PlusMinusModule.js +2 -0
  51. package/src/Strategy/ShortcutModule.js +2 -0
  52. package/src/Strategy/StyledColumnModule.js +2 -0
  53. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  54. package/src/Utilities/Services/AlertService.d.ts +2 -0
  55. package/src/Utilities/Services/AlertService.js +6 -0
  56. package/src/Utilities/Services/ChartingService.js +4 -3
  57. package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -0
  58. package/src/Utilities/license/hashing.js +1 -1
  59. package/src/Utilities/logDeprecation.d.ts +1 -1
  60. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +2 -2
  61. package/src/View/Charting/ShowChartButton.js +3 -2
  62. package/src/View/Charting/useChartingElements.js +6 -5
  63. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +22 -1
  64. package/src/View/Export/ExportSelector.js +1 -0
  65. package/src/View/Export/ExportViewPanel.js +1 -0
  66. package/src/View/Export/ReportExportDropdown.js +1 -0
  67. package/src/View/Theme/ThemePopup.d.ts +0 -3
  68. package/src/View/Theme/ThemePopup.js +1 -9
  69. package/src/View/Theme/ThemeViewPanel.js +4 -3
  70. package/src/metamodel/adaptable.metamodel.d.ts +41 -0
  71. package/src/metamodel/adaptable.metamodel.js +1 -1
  72. package/src/types.d.ts +2 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/src/Api/Events/ChartStateChangeInfo.d.ts +0 -5
@@ -10,7 +10,8 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../components/Dropd
10
10
  const react_redux_1 = require("react-redux");
11
11
  class ThemeViewPanelComponent extends React.Component {
12
12
  render() {
13
- let allThemes = [...this.props.SystemThemes, ...this.props.UserThemes];
13
+ var _a, _b, _c, _d;
14
+ const allThemes = (_c = (_b = (_a = this.props.api) === null || _a === void 0 ? void 0 : _a.themeApi) === null || _b === void 0 ? void 0 : _b.getThemes) === null || _c === void 0 ? void 0 : _c.call(_b);
14
15
  let themes = allThemes.map((theme, index) => {
15
16
  if (typeof theme === 'string') {
16
17
  // protection against old state, which could be string
@@ -24,8 +25,8 @@ class ThemeViewPanelComponent extends React.Component {
24
25
  onClick: () => this.onSelectTheme(theme),
25
26
  };
26
27
  });
27
- let currentTheme = allThemes.filter((theme) => theme.Name === this.props.CurrentTheme)[0];
28
- let currentThemeDescription = currentTheme ? currentTheme.Description : this.props.CurrentTheme;
28
+ const currentThemeObj = allThemes.find((theme) => theme.Name === this.props.CurrentTheme);
29
+ const currentThemeDescription = (_d = currentThemeObj === null || currentThemeObj === void 0 ? void 0 : currentThemeObj.Description) !== null && _d !== void 0 ? _d : this.props.CurrentTheme;
29
30
  const elementType = this.props.viewType === 'Toolbar' ? 'DashboardToolbar' : 'ToolPanel';
30
31
  const dropDownStyle = this.props.viewType === 'Toolbar'
31
32
  ? {
@@ -1648,6 +1648,18 @@ export declare const ADAPTABLE_METAMODEL: {
1648
1648
  kind: string;
1649
1649
  description: string;
1650
1650
  };
1651
+ ChartChangedInfo: {
1652
+ name: string;
1653
+ kind: string;
1654
+ description: string;
1655
+ properties: {
1656
+ name: string;
1657
+ kind: string;
1658
+ description: string;
1659
+ uiLabel: string;
1660
+ reference: string;
1661
+ }[];
1662
+ };
1651
1663
  ChartContainer: {
1652
1664
  name: string;
1653
1665
  kind: string;
@@ -1686,6 +1698,24 @@ export declare const ADAPTABLE_METAMODEL: {
1686
1698
  reference?: undefined;
1687
1699
  })[];
1688
1700
  };
1701
+ ChartDisplayedInfo: {
1702
+ name: string;
1703
+ kind: string;
1704
+ description: string;
1705
+ properties: ({
1706
+ name: string;
1707
+ kind: string;
1708
+ description: string;
1709
+ uiLabel: string;
1710
+ reference: string;
1711
+ } | {
1712
+ name: string;
1713
+ kind: string;
1714
+ description: string;
1715
+ uiLabel: string;
1716
+ reference?: undefined;
1717
+ })[];
1718
+ };
1689
1719
  ChartingAggFunc: {
1690
1720
  name: string;
1691
1721
  kind: string;
@@ -1702,6 +1732,17 @@ export declare const ADAPTABLE_METAMODEL: {
1702
1732
  uiLabel: string;
1703
1733
  }[];
1704
1734
  };
1735
+ ChartingOpenState: {
1736
+ name: string;
1737
+ kind: string;
1738
+ description: string;
1739
+ properties: {
1740
+ name: string;
1741
+ kind: string;
1742
+ description: string;
1743
+ uiLabel: string;
1744
+ }[];
1745
+ };
1705
1746
  ChartingOptions: {
1706
1747
  name: string;
1707
1748
  kind: string;