@adaptabletools/adaptable 10.0.4-canary.5 → 11.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 (179) hide show
  1. package/base.css +1 -5
  2. package/bundle.cjs.js +115 -113
  3. package/index.css +1 -7
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -3
  8. package/src/AdaptableOptions/AdaptableOptions.d.ts +13 -2
  9. package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
  10. package/src/AdaptableOptions/DashboardOptions.d.ts +4 -7
  11. package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
  12. package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
  13. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/NotificationsOptions.d.ts +0 -7
  16. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +14 -2
  17. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
  18. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -0
  19. package/src/Api/AdaptableApi.d.ts +6 -6
  20. package/src/Api/ChartingApi.d.ts +9 -0
  21. package/src/Api/{ChartApi.js → ChartingApi.js} +0 -0
  22. package/src/Api/ColumnApi.d.ts +11 -1
  23. package/src/Api/ConfigApi.d.ts +0 -12
  24. package/src/Api/EventApi.d.ts +3 -3
  25. package/src/Api/Events/AdaptableReady.d.ts +1 -1
  26. package/src/Api/Events/FlashingCellDisplayed.d.ts +2 -2
  27. package/src/Api/FlashingCellApi.d.ts +35 -24
  28. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  29. package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
  30. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
  31. package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
  32. package/src/Api/Implementation/ChartingApiImpl.js +10 -0
  33. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
  34. package/src/Api/Implementation/ColumnApiImpl.js +9 -3
  35. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  36. package/src/Api/Implementation/ConfigApiImpl.js +0 -16
  37. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +8 -4
  38. package/src/Api/Implementation/FlashingCellApiImpl.js +39 -24
  39. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  40. package/src/Api/Implementation/GridApiImpl.js +1 -1
  41. package/src/Api/Implementation/InternalApiImpl.d.ts +0 -4
  42. package/src/Api/Implementation/InternalApiImpl.js +1 -7
  43. package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
  44. package/src/Api/Implementation/PluginsApiImpl.js +0 -6
  45. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  46. package/src/Api/Implementation/QueryApiImpl.js +1 -1
  47. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  48. package/src/Api/InternalApi.d.ts +0 -4
  49. package/src/Api/PluginsApi.d.ts +0 -2
  50. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  51. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  52. package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
  53. package/src/PredefinedConfig/Common/Enums.js +1 -0
  54. package/src/PredefinedConfig/Common/Menu.d.ts +15 -19
  55. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  56. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  57. package/src/PredefinedConfig/Common/Types.js +0 -2
  58. package/src/PredefinedConfig/FlashingCellState.d.ts +14 -19
  59. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  60. package/src/PredefinedConfig/SystemState.d.ts +0 -4
  61. package/src/PredefinedConfig/ThemeState.d.ts +2 -1
  62. package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
  63. package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
  64. package/src/Redux/ActionsReducers/SystemRedux.d.ts +0 -12
  65. package/src/Redux/ActionsReducers/SystemRedux.js +1 -21
  66. package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -2
  67. package/src/Redux/Store/AdaptableStore.js +10 -20
  68. package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
  69. package/src/Strategy/AdaptableModuleBase.js +0 -3
  70. package/src/Strategy/AlertModule.js +1 -1
  71. package/src/Strategy/CalculatedColumnModule.js +17 -12
  72. package/src/Strategy/ChartingModule.d.ts +7 -0
  73. package/src/Strategy/ChartingModule.js +15 -0
  74. package/src/Strategy/ConditionalStyleModule.js +1 -1
  75. package/src/Strategy/FilterModule.js +3 -2
  76. package/src/Strategy/FlashingCellModule.js +4 -4
  77. package/src/Strategy/FormatColumnModule.js +2 -2
  78. package/src/Strategy/Interface/IModule.d.ts +0 -1
  79. package/src/Strategy/LayoutModule.js +15 -3
  80. package/src/Strategy/QueryModule.d.ts +1 -1
  81. package/src/Strategy/QueryModule.js +1 -3
  82. package/src/Strategy/SetingsPanelModule.d.ts +1 -0
  83. package/src/Strategy/SetingsPanelModule.js +7 -1
  84. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
  85. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
  86. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
  87. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
  88. package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
  89. package/src/Utilities/Constants/ConfigConstants.js +1 -2
  90. package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
  91. package/src/Utilities/Constants/GeneralConstants.js +1 -12
  92. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -2
  93. package/src/Utilities/Constants/ModuleConstants.js +2 -3
  94. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +19 -18
  95. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +2 -1
  96. package/src/Utilities/Helpers/AdaptableHelper.js +2 -2
  97. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  98. package/src/Utilities/ObjectFactory.d.ts +0 -10
  99. package/src/Utilities/ObjectFactory.js +2 -65
  100. package/src/Utilities/Services/EntitlementService.js +1 -1
  101. package/src/Utilities/Services/ModuleService.js +7 -11
  102. package/src/View/AdaptableView.js +1 -7
  103. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
  104. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
  105. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -9
  106. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +3 -3
  107. package/src/View/AdaptableWizardView/index.js +1 -1
  108. package/src/View/Alert/AlertEmptyView.js +1 -1
  109. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
  110. package/src/View/Alert/Wizard/AlertWizard.js +3 -3
  111. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +1 -0
  112. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +4 -1
  113. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +0 -1
  114. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
  115. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  116. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
  117. package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
  118. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  119. package/src/View/Components/NewScopeComponent.js +1 -1
  120. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +5 -4
  121. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
  122. package/src/View/Components/ToolPanel/ToolPanelPopup.js +8 -1
  123. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  124. package/src/View/Components/ValueSelector/index.js +2 -2
  125. package/src/View/Dashboard/Dashboard.js +11 -34
  126. package/src/View/Dashboard/DashboardPopup.js +22 -14
  127. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -2
  128. package/src/View/FlashingCell/Wizard/FlashingCellDurationWizardSection.js +1 -1
  129. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +6 -6
  130. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -3
  131. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +1 -1
  132. package/src/View/GridInfo/GridInfoPopup.js +3 -2
  133. package/src/View/Query/Wizard/NamedQueryWizard.js +10 -7
  134. package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
  135. package/src/View/Shortcut/shortcutKeys.js +0 -1
  136. package/src/View/UIHelper.d.ts +0 -4
  137. package/src/View/UIHelper.js +1 -34
  138. package/src/agGrid/Adaptable.d.ts +10 -5
  139. package/src/agGrid/Adaptable.js +59 -49
  140. package/src/agGrid/agGridHelper.d.ts +1 -2
  141. package/src/agGrid/agGridHelper.js +7 -4
  142. package/src/agGrid/agGridMenuHelper.js +11 -7
  143. package/src/components/ApplicationIcon.d.ts +1 -1
  144. package/src/components/icons/column-add.d.ts +3 -0
  145. package/src/components/icons/column-add.js +10 -0
  146. package/src/components/icons/index.js +2 -0
  147. package/src/metamodel/adaptable.metamodel.d.ts +58 -91
  148. package/src/metamodel/adaptable.metamodel.js +239 -288
  149. package/src/types.d.ts +4 -7
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
  153. package/src/Api/ChartApi.d.ts +0 -20
  154. package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
  155. package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
  156. package/src/Api/SparklineColumnApi.d.ts +0 -23
  157. package/src/Api/SparklineColumnApi.js +0 -2
  158. package/src/PredefinedConfig/ChartState.d.ts +0 -144
  159. package/src/PredefinedConfig/ChartState.js +0 -2
  160. package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
  161. package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
  162. package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
  163. package/src/PredefinedConfig/SparklineColumnState.js +0 -2
  164. package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
  165. package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
  166. package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
  167. package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
  168. package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
  169. package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
  170. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
  171. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
  172. package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
  173. package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
  174. package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
  175. package/src/View/Components/Popups/AdaptableChart.js +0 -40
  176. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
  177. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
  178. package/src/components/ChartContainer/index.d.ts +0 -15
  179. package/src/components/ChartContainer/index.js +0 -22
