@adaptabletools/adaptable 18.0.0-canary.12 → 18.0.0-canary.14

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 (115) hide show
  1. package/base.css +1 -1
  2. package/base.css.map +1 -1
  3. package/index.css +1 -1
  4. package/index.css.map +1 -1
  5. package/package.json +1 -1
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
  7. package/src/AdaptableOptions/MenuOptions.d.ts +1 -53
  8. package/src/AdaptableOptions/MenuOptions.js +3 -3
  9. package/src/Api/AdaptableApi.d.ts +2 -2
  10. package/src/Api/ConfigApi.d.ts +2 -3
  11. package/src/Api/GridApi.d.ts +2 -1
  12. package/src/Api/Implementation/ActionColumnApiImpl.js +3 -6
  13. package/src/Api/Implementation/ConfigApiImpl.js +7 -7
  14. package/src/Api/Implementation/GridApiImpl.d.ts +2 -1
  15. package/src/Api/Implementation/GridApiImpl.js +8 -1
  16. package/src/Api/Implementation/NoteApiImpl.d.ts +2 -2
  17. package/src/Api/Implementation/NoteApiImpl.js +8 -8
  18. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +0 -3
  19. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -8
  20. package/src/Api/Internal/ActionRowInternalApi.js +1 -1
  21. package/src/Api/Internal/AdaptableInternalApi.d.ts +4 -2
  22. package/src/Api/Internal/AdaptableInternalApi.js +14 -11
  23. package/src/Api/Internal/CalculatedColumnInternalApi.js +3 -2
  24. package/src/Api/Internal/Fdc3InternalApi.js +2 -2
  25. package/src/Api/Internal/FreeTextColumnInternalApi.js +3 -2
  26. package/src/Api/Internal/GridInternalApi.d.ts +2 -0
  27. package/src/Api/Internal/GridInternalApi.js +15 -0
  28. package/src/Api/NoteApi.d.ts +5 -5
  29. package/src/Api/OptionsApi.d.ts +2 -2
  30. package/src/Api/UserInterfaceApi.d.ts +0 -11
  31. package/src/PredefinedConfig/AdaptableState.d.ts +1 -1
  32. package/src/PredefinedConfig/CommentState.d.ts +16 -12
  33. package/src/PredefinedConfig/Common/RowSummary.d.ts +7 -1
  34. package/src/PredefinedConfig/Common/TransposeConfig.d.ts +25 -0
  35. package/src/PredefinedConfig/Common/TransposeConfig.js +1 -0
  36. package/src/PredefinedConfig/Common/Types.d.ts +4 -4
  37. package/src/PredefinedConfig/Common/Types.js +4 -1
  38. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  39. package/src/PredefinedConfig/NoteState.d.ts +1 -1
  40. package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -1
  41. package/src/Redux/ActionsReducers/NoteRedux.d.ts +38 -0
  42. package/src/Redux/ActionsReducers/{NotesRedux.js → NoteRedux.js} +20 -20
  43. package/src/Redux/ActionsReducers/SystemRedux.d.ts +1 -1
  44. package/src/Redux/Store/AdaptableStore.js +7 -7
  45. package/src/Strategy/CellSummaryModule.js +2 -1
  46. package/src/Strategy/{CommentsModule.d.ts → CommentModule.d.ts} +1 -5
  47. package/src/Strategy/{CommentsModule.js → CommentModule.js} +5 -6
  48. package/src/Strategy/LayoutModule.d.ts +1 -0
  49. package/src/Strategy/LayoutModule.js +17 -1
  50. package/src/Strategy/{NotesModule.d.ts → NoteModule.d.ts} +2 -1
  51. package/src/Strategy/{NotesModule.js → NoteModule.js} +7 -3
  52. package/src/Strategy/Utilities/getScopeViewItems.js +3 -0
  53. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  54. package/src/Utilities/Constants/ModuleConstants.js +6 -6
  55. package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -2
  56. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +15 -2
  57. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -3
  58. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  59. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +15 -0
  60. package/src/Utilities/ObjectFactory.d.ts +3 -3
  61. package/src/Utilities/ObjectFactory.js +4 -24
  62. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -0
  63. package/src/Utilities/Services/AggregatedScalarLiveValue.js +12 -10
  64. package/src/Utilities/Services/CellPopupService.js +2 -2
  65. package/src/Utilities/Services/Interface/ISummaryService.d.ts +17 -0
  66. package/src/Utilities/Services/Interface/ISummaryService.js +12 -0
  67. package/src/Utilities/Services/ModuleService.js +4 -0
  68. package/src/Utilities/Services/QueryLanguageService.js +2 -2
  69. package/src/Utilities/Services/SummaryService.d.ts +5 -14
  70. package/src/Utilities/Services/SummaryService.js +0 -12
  71. package/src/Utilities/adaptableQlUtils.d.ts +2 -0
  72. package/src/Utilities/adaptableQlUtils.js +14 -0
  73. package/src/View/AdaptableViewFactory.js +2 -2
  74. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +1 -1
  75. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
  76. package/src/View/Comments/CommentsEditor.js +1 -1
  77. package/src/View/Comments/CommentsPopup.js +8 -4
  78. package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +5 -5
  79. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  80. package/src/View/Components/ValueSelector/index.js +1 -1
  81. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +0 -1
  82. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
  83. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +3 -1
  84. package/src/View/Layout/TransposedPopup.js +19 -18
  85. package/src/View/Layout/Wizard/LayoutWizard.js +8 -0
  86. package/src/View/Layout/Wizard/sections/RowSummarySection.d.ts +8 -0
  87. package/src/View/Layout/Wizard/sections/RowSummarySection.js +150 -0
  88. package/src/View/Note/NotePopup.d.ts +2 -0
  89. package/src/View/{Notes/NotesPopup.js → Note/NotePopup.js} +3 -3
  90. package/src/agGrid/AdaptableAgGrid.d.ts +2 -2
  91. package/src/agGrid/AdaptableAgGrid.js +7 -5
  92. package/src/agGrid/AgGridAdapter.d.ts +1 -0
  93. package/src/agGrid/AgGridAdapter.js +5 -0
  94. package/src/agGrid/AgGridColumnAdapter.js +3 -3
  95. package/src/agGrid/AgGridMenuAdapter.js +10 -6
  96. package/src/agGrid/defaultAdaptableOptions.js +0 -7
  97. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +2 -1
  98. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +0 -1
  99. package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -14
  100. package/src/components/icons/note.js +2 -2
  101. package/src/env.js +2 -2
  102. package/src/metamodel/adaptable.metamodel.d.ts +61 -11
  103. package/src/metamodel/adaptable.metamodel.js +1 -1
  104. package/src/parser/src/parser.js +117 -1257
  105. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +1 -1
  106. package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -1
  107. package/src/parser/src/types.d.ts +2 -2
  108. package/src/types.d.ts +5 -4
  109. package/tsconfig.esm.tsbuildinfo +1 -1
  110. package/src/Redux/ActionsReducers/NotesRedux.d.ts +0 -38
  111. package/src/View/Notes/NotesPopup.d.ts +0 -2
  112. /package/src/Api/Internal/{NotesInternalApi.d.ts → NoteInternalApi.d.ts} +0 -0
  113. /package/src/Api/Internal/{NotesInternalApi.js → NoteInternalApi.js} +0 -0
  114. /package/src/View/{Notes → Note}/NoteEditor.d.ts +0 -0
  115. /package/src/View/{Notes → Note}/NoteEditor.js +0 -0
