@adaptabletools/adaptable 14.0.2 → 14.0.4
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 +7 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +170 -169
- package/index.css +76 -62
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +3 -0
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +3 -0
- package/src/AdaptableOptions/AdaptablePlugin.js +3 -0
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +6 -5
- package/src/AdaptableOptions/ChartingOptions.d.ts +1 -1
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +26 -26
- package/src/AdaptableOptions/ExportOptions.d.ts +17 -3
- package/src/AdaptableOptions/ExpressionOptions.d.ts +18 -18
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -4
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -3
- package/src/Api/ActionApi.d.ts +2 -2
- package/src/Api/CalculatedColumnApi.d.ts +9 -0
- package/src/Api/ChartingApi.d.ts +41 -14
- package/src/Api/ColumnApi.d.ts +4 -0
- package/src/Api/DataSetApi.d.ts +2 -2
- package/src/Api/EventApi.d.ts +15 -1
- package/src/Api/Events/ChartStateChangeInfo.d.ts +5 -0
- package/src/Api/Events/ChartStateChangeInfo.js +2 -0
- package/src/Api/ExportApi.d.ts +5 -0
- package/src/Api/FilterApi.d.ts +10 -8
- package/src/Api/Implementation/ActionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ActionApiImpl.js +3 -3
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +24 -0
- package/src/Api/Implementation/ChartingApiImpl.d.ts +16 -2
- package/src/Api/Implementation/ChartingApiImpl.js +54 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +3 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ExportApiImpl.js +10 -0
- package/src/Api/Implementation/FilterApiImpl.js +0 -2
- package/src/Api/Implementation/PredicateApiImpl.d.ts +6 -4
- package/src/Api/Implementation/PredicateApiImpl.js +20 -1
- package/src/Api/Implementation/QueryApiImpl.js +8 -2
- package/src/Api/Internal/AdaptableInternalApi.d.ts +7 -1
- package/src/Api/Internal/AdaptableInternalApi.js +2 -1
- package/src/Api/Internal/AlertInternalApi.js +1 -1
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +9 -0
- package/src/Api/Internal/ChartingInternalApi.d.ts +6 -0
- package/src/Api/Internal/ChartingInternalApi.js +24 -0
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +5 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +25 -1
- package/src/Api/PredicateApi.d.ts +17 -1
- package/src/PredefinedConfig/AlertState.d.ts +5 -2
- package/src/PredefinedConfig/Common/AdaptableAlert.d.ts +6 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +15 -11
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +6 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +6 -0
- package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +15 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +3 -0
- package/src/PredefinedConfig/Common/Types.d.ts +21 -6
- package/src/PredefinedConfig/Common/Types.js +1 -3
- package/src/PredefinedConfig/ExportState.d.ts +2 -2
- package/src/PredefinedConfig/FlashingCellState.d.ts +2 -2
- package/src/PredefinedConfig/FormatColumnState.d.ts +3 -2
- package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +4 -4
- package/src/PredefinedConfig/StyledColumnState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +0 -4
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +2 -0
- package/src/Redux/ActionsReducers/PopupRedux.js +2 -0
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/StatusBarRedux.js +4 -4
- package/src/Redux/Store/AdaptableStore.js +1 -11
- package/src/Strategy/AlertModule.js +7 -3
- package/src/Strategy/ChartingModule.js +5 -3
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +43 -0
- package/src/Strategy/FlashingCellModule.js +1 -1
- package/src/Strategy/FormatColumnModule.js +7 -2
- package/src/Strategy/Interface/IModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.js +8 -1
- package/src/Strategy/StyledColumnModule.js +5 -0
- package/src/Strategy/ThemeModule.js +8 -2
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +2 -2
- package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.d.ts +5 -0
- package/src/Strategy/Utilities/Alert/getAlertTypeViewItems.js +13 -0
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +3 -3
- package/src/Utilities/Constants/ModuleConstants.d.ts +0 -3
- package/src/Utilities/Constants/ModuleConstants.js +2 -5
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +64 -3
- package/src/Utilities/Interface/MessagePopups.d.ts +1 -0
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +13 -0
- package/src/Utilities/Services/ChartingService.d.ts +8 -0
- package/src/Utilities/Services/ChartingService.js +15 -0
- package/src/Utilities/Services/ReportService.js +1 -1
- package/src/View/AdaptableViewFactory.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +5 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +6 -5
- package/src/View/Alert/Utilities/getAlertType.d.ts +15 -0
- package/src/View/Alert/Utilities/getAlertType.js +58 -0
- package/src/View/Alert/Utilities/getAvailablePredicates.d.ts +3 -0
- package/src/View/Alert/Utilities/getAvailablePredicates.js +19 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +37 -0
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +32 -0
- package/src/View/Alert/Utilities/mapAlertDefinition.d.ts +2 -0
- package/src/View/Alert/Utilities/mapAlertDefinition.js +38 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +4 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -11
- package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +2 -0
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +15 -6
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +10 -0
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +57 -0
- package/src/View/Alert/Wizard/{AlertDisplayWizardSection.d.ts → AlertNotificationWizardSection.d.ts} +7 -5
- package/src/View/Alert/Wizard/{AlertDisplayWizardSection.js → AlertNotificationWizardSection.js} +12 -50
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +7 -4
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +66 -6
- package/src/View/Alert/Wizard/AlertScopeWizardSection.d.ts +2 -0
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +41 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.d.ts +9 -0
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +27 -0
- package/src/View/Alert/Wizard/AlertWizard.js +53 -98
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +1 -6
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -39
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/{Components/Charting → Charting}/ChartingStatusBarPopover.d.ts +0 -0
- package/src/View/{Components/Charting → Charting}/ChartingStatusBarPopover.js +2 -2
- package/src/View/{Components/Charting → Charting}/ChartingViewPanel.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/ChartingViewPanel.js +0 -0
- package/src/View/{Components/Charting → Charting}/ChartingWizard/ChartingWizard.d.ts +2 -2
- package/src/View/{Components/Charting → Charting}/ChartingWizard/ChartingWizard.js +12 -2
- package/src/View/{Components/Charting → Charting}/ChartingWizard/PreviewChartSection.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/ChartingWizard/PreviewChartSection.js +2 -2
- package/src/View/{Components/Charting → Charting}/ChartingWizard/SettingsSection.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/ChartingWizard/SettingsSection.js +4 -4
- package/src/View/{Components/Charting → Charting}/DeleteChartButton.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/DeleteChartButton.js +3 -3
- package/src/View/{Components/Charting → Charting}/EditChartButton.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/EditChartButton.js +3 -3
- package/src/View/{Components/Charting → Charting}/ShowChartButton.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/ShowChartButton.js +5 -5
- package/src/View/{Components/Charting → Charting}/useChartState.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/useChartState.js +5 -5
- package/src/View/{Components/Charting → Charting}/useChartingElements.d.ts +1 -1
- package/src/View/{Components/Charting → Charting}/useChartingElements.js +6 -6
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.d.ts +12 -0
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +85 -0
- package/src/View/Components/EntityRulesEditor/{PredicatesEditor.d.ts → EntityRulePredicatesEditor/EntityRulePredicatesEditor.d.ts} +6 -4
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +87 -0
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.d.ts +1 -0
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/index.js +5 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +7 -1
- package/src/View/Components/EntityRulesEditor/index.d.ts +4 -2
- package/src/View/Components/EntityRulesEditor/index.js +27 -10
- package/src/View/Components/FilterForm/FilterForm.js +6 -7
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -9
- package/src/View/Components/NewScopeComponent.d.ts +9 -5
- package/src/View/Components/NewScopeComponent.js +19 -10
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -2
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +4 -1
- package/src/View/Components/PredicateEditor/PredicateEditor.js +16 -5
- package/src/View/Components/PreviewResultsPanel.js +30 -3
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -0
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +1 -1
- package/src/View/Export/ExportTablePopup.d.ts +3 -0
- package/src/View/Export/ExportTablePopup.js +59 -0
- package/src/View/Export/Wizard/NewReportWizard.js +1 -1
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -4
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +3 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +7 -4
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +5 -5
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +10 -2
- package/src/View/Wizard/TypeRadio.d.ts +7 -0
- package/src/View/Wizard/TypeRadio.js +12 -0
- package/src/agGrid/Adaptable.d.ts +3 -1
- package/src/agGrid/Adaptable.js +28 -4
- package/src/agGrid/agGridHelper.d.ts +1 -0
- package/src/agGrid/agGridHelper.js +15 -0
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +4 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.js +5 -0
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -0
- package/src/components/icons/index.js +4 -0
- package/src/components/icons/visibility-off.d.ts +3 -0
- package/src/components/icons/visibility-off.js +7 -0
- package/src/components/icons/visibility.d.ts +3 -0
- package/src/components/icons/visibility.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +139 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +0 -9
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +0 -30
- package/src/View/Components/EntityRulesEditor/PredicatesEditor.js +0 -86
|
@@ -16,6 +16,7 @@ var ExportDestination;
|
|
|
16
16
|
ExportDestination["CSV"] = "CSV";
|
|
17
17
|
ExportDestination["Clipboard"] = "Clipboard";
|
|
18
18
|
ExportDestination["JSON"] = "JSON";
|
|
19
|
+
ExportDestination["Table"] = "Table";
|
|
19
20
|
})(ExportDestination = exports.ExportDestination || (exports.ExportDestination = {}));
|
|
20
21
|
var ScheduleType;
|
|
21
22
|
(function (ScheduleType) {
|
|
@@ -240,4 +240,7 @@ export declare type FDC3ContextType = 'fdc3.instrument' | 'fdc3.instrumentList'
|
|
|
240
240
|
export interface CustomFDC3Context extends FDC3Context {
|
|
241
241
|
type: any;
|
|
242
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* Data used in FDC3 Contexts
|
|
245
|
+
*/
|
|
243
246
|
export declare type ContextData = Record<string, unknown>;
|
|
@@ -6,12 +6,18 @@ export declare type AdaptableDashboardToolbars = AdaptableDashboardToolbar[];
|
|
|
6
6
|
/**
|
|
7
7
|
* List of all the Toolbars that Adaptable provides
|
|
8
8
|
*/
|
|
9
|
-
export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme'
|
|
9
|
+
export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
|
|
10
10
|
export declare const ALL_TOOLBARS: AdaptableDashboardToolbar[];
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Modules which can appear in the AdapTable Status Bar
|
|
13
|
+
*/
|
|
14
|
+
export declare type AdaptableStatusBarPanel = 'Alert' | 'CalculatedColumn' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'SmartEdit' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
12
15
|
export declare const ALL_STATUS_SUB_PANELS: AdaptableStatusBarPanel[];
|
|
13
16
|
export declare type AdaptableToolPanels = AdaptableToolPanel[];
|
|
14
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Modules which can appear as AdapTable Tool Panels
|
|
19
|
+
*/
|
|
20
|
+
export declare type AdaptableToolPanel = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Charting' | 'Dashboard' | 'DataChangeHistory' | 'Export' | 'Filter' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
|
|
15
21
|
export declare const ALL_TOOL_PANELS: AdaptableToolPanels;
|
|
16
22
|
/**
|
|
17
23
|
* Adaptable Module Button collection
|
|
@@ -22,18 +28,27 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
|
|
|
22
28
|
/**
|
|
23
29
|
* List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
|
|
24
30
|
*/
|
|
25
|
-
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | '
|
|
31
|
+
export declare type AdaptableModuleButton = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme';
|
|
26
32
|
export declare type AdaptableStateKeys = AdaptableStateKey[];
|
|
27
33
|
export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
|
|
28
34
|
/**
|
|
29
35
|
* Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
|
|
30
36
|
*/
|
|
31
|
-
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | '
|
|
37
|
+
export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StyledColumn' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
32
38
|
export declare const ALL_MODULES: AdaptableModule[];
|
|
33
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Modules which can appear in the Settings Panel
|
|
41
|
+
*/
|
|
42
|
+
export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'Charting' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'StyledColumn' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
|
|
34
43
|
export declare type TypeHint<Base, Literals> = (Base & {
|
|
35
44
|
__subType?: true;
|
|
36
45
|
}) | Literals;
|
|
37
46
|
export declare type AdaptableQLModules = AdaptableQLModule[];
|
|
47
|
+
/**
|
|
48
|
+
* Modules which leverage AdapTableQL; can be used to set remote evaluation
|
|
49
|
+
*/
|
|
38
50
|
export declare type AdaptableQLModule = 'CalculatedColumn' | 'Filter' | 'Query';
|
|
51
|
+
/**
|
|
52
|
+
* Column Types recognised by AdapTable; to be set in GridOptions
|
|
53
|
+
*/
|
|
39
54
|
export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefNumberArray' | 'abColDefTupleNumberArray' | 'abColDefObjectNumberArray' | 'abColDefCustom' | 'abSpecialColumn';
|
|
@@ -31,7 +31,6 @@ exports.ALL_STATUS_SUB_PANELS = [
|
|
|
31
31
|
'BulkUpdate',
|
|
32
32
|
'CalculatedColumn',
|
|
33
33
|
'CellSummary',
|
|
34
|
-
'ConditionalStyle',
|
|
35
34
|
'CustomSort',
|
|
36
35
|
'Charting',
|
|
37
36
|
'Dashboard',
|
|
@@ -62,6 +61,7 @@ exports.ALL_TOOL_PANELS = [
|
|
|
62
61
|
'Alert',
|
|
63
62
|
'BulkUpdate',
|
|
64
63
|
'CellSummary',
|
|
64
|
+
'Charting',
|
|
65
65
|
'Dashboard',
|
|
66
66
|
'DataChangeHistory',
|
|
67
67
|
'Export',
|
|
@@ -75,7 +75,6 @@ exports.ALL_TOOL_PANELS = [
|
|
|
75
75
|
'StateManagement',
|
|
76
76
|
'SystemStatus',
|
|
77
77
|
'Theme',
|
|
78
|
-
'Charting',
|
|
79
78
|
];
|
|
80
79
|
exports.ALL_MODULES = [
|
|
81
80
|
ModuleConstants.AlertModuleId,
|
|
@@ -83,7 +82,6 @@ exports.ALL_MODULES = [
|
|
|
83
82
|
ModuleConstants.CalculatedColumnModuleId,
|
|
84
83
|
ModuleConstants.CellSummaryModuleId,
|
|
85
84
|
ModuleConstants.ChartingModuleId,
|
|
86
|
-
ModuleConstants.ConditionalStyleModuleId,
|
|
87
85
|
ModuleConstants.CustomSortModuleId,
|
|
88
86
|
ModuleConstants.DashboardModuleId,
|
|
89
87
|
ModuleConstants.DataChangeHistoryModuleId,
|
|
@@ -29,11 +29,11 @@ export interface Report extends AdaptableObject {
|
|
|
29
29
|
*/
|
|
30
30
|
Name: SystemReportName | string;
|
|
31
31
|
/**
|
|
32
|
-
* Columns to display:
|
|
32
|
+
* Columns to display: 'AllColumns', 'VisibleColumns', 'SelectedColumns', 'ScopeColumns'
|
|
33
33
|
*/
|
|
34
34
|
ReportColumnScope: ReportColumnScope;
|
|
35
35
|
/**
|
|
36
|
-
* Rows to export:
|
|
36
|
+
* Rows to export: 'AllRows', 'VisibleRows', 'SelectedCellRows', 'SelectedRows', 'ExpressionRows'
|
|
37
37
|
*/
|
|
38
38
|
ReportRowScope: ReportRowScope;
|
|
39
39
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConfigState } from './ConfigState';
|
|
2
2
|
import { AdaptableStyle } from './Common/AdaptableStyle';
|
|
3
|
-
import {
|
|
3
|
+
import { AdaptableColumnPredicate, AdaptableScope } from '../types';
|
|
4
4
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
5
5
|
import { AdaptableBooleanQuery } from './Common/AdaptableQuery';
|
|
6
6
|
import { TypeHint } from './Common/Types';
|
|
7
7
|
import { SuspendableObject } from '../../types';
|
|
8
|
-
export interface FlashingCellDefinitionPredicate extends
|
|
8
|
+
export interface FlashingCellDefinitionPredicate extends AdaptableColumnPredicate {
|
|
9
9
|
PredicateId: TypeHint<string, SystemFlashingCellPredicateId>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
@@ -5,7 +5,8 @@ import { AdaptableScope } from './Common/AdaptableScope';
|
|
|
5
5
|
import { SuspendableObject } from './Common/SuspendableObject';
|
|
6
6
|
import { XOR } from '../Utilities/Extensions/TypeExtensions';
|
|
7
7
|
import { TypeHint } from './Common/Types';
|
|
8
|
-
import { AdaptableBooleanQuery,
|
|
8
|
+
import { AdaptableBooleanQuery, GradientStyle, PercentBarStyle } from '../types';
|
|
9
|
+
import { AdaptableColumnPredicate } from './Common/AdaptablePredicate';
|
|
9
10
|
/**
|
|
10
11
|
* Predefined Configuration for Format Column Module
|
|
11
12
|
*/
|
|
@@ -55,7 +56,7 @@ export interface FormatColumn extends SuspendableObject {
|
|
|
55
56
|
export declare type FormatColumnRule = XOR<{
|
|
56
57
|
Predicates: FormatColumnPredicate[];
|
|
57
58
|
}, AdaptableBooleanQuery>;
|
|
58
|
-
export interface FormatColumnPredicate extends
|
|
59
|
+
export interface FormatColumnPredicate extends AdaptableColumnPredicate {
|
|
59
60
|
PredicateId: TypeHint<string, SystemFormatColumnPredicateId>;
|
|
60
61
|
}
|
|
61
62
|
/**
|
|
@@ -32,7 +32,7 @@ export interface FreeTextColumn extends AdaptableObject {
|
|
|
32
32
|
FreeTextStoredValues?: FreeTextStoredValue[];
|
|
33
33
|
/**
|
|
34
34
|
* Cell editor to use when editing a string Free Text Column
|
|
35
|
-
*
|
|
35
|
+
* @defaultValue 'Inline'
|
|
36
36
|
*/
|
|
37
37
|
TextEditor?: 'Inline' | 'Large';
|
|
38
38
|
/**
|
|
@@ -35,6 +35,10 @@ export interface PredefinedConfig {
|
|
|
35
35
|
* Supplies a collection of *CalculatedColumn* objects that will display a value based on other cells in the row (using a Calculated Column Expression)
|
|
36
36
|
*/
|
|
37
37
|
CalculatedColumn?: CalculatedColumnState;
|
|
38
|
+
/**
|
|
39
|
+
* Named Charts (wrapping Chart models)
|
|
40
|
+
*/
|
|
41
|
+
Charting?: ChartingState;
|
|
38
42
|
/**
|
|
39
43
|
* @deprecated use `FormatColumn` instead
|
|
40
44
|
*/
|
|
@@ -103,8 +107,4 @@ export interface PredefinedConfig {
|
|
|
103
107
|
* Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
|
|
104
108
|
*/
|
|
105
109
|
ToolPanel?: ToolPanelState;
|
|
106
|
-
/**
|
|
107
|
-
* Predefine charting models
|
|
108
|
-
*/
|
|
109
|
-
Charting?: ChartingState;
|
|
110
110
|
}
|
|
@@ -68,7 +68,7 @@ export interface NumericStyledColumn {
|
|
|
68
68
|
*/
|
|
69
69
|
ColumnComparison?: ColumnComparison;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* If using Ranges, they can provide 'Number' (any number or Col-Min/Col-Max) or 'Percentage' (values 0-100)
|
|
72
72
|
* @defaultValue Number
|
|
73
73
|
*/
|
|
74
74
|
RangeValueType?: RangeValueType;
|
|
@@ -30,10 +30,6 @@ export interface AdaptableTheme extends AdaptableObject {
|
|
|
30
30
|
* Description of Theme - will appear in Theme Toolbar and Toolpanel
|
|
31
31
|
*/
|
|
32
32
|
Description: string;
|
|
33
|
-
/**
|
|
34
|
-
* deprecated use `AgGridClassName` property instead
|
|
35
|
-
*/
|
|
36
|
-
VendorGridClassName?: string;
|
|
37
33
|
/**
|
|
38
34
|
* Ag Grid theme to apply when loading theme
|
|
39
35
|
*/
|
|
@@ -36,6 +36,7 @@ export interface PopupShowWindowAction extends Redux.Action {
|
|
|
36
36
|
Id: string;
|
|
37
37
|
Title: string;
|
|
38
38
|
PopupProps: any;
|
|
39
|
+
FactoryId: any;
|
|
39
40
|
Icon?: string;
|
|
40
41
|
}
|
|
41
42
|
export interface PopupHideWindowAction extends Redux.Action {
|
|
@@ -83,6 +84,7 @@ export declare const PopupHideScreen: () => PopupHideScreenAction;
|
|
|
83
84
|
export declare const PopupShowWindow: (config: {
|
|
84
85
|
Id: string;
|
|
85
86
|
Title: string;
|
|
87
|
+
FactoryId: string;
|
|
86
88
|
PopupProps?: any;
|
|
87
89
|
Icon?: string;
|
|
88
90
|
}) => PopupShowWindowAction;
|
|
@@ -34,6 +34,7 @@ const PopupShowWindow = (config) => ({
|
|
|
34
34
|
Id: config.Id,
|
|
35
35
|
Title: config.Title,
|
|
36
36
|
PopupProps: config.PopupProps,
|
|
37
|
+
FactoryId: config.FactoryId,
|
|
37
38
|
Icon: config.Icon,
|
|
38
39
|
});
|
|
39
40
|
exports.PopupShowWindow = PopupShowWindow;
|
|
@@ -271,6 +272,7 @@ const PopupReducer = (state = initialState, action) => {
|
|
|
271
272
|
Icon: showWindowAction.Icon,
|
|
272
273
|
Title: showWindowAction.Title,
|
|
273
274
|
PopupProps: showWindowAction.PopupProps,
|
|
275
|
+
FactoryId: showWindowAction.FactoryId,
|
|
274
276
|
};
|
|
275
277
|
let PopupList = [...state.WindowPopup.PopupList];
|
|
276
278
|
// Prevent opening the same popup twice
|
|
@@ -2,7 +2,7 @@ import * as Redux from 'redux';
|
|
|
2
2
|
import { AdaptableState } from '../../../types';
|
|
3
3
|
import { StatusBarState, AdaptableStatusBar } from '../../PredefinedConfig/StatusBarState';
|
|
4
4
|
/**
|
|
5
|
-
* @ReduxAction Sets
|
|
5
|
+
* @ReduxAction Sets Status Bar panels
|
|
6
6
|
*/
|
|
7
7
|
export declare const SET_STATUS_BAR_PANELS = "SET_STATUS_BAR_PANELS";
|
|
8
8
|
/**
|
|
@@ -18,5 +18,5 @@ export interface StatusBarReadyAction extends Redux.Action {
|
|
|
18
18
|
export declare const StatusBarSetPanels: (statusPanels: AdaptableStatusBar[]) => StatusBarSetPanelsAction;
|
|
19
19
|
export declare const initialState: StatusBarState;
|
|
20
20
|
export declare const getStatusPanelsSelector: (state: AdaptableState) => AdaptableStatusBar[];
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const StatusBarReady: (statusBarState: StatusBarState) => StatusBarReadyAction;
|
|
22
22
|
export declare const StatusBarReducer: Redux.Reducer<StatusBarState>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusBarReducer = exports.
|
|
3
|
+
exports.StatusBarReducer = exports.StatusBarReady = exports.getStatusPanelsSelector = exports.initialState = exports.StatusBarSetPanels = exports.STATUS_BAR_READY = exports.SET_STATUS_BAR_PANELS = void 0;
|
|
4
4
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
5
|
/**
|
|
6
|
-
* @ReduxAction Sets
|
|
6
|
+
* @ReduxAction Sets Status Bar panels
|
|
7
7
|
*/
|
|
8
8
|
exports.SET_STATUS_BAR_PANELS = 'SET_STATUS_BAR_PANELS';
|
|
9
9
|
/**
|
|
@@ -20,11 +20,11 @@ exports.initialState = {
|
|
|
20
20
|
};
|
|
21
21
|
const getStatusPanelsSelector = (state) => state.StatusBar.StatusBars;
|
|
22
22
|
exports.getStatusPanelsSelector = getStatusPanelsSelector;
|
|
23
|
-
const
|
|
23
|
+
const StatusBarReady = (statusBarState) => ({
|
|
24
24
|
type: exports.STATUS_BAR_READY,
|
|
25
25
|
statusBarState,
|
|
26
26
|
});
|
|
27
|
-
exports.
|
|
27
|
+
exports.StatusBarReady = StatusBarReady;
|
|
28
28
|
const StatusBarReducer = (state = exports.initialState, action) => {
|
|
29
29
|
switch (action.type) {
|
|
30
30
|
case exports.SET_STATUS_BAR_PANELS:
|
|
@@ -569,17 +569,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
569
569
|
*******************/
|
|
570
570
|
case CalculatedColumnRedux.CALCULATED_COLUMN_READY: {
|
|
571
571
|
// create aggregated scalar columns at grid startup
|
|
572
|
-
|
|
573
|
-
.getCalculatedColumns()
|
|
574
|
-
.filter((calculatedColumn) => { var _a; return (_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.AggregatedScalarExpression; });
|
|
575
|
-
aggregatedCalculatedColumns.forEach((calculatedColumn) => {
|
|
576
|
-
adaptable.api.internalApi
|
|
577
|
-
.getCalculatedColumnExpressionService()
|
|
578
|
-
.createAggregatedScalarLiveValue(calculatedColumn);
|
|
579
|
-
});
|
|
580
|
-
// refresh calculated columns
|
|
581
|
-
const aggCalculatedColumnIds = aggregatedCalculatedColumns.map((calculatedColumn) => calculatedColumn.ColumnId);
|
|
582
|
-
adaptable.refreshCells(null, aggCalculatedColumnIds, true);
|
|
572
|
+
adaptable.api.calculatedColumnApi.refreshAggregatedCalculatedColumns();
|
|
583
573
|
return;
|
|
584
574
|
}
|
|
585
575
|
/**
|
|
@@ -13,12 +13,14 @@ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
|
13
13
|
const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
|
|
14
14
|
const getAlertPreviewViewItems_1 = require("./Utilities/Alert/getAlertPreviewViewItems");
|
|
15
15
|
const getAlertBehaviourViewItems_1 = require("./Utilities/Alert/getAlertBehaviourViewItems");
|
|
16
|
+
const getAlertTypeViewItems_1 = require("./Utilities/Alert/getAlertTypeViewItems");
|
|
16
17
|
const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
|
|
17
18
|
const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
|
|
18
19
|
const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
|
|
19
20
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
20
21
|
const updateSingleToMultiplePredicates_1 = require("./Utilities/updateSingleToMultiplePredicates");
|
|
21
22
|
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
23
|
+
const getAlertType_1 = require("../View/Alert/Utilities/getAlertType");
|
|
22
24
|
class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
23
25
|
constructor(api) {
|
|
24
26
|
super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
|
|
@@ -221,14 +223,16 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
221
223
|
};
|
|
222
224
|
}
|
|
223
225
|
toView(alert) {
|
|
226
|
+
const alertType = (0, getAlertType_1.getAlertType)(alert);
|
|
224
227
|
return {
|
|
225
228
|
items: [
|
|
226
|
-
(0,
|
|
227
|
-
(0,
|
|
229
|
+
(0, getAlertTypeViewItems_1.getAlertTypeViewItems)(alert),
|
|
230
|
+
alertType === 'DataChange' && Object.assign(Object.assign({}, (0, getScopeViewItems_1.getScopeViewItems)(alert.Scope, this.api)), { label: 'Trigger', name: 'Trigger' }),
|
|
231
|
+
Object.assign(Object.assign({}, (0, getRuleViewItems_1.getRuleViewItems)(alert.Rule, this.api)), { label: 'Rule', name: 'Rule' }),
|
|
228
232
|
(0, getAlertBehaviourViewItems_1.getAlertBehaviourViewItems)(this.api),
|
|
229
233
|
(0, getAlertPreviewViewItems_1.getAlertPreviewViewItems)(alert, this.api),
|
|
230
234
|
(0, getObjectTagsViewItems_1.getObjectTagsViewItems)(alert, this.api),
|
|
231
|
-
],
|
|
235
|
+
].filter(Boolean),
|
|
232
236
|
abObject: alert,
|
|
233
237
|
};
|
|
234
238
|
}
|
|
@@ -4,10 +4,11 @@ exports.ChartingModule = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
-
const ShowChartButton_1 = require("../View/
|
|
8
|
-
const ChartingWizard_1 = require("../View/
|
|
7
|
+
const ShowChartButton_1 = require("../View/Charting/ShowChartButton");
|
|
8
|
+
const ChartingWizard_1 = require("../View/Charting/ChartingWizard/ChartingWizard");
|
|
9
9
|
const ChartingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/ChartingRedux"));
|
|
10
|
-
const ChartingStatusBarPopover_1 = require("../View/
|
|
10
|
+
const ChartingStatusBarPopover_1 = require("../View/Charting/ChartingStatusBarPopover");
|
|
11
|
+
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
11
12
|
class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
13
|
constructor(api) {
|
|
13
14
|
super(ModuleConstants.ChartingModuleId, ModuleConstants.ChartingFriendlyName, 'chart', 'ChartPopup', 'Create AG Grid Charts in order to see Adaptable Data visually', api);
|
|
@@ -83,6 +84,7 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
83
84
|
.join(', ')}`,
|
|
84
85
|
].filter(Boolean),
|
|
85
86
|
},
|
|
87
|
+
(0, getObjectTagsViewItems_1.getObjectTagsViewItems)(chart, this.api),
|
|
86
88
|
].filter(Boolean),
|
|
87
89
|
abObject: chart,
|
|
88
90
|
};
|
|
@@ -16,6 +16,7 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
|
|
|
16
16
|
export(report: Report, exportDestination: ExportDestination | string): void;
|
|
17
17
|
private isCustomDestination;
|
|
18
18
|
private convertReportToJSON;
|
|
19
|
+
private openReportInTablePopup;
|
|
19
20
|
private convertReportToCsv;
|
|
20
21
|
private convertReportToExcel;
|
|
21
22
|
private copyToClipboard;
|
|
@@ -19,6 +19,8 @@ const ReportExportDropdown_1 = require("../View/Export/ReportExportDropdown");
|
|
|
19
19
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
20
20
|
const ExportSelector_1 = require("../View/Export/ExportSelector");
|
|
21
21
|
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
22
|
+
const windowFactory_1 = require("../View/Components/Popups/WindowPopups/windowFactory");
|
|
23
|
+
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
22
24
|
class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
23
25
|
constructor(api) {
|
|
24
26
|
super(ModuleConstants.ExportModuleId, ModuleConstants.ExportFriendlyName, 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
|
|
@@ -124,6 +126,9 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
124
126
|
case Enums_1.ExportDestination.JSON:
|
|
125
127
|
this.convertReportToJSON(report);
|
|
126
128
|
break;
|
|
129
|
+
case Enums_1.ExportDestination.Table:
|
|
130
|
+
this.openReportInTablePopup(report);
|
|
131
|
+
break;
|
|
127
132
|
}
|
|
128
133
|
}
|
|
129
134
|
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemVisualExportEnd)());
|
|
@@ -148,6 +153,44 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
148
153
|
const jsonFileName = this.api.internalApi.getReportService().getReportFileName(report.Name) + '.json';
|
|
149
154
|
Helper_1.Helper.createDownloadedFile(jsonContent, jsonFileName, 'application/json');
|
|
150
155
|
}
|
|
156
|
+
openReportInTablePopup(report) {
|
|
157
|
+
const reportData = this.api.internalApi.getReportService().getReportData(report, true);
|
|
158
|
+
if (this.isEmptyReportData(reportData)) {
|
|
159
|
+
this.showEmptyExportWarning();
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const popupProps = {
|
|
163
|
+
reportData,
|
|
164
|
+
};
|
|
165
|
+
let title = 'Export Table';
|
|
166
|
+
if (report.Name) {
|
|
167
|
+
title = `${title} [${report.Name}]`;
|
|
168
|
+
}
|
|
169
|
+
if (report.Scope) {
|
|
170
|
+
const scopeText = this.api.internalApi
|
|
171
|
+
.getReportService()
|
|
172
|
+
.GetReportColumnScopeShortDescription(report);
|
|
173
|
+
if (scopeText === null || scopeText === void 0 ? void 0 : scopeText.length) {
|
|
174
|
+
title = `${title} ${scopeText.join(',')}`;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (report.Query) {
|
|
178
|
+
const queryText = this.api.internalApi
|
|
179
|
+
.getReportService()
|
|
180
|
+
.GetReportExpressionDescription(report, this.api.columnApi.getColumns());
|
|
181
|
+
if (queryText === null || queryText === void 0 ? void 0 : queryText.length) {
|
|
182
|
+
title = `${title} ${queryText}`;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
this.api.internalApi.showPopupWindow({
|
|
186
|
+
// allow to open multiple tables
|
|
187
|
+
id: 'report-table-' + (0, Uuid_1.createUuid)(),
|
|
188
|
+
title: title,
|
|
189
|
+
icon: 'export-data',
|
|
190
|
+
factoryId: windowFactory_1.SHOW_EXPORT_TABLE,
|
|
191
|
+
popupProps,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
151
194
|
convertReportToCsv(report) {
|
|
152
195
|
const csvContent = this.createCSVContent(report);
|
|
153
196
|
if (StringExtensions_1.default.IsNullOrEmpty(csvContent)) {
|
|
@@ -216,7 +216,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
216
216
|
}
|
|
217
217
|
isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
|
|
218
218
|
var _a;
|
|
219
|
-
return this.api.predicateApi.
|
|
219
|
+
return this.api.predicateApi.handleColumnPredicates((_a = alert.Rule) === null || _a === void 0 ? void 0 : _a.Predicates, {
|
|
220
220
|
value: dataChangedEvent.newValue,
|
|
221
221
|
oldValue: dataChangedEvent.oldValue,
|
|
222
222
|
// TODO send real display value
|
|
@@ -64,13 +64,18 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
64
64
|
const dashboardModuleButtons = this.api.internalApi.getState().Dashboard.ModuleButtons;
|
|
65
65
|
if (dashboardModuleButtons.includes('ConditionalStyle')) {
|
|
66
66
|
dashboardModuleButtons[dashboardModuleButtons.indexOf('ConditionalStyle')] = 'FormatColumn';
|
|
67
|
-
|
|
67
|
+
const test2 = dashboardModuleButtons;
|
|
68
|
+
this.api.dashboardApi.setModuleButtons([
|
|
69
|
+
...new Set(dashboardModuleButtons),
|
|
70
|
+
]);
|
|
68
71
|
}
|
|
69
72
|
// update ConditionalStyle toolPanel buttons
|
|
70
73
|
const toolPanelModuleButtons = this.api.internalApi.getState().ToolPanel.ModuleButtons;
|
|
71
74
|
if (toolPanelModuleButtons.includes('ConditionalStyle')) {
|
|
72
75
|
toolPanelModuleButtons[toolPanelModuleButtons.indexOf('ConditionalStyle')] = 'FormatColumn';
|
|
73
|
-
this.api.toolPanelApi.setModuleButtons([
|
|
76
|
+
this.api.toolPanelApi.setModuleButtons([
|
|
77
|
+
...new Set(dashboardModuleButtons),
|
|
78
|
+
]);
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
updateFormatColumnSingleToMultiplePredicates() {
|
|
@@ -22,7 +22,7 @@ export interface ModuleInfo {
|
|
|
22
22
|
}
|
|
23
23
|
export declare type TeamSharingReferences = TeamSharingReference[];
|
|
24
24
|
export declare type TeamSharingReference = {
|
|
25
|
-
Module: StrictExtract<AdaptableModule, 'CalculatedColumn' | 'FreeTextColumn' | 'Query' | 'Alert' | '
|
|
25
|
+
Module: StrictExtract<AdaptableModule, 'CalculatedColumn' | 'FreeTextColumn' | 'Query' | 'Alert' | 'CustomSort' | 'FlashingCell' | 'FormatColumn' | 'PlusMinus' | 'Shortcut' | 'Schedule'>;
|
|
26
26
|
Reference: AdaptableObject;
|
|
27
27
|
};
|
|
28
28
|
export interface AdaptableObjectItemView {
|
|
@@ -293,7 +293,14 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
293
293
|
isVisible: true,
|
|
294
294
|
label: 'Expand Aggregated Value',
|
|
295
295
|
onClick: () => {
|
|
296
|
-
this.api.internalApi.showPopupWindow(
|
|
296
|
+
this.api.internalApi.showPopupWindow({
|
|
297
|
+
// force only one window instance opened
|
|
298
|
+
id: windowFactory_1.SHOW_PIVOT_COLUMN_DETAILS,
|
|
299
|
+
factoryId: windowFactory_1.SHOW_PIVOT_COLUMN_DETAILS,
|
|
300
|
+
title: `Rows for Aggregated Value: ${cellValue}`,
|
|
301
|
+
icon: undefined,
|
|
302
|
+
popupProps,
|
|
303
|
+
});
|
|
297
304
|
},
|
|
298
305
|
icon: {
|
|
299
306
|
name: 'arrowexpand',
|
|
@@ -73,6 +73,9 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
73
73
|
}
|
|
74
74
|
addColumnMenuItems(column) {
|
|
75
75
|
let returnColumnMenuItems = [];
|
|
76
|
+
const config = {
|
|
77
|
+
defaultCurrentSectionName: 'Style',
|
|
78
|
+
};
|
|
76
79
|
// Need a Column and an editable Module
|
|
77
80
|
if (column && this.isModuleEditable()) {
|
|
78
81
|
// First look at Sparkline Columns - needs to be editable array type
|
|
@@ -99,6 +102,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
99
102
|
action: sparklineColumnExists ? 'Edit' : 'New',
|
|
100
103
|
source: 'ColumnMenu',
|
|
101
104
|
value: styledColumn,
|
|
105
|
+
config,
|
|
102
106
|
};
|
|
103
107
|
returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(label + 'Sparkline Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
|
|
104
108
|
}
|
|
@@ -127,6 +131,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
127
131
|
action: styledColumnExists ? 'Edit' : 'New',
|
|
128
132
|
source: 'ColumnMenu',
|
|
129
133
|
value: styledColumn,
|
|
134
|
+
config,
|
|
130
135
|
};
|
|
131
136
|
returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(label + 'Styled Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
|
|
132
137
|
}
|
|
@@ -18,10 +18,16 @@ class ThemeModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
18
18
|
getViewProperties() {
|
|
19
19
|
return {
|
|
20
20
|
getStatusBarPanelProps: () => {
|
|
21
|
-
|
|
21
|
+
var _a;
|
|
22
|
+
const currentThemeName = this.api.themeApi.getCurrentTheme();
|
|
23
|
+
const currentTheme = this.api.themeApi
|
|
24
|
+
.getThemes()
|
|
25
|
+
.find((theme) => theme.Name === currentThemeName);
|
|
26
|
+
const text = (_a = currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.Description) !== null && _a !== void 0 ? _a : currentThemeName;
|
|
22
27
|
return {
|
|
23
|
-
content:
|
|
28
|
+
content: text,
|
|
24
29
|
popover: ThemeStatusPanelPopover_1.ThemeStatusPanelPopover,
|
|
30
|
+
popoverMinWidth: 120,
|
|
25
31
|
};
|
|
26
32
|
},
|
|
27
33
|
};
|
|
@@ -4,7 +4,7 @@ exports.getAlertPreviewViewItems = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const Tag_1 = require("../../../components/Tag");
|
|
7
|
-
const
|
|
7
|
+
const AlertNotificationWizardSection_1 = require("../../../View/Alert/Wizard/AlertNotificationWizardSection");
|
|
8
8
|
const getAlertPreviewViewItems = (alert, api) => {
|
|
9
9
|
return {
|
|
10
10
|
name: 'Type and Display',
|
|
@@ -13,7 +13,7 @@ const getAlertPreviewViewItems = (alert, api) => {
|
|
|
13
13
|
if (!((_a = alert === null || alert === void 0 ? void 0 : alert.AlertProperties) === null || _a === void 0 ? void 0 : _a.DisplayNotification)) {
|
|
14
14
|
return React.createElement(Tag_1.Tag, null, alert.MessageType);
|
|
15
15
|
}
|
|
16
|
-
return (React.createElement(
|
|
16
|
+
return (React.createElement(AlertNotificationWizardSection_1.AlertPreview, { focusFirstButton: false, style: { maxWidth: 400 }, mt: 2, api: api, alertDefinition: alert }));
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAlertTypeViewItems = void 0;
|
|
4
|
+
const getAlertType_1 = require("./../../../View/Alert/Utilities/getAlertType");
|
|
5
|
+
const getAlertTypeViewItems = (alert) => {
|
|
6
|
+
const alertType = (0, getAlertType_1.getAlertType)(alert);
|
|
7
|
+
const text = (0, getAlertType_1.getAlertTypeText)(alertType);
|
|
8
|
+
return {
|
|
9
|
+
name: 'Type',
|
|
10
|
+
values: [text],
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
exports.getAlertTypeViewItems = getAlertTypeViewItems;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getObjectTagsViewItems = void 0;
|
|
4
4
|
const getObjectTagsViewItems = (object, api) => {
|
|
5
|
-
var _a;
|
|
6
|
-
if (!api.internalApi.shouldDisplayTagSections()) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
if (!api.internalApi.shouldDisplayTagSections() || !((_a = object === null || object === void 0 ? void 0 : object.Tags) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
9
|
return {
|
|
10
10
|
name: 'Tags',
|
|
11
|
-
values: (
|
|
11
|
+
values: (_b = object === null || object === void 0 ? void 0 : object.Tags) === null || _b === void 0 ? void 0 : _b.map((tag) => api.internalApi.getLabelForTag(tag)),
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
exports.getObjectTagsViewItems = getObjectTagsViewItems;
|
|
@@ -11,8 +11,6 @@ export declare const CellSummaryModuleId: ModuleConstants;
|
|
|
11
11
|
export declare const CellSummaryFriendlyName = "Cell Summary";
|
|
12
12
|
export declare const ChartingModuleId: ModuleConstants;
|
|
13
13
|
export declare const ChartingFriendlyName = "Charts";
|
|
14
|
-
export declare const ConditionalStyleModuleId: ModuleConstants;
|
|
15
|
-
export declare const ConditionalStyleFriendlyName = "Conditional Style";
|
|
16
14
|
export declare const CustomSortModuleId: ModuleConstants;
|
|
17
15
|
export declare const CustomSortFriendlyName = "Custom Sort";
|
|
18
16
|
export declare const DashboardModuleId: ModuleConstants;
|
|
@@ -74,7 +72,6 @@ export declare const ADAPTABLE_MODULE_MAP: {
|
|
|
74
72
|
CalculatedColumn: string;
|
|
75
73
|
CellSummary: string;
|
|
76
74
|
Charting: string;
|
|
77
|
-
ConditionalStyle: string;
|
|
78
75
|
CustomSort: string;
|
|
79
76
|
Dashboard: string;
|
|
80
77
|
DataChangeHistory: string;
|