@adaptabletools/adaptable 10.0.0-canary.3 → 10.0.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 (129) hide show
  1. package/base.css +77 -29
  2. package/index.css +89 -31
  3. package/package.json +1 -5
  4. package/publishTimestamp.d.ts +1 -1
  5. package/publishTimestamp.js +1 -1
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -2
  7. package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -1
  8. package/src/AdaptableOptions/FilterOptions.d.ts +14 -7
  9. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
  10. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  11. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +7 -0
  12. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +89 -4
  13. package/src/Api/AlertApi.d.ts +1 -1
  14. package/src/Api/ColumnApi.d.ts +33 -0
  15. package/src/Api/ConfigApi.d.ts +8 -0
  16. package/src/Api/DataChangeHistoryApi.d.ts +10 -4
  17. package/src/Api/GridApi.d.ts +34 -8
  18. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  19. package/src/Api/Implementation/AlertApiImpl.js +11 -4
  20. package/src/Api/Implementation/ColumnApiImpl.d.ts +7 -0
  21. package/src/Api/Implementation/ColumnApiImpl.js +37 -1
  22. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  23. package/src/Api/Implementation/ConfigApiImpl.js +28 -17
  24. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +3 -0
  26. package/src/Api/Implementation/FreeTextColumnApiImpl.js +2 -1
  27. package/src/Api/Implementation/GridApiImpl.d.ts +9 -0
  28. package/src/Api/Implementation/GridApiImpl.js +17 -1
  29. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -0
  30. package/src/Api/Implementation/InternalApiImpl.js +16 -0
  31. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +2 -0
  32. package/src/Api/Implementation/QueryLanguageApiImpl.js +3 -0
  33. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +11 -8
  34. package/src/Api/Implementation/UserInterfaceApiImpl.js +57 -80
  35. package/src/Api/InternalApi.d.ts +2 -0
  36. package/src/Api/QueryLanguageApi.d.ts +5 -0
  37. package/src/Api/UserInterfaceApi.d.ts +14 -5
  38. package/src/PredefinedConfig/AlertState.d.ts +10 -0
  39. package/src/PredefinedConfig/CalculatedColumnState.d.ts +4 -37
  40. package/src/PredefinedConfig/Common/AdaptablePredicate.js +16 -15
  41. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
  42. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
  43. package/src/{AdaptableOptions/DataChangeTrackingOptions.js → PredefinedConfig/Common/SpecialColumnSettings.js} +0 -0
  44. package/src/PredefinedConfig/FilterState.d.ts +1 -1
  45. package/src/PredefinedConfig/FreeTextColumnState.d.ts +10 -0
  46. package/src/PredefinedConfig/Selection/GridRow.d.ts +12 -4
  47. package/src/PredefinedConfig/SystemState.d.ts +4 -1
  48. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -6
  49. package/src/Redux/ActionsReducers/SystemRedux.js +11 -11
  50. package/src/Redux/Store/AdaptableReduxMerger.js +7 -1
  51. package/src/Redux/Store/AdaptableStore.js +12 -0
  52. package/src/Strategy/AlertModule.js +1 -1
  53. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  54. package/src/Strategy/ExportModule.d.ts +0 -2
  55. package/src/Strategy/ExportModule.js +58 -61
  56. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -4
  57. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +11 -5
  58. package/src/Utilities/Helpers/DateHelper.d.ts +8 -2
  59. package/src/Utilities/Helpers/DateHelper.js +42 -20
  60. package/src/Utilities/ObjectFactory.d.ts +1 -1
  61. package/src/Utilities/ObjectFactory.js +13 -1
  62. package/src/Utilities/Services/AlertService.d.ts +1 -0
  63. package/src/Utilities/Services/AlertService.js +5 -0
  64. package/src/Utilities/Services/DataService.d.ts +0 -4
  65. package/src/Utilities/Services/DataService.js +2 -18
  66. package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -1
  67. package/src/Utilities/Services/Interface/IDataService.d.ts +0 -2
  68. package/src/Utilities/Services/Interface/ILicenseService.d.ts +2 -1
  69. package/src/Utilities/Services/LicenseService.d.ts +2 -2
  70. package/src/Utilities/Services/MetamodelService.js +1 -0
  71. package/src/Utilities/Services/ModuleService.js +31 -24
  72. package/src/Utilities/Services/ReportService.js +1 -1
  73. package/src/Utilities/Services/TeamSharingService.d.ts +1 -0
  74. package/src/Utilities/Services/TeamSharingService.js +4 -2
  75. package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
  76. package/src/Utilities/runIfNotResolvedIn.js +23 -0
  77. package/src/View/AdaptableView.js +1 -1
  78. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +19 -5
  79. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
  80. package/src/View/BulkUpdate/BulkUpdatePopup.js +4 -2
  81. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
  82. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
  83. package/src/View/Components/FilterForm/FilterForm.d.ts +3 -51
  84. package/src/View/Components/FilterForm/FilterForm.js +44 -23
  85. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +3 -0
  86. package/src/View/Components/FilterForm/ListBoxFilterForm.js +14 -5
  87. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
  88. package/src/View/Components/FilterForm/QuickFilterForm.js +64 -23
  89. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
  90. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
  91. package/src/View/Components/Popups/AdaptablePopup.d.ts +1 -1
  92. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +10 -2
  93. package/src/View/Components/Selectors/ColumnValueSelector.js +45 -13
  94. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
  95. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +42 -32
  96. package/src/View/DataChangeHistory/DataChangeHistoryPopup.d.ts +5 -1
  97. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +8 -5
  98. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +3 -1
  99. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +3 -1
  100. package/src/View/GridInfo/GridInfoPopup.js +4 -1
  101. package/src/View/Query/QueryViewPanel.js +1 -1
  102. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.d.ts +1 -1
  103. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +6 -8
  104. package/src/View/UIHelper.d.ts +2 -0
  105. package/src/View/UIHelper.js +10 -1
  106. package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
  107. package/src/agGrid/ActionColumnRenderer.js +20 -3
  108. package/src/agGrid/Adaptable.d.ts +20 -4
  109. package/src/agGrid/Adaptable.js +186 -55
  110. package/src/components/Dashboard/Dashboard.js +1 -1
  111. package/src/components/DropdownButton/index.js +1 -1
  112. package/src/components/ExpressionEditor/index.js +2 -1
  113. package/src/components/Loader/Loader.d.ts +7 -0
  114. package/src/components/Loader/Loader.js +13 -0
  115. package/src/components/Loader/index.d.ts +2 -0
  116. package/src/components/Loader/index.js +7 -0
  117. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -0
  118. package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
  119. package/src/metamodel/adaptable.metamodel.d.ts +74 -34
  120. package/src/metamodel/adaptable.metamodel.js +346 -116
  121. package/src/parser/src/types.d.ts +11 -11
  122. package/src/types.d.ts +4 -4
  123. package/version.d.ts +1 -1
  124. package/version.js +1 -1
  125. package/src/AdaptableOptions/DataChangeTrackingOptions.d.ts +0 -16
  126. package/src/Utilities/Interface/ProgressIndicator.d.ts +0 -4
  127. package/src/Utilities/Interface/ProgressIndicator.js +0 -2
  128. package/src/View/Export/ProgressIndicator.d.ts +0 -6
  129. package/src/View/Export/ProgressIndicator.js +0 -25
