@adaptabletools/adaptable 11.2.4 → 12.0.0-canary.1
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 +568 -273
- package/bundle.cjs.js +120 -120
- package/index.css +642 -270
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
- package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
- package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
- package/src/AdaptableOptions/EditOptions.d.ts +91 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
- package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
- package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
- package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
- package/src/AdaptableOptions/{SmartEdit.js → MasterDetailPluginOptions.js} +0 -0
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +95 -50
- package/src/Api/AdaptableApi.d.ts +6 -3
- package/src/Api/ColumnApi.d.ts +9 -4
- package/src/Api/ConditionalStyleApi.d.ts +10 -0
- package/src/Api/ConfigApi.d.ts +0 -12
- package/src/Api/DashboardApi.d.ts +6 -19
- package/src/Api/DataSetApi.d.ts +40 -0
- package/src/Api/{DataSourceApi.js → DataSetApi.js} +0 -0
- package/src/Api/EventApi.d.ts +29 -1
- package/src/Api/Events/DataSetChanged.d.ts +5 -0
- package/src/{PredefinedConfig/DataSourceState.js → Api/Events/DataSetChanged.js} +0 -0
- package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
- package/src/{PredefinedConfig/FilterState.js → Api/Events/RowFormSubmitted.js} +0 -0
- package/src/Api/Events/SearchChanged.d.ts +4 -5
- package/src/Api/ExportApi.d.ts +2 -2
- package/src/Api/FilterApi.d.ts +28 -36
- package/src/Api/FormatColumnApi.d.ts +6 -0
- package/src/Api/GridApi.d.ts +15 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
- package/src/Api/Implementation/AlertApiImpl.js +5 -1
- package/src/Api/Implementation/ApiBase.d.ts +3 -0
- package/src/Api/Implementation/ApiBase.js +6 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
- package/src/Api/Implementation/ColumnApiImpl.js +17 -16
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
- package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ConfigApiImpl.js +2 -24
- package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
- package/src/Api/Implementation/DashboardApiImpl.js +5 -29
- package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
- package/src/Api/Implementation/DataSetApiImpl.js +42 -0
- package/src/Api/Implementation/EventApiImpl.js +1 -0
- package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
- package/src/Api/Implementation/FilterApiImpl.js +59 -72
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/FormatColumnApiImpl.js +7 -2
- package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
- package/src/Api/Implementation/GridApiImpl.js +45 -1
- package/src/Api/Implementation/InternalApiImpl.d.ts +7 -2
- package/src/Api/Implementation/InternalApiImpl.js +51 -10
- package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
- package/src/Api/Implementation/LayoutApiImpl.js +20 -0
- package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
- package/src/Api/Implementation/PredicateApiImpl.js +19 -1
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
- package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
- package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
- package/src/Api/InternalApi.d.ts +6 -2
- package/src/Api/LayoutApi.d.ts +16 -0
- package/src/Api/PredicateApi.d.ts +7 -0
- package/src/Api/SmartEditApi.d.ts +14 -3
- package/src/Api/TeamSharingApi.d.ts +18 -5
- package/src/Api/UserInterfaceApi.d.ts +4 -4
- package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
- package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -3
- package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
- package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
- package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
- package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
- package/src/PredefinedConfig/Common/Enums.js +1 -1
- package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/FormContext.js +2 -0
- package/src/PredefinedConfig/Common/Types.d.ts +6 -5
- package/src/PredefinedConfig/Common/Types.js +2 -3
- package/src/PredefinedConfig/LayoutState.d.ts +5 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
- package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
- package/src/PredefinedConfig/SystemState.d.ts +4 -2
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
- package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
- package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
- package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
- package/src/Redux/Store/AdaptableStore.js +37 -39
- package/src/Strategy/AdaptableModuleBase.js +1 -2
- package/src/Strategy/AlertModule.d.ts +11 -0
- package/src/Strategy/AlertModule.js +14 -0
- package/src/Strategy/BulkUpdateModule.js +3 -4
- package/src/Strategy/CellSummaryModule.d.ts +3 -0
- package/src/Strategy/CellSummaryModule.js +29 -16
- package/src/Strategy/DataSetModule.d.ts +25 -0
- package/src/Strategy/DataSetModule.js +65 -0
- package/src/Strategy/ExportModule.js +6 -1
- package/src/Strategy/FilterModule.d.ts +7 -11
- package/src/Strategy/FilterModule.js +26 -20
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FlashingCellModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +3 -1
- package/src/Strategy/LayoutModule.js +25 -2
- package/src/Strategy/PlusMinusModule.js +1 -4
- package/src/Strategy/SmartEditModule.d.ts +1 -1
- package/src/Strategy/SmartEditModule.js +7 -8
- package/src/Strategy/StatusBarModule.js +1 -3
- package/src/Strategy/TeamSharingModule.js +1 -1
- package/src/Strategy/ToolPanelModule.js +1 -4
- package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
- package/src/Utilities/Constants/GeneralConstants.js +8 -2
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
- package/src/Utilities/Constants/ModuleConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -13
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
- package/src/Utilities/ObjectFactory.d.ts +3 -6
- package/src/Utilities/ObjectFactory.js +3 -7
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
- package/src/Utilities/Services/EntitlementService.js +7 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
- package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/Utilities/Services/ReportService.js +2 -3
- package/src/Utilities/Services/RowEditService.d.ts +26 -0
- package/src/Utilities/Services/RowEditService.js +197 -0
- package/src/Utilities/Services/TeamSharingService.js +4 -4
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -6
- package/src/View/AdaptableView.js +1 -1
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
- package/src/View/Alert/ActiveAlertsPanel.js +15 -0
- package/src/View/Alert/AlertStatusSubPanel.js +3 -8
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
- package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +13 -7
- package/src/View/CellSummary/CellSummaryDetails.js +4 -4
- package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
- package/src/View/CellSummary/CellSummaryPopover.js +3 -6
- package/src/View/CellSummary/CellSummaryPopup.js +8 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
- package/src/View/Components/ExternalRenderer.d.ts +3 -6
- package/src/View/Components/ExternalRenderer.js +5 -5
- package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +10 -8
- package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
- package/src/View/Components/Popups/AdaptableToaster.js +29 -9
- package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
- package/src/View/Components/PreviewResultsPanel.js +3 -3
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
- package/src/View/Components/WizardSummaryPage.js +2 -2
- package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
- package/src/View/Dashboard/CustomDashboardButton.js +47 -0
- package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
- package/src/View/Dashboard/Dashboard.d.ts +1 -0
- package/src/View/Dashboard/Dashboard.js +8 -34
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
- package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
- package/src/View/DataSet/DataSetSelector.d.ts +7 -0
- package/src/View/DataSet/DataSetSelector.js +18 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
- package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
- package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
- package/src/View/DataSet/DataSetViewPanel.js +58 -0
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +5 -5
- package/src/View/Filter/FilterSummary.js +5 -4
- package/src/View/Filter/FilterViewPanel.d.ts +4 -4
- package/src/View/Filter/FilterViewPanel.js +10 -13
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -7
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -5
- package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
- package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +3 -4
- package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
- package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
- package/src/View/StatusBar/StatusBarPanel.js +5 -4
- package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
- package/src/View/UIHelper.d.ts +4 -4
- package/src/View/UIHelper.js +10 -10
- package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
- package/src/agGrid/ActionColumnRenderer.js +9 -6
- package/src/agGrid/Adaptable.d.ts +7 -2
- package/src/agGrid/Adaptable.js +213 -69
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +7 -8
- package/src/agGrid/agGridHelper.js +68 -86
- package/src/agGrid/agGridMenuHelper.js +4 -1
- package/src/agGrid/rowEditIcons.d.ts +5 -0
- package/src/agGrid/rowEditIcons.js +10 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
- package/src/components/Dashboard/DashboardToolbar.js +2 -2
- package/src/components/Datepicker/index.js +19 -18
- package/src/components/InfiniteTable/index.js +1 -0
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/SelectList.d.ts +10 -0
- package/src/components/SelectList.js +9 -0
- package/src/components/WindowModal/WindowModal.d.ts +2 -0
- package/src/components/WindowModal/WindowModal.js +1 -1
- package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
- package/src/components/icons/add-row.js +7 -0
- package/src/components/icons/data-set.d.ts +3 -0
- package/src/components/icons/{data-source.js → data-set.js} +0 -0
- package/src/components/icons/index.js +4 -2
- package/src/metamodel/adaptable.metamodel.d.ts +226 -69
- package/src/metamodel/adaptable.metamodel.js +532 -311
- package/src/types.d.ts +18 -13
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -9
- package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
- package/src/Api/DataSourceApi.d.ts +0 -58
- package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
- package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
- package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
- package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
- package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
- package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
- package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
- package/src/Strategy/DataSourceModule.d.ts +0 -20
- package/src/Strategy/DataSourceModule.js +0 -56
- package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
- package/src/View/Components/Forms/AdaptableForm.js +0 -21
- package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
- package/src/View/DataSource/DataSourceViewPanel.js +0 -69
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
- package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
- package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
- package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agGridHelper = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const Enums_1 = require("../PredefinedConfig/Common/Enums");
|
|
6
5
|
const Uuid_1 = require("../PredefinedConfig/Uuid");
|
|
7
6
|
const AlertModule_1 = require("../Strategy/AlertModule");
|
|
8
7
|
const BulkUpdateModule_1 = require("../Strategy/BulkUpdateModule");
|
|
@@ -11,7 +10,7 @@ const CellSummaryModule_1 = require("../Strategy/CellSummaryModule");
|
|
|
11
10
|
const ConditionalStyleModule_1 = require("../Strategy/ConditionalStyleModule");
|
|
12
11
|
const CustomSortModule_1 = require("../Strategy/CustomSortModule");
|
|
13
12
|
const DashboardModule_1 = require("../Strategy/DashboardModule");
|
|
14
|
-
const
|
|
13
|
+
const DataSetModule_1 = require("../Strategy/DataSetModule");
|
|
15
14
|
const ExportModule_1 = require("../Strategy/ExportModule");
|
|
16
15
|
const FilterModule_1 = require("../Strategy/FilterModule");
|
|
17
16
|
const FormatColumnModule_1 = require("../Strategy/FormatColumnModule");
|
|
@@ -41,6 +40,9 @@ const ChartingModule_1 = require("../Strategy/ChartingModule");
|
|
|
41
40
|
const PercentBarRenderer_1 = require("./PercentBarRenderer");
|
|
42
41
|
const Helper_1 = require("../Utilities/Helpers/Helper");
|
|
43
42
|
const StatusBarModule_1 = require("../Strategy/StatusBarModule");
|
|
43
|
+
const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
|
|
44
|
+
const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
|
|
45
|
+
const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
|
|
44
46
|
const tinycolor = require('tinycolor2');
|
|
45
47
|
/**
|
|
46
48
|
* Adaptable AG Grid implementation is getting really big and unwieldy
|
|
@@ -79,7 +81,7 @@ class agGridHelper {
|
|
|
79
81
|
modules.set(ModuleConstants.ConditionalStyleModuleId, new ConditionalStyleModule_1.ConditionalStyleModule(api));
|
|
80
82
|
modules.set(ModuleConstants.CustomSortModuleId, new CustomSortModule_1.CustomSortModule(api));
|
|
81
83
|
modules.set(ModuleConstants.DataChangeHistoryModuleId, new DataChangeHistoryModule_1.DataChangeHistoryModule(api));
|
|
82
|
-
modules.set(ModuleConstants.
|
|
84
|
+
modules.set(ModuleConstants.DataSetModuleId, new DataSetModule_1.DataSetModule(api));
|
|
83
85
|
modules.set(ModuleConstants.ExportModuleId, new ExportModule_1.ExportModule(api));
|
|
84
86
|
modules.set(ModuleConstants.FilterModuleId, new FilterModule_1.FilterModule(api));
|
|
85
87
|
modules.set(ModuleConstants.FormatColumnModuleId, new FormatColumnModule_1.FormatColumnModule(api));
|
|
@@ -155,7 +157,13 @@ class agGridHelper {
|
|
|
155
157
|
createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups) {
|
|
156
158
|
const colId = agGridColumn.getColId();
|
|
157
159
|
const colDef = agGridColumn.getColDef();
|
|
158
|
-
const
|
|
160
|
+
const isActionRowButtonColumn = this.adaptable.api.columnApi.isActionRowButtonColumn(colId);
|
|
161
|
+
const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
|
|
162
|
+
const customFriendlyName = typeof columnFriendlyName === 'function'
|
|
163
|
+
? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
|
|
164
|
+
: null;
|
|
165
|
+
const FriendlyName = (customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : isActionRowButtonColumn) ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
|
|
166
|
+
: this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
|
|
159
167
|
if (!this.initialAgGridColDefs[colId]) {
|
|
160
168
|
this.initialAgGridColDefs[colId] = Object.assign({}, agGridColumn.getUserProvidedColDef());
|
|
161
169
|
}
|
|
@@ -203,55 +211,26 @@ class agGridHelper {
|
|
|
203
211
|
}
|
|
204
212
|
return abColumn;
|
|
205
213
|
}
|
|
206
|
-
|
|
207
|
-
const toolPanelDef = [];
|
|
208
|
-
if (showFilterPanel) {
|
|
209
|
-
const filterToolPanel = {
|
|
210
|
-
id: 'filters',
|
|
211
|
-
labelDefault: 'Filters',
|
|
212
|
-
labelKey: 'filters',
|
|
213
|
-
iconKey: 'filter',
|
|
214
|
-
toolPanel: 'agFiltersToolPanel',
|
|
215
|
-
};
|
|
216
|
-
toolPanelDef.push(filterToolPanel);
|
|
217
|
-
}
|
|
218
|
-
if (showColumnsPanel) {
|
|
219
|
-
const columnsToolPanel = {
|
|
220
|
-
id: 'columns',
|
|
221
|
-
labelDefault: 'Columns',
|
|
222
|
-
labelKey: 'columns',
|
|
223
|
-
iconKey: 'columns',
|
|
224
|
-
toolPanel: 'agColumnsToolPanel',
|
|
225
|
-
};
|
|
226
|
-
toolPanelDef.push(columnsToolPanel);
|
|
227
|
-
}
|
|
228
|
-
toolPanelDef.push(this.createAdaptableToolPanel());
|
|
229
|
-
this.orderToolPanels(toolPanelDef);
|
|
230
|
-
const abSideBarDef = {
|
|
231
|
-
toolPanels: toolPanelDef,
|
|
232
|
-
defaultToolPanel: '',
|
|
233
|
-
};
|
|
234
|
-
return abSideBarDef;
|
|
235
|
-
}
|
|
236
|
-
createAdaptableToolPanel() {
|
|
214
|
+
buildAdaptableToolPanelDef() {
|
|
237
215
|
return {
|
|
238
|
-
id:
|
|
239
|
-
toolPanel:
|
|
240
|
-
labelDefault:
|
|
216
|
+
id: GeneralConstants.ADAPTABLE_TOOLPANEL_ID,
|
|
217
|
+
toolPanel: GeneralConstants.ADAPTABLE_TOOLPANEL_COMPONENT,
|
|
218
|
+
labelDefault: GeneralConstants.ADAPTABLE,
|
|
241
219
|
labelKey: 'adaptable',
|
|
242
|
-
iconKey:
|
|
243
|
-
width:
|
|
244
|
-
minWidth:
|
|
245
|
-
maxWidth: this.adaptable.adaptableOptions.toolPanelOptions.maxWidth,
|
|
220
|
+
iconKey: 'menu',
|
|
221
|
+
width: UIHelper_1.default.getAdaptableToolPanelWidth(),
|
|
222
|
+
minWidth: UIHelper_1.default.getAdaptableToolPanelWidth(),
|
|
246
223
|
};
|
|
247
224
|
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
225
|
+
isSideBarDefObject(sidebarDef) {
|
|
226
|
+
var _a;
|
|
227
|
+
return Array.isArray((_a = sidebarDef) === null || _a === void 0 ? void 0 : _a.toolPanels);
|
|
228
|
+
}
|
|
229
|
+
mapToolPanelDefs(toolPanelDefs = []) {
|
|
230
|
+
// if it's an alias for the adaptable tool panel, map it to a ToolPanelDef, otherwise return it as it is
|
|
231
|
+
return toolPanelDefs.map((toolPanelDef) => toolPanelDef === GeneralConstants.ADAPTABLE_TOOLPANEL_ID
|
|
232
|
+
? this.buildAdaptableToolPanelDef()
|
|
233
|
+
: toolPanelDef);
|
|
255
234
|
}
|
|
256
235
|
// This method reselects cells - only IF they are in a single column
|
|
257
236
|
// Might be able to change that later
|
|
@@ -328,6 +307,9 @@ class agGridHelper {
|
|
|
328
307
|
if (!colDef) {
|
|
329
308
|
return false;
|
|
330
309
|
}
|
|
310
|
+
if (colDef.colId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
331
313
|
const queryableColumns = this.adaptable.api.queryLanguageApi.getQueryableColumnIds();
|
|
332
314
|
if (ArrayExtensions_1.ArrayExtensions.IsNull(queryableColumns)) {
|
|
333
315
|
return true;
|
|
@@ -390,12 +372,12 @@ class agGridHelper {
|
|
|
390
372
|
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
391
373
|
if (!column) {
|
|
392
374
|
LoggingHelper_1.LogAdaptableWarning('column is undefined returning String for Type');
|
|
393
|
-
return
|
|
375
|
+
return 'String';
|
|
394
376
|
}
|
|
395
|
-
let dataType =
|
|
377
|
+
let dataType = 'Unknown';
|
|
396
378
|
// get the column type if already in store (and not unknown)
|
|
397
379
|
const existingColumn = this.adaptable.api.columnApi.getColumnFromId(column.getId(), logWarning);
|
|
398
|
-
if (existingColumn && existingColumn.dataType !=
|
|
380
|
+
if (existingColumn && existingColumn.dataType != 'Unknown') {
|
|
399
381
|
return existingColumn.dataType;
|
|
400
382
|
}
|
|
401
383
|
// check for column type
|
|
@@ -403,58 +385,58 @@ class agGridHelper {
|
|
|
403
385
|
if (colType) {
|
|
404
386
|
if (Array.isArray(colType)) {
|
|
405
387
|
colType.forEach((c) => {
|
|
406
|
-
if (dataType ==
|
|
407
|
-
dataType = this.
|
|
388
|
+
if (dataType == 'Unknown') {
|
|
389
|
+
dataType = this.getAbColDefValue(c);
|
|
408
390
|
}
|
|
409
391
|
});
|
|
410
392
|
}
|
|
411
393
|
else {
|
|
412
|
-
dataType = this.
|
|
394
|
+
dataType = this.getAbColDefValue(colType);
|
|
413
395
|
}
|
|
414
|
-
if (dataType !=
|
|
396
|
+
if (dataType != 'Unknown') {
|
|
415
397
|
return dataType;
|
|
416
398
|
}
|
|
417
399
|
}
|
|
418
400
|
const model = this.gridOptions.api.getModel();
|
|
419
401
|
if (model == null) {
|
|
420
402
|
LoggingHelper_1.LogAdaptableWarning(`No model so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
421
|
-
return
|
|
403
|
+
return 'Unknown';
|
|
422
404
|
}
|
|
423
405
|
let row = model.getRow(0);
|
|
424
406
|
if (row == null) {
|
|
425
407
|
// possible that there will be no data.
|
|
426
408
|
LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
427
|
-
return
|
|
409
|
+
return 'Unknown';
|
|
428
410
|
}
|
|
429
411
|
// if it's a group we need the content of the group
|
|
430
412
|
if (row.group) {
|
|
431
413
|
const childNodes = row.childrenAfterGroup;
|
|
432
414
|
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(childNodes)) {
|
|
433
415
|
LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
434
|
-
return
|
|
416
|
+
return 'Unknown';
|
|
435
417
|
}
|
|
436
418
|
row = childNodes[0];
|
|
437
419
|
}
|
|
438
420
|
const value = this.gridOptions.api.getValue(column, row);
|
|
439
421
|
if (value instanceof Date) {
|
|
440
|
-
dataType =
|
|
422
|
+
dataType = 'Date';
|
|
441
423
|
}
|
|
442
424
|
else if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
|
|
443
|
-
dataType =
|
|
425
|
+
dataType = 'Unknown';
|
|
444
426
|
}
|
|
445
427
|
else {
|
|
446
428
|
switch (typeof value) {
|
|
447
429
|
case 'string':
|
|
448
|
-
dataType =
|
|
430
|
+
dataType = 'String';
|
|
449
431
|
break;
|
|
450
432
|
case 'number':
|
|
451
|
-
dataType =
|
|
433
|
+
dataType = 'Number';
|
|
452
434
|
break;
|
|
453
435
|
case 'boolean':
|
|
454
|
-
dataType =
|
|
436
|
+
dataType = 'Boolean';
|
|
455
437
|
break;
|
|
456
438
|
case 'object':
|
|
457
|
-
dataType =
|
|
439
|
+
dataType = 'Object';
|
|
458
440
|
break;
|
|
459
441
|
default:
|
|
460
442
|
break;
|
|
@@ -463,65 +445,65 @@ class agGridHelper {
|
|
|
463
445
|
LoggingHelper_1.LogAdaptableWarning(`No defined type for column '${column.getColId()}'. Defaulting to type of first value: ${dataType}`);
|
|
464
446
|
return dataType;
|
|
465
447
|
}
|
|
466
|
-
|
|
448
|
+
getAbColDefValue(colType) {
|
|
467
449
|
if (colType == 'numericColumn') {
|
|
468
|
-
return
|
|
450
|
+
return 'Number';
|
|
469
451
|
}
|
|
470
452
|
if (colType.startsWith('abColDef')) {
|
|
471
|
-
|
|
453
|
+
const abColType = colType;
|
|
454
|
+
switch (abColType) {
|
|
472
455
|
case 'abColDefNumber':
|
|
473
|
-
return
|
|
456
|
+
return 'Number';
|
|
474
457
|
case 'abColDefString':
|
|
475
|
-
return
|
|
458
|
+
return 'String';
|
|
476
459
|
case 'abColDefBoolean':
|
|
477
|
-
return
|
|
460
|
+
return 'Boolean';
|
|
478
461
|
case 'abColDefDate':
|
|
479
|
-
return
|
|
462
|
+
return 'Date';
|
|
480
463
|
case 'abColDefObject':
|
|
481
|
-
return
|
|
464
|
+
return 'Object';
|
|
482
465
|
default:
|
|
483
|
-
return
|
|
466
|
+
return 'Unknown';
|
|
484
467
|
}
|
|
485
468
|
}
|
|
486
|
-
return
|
|
469
|
+
return 'Unknown';
|
|
487
470
|
}
|
|
488
471
|
getAgGridDataType(dataType) {
|
|
489
472
|
if (!dataType) {
|
|
490
473
|
return 'abColDefString';
|
|
491
474
|
}
|
|
492
475
|
switch (dataType) {
|
|
493
|
-
case
|
|
476
|
+
case 'Boolean':
|
|
494
477
|
return 'abColDefBoolean';
|
|
495
|
-
case
|
|
478
|
+
case 'Date':
|
|
496
479
|
return 'abColDefDate';
|
|
497
|
-
case
|
|
480
|
+
case 'Number':
|
|
498
481
|
return 'abColDefNumber';
|
|
499
|
-
case
|
|
482
|
+
case 'Object':
|
|
500
483
|
return 'abColDefObject';
|
|
501
|
-
case
|
|
484
|
+
case 'String':
|
|
502
485
|
return 'abColDefString';
|
|
503
|
-
|
|
504
|
-
case Enums_1.DataType.Unknown:
|
|
486
|
+
default:
|
|
505
487
|
return 'abColDefCustom';
|
|
506
488
|
}
|
|
507
489
|
}
|
|
508
490
|
checkShouldClearExistingFiltersOrSearches() {
|
|
509
491
|
// if they have selected to clear column filters on startup then do it
|
|
510
492
|
if (this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp) {
|
|
511
|
-
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.
|
|
493
|
+
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getColumnFilters())) {
|
|
512
494
|
LoggingHelper_1.LogAdaptableWarning('Clearing existing Column Filters as "clearFiltersOnStartUp" is true');
|
|
513
|
-
this.adaptable.api.filterApi.
|
|
495
|
+
this.adaptable.api.filterApi.clearColumnFilters();
|
|
514
496
|
}
|
|
515
497
|
}
|
|
516
498
|
// if they have selected to clear searches on startup then do it
|
|
517
499
|
if (this.adaptable.adaptableOptions.searchOptions.clearSearchesOnStartUp) {
|
|
518
500
|
if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText) ||
|
|
519
501
|
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery()) ||
|
|
520
|
-
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.
|
|
502
|
+
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.dataSetApi.getAllDataSets())) {
|
|
521
503
|
LoggingHelper_1.LogAdaptableWarning('Clearing existing Searches as "clearSearchesOnStartUp" is true');
|
|
522
504
|
this.adaptable.api.quickSearchApi.clearQuickSearch();
|
|
523
505
|
this.adaptable.api.queryApi.clearCurrentQuery();
|
|
524
|
-
this.adaptable.api.
|
|
506
|
+
this.adaptable.api.dataSetApi.clearCurrentDataSet();
|
|
525
507
|
}
|
|
526
508
|
}
|
|
527
509
|
}
|
|
@@ -52,6 +52,9 @@ class agGridMenuHelper {
|
|
|
52
52
|
}));
|
|
53
53
|
}
|
|
54
54
|
buildContextMenu(params, originalgetContextMenuItems) {
|
|
55
|
+
// we do this in order to refresh the internal state of selected cells (technically query the AG Grid cellRanges)
|
|
56
|
+
// (right-click selected the current cell, but this was not reflected in the internal state of the selected cells)
|
|
57
|
+
this.adaptable.setSelectedCells();
|
|
55
58
|
let agGridContextMenuItems = [];
|
|
56
59
|
let adaptableContextMenuItems = [];
|
|
57
60
|
let userContextMenuItems = [];
|
|
@@ -240,7 +243,7 @@ class agGridMenuHelper {
|
|
|
240
243
|
isSingleSelectedColumn = ArrayExtensions_1.ArrayExtensions.CorrectLength(selectedCellInfo.columns, 1);
|
|
241
244
|
}
|
|
242
245
|
}
|
|
243
|
-
let selectedRowInfo = this.adaptable.
|
|
246
|
+
let selectedRowInfo = this.adaptable.api.gridApi.getSelectedRowInfo();
|
|
244
247
|
return {
|
|
245
248
|
isSelectedCell: isSelectedCell,
|
|
246
249
|
gridCell: clickedCell,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = exports.rowAddIcon = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const icons_1 = require("../components/icons");
|
|
6
|
+
const React = tslib_1.__importStar(require("react"));
|
|
7
|
+
exports.rowAddIcon = React.createElement(icons_1.Icon, { name: "add-row" });
|
|
8
|
+
exports.rowEditIcon = React.createElement(icons_1.Icon, { name: "edit" });
|
|
9
|
+
exports.rowCloneIcon = React.createElement(icons_1.Icon, { name: "clone" });
|
|
10
|
+
exports.rowDeleteIcon = React.createElement(icons_1.Icon, { name: "delete" });
|
|
@@ -19,14 +19,15 @@ function AdaptableFormComponentButtons({ formDef, onClick, defaultTone, disabled
|
|
|
19
19
|
width: 15,
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
const
|
|
22
|
+
const buttonIcon = api.internalApi.getIconForButton(button, context);
|
|
23
|
+
const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
|
|
23
24
|
let buttonStyle = api.internalApi.getStyleForButton(button, context ? context : { adaptableApi: api });
|
|
24
25
|
let buttonLabel = api.internalApi.getLabelForButton(button, context ? context : { adaptableApi: api });
|
|
25
26
|
let buttonTooltip = api.internalApi.getTooltipForButton(button, context ? context : { adaptableApi: api });
|
|
26
27
|
return (React.createElement(SimpleButton_1.default, { autoFocus: focusFirstButton && index === 0, disabled: disabledButtons[index], key: index, tooltip: buttonTooltip, tone: (_a = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone) !== null && _a !== void 0 ? _a : defaultTone, variant: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant, "data-text": buttonLabel, className: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className, marginLeft: index ? 2 : 0, onClick: () => {
|
|
27
28
|
onClick(button);
|
|
28
29
|
} },
|
|
29
|
-
|
|
30
|
+
buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
|
|
30
31
|
buttonLabel));
|
|
31
32
|
})));
|
|
32
33
|
}
|
|
@@ -63,17 +64,7 @@ function AdaptableFormComponent({ formDef, data, onChange, onButtonClick, displa
|
|
|
63
64
|
label: item.label,
|
|
64
65
|
onClick: () => setFieldValue(field.name, item.value),
|
|
65
66
|
}));
|
|
66
|
-
return (
|
|
67
|
-
/*
|
|
68
|
-
<Dropdown
|
|
69
|
-
options={field.Options || []}
|
|
70
|
-
value={value}
|
|
71
|
-
onChange={(value) => {
|
|
72
|
-
setFieldValue(field.Name, value);
|
|
73
|
-
}}
|
|
74
|
-
></Dropdown>
|
|
75
|
-
*/
|
|
76
|
-
React.createElement(DropdownButton_1.default, { style: {
|
|
67
|
+
return (React.createElement(DropdownButton_1.default, { style: {
|
|
77
68
|
width: '100%',
|
|
78
69
|
whiteSpace: 'nowrap',
|
|
79
70
|
overflow: 'hidden',
|
|
@@ -85,7 +76,7 @@ function AdaptableFormComponent({ formDef, data, onChange, onButtonClick, displa
|
|
|
85
76
|
setFieldValue(field.name, event.target.checked);
|
|
86
77
|
} }));
|
|
87
78
|
case 'textOutput':
|
|
88
|
-
return React.createElement(rebass_1.Box, { style: { textAlign: '
|
|
79
|
+
return (React.createElement(rebass_1.Box, { paddingLeft: 2, style: { textAlign: 'left' } }, value));
|
|
89
80
|
default:
|
|
90
81
|
return React.createElement("div", null,
|
|
91
82
|
"Unknown field type: ",
|
|
@@ -95,9 +86,9 @@ function AdaptableFormComponent({ formDef, data, onChange, onButtonClick, displa
|
|
|
95
86
|
// by default we have 2 columns: label & input
|
|
96
87
|
const columns = (_b = (_a = formDef.config) === null || _a === void 0 ? void 0 : _a.columns) !== null && _b !== void 0 ? _b : [1, 2];
|
|
97
88
|
return (React.createElement(React.Fragment, null,
|
|
98
|
-
displayTitle && formDef.title && (React.createElement(rebass_1.Box, { fontSize: 5, mb: 2, style: { fontWeight: 'bold' } }, formDef.title)),
|
|
99
|
-
formDef.description && React.createElement(rebass_1.Box, { mb: 3 }, formDef.description),
|
|
100
|
-
React.createElement(FormLayout_1.default, { columns: columns }, (_c = formDef.fields) === null || _c === void 0 ? void 0 : _c.map((field, index) => {
|
|
89
|
+
displayTitle && formDef.title && (React.createElement(rebass_1.Box, { "data-name": "form-title", fontSize: 5, mb: 2, style: { fontWeight: 'bold' } }, formDef.title)),
|
|
90
|
+
formDef.description && (React.createElement(rebass_1.Box, { "data-name": "form-description", mb: 3 }, formDef.description)),
|
|
91
|
+
React.createElement(FormLayout_1.default, { "data-name": "form-content", columns: columns, style: { overflow: 'auto' }, paddingRight: 1 }, (_c = formDef.fields) === null || _c === void 0 ? void 0 : _c.map((field, index) => {
|
|
101
92
|
if (Array.isArray(field)) {
|
|
102
93
|
const rowFields = {};
|
|
103
94
|
field.map((fieldItem, index) => {
|
|
@@ -113,7 +104,7 @@ function AdaptableFormComponent({ formDef, data, onChange, onButtonClick, displa
|
|
|
113
104
|
renderField(field)));
|
|
114
105
|
}
|
|
115
106
|
})),
|
|
116
|
-
formDef.buttons ? (React.createElement(rebass_1.Flex, { marginTop: 3, flexDirection: "row", alignItems: "center", justifyContent: "center" },
|
|
107
|
+
formDef.buttons ? (React.createElement(rebass_1.Flex, { "data-name": "form-buttons", marginTop: 3, flexDirection: "row", alignItems: "center", justifyContent: "center" },
|
|
117
108
|
React.createElement(AdaptableFormComponentButtons, { focusFirstButton: focusFirstButton, onClick: onButtonClick, disabledButtons: disabledButtons, defaultTone: "success", formDef: formDef, api: api, context: context }))) : null));
|
|
118
109
|
}
|
|
119
110
|
exports.AdaptableFormComponent = AdaptableFormComponent;
|
|
@@ -11,8 +11,8 @@ function DashboardToolbar(props) {
|
|
|
11
11
|
React.createElement("div", { className: "ab-Dashboard__toolbar-content" }, props.children),
|
|
12
12
|
React.createElement(rebass_1.Flex, { className: "ab-Dashboard__toolbar-title", flexDirection: "row", alignItems: "center" },
|
|
13
13
|
React.createElement("span", null, props.title),
|
|
14
|
-
props.showConfigure && (React.createElement(SimpleButton_1.default, { icon: "build", variant: "text", tone: "none", "data-name": "configure", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Configure ${props.title}`, onClick: () => props.onConfigure() })),
|
|
14
|
+
props.showConfigure && (React.createElement(SimpleButton_1.default, { icon: "build", variant: "text", tone: "none", "data-name": "configure", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Configure ${props.title} Toolbar`, onClick: () => props.onConfigure() })),
|
|
15
15
|
' ',
|
|
16
|
-
props.showClose && (React.createElement(SimpleButton_1.default, { style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "clear", variant: "text", tone: "none", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Close ${props.title}`, onClick: () => props.onClose() })))));
|
|
16
|
+
props.showClose && (React.createElement(SimpleButton_1.default, { style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "clear", variant: "text", tone: "none", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Close ${props.title} Toolbar`, onClick: () => props.onClose() })))));
|
|
17
17
|
}
|
|
18
18
|
exports.DashboardToolbar = DashboardToolbar;
|
|
@@ -86,22 +86,23 @@ exports.Datepicker = React.forwardRef((props, ref) => {
|
|
|
86
86
|
clearValue();
|
|
87
87
|
}, accessLevel: 'Full' })) : null;
|
|
88
88
|
const calendarButton = (React.createElement(SimpleButton_1.default, { disabled: disabled, variant: "text", icon: "calendar", tooltip: "Date", iconSize: 20, px: 0, py: 0, onClick: () => setVisible(true) }));
|
|
89
|
-
return (React.createElement(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
89
|
+
return (React.createElement(rebass_1.Flex, null,
|
|
90
|
+
React.createElement(OverlayTrigger_1.default, { visible: visible, alignHorizontal: 'left', render: () => (React.createElement(DatepickerOverlay, { onHide: () => setVisible(false), onKeyDown: (e) => {
|
|
91
|
+
if (e.key === 'Escape' || e.key === 'Enter') {
|
|
92
|
+
setVisible(false, e.key);
|
|
93
|
+
}
|
|
94
|
+
} },
|
|
95
|
+
React.createElement(react_day_picker_1.DayPicker, Object.assign({ fixedWeeks: true }, dayPickerProps, { showWeekNumber: showWeekNumber, showOutsideDays: showOutsideDays, mode: "single", month: isNaN(+month) ? new Date() : month, onMonthChange: setMonth, components: { Caption: Caption_1.Caption, CaptionLabel: CaptionLabel_1.CaptionLabel }, onSelect: updateValue, footer: React.createElement(rebass_1.Flex, { justifyContent: "space-between", mt: 2, flexWrap: 'wrap' }, footerButtons) })))) },
|
|
96
|
+
React.createElement(FieldWrap_1.default, Object.assign({}, boxProps, { style: {
|
|
97
|
+
borderRadius: style === null || style === void 0 ? void 0 : style.borderRadius,
|
|
98
|
+
width: style === null || style === void 0 ? void 0 : style.width,
|
|
99
|
+
maxWidth: style === null || style === void 0 ? void 0 : style.maxWidth,
|
|
100
|
+
}, onFocus: () => {
|
|
101
|
+
if (!visible) {
|
|
102
|
+
setVisible(true);
|
|
103
|
+
}
|
|
104
|
+
} }),
|
|
105
|
+
React.createElement(Input_1.default, { value: inputValue, placehoder: placeholder !== null && placeholder !== void 0 ? placeholder : dateProps.format, style: style, disabled: disabled, readOnly: true, ref: ref }),
|
|
106
|
+
!!inputValue ? clearButton : null,
|
|
107
|
+
calendarButton))));
|
|
107
108
|
});
|
|
@@ -6,7 +6,7 @@ const InfiniteTable_1 = require("../../../components/InfiniteTable");
|
|
|
6
6
|
const join_1 = tslib_1.__importDefault(require("../../utils/join"));
|
|
7
7
|
const baseClassName = 'ab-GridList';
|
|
8
8
|
const columnsMap = new Map([
|
|
9
|
-
['item', { field: 'item', header: null,
|
|
9
|
+
['item', { field: 'item', header: null, defaultFlex: 1 }],
|
|
10
10
|
]);
|
|
11
11
|
const GridList = (props) => {
|
|
12
12
|
var _a;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface SelectListOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SelectListProps {
|
|
7
|
+
options: SelectListOption[];
|
|
8
|
+
onChange: (option: SelectListOption) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const SelectList: React.FunctionComponent<SelectListProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const SimpleButton_1 = tslib_1.__importDefault(require("./SimpleButton"));
|
|
7
|
+
exports.SelectList = (props) => {
|
|
8
|
+
return (React.createElement(React.Fragment, null, props.options.map((option) => (React.createElement(SimpleButton_1.default, { p: 2, width: '100%', variant: "text", onClick: () => props.onChange(option), key: option.label }, option.label)))));
|
|
9
|
+
};
|
|
@@ -100,7 +100,7 @@ exports.WindowModal = (props) => {
|
|
|
100
100
|
return react_dom_1.createPortal(React.createElement("div", { style: style,
|
|
101
101
|
//@ts-ignore
|
|
102
102
|
ref: targetRef, onMouseDown: stacking.bringInFront },
|
|
103
|
-
React.createElement(re_resizable_1.Resizable, { onResizeStop: handleResizeStop, onResize: handleResize, bounds: "window", defaultSize: {
|
|
103
|
+
React.createElement(re_resizable_1.Resizable, { minWidth: props.minWidth, minHeight: props.minHeight, onResizeStop: handleResizeStop, onResize: handleResize, bounds: "window", defaultSize: {
|
|
104
104
|
width: props.size.width,
|
|
105
105
|
height: props.size.height,
|
|
106
106
|
} }, props.children)), portalElement);
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const React = tslib_1.__importStar(require("react"));
|
|
5
|
+
const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
|
|
6
|
+
exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
|
|
7
|
+
React.createElement("path", { d: "M11 18H13V15H16V13H13V10H11V13H8V15H11ZM18 22H6Q5.175 22 4.588 21.413Q4 20.825 4 20V4Q4 3.175 4.588 2.587Q5.175 2 6 2H14L20 8V20Q20 20.825 19.413 21.413Q18.825 22 18 22ZM13 9V4H6Q6 4 6 4Q6 4 6 4V20Q6 20 6 20Q6 20 6 20H18Q18 20 18 20Q18 20 18 20V9ZM6 4V9V4V9V20Q6 20 6 20Q6 20 6 20Q6 20 6 20Q6 20 6 20V4Q6 4 6 4Q6 4 6 4Z" })));
|
|
File without changes
|
|
@@ -56,7 +56,7 @@ const column_filter_1 = tslib_1.__importDefault(require("./column-filter"));
|
|
|
56
56
|
const column_info_1 = tslib_1.__importDefault(require("./column-info"));
|
|
57
57
|
const custom_sort_1 = tslib_1.__importDefault(require("./custom-sort"));
|
|
58
58
|
const system_status_1 = tslib_1.__importDefault(require("./system-status"));
|
|
59
|
-
const
|
|
59
|
+
const data_set_1 = tslib_1.__importDefault(require("./data-set"));
|
|
60
60
|
const flashing_cell_1 = tslib_1.__importDefault(require("./flashing-cell"));
|
|
61
61
|
const edit_1 = tslib_1.__importDefault(require("./edit"));
|
|
62
62
|
const equation_1 = tslib_1.__importDefault(require("./equation"));
|
|
@@ -132,6 +132,7 @@ const regex_1 = tslib_1.__importDefault(require("./regex"));
|
|
|
132
132
|
const track_changes_1 = tslib_1.__importDefault(require("./track-changes"));
|
|
133
133
|
const menu_1 = tslib_1.__importDefault(require("./menu"));
|
|
134
134
|
const statusbar_1 = tslib_1.__importDefault(require("./statusbar"));
|
|
135
|
+
const add_row_1 = tslib_1.__importDefault(require("./add-row"));
|
|
135
136
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
136
137
|
const quote_1 = tslib_1.__importDefault(require("./quote"));
|
|
137
138
|
const news_1 = tslib_1.__importDefault(require("./news"));
|
|
@@ -153,7 +154,7 @@ const allIcons = {
|
|
|
153
154
|
call: call_1.default,
|
|
154
155
|
instrument: instrument_1.default,
|
|
155
156
|
news: news_1.default,
|
|
156
|
-
'data-
|
|
157
|
+
'data-set': data_set_1.default,
|
|
157
158
|
export: export_1.default,
|
|
158
159
|
campaign: campaign_1.default,
|
|
159
160
|
broadcast: campaign_1.default,
|
|
@@ -285,6 +286,7 @@ const allIcons = {
|
|
|
285
286
|
'track-changes': track_changes_1.default,
|
|
286
287
|
menu: menu_1.default,
|
|
287
288
|
statusbar: statusbar_1.default,
|
|
289
|
+
'add-row': add_row_1.default,
|
|
288
290
|
};
|
|
289
291
|
Object.keys(allIcons).forEach((name) => {
|
|
290
292
|
const ReactCmp = allIcons[name];
|