@adaptabletools/adaptable 16.0.9 → 16.0.10-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 +14 -14
- package/base.css.map +1 -1
- package/bundle.cjs.js +169 -169
- package/index.css +14 -14
- package/index.css.map +1 -1
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +2 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +40 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
- package/src/AdaptableOptions/NotesOptions.d.ts +23 -0
- package/src/AdaptableOptions/QuickSearchOptions.d.ts +8 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -0
- package/src/Api/AdaptableApi.d.ts +3 -3
- package/src/Api/ChartingApi.d.ts +30 -0
- package/src/Api/ColumnApi.d.ts +5 -0
- package/src/Api/ConfigApi.d.ts +4 -3
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -2
- package/src/Api/Implementation/ApiBase.d.ts +2 -2
- package/src/Api/Implementation/ApiBase.js +2 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +8 -2
- package/src/Api/Implementation/ChartingApiImpl.js +64 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnApiImpl.js +4 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +3 -2
- package/src/Api/Implementation/ConfigApiImpl.js +9 -9
- package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
- package/src/Api/Implementation/NotesApiImpl.js +58 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -2
- package/src/Api/Implementation/OptionsApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +2 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +8 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -2
- package/src/Api/Internal/AdaptableInternalApi.js +0 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +12 -0
- package/src/Api/Internal/ChartingInternalApi.d.ts +7 -0
- package/src/Api/Internal/ChartingInternalApi.js +45 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +3 -0
- package/src/Api/Internal/ColumnInternalApi.js +3 -0
- package/src/Api/NotesAPi.d.ts +50 -0
- package/src/Api/OptionsApi.d.ts +3 -3
- package/src/Api/UserInterfaceApi.d.ts +8 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +2 -2
- package/src/PredefinedConfig/ChartingState.d.ts +22 -0
- package/src/PredefinedConfig/ChartingState.js +9 -0
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +12 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +2 -2
- package/src/PredefinedConfig/Common/Types.js +1 -1
- package/src/PredefinedConfig/NotesState.d.ts +59 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -2
- package/src/PredefinedConfig/SystemState.d.ts +5 -3
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +28 -3
- package/src/Redux/ActionsReducers/ChartingRedux.js +52 -5
- package/src/Redux/ActionsReducers/NotesRedux.d.ts +39 -0
- package/src/Redux/ActionsReducers/NotesRedux.js +88 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +10 -10
- package/src/Redux/ActionsReducers/SystemRedux.js +23 -22
- package/src/Redux/Store/AdaptableStore.js +19 -11
- package/src/Strategy/ChartingModule.d.ts +5 -2
- package/src/Strategy/ChartingModule.js +28 -7
- package/src/Strategy/ColumnInfoModule.d.ts +11 -0
- package/src/Strategy/ColumnInfoModule.js +47 -0
- package/src/Strategy/DataSetModule.js +1 -0
- package/src/Strategy/FilterModule.js +5 -0
- package/src/Strategy/GridInfoModule.js +13 -82
- package/src/Strategy/Interface/IModule.d.ts +2 -0
- package/src/Strategy/{CommentsModule.d.ts → NotesModule.d.ts} +6 -6
- package/src/Strategy/{CommentsModule.js → NotesModule.js} +41 -41
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +20 -18
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +6 -3
- package/src/Utilities/Constants/ModuleConstants.js +8 -5
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +2 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +36 -10
- package/src/Utilities/Extensions/ObjectExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/ObjectExtensions.js +5 -1
- package/src/Utilities/ObjectFactory.d.ts +2 -1
- package/src/Utilities/ObjectFactory.js +10 -2
- package/src/Utilities/Services/Interface/IEntitlementService.d.ts +4 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -2
- package/src/Utilities/Services/QueryLanguageService.js +1 -6
- package/src/Utilities/Services/ValidationService.js +15 -5
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableViewFactory.js +5 -3
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +20 -4
- package/src/View/Alert/Wizard/AlertWizard.js +14 -7
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +2 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +25 -46
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +8 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +19 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +2 -0
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +44 -3
- package/src/View/CalculatedColumn/utils.d.ts +2 -0
- package/src/View/CalculatedColumn/utils.js +14 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.d.ts +6 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +47 -0
- package/src/View/Charting/ChartingWizard/{PreviewChartSection.d.ts → AgChargingWizard/PreviewChartSection.d.ts} +1 -1
- package/src/View/Charting/ChartingWizard/{PreviewChartSection.js → AgChargingWizard/PreviewChartSection.js} +2 -2
- package/src/View/Charting/ChartingWizard/{SettingsSection.d.ts → AgChargingWizard/SettingsSection.d.ts} +1 -1
- package/src/View/Charting/ChartingWizard/{SettingsSection.js → AgChargingWizard/SettingsSection.js} +4 -4
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/AgChargingWizard/index.js +4 -0
- package/src/View/Charting/ChartingWizard/ChartingWizard.d.ts +4 -3
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +12 -39
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.d.ts +6 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +59 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.d.ts +9 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +25 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/index.js +4 -0
- package/src/View/Charting/ChartingWizard/index.d.ts +1 -0
- package/src/View/Charting/ChartingWizard/index.js +4 -0
- package/src/View/Charting/DeleteChartButton.d.ts +2 -1
- package/src/View/Charting/DeleteChartButton.js +4 -2
- package/src/View/Charting/EditChartButton.d.ts +2 -1
- package/src/View/Charting/ShowChartButton.js +47 -16
- package/src/View/Charting/{useChartState.d.ts → useAgChartState.d.ts} +1 -1
- package/src/View/Charting/{useChartState.js → useAgChartState.js} +7 -7
- package/src/View/Charting/useChartingElements.d.ts +2 -1
- package/src/View/Charting/useChartingElements.js +36 -26
- package/src/View/Charting/useExternalChartState.d.ts +7 -0
- package/src/View/Charting/useExternalChartState.js +56 -0
- package/src/View/ColumnInfo/ColumnInfo.d.ts +5 -0
- package/src/View/ColumnInfo/ColumnInfo.js +185 -0
- package/src/View/ColumnInfo/ColumnInfoPopup.d.ts +3 -0
- package/src/View/ColumnInfo/ColumnInfoPopup.js +15 -0
- package/src/View/Components/AdaptableIconSelector/index.d.ts +1 -1
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +6 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -0
- package/src/View/GridInfo/{AdaptableObjectsSummary.js → GridInfoPopup/AdaptableObjectsSummary.js} +2 -2
- package/src/View/GridInfo/{AdaptableOptionsComponent.d.ts → GridInfoPopup/AdaptableOptionsComponent.d.ts} +1 -1
- package/src/View/GridInfo/{AdaptableOptionsComponent.js → GridInfoPopup/AdaptableOptionsComponent.js} +6 -6
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.d.ts +6 -0
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +82 -0
- package/src/View/GridInfo/GridInfoPopup/index.d.ts +1 -0
- package/src/View/GridInfo/GridInfoPopup/index.js +4 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
- package/src/View/Notes/NotesListing.d.ts +2 -0
- package/src/View/{Comments/CommentListing.js → Notes/NotesListing.js} +13 -14
- package/src/View/Notes/NotesPopup.d.ts +2 -0
- package/src/View/{Comments/CommentPopup.js → Notes/NotesPopup.js} +21 -21
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +6 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +14 -0
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +28 -16
- package/src/agGrid/agGridHelper.d.ts +3 -3
- package/src/agGrid/agGridHelper.js +56 -30
- package/src/agGrid/agGridMenuHelper.js +4 -2
- package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +15 -6
- package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
- package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +5 -5
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.d.ts +2 -0
- package/src/components/ExpressionEditor/editorButtonsQuantileAggregatedScalar.js +25 -0
- package/src/components/ExpressionEditor/index.d.ts +1 -1
- package/src/components/ExpressionEditor/index.js +2 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/note.d.ts +3 -0
- package/src/components/icons/note.js +7 -0
- package/src/metamodel/adaptable.metamodel.d.ts +72 -59
- 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/AdaptableOptions/CommentsOptions.d.ts +0 -23
- package/src/Api/CommentsApi.d.ts +0 -50
- package/src/Api/Implementation/CommentsApiImpl.d.ts +0 -20
- package/src/Api/Implementation/CommentsApiImpl.js +0 -58
- package/src/PredefinedConfig/CommentsState.d.ts +0 -59
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +0 -39
- package/src/Redux/ActionsReducers/CommentsRedux.js +0 -92
- package/src/View/Comments/CommentListing.d.ts +0 -2
- package/src/View/Comments/CommentPopup.d.ts +0 -2
- package/src/View/GridInfo/ColumnInfoComponent.d.ts +0 -20
- package/src/View/GridInfo/ColumnInfoComponent.js +0 -176
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -16
- package/src/View/GridInfo/GridInfoPopup.js +0 -117
- package/src/View/GridInfo/GridOptionsComponent.d.ts +0 -16
- package/src/View/GridInfo/GridOptionsComponent.js +0 -36
- /package/src/AdaptableOptions/{CommentsOptions.js → NotesOptions.js} +0 -0
- /package/src/Api/{CommentsApi.js → NotesAPi.js} +0 -0
- /package/src/PredefinedConfig/{CommentsState.js → NotesState.js} +0 -0
- /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
package/src/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type { ExportOptions, SystemExportDestination, SystemExportDestinations,
|
|
|
21
21
|
export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOptions/DataSetOptions';
|
|
22
22
|
export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
|
|
23
23
|
export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
|
|
24
|
-
export type {
|
|
24
|
+
export type { NotesOptions, NotableCellContext } from './AdaptableOptions/NotesOptions';
|
|
25
25
|
export type { GroupingOptions, UnbalancedGroupsKeyContext, } from './AdaptableOptions/GroupingOptions';
|
|
26
26
|
export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
|
|
27
27
|
export type { Glue42WebPluginOptions } from './AdaptableOptions/Glue42WebPluginOptions';
|
|
@@ -41,7 +41,7 @@ export type { AggregationColumns, WeightedAverageAggregation, } from './Predefin
|
|
|
41
41
|
export type { AccessLevel, Entitlement } from './PredefinedConfig/Common/Entitlement';
|
|
42
42
|
export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterActionOnDataChange';
|
|
43
43
|
export type { ConfigState } from './PredefinedConfig/ConfigState';
|
|
44
|
-
export type {
|
|
44
|
+
export type { AdaptableNote, NotesState as NoteState, AdaptableNotes, NoteGridCell, } from './PredefinedConfig/NotesState';
|
|
45
45
|
export type { TeamSharingOptions, SharedEntitiesContext, } from './AdaptableOptions/TeamSharingOptions';
|
|
46
46
|
export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
|
|
47
47
|
export type { UserInterfaceOptions, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, CustomIcon, } from './AdaptableOptions/UserInterfaceOptions';
|
|
@@ -64,7 +64,7 @@ export type { ColumnApi } from './Api/ColumnApi';
|
|
|
64
64
|
export type { ActionColumnApi } from './Api/ActionColumnApi';
|
|
65
65
|
export type { ActionRowApi } from './Api/ActionRowApi';
|
|
66
66
|
export type { ChartingApi } from './Api/ChartingApi';
|
|
67
|
-
export type {
|
|
67
|
+
export type { NotesApi } from './Api/NotesAPi';
|
|
68
68
|
export type { ConfigApi } from './Api/ConfigApi';
|
|
69
69
|
export type { CustomSortApi } from './Api/CustomSortApi';
|
|
70
70
|
export type { DashboardApi } from './Api/DashboardApi';
|
|
@@ -140,7 +140,7 @@ export type { CellSummmary, CellSummaryOperation, CellSummaryOperationContext, }
|
|
|
140
140
|
export type { FlashingCellDefinition, FlashingCellState, SystemFlashingCellPredicateId, SystemFlashingCellPredicateIds, } from './PredefinedConfig/FlashingCellState';
|
|
141
141
|
export type { AdaptableAlert, AdaptableAlertType, AdaptableGenericAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert, AdaptableAlertBase, } from './PredefinedConfig/Common/AdaptableAlert';
|
|
142
142
|
export type { AdaptableFlashingCell } from './PredefinedConfig/Common/AdaptableFlashingCell';
|
|
143
|
-
export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnDataType, } from './PredefinedConfig/Common/AdaptableColumn';
|
|
143
|
+
export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnDataType, AdaptableColumnGroup, } from './PredefinedConfig/Common/AdaptableColumn';
|
|
144
144
|
export type { AdaptableComparerFunction } from './PredefinedConfig/Common/AdaptableComparerFunction';
|
|
145
145
|
export type { SystemStatusMessageInfo } from './PredefinedConfig/Common/SystemStatusMessageInfo';
|
|
146
146
|
export type { AlternativeModuleName } from './PredefinedConfig/Common/AlternativeModuleName';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "16.0.
|
|
1
|
+
declare const _default: "16.0.10-canary.0";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '16.0.
|
|
3
|
+
exports.default = '16.0.10-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseContext } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Options for managing AdapTable Comments
|
|
4
|
-
*/
|
|
5
|
-
export interface CommentOptions<TData = any> {
|
|
6
|
-
/**
|
|
7
|
-
* Whether a cell can be commented on
|
|
8
|
-
*/
|
|
9
|
-
isCellCommentable?: (context: CommmentableCellContext) => boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Context used when determining if a Comment can be added to a Cell
|
|
13
|
-
*/
|
|
14
|
-
export interface CommmentableCellContext extends BaseContext {
|
|
15
|
-
/**
|
|
16
|
-
* Value in Primary Key Column
|
|
17
|
-
*/
|
|
18
|
-
primaryKeyValue: string;
|
|
19
|
-
/**
|
|
20
|
-
* Column where Comment will be displayed
|
|
21
|
-
*/
|
|
22
|
-
columnId: string;
|
|
23
|
-
}
|
package/src/Api/CommentsApi.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { AdaptableComment, AdaptableComments, CommentGridCell, CommentsState } from '../PredefinedConfig/CommentsState';
|
|
2
|
-
/**
|
|
3
|
-
* Provides run-time access to Comments Module and related State
|
|
4
|
-
*/
|
|
5
|
-
export interface CommentsApi {
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param comment
|
|
9
|
-
* @param primaryKeyValue
|
|
10
|
-
* @param columnId
|
|
11
|
-
*/
|
|
12
|
-
addComment(comment: string, primaryKeyValue: any, columnId: string): void;
|
|
13
|
-
editComment(adaptableComment: AdaptableComment): void;
|
|
14
|
-
updateCommentText(comment: string, adaptableComment: AdaptableComment): void;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @param comment
|
|
18
|
-
*/
|
|
19
|
-
deleteComment(adptableComment: AdaptableComment): void;
|
|
20
|
-
getCommentsState(): CommentsState;
|
|
21
|
-
getAllComments(): AdaptableComments;
|
|
22
|
-
/**
|
|
23
|
-
* Gets all comments for a cell
|
|
24
|
-
* @param commentGridCell comment position
|
|
25
|
-
*/
|
|
26
|
-
getCellComments(commentGridCell: CommentGridCell): AdaptableComment[];
|
|
27
|
-
/**
|
|
28
|
-
* Returns a comment by uuid
|
|
29
|
-
* @param uuid comment uuid
|
|
30
|
-
*/
|
|
31
|
-
getCommentByUuid(uuid: string): AdaptableComment | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Gets all comments for a cell
|
|
34
|
-
* @param commentGridCell comment position
|
|
35
|
-
* @param editMode whether to show the comment in edit mode
|
|
36
|
-
*/
|
|
37
|
-
showComment(commentGridCell: CommentGridCell, editMode?: boolean): void;
|
|
38
|
-
/**
|
|
39
|
-
* Hides the comment popup
|
|
40
|
-
*/
|
|
41
|
-
hideComment(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the comment position of the currently open comment popup
|
|
44
|
-
*/
|
|
45
|
-
getOpenCommentGridCell(): CommentGridCell | null;
|
|
46
|
-
/**
|
|
47
|
-
* Gets the comment edit mode
|
|
48
|
-
*/
|
|
49
|
-
getCommentPopupEditMode(): boolean;
|
|
50
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ApiBase } from './ApiBase';
|
|
2
|
-
import { CommentsApi } from '../CommentsApi';
|
|
3
|
-
import { AdaptableComment, AdaptableComments, CommentGridCell, CommentsState } from '../../PredefinedConfig/CommentsState';
|
|
4
|
-
export declare class CommentsApiImpl extends ApiBase implements CommentsApi {
|
|
5
|
-
addComment(comment: string, primaryKeyValue: any, columnId: string): void;
|
|
6
|
-
editComment(adaptableComment: AdaptableComment): void;
|
|
7
|
-
updateCommentText(comment: string, adaptableComment: AdaptableComment): void;
|
|
8
|
-
deleteComment(comment: AdaptableComment): void;
|
|
9
|
-
getCommentsState(): CommentsState;
|
|
10
|
-
getAllComments(): AdaptableComments;
|
|
11
|
-
getCellComments(config: {
|
|
12
|
-
PrimaryKeyValue: string | number;
|
|
13
|
-
ColumnId: string;
|
|
14
|
-
}): AdaptableComments;
|
|
15
|
-
getCommentByUuid(uuid: string): AdaptableComment | undefined;
|
|
16
|
-
showComment(commentGridCell: CommentGridCell, editMode?: boolean): void;
|
|
17
|
-
hideComment(): void;
|
|
18
|
-
getOpenCommentGridCell(): CommentGridCell | undefined;
|
|
19
|
-
getCommentPopupEditMode(): boolean;
|
|
20
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommentsApiImpl = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ApiBase_1 = require("./ApiBase");
|
|
6
|
-
const CommentsRedux = tslib_1.__importStar(require("./../../Redux/ActionsReducers/CommentsRedux"));
|
|
7
|
-
const SystemRedux = tslib_1.__importStar(require("./../../Redux/ActionsReducers/SystemRedux"));
|
|
8
|
-
class CommentsApiImpl extends ApiBase_1.ApiBase {
|
|
9
|
-
addComment(comment, primaryKeyValue, columnId) {
|
|
10
|
-
const adaptableComment = {
|
|
11
|
-
Value: comment,
|
|
12
|
-
PrimaryKeyValue: primaryKeyValue,
|
|
13
|
-
ColumnId: columnId,
|
|
14
|
-
AdaptableId: this.adaptable.api.optionsApi.getAdaptableId(),
|
|
15
|
-
Author: {
|
|
16
|
-
UserName: this.adaptable.api.optionsApi.getUserName(),
|
|
17
|
-
},
|
|
18
|
-
Timestamp: Date.now(),
|
|
19
|
-
};
|
|
20
|
-
this.dispatchAction(CommentsRedux.CommentsAdd(adaptableComment));
|
|
21
|
-
}
|
|
22
|
-
editComment(adaptableComment) {
|
|
23
|
-
adaptableComment.Timestamp = Date.now();
|
|
24
|
-
this.dispatchAction(CommentsRedux.CommentsEdit(adaptableComment));
|
|
25
|
-
}
|
|
26
|
-
updateCommentText(comment, adaptableComment) {
|
|
27
|
-
adaptableComment.Value = comment;
|
|
28
|
-
this.editComment(adaptableComment);
|
|
29
|
-
}
|
|
30
|
-
deleteComment(comment) {
|
|
31
|
-
this.dispatchAction(CommentsRedux.CommentsDelete(comment));
|
|
32
|
-
}
|
|
33
|
-
getCommentsState() {
|
|
34
|
-
return this.getAdaptableState().Comments;
|
|
35
|
-
}
|
|
36
|
-
getAllComments() {
|
|
37
|
-
return this.getCommentsState().Comments;
|
|
38
|
-
}
|
|
39
|
-
getCellComments(config) {
|
|
40
|
-
return CommentsRedux.GetCommentsSelector(this.getAdaptableState().Comments, config);
|
|
41
|
-
}
|
|
42
|
-
getCommentByUuid(uuid) {
|
|
43
|
-
return this.getAllComments().find((comment) => comment.Uuid === uuid);
|
|
44
|
-
}
|
|
45
|
-
showComment(commentGridCell, editMode) {
|
|
46
|
-
this.dispatchAction(SystemRedux.SystemCommentsShow(commentGridCell, editMode));
|
|
47
|
-
}
|
|
48
|
-
hideComment() {
|
|
49
|
-
this.dispatchAction(SystemRedux.SystemCommentsHide());
|
|
50
|
-
}
|
|
51
|
-
getOpenCommentGridCell() {
|
|
52
|
-
return SystemRedux.SystemCommentsSelector(this.getAdaptableState().System);
|
|
53
|
-
}
|
|
54
|
-
getCommentPopupEditMode() {
|
|
55
|
-
return SystemRedux.SystemCommentsEditModeSelector(this.getAdaptableState().System);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.CommentsApiImpl = CommentsApiImpl;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { AdaptableObject } from '../types';
|
|
2
|
-
import { ConfigState } from './ConfigState';
|
|
3
|
-
/**
|
|
4
|
-
* Comment that can be applied to a Cell in AdapTable
|
|
5
|
-
*/
|
|
6
|
-
export interface AdaptableComment extends AdaptableObject {
|
|
7
|
-
/**
|
|
8
|
-
* When Comment was made
|
|
9
|
-
*/
|
|
10
|
-
Timestamp: number;
|
|
11
|
-
/**
|
|
12
|
-
* Value of the Comment
|
|
13
|
-
*/
|
|
14
|
-
Value: string;
|
|
15
|
-
/**
|
|
16
|
-
* Author of the Comment
|
|
17
|
-
*/
|
|
18
|
-
Author: {
|
|
19
|
-
UserName: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Value in Grid's Primary Key Column
|
|
23
|
-
*/
|
|
24
|
-
PrimaryKeyValue: any;
|
|
25
|
-
/**
|
|
26
|
-
* Id of Column containing the Comment
|
|
27
|
-
*/
|
|
28
|
-
ColumnId: string;
|
|
29
|
-
/**
|
|
30
|
-
* Id of this AdapTable instance
|
|
31
|
-
*/
|
|
32
|
-
AdaptableId: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Collection of Cell Comments
|
|
36
|
-
*/
|
|
37
|
-
export declare type AdaptableComments = AdaptableComment[];
|
|
38
|
-
/**
|
|
39
|
-
* Predefined Configuration for Comments Module
|
|
40
|
-
*/
|
|
41
|
-
export interface CommentsState extends ConfigState {
|
|
42
|
-
/**
|
|
43
|
-
* Collection of AdapTable Comments
|
|
44
|
-
*/
|
|
45
|
-
Comments?: AdaptableComments;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Cell that contains a Comment
|
|
49
|
-
*/
|
|
50
|
-
export declare type CommentGridCell = {
|
|
51
|
-
/**
|
|
52
|
-
* Value in Primary Key Column
|
|
53
|
-
*/
|
|
54
|
-
PrimaryKeyValue: string | number;
|
|
55
|
-
/**
|
|
56
|
-
* Id of Column containing the Comment
|
|
57
|
-
*/
|
|
58
|
-
ColumnId: string;
|
|
59
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { AdaptableComment, CommentsState } from '../../PredefinedConfig/CommentsState';
|
|
2
|
-
import * as Redux from 'redux';
|
|
3
|
-
/**
|
|
4
|
-
* @ReduxAction A Comment has been added
|
|
5
|
-
*/
|
|
6
|
-
export declare const COMMENTS_ADD = "COMMENTS_ADD";
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction A Comment has been edited
|
|
9
|
-
*/
|
|
10
|
-
export declare const COMMENTS_EDIT = "COMMENTS_EDIT";
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Comment has been deleted
|
|
13
|
-
*/
|
|
14
|
-
export declare const COMMENTS_DELETE = "COMMENTS_DELETE";
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction Comments Module is ready
|
|
17
|
-
*/
|
|
18
|
-
export declare const COMMENTS_READY = "COMMENTS_READY";
|
|
19
|
-
export interface AdaptableCommentAction extends Redux.Action {
|
|
20
|
-
adaptableComment: AdaptableComment;
|
|
21
|
-
}
|
|
22
|
-
export interface AdaptableCommentAddAction extends AdaptableCommentAction {
|
|
23
|
-
}
|
|
24
|
-
export interface AdaptableCommentEditAction extends AdaptableCommentAction {
|
|
25
|
-
}
|
|
26
|
-
export interface AdaptableCommentDeleteAction extends AdaptableCommentAction {
|
|
27
|
-
}
|
|
28
|
-
export interface CommentsReadyAction extends Redux.Action {
|
|
29
|
-
commentsState: CommentsState;
|
|
30
|
-
}
|
|
31
|
-
export declare const CommentsAdd: (adaptableComment: AdaptableComment) => AdaptableCommentAddAction;
|
|
32
|
-
export declare const CommentsEdit: (adaptableComment: AdaptableComment) => AdaptableCommentEditAction;
|
|
33
|
-
export declare const CommentsDelete: (adaptableComment: AdaptableComment) => AdaptableCommentDeleteAction;
|
|
34
|
-
export declare const CommentsReady: (commentsState: CommentsState) => CommentsReadyAction;
|
|
35
|
-
export declare const GetCommentsSelector: (state: CommentsState, config?: {
|
|
36
|
-
PrimaryKeyValue: string | number;
|
|
37
|
-
ColumnId: string;
|
|
38
|
-
}) => import("../../PredefinedConfig/CommentsState").AdaptableComments;
|
|
39
|
-
export declare const CommentsReducer: Redux.Reducer<CommentsState>;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommentsReducer = exports.GetCommentsSelector = exports.CommentsReady = exports.CommentsDelete = exports.CommentsEdit = exports.CommentsAdd = exports.COMMENTS_READY = exports.COMMENTS_DELETE = exports.COMMENTS_EDIT = exports.COMMENTS_ADD = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
|
|
6
|
-
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
|
-
/**
|
|
8
|
-
* @ReduxAction A Comment has been added
|
|
9
|
-
*/
|
|
10
|
-
exports.COMMENTS_ADD = 'COMMENTS_ADD';
|
|
11
|
-
/**
|
|
12
|
-
* @ReduxAction A Comment has been edited
|
|
13
|
-
*/
|
|
14
|
-
exports.COMMENTS_EDIT = 'COMMENTS_EDIT';
|
|
15
|
-
/**
|
|
16
|
-
* @ReduxAction A Comment has been deleted
|
|
17
|
-
*/
|
|
18
|
-
exports.COMMENTS_DELETE = 'COMMENTS_DELETE';
|
|
19
|
-
/**
|
|
20
|
-
* @ReduxAction Comments Module is ready
|
|
21
|
-
*/
|
|
22
|
-
exports.COMMENTS_READY = 'COMMENTS_READY';
|
|
23
|
-
const CommentsAdd = (adaptableComment) => ({
|
|
24
|
-
type: exports.COMMENTS_ADD,
|
|
25
|
-
adaptableComment,
|
|
26
|
-
});
|
|
27
|
-
exports.CommentsAdd = CommentsAdd;
|
|
28
|
-
const CommentsEdit = (adaptableComment) => ({
|
|
29
|
-
type: exports.COMMENTS_EDIT,
|
|
30
|
-
adaptableComment,
|
|
31
|
-
});
|
|
32
|
-
exports.CommentsEdit = CommentsEdit;
|
|
33
|
-
const CommentsDelete = (adaptableComment) => ({
|
|
34
|
-
type: exports.COMMENTS_DELETE,
|
|
35
|
-
adaptableComment,
|
|
36
|
-
});
|
|
37
|
-
exports.CommentsDelete = CommentsDelete;
|
|
38
|
-
const CommentsReady = (commentsState) => ({
|
|
39
|
-
type: exports.COMMENTS_READY,
|
|
40
|
-
commentsState,
|
|
41
|
-
});
|
|
42
|
-
exports.CommentsReady = CommentsReady;
|
|
43
|
-
const GetCommentsSelector = (state, config) => {
|
|
44
|
-
var _a, _b;
|
|
45
|
-
if (!config) {
|
|
46
|
-
return (_a = state === null || state === void 0 ? void 0 : state.Comments) !== null && _a !== void 0 ? _a : [];
|
|
47
|
-
}
|
|
48
|
-
return ((_b = state === null || state === void 0 ? void 0 : state.Comments) !== null && _b !== void 0 ? _b : []).filter((comment) => {
|
|
49
|
-
if (comment.PrimaryKeyValue === config.PrimaryKeyValue &&
|
|
50
|
-
comment.ColumnId === config.ColumnId) {
|
|
51
|
-
// happy check
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
// Primary keys retreived from the grid dom are always strings, so we must also consider them strings
|
|
55
|
-
if ((typeof config.PrimaryKeyValue === 'number' && typeof comment.PrimaryKeyValue === 'string') ||
|
|
56
|
-
(typeof config.PrimaryKeyValue === 'string' && typeof comment.PrimaryKeyValue === 'number')) {
|
|
57
|
-
return (comment.PrimaryKeyValue.toString() === config.PrimaryKeyValue.toString() &&
|
|
58
|
-
comment.ColumnId === config.ColumnId);
|
|
59
|
-
}
|
|
60
|
-
return false;
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
exports.GetCommentsSelector = GetCommentsSelector;
|
|
64
|
-
const initialState = {
|
|
65
|
-
Comments: GeneralConstants_1.EMPTY_ARRAY,
|
|
66
|
-
};
|
|
67
|
-
const CommentsReducer = (state = initialState, action) => {
|
|
68
|
-
let adaptableComments;
|
|
69
|
-
switch (action.type) {
|
|
70
|
-
case exports.COMMENTS_ADD: {
|
|
71
|
-
const actionAdaptableComment = action
|
|
72
|
-
.adaptableComment;
|
|
73
|
-
AdaptableHelper_1.default.addUuidAndSource(actionAdaptableComment);
|
|
74
|
-
adaptableComments = [].concat(state.Comments);
|
|
75
|
-
adaptableComments.push(actionAdaptableComment);
|
|
76
|
-
return Object.assign(Object.assign({}, state), { Comments: adaptableComments });
|
|
77
|
-
}
|
|
78
|
-
case exports.COMMENTS_EDIT: {
|
|
79
|
-
const actionAdaptableComment = action
|
|
80
|
-
.adaptableComment;
|
|
81
|
-
return Object.assign(Object.assign({}, state), { Comments: state.Comments.map((abObject) => abObject.Uuid === actionAdaptableComment.Uuid ? actionAdaptableComment : abObject) });
|
|
82
|
-
}
|
|
83
|
-
case exports.COMMENTS_DELETE: {
|
|
84
|
-
const actionAdaptableComment = action
|
|
85
|
-
.adaptableComment;
|
|
86
|
-
return Object.assign(Object.assign({}, state), { Comments: state.Comments.filter((abObject) => abObject.Uuid !== actionAdaptableComment.Uuid) });
|
|
87
|
-
}
|
|
88
|
-
default:
|
|
89
|
-
return state;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
exports.CommentsReducer = CommentsReducer;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
|
|
3
|
-
import { AdaptableApi } from '../../Api/AdaptableApi';
|
|
4
|
-
interface ColumnInfoProps extends React.ClassAttributes<ColumnInfoComponent> {
|
|
5
|
-
api: AdaptableApi;
|
|
6
|
-
teamSharingActivated: boolean;
|
|
7
|
-
column: AdaptableColumn | undefined;
|
|
8
|
-
}
|
|
9
|
-
export interface ColumnInfoState {
|
|
10
|
-
SelectedColumn: AdaptableColumn | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare class ColumnInfoComponent extends React.Component<ColumnInfoProps, ColumnInfoState> {
|
|
13
|
-
constructor(props: ColumnInfoProps);
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
-
private onColumnSelectedChanged;
|
|
16
|
-
private isModuleAvailable;
|
|
17
|
-
private isModuleReadOnly;
|
|
18
|
-
private getAccessLevel;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ColumnInfoComponent = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
|
-
const CustomSortSummary_1 = require("../CustomSort/CustomSortSummary");
|
|
9
|
-
const FilterSummary_1 = require("../Filter/FilterSummary");
|
|
10
|
-
const PlusMinusSummary_1 = require("../PlusMinus/PlusMinusSummary");
|
|
11
|
-
const FormatColumnSummary_1 = require("../FormatColumn/FormatColumnSummary");
|
|
12
|
-
const CalculatedColumnSummary_1 = require("../CalculatedColumn/CalculatedColumnSummary");
|
|
13
|
-
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
14
|
-
const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
|
|
15
|
-
const ColumnSelector_1 = require("../Components/Selectors/ColumnSelector");
|
|
16
|
-
const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
|
|
17
|
-
const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
|
|
18
|
-
const FreeTextColumnSummary_1 = require("../FreeTextColumn/FreeTextColumnSummary");
|
|
19
|
-
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
20
|
-
const InfiniteTable_1 = require("../../components/InfiniteTable");
|
|
21
|
-
class ColumnInfoComponent extends React.Component {
|
|
22
|
-
constructor(props) {
|
|
23
|
-
super(props);
|
|
24
|
-
this.state = { SelectedColumn: props.column };
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
let colItems = [
|
|
28
|
-
{ Content: 'Module', Size: 3 },
|
|
29
|
-
{ Content: 'Summary', Size: 7 },
|
|
30
|
-
{ Content: '', Size: 2 },
|
|
31
|
-
];
|
|
32
|
-
let selectedColumnId = this.state.SelectedColumn
|
|
33
|
-
? this.state.SelectedColumn.columnId
|
|
34
|
-
: null;
|
|
35
|
-
const keyValuePairs = [
|
|
36
|
-
{
|
|
37
|
-
Key: 'Column Id',
|
|
38
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.columnId : null,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
Key: 'Header',
|
|
42
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.friendlyName : null,
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
Key: 'Aggregatable',
|
|
46
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.aggregatable : null,
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
Key: 'DataType',
|
|
50
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.dataType : null,
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
Key: 'Groupable',
|
|
54
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.groupable : null,
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
Key: 'Filterable',
|
|
58
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.filterable : null,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
Key: 'Hideable',
|
|
62
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.hideable : null,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
Key: 'Editable',
|
|
66
|
-
Value: this.state.SelectedColumn ? !this.state.SelectedColumn.IsReadOnly : null,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
Key: 'Moveable',
|
|
70
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.moveable : null,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
Key: 'Pivotable',
|
|
74
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.pivotable : null,
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
Key: 'Queryable',
|
|
78
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.queryable : null,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
Key: 'Sortable',
|
|
82
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.sortable : null,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
Key: 'Visible',
|
|
86
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.visible : null,
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
Key: 'Grouped',
|
|
90
|
-
Value: this.state.SelectedColumn ? this.state.SelectedColumn.isGrouped : null,
|
|
91
|
-
},
|
|
92
|
-
]
|
|
93
|
-
.map((keyValuePair) => {
|
|
94
|
-
return {
|
|
95
|
-
Key: keyValuePair.Key,
|
|
96
|
-
Value: keyValuePair.Value === true ? 'Yes' : keyValuePair.Value,
|
|
97
|
-
};
|
|
98
|
-
})
|
|
99
|
-
.filter((x) => x.Value);
|
|
100
|
-
const columnsMap = {
|
|
101
|
-
Key: { field: 'Key', header: 'Property', defaultFlex: 1 },
|
|
102
|
-
Value: { field: 'Value', header: 'Value', defaultFlex: 3 },
|
|
103
|
-
};
|
|
104
|
-
let moduleService = this.props.api.internalApi.getModuleService();
|
|
105
|
-
let summaries = [];
|
|
106
|
-
if (this.state.SelectedColumn) {
|
|
107
|
-
if (this.isModuleAvailable(ModuleConstants.CustomSortModuleId)) {
|
|
108
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.CustomSortModuleId, className: this.isModuleReadOnly(ModuleConstants.CustomSortModuleId)
|
|
109
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
110
|
-
: '' },
|
|
111
|
-
React.createElement(CustomSortSummary_1.CustomSortSummary, { key: ModuleConstants.CustomSortModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.CustomSortModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.CustomSortModuleId) })));
|
|
112
|
-
}
|
|
113
|
-
if (this.isModuleAvailable(ModuleConstants.FilterModuleId)) {
|
|
114
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.FilterModuleId, className: this.isModuleReadOnly(ModuleConstants.FilterModuleId)
|
|
115
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
116
|
-
: '' },
|
|
117
|
-
React.createElement(FilterSummary_1.FilterSummary, { key: ModuleConstants.FilterModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FilterModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FilterModuleId) })));
|
|
118
|
-
}
|
|
119
|
-
if (this.isModuleAvailable(ModuleConstants.FormatColumnModuleId)) {
|
|
120
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.FormatColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.FormatColumnModuleId)
|
|
121
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
122
|
-
: '' },
|
|
123
|
-
React.createElement(FormatColumnSummary_1.FormatColumnSummary, { key: ModuleConstants.FormatColumnModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FormatColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FormatColumnModuleId) })));
|
|
124
|
-
}
|
|
125
|
-
if (this.isModuleAvailable(ModuleConstants.FreeTextColumnModuleId)) {
|
|
126
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.FreeTextColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.FreeTextColumnModuleId)
|
|
127
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
128
|
-
: '' },
|
|
129
|
-
React.createElement(FreeTextColumnSummary_1.FreeTextColumnSummary, { key: ModuleConstants.FreeTextColumnModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.FreeTextColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.FreeTextColumnModuleId) })));
|
|
130
|
-
}
|
|
131
|
-
if (this.isModuleAvailable(ModuleConstants.PlusMinusModuleId) &&
|
|
132
|
-
this.state.SelectedColumn.dataType == 'Number') {
|
|
133
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.PlusMinusModuleId, className: this.isModuleReadOnly(ModuleConstants.PlusMinusModuleId)
|
|
134
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
135
|
-
: '' },
|
|
136
|
-
React.createElement(PlusMinusSummary_1.PlusMinusSummary, { key: ModuleConstants.PlusMinusModuleId, summarisedColumn: this.state.SelectedColumn, teamSharingActivated: this.props.teamSharingActivated, accessLevel: this.getAccessLevel(ModuleConstants.PlusMinusModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.PlusMinusModuleId) })));
|
|
137
|
-
}
|
|
138
|
-
if (this.isModuleAvailable(ModuleConstants.CalculatedColumnModuleId) &&
|
|
139
|
-
ArrayExtensions_1.ArrayExtensions.ContainsItem(this.props.api.calculatedColumnApi.getCalculatedColumns().map((cc) => cc.ColumnId), this.state.SelectedColumn.columnId)) {
|
|
140
|
-
summaries.push(React.createElement("div", { key: ModuleConstants.CalculatedColumnModuleId, className: this.isModuleReadOnly(ModuleConstants.CalculatedColumnModuleId)
|
|
141
|
-
? GeneralConstants.READ_ONLY_STYLE
|
|
142
|
-
: '' },
|
|
143
|
-
React.createElement(CalculatedColumnSummary_1.CalculatedColumnSummary, { key: ModuleConstants.CalculatedColumnModuleId,
|
|
144
|
-
// @ts-ignore //TODO fix this
|
|
145
|
-
summarisedColumn: this.state.SelectedColumn, accessLevel: this.getAccessLevel(ModuleConstants.CalculatedColumnModuleId), api: this.props.api, moduleInfo: moduleService.getModuleInfoByModule(ModuleConstants.CalculatedColumnModuleId) })));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return (React.createElement(Panel_1.default, { flex: 1, header: "Column Info", margin: 2, "data-name": "column-component" },
|
|
149
|
-
React.createElement(rebass_1.Flex, { height: "100%", flexDirection: "column" },
|
|
150
|
-
React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", marginBottom: 2 },
|
|
151
|
-
React.createElement(rebass_1.Box, { flex: 1, marginLeft: 2 },
|
|
152
|
-
React.createElement(ColumnSelector_1.ColumnSelector, { SelectedColumnIds: [selectedColumnId], ColumnList: this.props.api.columnApi.getColumns(), onColumnChange: (columns) => this.onColumnSelectedChanged(columns), SelectionMode: Enums_1.SelectionMode.Single }))),
|
|
153
|
-
React.createElement(rebass_1.Flex, { flex: 1, style: { overflow: 'auto', width: '100%' } }, this.state.SelectedColumn && (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { style: { width: '100%' }, colItems: colItems, items: summaries }))),
|
|
154
|
-
React.createElement(rebass_1.Box, { flex: 1, mt: 2 }, this.state.SelectedColumn && (React.createElement(InfiniteTable_1.DataSource, { data: keyValuePairs, primaryKey: "Key" },
|
|
155
|
-
React.createElement(InfiniteTable_1.InfiniteTable, { domProps: {
|
|
156
|
-
style: {
|
|
157
|
-
height: '100%',
|
|
158
|
-
},
|
|
159
|
-
}, columns: columnsMap })))))));
|
|
160
|
-
}
|
|
161
|
-
onColumnSelectedChanged(columns) {
|
|
162
|
-
this.setState({ SelectedColumn: columns.length > 0 ? columns[0] : null });
|
|
163
|
-
}
|
|
164
|
-
isModuleAvailable(module) {
|
|
165
|
-
return this.props.api.internalApi.getModuleService().getModuleById(module).isModuleAvailable();
|
|
166
|
-
}
|
|
167
|
-
isModuleReadOnly(module) {
|
|
168
|
-
return this.getAccessLevel(module) == 'ReadOnly';
|
|
169
|
-
}
|
|
170
|
-
getAccessLevel(module) {
|
|
171
|
-
return this.props.api.internalApi
|
|
172
|
-
.getEntitlementService()
|
|
173
|
-
.getEntitlementAccessLevelForModule(module);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
exports.ColumnInfoComponent = ColumnInfoComponent;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
|
|
3
|
-
import { AdaptableColumn } from '../../types';
|
|
4
|
-
import { GridInfoSection } from '../../AdaptableOptions/UserInterfaceOptions';
|
|
5
|
-
interface GridInfoPopupProps extends ModuleViewPopupProps<any> {
|
|
6
|
-
}
|
|
7
|
-
export interface AdaptableGridInfoState {
|
|
8
|
-
ActiveTab: GridInfoSection;
|
|
9
|
-
CurrentColumn: AdaptableColumn | undefined;
|
|
10
|
-
IsBaseOptionsMinimised: boolean;
|
|
11
|
-
IsContainerOptionsMinimised: boolean;
|
|
12
|
-
IsSearchOptionsMinimised: boolean;
|
|
13
|
-
IsLayoutOptionsMinimised: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const GridInfoPopup: (props: GridInfoPopupProps) => JSX.Element;
|
|
16
|
-
export {};
|