@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
|
@@ -11,7 +11,6 @@ const react_1 = require("react");
|
|
|
11
11
|
const UIHelper_1 = tslib_1.__importDefault(require("../../View/UIHelper"));
|
|
12
12
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
13
|
const SystemStatusInternalApi_1 = require("../Internal/SystemStatusInternalApi");
|
|
14
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
15
14
|
class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
16
15
|
constructor(adaptable) {
|
|
17
16
|
super(adaptable);
|
|
@@ -76,17 +75,9 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
75
|
setInfoSystemStatus(statusMessage, statusFurtherInformation) {
|
|
77
76
|
this.setSystemStatus(statusMessage, 'Info', statusFurtherInformation);
|
|
78
77
|
}
|
|
79
|
-
showSystemStatusPopup() {
|
|
80
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
|
|
81
|
-
this.openSystemStatusSettingsPanel();
|
|
82
|
-
}
|
|
83
78
|
openSystemStatusSettingsPanel() {
|
|
84
79
|
this.showModulePopup(ModuleConstants.SystemStatusModuleId);
|
|
85
80
|
}
|
|
86
|
-
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
87
|
-
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
|
|
88
|
-
this.internalApi.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
89
|
-
}
|
|
90
81
|
getCurrentSystemStatusMessageInfo() {
|
|
91
82
|
const messageInfos = this.internalApi.getSystemStatusMessageInfos() || [];
|
|
92
83
|
const orderedArray = messageInfos.sort((a, b) => b.timestamp.getTime() - a.timestamp.getTime());
|
|
@@ -7,17 +7,13 @@ export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingAp
|
|
|
7
7
|
internalApi: TeamSharingInternalApi;
|
|
8
8
|
constructor(adaptable: IAdaptable);
|
|
9
9
|
loadSharedEntities(): Promise<SharedEntity[]>;
|
|
10
|
-
getSharedEntities(): Promise<SharedEntity[]>;
|
|
11
10
|
persistSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
|
|
12
|
-
setSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
|
|
13
11
|
isTeamSharingAvailable(): boolean;
|
|
14
12
|
hasTeamSharingFullRights(): boolean;
|
|
15
13
|
checkForUpdates(): void;
|
|
16
|
-
showTeamSharingPopup(): void;
|
|
17
14
|
openTeamSharingSettingsPanel(): void;
|
|
18
15
|
shareAdaptableEntity(adaptableObject: AdaptableObject, module: AdaptableModule, sharedEntityConfig: AdaptableSharedEntityConfig): void;
|
|
19
16
|
shareCustomEntity(customObject: any, sharedEntityConfig: CustomSharedEntityConfig): void;
|
|
20
|
-
shareEntity(entity: AdaptableObject, module: AdaptableModule, sharedEntityConfig: AdaptableSharedEntityConfig): void;
|
|
21
17
|
unshareEntity(entityId: string): void;
|
|
22
18
|
importSharedEntry(sharedEntity: SharedEntity): void;
|
|
23
19
|
private getTeamSharingState;
|
|
@@ -25,5 +21,4 @@ export declare class TeamSharingApiImpl extends ApiBase implements TeamSharingAp
|
|
|
25
21
|
getLoadedAdaptableSharedEntities(): AdaptableSharedEntity[];
|
|
26
22
|
getLoadedCustomSharedEntities(): CustomSharedEntity[];
|
|
27
23
|
refreshTeamSharing(): void;
|
|
28
|
-
triggerLoadingTeamSharingEntries(): void;
|
|
29
24
|
}
|
|
@@ -7,7 +7,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
8
8
|
const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux");
|
|
9
9
|
const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
|
|
10
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
const TeamSharingState_1 = require("../../PredefinedConfig/TeamSharingState");
|
|
12
11
|
class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
13
12
|
constructor(adaptable) {
|
|
@@ -39,10 +38,6 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
38
|
const sharedEntities = teamSharingOptions.applySharedEntities(loadedSharedEntities, sharedEntitiesContext);
|
|
40
39
|
return sharedEntities;
|
|
41
40
|
}
|
|
42
|
-
async getSharedEntities() {
|
|
43
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'getSharedEntities', 'loadSharedEntities');
|
|
44
|
-
return this.loadSharedEntities();
|
|
45
|
-
}
|
|
46
41
|
async persistSharedEntities(sharedEntities) {
|
|
47
42
|
if (!this.isTeamSharingAvailable()) {
|
|
48
43
|
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
@@ -58,10 +53,6 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
58
53
|
await teamSharingOptions.persistSharedEntities(sharedEntitiesAfterCustomisation, sharedEntitiesContext);
|
|
59
54
|
return true;
|
|
60
55
|
}
|
|
61
|
-
async setSharedEntities(sharedEntities) {
|
|
62
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'setSharedEntities', 'persistSharedEntities');
|
|
63
|
-
return this.persistSharedEntities(sharedEntities);
|
|
64
|
-
}
|
|
65
56
|
isTeamSharingAvailable() {
|
|
66
57
|
var _a, _b, _c;
|
|
67
58
|
return (!this.getAdaptableApi()
|
|
@@ -79,10 +70,6 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
70
|
checkForUpdates() {
|
|
80
71
|
this.dispatchAction((0, TeamSharingRedux_1.TeamSharingCheckForUpdates)());
|
|
81
72
|
}
|
|
82
|
-
showTeamSharingPopup() {
|
|
83
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'showTeamSharingPopup', 'openTeamSharingSettingsPanel');
|
|
84
|
-
return this.openTeamSharingSettingsPanel();
|
|
85
|
-
}
|
|
86
73
|
openTeamSharingSettingsPanel() {
|
|
87
74
|
this.showModulePopup(ModuleConstants.TeamSharingModuleId);
|
|
88
75
|
}
|
|
@@ -100,10 +87,6 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
100
87
|
}
|
|
101
88
|
this.dispatchAction(TeamSharingRedux.TeamSharingShareCustom(customObject, sharedEntityConfig));
|
|
102
89
|
}
|
|
103
|
-
shareEntity(entity, module, sharedEntityConfig) {
|
|
104
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'shareEntity', 'shareAdaptableEntity');
|
|
105
|
-
return this.shareAdaptableEntity(entity, module, sharedEntityConfig);
|
|
106
|
-
}
|
|
107
90
|
unshareEntity(entityId) {
|
|
108
91
|
if (!this.isTeamSharingAvailable()) {
|
|
109
92
|
this.logWarn('Team Sharing is not Activated so Entities cannot be unshared');
|
|
@@ -143,9 +126,5 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
143
126
|
refreshTeamSharing() {
|
|
144
127
|
this.dispatchAction(TeamSharingRedux.TeamSharingGet());
|
|
145
128
|
}
|
|
146
|
-
triggerLoadingTeamSharingEntries() {
|
|
147
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'triggerLoadingTeamSharingEntries', 'refreshTeamSharing');
|
|
148
|
-
this.refreshTeamSharing();
|
|
149
|
-
}
|
|
150
129
|
}
|
|
151
130
|
exports.TeamSharingApiImpl = TeamSharingApiImpl;
|
|
@@ -14,14 +14,10 @@ export declare class ThemeApiImpl extends ApiBase implements ThemeApi {
|
|
|
14
14
|
getCurrentThemeObject(): AdaptableTheme;
|
|
15
15
|
setSystemThemes(systemThemes: AdaptableTheme[]): void;
|
|
16
16
|
setUserThemes(userThemes: AdaptableTheme[]): void;
|
|
17
|
-
getAllSystemTheme(): AdaptableTheme[];
|
|
18
17
|
getSystemThemes(): AdaptableTheme[];
|
|
19
18
|
applyCurrentTheme(): void;
|
|
20
|
-
getAllUserTheme(): AdaptableTheme[];
|
|
21
19
|
getUserThemes(): AdaptableTheme[];
|
|
22
|
-
getAllTheme(): AdaptableTheme[];
|
|
23
20
|
getThemes(): AdaptableTheme[];
|
|
24
|
-
showThemePopup(): void;
|
|
25
21
|
openThemeSettingsPanel(): void;
|
|
26
22
|
getAgGridCurrentThemeName(): string;
|
|
27
23
|
editTheme(theme: AdaptableTheme): void;
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ThemeRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ThemeRedux"));
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
const themes_1 = require("../../themes");
|
|
10
9
|
const ThemeInternalApi_1 = require("../Internal/ThemeInternalApi");
|
|
11
10
|
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
@@ -39,10 +38,6 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
38
|
setUserThemes(userThemes) {
|
|
40
39
|
this.dispatchAction(ThemeRedux.ThemeSetUserThemes(userThemes));
|
|
41
40
|
}
|
|
42
|
-
getAllSystemTheme() {
|
|
43
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllSystemTheme', 'getSystemThemes');
|
|
44
|
-
return this.getSystemThemes();
|
|
45
|
-
}
|
|
46
41
|
getSystemThemes() {
|
|
47
42
|
var _a;
|
|
48
43
|
const themes = (_a = this.getAdaptableState().Theme.SystemThemes) !== null && _a !== void 0 ? _a : [];
|
|
@@ -69,28 +64,18 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
69
64
|
let themeChangedInfo = {
|
|
70
65
|
adaptableApi: this.getAdaptableApi(),
|
|
71
66
|
theme: currentTheme,
|
|
67
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
68
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
72
69
|
};
|
|
73
70
|
this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
74
71
|
}
|
|
75
|
-
getAllUserTheme() {
|
|
76
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllUserTheme', 'getUserThemes');
|
|
77
|
-
return this.getUserThemes();
|
|
78
|
-
}
|
|
79
72
|
getUserThemes() {
|
|
80
73
|
var _a;
|
|
81
74
|
return (_a = this.getAdaptableState().Theme.UserThemes) !== null && _a !== void 0 ? _a : [];
|
|
82
75
|
}
|
|
83
|
-
getAllTheme() {
|
|
84
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllTheme', 'getThemes');
|
|
85
|
-
return this.getThemes();
|
|
86
|
-
}
|
|
87
76
|
getThemes() {
|
|
88
77
|
return [...this.getSystemThemes(), ...this.getUserThemes()];
|
|
89
78
|
}
|
|
90
|
-
showThemePopup() {
|
|
91
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'showThemePopup', 'openThemeSettingsPanel');
|
|
92
|
-
return this.openThemeSettingsPanel();
|
|
93
|
-
}
|
|
94
79
|
openThemeSettingsPanel() {
|
|
95
80
|
this.showModulePopup(ModuleConstants.ThemeModuleId);
|
|
96
81
|
}
|
|
@@ -14,13 +14,13 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
|
|
|
14
14
|
this.showModulePopup(ModuleConstants.ToolPanelModuleId);
|
|
15
15
|
}
|
|
16
16
|
openAdapTableToolPanel() {
|
|
17
|
-
let gridOptions = this.
|
|
17
|
+
let gridOptions = this.getGridApi().getAgGridInstance();
|
|
18
18
|
if (gridOptions) {
|
|
19
19
|
gridOptions.api.openToolPanel('adaptable');
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
closeAdapTableToolPanel() {
|
|
23
|
-
let gridOptions = this.
|
|
23
|
+
let gridOptions = this.getGridApi().getAgGridInstance();
|
|
24
24
|
if (gridOptions) {
|
|
25
25
|
gridOptions.api.closeToolPanel();
|
|
26
26
|
}
|
|
@@ -8,7 +8,6 @@ import { AdaptableObjectTag, GridCell } from '../../types';
|
|
|
8
8
|
export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
|
|
9
9
|
getColorPalette(): string[];
|
|
10
10
|
getStyleClassNames(): string[] | undefined;
|
|
11
|
-
getAllPermittedValuesItems(): PermittedValues[];
|
|
12
11
|
getPermittedValuesItems(): PermittedValues[];
|
|
13
12
|
private getPermittedValuesForScope;
|
|
14
13
|
getPermittedValuesForColumn(column: AdaptableColumn): any[] | undefined;
|
|
@@ -18,7 +17,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
18
17
|
getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
|
|
19
18
|
getAllBulkUpdatePermittedValuesItems(): BulkUpdatePermittedValues[];
|
|
20
19
|
getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
|
|
21
|
-
getAllEditLookUpItems(): EditLookUpPermittedValues[];
|
|
22
20
|
getEditLookUpItems(): EditLookUpPermittedValues[];
|
|
23
21
|
getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
|
|
24
22
|
getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
|
|
@@ -27,4 +25,8 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
|
|
|
27
25
|
getEditableCellStyle(): AdaptableStyle | undefined;
|
|
28
26
|
getReadOnlyCellStyle(): AdaptableStyle | undefined;
|
|
29
27
|
getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
|
|
28
|
+
getCustomIconDefinition(iconName: string): import("../../types").AdaptableIcon | {
|
|
29
|
+
name: string;
|
|
30
|
+
icon: import("../../types").AdaptableIcon;
|
|
31
|
+
};
|
|
30
32
|
}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UserInterfaceApiImpl = void 0;
|
|
4
4
|
const ApiBase_1 = require("./ApiBase");
|
|
5
5
|
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
6
|
-
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
7
6
|
class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
8
7
|
getColorPalette() {
|
|
9
8
|
let colorPalette = this.getUserInterfaceOptions().colorPalette;
|
|
@@ -24,10 +23,6 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
24
23
|
getStyleClassNames() {
|
|
25
24
|
return this.getUserInterfaceOptions().styleClassNames;
|
|
26
25
|
}
|
|
27
|
-
getAllPermittedValuesItems() {
|
|
28
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllPermittedValuesItems', 'getPermittedValuesItems');
|
|
29
|
-
return this.getPermittedValuesItems();
|
|
30
|
-
}
|
|
31
26
|
getPermittedValuesItems() {
|
|
32
27
|
var _a, _b;
|
|
33
28
|
return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.permittedValues) !== null && _b !== void 0 ? _b : [];
|
|
@@ -76,6 +71,8 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
71
|
if (column) {
|
|
77
72
|
const permittedValuesParams = {
|
|
78
73
|
adaptableApi: this.getAdaptableApi(),
|
|
74
|
+
userName: this.getOptions().userName,
|
|
75
|
+
adaptableId: this.getOptions().adaptableId,
|
|
79
76
|
column: column,
|
|
80
77
|
};
|
|
81
78
|
return permittedValues(permittedValuesParams);
|
|
@@ -122,10 +119,6 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
122
119
|
}
|
|
123
120
|
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
124
121
|
}
|
|
125
|
-
getAllEditLookUpItems() {
|
|
126
|
-
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllEditLookUpItems', 'getEditLookUpItems');
|
|
127
|
-
return this.getEditLookUpItems();
|
|
128
|
-
}
|
|
129
122
|
getEditLookUpItems() {
|
|
130
123
|
return this.getUserInterfaceOptions().editLookUpItems || [];
|
|
131
124
|
}
|
|
@@ -162,7 +155,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
162
155
|
getAdaptableObjectTags() {
|
|
163
156
|
const objectTags = this.getUserInterfaceOptions().objectTags;
|
|
164
157
|
if (objectTags != null && typeof objectTags === 'function') {
|
|
165
|
-
return objectTags({
|
|
158
|
+
return objectTags({
|
|
159
|
+
adaptableApi: this.adaptable.api,
|
|
160
|
+
userName: this.getOptions().userName,
|
|
161
|
+
adaptableId: this.getOptions().adaptableId,
|
|
162
|
+
});
|
|
166
163
|
}
|
|
167
164
|
else {
|
|
168
165
|
let arr = objectTags;
|
|
@@ -171,5 +168,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
171
168
|
}
|
|
172
169
|
}
|
|
173
170
|
}
|
|
171
|
+
getCustomIconDefinition(iconName) {
|
|
172
|
+
var _a, _b;
|
|
173
|
+
let customIcon = undefined;
|
|
174
|
+
const customIcons = (_b = (_a = this.getAdaptableApi().optionsApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.customIcons) !== null && _b !== void 0 ? _b : [];
|
|
175
|
+
customIcon = customIcons.find((icon) => icon.name === iconName);
|
|
176
|
+
if (customIcon) {
|
|
177
|
+
return customIcon.icon;
|
|
178
|
+
}
|
|
179
|
+
return customIcon;
|
|
180
|
+
}
|
|
174
181
|
}
|
|
175
182
|
exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IRowNode } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableForm } from '../../PredefinedConfig/Common/AdaptableForm';
|
|
3
|
-
import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/
|
|
3
|
+
import { CreateActionRowFormContext, EditActionRowFormContext } from '../../AdaptableOptions/ActionRowOptions';
|
|
4
4
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ActionRowInternalApi extends ApiBase {
|
|
6
6
|
buildRowEditForm(rowNode: IRowNode): AdaptableForm<EditActionRowFormContext>;
|
|
7
7
|
buildRowCreateForm(clonedRowNode?: IRowNode): AdaptableForm<CreateActionRowFormContext>;
|
|
8
8
|
private get actionRowFormOptions();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ActionRowInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
class
|
|
5
|
+
class ActionRowInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
buildRowEditForm(rowNode) {
|
|
7
7
|
return this.buildActionRow('rowEdited', rowNode);
|
|
8
8
|
}
|
|
@@ -10,8 +10,7 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
10
10
|
return this.buildActionRow('rowCreated', clonedRowNode);
|
|
11
11
|
}
|
|
12
12
|
get actionRowFormOptions() {
|
|
13
|
-
|
|
14
|
-
return (_a = this.getActionOptions().actionRowButtonOptions) === null || _a === void 0 ? void 0 : _a.actionRowFormOptions;
|
|
13
|
+
return this.getActionRowOptions().actionRowFormOptions;
|
|
15
14
|
}
|
|
16
15
|
get adaptableInstance() {
|
|
17
16
|
return this.getAdaptableApi().internalApi.getAdaptableInstance();
|
|
@@ -46,6 +45,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
46
45
|
return {
|
|
47
46
|
rowNode,
|
|
48
47
|
adaptableApi: this.getAdaptableApi(),
|
|
48
|
+
userName: this.getOptions().userName,
|
|
49
|
+
adaptableId: this.getOptions().adaptableId,
|
|
49
50
|
type: type,
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -85,6 +86,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
85
86
|
type: 'rowCreated',
|
|
86
87
|
formData: context.formData,
|
|
87
88
|
adaptableApi: context.adaptableApi,
|
|
89
|
+
userName: this.getOptions().userName,
|
|
90
|
+
adaptableId: this.getOptions().adaptableId,
|
|
88
91
|
clonedRowNode: rowNode,
|
|
89
92
|
}
|
|
90
93
|
: {
|
|
@@ -92,6 +95,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
92
95
|
formData: context.formData,
|
|
93
96
|
rowNode: rowNode,
|
|
94
97
|
adaptableApi: context.adaptableApi,
|
|
98
|
+
userName: this.getOptions().userName,
|
|
99
|
+
adaptableId: this.getOptions().adaptableId,
|
|
95
100
|
};
|
|
96
101
|
this.getAdaptableApi().eventApi.emit('ActionRowSubmitted', eventInfo);
|
|
97
102
|
(_b = (_a = this.actionRowFormOptions) === null || _a === void 0 ? void 0 : _a.onFormSubmit) === null || _b === void 0 ? void 0 : _b.call(_a, eventInfo);
|
|
@@ -136,6 +141,8 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
136
141
|
rowNode,
|
|
137
142
|
column,
|
|
138
143
|
adaptableApi: this.getAdaptableApi(),
|
|
144
|
+
userName: this.getOptions().userName,
|
|
145
|
+
adaptableId: this.getOptions().adaptableId,
|
|
139
146
|
type: type,
|
|
140
147
|
};
|
|
141
148
|
}
|
|
@@ -167,4 +174,4 @@ class ActionInternalApi extends ApiBase_1.ApiBase {
|
|
|
167
174
|
}));
|
|
168
175
|
}
|
|
169
176
|
}
|
|
170
|
-
exports.
|
|
177
|
+
exports.ActionRowInternalApi = ActionRowInternalApi;
|
|
@@ -7,7 +7,7 @@ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
|
7
7
|
import { AdaptableMenuItem } from '../../PredefinedConfig/Common/Menu';
|
|
8
8
|
import { AdaptableModule } from '../../PredefinedConfig/Common/Types';
|
|
9
9
|
import { CellDataChangedInfo } from '../../PredefinedConfig/Common/CellDataChangedInfo';
|
|
10
|
-
import { AdaptableIcon, AdaptableObjectLookupCriteria,
|
|
10
|
+
import { AdaptableIcon, AdaptableObjectLookupCriteria, AdaptableQuery, AdaptableState, BaseContext } from '../../types';
|
|
11
11
|
import { IValidationService } from '../../Utilities/Services/Interface/IValidationService';
|
|
12
12
|
import { IModuleService } from '../../Utilities/Services/Interface/IModuleService';
|
|
13
13
|
import { IReportService } from '../../Utilities/Services/Interface/IReportService';
|
|
@@ -52,18 +52,9 @@ export declare class AdaptableInternalApi extends ApiBase {
|
|
|
52
52
|
isGridInTreeMode(): boolean;
|
|
53
53
|
getToolbarTitle(): string;
|
|
54
54
|
buildDataChangedInfo(config: Pick<CellDataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): CellDataChangedInfo;
|
|
55
|
-
/**
|
|
56
|
-
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
57
|
-
*/
|
|
58
|
-
getPrimaryKey(): any;
|
|
59
55
|
getAdaptableInstance(): IAdaptable;
|
|
60
|
-
getAgGridInstance(): any;
|
|
61
56
|
getPredefinedConfig(): any;
|
|
62
57
|
getState(): AdaptableState;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
65
|
-
*/
|
|
66
|
-
getAdaptableOptions(): AdaptableOptions;
|
|
67
58
|
getValidationService(): IValidationService;
|
|
68
59
|
getModuleService(): IModuleService;
|
|
69
60
|
getDataService(): IDataService;
|
|
@@ -79,30 +79,15 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
79
79
|
var _a;
|
|
80
80
|
return Object.assign(Object.assign({}, config), { rowData: (_a = config.rowNode) === null || _a === void 0 ? void 0 : _a.data, changedAt: Date.now() });
|
|
81
81
|
}
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated use `OptionsApi.getPrimaryKey()`
|
|
84
|
-
*/
|
|
85
|
-
getPrimaryKey() {
|
|
86
|
-
return this.adaptable.adaptableOptions.primaryKey;
|
|
87
|
-
}
|
|
88
82
|
getAdaptableInstance() {
|
|
89
83
|
return this.adaptable;
|
|
90
84
|
}
|
|
91
|
-
getAgGridInstance() {
|
|
92
|
-
return this.adaptable.adaptableOptions.gridOptions;
|
|
93
|
-
}
|
|
94
85
|
getPredefinedConfig() {
|
|
95
86
|
return this.adaptable.adaptableOptions.predefinedConfig;
|
|
96
87
|
}
|
|
97
88
|
getState() {
|
|
98
89
|
return this.getAdaptableState();
|
|
99
90
|
}
|
|
100
|
-
/**
|
|
101
|
-
* @deprecated use OptionsApi.getAdaptableOptions()
|
|
102
|
-
*/
|
|
103
|
-
getAdaptableOptions() {
|
|
104
|
-
return this.getOptions();
|
|
105
|
-
}
|
|
106
91
|
getValidationService() {
|
|
107
92
|
return this.adaptable.ValidationService;
|
|
108
93
|
}
|
|
@@ -286,7 +271,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
286
271
|
}
|
|
287
272
|
getCorrectEnglishVariant(wordToSpell) {
|
|
288
273
|
if (wordToSpell.includes('our')) {
|
|
289
|
-
return this.
|
|
274
|
+
return this.getUserInterfaceOptions().englishVariant == 'GB'
|
|
290
275
|
? wordToSpell
|
|
291
276
|
: wordToSpell.replace('our', 'or');
|
|
292
277
|
}
|
|
@@ -315,6 +300,8 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
315
300
|
return this.adaptable.adaptableOptions.userInterfaceOptions
|
|
316
301
|
.objectTags({
|
|
317
302
|
adaptableApi: this.adaptable.api,
|
|
303
|
+
userName: this.getOptions().userName,
|
|
304
|
+
adaptableId: this.getOptions().adaptableId,
|
|
318
305
|
})
|
|
319
306
|
.filter((tag) => typeof tag === 'string');
|
|
320
307
|
}
|
|
@@ -336,6 +323,8 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
336
323
|
layouts: this.adaptable.api.layoutApi.getLayouts(),
|
|
337
324
|
objectTags: this.getAdaptableApi().userInterfaceApi.getAdaptableObjectTags(),
|
|
338
325
|
adaptableApi: this.adaptable.api,
|
|
326
|
+
userName: this.getOptions().userName,
|
|
327
|
+
adaptableId: this.getOptions().adaptableId,
|
|
339
328
|
};
|
|
340
329
|
const customGeneratedTags = this.adaptable.adaptableOptions.layoutOptions.layoutTagOptions.autoGenerateTagsForLayouts(autoGenerateTagsForLayoutsContext);
|
|
341
330
|
// sanitize the provided tags, just to be sure that the user does NOT break the UI
|
|
@@ -359,14 +348,14 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
359
348
|
return adaptableObjectTag;
|
|
360
349
|
}
|
|
361
350
|
getAdaptableQueryExpressionText(query) {
|
|
362
|
-
var _a;
|
|
351
|
+
var _a, _b;
|
|
363
352
|
if (!query) {
|
|
364
353
|
return '';
|
|
365
354
|
}
|
|
366
|
-
const displayColumnFriendlyNames = (_a = this.adaptable.adaptableOptions.adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.displayColumnFriendlyNamesForExpressions;
|
|
355
|
+
const displayColumnFriendlyNames = (_b = (_a = this.adaptable.adaptableOptions.adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.displayColumnFriendlyNamesForExpressions;
|
|
367
356
|
return displayColumnFriendlyNames
|
|
368
|
-
? this.adaptable.api.
|
|
369
|
-
: this.adaptable.api.
|
|
357
|
+
? this.adaptable.api.expressionApi.getAdaptableQueryExpressionWithColumnFriendlyNames(query)
|
|
358
|
+
: this.adaptable.api.expressionApi.getAdaptableQueryExpression(query);
|
|
370
359
|
}
|
|
371
360
|
deleteConditionalStyles(conditionalStyles) {
|
|
372
361
|
conditionalStyles.forEach((cs) => {
|
|
@@ -82,9 +82,12 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
82
82
|
* @param alertToFire Alerts which has just triggered
|
|
83
83
|
*/
|
|
84
84
|
publishAlertFiredEvent(alertToFire) {
|
|
85
|
+
const adaptableApi = this.getAdaptableApi();
|
|
85
86
|
const alertFiredInfo = {
|
|
86
|
-
adaptableApi:
|
|
87
|
+
adaptableApi: adaptableApi,
|
|
87
88
|
alert: alertToFire,
|
|
89
|
+
userName: adaptableApi.optionsApi.getUserName(),
|
|
90
|
+
adaptableId: adaptableApi.optionsApi.getAdaptableId(),
|
|
88
91
|
};
|
|
89
92
|
this.getEventApi().emit('AlertFired', alertFiredInfo);
|
|
90
93
|
}
|
|
@@ -431,7 +434,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
431
434
|
if (!rowNode) {
|
|
432
435
|
rowNode = this.getAdaptableApi().gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
|
|
433
436
|
}
|
|
434
|
-
const isValidExpression = this.getAdaptableApi().
|
|
437
|
+
const isValidExpression = this.getAdaptableApi().expressionApi.isValidBooleanExpression(expression, 'Alert', `Invalid Alert boolean expression '${expression}'`);
|
|
435
438
|
const isSatisfiedExpression = isValidExpression &&
|
|
436
439
|
this.getAdaptableApi()
|
|
437
440
|
.internalApi.getQueryLanguageService()
|
|
@@ -441,7 +444,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
441
444
|
}
|
|
442
445
|
}
|
|
443
446
|
else if (alertDefinition.Rule.AggregatedBooleanExpression) {
|
|
444
|
-
const isValidExpression = this.getAdaptableApi().
|
|
447
|
+
const isValidExpression = this.getAdaptableApi().expressionApi.isValidAggregatedBooleanExpression(alertDefinition.Rule.AggregatedBooleanExpression, 'Alert', `Invalid Alert boolean expression '${alertDefinition.Rule.AggregatedBooleanExpression}'`);
|
|
445
448
|
const isSatisfiedExpression = isValidExpression &&
|
|
446
449
|
this.isAggregationAlertTriggered(alertDefinition, dataChangedEvent);
|
|
447
450
|
if (isSatisfiedExpression) {
|
|
@@ -460,7 +463,7 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
460
463
|
}
|
|
461
464
|
isAggregationAlertTriggered(alertDefinition, dataChangedEvent) {
|
|
462
465
|
const changedColumn = dataChangedEvent.column.columnId;
|
|
463
|
-
const aggregationColumns = this.getAdaptableApi().
|
|
466
|
+
const aggregationColumns = this.getAdaptableApi().expressionApi.getColumnsFromExpression(alertDefinition.Rule.AggregatedBooleanExpression);
|
|
464
467
|
if (!aggregationColumns.includes(changedColumn)) {
|
|
465
468
|
return false;
|
|
466
469
|
}
|
|
@@ -496,11 +499,11 @@ class AlertInternalApi extends ApiBase_1.ApiBase {
|
|
|
496
499
|
const rule = alertDefinition.Rule;
|
|
497
500
|
if (rule) {
|
|
498
501
|
if (rule.Predicates) {
|
|
499
|
-
return this.getAdaptableApi().
|
|
502
|
+
return this.getAdaptableApi().expressionApi.internalApi.evaluatePredicatesInAdaptableQL('Alert', alertDefinition, alertDefinition.Rule.Predicates);
|
|
500
503
|
}
|
|
501
504
|
else {
|
|
502
505
|
var expression = this.getExpressionForAlertRule(rule);
|
|
503
|
-
return this.getAdaptableApi().
|
|
506
|
+
return this.getAdaptableApi().expressionApi.internalApi.evaluateExpressionInAdaptableQL('Alert', alertDefinition, expression);
|
|
504
507
|
}
|
|
505
508
|
}
|
|
506
509
|
return true;
|
|
@@ -27,7 +27,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
27
27
|
this.getCalculatedColumnApi()
|
|
28
28
|
.getCalculatedColumns()
|
|
29
29
|
.forEach((calculatedColumn) => {
|
|
30
|
-
if (this.
|
|
30
|
+
if (this.getExpressionApi().internalApi.isColumnReferencedInExpression(columnId, this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query))) {
|
|
31
31
|
calcColumns.push(calculatedColumn);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -38,7 +38,7 @@ class CalculatedColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
38
38
|
* @param calculatedColumn Calculated Column to check
|
|
39
39
|
*/
|
|
40
40
|
getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
|
|
41
|
-
const columnIds = this.adaptable.api.
|
|
41
|
+
const columnIds = this.adaptable.api.expressionApi.getColumnsFromExpression(this.adaptable.api.expressionApi.getAdaptableQueryExpression(calculatedColumn.Query));
|
|
42
42
|
return columnIds;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { ColumnValuesComparer } from '../../AdaptableOptions/
|
|
3
|
+
import { ColumnValuesComparer } from '../../AdaptableOptions/CustomSortOptions';
|
|
4
4
|
export declare class CustomSortInternalApi extends ApiBase {
|
|
5
5
|
getCustomSortComparer(column: AdaptableColumn): ColumnValuesComparer | undefined;
|
|
6
6
|
}
|
|
@@ -5,7 +5,7 @@ const ApiBase_1 = require("../Implementation/ApiBase");
|
|
|
5
5
|
class CustomSortInternalApi extends ApiBase_1.ApiBase {
|
|
6
6
|
getCustomSortComparer(column) {
|
|
7
7
|
var _a;
|
|
8
|
-
return (_a = this.
|
|
8
|
+
return (_a = this.getCustomSortOptions().customSortComparers) === null || _a === void 0 ? void 0 : _a.find((csc) => this.adaptable.api.scopeApi.isColumnInScope(column, csc.scope));
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
exports.CustomSortInternalApi = CustomSortInternalApi;
|
|
@@ -26,6 +26,8 @@ class DashboardInternalApi extends ApiBase_1.ApiBase {
|
|
|
26
26
|
newDashboardState,
|
|
27
27
|
isToolbarStateChangedToVisible,
|
|
28
28
|
isToolbarStateChangedToHidden,
|
|
29
|
+
userName: this.adaptable.api.optionsApi.getUserName(),
|
|
30
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
29
31
|
};
|
|
30
32
|
if (!(0, isEqual_1.default)(oldDashboardState, newDashboardState)) {
|
|
31
33
|
this.adaptable.api.eventApi.emitSync('DashboardChanged', dashboardChangedInfo);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { DataSet } from '../../AdaptableOptions/
|
|
2
|
+
import { DataSet } from '../../AdaptableOptions/DataSetOptions';
|
|
3
3
|
export declare class DataSetInternalApi extends ApiBase {
|
|
4
4
|
/**
|
|
5
5
|
* Fires the DataSet Selected Event
|
|
@@ -11,7 +11,8 @@ class DataSetInternalApi extends ApiBase_1.ApiBase {
|
|
|
11
11
|
if (this.adaptable.isLive) {
|
|
12
12
|
const dataSetSelectedInfo = {
|
|
13
13
|
adaptableApi: this.adaptable.api,
|
|
14
|
-
dataSet,
|
|
14
|
+
dataSet, userName: this.adaptable.api.optionsApi.getUserName(),
|
|
15
|
+
adaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
15
16
|
};
|
|
16
17
|
this.adaptable.api.eventApi.emit('DataSetSelected', dataSetSelectedInfo);
|
|
17
18
|
}
|
|
@@ -14,7 +14,7 @@ class ExportInternalApi extends ApiBase_1.ApiBase {
|
|
|
14
14
|
return true;
|
|
15
15
|
}
|
|
16
16
|
// if its a Custom Report then the User has to run it so we just ignore completely
|
|
17
|
-
if (this.getExportApi().
|
|
17
|
+
if (this.getExportApi().isExternalReport(report)) {
|
|
18
18
|
return false;
|
|
19
19
|
}
|
|
20
20
|
// Start with the DataChanged Column and go through all possibilities
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
2
|
import { AdaptableQLModule } from '../../PredefinedConfig/Common/Types';
|
|
3
3
|
import { AdaptableObject, AdaptablePredicate } from '../../types';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class ExpressionInternalApi extends ApiBase {
|
|
5
5
|
/**
|
|
6
6
|
* Checks if a column is referenced in a given Expression
|
|
7
7
|
* @param columnId Column to Check
|