@@ -42,40 +42,40 @@ export interface ExpressionContext {
42
42
  }
43
43
  export declare type ExpressionFunctionMap = Record<string, ExpressionFunction>;
44
44
  /**
45
- * Defines a Function used in an Adaptable Expression
45
+ * Defines an AdapTableQL Function used in an Adaptable Expression
46
46
  */
47
47
  export interface ExpressionFunction {
48
48
  /**
49
- * Actual function called by the Expression (mandatory prop)
49
+ * Actual AdapTableQL Function called by the Expression (mandatory prop)
50
50
  */
51
51
  handler: ExpressionFunctionHandler;
52
52
  /**
53
- * Removes entry from Expression Editor Function dropdown
53
+ * Removes entry from Expression Editor's Functions dropdown
54
54
  */
55
55
  isHiddenFromMenu?: boolean;
56
56
  /**
57
- * Whether function returns true - it so, then can be used as Query
57
+ * Whether the AdapTableQL Function returns true, if so can be used as Query
58
58
  */
59
59
  isPredicate?: boolean;
60
60
  /**
61
- * What the function does
61
+ * What the AdapTableQL Function does
62
62
  */
63
63
  description?: string;
64
64
  /**
65
- * How function should be called
65
+ * How the AdapTableQL Function should be called
66
66
  */
67
67
  signatures?: string[];
68
68
  /**
69
- * Examples that use the function
69
+ * Examples that use the AdapTableQL Function
70
70
  */
71
71
  examples?: string[];
72
72
  /**
73
- * If TRUE, the expression is evaluated eagerly, without handling the inner AST nodes
73
+ * Whether Expression is evaluated eagerly (without handling inner AST nodes)
74
74
  */
75
75
  hasEagerEvaluation?: boolean;
76
76
  }
