@adaptabletools/adaptable-cjs 18.0.11 → 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.
- package/agGrid.d.ts +4 -3
- package/agGrid.js +6 -1
- package/base.css +7 -2
- package/base.css.map +1 -1
- package/index.css +11 -2
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +27 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +20 -7
- package/src/AdaptableOptions/ExpressionOptions.d.ts +12 -2
- package/src/AdaptableOptions/Fdc3Options.d.ts +48 -43
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Events/Fdc3MessageInfo.d.ts +5 -7
- package/src/Api/ExpressionApi.d.ts +2 -2
- package/src/Api/Fdc3Api.d.ts +14 -19
- package/src/Api/Implementation/ConfigApiImpl.js +3 -0
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +14 -16
- package/src/Api/Implementation/Fdc3ApiImpl.js +35 -11
- package/src/Api/Internal/AlertInternalApi.d.ts +17 -2
- package/src/Api/Internal/AlertInternalApi.js +196 -25
- package/src/Api/Internal/ColumnFilterInternalApi.d.ts +2 -0
- package/src/Api/Internal/ColumnFilterInternalApi.js +20 -0
- package/src/Api/Internal/ExportInternalApi.d.ts +3 -3
- package/src/Api/Internal/ExportInternalApi.js +31 -17
- package/src/Api/Internal/ExpressionInternalApi.d.ts +5 -1
- package/src/Api/Internal/ExpressionInternalApi.js +80 -0
- package/src/Api/Internal/Fdc3InternalApi.d.ts +8 -10
- package/src/Api/Internal/Fdc3InternalApi.js +5 -9
- package/src/PredefinedConfig/Common/AdaptableField.d.ts +18 -0
- package/src/PredefinedConfig/Common/AdaptableField.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +7 -226
- package/src/PredefinedConfig/Common/Fdc3Context.js +44 -32
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +6 -89
- package/src/PredefinedConfig/Common/Fdc3Intent.js +27 -74
- package/src/PredefinedConfig/Common/RowSummary.d.ts +2 -1
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +0 -3
- package/src/Strategy/AdaptableModuleBase.js +1 -3
- package/src/Strategy/AlertModule.d.ts +1 -1
- package/src/Strategy/AlertModule.js +8 -8
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +14 -13
- package/src/Utilities/Services/Fdc3Service.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +8 -4
- package/src/Utilities/Services/QueryLanguageService.js +105 -6
- package/src/Utilities/Services/ReportService.js +8 -5
- package/src/Utilities/Services/RowSummaryService.js +3 -1
- package/src/Utilities/divideBy100.d.ts +1 -0
- package/src/Utilities/divideBy100.js +34 -0
- package/src/Utilities/times100.d.ts +1 -0
- package/src/Utilities/times100.js +27 -0
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +1 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +1 -0
- package/src/View/Components/EntityRulesEditor/index.js +11 -7
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/FilterForm/QuickFilterValues.js +28 -4
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +6 -2
- package/src/View/Components/Selectors/FieldSelector.d.ts +13 -0
- package/src/View/Components/Selectors/FieldSelector.js +26 -0
- package/src/View/Components/Selectors/PermittedValuesSelector.js +8 -4
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -2
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +7 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +3 -2
- package/src/agGrid/AdaptableAgGrid.d.ts +1 -2
- package/src/agGrid/AdaptableAgGrid.js +65 -37
- package/src/agGrid/AgGridAdapter.d.ts +2 -0
- package/src/agGrid/AgGridAdapter.js +12 -2
- package/src/agGrid/AgGridColumnAdapter.d.ts +3 -0
- package/src/agGrid/AgGridColumnAdapter.js +24 -1
- package/src/agGrid/AgGridMenuAdapter.js +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +0 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +0 -2
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +4 -16
- package/src/agGrid/editors/AdaptableDateEditor/index.js +6 -19
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +6 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +4 -3
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +6 -2
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.d.ts +23 -0
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +84 -0
- package/src/agGrid/editors/AdaptablePercentageEditor/index.d.ts +47 -0
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +153 -0
- package/src/agGrid/weightedAverage.js +3 -2
- package/src/components/Accordion.js +1 -1
- package/src/components/Datepicker/DatepickerContext.d.ts +0 -2
- package/src/components/Datepicker/index.js +3 -4
- package/src/components/ExpressionEditor/DataTableEditor.d.ts +17 -0
- package/src/components/ExpressionEditor/DataTableEditor.js +68 -0
- package/src/components/ExpressionEditor/EditorInput.js +21 -8
- package/src/components/ExpressionEditor/NamedQueryEditor.d.ts +5 -0
- package/src/components/ExpressionEditor/NamedQueryEditor.js +35 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.d.ts +10 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +7 -4
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +3 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +72 -14
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +27 -19
- package/src/components/ExpressionEditor/QueryBuilder/utils.d.ts +9 -1
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +46 -4
- package/src/components/ExpressionEditor/index.d.ts +3 -1
- package/src/components/ExpressionEditor/index.js +67 -92
- package/src/components/Input/NumberInput.d.ts +2 -1
- package/src/components/Input/NumberInput.js +6 -5
- package/src/components/OverlayTrigger/index.js +10 -6
- package/src/components/icons/column-outline.d.ts +3 -0
- package/src/components/icons/column-outline.js +7 -0
- package/src/components/icons/index.js +5 -1
- package/src/components/icons/sync.d.ts +3 -0
- package/src/components/icons/sync.js +7 -0
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +78 -200
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/predicate/mapExpressionToQlPredicate.d.ts +1 -0
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +13 -3
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +4 -1
- package/src/parser/src/types.d.ts +101 -1
- package/src/types.d.ts +9 -7
- package/tsconfig.cjs.tsbuildinfo +1 -1
|
@@ -1,81 +1,93 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ChartContextKey = 'fdc3.chart';
|
|
5
|
-
exports.ChatInitSettingsContextKey = 'fdc3.chat.initSettings';
|
|
6
|
-
exports.ContactContextKey = 'fdc3.contact';
|
|
7
|
-
exports.ContactListContextKey = 'fdc3.contactList';
|
|
8
|
-
exports.CountryContextKey = 'fdc3.country';
|
|
9
|
-
exports.CurrencyContextKey = 'fdc3.currency';
|
|
10
|
-
exports.EmailContextKey = 'fdc3.email';
|
|
11
|
-
exports.InstrumentContextKey = 'fdc3.instrument';
|
|
12
|
-
exports.InstrumentListContextKey = 'fdc3.instrumentList';
|
|
13
|
-
exports.OrganizationContextKey = 'fdc3.organization';
|
|
14
|
-
exports.PortfolioContextKey = 'fdc3.portfolio';
|
|
15
|
-
exports.PositionContextKey = 'fdc3.position';
|
|
16
|
-
exports.TimeRangeContextKey = 'fdc3.timerange';
|
|
17
|
-
exports.ValuationContextKey = 'fdc3.valuation';
|
|
18
|
-
exports.NothingContextKey = 'fdc3.nothing';
|
|
3
|
+
exports.ContextConfiguration = void 0;
|
|
19
4
|
exports.ContextConfiguration = {
|
|
20
|
-
|
|
5
|
+
'fdc3.action': {
|
|
6
|
+
label: 'Action',
|
|
7
|
+
icon: 'fdc3',
|
|
8
|
+
},
|
|
9
|
+
'fdc3.chart': {
|
|
21
10
|
label: 'Chart',
|
|
22
11
|
icon: 'pie-chart',
|
|
23
12
|
},
|
|
24
|
-
|
|
13
|
+
'fdc3.chat.initSettings': {
|
|
25
14
|
label: 'ChatInitSettings',
|
|
26
15
|
icon: 'chat',
|
|
27
16
|
},
|
|
28
|
-
|
|
17
|
+
'fdc3.chat.message': {
|
|
18
|
+
label: 'ChatMessage',
|
|
19
|
+
icon: 'chat',
|
|
20
|
+
},
|
|
21
|
+
'fdc3.chat.room': {
|
|
22
|
+
label: 'ChatRoom',
|
|
23
|
+
icon: 'chat',
|
|
24
|
+
},
|
|
25
|
+
'fdc3.chat.searchCriteria': {
|
|
26
|
+
label: 'ChatSearchCriteria',
|
|
27
|
+
icon: 'chat',
|
|
28
|
+
},
|
|
29
|
+
'fdc3.contact': {
|
|
29
30
|
label: 'Contact',
|
|
30
31
|
icon: 'badge',
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
+
'fdc3.contactList': {
|
|
33
34
|
label: 'ContactList',
|
|
34
35
|
icon: 'badge',
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
+
'fdc3.country': {
|
|
37
38
|
label: 'Country',
|
|
38
39
|
icon: 'flag',
|
|
39
40
|
},
|
|
40
|
-
|
|
41
|
+
'fdc3.currency': {
|
|
41
42
|
label: 'Currency',
|
|
42
43
|
icon: 'dollar',
|
|
43
44
|
},
|
|
44
|
-
|
|
45
|
+
'fdc3.email': {
|
|
45
46
|
label: 'Email',
|
|
46
47
|
icon: 'mail',
|
|
47
48
|
},
|
|
48
|
-
|
|
49
|
+
'fdc3.instrument': {
|
|
49
50
|
label: 'Instrument',
|
|
50
51
|
icon: 'money',
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
+
'fdc3.instrumentList': {
|
|
53
54
|
label: 'InstrumentList',
|
|
54
55
|
icon: 'money',
|
|
55
56
|
},
|
|
56
|
-
|
|
57
|
+
'fdc3.interaction': {
|
|
58
|
+
label: 'Interaction',
|
|
59
|
+
icon: 'sync',
|
|
60
|
+
},
|
|
61
|
+
'fdc3.message': {
|
|
62
|
+
label: 'Message',
|
|
63
|
+
icon: 'mail',
|
|
64
|
+
},
|
|
65
|
+
'fdc3.organization': {
|
|
57
66
|
label: 'Organization',
|
|
58
67
|
icon: 'organisation',
|
|
59
68
|
},
|
|
60
|
-
|
|
69
|
+
'fdc3.portfolio': {
|
|
61
70
|
label: 'Portfolio',
|
|
62
71
|
icon: 'building',
|
|
63
72
|
},
|
|
64
|
-
|
|
73
|
+
'fdc3.position': {
|
|
65
74
|
label: 'Position',
|
|
66
75
|
icon: 'building',
|
|
67
76
|
},
|
|
68
|
-
|
|
77
|
+
'fdc3.timerange': {
|
|
69
78
|
label: 'TimeRange',
|
|
70
79
|
icon: 'date-range',
|
|
71
80
|
},
|
|
72
|
-
|
|
81
|
+
'fdc3.transactionResult': {
|
|
82
|
+
label: 'TransactionResult',
|
|
83
|
+
icon: 'fdc3',
|
|
84
|
+
},
|
|
85
|
+
'fdc3.valuation': {
|
|
73
86
|
label: 'Valuation',
|
|
74
87
|
icon: 'equation',
|
|
75
88
|
},
|
|
76
|
-
|
|
89
|
+
'fdc3.nothing': {
|
|
77
90
|
label: 'Nothing',
|
|
78
91
|
icon: 'fdc3',
|
|
79
92
|
},
|
|
80
93
|
};
|
|
81
|
-
exports.StandardContextTypes = Object.keys(exports.ContextConfiguration);
|
|
@@ -1,89 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export
|
|
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,106 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const Fdc3Context_1 = require("./Fdc3Context");
|
|
5
|
-
exports.StartCallIntent = 'StartCall';
|
|
6
|
-
exports.StartChatIntent = 'StartChat';
|
|
7
|
-
exports.StartEmailIntent = 'StartEmail';
|
|
8
|
-
exports.ViewAnalysisIntent = 'ViewAnalysis';
|
|
9
|
-
exports.ViewChartIntent = 'ViewChart';
|
|
10
|
-
exports.ViewContactIntent = 'ViewContact';
|
|
11
|
-
exports.ViewHoldingsIntent = 'ViewHoldings';
|
|
12
|
-
exports.ViewInstrumentIntent = 'ViewInstrument';
|
|
13
|
-
exports.ViewInteractionsIntent = 'ViewInteractions';
|
|
14
|
-
exports.ViewNewsIntent = 'ViewNews';
|
|
15
|
-
exports.ViewOrdersIntent = 'ViewOrders';
|
|
16
|
-
exports.ViewProfileIntent = 'ViewProfile';
|
|
17
|
-
exports.ViewQuoteIntent = 'ViewQuote';
|
|
18
|
-
exports.ViewResearchIntent = 'ViewResearch';
|
|
3
|
+
exports.Fdc3IntentConfiguration = void 0;
|
|
19
4
|
exports.Fdc3IntentConfiguration = {
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
CreateInteraction: {
|
|
6
|
+
icon: 'sync',
|
|
7
|
+
},
|
|
8
|
+
SendChatMessage: {
|
|
9
|
+
icon: 'chat',
|
|
10
|
+
},
|
|
11
|
+
StartCall: {
|
|
22
12
|
icon: 'call',
|
|
23
13
|
},
|
|
24
|
-
|
|
25
|
-
contexts: [
|
|
26
|
-
Fdc3Context_1.ContactContextKey,
|
|
27
|
-
Fdc3Context_1.ContactListContextKey,
|
|
28
|
-
Fdc3Context_1.ChatInitSettingsContextKey,
|
|
29
|
-
Fdc3Context_1.NothingContextKey,
|
|
30
|
-
],
|
|
14
|
+
StartChat: {
|
|
31
15
|
icon: 'chat',
|
|
32
16
|
},
|
|
33
|
-
|
|
34
|
-
contexts: [Fdc3Context_1.EmailContextKey],
|
|
17
|
+
StartEmail: {
|
|
35
18
|
icon: 'mail',
|
|
36
19
|
},
|
|
37
|
-
|
|
38
|
-
contexts: [
|
|
39
|
-
Fdc3Context_1.InstrumentContextKey,
|
|
40
|
-
Fdc3Context_1.OrganizationContextKey,
|
|
41
|
-
Fdc3Context_1.PortfolioContextKey,
|
|
42
|
-
Fdc3Context_1.NothingContextKey,
|
|
43
|
-
],
|
|
20
|
+
ViewAnalysis: {
|
|
44
21
|
icon: 'spark-line',
|
|
45
22
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Fdc3Context_1.InstrumentListContextKey,
|
|
51
|
-
Fdc3Context_1.PortfolioContextKey,
|
|
52
|
-
Fdc3Context_1.PositionContextKey,
|
|
53
|
-
Fdc3Context_1.NothingContextKey,
|
|
54
|
-
],
|
|
23
|
+
ViewChat: {
|
|
24
|
+
icon: 'chat',
|
|
25
|
+
},
|
|
26
|
+
ViewChart: {
|
|
55
27
|
icon: 'pie-chart',
|
|
56
28
|
},
|
|
57
|
-
|
|
58
|
-
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.NothingContextKey],
|
|
29
|
+
ViewContact: {
|
|
59
30
|
icon: 'person',
|
|
60
31
|
},
|
|
61
|
-
|
|
62
|
-
contexts: [
|
|
63
|
-
Fdc3Context_1.InstrumentContextKey,
|
|
64
|
-
Fdc3Context_1.InstrumentListContextKey,
|
|
65
|
-
Fdc3Context_1.OrganizationContextKey,
|
|
66
|
-
Fdc3Context_1.NothingContextKey,
|
|
67
|
-
],
|
|
32
|
+
ViewHoldings: {
|
|
68
33
|
icon: 'building',
|
|
69
34
|
},
|
|
70
|
-
|
|
71
|
-
contexts: [Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.NothingContextKey],
|
|
35
|
+
ViewInstrument: {
|
|
72
36
|
icon: 'money',
|
|
73
37
|
},
|
|
74
|
-
|
|
75
|
-
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.OrganizationContextKey, Fdc3Context_1.NothingContextKey],
|
|
38
|
+
ViewInteractions: {
|
|
76
39
|
icon: 'interactions',
|
|
77
40
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
Fdc3Context_1.InstrumentListContextKey,
|
|
83
|
-
Fdc3Context_1.OrganizationContextKey,
|
|
84
|
-
Fdc3Context_1.PortfolioContextKey,
|
|
85
|
-
Fdc3Context_1.NothingContextKey,
|
|
86
|
-
],
|
|
41
|
+
ViewMessages: {
|
|
42
|
+
icon: 'mail',
|
|
43
|
+
},
|
|
44
|
+
ViewNews: {
|
|
87
45
|
icon: 'news',
|
|
88
46
|
},
|
|
89
|
-
|
|
90
|
-
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.OrganizationContextKey, Fdc3Context_1.NothingContextKey],
|
|
47
|
+
ViewOrders: {
|
|
91
48
|
icon: 'order',
|
|
92
49
|
},
|
|
93
|
-
|
|
94
|
-
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.OrganizationContextKey, Fdc3Context_1.NothingContextKey],
|
|
50
|
+
ViewProfile: {
|
|
95
51
|
icon: 'badge',
|
|
96
52
|
},
|
|
97
|
-
|
|
98
|
-
contexts: [Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.NothingContextKey],
|
|
53
|
+
ViewQuote: {
|
|
99
54
|
icon: 'quote',
|
|
100
55
|
},
|
|
101
|
-
|
|
102
|
-
contexts: [Fdc3Context_1.ContactContextKey, Fdc3Context_1.InstrumentContextKey, Fdc3Context_1.OrganizationContextKey, Fdc3Context_1.NothingContextKey],
|
|
56
|
+
ViewResearch: {
|
|
103
57
|
icon: 'science',
|
|
104
58
|
},
|
|
105
59
|
};
|
|
106
|
-
exports.Fdc3StandardIntents = Object.keys(exports.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
|
|
6
|
+
import { RowScope } from './Common/RowScope';
|
|
7
7
|
/**
|
|
8
8
|
* Predefined Configuration for Styled Column Module
|
|
9
9
|
*/
|
|
@@ -130,9 +130,6 @@ const FormatColumnReducer = (state = initialState, action) => {
|
|
|
130
130
|
case exports.FORMAT_COLUMN_UNSUSPEND: {
|
|
131
131
|
return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.changeIsSuspendInList)(action.formatColumn, state.FormatColumns, false) });
|
|
132
132
|
}
|
|
133
|
-
case exports.FORMAT_COLUMN_SUSPEND_ALL: {
|
|
134
|
-
return Object.assign(Object.assign({}, state), { FormatColumns: state.FormatColumns.map((formatColumn) => (Object.assign(Object.assign({}, formatColumn), { IsSuspended: true }))) });
|
|
135
|
-
}
|
|
136
133
|
case exports.FORMAT_COLUMN_SUSPEND_ALL: {
|
|
137
134
|
return Object.assign(Object.assign({}, state), { FormatColumns: (0, utils_1.suspendAllInList)(state.FormatColumns) });
|
|
138
135
|
}
|
|
@@ -21,9 +21,7 @@ class AdaptableModuleBase {
|
|
|
21
21
|
this.api = api;
|
|
22
22
|
this.api.eventApi.on('AdaptableReady', () => {
|
|
23
23
|
this.onAdaptableReady();
|
|
24
|
-
|
|
25
|
-
this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
|
|
26
|
-
}, 100);
|
|
24
|
+
this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
|
|
27
25
|
});
|
|
28
26
|
this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
|
|
29
27
|
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;
|
|
@@ -6,18 +6,18 @@ const AlertRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/AlertR
|
|
|
6
6
|
const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
9
|
-
const
|
|
9
|
+
const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
|
|
10
|
+
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
11
|
+
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
12
|
+
const getAlertType_1 = require("../View/Alert/Utilities/getAlertType");
|
|
10
13
|
const AlertWizard_1 = require("../View/Alert/Wizard/AlertWizard");
|
|
11
|
-
const
|
|
12
|
-
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
13
|
-
const getAlertPreviewViewItems_1 = require("./Utilities/Alert/getAlertPreviewViewItems");
|
|
14
|
+
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
14
15
|
const getAlertBehaviourViewItems_1 = require("./Utilities/Alert/getAlertBehaviourViewItems");
|
|
16
|
+
const getAlertPreviewViewItems_1 = require("./Utilities/Alert/getAlertPreviewViewItems");
|
|
15
17
|
const getAlertTypeViewItems_1 = require("./Utilities/Alert/getAlertTypeViewItems");
|
|
16
|
-
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
17
|
-
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
18
|
-
const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
|
|
19
18
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
20
|
-
const
|
|
19
|
+
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
20
|
+
const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
21
21
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
22
22
|
constructor(api) {
|
|
23
23
|
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 {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.aggregatedScalarExpressionFunctionNames = exports.aggregatedScalarExpressionFunctions = exports.quantileAggregatedExpressionFunctions = exports.cumulativeAggregatedExpressionFunctions = exports.aggregatedExpressionFunctions = void 0;
|
|
3
|
+
exports.addGroupByParams = exports.aggregatedScalarExpressionFunctionNames = exports.aggregatedScalarExpressionFunctions = exports.quantileAggregatedExpressionFunctions = exports.cumulativeAggregatedExpressionFunctions = exports.aggregatedExpressionFunctions = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
6
6
|
const ArrayExtensions_1 = require("../Extensions/ArrayExtensions");
|
|
@@ -103,7 +103,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
103
103
|
getRowNodes: context.getRowNodes,
|
|
104
104
|
columnType,
|
|
105
105
|
};
|
|
106
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
106
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
107
107
|
const result = {
|
|
108
108
|
name: 'SUM',
|
|
109
109
|
type: 'aggregationScalar',
|
|
@@ -168,7 +168,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
168
168
|
getRowNodes: context.getRowNodes,
|
|
169
169
|
columnType,
|
|
170
170
|
};
|
|
171
|
-
addGroupByParams(groupByColumnNames, aggregationExpressionEvaluation);
|
|
171
|
+
(0, exports.addGroupByParams)(groupByColumnNames, aggregationExpressionEvaluation);
|
|
172
172
|
const result = {
|
|
173
173
|
name: 'PERCENTAGE',
|
|
174
174
|
type: 'aggregationScalar',
|
|
@@ -244,7 +244,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
244
244
|
getRowNodes: context.getRowNodes,
|
|
245
245
|
columnType,
|
|
246
246
|
};
|
|
247
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
247
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
248
248
|
if (weightParameter) {
|
|
249
249
|
aggregationExpressionEvaluation.context = {
|
|
250
250
|
weightParam: weightParameter,
|
|
@@ -315,7 +315,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
315
315
|
getRowNodes: context.getRowNodes,
|
|
316
316
|
columnType,
|
|
317
317
|
};
|
|
318
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
318
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
319
319
|
const result = {
|
|
320
320
|
name: 'MEDIAN',
|
|
321
321
|
type: 'aggregationScalar',
|
|
@@ -382,7 +382,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
382
382
|
getRowNodes: context.getRowNodes,
|
|
383
383
|
columnType,
|
|
384
384
|
};
|
|
385
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
385
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
386
386
|
const result = {
|
|
387
387
|
name: 'MODE',
|
|
388
388
|
type: 'aggregationScalar',
|
|
@@ -430,7 +430,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
430
430
|
},
|
|
431
431
|
getRowNodes: context.getRowNodes,
|
|
432
432
|
};
|
|
433
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
433
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
434
434
|
const result = {
|
|
435
435
|
name: 'DISTINCT',
|
|
436
436
|
type: 'aggregationScalar',
|
|
@@ -481,7 +481,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
481
481
|
getRowNodes: context.getRowNodes,
|
|
482
482
|
columnType,
|
|
483
483
|
};
|
|
484
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
484
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
485
485
|
const result = {
|
|
486
486
|
name: 'ONLY',
|
|
487
487
|
type: 'aggregationScalar',
|
|
@@ -540,7 +540,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
540
540
|
getRowNodes: context.getRowNodes,
|
|
541
541
|
columnType,
|
|
542
542
|
};
|
|
543
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
543
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
544
544
|
const result = {
|
|
545
545
|
name: 'STD_DEVIATION',
|
|
546
546
|
type: 'aggregationScalar',
|
|
@@ -604,7 +604,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
604
604
|
getRowNodes: context.getRowNodes,
|
|
605
605
|
columnType,
|
|
606
606
|
};
|
|
607
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
607
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
608
608
|
const result = {
|
|
609
609
|
name: 'MIN',
|
|
610
610
|
type: 'aggregationScalar',
|
|
@@ -668,7 +668,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
668
668
|
getRowNodes: context.getRowNodes,
|
|
669
669
|
columnType,
|
|
670
670
|
};
|
|
671
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
671
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
672
672
|
const result = {
|
|
673
673
|
name: 'MAX',
|
|
674
674
|
type: 'aggregationScalar',
|
|
@@ -801,7 +801,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
801
801
|
},
|
|
802
802
|
columnType,
|
|
803
803
|
};
|
|
804
|
-
addGroupByParams(groupByOperand === null || groupByOperand === void 0 ? void 0 : groupByOperand.value, aggregationExpressionEvaluation);
|
|
804
|
+
(0, exports.addGroupByParams)(groupByOperand === null || groupByOperand === void 0 ? void 0 : groupByOperand.value, aggregationExpressionEvaluation);
|
|
805
805
|
const result = {
|
|
806
806
|
name: 'QUANT',
|
|
807
807
|
type: 'aggregationScalar',
|
|
@@ -868,7 +868,7 @@ exports.aggregatedScalarExpressionFunctions = {
|
|
|
868
868
|
rowFilterFn: context.filterFn,
|
|
869
869
|
getRowNodes: context.getRowNodes,
|
|
870
870
|
};
|
|
871
|
-
addGroupByParams(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
871
|
+
(0, exports.addGroupByParams)(groupByParameter === null || groupByParameter === void 0 ? void 0 : groupByParameter.value, aggregationExpressionEvaluation);
|
|
872
872
|
const result = {
|
|
873
873
|
name: 'COUNT',
|
|
874
874
|
type: 'aggregationScalar',
|
|
@@ -1121,6 +1121,7 @@ const addGroupByParams = (groupByColumnNames, expressionEvaluation) => {
|
|
|
1121
1121
|
}));
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
|
+
exports.addGroupByParams = addGroupByParams;
|
|
1124
1125
|
const isUndefinedValue = (input) => {
|
|
1125
1126
|
return input == undefined || (typeof input === 'string' && input.trim() === '');
|
|
1126
1127
|
};
|
|
@@ -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
|
|
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,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
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;
|