package/src/types.d.ts CHANGED
@@ -3,6 +3,7 @@ export type { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard, } from './Ad
3
3
  export type { AdaptableOptions } from './AdaptableOptions/AdaptableOptions';
4
4
  export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
5
5
  export type { ContainerOptions } from './AdaptableOptions/ContainerOptions';
6
+ export type { FlashingCellOptions } from './AdaptableOptions/FlashingCellOptions';
6
7
  export type { ActionHandler, AlertForm, AlertButtonContext, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
7
8
  export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
8
9
  export type { EditOptions, ValidationResult } from './AdaptableOptions/EditOptions';
@@ -12,7 +13,6 @@ export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions
12
13
  export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
13
14
  export type { LayoutOptions } from './AdaptableOptions/LayoutOptions';
14
15
  export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
15
- export type { ChartPluginOptions } from './AdaptableOptions/ChartPluginOptions';
16
16
  export type { FinancePluginOptions, WeightedAverageColumn, InstrumentColumn, } from './AdaptableOptions/FinancePluginOptions';
17
17
  export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
18
18
  export type { FilterOptions } from './AdaptableOptions/FilterOptions';
@@ -35,7 +35,6 @@ export type { ApplicationApi } from './Api/ApplicationApi';
35
35
  export type { BulkUpdateApi } from './Api/BulkUpdateApi';
36
36
  export type { CalculatedColumnApi } from './Api/CalculatedColumnApi';
37
37
  export type { CellSummaryApi } from './Api/CellSummaryApi';
38
- export type { ChartApi } from './Api/ChartApi';
39
38
  export type { ColumnApi } from './Api/ColumnApi';
40
39
  export type { ConditionalStyleApi } from './Api/ConditionalStyleApi';
41
40
  export type { ConfigApi } from './Api/ConfigApi';
@@ -46,6 +45,7 @@ export type { DataChangeHistoryApi } from './Api/DataChangeHistoryApi';
46
45
  export type { ExportApi } from './Api/ExportApi';
47
46
  export type { FilterApi } from './Api/FilterApi';
48
47
  export type { FinanceApi } from './Api/FinanceApi';
48
+ export type { FlashingCellApi } from './Api/FlashingCellApi';
49
49
  export type { FormatColumnApi } from './Api/FormatColumnApi';
50
50
  export type { FreeTextColumnApi } from './Api/FreeTextColumnApi';
51
51
  export type { Glue42Api } from './Api/Glue42Api';
@@ -63,7 +63,6 @@ export type { ScheduleApi } from './Api/ScheduleApi';
63
63
  export type { ScopeApi } from './Api/ScopeApi';
64
64
  export type { ShortcutApi } from './Api/ShortcutApi';
65
65
  export type { SmartEditApi } from './Api/SmartEditApi';
66
- export type { SparklineColumnApi } from './Api/SparklineColumnApi';
67
66
  export type { SystemStatusApi } from './Api/SystemStatusApi';
68
67
  export type { TeamSharingApi } from './Api/TeamSharingApi';
69
68
  export type { ThemeApi } from './Api/ThemeApi';
@@ -92,10 +91,9 @@ export type { ApplicationDataEntry, ApplicationState } from './PredefinedConfig/
92
91
  export type { SpecialColumnSettings } from './PredefinedConfig/Common/SpecialColumnSettings';
93
92
  export type { CalculatedColumn, CalculatedColumnSettings, CalculatedColumnState, } from './PredefinedConfig/CalculatedColumnState';
94
93
  export type { CellSummmary, CellSummaryOperation, CellSummaryOperationParams, } from './PredefinedConfig/Common/CellSummary';
95
- export type { FlashingCellDefinition, FlashingCellProperties, FlashingCellState, } from './PredefinedConfig/FlashingCellState';
96
- export type { CategoryChartDefinition, CategoryChartProperties, ChartDefinition, ChartProperties, ChartState, FinancialChartDataItem, FinancialChartDataSource, FinancialChartDefinition, PieChartDataItem, PieChartDefinition, PieChartProperties, SparklineChartProperties, SparklinesChartDefinition, } from './PredefinedConfig/ChartState';
94
+ export type { FlashingCellDefinition, FlashingCellState, } from './PredefinedConfig/FlashingCellState';
97
95
  export type { AdaptableAlert } from './PredefinedConfig/Common/AdaptableAlert';
98
- export type { AdaptableFlashingCell as AdaptableFlashingAlert } from './PredefinedConfig/Common/AdaptableFlashingCell';
96
+ export type { AdaptableFlashingCell } from './PredefinedConfig/Common/AdaptableFlashingCell';
99
97
  export type { AdaptableColumn, AdaptableColumnBase, } from './PredefinedConfig/Common/AdaptableColumn';
100
98
  export type { AdaptableComparerFunction } from './PredefinedConfig/Common/AdaptableComparerFunction';
101
99
  export type { SystemStatusMessageInfo } from './PredefinedConfig/Common/SystemStatusMessageInfo';
@@ -142,7 +140,6 @@ export type { SelectedCellInfo } from './PredefinedConfig/Selection/SelectedCell
142
140
  export type { SelectedRowInfo } from './PredefinedConfig/Selection/SelectedRowInfo';
143
141
  export type { GridCellRange } from './PredefinedConfig/Selection/GridCellRange';
144
142
  export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './PredefinedConfig/ShortcutState';
145
- export type { SparklineColumn, SparklineColumnState, } from './PredefinedConfig/SparklineColumnState';
146
143
  export type { SharedEntity, TeamSharingImportInfo, TeamSharingState, SharedEntityType, } from './PredefinedConfig/TeamSharingState';
147
144
  export type { AdaptableTheme, ThemeState } from './PredefinedConfig/ThemeState';
148
145
  export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './PredefinedConfig/ToolPanelState';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "10.0.4-canary.5";
1
+ declare const _default: "11.0.0-canary.0";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '10.0.4-canary.5'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '11.0.0-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,20 +0,0 @@
1
- /**
2
- * Options for managing Charts in Adaptable
3
- */
4
- export interface ChartPluginOptions {
5
- /**
6
- * Whether a chart is displayed at start-up; only applies if *CurrentChartName* property in Chart State is set
7
- * @defaultValue false
8
- */
9
- displayOnStartUp?: boolean;
10
- /**
11
- * Displays charts in a modal popup; if false, charts appear in the div specified im *chartContainer* property of Container Options
12
- * @defaultValue false
13
- */
14
- showModal?: boolean;
15
- /**
16
- * Maximum number of items to show in a pie chart.
17
- * @defaultValue 50
18
- */
19
- pieChartMaxItems?: number;
20
- }
@@ -1,20 +0,0 @@
1
- import { ChartState, ChartDefinition } from '../PredefinedConfig/ChartState';
2
- import { ChartPluginOptions } from '../AdaptableOptions/ChartPluginOptions';
3
- /**
4
- * Provides run time access to the Chart Plugin
5
- */
6
- export interface ChartApi {
7
- getPluginOptions(): ChartPluginOptions;
8
- /**
9
- * Retrieves the Chart section of Adaptable State
10
- */
11
- getChartState(): ChartState;
12
- /**
13
- * Returns all the Chart Definitions in the State
14
- */
15
- getAllChartDefinitions(): ChartDefinition[];
16
- /**
17
- * Opens the Chart popup screen
18
- */
19
- showChartPopup(): void;
20
- }
@@ -1,9 +0,0 @@
1
- import { ApiBase } from './ApiBase';
2
- import { SparklineColumnApi } from '../SparklineColumnApi';
3
- import { SparklineColumnState, SparklineColumn } from '../../PredefinedConfig/SparklineColumnState';
4
- export declare class SparklineColumnApiImpl extends ApiBase implements SparklineColumnApi {
5
- getSparklineColumnState(): SparklineColumnState;
6
- getAllSparklineColumn(): SparklineColumn[];
7
- isSparklineColumn(columnId: string): boolean;
8
- getSparklineByColumn(columnId: string): SparklineColumn;
9
- }
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SparklineColumnApiImpl = void 0;
4
- const ApiBase_1 = require("./ApiBase");
5
- class SparklineColumnApiImpl extends ApiBase_1.ApiBase {
6
- getSparklineColumnState() {
7
- return this.getAdaptableState().SparklineColumn;
8
- }
9
- getAllSparklineColumn() {
10
- let sparklineColumns = this.getAdaptableState().SparklineColumn
11
- .SparklineColumns;
12
- if (sparklineColumns == undefined) {
13
- sparklineColumns = [];
14
- }
15
- return sparklineColumns;
16
- }
17
- isSparklineColumn(columnId) {
18
- return this.getAllSparklineColumn().find((sc) => sc.ColumnId === columnId) != null;
19
- }
20
- getSparklineByColumn(columnId) {
21
- return this.getAllSparklineColumn().find((column) => column.ColumnId === columnId);
22
- }
23
- }
24
- exports.SparklineColumnApiImpl = SparklineColumnApiImpl;
@@ -1,23 +0,0 @@
1
- import { SparklineColumnState, SparklineColumn } from '../PredefinedConfig/SparklineColumnState';
2
- /**
3
- * Provides run-time access to Sparkline Column Module and associated state
4
- */
5
- export interface SparklineColumnApi {
6
- /**
7
- * Retrieves SparklineColumn section from Adaptable State
8
- */
9
- getSparklineColumnState(): SparklineColumnState;
10
- /**
11
- * Returns all Sparkline columns in Adaptable State
12
- */
13
- getAllSparklineColumn(): SparklineColumn[];
14
- /**
15
- * Returns a Sparkline column by id
16
- */
17
- getSparklineByColumn(columnId: string): SparklineColumn;
18
- /**
19
- * True if the Column with given `columnId` is Sparkline Column
20
- * @param columnId id of Column to check
21
- */
22
- isSparklineColumn(columnId: string): boolean;
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,144 +0,0 @@
1
- import { ConfigState } from './ConfigState';
2
- import { AdaptableObject } from './Common/AdaptableObject';
3
- import { ChartType, OthersCategoryType, PieChartLabelPosition, SliceLabelOption, CategoryChartType, CrosshairDisplayMode, ToolTipType, AxisLabelsLocation, LabelVisibility, AxisScale, AxisAngle, HorizontalAlignment } from './Common/ChartEnums';
4
- import { TypeUuid } from './Uuid';
5
- export interface ChartState extends ConfigState {
6
- ChartDefinitions?: ChartDefinition[];
7
- CurrentChartName?: string;
8
- RefreshRate?: number;
9
- }
10
- /**
11
- * Our Chart Definitions which will get added to and updated as we add new charts
12
- * But the basic idea is that each chart will have a base chart defintion that just includes a name, description, type and chart properties
13
- * These chart properties are specialised for each chart type: they are all nullable types because we use defaults in the DefaultXXXProperties that we assign
14
- */
15
- export interface ChartDefinition extends AdaptableObject {
16
- Name: string;
17
- Description: string;
18
- ChartProperties: ChartProperties;
19
- ChartType: ChartType;
20
- VisibleRowsOnly: boolean;
21
- }
22
- export interface ChartProperties extends AdaptableObject {
23
- }
24
- export interface PieChartDefinition extends ChartDefinition {
25
- PrimaryColumnId: string;
26
- SecondaryColumnId?: string;
27
- SecondaryColumnOperation: 'Sum' | 'Count';
28
- PrimaryKeyValues?: any[];
29
- }
30
- export interface FinancialChartDataSource {
31
- Name: string;
32
- XAxisDateColumnId: string;
33
- YAxisNumericOpenColumnId: string;
34
- YAxisNumericCloseColumnId: string;
35
- YAxisNumericHighColumnId: string;
36
- YAxisNumericLowColumnId: string;
37
- YAxisNumericVolumeColumnId?: string;
38
- }
39
- export interface FinancialChartDataItem {
40
- time: Date;
41
- open?: number;
42
- high?: number;
43
- low?: number;
44
- close?: number;
45
- volume?: number;
46
- }
47
- export interface FinancialChartDefinition extends ChartDefinition {
48
- DataSources: FinancialChartDataSource[];
49
- }
50
- export interface SparklinesChartDefinition extends ChartDefinition {
51
- ColumnId: string;
52
- Expression?: string;
53
- PrimaryKeyValues?: any[];
54
- }
55
- export interface CategoryChartDefinition extends ChartDefinition {
56
- YAxisColumnIds: string[];
57
- YAxisTotal: 'Sum' | 'Average';
58
- XAxisColumnId: string;
59
- XAxisExpression?: string;
60
- XAxisSharedQueryId?: TypeUuid;
61
- }
62
- export interface PieChartProperties extends ChartProperties {
63
- OthersCategoryThreshold?: number;
64
- OthersCategoryType?: OthersCategoryType;
65
- PieChartLabelPosition?: PieChartLabelPosition;
66
- SliceLabelsMapping?: SliceLabelOption;
67
- SliceValuesMapping?: SliceLabelOption;
68
- SliceLegendMapping?: SliceLabelOption;
69
- ShowAsDoughnut?: boolean;
70
- }
71
- export interface SparklineChartProperties extends ChartProperties {
72
- Maximum?: number;
73
- Minimum?: number;
74
- DisplayType: 'Line' | 'Column' | 'Area';
75
- UseMinStaticValue: boolean;
76
- UseMaxStaticValue: boolean;
77
- Brush: string;
78
- NegativeBrush: string;
79
- HighMarkerVisibility: 'Visible' | 'Collapsed';
80
- LowMarkerVisibility: 'Visible' | 'Collapsed';
81
- FirstMarkerVisibility: 'Visible' | 'Collpsed';
82
- LastMarkerVisibility: 'Visible' | 'Collapsed';
83
- NegativeMarkerVisibility: 'Visible' | 'Collapsed';
84
- MarkerVisibility: 'Visible' | 'Collapsed';
85
- FirstMarkerBrush: string;
86
- LastMarkerBrush: string;
87
- HighMarkerBrush: string;
88
- LowMarkerBrush: string;
89
- NegativeMarkerBrush: string;
90
- }
91
- export interface CategoryChartProperties extends ChartProperties {
92
- CategoryChartType?: CategoryChartType;
93
- SeriesThickness?: number;
94
- MarkerType?: string;
95
- CalloutsType?: string;
96
- CalloutsInterval?: number;
97
- EnableFinalValueAnnotations?: boolean;
98
- CrosshairDisplayMode?: CrosshairDisplayMode;
99
- CrosshairSnapToData?: boolean;
100
- CrosshairAnnotationEnabled?: boolean;
101
- ToolTipType?: ToolTipType;
102
- YAxisLabelLocation?: AxisLabelsLocation;
103
- YAxisLabelVisibility?: LabelVisibility;
104
- YAxisLabelScale?: AxisScale;
105
- YAxisIntervalCustom?: boolean;
106
- YAxisIntervalValue?: number;
107
- YAxisTitle?: string;
108
- YAxisLabelColor?: string;
109
- YAxisTitleColor?: string;
110
- YAxisMinimumValue?: number;
111
- YAxisMaximumValue?: number;
112
- YAxisIsLogarithmic?: boolean;
113
- YAxisInverted?: boolean;
114
- XAxisLabelLocation?: AxisLabelsLocation;
115
- XAxisLabelVisibility?: LabelVisibility;
116
- XAxisLabelColor?: string;
117
- XAxisIntervalCustom?: boolean;
118
- XAxisIntervalValue?: number;
119
- XAxisTitle?: string;
120
- XAxisTitleColor?: string;
121
- XAxisGap?: number;
122
- XAxisOverlap: number;
123
- XAxisAngle?: AxisAngle;
124
- XAxisInverted?: boolean;
125
- EnableTransitions?: boolean;
126
- TransitionInDuration?: number;
127
- TitleAlignment?: HorizontalAlignment;
128
- SubTitleAlignment?: HorizontalAlignment;
129
- EnableSeriesHighlighting?: boolean;
130
- EnableCategoryHighlighting?: boolean;
131
- EnableItemHighlighting?: boolean;
132
- }
133
- export interface PieChartDataItem {
134
- Name: string;
135
- Value: any;
136
- Ratio: number;
137
- ValueAndName?: string;
138
- RatioAndName?: string;
139
- ErrorMessage?: string;
140
- }
141
- export interface ChartData {
142
- Data: any;
143
- ErrorMessage: string;
144
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,123 +0,0 @@
1
- export declare enum ChartVisibility {
2
- Maximised = "Maximised",
3
- Minimised = "Minimised",
4
- Hidden = "Hidden"
5
- }
6
- export declare enum ChartType {
7
- CategoryChart = "CategoryChart",
8
- PieChart = "PieChart",
9
- FinancialChart = "FinancialChart",
10
- SparklinesChart = "SparklinesChart",
11
- Data = "Data"
12
- }
13
- export declare enum CategoryChartType {
14
- Column = "Column",
15
- Area = "Area",
16
- Line = "Line",
17
- Point = "Point",
18
- Spline = "Spline",
19
- SplineArea = "SplineArea",
20
- StepArea = "StepArea",
21
- StepLine = "StepLine",
22
- Waterfall = "Waterfall"
23
- }
24
- export declare enum CrosshairDisplayMode {
25
- None = "None",
26
- Horizontal = "Horizontal",
27
- Vertical = "Vertical",
28
- Both = "Both"
29
- }
30
- export declare enum AxisLabelsLocation {
31
- OutsideTop = "OutsideTop",
32
- OutsideBottom = "OutsideBottom",
33
- OutsideLeft = "OutsideLeft",
34
- OutsideRight = "OutsideRight",
35
- InsideTop = "InsideTop",
36
- InsideBottom = "InsideBottom",
37
- InsideLeft = "InsideLeft",
38
- InsideRight = "InsideRight"
39
- }
40
- export declare enum AxisScale {
41
- Linear = "Linear",
42
- Log = "Log"
43
- }
44
- export declare enum HorizontalAlignment {
45
- Left = "Left",
46
- Center = "Center",
47
- Right = "Right"
48
- }
49
- export declare enum AxisTotal {
50
- Sum = "Sum",
51
- Average = "Average"
52
- }
53
- export declare enum LabelVisibility {
54
- Visible = "visible",
55
- Collapsed = "collapsed"
56
- }
57
- export declare enum ToolTipType {
58
- Default = "Default",
59
- Item = "Item",
60
- Category = "Category",
61
- None = "None"
62
- }
63
- export declare enum AxisAngle {
64
- Horizontal = "Horizontal",
65
- Diagonal = "Diagonal",
66
- Vertical = "Vertical"
67
- }
68
- export declare enum MarkerType {
69
- Default = "Default",
70
- Automatic = "Automatic",
71
- Circle = "Circle",
72
- Triangle = "Triangle",
73
- Pyramid = "Pyramid",
74
- Square = "Square",
75
- Diamond = "Diamond",
76
- Pentagon = "Pentagon",
77
- Hexagon = "Hexagon",
78
- Tetragram = "Tetragram",
79
- Pentagram = "Pentagram",
80
- Hexagram = "Hexagram",
81
- None = "None"
82
- }
83
- export declare enum CalloutsType {
84
- None = "None",
85
- DataRanges = "Data Ranges",
86
- DataPoints = "Data Points",
87
- DataChangesInValues = "Data Changes",
88
- DataChangesInPercentage = "Data Changes (%)"
89
- }
90
- export declare enum PieChartLabelPosition {
91
- BestFit = "BestFit",
92
- Center = "Center",
93
- InsideEnd = "InsideEnd",
94
- OutsideEnd = "OutsideEnd",
95
- None = "None"
96
- }
97
- export declare enum SecondaryColumnOperation {
98
- Sum = "Sum",
99
- Count = "Count"
100
- }
101
- export declare enum SliceLabelOption {
102
- Value = "Value",
103
- ValueAndName = "ValueAndName",
104
- Ratio = "Ratio",
105
- RatioAndName = "RatioAndName",
106
- Name = "Name"
107
- }
108
- export declare enum SliceSortOption {
109
- None = "None",
110
- ValueDescending = "Value Descending",
111
- ValueAscending = "Value Ascending",
112
- NameDescending = "Name Descending",
113
- NameAscending = "Name Ascending"
114
- }
115
- export declare enum OthersCategoryType {
116
- Number = "Number",
117
- Percent = "Percent"
118
- }
119
- export declare enum SparklineTypeEnum {
120
- Line = "Line",
121
- Column = "Column",
122
- Area = "Area"
123
- }
@@ -1,152 +0,0 @@
1
- "use strict";
2
- // General enums for all charts
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.SparklineTypeEnum = exports.OthersCategoryType = exports.SliceSortOption = exports.SliceLabelOption = exports.SecondaryColumnOperation = exports.PieChartLabelPosition = exports.CalloutsType = exports.MarkerType = exports.AxisAngle = exports.ToolTipType = exports.LabelVisibility = exports.AxisTotal = exports.HorizontalAlignment = exports.AxisScale = exports.AxisLabelsLocation = exports.CrosshairDisplayMode = exports.CategoryChartType = exports.ChartType = exports.ChartVisibility = void 0;
5
- var ChartVisibility;
6
- (function (ChartVisibility) {
7
- ChartVisibility["Maximised"] = "Maximised";
8
- ChartVisibility["Minimised"] = "Minimised";
9
- ChartVisibility["Hidden"] = "Hidden";
10
- })(ChartVisibility = exports.ChartVisibility || (exports.ChartVisibility = {}));
11
- var ChartType;
12
- (function (ChartType) {
13
- ChartType["CategoryChart"] = "CategoryChart";
14
- ChartType["PieChart"] = "PieChart";
15
- ChartType["FinancialChart"] = "FinancialChart";
16
- ChartType["SparklinesChart"] = "SparklinesChart";
17
- ChartType["Data"] = "Data";
18
- })(ChartType = exports.ChartType || (exports.ChartType = {}));
19
- // Catategory Charts
20
- var CategoryChartType;
21
- (function (CategoryChartType) {
22
- CategoryChartType["Column"] = "Column";
23
- CategoryChartType["Area"] = "Area";
24
- CategoryChartType["Line"] = "Line";
25
- CategoryChartType["Point"] = "Point";
26
- CategoryChartType["Spline"] = "Spline";
27
- CategoryChartType["SplineArea"] = "SplineArea";
28
- CategoryChartType["StepArea"] = "StepArea";
29
- CategoryChartType["StepLine"] = "StepLine";
30
- CategoryChartType["Waterfall"] = "Waterfall";
31
- })(CategoryChartType = exports.CategoryChartType || (exports.CategoryChartType = {}));
32
- var CrosshairDisplayMode;
33
- (function (CrosshairDisplayMode) {
34
- CrosshairDisplayMode["None"] = "None";
35
- CrosshairDisplayMode["Horizontal"] = "Horizontal";
36
- CrosshairDisplayMode["Vertical"] = "Vertical";
37
- CrosshairDisplayMode["Both"] = "Both";
38
- })(CrosshairDisplayMode = exports.CrosshairDisplayMode || (exports.CrosshairDisplayMode = {}));
39
- var AxisLabelsLocation;
40
- (function (AxisLabelsLocation) {
41
- AxisLabelsLocation["OutsideTop"] = "OutsideTop";
42
- AxisLabelsLocation["OutsideBottom"] = "OutsideBottom";
43
- AxisLabelsLocation["OutsideLeft"] = "OutsideLeft";
44
- AxisLabelsLocation["OutsideRight"] = "OutsideRight";
45
- // these enums are used only when using crossingAxis and crossingValue properties:
46
- AxisLabelsLocation["InsideTop"] = "InsideTop";
47
- AxisLabelsLocation["InsideBottom"] = "InsideBottom";
48
- AxisLabelsLocation["InsideLeft"] = "InsideLeft";
49
- AxisLabelsLocation["InsideRight"] = "InsideRight";
50
- })(AxisLabelsLocation = exports.AxisLabelsLocation || (exports.AxisLabelsLocation = {}));
51
- var AxisScale;
52
- (function (AxisScale) {
53
- AxisScale["Linear"] = "Linear";
54
- AxisScale["Log"] = "Log";
55
- })(AxisScale = exports.AxisScale || (exports.AxisScale = {}));
56
- var HorizontalAlignment;
57
- (function (HorizontalAlignment) {
58
- HorizontalAlignment["Left"] = "Left";
59
- HorizontalAlignment["Center"] = "Center";
60
- HorizontalAlignment["Right"] = "Right";
61
- })(HorizontalAlignment = exports.HorizontalAlignment || (exports.HorizontalAlignment = {}));
62
- var AxisTotal;
63
- (function (AxisTotal) {
64
- AxisTotal["Sum"] = "Sum";
65
- AxisTotal["Average"] = "Average";
66
- })(AxisTotal = exports.AxisTotal || (exports.AxisTotal = {}));
67
- var LabelVisibility;
68
- (function (LabelVisibility) {
69
- LabelVisibility["Visible"] = "visible";
70
- LabelVisibility["Collapsed"] = "collapsed";
71
- })(LabelVisibility = exports.LabelVisibility || (exports.LabelVisibility = {}));
72
- var ToolTipType;
73
- (function (ToolTipType) {
74
- ToolTipType["Default"] = "Default";
75
- ToolTipType["Item"] = "Item";
76
- ToolTipType["Category"] = "Category";
77
- ToolTipType["None"] = "None";
78
- })(ToolTipType = exports.ToolTipType || (exports.ToolTipType = {}));
79
- var AxisAngle;
80
- (function (AxisAngle) {
81
- AxisAngle["Horizontal"] = "Horizontal";
82
- AxisAngle["Diagonal"] = "Diagonal";
83
- AxisAngle["Vertical"] = "Vertical";
84
- })(AxisAngle = exports.AxisAngle || (exports.AxisAngle = {}));
85
- var MarkerType;
86
- (function (MarkerType) {
87
- // Unset = 'Unset', // commented out because Default is more descriptive enum
88
- MarkerType["Default"] = "Default";
89
- MarkerType["Automatic"] = "Automatic";
90
- MarkerType["Circle"] = "Circle";
91
- MarkerType["Triangle"] = "Triangle";
92
- MarkerType["Pyramid"] = "Pyramid";
93
- MarkerType["Square"] = "Square";
94
- MarkerType["Diamond"] = "Diamond";
95
- MarkerType["Pentagon"] = "Pentagon";
96
- MarkerType["Hexagon"] = "Hexagon";
97
- MarkerType["Tetragram"] = "Tetragram";
98
- MarkerType["Pentagram"] = "Pentagram";
99
- MarkerType["Hexagram"] = "Hexagram";
100
- MarkerType["None"] = "None";
101
- })(MarkerType = exports.MarkerType || (exports.MarkerType = {}));
102
- var CalloutsType;
103
- (function (CalloutsType) {
104
- CalloutsType["None"] = "None";
105
- CalloutsType["DataRanges"] = "Data Ranges";
106
- CalloutsType["DataPoints"] = "Data Points";
107
- CalloutsType["DataChangesInValues"] = "Data Changes";
108
- CalloutsType["DataChangesInPercentage"] = "Data Changes (%)";
109
- // note populate getCalloutTypeOptions() with names of non-numeric data columns
110
- // to add more callout types
111
- })(CalloutsType = exports.CalloutsType || (exports.CalloutsType = {}));
112
- // Pie Charts
113
- var PieChartLabelPosition;
114
- (function (PieChartLabelPosition) {
115
- PieChartLabelPosition["BestFit"] = "BestFit";
116
- PieChartLabelPosition["Center"] = "Center";
117
- PieChartLabelPosition["InsideEnd"] = "InsideEnd";
118
- PieChartLabelPosition["OutsideEnd"] = "OutsideEnd";
119
- PieChartLabelPosition["None"] = "None";
120
- })(PieChartLabelPosition = exports.PieChartLabelPosition || (exports.PieChartLabelPosition = {}));
121
- var SecondaryColumnOperation;
122
- (function (SecondaryColumnOperation) {
123
- SecondaryColumnOperation["Sum"] = "Sum";
124
- SecondaryColumnOperation["Count"] = "Count";
125
- })(SecondaryColumnOperation = exports.SecondaryColumnOperation || (exports.SecondaryColumnOperation = {}));
126
- var SliceLabelOption;
127
- (function (SliceLabelOption) {
128
- SliceLabelOption["Value"] = "Value";
129
- SliceLabelOption["ValueAndName"] = "ValueAndName";
130
- SliceLabelOption["Ratio"] = "Ratio";
131
- SliceLabelOption["RatioAndName"] = "RatioAndName";
132
- SliceLabelOption["Name"] = "Name";
133
- })(SliceLabelOption = exports.SliceLabelOption || (exports.SliceLabelOption = {}));
134
- var SliceSortOption;
135
- (function (SliceSortOption) {
136
- SliceSortOption["None"] = "None";
137
- SliceSortOption["ValueDescending"] = "Value Descending";
138
- SliceSortOption["ValueAscending"] = "Value Ascending";
139
- SliceSortOption["NameDescending"] = "Name Descending";
140
- SliceSortOption["NameAscending"] = "Name Ascending";
141
- })(SliceSortOption = exports.SliceSortOption || (exports.SliceSortOption = {}));
142
- var OthersCategoryType;
143
- (function (OthersCategoryType) {
144
- OthersCategoryType["Number"] = "Number";
145
- OthersCategoryType["Percent"] = "Percent";
146
- })(OthersCategoryType = exports.OthersCategoryType || (exports.OthersCategoryType = {}));
147
- var SparklineTypeEnum;
148
- (function (SparklineTypeEnum) {
149
- SparklineTypeEnum["Line"] = "Line";
150
- SparklineTypeEnum["Column"] = "Column";
151
- SparklineTypeEnum["Area"] = "Area";
152
- })(SparklineTypeEnum = exports.SparklineTypeEnum || (exports.SparklineTypeEnum = {}));
@@ -1,40 +0,0 @@
1
- import { ConfigState } from './ConfigState';
2
- import { AdaptableObject } from './Common/AdaptableObject';
3
- /**
4
- * Predefined Configuration for Sparkline Columns
5
- */
6
- export interface SparklineColumnState extends ConfigState {
7
- /**
8
- * List of columns to be displayed as Sparkline
9
- */
10
- SparklineColumns?: SparklineColumn[];
11
- }
12
- /**
13
- * SparklineColumn object used in Sparkline Column function;
14
- */
15
- export interface SparklineColumn extends AdaptableObject {
16
- /**
17
- * Id of the Column
18
- */
19
- ColumnId: string;
20
- /**
21
- * Type of Sparkline Chart: 'Line', 'Column' or 'Area'
22
- */
23
- SparklineType?: 'Line' | 'Column' | 'Area';
24
- /**
25
- * Minimum value for Sparkline chart of column
26
- */
27
- MinimumValue?: number;
28
- /**
29
- * Maximum value for Sparkline chart of column
30
- */
31
- MaximumValue?: number;
32
- /**
33
- * Shows tooltip displaying underlying Sparkline values
34
- */
35
- ShowToolTip?: boolean;
36
- /**
37
- * Colour of Sparkline line (if Type is 'Line')
38
- */
39
- LineColor?: string;
40
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });