@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +234 -228
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -7
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +7 -31
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +0 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +3 -32
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +2 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -22
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +6 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +14 -3
- package/src/agGrid/Adaptable.js +129 -30
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +230 -145
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +13 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
package/src/Api/ThemeApi.d.ts
CHANGED
|
@@ -78,23 +78,4 @@ export interface ThemeApi {
|
|
|
78
78
|
* Get the name of the current AG Grid theme
|
|
79
79
|
*/
|
|
80
80
|
getAgGridCurrentThemeName(): string;
|
|
81
|
-
/**
|
|
82
|
-
* TO BE REMOVED
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use `getSystemThemes()` instead
|
|
86
|
-
*/
|
|
87
|
-
getAllSystemTheme(): AdaptableTheme[];
|
|
88
|
-
/**
|
|
89
|
-
* @deprecated use `getUserThemes()` instead
|
|
90
|
-
*/
|
|
91
|
-
getAllUserTheme(): AdaptableTheme[];
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated use `getThemes()` instead
|
|
94
|
-
*/
|
|
95
|
-
getAllTheme(): AdaptableTheme[];
|
|
96
|
-
/**
|
|
97
|
-
* @deprecated use `openThemeSettingsPanel()` instead
|
|
98
|
-
*/
|
|
99
|
-
showThemePopup(): void;
|
|
100
81
|
}
|
|
@@ -4,6 +4,7 @@ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../Predefin
|
|
|
4
4
|
import { BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
|
|
5
5
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
6
6
|
import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
|
|
7
|
+
import { AdaptableIcon } from '../types';
|
|
7
8
|
/**
|
|
8
9
|
* Functions relating to User Interface section of Adaptable State
|
|
9
10
|
*/
|
|
@@ -75,14 +76,8 @@ export interface UserInterfaceApi {
|
|
|
75
76
|
*/
|
|
76
77
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
77
78
|
/**
|
|
78
|
-
*
|
|
79
|
+
* Returns AdapTable Icon with given name
|
|
80
|
+
* @param name name of Icon
|
|
79
81
|
*/
|
|
80
|
-
|
|
81
|
-
* @deprecated use `getPermittedValuesItems()` instead
|
|
82
|
-
*/
|
|
83
|
-
getAllPermittedValuesItems(): PermittedValues[];
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use `getEditLookUpItems()` instead
|
|
86
|
-
*/
|
|
87
|
-
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
82
|
+
getCustomIconDefinition(name: string): AdaptableIcon | undefined;
|
|
88
83
|
}
|
|
@@ -37,7 +37,7 @@ export interface AlertDefinition extends SuspendableObject {
|
|
|
37
37
|
*/
|
|
38
38
|
MessageType: AdaptableMessageType;
|
|
39
39
|
/**
|
|
40
|
-
* Title of
|
|
40
|
+
* Title of displayed Alert Message
|
|
41
41
|
*/
|
|
42
42
|
MessageHeader?: string;
|
|
43
43
|
/**
|
|
@@ -59,6 +59,9 @@ export interface AlertDefinition extends SuspendableObject {
|
|
|
59
59
|
export declare type AlertButtonForm = Omit<AdaptableForm<AlertFormContext>, 'title' | 'buttons' | 'description'> & {
|
|
60
60
|
Buttons?: AlertButton<AlertFormContext>[];
|
|
61
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* Predicate used when creating a Predicate-based Rule for an Alert
|
|
64
|
+
*/
|
|
62
65
|
export interface AlertDefinitionPredicate extends AdaptableColumnPredicate {
|
|
63
66
|
PredicateId: TypeHint<string, SystemAlertPredicateId>;
|
|
64
67
|
}
|
|
@@ -19,7 +19,7 @@ export interface BaseFormatterOptions {
|
|
|
19
19
|
*/
|
|
20
20
|
export interface NumberFormatterOptions extends BaseFormatterOptions {
|
|
21
21
|
/**
|
|
22
|
-
* Number of digits to show in
|
|
22
|
+
* Number of digits to show in Fractions (up to 20)
|
|
23
23
|
*/
|
|
24
24
|
FractionDigits?: number;
|
|
25
25
|
/**
|
|
@@ -27,11 +27,11 @@ export interface NumberFormatterOptions extends BaseFormatterOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
FractionSeparator?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Number of digits to show for
|
|
30
|
+
* Number of digits to show for Integers (up to 20)
|
|
31
31
|
*/
|
|
32
32
|
IntegerDigits?: number;
|
|
33
33
|
/**
|
|
34
|
-
* Separator to use in
|
|
34
|
+
* Separator to use in Integers
|
|
35
35
|
*/
|
|
36
36
|
IntegerSeparator?: string;
|
|
37
37
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { TypeHint } from './Types';
|
|
2
3
|
/**
|
|
3
4
|
* Defines an icon to be used in AdapTable (e.g. in Dashboard Header, Buttons, Menu, etc.)
|
|
4
5
|
*/
|
|
@@ -9,8 +10,10 @@ export declare type AdaptableIcon = AdaptableInternalIcon | AdaptableExternalIco
|
|
|
9
10
|
export interface AdaptableInternalIcon extends AdaptableBaseIcon {
|
|
10
11
|
/**
|
|
11
12
|
* The name of the icon to use (referencing the AdapTable Icon Library)
|
|
13
|
+
*
|
|
14
|
+
* The icon can be a adaptable icon or a custom one defined in `interfaceOptions.customIcons`
|
|
12
15
|
*/
|
|
13
|
-
name: AdaptableInternalIconName
|
|
16
|
+
name: TypeHint<string, AdaptableInternalIconName>;
|
|
14
17
|
/**
|
|
15
18
|
* The size (in pixels) of the SVG icon (defaults to `17px`)
|
|
16
19
|
*
|
|
@@ -12,4 +12,7 @@ export interface WeightedAverageAggregation {
|
|
|
12
12
|
*/
|
|
13
13
|
weightedColumnId: string;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Defines which Columns in a Layout display Aggregated values when Row-Grouped
|
|
17
|
+
*/
|
|
15
18
|
export declare type AggregationColumns = Record<string, string | true | WeightedAverageAggregation>;
|
|
@@ -13,6 +13,6 @@ export interface Entitlement {
|
|
|
13
13
|
accessLevel: AccessLevel;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* Defines Access Level for an Entitlement
|
|
16
|
+
* Defines Access Level for an Entitlement: `ReadOnly`, `Hidden` or `Full`
|
|
17
17
|
*/
|
|
18
18
|
export declare type AccessLevel = 'ReadOnly' | 'Hidden' | 'Full';
|
|
@@ -68,12 +68,6 @@ export interface Layout extends AdaptableObject {
|
|
|
68
68
|
PinnedColumnsMap?: {
|
|
69
69
|
[columnId: string]: 'left' | 'right';
|
|
70
70
|
};
|
|
71
|
-
/**
|
|
72
|
-
* Whether Layout should automatically save or not - overrides `autoSaveLayouts` property in LayoutOptions
|
|
73
|
-
*
|
|
74
|
-
* @deprecated - use `autoSaveLayouts` property in LayoutOptions instead, will be removed in next major version
|
|
75
|
-
*/
|
|
76
|
-
AutoSave?: boolean;
|
|
77
71
|
/**
|
|
78
72
|
* Set of custom header names for some (or all columns)
|
|
79
73
|
*/
|
|
@@ -87,7 +87,7 @@ export interface SystemState extends InternalState, IPushPullState, Glue42State,
|
|
|
87
87
|
previousGroupedColumns: Record<string, Record<string, number>>;
|
|
88
88
|
};
|
|
89
89
|
/**
|
|
90
|
-
* Equivalent of `
|
|
90
|
+
* Equivalent of `UserInterfaceOptions.disableDeleteConfirmation`
|
|
91
91
|
* It will suppress the deletion confirmation dialog in the current session.
|
|
92
92
|
*/
|
|
93
93
|
DisableDeleteConfirmation: boolean;
|
|
@@ -244,9 +244,9 @@ class AdaptableModuleBase {
|
|
|
244
244
|
}
|
|
245
245
|
getFriendlyName(module, friendlyName) {
|
|
246
246
|
let returnValue = friendlyName;
|
|
247
|
-
let
|
|
248
|
-
if (
|
|
249
|
-
|
|
247
|
+
let userInterfaceOptions = this.api.optionsApi.getUserInterfaceOptions();
|
|
248
|
+
if (userInterfaceOptions && ArrayExtensions_1.default.IsNotNullOrEmpty(userInterfaceOptions.alternativeModuleNames)) {
|
|
249
|
+
userInterfaceOptions.alternativeModuleNames.forEach((af) => {
|
|
250
250
|
if (module == af.adaptableModule) {
|
|
251
251
|
returnValue = af.newName;
|
|
252
252
|
}
|
|
@@ -58,9 +58,9 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
58
58
|
return this.api.alertApi.getAlertDefinitions(config);
|
|
59
59
|
}
|
|
60
60
|
getExplicitlyReferencedColumnIds(alertDefinition) {
|
|
61
|
-
const queryExpression = this.api.
|
|
61
|
+
const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
62
62
|
if (queryExpression) {
|
|
63
|
-
return this.api.
|
|
63
|
+
return this.api.expressionApi.getColumnsFromExpression(queryExpression);
|
|
64
64
|
}
|
|
65
65
|
else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
|
|
66
66
|
return this.api.scopeApi
|
|
@@ -70,7 +70,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
70
70
|
return [];
|
|
71
71
|
}
|
|
72
72
|
getReferencedNamedQueryNames(alertDefinition) {
|
|
73
|
-
const queryExpression = this.api.
|
|
73
|
+
const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
74
74
|
if (!queryExpression) {
|
|
75
75
|
return [];
|
|
76
76
|
}
|
|
@@ -46,11 +46,11 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
46
46
|
}
|
|
47
47
|
getExplicitlyReferencedColumnIds(calculatedColumn) {
|
|
48
48
|
var _a;
|
|
49
|
-
return ((_a = this.api.
|
|
49
|
+
return ((_a = this.api.expressionApi.getColumnsFromExpression(this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
|
|
50
50
|
}
|
|
51
51
|
getReferencedNamedQueryNames(calculatedColumn) {
|
|
52
52
|
var _a;
|
|
53
|
-
return ((_a = this.api.queryApi.internalApi.getReferencedNamedQueryNames(this.api.
|
|
53
|
+
return ((_a = this.api.queryApi.internalApi.getReferencedNamedQueryNames(this.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
|
|
54
54
|
}
|
|
55
55
|
isCalculatedColumn(column) {
|
|
56
56
|
return (column &&
|
|
@@ -105,6 +105,8 @@ class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
105
105
|
numericValues,
|
|
106
106
|
numericColumns,
|
|
107
107
|
adaptableApi: this.api,
|
|
108
|
+
userName: this.api.optionsApi.getUserName(),
|
|
109
|
+
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
108
110
|
};
|
|
109
111
|
selectedCellSummary[operation.operationName] = operation.operationFunction(cellSummaryOperationContext);
|
|
110
112
|
}
|
|
@@ -2,7 +2,7 @@ import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
|
2
2
|
import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/IModule';
|
|
3
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
4
|
import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
|
|
5
|
-
import { DataSet } from '../AdaptableOptions/
|
|
5
|
+
import { DataSet } from '../AdaptableOptions/DataSetOptions';
|
|
6
6
|
export declare class DataSetModule extends AdaptableModuleBase implements IModule {
|
|
7
7
|
constructor(api: AdaptableApi);
|
|
8
8
|
handleAdaptableReady(): void;
|
|
@@ -21,7 +21,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
21
21
|
}
|
|
22
22
|
getModuleAdaptableObjects() {
|
|
23
23
|
var _a, _b;
|
|
24
|
-
return (_b = (_a = this.api.optionsApi.
|
|
24
|
+
return (_b = (_a = this.api.optionsApi.getDataSetOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
|
|
25
25
|
}
|
|
26
26
|
hasNamedQueryReferences() {
|
|
27
27
|
return false;
|
|
@@ -178,6 +178,8 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
178
178
|
report: report,
|
|
179
179
|
reportData,
|
|
180
180
|
adaptableApi: this.api,
|
|
181
|
+
userName: this.api.optionsApi.getUserName(),
|
|
182
|
+
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
181
183
|
};
|
|
182
184
|
customDestination.onExport(reportContext);
|
|
183
185
|
}
|
|
@@ -215,6 +217,8 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
215
217
|
return preProcessExportFn({
|
|
216
218
|
report,
|
|
217
219
|
adaptableApi: this.api,
|
|
220
|
+
userName: this.api.optionsApi.getUserName(),
|
|
221
|
+
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
218
222
|
getReportColumns: (includePrimaryKey) => {
|
|
219
223
|
return this.api.internalApi
|
|
220
224
|
.getReportService()
|
|
@@ -59,9 +59,9 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
59
59
|
return this.api.flashingCellApi.getFlashingCellDefinitions(config);
|
|
60
60
|
}
|
|
61
61
|
getExplicitlyReferencedColumnIds(alertDefinition) {
|
|
62
|
-
const queryExpression = this.api.
|
|
62
|
+
const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
63
63
|
if (queryExpression) {
|
|
64
|
-
return this.api.
|
|
64
|
+
return this.api.expressionApi.getColumnsFromExpression(queryExpression);
|
|
65
65
|
}
|
|
66
66
|
else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
|
|
67
67
|
return this.api.scopeApi
|
|
@@ -71,7 +71,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
71
71
|
return [];
|
|
72
72
|
}
|
|
73
73
|
getReferencedNamedQueryNames(alertDefinition) {
|
|
74
|
-
const queryExpression = this.api.
|
|
74
|
+
const queryExpression = this.api.expressionApi.getAdaptableQueryExpression(alertDefinition.Rule);
|
|
75
75
|
if (!queryExpression) {
|
|
76
76
|
return [];
|
|
77
77
|
}
|
|
@@ -198,7 +198,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
198
198
|
if (!rowNode) {
|
|
199
199
|
rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
|
|
200
200
|
}
|
|
201
|
-
const isValidExpression = this.api.
|
|
201
|
+
const isValidExpression = this.api.expressionApi.isValidBooleanExpression(expression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${expression}'`);
|
|
202
202
|
const isSatisfiedExpression = isValidExpression &&
|
|
203
203
|
this.api.internalApi
|
|
204
204
|
.getQueryLanguageService()
|
|
@@ -25,9 +25,9 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
25
25
|
return this.api.formatColumnApi.getFormatColumns(config);
|
|
26
26
|
}
|
|
27
27
|
getExplicitlyReferencedColumnIds(formatColumn) {
|
|
28
|
-
const queryExpression = formatColumn.Rule && this.api.
|
|
28
|
+
const queryExpression = formatColumn.Rule && this.api.expressionApi.getAdaptableQueryExpression(formatColumn.Rule);
|
|
29
29
|
if (queryExpression) {
|
|
30
|
-
return this.api.
|
|
30
|
+
return this.api.expressionApi.getColumnsFromExpression(queryExpression);
|
|
31
31
|
}
|
|
32
32
|
else if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
|
|
33
33
|
return this.api.scopeApi
|
|
@@ -37,7 +37,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
37
37
|
return [];
|
|
38
38
|
}
|
|
39
39
|
getReferencedNamedQueryNames(formatColumn) {
|
|
40
|
-
const queryExpression = formatColumn.Rule && this.api.
|
|
40
|
+
const queryExpression = formatColumn.Rule && this.api.expressionApi.getAdaptableQueryExpression(formatColumn.Rule);
|
|
41
41
|
if (!queryExpression) {
|
|
42
42
|
return [];
|
|
43
43
|
}
|
|
@@ -23,7 +23,7 @@ class QueryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
getExplicitlyReferencedColumnIds(namedQuery) {
|
|
26
|
-
return this.api.
|
|
26
|
+
return this.api.expressionApi.getColumnsFromExpression(namedQuery.BooleanExpression);
|
|
27
27
|
}
|
|
28
28
|
getReferencedNamedQueryNames(namedQuery) {
|
|
29
29
|
return this.api.queryApi.internalApi.getReferencedNamedQueryNames(namedQuery.BooleanExpression);
|
|
@@ -127,6 +127,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
127
127
|
smartEditValue: smartEditValue,
|
|
128
128
|
currentCell: selectedCell,
|
|
129
129
|
adaptableApi: this.api,
|
|
130
|
+
userName: this.api.optionsApi.getUserName(),
|
|
131
|
+
adaptableId: this.api.optionsApi.getAdaptableId(),
|
|
130
132
|
};
|
|
131
133
|
newValue = smartEditOperation.operation(context);
|
|
132
134
|
}
|
|
@@ -26,6 +26,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
26
26
|
dataChangeDetectionPolicy: 'rawValue',
|
|
27
27
|
actionHandlers: undefined,
|
|
28
28
|
alertMessageText: undefined,
|
|
29
|
+
showMissingPrimaryKeyAlert: false,
|
|
29
30
|
},
|
|
30
31
|
notificationsOptions: {
|
|
31
32
|
maxNotifications: 3,
|
|
@@ -56,9 +57,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
56
57
|
adaptableQLOptions: {
|
|
57
58
|
caseSensitiveTextComparisons: false,
|
|
58
59
|
evaluateAdaptableQLExternally: undefined,
|
|
59
|
-
customPredicateDefs: [],
|
|
60
|
-
displayColumnFriendlyNamesForExpressions: true,
|
|
61
60
|
expressionOptions: {
|
|
61
|
+
displayColumnFriendlyNamesForExpressions: true,
|
|
62
62
|
systemBooleanFunctions: undefined,
|
|
63
63
|
systemScalarFunctions: undefined,
|
|
64
64
|
systemObservableFunctions: undefined,
|
|
@@ -69,6 +69,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
69
69
|
maxTimeframeSize: 28800000, // 8 hours
|
|
70
70
|
},
|
|
71
71
|
predicateOptions: {
|
|
72
|
+
customPredicateDefs: [],
|
|
72
73
|
systemFilterPredicates: AdaptablePredicate_1.SystemFilterPredicateIds,
|
|
73
74
|
systemAlertPredicates: AdaptablePredicate_1.SystemAlertPredicateIds,
|
|
74
75
|
systemFormatColumnPredicates: AdaptablePredicate_1.SystemFormatColumnPredicateIds,
|
|
@@ -76,6 +77,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
76
77
|
systemBadgeStylePredicates: AdaptablePredicate_1.SystemBadgeStylePredicateIds,
|
|
77
78
|
},
|
|
78
79
|
},
|
|
80
|
+
calendarOptions: { holidays: undefined },
|
|
81
|
+
cellSummaryOptions: { cellSummaryOperations: undefined },
|
|
79
82
|
containerOptions: {
|
|
80
83
|
adaptableContainer: 'adaptable',
|
|
81
84
|
agGridContainer: 'grid',
|
|
@@ -89,7 +92,6 @@ exports.DefaultAdaptableOptions = {
|
|
|
89
92
|
columnTypes: GeneralConstants_1.EMPTY_ARRAY,
|
|
90
93
|
showMissingColumnsWarning: true,
|
|
91
94
|
autoOrderGroupedColumns: true,
|
|
92
|
-
hideColumnWhenGrouped: false,
|
|
93
95
|
},
|
|
94
96
|
dashboardOptions: {
|
|
95
97
|
canFloat: true,
|
|
@@ -98,22 +100,24 @@ exports.DefaultAdaptableOptions = {
|
|
|
98
100
|
customToolbars: undefined,
|
|
99
101
|
buttonsLocation: 'right',
|
|
100
102
|
},
|
|
101
|
-
|
|
103
|
+
actionColumnOptions: {
|
|
102
104
|
actionColumns: undefined,
|
|
105
|
+
},
|
|
106
|
+
actionRowOptions: {
|
|
103
107
|
actionRowButtons: undefined,
|
|
108
|
+
autoHandle: true,
|
|
109
|
+
disableInlineEditing: false,
|
|
104
110
|
actionRowButtonOptions: {
|
|
105
111
|
customConfiguration: undefined,
|
|
106
112
|
position: 'pinnedLeft',
|
|
107
|
-
autoHandle: true,
|
|
108
113
|
setPrimaryKeyValue: undefined,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
},
|
|
114
|
+
},
|
|
115
|
+
actionRowFormOptions: {
|
|
116
|
+
formTitle: undefined,
|
|
117
|
+
formDescription: undefined,
|
|
118
|
+
formFieldLabel: undefined,
|
|
119
|
+
formButtons: undefined,
|
|
120
|
+
onFormSubmit: undefined,
|
|
117
121
|
},
|
|
118
122
|
},
|
|
119
123
|
editOptions: {
|
|
@@ -130,7 +134,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
130
134
|
exportFormatType: 'rawValue',
|
|
131
135
|
exportDateFormat: undefined,
|
|
132
136
|
customDestinations: undefined,
|
|
133
|
-
|
|
137
|
+
externalReports: undefined,
|
|
134
138
|
appendFileTimestamp: false,
|
|
135
139
|
systemExportDestinations: [
|
|
136
140
|
Enums_1.ExportDestination.Excel,
|
|
@@ -147,17 +151,12 @@ exports.DefaultAdaptableOptions = {
|
|
|
147
151
|
GeneralConstants.SELECTED_ROWS_REPORT,
|
|
148
152
|
],
|
|
149
153
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
customSortOptions: { customSortComparers: undefined },
|
|
155
|
+
dataSetOptions: { dataSets: GeneralConstants_1.EMPTY_ARRAY },
|
|
156
|
+
groupingOptions: {
|
|
153
157
|
showGroupingTotalsAsHeader: false,
|
|
154
|
-
alternativeModuleNames: undefined,
|
|
155
|
-
cellSummaryOperations: undefined,
|
|
156
|
-
customSortComparers: undefined,
|
|
157
|
-
englishVariant: 'GB',
|
|
158
158
|
unbalancedGroupsKey: undefined,
|
|
159
159
|
restoreUngroupedColumns: false,
|
|
160
|
-
disableDeleteConfirmation: false,
|
|
161
160
|
},
|
|
162
161
|
layoutOptions: {
|
|
163
162
|
displayRowGroups: 'closed',
|
|
@@ -245,8 +244,11 @@ exports.DefaultAdaptableOptions = {
|
|
|
245
244
|
suppressOverrideConfigWarning: false,
|
|
246
245
|
},
|
|
247
246
|
userInterfaceOptions: {
|
|
247
|
+
alternativeModuleNames: undefined,
|
|
248
248
|
applicationIcon: undefined,
|
|
249
249
|
useCustomMacLikeScrollbars: false,
|
|
250
|
+
englishVariant: 'GB',
|
|
251
|
+
disableDeleteConfirmation: false,
|
|
250
252
|
dateInputOptions: {
|
|
251
253
|
useNativeInput: false,
|
|
252
254
|
dateFormat: 'yyyy-MM-dd',
|
|
@@ -41,6 +41,8 @@ const handleWhereFunction = (args, context) => {
|
|
|
41
41
|
// whereClauseResult
|
|
42
42
|
return (0, evaluator_1.evaluateNode)(whereClauseExpressionNode, {
|
|
43
43
|
node: rowNode,
|
|
44
|
+
userName: context.adaptableApi.optionsApi.getUserName(),
|
|
45
|
+
adaptableId: context.adaptableApi.optionsApi.getAdaptableId(),
|
|
44
46
|
adaptableApi: context.adaptableApi,
|
|
45
47
|
functions: context.whereClauseFunctions,
|
|
46
48
|
evaluateCustomQueryVariable: context.adaptableApi.internalApi.getQueryLanguageService().evaluateCustomQueryVariable,
|
|
@@ -54,6 +56,8 @@ const evaluateExpressionNode = (expressionNode, context, filterFn = context.filt
|
|
|
54
56
|
return (0, evaluator_1.evaluateNode)(expressionNode, {
|
|
55
57
|
node: context.node,
|
|
56
58
|
adaptableApi: context.adaptableApi,
|
|
59
|
+
userName: context.adaptableApi.optionsApi.getUserName(),
|
|
60
|
+
adaptableId: context.adaptableApi.optionsApi.getAdaptableId(),
|
|
57
61
|
functions: context.functions,
|
|
58
62
|
filterFn,
|
|
59
63
|
evaluateCustomQueryVariable: context.adaptableApi.internalApi.getQueryLanguageService().evaluateCustomQueryVariable,
|
|
@@ -12,7 +12,11 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
12
12
|
returnedAdaptableOptions.adaptableStateKey =
|
|
13
13
|
(_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
|
|
14
14
|
returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
|
|
15
|
+
returnedAdaptableOptions.calendarOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.calendarOptions, adaptableOptions.calendarOptions);
|
|
15
16
|
returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
|
|
17
|
+
returnedAdaptableOptions.customSortOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.customSortOptions, adaptableOptions.customSortOptions);
|
|
18
|
+
returnedAdaptableOptions.dataSetOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dataSetOptions, adaptableOptions.dataSetOptions);
|
|
19
|
+
returnedAdaptableOptions.cellSummaryOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.cellSummaryOptions, adaptableOptions.cellSummaryOptions);
|
|
16
20
|
returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
|
|
17
21
|
returnedAdaptableOptions.adaptableQLOptions.predicateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.predicateOptions, returnedAdaptableOptions.adaptableQLOptions.predicateOptions);
|
|
18
22
|
returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
|
|
@@ -22,12 +26,14 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
22
26
|
returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
23
27
|
returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
|
|
24
28
|
returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
|
|
25
|
-
returnedAdaptableOptions.
|
|
26
|
-
|
|
27
|
-
returnedAdaptableOptions.
|
|
28
|
-
|
|
29
|
+
returnedAdaptableOptions.actionColumnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionColumnOptions, adaptableOptions.actionColumnOptions);
|
|
30
|
+
// to do
|
|
31
|
+
returnedAdaptableOptions.actionRowOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions, adaptableOptions.actionRowOptions);
|
|
32
|
+
returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowButtonOptions, returnedAdaptableOptions.actionRowOptions.actionRowButtonOptions);
|
|
33
|
+
returnedAdaptableOptions.actionRowOptions.actionRowFormOptions =
|
|
34
|
+
Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionRowOptions.actionRowFormOptions, returnedAdaptableOptions.actionRowOptions.actionRowFormOptions);
|
|
29
35
|
returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
|
|
30
|
-
returnedAdaptableOptions.
|
|
36
|
+
returnedAdaptableOptions.groupingOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.groupingOptions, adaptableOptions.groupingOptions);
|
|
31
37
|
returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
|
|
32
38
|
returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
|
|
33
39
|
returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
|
|
@@ -68,7 +74,7 @@ function checkValidPrimaryKey(adaptable) {
|
|
|
68
74
|
const pkColumn = adaptable.api.columnApi.getColumnWithColumnId(adaptable.adaptableOptions.primaryKey);
|
|
69
75
|
if (pkColumn == undefined && !adaptable.adaptableOptions.autogeneratePrimaryKey) {
|
|
70
76
|
const errorMessage = `The Primary Key Column '${adaptable.adaptableOptions.primaryKey}' does not exist. This will affect many functions in Adaptable.`;
|
|
71
|
-
if (adaptable.adaptableOptions.
|
|
77
|
+
if (adaptable.adaptableOptions.alertOptions.showMissingPrimaryKeyAlert == true) {
|
|
72
78
|
// show an alert if that is the option
|
|
73
79
|
adaptable.api.alertApi.showAlertError('No Primary Key', errorMessage);
|
|
74
80
|
}
|
|
@@ -36,6 +36,13 @@ function NumberFormatter(input, options = {}) {
|
|
|
36
36
|
n *= multiplier;
|
|
37
37
|
n = parseFloat(n.toFixed(12));
|
|
38
38
|
}
|
|
39
|
+
// Set Integer and Fraction Digits to a max of 20
|
|
40
|
+
if (options.IntegerDigits > 20) {
|
|
41
|
+
options.IntegerDigits = 20;
|
|
42
|
+
}
|
|
43
|
+
if (options.FractionDigits > 20) {
|
|
44
|
+
options.FractionDigits = 20;
|
|
45
|
+
}
|
|
39
46
|
if (options.Parentheses === true && preparedInput < 0) {
|
|
40
47
|
n *= -1;
|
|
41
48
|
n = parseFloat(n.toFixed(12));
|
|
@@ -39,7 +39,7 @@ export declare function CreateEmptyAlertDefinition(): AlertDefinition;
|
|
|
39
39
|
export declare function CreateEmptyFlashingCellDefinition(): FlashingCellDefinition;
|
|
40
40
|
export declare function CreateInternalAlertDefinitionForMessages(messageType: AdaptableMessageType, alertProperties?: AlertProperties): AlertDefinition;
|
|
41
41
|
export declare function CreateEmptyReport(): Report;
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function CreateExternalReport(reportName: string): Report;
|
|
43
43
|
export declare function CreateEmptyBaseSchedule(scheduleType: ScheduleType): BaseSchedule;
|
|
44
44
|
export declare function CreateEmptyReminderSchedule(): ReminderSchedule;
|
|
45
45
|
export declare function CreateEmptyReportSchedule(): ReportSchedule;
|
|
@@ -85,7 +85,7 @@ export declare const ObjectFactory: {
|
|
|
85
85
|
CreateEmptyAlertDefinition: typeof CreateEmptyAlertDefinition;
|
|
86
86
|
CreateEmptyFlashingCellDefinition: typeof CreateEmptyFlashingCellDefinition;
|
|
87
87
|
CreateInternalAlertDefinitionForMessages: typeof CreateInternalAlertDefinitionForMessages;
|
|
88
|
-
|
|
88
|
+
CreateExternalReport: typeof CreateExternalReport;
|
|
89
89
|
CreateEmptyReport: typeof CreateEmptyReport;
|
|
90
90
|
CreateEmptyBaseSchedule: typeof CreateEmptyBaseSchedule;
|
|
91
91
|
CreateEmptyReminderSchedule: typeof CreateEmptyReminderSchedule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.
|
|
3
|
+
exports.ObjectFactory = exports.CreateToastOptions = exports.CreateEmptyTheme = exports.CreateCustomDisplayFormatterContext = exports.CreateEmptyChartDefinition = exports.CreateDefaultStyledColumnBadge = exports.CreateEmptyStyledColumn = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateExternalReport = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
|
|
4
4
|
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
5
5
|
const GeneralConstants_1 = require("./Constants/GeneralConstants");
|
|
6
6
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
@@ -133,7 +133,7 @@ function CreateEmptyReport() {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
exports.CreateEmptyReport = CreateEmptyReport;
|
|
136
|
-
function
|
|
136
|
+
function CreateExternalReport(reportName) {
|
|
137
137
|
return {
|
|
138
138
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
139
139
|
Name: reportName,
|
|
@@ -143,7 +143,7 @@ function CreateServerReport(reportName) {
|
|
|
143
143
|
Query: undefined,
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
exports.
|
|
146
|
+
exports.CreateExternalReport = CreateExternalReport;
|
|
147
147
|
function CreateEmptyBaseSchedule(scheduleType) {
|
|
148
148
|
return {
|
|
149
149
|
Uuid: (0, Uuid_1.createUuid)(),
|
|
@@ -388,6 +388,8 @@ function CreateCustomDisplayFormatterContext(value, node, abColumn, api) {
|
|
|
388
388
|
cellValue: value,
|
|
389
389
|
rowNode: node,
|
|
390
390
|
adaptableApi: api,
|
|
391
|
+
userName: api.optionsApi.getUserName(),
|
|
392
|
+
adaptableId: api.optionsApi.getAdaptableId(),
|
|
391
393
|
};
|
|
392
394
|
}
|
|
393
395
|
exports.CreateCustomDisplayFormatterContext = CreateCustomDisplayFormatterContext;
|
|
@@ -464,7 +466,7 @@ exports.ObjectFactory = {
|
|
|
464
466
|
CreateEmptyAlertDefinition,
|
|
465
467
|
CreateEmptyFlashingCellDefinition,
|
|
466
468
|
CreateInternalAlertDefinitionForMessages,
|
|
467
|
-
|
|
469
|
+
CreateExternalReport,
|
|
468
470
|
CreateEmptyReport,
|
|
469
471
|
CreateEmptyBaseSchedule,
|
|
470
472
|
CreateEmptyReminderSchedule,
|