77
77
  /**
78
- * Defines how an Expression Function is described in Expression Editor
78
+ * Defines how an AdapTableQL Function is described in Expression Editor
79
79
  */
80
80
  export declare type ExpressionFunctionDocBlock = {
81
81
  type: 'code';
@@ -85,7 +85,7 @@ export declare type ExpressionFunctionDocBlock = {
85
85
  content: string;
86
86
  };
87
87
  /**
88
- * The javascript function that is invoked by an Expression Function
88
+ * The javascript function which is invoked by an AdapTableQL Function
89
89
  */
90
90
  export declare type ExpressionFunctionHandler = (
91
91
  /**
@@ -93,6 +93,6 @@ export declare type ExpressionFunctionHandler = (
93
93
  */
94
94
  args: any[],
95
95
  /**
96
- * Context object including current RowNode and Adaptable API
96
+ * Context Object - including current RowNode and AdaptableAPI
97
97
  */
98
98
  context: ExpressionContext) => any;
package/src/types.d.ts CHANGED
@@ -15,7 +15,6 @@ export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptio
15
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
- export type { DataChangeTrackingOptions } from './AdaptableOptions/DataChangeTrackingOptions';
19
18
  export type { FilterOptions } from './AdaptableOptions/FilterOptions';
20
19
  export type { SearchOptions } from './AdaptableOptions/SearchOptions';
21
20
  export type { AdaptablePersistStateFunction, AdaptableStateFunctionConfig, AdaptableLoadStateFunction, StateOptions, } from './AdaptableOptions/StateOptions';
@@ -24,7 +23,7 @@ export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterA
24
23
  export type { ConfigState } from './PredefinedConfig/ConfigState';
25
24
  export type { TeamSharingOptions } from './AdaptableOptions/TeamSharingOptions';
26
25
  export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
27
- export type { UserInterfaceOptions, CellValuesList, ActionColumnButtonContext, ActionColumn, } from './AdaptableOptions/UserInterfaceOptions';
26
+ export type { UserInterfaceOptions, CellValuesList, ActionColumnButtonContext, ActionColumn, ActionColumnSettings, } from './AdaptableOptions/UserInterfaceOptions';
28
27
  export type { MenuOptions } from './AdaptableOptions/MenuOptions';
29
28
  export type { EntitlementOptions } from './AdaptableOptions/EntitlementOptions';
30
29
  export type { QueryLanguageOptions, ModuleExpressionFunctions, } from './AdaptableOptions/QueryLanguageOptions';
@@ -42,6 +41,7 @@ export type { ConfigApi } from './Api/ConfigApi';
42
41
  export type { CustomSortApi } from './Api/CustomSortApi';
43
42
  export type { DashboardApi } from './Api/DashboardApi';
44
43
  export type { DataSourceApi } from './Api/DataSourceApi';
44
+ export type { DataChangeHistoryApi } from './Api/DataChangeHistoryApi';
45
45
  export type { ExportApi } from './Api/ExportApi';
46
46
  export type { FilterApi } from './Api/FilterApi';
47
47
  export type { FinanceApi } from './Api/FinanceApi';
@@ -68,7 +68,6 @@ export type { TeamSharingApi } from './Api/TeamSharingApi';
68
68
  export type { ThemeApi } from './Api/ThemeApi';
69
69
  export type { ToolPanelApi } from './Api/ToolPanelApi';
70
70
  export type { UserInterfaceApi } from './Api/UserInterfaceApi';
71
- export type { DataChangeHistoryApi } from './Api/DataChangeHistoryApi';
72
71
  export type { EventApi } from './Api/EventApi';
73
72
  export type { AdaptableReadyInfo } from './Api/Events/AdaptableReady';
74
73
  export type { AlertFiredInfo } from './Api/Events/AlertFired';
@@ -89,6 +88,7 @@ export type { AdaptableStateChangedInfo } from './Api/Events/AdaptableStateChang
89
88
  export type { AdaptableState } from './PredefinedConfig/AdaptableState';
90
89
  export type { BaseAlertDefinition, AlertDefinition, FlashingAlertDefinition, FlashingAlertProperties, AlertProperties, AlertState, AlertButtonForm, AlertButton, AdaptableAlertAction, AlertDefinitionPredicate, } from './PredefinedConfig/AlertState';
91
90
  export type { ApplicationDataEntry, ApplicationState } from './PredefinedConfig/ApplicationState';
91
+ export type { SpecialColumnSettings } from './PredefinedConfig/Common/SpecialColumnSettings';
92
92
  export type { CalculatedColumn, CalculatedColumnSettings, CalculatedColumnState, } from './PredefinedConfig/CalculatedColumnState';
93
93
  export type { CellSummmary, CellSummaryOperation, CellSummaryOperationParams, } from './PredefinedConfig/Common/CellSummary';
94
94
  export type { CategoryChartDefinition, CategoryChartProperties, ChartDefinition, ChartProperties, ChartState, FinancialChartDataItem, FinancialChartDataSource, FinancialChartDefinition, PieChartDataItem, PieChartDefinition, PieChartProperties, SparklineChartProperties, SparklinesChartDefinition, } from './PredefinedConfig/ChartState';
@@ -124,7 +124,7 @@ export type { DataSource, DataSourceState } from './PredefinedConfig/DataSourceS
124
124
  export type { ExportState, Report, ReportData, ReportSchedule, SystemReportName, SystemReportNames, } from './PredefinedConfig/ExportState';
125
125
  export type { ColumnFilter, ColumnFilterPredicate, FilterPredicateHandler, FilterPredicateInput, FilterPredicateParams, FilterState, } from './PredefinedConfig/FilterState';
126
126
  export type { FormatColumn, ColumnStyle, PercentBarStyle, GradientStyle, CellColorRange, ColumnComparison, CellTextOptions, CellTextOption, FormatColumnState, } from './PredefinedConfig/FormatColumnState';
127
- export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, } from './PredefinedConfig/FreeTextColumnState';
127
+ export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './PredefinedConfig/FreeTextColumnState';
128
128
  export type { Glue42Report, Glue42Schedule, Glue42State } from './PredefinedConfig/Glue42State';
