@adaptabletools/adaptable 16.0.9 → 16.1.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agGrid.d.ts +4 -0
- package/agGrid.js +4 -0
- package/base.css +16 -14
- package/base.css.map +1 -1
- package/bundle.cjs.js +171 -170
- package/index.css +18 -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/AdaptableFrameworkComponent.d.ts +12 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
- package/src/AdaptableOptions/ChartingOptions.d.ts +48 -3
- package/src/AdaptableOptions/ColumnOptions.d.ts +17 -0
- package/src/AdaptableOptions/DataImportOptions.d.ts +57 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +147 -8
- package/src/AdaptableOptions/MenuOptions.js +75 -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 +8 -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/DataImportApi.d.ts +9 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +4 -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/DataImportApiImpl.d.ts +10 -0
- package/src/Api/Implementation/DataImportApiImpl.js +14 -0
- package/src/Api/Implementation/ExpressionApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +20 -0
- package/src/Api/Implementation/NotesApiImpl.js +58 -0
- package/src/Api/Implementation/OptionsApiImpl.d.ts +3 -2
- package/src/Api/Implementation/OptionsApiImpl.js +5 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +7 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +30 -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/Internal/DataImportInternalApi.d.ts +4 -0
- package/src/Api/Internal/DataImportInternalApi.js +49 -0
- package/src/Api/NotesAPi.d.ts +50 -0
- package/src/Api/NotesAPi.js +2 -0
- package/src/Api/OptionsApi.d.ts +8 -3
- package/src/Api/UserInterfaceApi.d.ts +22 -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 +2 -7
- package/src/PredefinedConfig/Common/Types.d.ts +4 -4
- package/src/PredefinedConfig/Common/Types.js +3 -1
- package/src/PredefinedConfig/NotesState.d.ts +59 -0
- package/src/PredefinedConfig/NotesState.js +2 -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/DataImportModule.d.ts +11 -0
- package/src/Strategy/DataImportModule.js +36 -0
- package/src/Strategy/DataSetModule.js +1 -0
- package/src/Strategy/Fdc3Module.js +3 -2
- 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/LayoutModule.js +1 -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 +9 -3
- package/src/Utilities/Constants/ModuleConstants.js +11 -5
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +3 -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/Helpers/AdaptableHelper.js +2 -0
- package/src/Utilities/Interface/MessagePopups.d.ts +2 -2
- 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/ModuleService.js +2 -0
- 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 +7 -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/ExternalRenderer.d.ts +1 -0
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +4 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +3 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.d.ts +1 -0
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +12 -2
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/DataImport/DataImportPopup.d.ts +6 -0
- package/src/View/DataImport/DataImportPopup.js +32 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +176 -0
- package/src/View/DataImport/DataImportWizard/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +10 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +154 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.d.ts +9 -0
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +24 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +11 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.d.ts +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +23 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +13 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.d.ts +1 -0
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/index.js +4 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +11 -0
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +35 -0
- package/src/View/DataImport/systemFileHandlers.d.ts +3 -0
- package/src/View/DataImport/systemFileHandlers.js +44 -0
- 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/View/Wizard/OnePageAdaptableWizard.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.d.ts +1 -0
- package/src/View/Wizard/OnePageWizards.js +2 -2
- 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 +58 -30
- package/src/agGrid/agGridMenuHelper.d.ts +20 -9
- package/src/agGrid/agGridMenuHelper.js +292 -135
- 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/FileDroppable/index.d.ts +2 -1
- package/src/components/FileDroppable/index.js +8 -7
- package/src/components/icons/import.d.ts +3 -0
- package/src/components/icons/import.js +7 -0
- package/src/components/icons/index.js +4 -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 +243 -61
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.d.ts +2 -2
- package/src/parser/src/index.js +4 -4
- package/src/parser/src/tokenizer.d.ts +1 -1
- package/src/parser/src/tokenizer.js +14 -6
- package/src/parser/src/types.d.ts +2 -2
- package/src/types.d.ts +9 -8
- 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 → DataImportOptions.js} +0 -0
- /package/src/{Api/CommentsApi.js → AdaptableOptions/NotesOptions.js} +0 -0
- /package/src/{PredefinedConfig/CommentsState.js → Api/DataImportApi.js} +0 -0
- /package/src/View/GridInfo/{AdaptableObjectsSummary.d.ts → GridInfoPopup/AdaptableObjectsSummary.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SYSTEM_DISABLE_DELETE_CONFIRMATION = exports.SYSTEM_FILTER_FORM_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_HIDE = exports.SYSTEM_QUICK_FILTER_BAR_SHOW = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_CLEAR_ROW = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROWS_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROWS_ADD = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_ROW_HIGHLIGHT = exports.SYSTEM_ALERT_REMOVE_CELL_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
|
|
4
|
-
exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.
|
|
5
|
-
exports.SystemReducer = exports.
|
|
4
|
+
exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryClearRow = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveRowHighlight = exports.SystemAlertRemoveCellHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowsDelete = exports.SystemHighlightRowDelete = exports.SystemHighlightRowsAdd = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_NOTS_HIDE = exports.SYSTEM_NOTESS_SHOW = exports.SYSTEM_VISUAL_EXPORT_END = exports.SYSTEM_VISUAL_EXPORT_BEGIN = exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = exports.SYSTEM_SET_PREVIOUS_GROUPED_COLUMN_INDEX = exports.SYSTEM_CHARTING_SET_CURRENT_CHART_MODELS = exports.SYSTEM_DATA_SET_SELECT = exports.DASHBOARD_REFRESH = exports.SYSTEM_LAYOUT_SHOW_NOT_ASSOCIATED_OBJECTS = void 0;
|
|
5
|
+
exports.SystemReducer = exports.SystemNotesEditModeSelector = exports.SystemNotesSelector = exports.SystemQuickSearchFloatingVisibilitySelector = exports.SystemPreviousGroupedColumnsSelector = exports.SystemDisableDeleteConfirmationSelector = exports.SystemNoteHide = exports.SystemNotesShow = exports.SystemQuickSearchFloatingVisibility = exports.SystemVisualExportEnd = exports.SystemVisualExportBegin = exports.SystemDisableDeleteConfirmation = exports.SystemSetPreviousGroupedColumnsIndex = exports.SystemChartingCurrentChartModelsSelector = exports.SystemChartingSetCurrentChartModels = exports.SystemDataSetSelect = exports.SystemDashboardRefresh = exports.SystemLayoutShowNotAssociatedObjects = exports.SystemFilterFormHide = exports.SystemQuickFilterBarHide = exports.SystemQuickFilterBarShow = exports.SystemSettingsPanelSet = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = void 0;
|
|
6
6
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
7
7
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
8
8
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
@@ -91,9 +91,9 @@ exports.SYSTEM_SET_QUICK_SEARCH_FLOATING_VISIBILITY = 'SYSTEM_SET_QUICK_SEARCH_F
|
|
|
91
91
|
// Data Export (Report)
|
|
92
92
|
exports.SYSTEM_VISUAL_EXPORT_BEGIN = 'SYSTEM_VISUAL_EXPORT_BEGIN';
|
|
93
93
|
exports.SYSTEM_VISUAL_EXPORT_END = 'SYSTEM_VISUAL_EXPORT_END';
|
|
94
|
-
//
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
94
|
+
// Notes
|
|
95
|
+
exports.SYSTEM_NOTESS_SHOW = 'SYSTEM_NOTES_SHOW';
|
|
96
|
+
exports.SYSTEM_NOTS_HIDE = 'SYSTEM_NOTES_HIDE';
|
|
97
97
|
const SystemHighlightCellAdd = (cellHighlightInfo) => ({
|
|
98
98
|
type: exports.SYSTEM_HIGHLIGHT_CELL_ADD,
|
|
99
99
|
cellHighlightInfo: cellHighlightInfo,
|
|
@@ -365,16 +365,16 @@ const SystemQuickSearchFloatingVisibility = (visible) => ({
|
|
|
365
365
|
visible,
|
|
366
366
|
});
|
|
367
367
|
exports.SystemQuickSearchFloatingVisibility = SystemQuickSearchFloatingVisibility;
|
|
368
|
-
const
|
|
369
|
-
type: exports.
|
|
368
|
+
const SystemNotesShow = (cellPosition, editMode) => ({
|
|
369
|
+
type: exports.SYSTEM_NOTESS_SHOW,
|
|
370
370
|
editMode,
|
|
371
371
|
cellPosition,
|
|
372
372
|
});
|
|
373
|
-
exports.
|
|
374
|
-
const
|
|
375
|
-
type: exports.
|
|
373
|
+
exports.SystemNotesShow = SystemNotesShow;
|
|
374
|
+
const SystemNoteHide = () => ({
|
|
375
|
+
type: exports.SYSTEM_NOTS_HIDE,
|
|
376
376
|
});
|
|
377
|
-
exports.
|
|
377
|
+
exports.SystemNoteHide = SystemNoteHide;
|
|
378
378
|
const SystemDisableDeleteConfirmationSelector = (state) => {
|
|
379
379
|
return state.DisableDeleteConfirmation;
|
|
380
380
|
};
|
|
@@ -388,16 +388,16 @@ const SystemQuickSearchFloatingVisibilitySelector = (state) => {
|
|
|
388
388
|
return (_a = state === null || state === void 0 ? void 0 : state.QuickSearch) === null || _a === void 0 ? void 0 : _a.floatingVisible;
|
|
389
389
|
};
|
|
390
390
|
exports.SystemQuickSearchFloatingVisibilitySelector = SystemQuickSearchFloatingVisibilitySelector;
|
|
391
|
-
const
|
|
391
|
+
const SystemNotesSelector = (state) => {
|
|
392
392
|
var _a;
|
|
393
|
-
return (_a = state === null || state === void 0 ? void 0 : state.
|
|
393
|
+
return (_a = state === null || state === void 0 ? void 0 : state.Notes) === null || _a === void 0 ? void 0 : _a.popupPosition;
|
|
394
394
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
395
|
+
exports.SystemNotesSelector = SystemNotesSelector;
|
|
396
|
+
const SystemNotesEditModeSelector = (state) => {
|
|
397
397
|
var _a;
|
|
398
|
-
return (_a = state === null || state === void 0 ? void 0 : state.
|
|
398
|
+
return (_a = state === null || state === void 0 ? void 0 : state.Notes) === null || _a === void 0 ? void 0 : _a.editMode;
|
|
399
399
|
};
|
|
400
|
-
exports.
|
|
400
|
+
exports.SystemNotesEditModeSelector = SystemNotesEditModeSelector;
|
|
401
401
|
const initialState = {
|
|
402
402
|
AdaptableAlerts: GeneralConstants_1.EMPTY_ARRAY,
|
|
403
403
|
AdaptableFlashingCells: {},
|
|
@@ -435,6 +435,7 @@ const initialState = {
|
|
|
435
435
|
CurrentDataSet: GeneralConstants_1.EMPTY_STRING,
|
|
436
436
|
Charting: {
|
|
437
437
|
currentChartModels: [],
|
|
438
|
+
externalChartingDefinitions: [],
|
|
438
439
|
},
|
|
439
440
|
Layout: {
|
|
440
441
|
previousGroupedColumns: {},
|
|
@@ -785,15 +786,15 @@ const SystemReducer = (state = initialState, action) => {
|
|
|
785
786
|
const typedAction = action;
|
|
786
787
|
return Object.assign(Object.assign({}, state), { QuickSearch: Object.assign(Object.assign({}, state.QuickSearch), { floatingVisible: typedAction.visible }) });
|
|
787
788
|
}
|
|
788
|
-
case exports.
|
|
789
|
+
case exports.SYSTEM_NOTESS_SHOW: {
|
|
789
790
|
const typedAction = action;
|
|
790
|
-
return Object.assign(Object.assign({}, state), {
|
|
791
|
+
return Object.assign(Object.assign({}, state), { Notes: {
|
|
791
792
|
editMode: typedAction.editMode,
|
|
792
|
-
popupPosition: typedAction.cellPosition
|
|
793
|
+
popupPosition: typedAction.cellPosition,
|
|
793
794
|
} });
|
|
794
795
|
}
|
|
795
|
-
case exports.
|
|
796
|
-
return Object.assign(Object.assign({}, state), {
|
|
796
|
+
case exports.SYSTEM_NOTS_HIDE: {
|
|
797
|
+
return Object.assign(Object.assign({}, state), { Notes: {
|
|
797
798
|
popupPosition: null,
|
|
798
799
|
} });
|
|
799
800
|
}
|
|
@@ -25,7 +25,7 @@ const QuickSearchRedux = tslib_1.__importStar(require("../ActionsReducers/QuickS
|
|
|
25
25
|
const ThemeRedux = tslib_1.__importStar(require("../ActionsReducers/ThemeRedux"));
|
|
26
26
|
const FormatColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FormatColumnRedux"));
|
|
27
27
|
const StyledColumnRedux = tslib_1.__importStar(require("../ActionsReducers/StyledColumnRedux"));
|
|
28
|
-
const
|
|
28
|
+
const NotesRedux = tslib_1.__importStar(require("../ActionsReducers/NotesRedux"));
|
|
29
29
|
const ApplicationRedux = tslib_1.__importStar(require("../ActionsReducers/ApplicationRedux"));
|
|
30
30
|
const FreeTextColumnRedux = tslib_1.__importStar(require("../ActionsReducers/FreeTextColumnRedux"));
|
|
31
31
|
const LayoutRedux = tslib_1.__importStar(require("../ActionsReducers/LayoutRedux"));
|
|
@@ -148,7 +148,7 @@ class AdaptableStore {
|
|
|
148
148
|
Query: QueryRedux.QueryReducer,
|
|
149
149
|
Charting: ChartingRedux.ChartingReducer,
|
|
150
150
|
StyledColumn: StyledColumnRedux.StyledColumnReducer,
|
|
151
|
-
|
|
151
|
+
Notes: NotesRedux.NotesReducer,
|
|
152
152
|
};
|
|
153
153
|
// allow plugins to participate in the root reducer
|
|
154
154
|
adaptable.forPlugins((plugin) => {
|
|
@@ -838,20 +838,20 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
838
838
|
return returnAction;
|
|
839
839
|
}
|
|
840
840
|
/*******************
|
|
841
|
-
*
|
|
841
|
+
* Note ACTIONS
|
|
842
842
|
*******************/
|
|
843
843
|
/**
|
|
844
|
-
* Use Case:
|
|
844
|
+
* Use Case: Comments has been edited/deleted/added
|
|
845
845
|
* Action: Triangle can be removed/added
|
|
846
846
|
*/
|
|
847
|
-
case
|
|
848
|
-
case
|
|
849
|
-
case
|
|
847
|
+
case NotesRedux.NOTES_ADD:
|
|
848
|
+
case NotesRedux.NOTES_EDIT:
|
|
849
|
+
case NotesRedux.NOTES_DELETE: {
|
|
850
850
|
let returnAction = next(action);
|
|
851
|
-
const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.
|
|
852
|
-
adaptable.refreshCells([node], [returnAction.
|
|
853
|
-
if (action.type ==
|
|
854
|
-
adaptable.api.
|
|
851
|
+
const node = adaptable.api.gridApi.getRowNodeForPrimaryKey(returnAction.adaptableNote.PrimaryKeyValue);
|
|
852
|
+
adaptable.refreshCells([node], [returnAction.adaptableNote.ColumnId], true);
|
|
853
|
+
if (action.type == NotesRedux.NOTES_DELETE) {
|
|
854
|
+
adaptable.api.notesApi.hideNote();
|
|
855
855
|
}
|
|
856
856
|
return returnAction;
|
|
857
857
|
}
|
|
@@ -1195,6 +1195,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1195
1195
|
adaptable.ReportService.resetExcelStyleMemoization();
|
|
1196
1196
|
return returnAction;
|
|
1197
1197
|
}
|
|
1198
|
+
/*******************
|
|
1199
|
+
* CHARTING ACTIONS
|
|
1200
|
+
*******************/
|
|
1201
|
+
case ChartingRedux.CHARTING_DELETE_EXTERNAL_CHART: {
|
|
1202
|
+
const returnAction = next(action);
|
|
1203
|
+
adaptable.api.chartingApi.internalApi.onDeleteExternalChart(returnAction.chartDefinition);
|
|
1204
|
+
return returnAction;
|
|
1205
|
+
}
|
|
1198
1206
|
/*******************
|
|
1199
1207
|
* TEAM SHARING ACTIONS
|
|
1200
1208
|
*******************/
|
|
@@ -2,12 +2,15 @@ import { AdaptableModuleView, AdaptableObjectView, IModule } from './Interface/I
|
|
|
2
2
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
3
3
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
4
|
import { ChartDefinition } from '../types';
|
|
5
|
+
import { ExternalChartDefinition } from '../PredefinedConfig/ChartingState';
|
|
5
6
|
export declare class ChartingModule extends AdaptableModuleBase implements IModule {
|
|
6
7
|
constructor(api: AdaptableApi);
|
|
7
8
|
updateOldConfig(): void;
|
|
8
9
|
isModuleAvailable(): boolean;
|
|
9
|
-
getModuleAdaptableObjects(): ChartDefinition[];
|
|
10
|
+
getModuleAdaptableObjects(): (ChartDefinition | ExternalChartDefinition)[];
|
|
10
11
|
toViewAll(): AdaptableObjectView[];
|
|
11
|
-
toView(chart: ChartDefinition): AdaptableObjectView;
|
|
12
|
+
toView(chart: ChartDefinition | ExternalChartDefinition): AdaptableObjectView;
|
|
13
|
+
toViewExternalChartDefinition(chart: ExternalChartDefinition): AdaptableObjectView;
|
|
14
|
+
toViewChartDefinition(chart: ChartDefinition): AdaptableObjectView;
|
|
12
15
|
getViewProperties(): AdaptableModuleView;
|
|
13
16
|
}
|
|
@@ -5,16 +5,17 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const ShowChartButton_1 = require("../View/Charting/ShowChartButton");
|
|
8
|
-
const ChartingWizard_1 = require("../View/Charting/ChartingWizard
|
|
8
|
+
const ChartingWizard_1 = require("../View/Charting/ChartingWizard");
|
|
9
9
|
const ChartingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/ChartingRedux"));
|
|
10
10
|
const ChartingStatusBarPopover_1 = require("../View/Charting/ChartingStatusBarPopover");
|
|
11
11
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
12
|
+
const ChartingState_1 = require("../PredefinedConfig/ChartingState");
|
|
12
13
|
class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
14
|
constructor(api) {
|
|
14
15
|
super(ModuleConstants.ChartingModuleId, ModuleConstants.ChartingFriendlyName, 'chart', 'ChartPopup', 'Create AG Grid Charts in order to see Adaptable Data visually', api);
|
|
15
16
|
}
|
|
16
17
|
updateOldConfig() {
|
|
17
|
-
const allChartDefinitions = this.
|
|
18
|
+
const allChartDefinitions = this.api.chartingApi.getChartDefinitions();
|
|
18
19
|
const chartDefinitionsToUpdate = allChartDefinitions
|
|
19
20
|
.filter((chartDefinition) => 'model' in chartDefinition || !('Name' in chartDefinition))
|
|
20
21
|
.map((charDefinition) => {
|
|
@@ -34,16 +35,34 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
isModuleAvailable() {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
const agChartsAvailable = this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
|
|
39
|
+
const externalChartsAvailable = this.api.optionsApi.getChartingOptions().externalChartingOptions;
|
|
40
|
+
return Boolean(agChartsAvailable || externalChartsAvailable);
|
|
39
41
|
}
|
|
40
42
|
getModuleAdaptableObjects() {
|
|
41
|
-
return
|
|
43
|
+
return [
|
|
44
|
+
...this.api.chartingApi.getChartDefinitions(),
|
|
45
|
+
...this.api.chartingApi.getExternalChartDefinitions(),
|
|
46
|
+
];
|
|
42
47
|
}
|
|
43
48
|
toViewAll() {
|
|
44
|
-
return this.getModuleAdaptableObjects().map((
|
|
49
|
+
return this.getModuleAdaptableObjects().map((chartDef) => this.toView(chartDef));
|
|
45
50
|
}
|
|
46
51
|
toView(chart) {
|
|
52
|
+
if ((0, ChartingState_1.isExternalChartDefinition)(chart)) {
|
|
53
|
+
return this.toViewExternalChartDefinition(chart);
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return this.toViewChartDefinition(chart);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
toViewExternalChartDefinition(chart) {
|
|
60
|
+
return {
|
|
61
|
+
items: [{ name: 'Name', values: [chart.Name] }],
|
|
62
|
+
abObject: chart,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
toViewChartDefinition(chart) {
|
|
47
66
|
var _a;
|
|
48
67
|
return {
|
|
49
68
|
items: [
|
|
@@ -96,7 +115,9 @@ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
96
115
|
// not sure if charts should be created via adaptable wizard
|
|
97
116
|
hideNewButton: true,
|
|
98
117
|
getDeleteAction: (chartDefinition) => {
|
|
99
|
-
return
|
|
118
|
+
return (0, ChartingState_1.isAgChartDefinition)(chartDefinition)
|
|
119
|
+
? ChartingRedux.ChartingDeleteChart(chartDefinition)
|
|
120
|
+
: ChartingRedux.ChartingDeleteExternalChart(chartDefinition);
|
|
100
121
|
},
|
|
101
122
|
emptyView: 'To create a chart select a few cells and right click. Then select "Chart Range" from the context menu.',
|
|
102
123
|
getStatusBarPanelProps: () => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
2
|
+
import { IModule } from './Interface/IModule';
|
|
3
|
+
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
4
|
+
import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
|
|
5
|
+
import { AdaptableColumn, AdaptableMenuItem, ContextMenuContext } from '../types';
|
|
6
|
+
export declare class ColumnInfoModule extends AdaptableModuleBase implements IModule {
|
|
7
|
+
constructor(api: AdaptableApi);
|
|
8
|
+
getViewAccessLevel(): AccessLevel;
|
|
9
|
+
addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
|
|
10
|
+
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ColumnInfoModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
|
+
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
|
+
class ColumnInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
|
+
constructor(api) {
|
|
9
|
+
super(ModuleConstants.ColumnInfoModuleId, ModuleConstants.ColumnInfoFriendlyName, 'columns', 'ColumnInfoPopup', 'Display information about Columns', api);
|
|
10
|
+
}
|
|
11
|
+
getViewAccessLevel() {
|
|
12
|
+
return 'Full';
|
|
13
|
+
}
|
|
14
|
+
addColumnMenuItems(column) {
|
|
15
|
+
if (this.isModuleAvailable()) {
|
|
16
|
+
const columnPopUpParams = {
|
|
17
|
+
source: 'ColumnMenu',
|
|
18
|
+
column: column,
|
|
19
|
+
};
|
|
20
|
+
return [
|
|
21
|
+
this.createMainMenuItemShowPopup({
|
|
22
|
+
Label: 'Column Info',
|
|
23
|
+
ComponentName: this.moduleInfo.Popup,
|
|
24
|
+
Icon: this.moduleInfo.Glyph,
|
|
25
|
+
PopupParams: columnPopUpParams,
|
|
26
|
+
}),
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
addContextMenuItems(menuContext) {
|
|
31
|
+
if (this.isModuleAvailable()) {
|
|
32
|
+
const columnPopUpParams = {
|
|
33
|
+
source: 'ColumnMenu',
|
|
34
|
+
column: menuContext.adaptableColumn,
|
|
35
|
+
};
|
|
36
|
+
return [
|
|
37
|
+
this.createMainMenuItemShowPopup({
|
|
38
|
+
Label: 'Column Info',
|
|
39
|
+
ComponentName: this.moduleInfo.Popup,
|
|
40
|
+
Icon: this.moduleInfo.Glyph,
|
|
41
|
+
PopupParams: columnPopUpParams,
|
|
42
|
+
}),
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ColumnInfoModule = ColumnInfoModule;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
|
+
import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
|
|
3
|
+
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
4
|
+
import { IModule } from './Interface/IModule';
|
|
5
|
+
export declare class DataImportModule extends AdaptableModuleBase implements IModule {
|
|
6
|
+
constructor(api: AdaptableApi);
|
|
7
|
+
addModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
|
|
8
|
+
addContextMenuItems(): AdaptableMenuItem[] | undefined;
|
|
9
|
+
addColumnMenuItems(): AdaptableMenuItem[] | undefined;
|
|
10
|
+
private getOpenPopupMenuItem;
|
|
11
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataImportModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
6
|
+
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
7
|
+
class DataImportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
|
+
constructor(api) {
|
|
9
|
+
super(ModuleConstants.DataImportModuleId, ModuleConstants.DataImportFriendyName, 'import', 'DataImportPopup', 'Import Data', api);
|
|
10
|
+
}
|
|
11
|
+
addModuleMenuItem(source) {
|
|
12
|
+
if (this.isModuleAvailable()) {
|
|
13
|
+
return this.getOpenPopupMenuItem(source);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
addContextMenuItems() {
|
|
17
|
+
if (this.isModuleAvailable()) {
|
|
18
|
+
return [this.getOpenPopupMenuItem('ContextMenu')];
|
|
19
|
+
}
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
addColumnMenuItems() {
|
|
23
|
+
if (this.isModuleAvailable()) {
|
|
24
|
+
return [this.getOpenPopupMenuItem('ColumnMenu')];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
getOpenPopupMenuItem(source) {
|
|
28
|
+
const moduleParams = {
|
|
29
|
+
action: 'New',
|
|
30
|
+
source: source,
|
|
31
|
+
maxWidth: this.getPopupMaxWidth(),
|
|
32
|
+
};
|
|
33
|
+
return this.createColumnMenuItemShowPopup('Import Data', this.moduleInfo.Popup, this.moduleInfo.Glyph, moduleParams);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DataImportModule = DataImportModule;
|
|
@@ -51,6 +51,7 @@ class DataSetModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
51
51
|
getViewProperties() {
|
|
52
52
|
return {
|
|
53
53
|
actions: [DataSetSelector_1.DataSetSelector],
|
|
54
|
+
emptyView: 'No DataSets are provided',
|
|
54
55
|
getStatusBarPanelProps: () => {
|
|
55
56
|
var _a, _b;
|
|
56
57
|
const content = (_b = (_a = this.api.dataSetApi.getCurrentDataSet()) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.moduleInfo.FriendlyName;
|
|
@@ -30,6 +30,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
30
30
|
});
|
|
31
31
|
if (contextMenuItems.length > 1) {
|
|
32
32
|
const groupMenuItem = {
|
|
33
|
+
module: this.moduleInfo.ModuleName,
|
|
33
34
|
label: 'FDC3',
|
|
34
35
|
icon: {
|
|
35
36
|
name: 'fdc3',
|
|
@@ -51,7 +52,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
51
52
|
this.getFdc3Api().raiseIntentFromRow(rowNode, intentType, contextType);
|
|
52
53
|
},
|
|
53
54
|
isVisible: true,
|
|
54
|
-
module:
|
|
55
|
+
module: this.moduleInfo.ModuleName,
|
|
55
56
|
};
|
|
56
57
|
if ((_a = intentConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.icon) {
|
|
57
58
|
const menuItemIcon = ((_b = intentConfig.contextMenu) === null || _b === void 0 ? void 0 : _b.icon) === '_defaultFdc3'
|
|
@@ -70,7 +71,7 @@ class Fdc3Module extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
70
71
|
this.getFdc3Api().broadcastFromRow(rowNode, contextType);
|
|
71
72
|
},
|
|
72
73
|
isVisible: true,
|
|
73
|
-
module:
|
|
74
|
+
module: this.moduleInfo.ModuleName,
|
|
74
75
|
};
|
|
75
76
|
if ((_a = contextConfig.contextMenu) === null || _a === void 0 ? void 0 : _a.icon) {
|
|
76
77
|
const menuItemIcon = ((_b = contextConfig.contextMenu) === null || _b === void 0 ? void 0 : _b.icon) === '_defaultFdc3'
|
|
@@ -8,6 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
|
|
|
8
8
|
const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
|
|
9
9
|
const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
|
|
10
10
|
const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
|
|
11
|
+
const getLayoutFilterViewItems_1 = require("./Utilities/Layout/getLayoutFilterViewItems");
|
|
11
12
|
class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
13
|
constructor(api) {
|
|
13
14
|
super(ModuleConstants.FilterModuleId, ModuleConstants.FilterFriendlyName, 'filter-list', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
|
|
@@ -97,6 +98,10 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
97
98
|
name: 'Column',
|
|
98
99
|
values: [this.api.columnApi.getFriendlyNameForColumnId(filter.ColumnId)],
|
|
99
100
|
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Filter',
|
|
103
|
+
values: [(0, getLayoutFilterViewItems_1.getFilterPreview)(filter, this.api)],
|
|
104
|
+
},
|
|
100
105
|
],
|
|
101
106
|
abObject: filter,
|
|
102
107
|
};
|
|
@@ -6,100 +6,31 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
8
8
|
constructor(api) {
|
|
9
|
-
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, '
|
|
9
|
+
super(ModuleConstants.GridInfoModuleId, ModuleConstants.GridInfoFriendlyName, 'align-justify', 'GridInfoPopup', 'Display information about the Grid, the Options selected and all columns', api);
|
|
10
10
|
}
|
|
11
11
|
getViewAccessLevel() {
|
|
12
12
|
return 'Full';
|
|
13
13
|
}
|
|
14
14
|
addColumnMenuItems(column) {
|
|
15
15
|
if (this.isModuleAvailable()) {
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
|
|
19
|
-
const showColumnInfoSection = this.api.internalApi
|
|
20
|
-
.getEntitlementService()
|
|
21
|
-
.isGridInfoSectionVisible('ColumnInfo');
|
|
22
|
-
let selectMenuItems = [];
|
|
23
|
-
if (showGridSection) {
|
|
24
|
-
selectMenuItems.push(this.createMainMenuItemShowPopup({
|
|
25
|
-
Label: 'Grid',
|
|
16
|
+
return [
|
|
17
|
+
this.createMainMenuItemShowPopup({
|
|
18
|
+
Label: 'Grid Info',
|
|
26
19
|
ComponentName: this.moduleInfo.Popup,
|
|
27
|
-
Icon:
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
if (column && showColumnInfoSection) {
|
|
31
|
-
selectMenuItems.push(this.createMainMenuItemShowPopup({
|
|
32
|
-
Label: 'Column',
|
|
33
|
-
ComponentName: this.moduleInfo.Popup,
|
|
34
|
-
Icon: 'columns',
|
|
35
|
-
PopupParams: {
|
|
36
|
-
column: column,
|
|
37
|
-
source: 'ColumnMenu',
|
|
38
|
-
},
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
if (showGridSection || showColumnInfoSection) {
|
|
42
|
-
return [
|
|
43
|
-
{
|
|
44
|
-
label: 'Show Info',
|
|
45
|
-
module: this.moduleInfo.ModuleName,
|
|
46
|
-
isVisible: true,
|
|
47
|
-
icon: {
|
|
48
|
-
name: this.moduleInfo.Glyph,
|
|
49
|
-
},
|
|
50
|
-
subItems: selectMenuItems,
|
|
51
|
-
},
|
|
52
|
-
];
|
|
53
|
-
}
|
|
20
|
+
Icon: this.moduleInfo.Glyph,
|
|
21
|
+
}),
|
|
22
|
+
];
|
|
54
23
|
}
|
|
55
24
|
}
|
|
56
25
|
addContextMenuItems(menuContext) {
|
|
57
26
|
if (this.isModuleAvailable()) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
.isGridInfoSectionVisible('GridSummary');
|
|
62
|
-
const showColumnInfoSection = this.api.internalApi
|
|
63
|
-
.getEntitlementService()
|
|
64
|
-
.isGridInfoSectionVisible('ColumnInfo');
|
|
65
|
-
let gridPopUpParams = {
|
|
66
|
-
source: 'ContextMenu',
|
|
67
|
-
};
|
|
68
|
-
if (showGridSection) {
|
|
69
|
-
selectMenuItems.push(this.createMainMenuItemShowPopup({
|
|
70
|
-
Label: 'Grid',
|
|
27
|
+
return [
|
|
28
|
+
this.createMainMenuItemShowPopup({
|
|
29
|
+
Label: 'Grid Info',
|
|
71
30
|
ComponentName: this.moduleInfo.Popup,
|
|
72
|
-
Icon:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
if (showColumnInfoSection) {
|
|
77
|
-
if (!menuContext.isRowGroupColumn) {
|
|
78
|
-
let columnPopUpParams = {
|
|
79
|
-
source: 'ContextMenu',
|
|
80
|
-
column: menuContext.adaptableColumn,
|
|
81
|
-
};
|
|
82
|
-
selectMenuItems.push(this.createMainMenuItemShowPopup({
|
|
83
|
-
Label: 'Column',
|
|
84
|
-
ComponentName: this.moduleInfo.Popup,
|
|
85
|
-
Icon: 'columns',
|
|
86
|
-
PopupParams: columnPopUpParams,
|
|
87
|
-
}));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (showGridSection || showColumnInfoSection) {
|
|
91
|
-
return [
|
|
92
|
-
{
|
|
93
|
-
label: 'Show Info',
|
|
94
|
-
module: this.moduleInfo.ModuleName,
|
|
95
|
-
isVisible: true,
|
|
96
|
-
icon: {
|
|
97
|
-
name: this.moduleInfo.Glyph,
|
|
98
|
-
},
|
|
99
|
-
subItems: selectMenuItems,
|
|
100
|
-
},
|
|
101
|
-
];
|
|
102
|
-
}
|
|
31
|
+
Icon: this.moduleInfo.Glyph,
|
|
32
|
+
}),
|
|
33
|
+
];
|
|
103
34
|
}
|
|
104
35
|
}
|
|
105
36
|
}
|
|
@@ -113,6 +113,8 @@ export interface AdaptableModuleView {
|
|
|
113
113
|
/**
|
|
114
114
|
* Specifieds the types of objects the module manages.
|
|
115
115
|
* When specified the new button will have these options.
|
|
116
|
+
* This is used for creating diffrent types of entites from the same module.
|
|
117
|
+
* E.g. Schedule
|
|
116
118
|
*/
|
|
117
119
|
abObjectTypes?: {
|
|
118
120
|
name: string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
2
2
|
import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
|
|
3
|
-
import {
|
|
3
|
+
import { NoteGridCell } from '../types';
|
|
4
4
|
import { AdaptableModuleBase } from './AdaptableModuleBase';
|
|
5
5
|
import { IModule } from './Interface/IModule';
|
|
6
6
|
/**
|
|
7
|
-
* In the first iteration a cell can have only one
|
|
8
|
-
*
|
|
7
|
+
* In the first iteration a cell can have only one note, the
|
|
8
|
+
* notes is a list to allow further development.
|
|
9
9
|
*/
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class NotesModule extends AdaptableModuleBase implements IModule {
|
|
11
11
|
private adaptable;
|
|
12
12
|
constructor(api: AdaptableApi);
|
|
13
13
|
isModuleAvailable(): boolean;
|
|
14
14
|
handleAdaptableReady(): void;
|
|
15
15
|
addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
|
|
16
|
-
private
|
|
16
|
+
private getAddRemoveNoteMenuItems;
|
|
17
17
|
getCellPositionFromEvent(event: MouseEvent): null | {
|
|
18
18
|
PrimaryKeyValue: string | number;
|
|
19
19
|
ColumnId: string;
|
|
20
20
|
};
|
|
21
21
|
handleMouseEnter(event: MouseEvent): void;
|
|
22
|
-
handleCellSelected(
|
|
22
|
+
handleCellSelected(noteGridCell: NoteGridCell): void;
|
|
23
23
|
}
|