@adaptabletools/adaptable 18.0.12 → 18.1.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 (124) hide show
  1. package/agGrid.d.ts +4 -3
  2. package/agGrid.js +4 -3
  3. package/base.css +7 -2
  4. package/base.css.map +1 -1
  5. package/index.css +11 -2
  6. package/index.css.map +1 -1
  7. package/package.json +2 -2
  8. package/src/AdaptableOptions/ActionColumnOptions.d.ts +1 -1
  9. package/src/AdaptableOptions/ColumnFilterOptions.d.ts +27 -1
  10. package/src/AdaptableOptions/ExportOptions.d.ts +20 -7
  11. package/src/AdaptableOptions/ExpressionOptions.d.ts +12 -2
  12. package/src/AdaptableOptions/Fdc3Options.d.ts +48 -43
  13. package/src/Api/ColumnApi.d.ts +1 -1
  14. package/src/Api/Events/Fdc3MessageInfo.d.ts +5 -7
  15. package/src/Api/ExpressionApi.d.ts +2 -2
  16. package/src/Api/Fdc3Api.d.ts +14 -19
  17. package/src/Api/Implementation/ConfigApiImpl.js +3 -0
  18. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +14 -16
  19. package/src/Api/Implementation/Fdc3ApiImpl.js +36 -12
  20. package/src/Api/Internal/AlertInternalApi.d.ts +17 -2
  21. package/src/Api/Internal/AlertInternalApi.js +196 -25
  22. package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -0
  23. package/src/Api/Internal/ColumnFilterInternalApi.js +20 -0
  24. package/src/Api/Internal/ExportInternalApi.d.ts +3 -3
  25. package/src/Api/Internal/ExportInternalApi.js +31 -17
  26. package/src/Api/Internal/ExpressionInternalApi.d.ts +5 -1
  27. package/src/Api/Internal/ExpressionInternalApi.js +79 -0
  28. package/src/Api/Internal/Fdc3InternalApi.d.ts +8 -10
  29. package/src/Api/Internal/Fdc3InternalApi.js +6 -10
  30. package/src/PredefinedConfig/Common/AdaptableField.d.ts +18 -0
  31. package/src/PredefinedConfig/Common/AdaptableField.js +1 -0
  32. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
  33. package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
  34. package/src/PredefinedConfig/Common/Fdc3Context.d.ts +7 -226
  35. package/src/PredefinedConfig/Common/Fdc3Context.js +43 -31
  36. package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +6 -89
  37. package/src/PredefinedConfig/Common/Fdc3Intent.js +26 -73
  38. package/src/PredefinedConfig/Common/RowSummary.d.ts +2 -1
  39. package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
  40. package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -3
  41. package/src/Strategy/AdaptableModuleBase.js +1 -3
  42. package/src/Strategy/AlertModule.d.ts +1 -1
  43. package/src/Strategy/AlertModule.js +8 -8
  44. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -1
  45. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +1 -1
  46. package/src/Utilities/Services/Fdc3Service.d.ts +1 -1
  47. package/src/Utilities/Services/Fdc3Service.js +2 -2
  48. package/src/Utilities/Services/QueryLanguageService.d.ts +8 -4
  49. package/src/Utilities/Services/QueryLanguageService.js +105 -6
  50. package/src/Utilities/Services/ReportService.js +8 -5
  51. package/src/Utilities/Services/RowSummaryService.js +3 -1
  52. package/src/Utilities/divideBy100.d.ts +1 -0
  53. package/src/Utilities/divideBy100.js +30 -0
  54. package/src/Utilities/times100.d.ts +1 -0
  55. package/src/Utilities/times100.js +23 -0
  56. package/src/View/Alert/Wizard/AlertMessageWizardSection.js +1 -1
  57. package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +2 -2
  58. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
  59. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  60. package/src/View/Components/EntityRulesEditor/index.d.ts +1 -0
  61. package/src/View/Components/EntityRulesEditor/index.js +11 -7
  62. package/src/View/Components/ExpressionWizard.js +1 -1
  63. package/src/View/Components/FilterForm/QuickFilterValues.js +28 -4
  64. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +6 -2
  65. package/src/View/Components/Selectors/FieldSelector.d.ts +13 -0
  66. package/src/View/Components/Selectors/FieldSelector.js +21 -0
  67. package/src/View/Components/Selectors/PermittedValuesSelector.js +8 -4
  68. package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
  69. package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
  70. package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
  71. package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -2
  72. package/src/View/Layout/Wizard/sections/RowSummarySection.js +7 -1
  73. package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  74. package/src/View/Wizard/OnePageAdaptableWizard.js +3 -2
  75. package/src/agGrid/AdaptableAgGrid.d.ts +1 -2
  76. package/src/agGrid/AdaptableAgGrid.js +64 -33
  77. package/src/agGrid/AgGridColumnAdapter.d.ts +3 -0
  78. package/src/agGrid/AgGridColumnAdapter.js +22 -0
  79. package/src/agGrid/AgGridMenuAdapter.js +1 -1
  80. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +0 -1
  81. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +0 -2
  82. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +4 -16
  83. package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -18
  84. package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +6 -1
  85. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +4 -3
  86. package/src/agGrid/editors/AdaptableNumberEditor/index.js +5 -2
  87. package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.d.ts +23 -0
  88. package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +80 -0
  89. package/src/agGrid/editors/AdaptablePercentageEditor/index.d.ts +47 -0
  90. package/src/agGrid/editors/AdaptablePercentageEditor/index.js +148 -0
  91. package/src/components/Accordion.js +1 -1
  92. package/src/components/Datepicker/DatepickerContext.d.ts +0 -2
  93. package/src/components/Datepicker/index.js +3 -4
  94. package/src/components/ExpressionEditor/DataTableEditor.d.ts +17 -0
  95. package/src/components/ExpressionEditor/DataTableEditor.js +63 -0
  96. package/src/components/ExpressionEditor/EditorInput.js +22 -9
  97. package/src/components/ExpressionEditor/NamedQueryEditor.d.ts +5 -0
  98. package/src/components/ExpressionEditor/NamedQueryEditor.js +30 -0
  99. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.d.ts +10 -0
  100. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +7 -4
  101. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +3 -2
  102. package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +71 -13
  103. package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +30 -22
  104. package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +9 -1
  105. package/src/components/ExpressionEditor/QueryBuilder/utils.js +41 -3
  106. package/src/components/ExpressionEditor/index.d.ts +3 -1
  107. package/src/components/ExpressionEditor/index.js +66 -91
  108. package/src/components/Input/NumberInput.d.ts +2 -1
  109. package/src/components/Input/NumberInput.js +7 -4
  110. package/src/components/OverlayTrigger/index.js +10 -6
  111. package/src/components/icons/column-outline.d.ts +3 -0
  112. package/src/components/icons/column-outline.js +4 -0
  113. package/src/components/icons/index.js +5 -1
  114. package/src/components/icons/sync.d.ts +3 -0
  115. package/src/components/icons/sync.js +4 -0
  116. package/src/env.js +2 -2
  117. package/src/metamodel/adaptable.metamodel.d.ts +78 -200
  118. package/src/metamodel/adaptable.metamodel.js +1 -1
  119. package/src/parser/src/predicate/mapExpressionToQlPredicate.d.ts +1 -0
  120. package/src/parser/src/predicate/mapExpressionToQlPredicate.js +11 -2
  121. package/src/parser/src/predicate/mapQlPredicateToExpression.js +4 -1
  122. package/src/parser/src/types.d.ts +101 -1
  123. package/src/types.d.ts +9 -7
  124. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -1,78 +1,90 @@