129
129
  export type { IPushPullDomain, IPushPullReport, IPushPullSchedule, IPushPullState, } from './PredefinedConfig/IPushPullState';
130
130
  export type { Layout, LayoutState } from './PredefinedConfig/LayoutState';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "10.0.0-canary.3";
1
+ declare const _default: "10.0.3";
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.0-canary.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '10.0.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,16 +0,0 @@
1
- /**
2
- * Options for tracking the data changes which are consumed in reactive expressions (Observable or Aggregation)
3
- */
4
- export interface DataChangeTrackingOptions {
5
- /**
6
- * Whether Data Changes are tracked 'Always', 'WhenRequired' or 'Never'
7
- * @defaultValue WhenRequired
8
- */
9
- dataChangeTrackingType: 'Always' | 'WhenRequired' | 'Never';
10
- /**
11
- * Maximum time (in milliseconds) to hold a Data Change Tracking Info (value is capped at 86400000 ~ 24 hours)
12
- *
13
- * @defaultValue 28800000 (~ 8 hours)
14
- */
15
- maxTimeframeSize?: number;
16
- }
@@ -1,4 +0,0 @@
1
- export interface ProgressIndicator {
2
- active: boolean;
3
- label: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface ProgressIndicatorComponentProps {
3
- active: boolean;
4
- label: string;
5
- }
6
- export declare const ProgressIndicator: import("react-redux").ConnectedComponent<(props: ProgressIndicatorComponentProps) => JSX.Element, Pick<ProgressIndicatorComponentProps, never>>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ProgressIndicator = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const react_redux_1 = require("react-redux");
7
- const rebass_1 = require("rebass");
8
- const react_1 = require("react");
9
- const ProgressIndicatorComponent = (props) => {
10
- const { active, label } = props;
11
- const [visible, setVisible] = react_1.useState(false);
12
- react_1.useEffect(() => {
13
- // without rAF the progress indicator would would be rendered immediately, without the delay
14
- requestAnimationFrame(() => setVisible(active));
15
- }, [active]);
16
- return (React.createElement(React.Fragment, null, active && (React.createElement("div", { className: `ab-progress-indicator-wrapper ${visible ? 'ab-progress-indicator-wrapper--visible' : ''}` },
17
- React.createElement(rebass_1.Text, { className: "ab-progress-indicator-text" }, label)))));
18
- };
19
- function mapStateToProps(state) {
20
- return {
21
- active: state.System.ProgressIndicator.active,
22
- label: state.System.ProgressIndicator.label,
23
- };
24
- }
25
- exports.ProgressIndicator = react_redux_1.connect(mapStateToProps)(ProgressIndicatorComponent);