@@ -83,7 +83,7 @@ export function mapExpressionToQlPredicate(expression) {
83
83
  }
84
84
  }
85
85
  function getOperatorFromAST(astRootNode) {
86
- if (!['INFIX', 'FUNCTION', 'COLUMN'].includes(astRootNode.metaInfo)) {
86
+ if (!['INFIX', 'FUNCTION', 'VALUE_REF'].includes(astRootNode.metaInfo)) {
87
87
  return undefined;
88
88
  }
89
89
  return astRootNode.type;
@@ -91,7 +91,8 @@ export function getQlPredicateSymbol(predicateName) {
91
91
  function getPredicateType(predicateName) {
92
92
  switch (predicateName) {
93
93
  case 'COL':
94
- return 'COLUMN';
94
+ case 'FIELD':
95
+ return 'VALUE_REF';
95
96
  case 'IF':
96
97
  case 'CASE':
97
98
  return 'CONDITIONAL';
@@ -1,7 +1,7 @@
1
1
  import { IRowNode } from '@ag-grid-community/core';
2
2
  import { BaseContext } from '../../../types';
3
3
  export type AST = AST_Expression[];
4
- export type PredicateType = 'COLUMN' | 'INFIX' | 'UNARY' | 'FUNCTION' | 'CONDITIONAL';
4
+ export type PredicateType = 'VALUE_REF' | 'INFIX' | 'UNARY' | 'FUNCTION' | 'CONDITIONAL';
5
5
  /**
6
6
  * Defines AST of an Expressoin
7
7
  */
@@ -27,7 +27,7 @@ export interface ExpressionContext extends BaseContext {
27
27
  /**
28
28
  * Current AG Grid Row Node being evaluated
29
29
  */
30
- node: any;
30
+ node: IRowNode;
31
31
  /**
32
32
  * All Expression Functions available to AdaptableQL
33
33
  */
package/src/types.d.ts CHANGED
@@ -22,7 +22,7 @@ export type { DataImportValidationError, DataImportOptions, DataImportFileHandle
22
22
  export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOptions/DataSetOptions';
23
23
  export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
24
24
  export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
25
- export type { NoteOptions, NotableCellContext, } from './AdaptableOptions/NoteOptions';
25
+ export type { NoteOptions, NotableCellContext } from './AdaptableOptions/NoteOptions';
26
26
  export type { CommentOptions, CommentableCellContext, CommentLoadContext, } from './AdaptableOptions/CommentOptions';
27
27
  export type { GroupingOptions, BalancedGroupsKeyContext } from './AdaptableOptions/GroupingOptions';
28
28
  export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
@@ -36,7 +36,7 @@ export type { ColumnFilterOptions, QuickFilterOptions, FilterFormOptions, Values
36
36
  export type { GridFilterOptions, GridFilterEditors, GridFilterEditor, } from './AdaptableOptions/GridFilterOptions';
37
37
  export type { QuickSearchOptions, QuickSearchContext } from './AdaptableOptions/QuickSearchOptions';
38
38
  export type { FormatColumnOptions, CustomDisplayFormatter, CustomDisplayFormatterContext, } from './AdaptableOptions/FormatColumnOptions';
39
- export type { ColumnOptions, ColumnFriendlyNameContext, ColumnTypesContext } from './AdaptableOptions/ColumnOptions';
39
+ export type { ColumnOptions, ColumnFriendlyNameContext, ColumnTypesContext, } from './AdaptableOptions/ColumnOptions';
40
40
  export type { AdaptablePersistStateFunction, AdaptableStateFunctionConfig, AdaptableLoadStateFunction, AdaptableSaveStateFunction, AdaptableClearStateFunction, StateOptions, } from './AdaptableOptions/StateOptions';
41
41
  export type { AggregationColumns, WeightedAverageAggregation, } from './PredefinedConfig/Common/AggregationColumns';
42
42
  export type { AccessLevel, Entitlement } from './PredefinedConfig/Common/Entitlement';
@@ -192,7 +192,7 @@ export type { PredefinedConfig } from './PredefinedConfig/PredefinedConfig';
192
192
  export type { NamedQuery, NamedQueryState } from './PredefinedConfig/NamedQueryState';
193
193
  export type { QuickSearchState } from './PredefinedConfig/QuickSearchState';
194
194
  export type { ReminderSchedule, ScheduleState } from './PredefinedConfig/ScheduleState';
195
- export type { GridCell, CellUpdateRequest, CellAddress } from './PredefinedConfig/Selection/GridCell';
195
+ export type { GridCell, CellUpdateRequest, CellAddress, } from './PredefinedConfig/Selection/GridCell';
196
196
  export type { GridRow, RowInfo } from './PredefinedConfig/Selection/GridRow';
197
197
  export type { SelectedCellInfo } from './PredefinedConfig/Selection/SelectedCellInfo';
198
198
  export type { SelectedRowInfo } from './PredefinedConfig/Selection/SelectedRowInfo';
@@ -205,5 +205,6 @@ export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrame
205
205
  export type { Fdc3StandardContextType, Fdc3CustomContextType, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, Fdc3ContextType, Fdc3Context, ChartContextType, ChartContext, ChatInitSettingsContext, ChatInitSettingsContextType, ContactContextType, ContactListContextType, CurrencyContext, EmailContext, CountryContextType, CurrencyContextType, EmailContextType, InstrumentContextType, InstrumentListContextType, NothingContextType, OrganizationContextType, PortfolioContextType, PositionContextType, NothingContext, Fdc3CustomContext, ValuationContext, ValuationContextType, TimeRangeContextType, TimeRangeContext, } from './PredefinedConfig/Common/Fdc3Context';
206
206
  export type { Fdc3IntentType, Fdc3StandardIntentType, Fdc3CustomIntentType, CompatibleContext, } from './PredefinedConfig/Common/Fdc3Intent';
207
207
  export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
208
- export type { CommentState, CommentThread, AdaptableComment } from './PredefinedConfig/CommentState';
208
+ export type { CommentState, CommentThread, AdaptableComment, } from './PredefinedConfig/CommentState';
209
209
  export type { UpgradeConfig } from '../agGrid';
210
+ export type { TransposeConfig } from './PredefinedConfig/Common/TransposeConfig';