1
- export const ChartContextKey = 'fdc3.chart';
2
- export const ChatInitSettingsContextKey = 'fdc3.chat.initSettings';
3
- export const ContactContextKey = 'fdc3.contact';
4
- export const ContactListContextKey = 'fdc3.contactList';
5
- export const CountryContextKey = 'fdc3.country';
6
- export const CurrencyContextKey = 'fdc3.currency';
7
- export const EmailContextKey = 'fdc3.email';
8
- export const InstrumentContextKey = 'fdc3.instrument';
9
- export const InstrumentListContextKey = 'fdc3.instrumentList';
10
- export const OrganizationContextKey = 'fdc3.organization';
11
- export const PortfolioContextKey = 'fdc3.portfolio';
12
- export const PositionContextKey = 'fdc3.position';
13
- export const TimeRangeContextKey = 'fdc3.timerange';
14
- export const ValuationContextKey = 'fdc3.valuation';
15
- export const NothingContextKey = 'fdc3.nothing';
16
1
  export const ContextConfiguration = {
17
- [ChartContextKey]: {
2
+ 'fdc3.action': {
3
+ label: 'Action',
4
+ icon: 'fdc3',
5
+ },
6
+ 'fdc3.chart': {
18
7
  label: 'Chart',
19
8
  icon: 'pie-chart',
20
9
  },
21
- [ChatInitSettingsContextKey]: {
10
+ 'fdc3.chat.initSettings': {
22
11
  label: 'ChatInitSettings',
23
12
  icon: 'chat',
24
13
  },
25
- [ContactContextKey]: {
14
+ 'fdc3.chat.message': {
15
+ label: 'ChatMessage',
16
+ icon: 'chat',
17
+ },
18
+ 'fdc3.chat.room': {
19
+ label: 'ChatRoom',
20
+ icon: 'chat',
21
+ },
22
+ 'fdc3.chat.searchCriteria': {
23
+ label: 'ChatSearchCriteria',
24
+ icon: 'chat',
25
+ },
26
+ 'fdc3.contact': {
26
27
  label: 'Contact',
27
28
  icon: 'badge',
28
29
  },
29
- [ContactListContextKey]: {
30
+ 'fdc3.contactList': {
30
31
  label: 'ContactList',
31
32
  icon: 'badge',
32
33
  },
33
- [CountryContextKey]: {
34
+ 'fdc3.country': {
34
35
  label: 'Country',
35
36
  icon: 'flag',
36
37
  },
37
- [CurrencyContextKey]: {
38
+ 'fdc3.currency': {
38
39
  label: 'Currency',
39
40
  icon: 'dollar',
40
41
  },
41
- [EmailContextKey]: {
42
+ 'fdc3.email': {
42
43
  label: 'Email',
43
44
  icon: 'mail',
44
45
  },
45
- [InstrumentContextKey]: {
46
+ 'fdc3.instrument': {
46
47
  label: 'Instrument',
47
48
  icon: 'money',
48
49
  },
49
- [InstrumentListContextKey]: {
50
+ 'fdc3.instrumentList': {
50
51
  label: 'InstrumentList',
51
52
  icon: 'money',
52
53
  },
53
- [OrganizationContextKey]: {
54
+ 'fdc3.interaction': {
55
+ label: 'Interaction',
56
+ icon: 'sync',
57
+ },
58
+ 'fdc3.message': {
59
+ label: 'Message',
60
+ icon: 'mail',
61
+ },
62
+ 'fdc3.organization': {
54
63
  label: 'Organization',
55
64
  icon: 'organisation',
56
65
  },
57
- [PortfolioContextKey]: {
66
+ 'fdc3.portfolio': {
58
67
  label: 'Portfolio',
59
68
  icon: 'building',
60
69
  },
61
- [PositionContextKey]: {
70
+ 'fdc3.position': {
62
71
  label: 'Position',
63
72
  icon: 'building',
64
73
  },
65
- [TimeRangeContextKey]: {
74
+ 'fdc3.timerange': {
66
75
  label: 'TimeRange',
67
76
  icon: 'date-range',
68
77
  },
69
- [ValuationContextKey]: {
78
+ 'fdc3.transactionResult': {
79
+ label: 'TransactionResult',
80
+ icon: 'fdc3',
81
+ },
82
+ 'fdc3.valuation': {
70
83
  label: 'Valuation',
71
84
  icon: 'equation',
72
85
  },
73
- [NothingContextKey]: {
86
+ 'fdc3.nothing': {
74
87
  label: 'Nothing',
75
88
  icon: 'fdc3',
76
89
  },
77
90
  };
78
- export const StandardContextTypes = Object.keys(ContextConfiguration);
@@ -1,89 +1,6 @@
1
- export declare const StartCallIntent = "StartCall";
2
- export declare const StartChatIntent = "StartChat";
3
- export declare const StartEmailIntent = "StartEmail";
4
- export declare const ViewAnalysisIntent = "ViewAnalysis";
5
- export declare const ViewChartIntent = "ViewChart";
6
- export declare const ViewContactIntent = "ViewContact";
7
- export declare const ViewHoldingsIntent = "ViewHoldings";
8
- export declare const ViewInstrumentIntent = "ViewInstrument";
9
- export declare const ViewInteractionsIntent = "ViewInteractions";
10
- export declare const ViewNewsIntent = "ViewNews";
11
- export declare const ViewOrdersIntent = "ViewOrders";
12
- export declare const ViewProfileIntent = "ViewProfile";
13
- export declare const ViewQuoteIntent = "ViewQuote";
14
- export declare const ViewResearchIntent = "ViewResearch";
15
- export declare const Fdc3IntentConfiguration: {
16
- readonly StartCall: {
17
- readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.nothing"];
18
- readonly icon: "call";
19
- };
20
- readonly StartChat: {
21
- readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.chat.initSettings", "fdc3.nothing"];
22
- readonly icon: "chat";
23
- };
24
- readonly StartEmail: {
25
- readonly contexts: readonly ["fdc3.email"];
26
- readonly icon: "mail";
27
- };
28
- readonly ViewAnalysis: {
29
- readonly contexts: readonly ["fdc3.instrument", "fdc3.organization", "fdc3.portfolio", "fdc3.nothing"];
30
- readonly icon: "spark-line";
31
- };
32
- readonly ViewChart: {
33
- readonly contexts: readonly ["fdc3.chart", "fdc3.instrument", "fdc3.instrumentList", "fdc3.portfolio", "fdc3.position", "fdc3.nothing"];
34
- readonly icon: "pie-chart";
35
- };
36
- readonly ViewContact: {
37
- readonly contexts: readonly ["fdc3.contact", "fdc3.nothing"];
38
- readonly icon: "person";
39
- };
40
- readonly ViewHoldings: {
41
- readonly contexts: readonly ["fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.nothing"];
42
- readonly icon: "building";
43
- };
44
- readonly ViewInstrument: {
45
- readonly contexts: readonly ["fdc3.instrument", "fdc3.nothing"];
46
- readonly icon: "money";
47
- };
48
- readonly ViewInteractions: {
49
- readonly contexts: readonly ["fdc3.contact", "fdc3.instrument", "fdc3.organization", "fdc3.nothing"];
50
- readonly icon: "interactions";
51
- };
52
- readonly ViewNews: {
53
- readonly contexts: readonly ["fdc3.country", "fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.portfolio", "fdc3.nothing"];
54
- readonly icon: "news";
55
- };
56
- readonly ViewOrders: {
57
- readonly contexts: readonly ["fdc3.contact", "fdc3.instrument", "fdc3.organization", "fdc3.nothing"];
58
- readonly icon: "order";
59
- };
60
- readonly ViewProfile: {
61
- readonly contexts: readonly ["fdc3.contact", "fdc3.organization", "fdc3.nothing"];
62
- readonly icon: "badge";
63
- };
64
- readonly ViewQuote: {
65
- readonly contexts: readonly ["fdc3.instrument", "fdc3.nothing"];
66
- readonly icon: "quote";
67
- };
68
- readonly ViewResearch: {
69
- readonly contexts: readonly ["fdc3.contact", "fdc3.instrument", "fdc3.organization", "fdc3.nothing"];
70
- readonly icon: "science";
71
- };
72
- };
73
- export declare const Fdc3StandardIntents: ("StartCall" | "StartChat" | "StartEmail" | "ViewAnalysis" | "ViewChart" | "ViewContact" | "ViewHoldings" | "ViewInstrument" | "ViewInteractions" | "ViewNews" | "ViewOrders" | "ViewProfile" | "ViewQuote" | "ViewResearch")[];
74
- /**
75
- * All FDC3 standard intents
76
- */
77
- export type Fdc3StandardIntentType = (typeof Fdc3StandardIntents)[number];
78
- /**
79
- * Custom FDC3 intent
80
- */
81
- export type Fdc3CustomIntentType = string;
82
- /**
83
- * Generic FDC3 intent (standard or custom)
84
- */
85
- export type Fdc3IntentType = Fdc3StandardIntentType | Fdc3CustomIntentType;
86
- /**
87
- * Valid context for a given FDC3 intent
88
- */
89
- export type CompatibleContext<F extends Fdc3StandardIntentType> = (typeof Fdc3IntentConfiguration)[F]['contexts'][number];
1
+ import { StandardIntent } from '@finos/fdc3';
2
+ interface IntentConfig {
3
+ icon: string;
4
+ }
5
+ export declare const Fdc3IntentConfiguration: Record<StandardIntent, IntentConfig>;
6
+ export {};
@@ -1,103 +1,56 @@
1
- import { ChartContextKey, ChatInitSettingsContextKey, ContactContextKey, ContactListContextKey, CountryContextKey, EmailContextKey, InstrumentContextKey, InstrumentListContextKey, NothingContextKey, OrganizationContextKey, PortfolioContextKey, PositionContextKey, } from './Fdc3Context';
2
- export const StartCallIntent = 'StartCall';
3
- export const StartChatIntent = 'StartChat';
4
- export const StartEmailIntent = 'StartEmail';
5
- export const ViewAnalysisIntent = 'ViewAnalysis';
6
- export const ViewChartIntent = 'ViewChart';
7
- export const ViewContactIntent = 'ViewContact';
8
- export const ViewHoldingsIntent = 'ViewHoldings';
9
- export const ViewInstrumentIntent = 'ViewInstrument';
10
- export const ViewInteractionsIntent = 'ViewInteractions';
11
- export const ViewNewsIntent = 'ViewNews';
12
- export const ViewOrdersIntent = 'ViewOrders';
13
- export const ViewProfileIntent = 'ViewProfile';
14
- export const ViewQuoteIntent = 'ViewQuote';
15
- export const ViewResearchIntent = 'ViewResearch';
16
1
  export const Fdc3IntentConfiguration = {
17
- [StartCallIntent]: {
18
- contexts: [ContactContextKey, ContactListContextKey, NothingContextKey],
2
+ CreateInteraction: {
3
+ icon: 'sync',
4
+ },
5
+ SendChatMessage: {
6
+ icon: 'chat',
7
+ },
8
+ StartCall: {
19
9
  icon: 'call',
20
10
  },
21
- [StartChatIntent]: {
22
- contexts: [
23
- ContactContextKey,
24
- ContactListContextKey,
25
- ChatInitSettingsContextKey,
26
- NothingContextKey,
27
- ],
11
+ StartChat: {
28
12
  icon: 'chat',
29
13
  },
30
- [StartEmailIntent]: {
31
- contexts: [EmailContextKey],
14
+ StartEmail: {
32
15
  icon: 'mail',
33
16
  },
34
- [ViewAnalysisIntent]: {
35
- contexts: [
36
- InstrumentContextKey,
37
- OrganizationContextKey,
38
- PortfolioContextKey,
39
- NothingContextKey,
40
- ],
17
+ ViewAnalysis: {
41
18
  icon: 'spark-line',
42
19
  },
43
- [ViewChartIntent]: {
44
- contexts: [
45
- ChartContextKey,
46
- InstrumentContextKey,
47
- InstrumentListContextKey,
48
- PortfolioContextKey,
49
- PositionContextKey,
50
- NothingContextKey,
51
- ],
20
+ ViewChat: {
21
+ icon: 'chat',
22
+ },
23
+ ViewChart: {
52
24
  icon: 'pie-chart',
53
25
  },
54
- [ViewContactIntent]: {
55
- contexts: [ContactContextKey, NothingContextKey],
26
+ ViewContact: {
56
27
  icon: 'person',
57
28
  },
58
- [ViewHoldingsIntent]: {
59
- contexts: [
60
- InstrumentContextKey,
61
- InstrumentListContextKey,
62
- OrganizationContextKey,
63
- NothingContextKey,
64
- ],
29
+ ViewHoldings: {
65
30
  icon: 'building',
66
31
  },
67
- [ViewInstrumentIntent]: {
68
- contexts: [InstrumentContextKey, NothingContextKey],
32
+ ViewInstrument: {
69
33
  icon: 'money',
70
34
  },
71
- [ViewInteractionsIntent]: {
72
- contexts: [ContactContextKey, InstrumentContextKey, OrganizationContextKey, NothingContextKey],
35
+ ViewInteractions: {
73
36
  icon: 'interactions',
74
37
  },
75
- [ViewNewsIntent]: {
76
- contexts: [
77
- CountryContextKey,
78
- InstrumentContextKey,
79
- InstrumentListContextKey,
80
- OrganizationContextKey,
81
- PortfolioContextKey,
82
- NothingContextKey,
83
- ],
38
+ ViewMessages: {
39
+ icon: 'mail',
40
+ },
41
+ ViewNews: {
84
42
  icon: 'news',
85
43
  },
86
- [ViewOrdersIntent]: {
87
- contexts: [ContactContextKey, InstrumentContextKey, OrganizationContextKey, NothingContextKey],
44
+ ViewOrders: {
88
45
  icon: 'order',
89
46
  },
90
- [ViewProfileIntent]: {
91
- contexts: [ContactContextKey, OrganizationContextKey, NothingContextKey],
47
+ ViewProfile: {
92
48
  icon: 'badge',
93
49
  },
94
- [ViewQuoteIntent]: {
95
- contexts: [InstrumentContextKey, NothingContextKey],
50
+ ViewQuote: {
96
51
  icon: 'quote',
97
52
  },
98
- [ViewResearchIntent]: {
99
- contexts: [ContactContextKey, InstrumentContextKey, OrganizationContextKey, NothingContextKey],
53
+ ViewResearch: {
100
54
  icon: 'science',
101
55
  },
102
56
  };
103
- export const Fdc3StandardIntents = Object.keys(Fdc3IntentConfiguration);
@@ -1,3 +1,4 @@
1
+ import { SuspendableObject } from './SuspendableObject';
1
2
  export declare const ROW_SUMMARY_ROW_ID = "__ROW_SUMMARY_ROW_ID";
2
3
  export declare const WEIGHTED_AVERAGE_AGGREATED_FUNCTION = "WEIGHTED_AVERAGE";
3
4
  export declare const summarySupportedExpressions: readonly ["MIN", "MAX", "SUM", "AVG", "COUNT", "MEDIAN", "MODE", "DISTINCT", "ONLY", "STD_DEVIATION", "WEIGHTED_AVERAGE"];
@@ -9,7 +10,7 @@ export type RowSummaryPosition = 'Top' | 'Bottom';
9
10
  /**
10
11
  * Defines a Row Summary used in a Layout
11
12
  */
12
- export interface RowSummary {
13
+ export interface RowSummary extends SuspendableObject {
13
14
  /**
14
15
  * Where Row Summary appears - 'Top' or 'Bottom'
15
16
  */
@@ -3,7 +3,7 @@ import { SuspendableObject } from './Common/SuspendableObject';
3
3
  import { SparklineOptions } from '@ag-grid-community/core';
4
4
  import { AdaptableCustomIcon, AdaptableSystemIcon, AdaptablePredicate, AdaptableStyle } from '../types';
5
5
  import { TypeHint } from './Common/Types';
6
- import { RowScope } from "./Common/RowScope";
6
+ import { RowScope } from './Common/RowScope';
7
7
  /**
8
8
  * Predefined Configuration for Styled Column Module
9
9
  */
@@ -115,9 +115,6 @@ export const FormatColumnReducer = (state = initialState, action) => {
115
115
  case FORMAT_COLUMN_UNSUSPEND: {
116
116
  return Object.assign(Object.assign({}, state), { FormatColumns: changeIsSuspendInList(action.formatColumn, state.FormatColumns, false) });
117
117
  }
118
- case FORMAT_COLUMN_SUSPEND_ALL: {
119
- return Object.assign(Object.assign({}, state), { FormatColumns: state.FormatColumns.map((formatColumn) => (Object.assign(Object.assign({}, formatColumn), { IsSuspended: true }))) });
120
- }
121
118
  case FORMAT_COLUMN_SUSPEND_ALL: {
122
119
  return Object.assign(Object.assign({}, state), { FormatColumns: suspendAllInList(state.FormatColumns) });
123
120
  }
@@ -17,9 +17,7 @@ export class AdaptableModuleBase {
17
17
  this.api = api;
18
18
  this.api.eventApi.on('AdaptableReady', () => {
19
19
  this.onAdaptableReady();
20
- setTimeout(() => {
21
- this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
22
- }, 100);
20
+ this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
23
21
  });
24
22
  this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
25
23
  this.onAdaptableStateReloaded(adaptableStateReloadedInfo);
@@ -1,12 +1,12 @@
1
1
  import { AdaptableApi } from '../Api/AdaptableApi';
2
2
  import { AlertDefinition } from '../PredefinedConfig/AlertState';
3
3
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
4
+ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
4
5
  import { ContextMenuContext } from '../PredefinedConfig/Common/Menu';
5
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
6
7
  import { MenuItemShowPopup } from '../Utilities/MenuItem';
7
8
  import { AdaptableModuleBase } from './AdaptableModuleBase';
8
9
  import { AdaptableModuleView, AdaptableObjectCompactView, AdaptableObjectView, IModule } from './Interface/IModule';
9
- import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
10
10
  export declare class AlertModule extends AdaptableModuleBase implements IModule {
11
11
  constructor(api: AdaptableApi);
12
12
  onAdaptableReady(): void;
@@ -2,18 +2,18 @@ import * as AlertRedux from '../Redux/ActionsReducers/AlertRedux';
2
2
  import * as SystemRedux from '../Redux/ActionsReducers/SystemRedux';
3
3
  import * as ModuleConstants from '../Utilities/Constants/ModuleConstants';
4
4
  import { ArrayExtensions } from '../Utilities/Extensions/ArrayExtensions';
5
- import { AdaptableModuleBase } from './AdaptableModuleBase';
5
+ import { ActiveAlertsPanelItemLabel } from '../View/Alert/ActiveAlertsPanelItemLabel';
6
+ import { AlertEmptyView } from '../View/Alert/AlertEmptyView';
7
+ import { AlertStatusPanel } from '../View/Alert/AlertStatusSubPanel';
8
+ import { getAlertType } from '../View/Alert/Utilities/getAlertType';
6
9
  import { AlertWizard } from '../View/Alert/Wizard/AlertWizard';
7
- import { getScopeViewItems } from './Utilities/getScopeViewItems';
8
- import { getRuleViewItems } from './Utilities/getRuleViewItems';
9
- import { getAlertPreviewViewItems } from './Utilities/Alert/getAlertPreviewViewItems';
10
+ import { AdaptableModuleBase } from './AdaptableModuleBase';
10
11
  import { getAlertBehaviourViewItems } from './Utilities/Alert/getAlertBehaviourViewItems';
12
+ import { getAlertPreviewViewItems } from './Utilities/Alert/getAlertPreviewViewItems';
11
13
  import { getAlertTypeViewItems } from './Utilities/Alert/getAlertTypeViewItems';
12
- import { AlertEmptyView } from '../View/Alert/AlertEmptyView';
13
- import { AlertStatusPanel } from '../View/Alert/AlertStatusSubPanel';
14
- import { ActiveAlertsPanelItemLabel } from '../View/Alert/ActiveAlertsPanelItemLabel';
15
14
  import { getObjectTagsViewItems } from './Utilities/getObjectTagsViewItems';
16
- import { getAlertType } from '../View/Alert/Utilities/getAlertType';
15
+ import { getRuleViewItems } from './Utilities/getRuleViewItems';
16
+ import { getScopeViewItems } from './Utilities/getScopeViewItems';
17
17
  export class AlertModule extends AdaptableModuleBase {
18
18
  constructor(api) {
19
19
  super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
@@ -2,6 +2,7 @@ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { ExpressionFunction } from '../../parser/src/types';
3
3
  import { BaseParameter } from './expressionFunctionUtils';
4
4
  import { AggregateParams } from './scalarAggregationHelper';
5
+ import { TypeHint } from '../../PredefinedConfig/Common/Types';
5
6
  import { AdaptableColumnDataType } from '../../types';
6
7
  /**
7
8
  * List of all the AggregatedScalar Functions available in AdaptableQL
@@ -9,7 +10,7 @@ import { AdaptableColumnDataType } from '../../types';
9
10
  export type AggregatedScalarFunctionName = ScalarAggregationFunction | OperandFunction;
10
11
  export type ScalarAggregationFunction = 'SUM' | 'PERCENTAGE' | 'QUANT' | 'QUARTILE' | 'PERCENTILE' | 'AVG' | 'MIN' | 'MAX' | 'COUNT' | 'CUMUL' | 'MEDIAN' | 'MODE' | 'DISTINCT' | 'ONLY' | 'STD_DEVIATION';
11
12
  type OperandFunction = 'COL' | 'OVER' | 'GROUP_BY' | 'WEIGHT';
12
- export interface ScalarAggregationParameter extends BaseParameter<'aggregationScalar', ScalarAggregationFunction> {
13
+ export interface ScalarAggregationParameter extends BaseParameter<'aggregationScalar', TypeHint<string, ScalarAggregationFunction>> {
13
14
  value: AggregatedScalarExpressionEvaluation;
14
15
  }
15
16
  export interface OverParameter extends BaseParameter<'operand', 'OVER'> {
@@ -43,4 +44,5 @@ export declare const cumulativeAggregatedExpressionFunctions: AggregatedScalarFu
43
44
  export declare const quantileAggregatedExpressionFunctions: AggregatedScalarFunctionName[];
44
45
  export declare const aggregatedScalarExpressionFunctions: Record<AggregatedScalarFunctionName, ExpressionFunction>;
45
46
  export declare const aggregatedScalarExpressionFunctionNames: AggregatedScalarFunctionName[];
47
+ export declare const addGroupByParams: (groupByColumnNames: string[] | undefined, expressionEvaluation: AggregatedScalarExpressionEvaluation) => void;
46
48
  export {};
@@ -1110,7 +1110,7 @@ const mapAggregationToCumulation = (aggregationParameter, overColumnParameter, c
1110
1110
  };
1111
1111
  export const aggregatedScalarExpressionFunctionNames = getTypedKeys(aggregatedScalarExpressionFunctions);
1112
1112
  // !! mutates expressionEvaluation
1113
- const addGroupByParams = (groupByColumnNames, expressionEvaluation) => {
1113
+ export const addGroupByParams = (groupByColumnNames, expressionEvaluation) => {
1114
1114
  if (groupByColumnNames === null || groupByColumnNames === void 0 ? void 0 : groupByColumnNames.length) {
1115
1115
  expressionEvaluation.aggregationParams.groupBy = groupByColumnNames.map((columnName) => ({
1116
1116
  field: columnName,
@@ -1,7 +1,7 @@
1
1
  import { IAdaptableService } from './Interface/IAdaptableService';
2
2
  import { AdaptableApi } from '../../Api/AdaptableApi';
3
3
  import { Fdc3Options } from '../../AdaptableOptions/Fdc3Options';
4
- import { DesktopAgent, IntentResolution, AppIdentifier } from '@finos/fdc3';
4
+ import { AppIdentifier, DesktopAgent, IntentResolution } from '@finos/fdc3';
5
5
  import { Context } from '@finos/fdc3/dist/context/ContextTypes';
6
6
  export declare class Fdc3Service implements IAdaptableService {
7
7
  private adaptableApi;
@@ -1,5 +1,5 @@
1
- import { ContextConfiguration, } from '../../PredefinedConfig/Common/Fdc3Context';
2
- import { Fdc3IntentConfiguration, } from '../../PredefinedConfig/Common/Fdc3Intent';
1
+ import { ContextConfiguration } from '../../PredefinedConfig/Common/Fdc3Context';
2
+ import { Fdc3IntentConfiguration } from '../../PredefinedConfig/Common/Fdc3Intent';
3
3
  export class Fdc3Service {
4
4
  constructor(adaptableApi) {
5
5
  var _a, _b, _c, _d, _e, _f;
@@ -1,11 +1,13 @@
1
- import { IQueryLanguageService, ModuleExpressionFunctionsMap } from './Interface/IQueryLanguageService';
1
+ import { IRowNode } from '@ag-grid-community/core';
2
2
  import { Observable } from 'rxjs';
3
+ import { AdaptableApi, GridDataChangedInfo } from '../../../types';
4
+ import { GlobalExpressionFunctionsContext } from '../../AdaptableOptions/ExpressionOptions';
5
+ import { ExpressionFunction } from '../../parser/src/types';
3
6
  import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
4
- import { IRowNode } from '@ag-grid-community/core';
5
7
  import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
6
- import { ScalarAggregationParameter } from '../ExpressionFunctions/aggregatedScalarExpressionFunctions';
7
- import { AdaptableApi, GridDataChangedInfo } from '../../../types';
8
8
  import { BooleanAggregationParameter } from '../ExpressionFunctions/aggregatedBooleanExpressionFunctions';
9
+ import { ScalarAggregationParameter } from '../ExpressionFunctions/aggregatedScalarExpressionFunctions';
10
+ import { IQueryLanguageService, ModuleExpressionFunctionsMap } from './Interface/IQueryLanguageService';
9
11
  export declare class QueryLanguageService implements IQueryLanguageService {
10
12
  private adaptableApi;
11
13
  private cacheBooleanValidation;
@@ -42,6 +44,8 @@ export declare class QueryLanguageService implements IQueryLanguageService {
42
44
  getNamedQueryNamesFromExpression(input?: string): string[];
43
45
  getExpressionWithColumnFriendlyNames(expression?: string): string;
44
46
  getModuleExpressionFunctionsMap(module: AdaptableModule): ModuleExpressionFunctionsMap;
47
+ getCustomAggregatedScalarFunctions(): Record<string, ExpressionFunction> | ((context: GlobalExpressionFunctionsContext<string>) => Record<string, ExpressionFunction>);
48
+ private mapCustomAggregatedScalarFunctionsToInternal;
45
49
  private extractMappedExpressionFunctions;
46
50
  evaluateCustomQueryVariable(functionName: string, args?: any[]): any;
47
51
  private getBooleanAndScalarFunctions;