@adaptabletools/adaptable 12.2.2 → 14.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +2 -2
- package/bundle.cjs.js +419 -143
- package/index.css +2 -2
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -5
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/EntitlementOptions.d.ts +15 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/GridDataChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +5 -1
- package/src/Api/FilterApi.d.ts +1 -1
- package/src/Api/FinanceApi.d.ts +1 -1
- package/src/Api/FormatColumnApi.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +4 -3
- package/src/Api/Implementation/ActionApiImpl.js +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +9 -9
- package/src/Api/Implementation/ApiBase.js +3 -3
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/DashboardApiImpl.js +2 -2
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -5
- package/src/Api/Implementation/ExportApiImpl.js +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FilterApiImpl.js +6 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +12 -12
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.js +12 -12
- package/src/Api/Implementation/PredicateApiImpl.js +3 -3
- package/src/Api/Implementation/QueryApiImpl.js +6 -6
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -5
- package/src/Api/Implementation/ScopeApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +9 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +10 -10
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -17
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.js +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +2 -2
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +2 -2
- package/src/Redux/ActionsReducers/CustomSortRedux.js +2 -2
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +2 -2
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +2 -2
- package/src/Redux/ActionsReducers/GridRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +2 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.js +10 -10
- package/src/Redux/ActionsReducers/ShortcutRedux.js +2 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +8 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +9 -9
- package/src/Redux/Store/AdaptableStore.js +23 -23
- package/src/Strategy/AlertModule.js +6 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ConditionalStyleModule.js +8 -8
- package/src/Strategy/CustomSortModule.js +3 -3
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSetModule.js +2 -2
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +7 -7
- package/src/Strategy/FormatColumnModule.js +8 -8
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/PlusMinusModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/ShortcutModule.js +3 -3
- package/src/Strategy/StatusBarModule.d.ts +1 -1
- package/src/Strategy/TeamSharingModule.js +6 -6
- package/src/Strategy/ToolPanelModule.js +4 -4
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +35 -35
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +18 -18
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +10 -10
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +48 -48
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +19 -19
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
- package/src/Utilities/Helpers/DateHelper.js +9 -9
- package/src/Utilities/Helpers/FormatHelper.js +2 -2
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/LoggingHelper.js +1 -1
- package/src/Utilities/Helpers/StyleHelper.js +1 -1
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/ObjectFactory.d.ts +1 -1
- package/src/Utilities/ObjectFactory.js +30 -30
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +3 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +7 -7
- package/src/Utilities/Services/RowEditService.d.ts +1 -1
- package/src/Utilities/Services/TeamSharingService.js +1 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +1 -1
- package/src/View/AdaptableWizardView/Wizard.js +6 -6
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +2 -2
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +3 -3
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -5
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +4 -4
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +5 -5
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- 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/ColorPicker.d.ts +1 -1
- package/src/View/ColorPicker.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +4 -4
- package/src/View/Components/AdaptableInput/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -4
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
- package/src/View/Components/AdaptableObjectRow/index.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +1 -1
- package/src/View/Components/ColumnSelector/index.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +3 -3
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +7 -7
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
- package/src/View/Components/ListBox/DualListBoxEditor.js +10 -10
- package/src/View/Components/ModuleValueSelector/index.js +6 -6
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelToolPanel/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.js +1 -1
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +8 -8
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +5 -5
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +6 -6
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/TagValueSelector/index.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -6
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +6 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -7
- package/src/View/Components/WizardSummaryRow.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +3 -3
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +9 -9
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomDashboardButton.js +2 -2
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -7
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +7 -9
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -7
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +2 -1
- package/src/View/Export/ExportViewPanel.js +14 -5
- package/src/View/Export/ReportExportDropdown.js +3 -3
- package/src/View/Export/Wizard/NewReportWizard.js +4 -4
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -3
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +7 -7
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +6 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
- package/src/View/Layout/LayoutCloneButton.js +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/SaveLayoutButton.js +3 -3
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +5 -5
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +7 -7
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -8
- package/src/View/Layout/Wizard/sections/FilterSection.js +5 -5
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +6 -6
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +3 -3
- package/src/View/Query/EditCurrentQueryButton.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +3 -3
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -4
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/View/StateManagement/components/LoadButton.js +1 -1
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +5 -5
- package/src/View/StatusBar/StatusBarPopup.js +2 -2
- package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +2 -2
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/View/Theme/ThemeViewPanel.js +2 -2
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -5
- package/src/View/Wizard/OnePageWizards.js +14 -12
- package/src/View/Wizard/useKeyboardNavigation.js +1 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +3 -3
- package/src/agGrid/Adaptable.d.ts +19 -11
- package/src/agGrid/Adaptable.js +157 -160
- package/src/agGrid/CheckboxRenderer.d.ts +1 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/FloatingFilterWrapper.js +1 -1
- package/src/agGrid/GroupCellRenderer.d.ts +1 -1
- package/src/agGrid/GroupCellRenderer.js +2 -2
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/agGrid/agGridMenuHelper.d.ts +1 -1
- package/src/agGrid/agGridMenuHelper.js +5 -5
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -5
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
- package/src/agGrid/weightedAverage.d.ts +1 -1
- package/src/agGrid/weightedAverage.js +3 -3
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/AdaptableIconComponent/index.js +14 -17
- package/src/components/CheckBox/index.js +3 -3
- package/src/components/CodeBlock/index.js +1 -1
- package/src/components/Dashboard/Dashboard.js +8 -8
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/Caption.js +7 -7
- package/src/components/Datepicker/CaptionLabel.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -10
- package/src/components/Dialog/index.js +9 -9
- package/src/components/Dialog/useIsOpen.js +1 -1
- package/src/components/Dropdown/index.js +6 -6
- package/src/components/DropdownButton/index.js +7 -7
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/DropdownButton/useExpanded.js +4 -4
- package/src/components/EllipsisContainer/index.js +8 -8
- package/src/components/EmptyContent/index.js +1 -1
- package/src/components/ErrorBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +20 -7
- package/src/components/ExpressionEditor/EditorButton.js +1 -1
- package/src/components/ExpressionEditor/EditorContext.js +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +9 -9
- package/src/components/ExpressionEditor/NamedQueryContext.js +2 -2
- package/src/components/ExpressionEditor/index.js +8 -8
- package/src/components/FieldWrap/index.js +1 -1
- package/src/components/FileDroppable/index.js +4 -4
- package/src/components/FormLayout/index.js +4 -4
- package/src/components/HelpBlock/index.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/Input/index.js +1 -1
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/List/ListGroup/index.js +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.js +2 -2
- package/src/components/Modal/Backdrop.js +5 -5
- package/src/components/Modal/index.js +5 -5
- package/src/components/NotifyResize/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +15 -15
- package/src/components/OverlayTrigger/getOverlayStyle.js +1 -1
- package/src/components/OverlayTrigger/index.js +24 -24
- package/src/components/OverlayTrigger/useAgGridClassName.js +2 -2
- package/src/components/Panel/index.js +3 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/src/components/Radio/index.js +3 -3
- package/src/components/ResizeObserver/index.js +10 -10
- package/src/components/SelectableList/index.js +4 -4
- package/src/components/SimpleButton/index.js +3 -3
- package/src/components/StylePreview.js +1 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/Tabs/index.js +6 -7
- package/src/components/Tag/Tag.js +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Textarea/index.js +1 -1
- package/src/components/ToggleButton/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WindowModal/useStacking.js +1 -1
- package/src/components/WizardPanel/index.js +1 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +1 -1
- package/src/components/utils/batchUpdate.js +1 -1
- package/src/components/utils/useAutoFocus.js +2 -2
- package/src/components/utils/useContainerScrollObserver/index.js +7 -7
- package/src/components/utils/useDraggable.js +5 -5
- package/src/components/utils/useLatest.js +2 -2
- package/src/components/utils/usePrevious.js +2 -2
- package/src/components/utils/usePropState.js +1 -1
- package/src/components/utils/useProperty.js +2 -2
- package/src/components/utils/useRerender.js +2 -2
- package/src/components/utils/useSelectionRange.js +3 -3
- package/src/components/utils/uuid.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +18 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -47,7 +47,7 @@ const DATA_TYPES_MAP = {
|
|
|
47
47
|
};
|
|
48
48
|
const DATA_TYPES_OPTIONS = Object.values(DATA_TYPES_MAP);
|
|
49
49
|
const renderScopeSummary = (scope, labels) => {
|
|
50
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
50
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
51
51
|
const scopeApi = adaptable.api.scopeApi;
|
|
52
52
|
const columnsInScope = scopeApi.getColumnsForScope(scope);
|
|
53
53
|
return (React.createElement(React.Fragment, null,
|
|
@@ -62,9 +62,9 @@ const renderScopeSummary = (scope, labels) => {
|
|
|
62
62
|
};
|
|
63
63
|
exports.renderScopeSummary = renderScopeSummary;
|
|
64
64
|
const NewScopeComponent = (props) => {
|
|
65
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
65
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
66
66
|
const { scopeApi, columnApi } = api;
|
|
67
|
-
const [columnsSearchText, setColumnsSearchText] = react_1.useState('');
|
|
67
|
+
const [columnsSearchText, setColumnsSearchText] = (0, react_1.useState)('');
|
|
68
68
|
const scopeColumns = props.scopeColumns || columnApi.getColumns();
|
|
69
69
|
const getScopeChoice = (scope) => {
|
|
70
70
|
if (!scope) {
|
|
@@ -18,7 +18,7 @@ class PanelToolPanel extends React.Component {
|
|
|
18
18
|
React.createElement(rebass_1.Flex, { className: "ab-ToolPanelPanel__header-text", flex: 1, alignItems: "center", marginLeft: 0 }, headerText),
|
|
19
19
|
onConfigure && (React.createElement(ButtonConfigure_1.ButtonConfigure, { iconSize: 16, marginLeft: 1, className: "ab-ToolPanelPanel__header-configure-button", tooltip: 'Configure ' + headerText, onClick: () => onConfigure() })),
|
|
20
20
|
onClose && (React.createElement(ButtonClose_1.ButtonClose, { marginLeft: 0, className: "ab-ToolPanelPanel__header-close-button", tooltip: 'Close ' + headerText, onClick: () => onClose(), disabled: props.disabled }))));
|
|
21
|
-
return (React.createElement(Panel_1.default, Object.assign({ border: "var(--ab-cmp-toolpanelpanel__border)" }, props, { className: join_1.default('ab-ToolPanelPanel', props.className), header: header, style: Object.assign({ color: 'var(--ab-cmp-toolpanelpanel__color)', fill: 'var(--ab-cmp-toolpanelpanel__fill)' }, props.style), headerProps: Object.assign(Object.assign({}, props.headerProps), { alignItems: 'stretch', style: Object.assign({ padding: 'var(--ab-cmp-toolpanelpanel_header__padding)', background: 'var(--ab-cmp-toolpanelpanel_header__background)', color: 'var(--ab-cmp-toolpanelpanel_header__color)', fill: 'var(--ab-cmp-toolpanelpanel_header__fill)' }, (props.headerProps ? props.headerProps.style : null)) }), bodyProps: Object.assign(Object.assign({}, props.bodyProps), { style: Object.assign(Object.assign({ padding: 'var(--ab-cmp-dashboardpanel_body__padding)', background: 'var(--ab-cmp-dashboardpanel_body__background)' }, (props.bodyProps ? props.bodyProps.style : null)), { display: 'flex', flexDirection: 'column' }) }) })));
|
|
21
|
+
return (React.createElement(Panel_1.default, Object.assign({ border: "var(--ab-cmp-toolpanelpanel__border)" }, props, { className: (0, join_1.default)('ab-ToolPanelPanel', props.className), header: header, style: Object.assign({ color: 'var(--ab-cmp-toolpanelpanel__color)', fill: 'var(--ab-cmp-toolpanelpanel__fill)' }, props.style), headerProps: Object.assign(Object.assign({}, props.headerProps), { alignItems: 'stretch', style: Object.assign({ padding: 'var(--ab-cmp-toolpanelpanel_header__padding)', background: 'var(--ab-cmp-toolpanelpanel_header__background)', color: 'var(--ab-cmp-toolpanelpanel_header__color)', fill: 'var(--ab-cmp-toolpanelpanel_header__fill)' }, (props.headerProps ? props.headerProps.style : null)) }), bodyProps: Object.assign(Object.assign({}, props.bodyProps), { style: Object.assign(Object.assign({ padding: 'var(--ab-cmp-dashboardpanel_body__padding)', background: 'var(--ab-cmp-dashboardpanel_body__background)' }, (props.bodyProps ? props.bodyProps.style : null)), { display: 'flex', flexDirection: 'column' }) }) })));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
exports.PanelToolPanel = PanelToolPanel;
|
|
@@ -39,4 +39,4 @@ class PanelWithImageCmp extends React.Component {
|
|
|
39
39
|
}
|
|
40
40
|
// apparently it's very hard to type `withTheme()` result in typescript
|
|
41
41
|
// @ts-ignore
|
|
42
|
-
exports.PanelWithImage = styled_components_1.withTheme(PanelWithImageCmp);
|
|
42
|
+
exports.PanelWithImage = (0, styled_components_1.withTheme)(PanelWithImageCmp);
|
|
@@ -10,7 +10,7 @@ const AdaptableContext_1 = require("../../AdaptableContext");
|
|
|
10
10
|
const ListBoxFilterForm_1 = require("../FilterForm/ListBoxFilterForm");
|
|
11
11
|
const PermitedValuesSelector = (props) => {
|
|
12
12
|
var _a;
|
|
13
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
13
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
14
|
const columnId = props.scope.ColumnIds[0];
|
|
15
15
|
const column = adaptable.api.columnApi.getColumnFromId(columnId);
|
|
16
16
|
const distinctValues = ((_a = adaptable.api.columnApi.getDistinctDisplayValuesForColumn(columnId)) !== null && _a !== void 0 ? _a : []).map((value) => ({ value: value, label: value }));
|
|
@@ -17,10 +17,10 @@ const useMenuItems_1 = require("./useMenuItems");
|
|
|
17
17
|
const AdaptablePopupDialog_1 = require("./AdaptablePopupDialog");
|
|
18
18
|
const AdaptablePopup = (props) => {
|
|
19
19
|
var _a, _b, _c;
|
|
20
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
20
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
21
21
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
22
22
|
const settingsPanelTitle = adaptable.api.internalApi.getModuleFriendlyName('SettingsPanel');
|
|
23
|
-
const menuItems = useMenuItems_1.useMenuItems();
|
|
23
|
+
const menuItems = (0, useMenuItems_1.useMenuItems)();
|
|
24
24
|
const isWindowModal = settingsPanelOptions.popupType === 'window';
|
|
25
25
|
const modalContainer = (_b = (_a = adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.containerOptions) === null || _b === void 0 ? void 0 : _b.modalContainer;
|
|
26
26
|
let friendlyName = null;
|
|
@@ -63,7 +63,7 @@ const AdaptablePopup = (props) => {
|
|
|
63
63
|
moduleViewContent = (React.createElement(AdaptablePopupBody_1.AdaptablePopupBody, { api: props.api, module: module, componentName: props.componentName, moduleParams: props.moduleParams, onClearParams: props.onClearParams, onHide: props.onHide }));
|
|
64
64
|
}
|
|
65
65
|
const baseClassName = 'ab-Adaptable-Popup';
|
|
66
|
-
const className = join_1.default(baseClassName, `${baseClassName}--${isWindowModal ? 'window' : 'modal'}`, isStandalone ? `${baseClassName}--action-popup` : `${baseClassName}--settings-popup`);
|
|
66
|
+
const className = (0, join_1.default)(baseClassName, `${baseClassName}--${isWindowModal ? 'window' : 'modal'}`, isStandalone ? `${baseClassName}--action-popup` : `${baseClassName}--settings-popup`);
|
|
67
67
|
return (React.createElement(PopupContext_1.default.Provider, { value: {
|
|
68
68
|
hidePopup: () => {
|
|
69
69
|
if (props.onHide) {
|
|
@@ -12,20 +12,20 @@ const Utilities_1 = require("../Utilities");
|
|
|
12
12
|
const WindowDialog = (props) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
const { onChange, style, baseClassName, className, isActionModule, settingsPanelOptionsKey, onHide } = props, dialogProps = tslib_1.__rest(props, ["onChange", "style", "baseClassName", "className", "isActionModule", "settingsPanelOptionsKey", "onHide"]);
|
|
15
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
16
|
-
const dispatch = react_redux_1.useDispatch();
|
|
15
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
16
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
17
17
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
18
|
-
let popupSettings = react_redux_1.useSelector((state) => { var _a, _b; return (_b = (_a = state === null || state === void 0 ? void 0 : state.System) === null || _a === void 0 ? void 0 : _a.SettingsPanel) === null || _b === void 0 ? void 0 : _b[settingsPanelOptionsKey]; });
|
|
18
|
+
let popupSettings = (0, react_redux_1.useSelector)((state) => { var _a, _b; return (_b = (_a = state === null || state === void 0 ? void 0 : state.System) === null || _a === void 0 ? void 0 : _a.SettingsPanel) === null || _b === void 0 ? void 0 : _b[settingsPanelOptionsKey]; });
|
|
19
19
|
const handleWindowSettings = (settings) => {
|
|
20
|
-
dispatch(SystemRedux_1.SystemSettingsPanelSet(settingsPanelOptionsKey, settings));
|
|
20
|
+
dispatch((0, SystemRedux_1.SystemSettingsPanelSet)(settingsPanelOptionsKey, settings));
|
|
21
21
|
};
|
|
22
22
|
if (!popupSettings) {
|
|
23
23
|
const size = isActionModule
|
|
24
|
-
? Utilities_1.getActionPanelSize()
|
|
25
|
-
: (_a = settingsPanelOptions.size) !== null && _a !== void 0 ? _a : Utilities_1.getSettingsPanelSize();
|
|
24
|
+
? (0, Utilities_1.getActionPanelSize)()
|
|
25
|
+
: (_a = settingsPanelOptions.size) !== null && _a !== void 0 ? _a : (0, Utilities_1.getSettingsPanelSize)();
|
|
26
26
|
popupSettings = {
|
|
27
27
|
size: size,
|
|
28
|
-
position: (_b = settingsPanelOptions.position) !== null && _b !== void 0 ? _b : Utilities_1.getMiddlePosition(size),
|
|
28
|
+
position: (_b = settingsPanelOptions.position) !== null && _b !== void 0 ? _b : (0, Utilities_1.getMiddlePosition)(size),
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
const windowModalProps = {
|
|
@@ -67,7 +67,7 @@ const AdaptablePopupDialog = (props) => {
|
|
|
67
67
|
else {
|
|
68
68
|
ref = modalContainer;
|
|
69
69
|
}
|
|
70
|
-
return react_dom_1.createPortal(React.createElement(Dialog_1.default, { modal: false, fixed: false, onDismiss: onHide, className: className }, children), ref);
|
|
70
|
+
return (0, react_dom_1.createPortal)(React.createElement(Dialog_1.default, { modal: false, fixed: false, onDismiss: onHide, className: className }, children), ref);
|
|
71
71
|
}
|
|
72
72
|
if (isWindowModal) {
|
|
73
73
|
const settingsPanelOptionsKey = isActionModule ? `action-${friendlyName}` : 'settings';
|
|
@@ -19,7 +19,7 @@ const AdaptablePopupModuleView = (props) => {
|
|
|
19
19
|
* This triggers an render for each redux change.
|
|
20
20
|
* Not sure yet how to trigger this component to render when an item is edited.
|
|
21
21
|
*/
|
|
22
|
-
react_redux_1.useSelector((state) => state);
|
|
22
|
+
(0, react_redux_1.useSelector)((state) => state);
|
|
23
23
|
const [abObjectType, setAbObjectType] = React.useState(null);
|
|
24
24
|
const moduleInfo = props.module.moduleInfo;
|
|
25
25
|
const items = (_a = props.module) === null || _a === void 0 ? void 0 : _a.toViewAll();
|
|
@@ -95,8 +95,8 @@ const AdaptablePopupModuleView = (props) => {
|
|
|
95
95
|
const adaptableModule = props.api.internalApi
|
|
96
96
|
.getModuleService()
|
|
97
97
|
.getModuleById(props.module.moduleInfo.ModuleName);
|
|
98
|
-
const dispatch = react_redux_1.useDispatch();
|
|
99
|
-
const showLayoutNotAssociatedObjects = react_redux_1.useSelector((state) => state.System.ShowLayoutNotAssociatedObjects);
|
|
98
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
99
|
+
const showLayoutNotAssociatedObjects = (0, react_redux_1.useSelector)((state) => state.System.ShowLayoutNotAssociatedObjects);
|
|
100
100
|
const toggleButtonShowLayoutAssociatedObjects = () => {
|
|
101
101
|
if (!(adaptableModule === null || adaptableModule === void 0 ? void 0 : adaptableModule.canBeAssociatedWithLayouts())) {
|
|
102
102
|
return;
|
|
@@ -105,7 +105,7 @@ const AdaptablePopupModuleView = (props) => {
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
return (React.createElement(rebass_1.Flex, { justifyContent: "flex-start" },
|
|
108
|
-
React.createElement(CheckBox_1.CheckBox, { padding: 0, margin: 0, checked: showLayoutNotAssociatedObjects, onChange: (checked) => dispatch(SystemRedux_1.SystemLayoutShowNotAssociatedObjects(checked)) },
|
|
108
|
+
React.createElement(CheckBox_1.CheckBox, { padding: 0, margin: 0, checked: showLayoutNotAssociatedObjects, onChange: (checked) => dispatch((0, SystemRedux_1.SystemLayoutShowNotAssociatedObjects)(checked)) },
|
|
109
109
|
"Show ",
|
|
110
110
|
moduleInfo.FriendlyName,
|
|
111
111
|
"s not available in current Layout")));
|
|
@@ -8,7 +8,7 @@ const join_1 = tslib_1.__importDefault(require("../../../../components/utils/joi
|
|
|
8
8
|
const useGlobalEvent_1 = require("../../../../components/utils/useGlobalEvent");
|
|
9
9
|
const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconComponent");
|
|
10
10
|
const Navigation = (props) => {
|
|
11
|
-
const dispatch = react_redux_1.useDispatch();
|
|
11
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
12
12
|
const handleKeyPress = React.useCallback((event) => {
|
|
13
13
|
if ((event.ctrlKey || event.metaKey) &&
|
|
14
14
|
(event.code === 'ArrowUp' || event.code === 'ArrowDown')) {
|
|
@@ -32,7 +32,7 @@ const Navigation = (props) => {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}, [props.activeItem, props.menuItems]);
|
|
35
|
-
useGlobalEvent_1.useGlobalEvent('keydown', handleKeyPress);
|
|
35
|
+
(0, useGlobalEvent_1.useGlobalEvent)('keydown', handleKeyPress);
|
|
36
36
|
return (React.createElement("nav", { className: "ab-Adaptable-Popup__Navigation" },
|
|
37
37
|
React.createElement("ul", { className: "ab-Adaptable-Popup__Navigation__List" }, props.menuItems.map((menuItem, index) => {
|
|
38
38
|
var _a, _b, _c, _d, _e;
|
|
@@ -41,7 +41,7 @@ const Navigation = (props) => {
|
|
|
41
41
|
return React.createElement("li", { key: `separator-${index}`, className: `${baseClassName}__Separator` });
|
|
42
42
|
}
|
|
43
43
|
const isActive = props.activeItem === menuItem.module || menuItem.label === props.activeItem;
|
|
44
|
-
const className = join_1.default(baseClassName, isActive && `${baseClassName}--active`);
|
|
44
|
+
const className = (0, join_1.default)(baseClassName, isActive && `${baseClassName}--active`);
|
|
45
45
|
let customIcon = (_d = (_c = (_b = (_a = props.customSettingsPanels) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, (customSettingPanel) => customSettingPanel.name === menuItem.label)) === null || _c === void 0 ? void 0 : _c.icon) !== null && _d !== void 0 ? _d : null;
|
|
46
46
|
return (React.createElement("li", { className: className, key: menuItem.label },
|
|
47
47
|
React.createElement("button", { type: "button", className: `${baseClassName}__Button`, onClick: () => {
|
|
@@ -9,7 +9,7 @@ const ButtonInfo_1 = require("../../Buttons/ButtonInfo");
|
|
|
9
9
|
const Noop = () => React.createElement(React.Fragment, null);
|
|
10
10
|
const PopupPanel = (props) => {
|
|
11
11
|
const baseClassName = 'ab-Adaptable-Popup__Panel';
|
|
12
|
-
return (React.createElement(rebass_1.Flex, { flexDirection: "column", flex: "1 1 0", className: join_1.default(props.className, baseClassName) },
|
|
12
|
+
return (React.createElement(rebass_1.Flex, { flexDirection: "column", flex: "1 1 0", className: (0, join_1.default)(props.className, baseClassName) },
|
|
13
13
|
React.createElement("div", { className: `${baseClassName}__Header` },
|
|
14
14
|
React.createElement(rebass_1.Flex, { alignItems: "center" },
|
|
15
15
|
React.createElement(rebass_1.Box, { marginRight: 0, "data-name": "space-before" }),
|
|
@@ -10,7 +10,7 @@ const AdaptableIconComponent_1 = require("../../../../components/AdaptableIconCo
|
|
|
10
10
|
const TopBar = (props) => {
|
|
11
11
|
var _a;
|
|
12
12
|
const baseClassName = 'ab-Adaptable-Popup__TopBar';
|
|
13
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
13
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
14
14
|
const applicationIcon = (_a = adaptable.api.internalApi.getAdaptableOptions().userInterfaceOptions) === null || _a === void 0 ? void 0 : _a.applicationIcon;
|
|
15
15
|
let icon = React.createElement(React.Fragment, null);
|
|
16
16
|
const iconClassName = `${baseClassName}__Icon`;
|
|
@@ -8,9 +8,9 @@ const DefaultSettingsPanel_1 = require("../../../../Utilities/Defaults/DefaultSe
|
|
|
8
8
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
9
9
|
const PopupRedux = tslib_1.__importStar(require("../../../../Redux/ActionsReducers/PopupRedux"));
|
|
10
10
|
const useMenuItems = () => {
|
|
11
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
11
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
12
12
|
const settingsPanelOptions = adaptable.adaptableOptions.settingsPanelOptions;
|
|
13
|
-
const allMenuItems = react_redux_1.useSelector((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.SettingPanelModuleMenuItems; });
|
|
13
|
+
const allMenuItems = (0, react_redux_1.useSelector)((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.SettingPanelModuleMenuItems; });
|
|
14
14
|
return React.useMemo(() => {
|
|
15
15
|
var _a;
|
|
16
16
|
let navigationItems = (_a = settingsPanelOptions === null || settingsPanelOptions === void 0 ? void 0 : settingsPanelOptions.navigation) === null || _a === void 0 ? void 0 : _a.items;
|
|
@@ -17,7 +17,7 @@ const AdaptablePopupAlert = (props) => {
|
|
|
17
17
|
const msg = (_a = props.adaptableAlert.message) !== null && _a !== void 0 ? _a : '';
|
|
18
18
|
const headerColor = UIHelper_1.UIHelper.getColorByMessageType(messageType);
|
|
19
19
|
let header = messageType;
|
|
20
|
-
const { api, adaptableOptions } = AdaptableContext_1.useAdaptable();
|
|
20
|
+
const { api, adaptableOptions } = (0, AdaptableContext_1.useAdaptable)();
|
|
21
21
|
if (props.adaptableAlert.header) {
|
|
22
22
|
header = `${header}: ${props.adaptableAlert.header}`;
|
|
23
23
|
}
|
|
@@ -35,7 +35,7 @@ const AdaptablePopupAlert = (props) => {
|
|
|
35
35
|
],
|
|
36
36
|
};
|
|
37
37
|
}, []);
|
|
38
|
-
const [formData, setFormData] = react_1.useState({});
|
|
38
|
+
const [formData, setFormData] = (0, react_1.useState)({});
|
|
39
39
|
const context = React.useMemo(() => {
|
|
40
40
|
return {
|
|
41
41
|
alert: props.adaptableAlert,
|
|
@@ -11,7 +11,7 @@ const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
|
11
11
|
const react_redux_1 = require("react-redux");
|
|
12
12
|
const AdaptablePopupPrompt = (props) => {
|
|
13
13
|
var _a;
|
|
14
|
-
const dispatch = react_redux_1.useDispatch();
|
|
14
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
15
15
|
const [promptText, setPromptText] = React.useState((_a = props.defaultValue) !== null && _a !== void 0 ? _a : '');
|
|
16
16
|
const onCloseForm = () => {
|
|
17
17
|
setPromptText('');
|
|
@@ -14,7 +14,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
|
|
|
14
14
|
const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
|
|
15
15
|
const AdaptablePopupTeamSharing = (props) => {
|
|
16
16
|
const { showPopup, onClose, onConfirm, header } = props;
|
|
17
|
-
const [config, setConfig] = react_1.useState({
|
|
17
|
+
const [config, setConfig] = (0, react_1.useState)({
|
|
18
18
|
description: '',
|
|
19
19
|
type: 'Snapshot',
|
|
20
20
|
});
|
|
@@ -11,13 +11,13 @@ const AdaptableForm_1 = require("../../../../PredefinedConfig/Common/AdaptableFo
|
|
|
11
11
|
const PopupRedux_1 = require("../../../../Redux/ActionsReducers/PopupRedux");
|
|
12
12
|
const AdaptableContext_1 = require("../../../AdaptableContext");
|
|
13
13
|
const FormDialog = ({ id, formProps, form, prepareContext, }) => {
|
|
14
|
-
const dispatch = react_redux_1.useDispatch();
|
|
15
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
14
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
15
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
16
16
|
const [data, setData] = React.useState(() => {
|
|
17
|
-
return AdaptableForm_1.getDefaultAdaptableFormData(form);
|
|
17
|
+
return (0, AdaptableForm_1.getDefaultAdaptableFormData)(form);
|
|
18
18
|
});
|
|
19
19
|
const handleDismiss = () => {
|
|
20
|
-
dispatch(PopupRedux_1.PopupHideForm(id));
|
|
20
|
+
dispatch((0, PopupRedux_1.PopupHideForm)(id));
|
|
21
21
|
};
|
|
22
22
|
const context = Object.assign({ adaptableApi: adaptable.api, formData: data }, formProps);
|
|
23
23
|
return (React.createElement(Dialog_1.default, { isOpen: true, showCloseButton: false, style: { minHeight: 'auto', minWidth: 400, maxHeight: '80vh' }, onDismiss: handleDismiss },
|
|
@@ -31,7 +31,7 @@ const FormDialog = ({ id, formProps, form, prepareContext, }) => {
|
|
|
31
31
|
};
|
|
32
32
|
exports.FormDialog = FormDialog;
|
|
33
33
|
const FormPopups = () => {
|
|
34
|
-
const forms = react_redux_1.useSelector((state) => state.Popup.FormPopup.FormList);
|
|
34
|
+
const forms = (0, react_redux_1.useSelector)((state) => state.Popup.FormPopup.FormList);
|
|
35
35
|
return (React.createElement(React.Fragment, null, forms.map((form) => {
|
|
36
36
|
return (React.createElement(exports.FormDialog, { key: form.Id, prepareContext: form.prepareContext, id: form.Id, formProps: form.FormProps, form: form.Form }));
|
|
37
37
|
})));
|
|
@@ -15,8 +15,8 @@ const getActionPanelSize = () => {
|
|
|
15
15
|
const height = window.innerHeight;
|
|
16
16
|
const width = window.innerWidth;
|
|
17
17
|
return {
|
|
18
|
-
height: Helper_1.clamp(600, 0, height * 0.9),
|
|
19
|
-
width: Helper_1.clamp(800, 0, width * 0.9),
|
|
18
|
+
height: (0, Helper_1.clamp)(600, 0, height * 0.9),
|
|
19
|
+
width: (0, Helper_1.clamp)(800, 0, width * 0.9),
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
exports.getActionPanelSize = getActionPanelSize;
|
|
@@ -24,12 +24,12 @@ const getSettingsPanelSize = () => {
|
|
|
24
24
|
const height = window.innerHeight;
|
|
25
25
|
const width = window.innerWidth;
|
|
26
26
|
return {
|
|
27
|
-
height: Helper_1.clamp(height * 0.9, 0, 800),
|
|
28
|
-
width: Helper_1.clamp(width * 0.9, 0, 800),
|
|
27
|
+
height: (0, Helper_1.clamp)(height * 0.9, 0, 800),
|
|
28
|
+
width: (0, Helper_1.clamp)(width * 0.9, 0, 800),
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
exports.getSettingsPanelSize = getSettingsPanelSize;
|
|
32
32
|
const getWindowPopupSize = () => {
|
|
33
|
-
return exports.getSettingsPanelSize();
|
|
33
|
+
return (0, exports.getSettingsPanelSize)();
|
|
34
34
|
};
|
|
35
35
|
exports.getWindowPopupSize = getWindowPopupSize;
|
|
@@ -15,18 +15,18 @@ const NoopComponent = () => {
|
|
|
15
15
|
};
|
|
16
16
|
const WindowPopups = () => {
|
|
17
17
|
const [windowModalSettings, setWindowModalSettings] = React.useState({});
|
|
18
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
-
const dispatch = react_redux_1.useDispatch();
|
|
20
|
-
const windowItems = react_redux_1.useSelector((state) => state.Popup.WindowPopup.PopupList);
|
|
18
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
19
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
20
|
+
const windowItems = (0, react_redux_1.useSelector)((state) => state.Popup.WindowPopup.PopupList);
|
|
21
21
|
return (React.createElement(React.Fragment, null, windowItems === null || windowItems === void 0 ? void 0 : windowItems.map((windowItem, index) => {
|
|
22
22
|
var _a, _b, _c, _d, _e, _f;
|
|
23
23
|
const Component = (_a = windowFactory_1.windowFactory[windowItem.Id]) !== null && _a !== void 0 ? _a : NoopComponent;
|
|
24
24
|
const _g = (_b = windowItem === null || windowItem === void 0 ? void 0 : windowItem.PopupProps) !== null && _b !== void 0 ? _b : {}, { windowModalProps } = _g, restPopupProps = tslib_1.__rest(_g, ["windowModalProps"]);
|
|
25
25
|
const handleDismiss = () => {
|
|
26
|
-
dispatch(PopupRedux_1.PopupHideWindow(windowItem.Id));
|
|
26
|
+
dispatch((0, PopupRedux_1.PopupHideWindow)(windowItem.Id));
|
|
27
27
|
};
|
|
28
|
-
const size = (_d = (_c = windowModalSettings === null || windowModalSettings === void 0 ? void 0 : windowModalSettings[windowItem.Id]) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : Utilities_1.getWindowPopupSize();
|
|
29
|
-
const position = (_f = (_e = windowModalSettings === null || windowModalSettings === void 0 ? void 0 : windowModalSettings[windowItem.Id]) === null || _e === void 0 ? void 0 : _e.position) !== null && _f !== void 0 ? _f : Utilities_1.getMiddlePosition(size);
|
|
28
|
+
const size = (_d = (_c = windowModalSettings === null || windowModalSettings === void 0 ? void 0 : windowModalSettings[windowItem.Id]) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : (0, Utilities_1.getWindowPopupSize)();
|
|
29
|
+
const position = (_f = (_e = windowModalSettings === null || windowModalSettings === void 0 ? void 0 : windowModalSettings[windowItem.Id]) === null || _e === void 0 ? void 0 : _e.position) !== null && _f !== void 0 ? _f : (0, Utilities_1.getMiddlePosition)(size);
|
|
30
30
|
return (React.createElement(Dialog_1.default, { "data-name": windowItem.Id, style: { height: '100%' }, className: "ab-Window-Modal", key: windowItem.Id, windowModal: true, windowModalProps: Object.assign(Object.assign({}, windowModalProps), { onChange: (settings) => {
|
|
31
31
|
setWindowModalSettings((settingsMap) => (Object.assign(Object.assign({}, settingsMap), { [windowItem.Id]: settings })));
|
|
32
32
|
}, handleSelector: '.ab-Window-Modal .ab-Panel__header', size: size, position: position }), fixed: false, padding: 0, onDismiss: handleDismiss, isOpen: true, showCloseButton: true },
|
|
@@ -94,7 +94,7 @@ class RangesComponent extends React.Component {
|
|
|
94
94
|
onRangesTypeChanged(checked) {
|
|
95
95
|
if (checked) {
|
|
96
96
|
let columnComparison = {
|
|
97
|
-
Color: UIHelper_1.getHexForName(UIHelper_1.DARK_GREEN),
|
|
97
|
+
Color: (0, UIHelper_1.getHexForName)(UIHelper_1.DARK_GREEN),
|
|
98
98
|
MinValue: undefined,
|
|
99
99
|
MaxValue: undefined,
|
|
100
100
|
};
|
|
@@ -149,7 +149,7 @@ class RangesComponent extends React.Component {
|
|
|
149
149
|
this.state.ranges.push({
|
|
150
150
|
Min: lastRange.Max == 'Col-Max' ? 0 : lastRange.Max,
|
|
151
151
|
Max: lastRange.Max,
|
|
152
|
-
Color: UIHelper_1.getHexForName(UIHelper_1.GRAY),
|
|
152
|
+
Color: (0, UIHelper_1.getHexForName)(UIHelper_1.GRAY),
|
|
153
153
|
}),
|
|
154
154
|
this.props.updateRanges(this.state.ranges);
|
|
155
155
|
}
|
|
@@ -27,7 +27,7 @@ class ColumnValueSelector extends React.Component {
|
|
|
27
27
|
}
|
|
28
28
|
// JW "fixed" this by replacing display values with raw values but really we should do it nicer in some way
|
|
29
29
|
// so that you we show the display value but we work on the raw value
|
|
30
|
-
const columnDisplayValuePairs = await runIfNotResolvedIn_1.runIfNotResolvedIn(this.props.api.columnApi.getDistinctBulkUpdateDisplayValuesForColumn(this.props.selectedColumn.columnId, this.props.selectedGridCells), () => this.setState({ isDistinctColumnValuesLoading: true }));
|
|
30
|
+
const columnDisplayValuePairs = await (0, runIfNotResolvedIn_1.runIfNotResolvedIn)(this.props.api.columnApi.getDistinctBulkUpdateDisplayValuesForColumn(this.props.selectedColumn.columnId, this.props.selectedGridCells), () => this.setState({ isDistinctColumnValuesLoading: true }));
|
|
31
31
|
this.setState({ isDistinctColumnValuesLoading: false });
|
|
32
32
|
const newSortedColumnValues = ArrayExtensions_1.ArrayExtensions.sortArray(columnDisplayValuePairs, Enums_1.SortOrder.Asc).map((v) => ({
|
|
33
33
|
label: v,
|
|
@@ -63,7 +63,7 @@ class ColumnValueSelector extends React.Component {
|
|
|
63
63
|
// placeholderText += ' or enter free text';
|
|
64
64
|
}
|
|
65
65
|
const baseClassName = 'ab-column-value-selector';
|
|
66
|
-
const className = join_1.default('ab-column-value-selector', this.state.isDistinctColumnValuesLoading && `${baseClassName}--loading`);
|
|
66
|
+
const className = (0, join_1.default)('ab-column-value-selector', this.state.isDistinctColumnValuesLoading && `${baseClassName}--loading`);
|
|
67
67
|
const fieldWidth = 150;
|
|
68
68
|
const items = this.state.isDistinctColumnValuesLoading
|
|
69
69
|
? [
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const ValueSelector_1 = require("../ValueSelector");
|
|
7
7
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
8
8
|
const TagValueSelector = (props) => {
|
|
9
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
9
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
10
10
|
const getDefaultTags = () => {
|
|
11
11
|
var _a;
|
|
12
12
|
return (_a = api.internalApi.getAvailableTags()) !== null && _a !== void 0 ? _a : [];
|
|
@@ -19,7 +19,7 @@ const TagValueSelector = (props) => {
|
|
|
19
19
|
exports.TagValueSelector = TagValueSelector;
|
|
20
20
|
const TagValueOptionsTags = (props) => {
|
|
21
21
|
const { tags = [] } = props;
|
|
22
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
22
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
23
23
|
return (React.createElement(ValueSelector_1.ValueOptionsTags, { options: tags, value: tags.map((tag) => api.internalApi.getValueForTag(tag)), toIdentifier: (tag) => api.internalApi.getValueForTag(tag), toLabel: (tag) => api.internalApi.getLabelForTag(tag), allowWrap: true, readOnly: true }));
|
|
24
24
|
};
|
|
25
25
|
exports.TagValueOptionsTags = TagValueOptionsTags;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as Redux from 'redux';
|
|
3
3
|
import * as ToolPanelRedux from '../../../Redux/ActionsReducers/ToolPanelRedux';
|
|
4
4
|
import * as SystemRedux from '../../../Redux/ActionsReducers/SystemRedux';
|
|
5
|
-
import { IToolPanelParams } from '@ag-grid-community/
|
|
5
|
+
import { IToolPanelParams } from '@ag-grid-community/core';
|
|
6
6
|
import { AdaptableApi } from '../../../types';
|
|
7
7
|
import { AdaptableMenuItem } from '../../../PredefinedConfig/Common/Menu';
|
|
8
8
|
import { AdaptableModuleButtons, AdaptableToolPanel } from '../../../PredefinedConfig/Common/Types';
|
|
@@ -23,7 +23,7 @@ interface AdaptableToolPanelProps {
|
|
|
23
23
|
onExpandToolPanel: (toolPanel: AdaptableToolPanel | string) => ToolPanelRedux.ToolPanelExpandToolPanelAction;
|
|
24
24
|
onCollapseToolPanel: (toolPanel: AdaptableToolPanel | string) => ToolPanelRedux.ToolPanelCollapseToolPanelAction;
|
|
25
25
|
}
|
|
26
|
-
export declare const ConnectedAdaptableToolPanel: import("react-redux").ConnectedComponent<(props: AdaptableToolPanelProps) => JSX.Element, import("react-redux").Omit<AdaptableToolPanelProps, "onClick" | "Columns" | "
|
|
26
|
+
export declare const ConnectedAdaptableToolPanel: import("react-redux").ConnectedComponent<(props: AdaptableToolPanelProps) => JSX.Element, import("react-redux").Omit<AdaptableToolPanelProps, "onClick" | "Columns" | "ModuleButtons" | "ToolPanels" | "MainMenuItems" | "onNewColumnListOrder" | "onShowToolPanel" | "onHideToolPanel" | "onExpandToolPanel" | "onCollapseToolPanel">>;
|
|
27
27
|
export declare const getAdaptableToolPanelAgGridComponent: (adaptable?: IAdaptable) => {
|
|
28
28
|
new (): {
|
|
29
29
|
gui: HTMLElement;
|
|
@@ -138,7 +138,7 @@ const AdaptableToolPanelComponent = (props) => {
|
|
|
138
138
|
toolPanelButtons.push(moduleButtons.map((x) => {
|
|
139
139
|
let menuItem = props.MainMenuItems.find((y) => y.isVisible && y.module == x);
|
|
140
140
|
if (menuItem) {
|
|
141
|
-
return (React.createElement(SimpleButton_1.default, { "data-name": menuItem.module, key: menuItem.label, icon: menuItem.icon, tone: "none", variant: "text", className: `ab-ToolPanel__Home__${kebabCase_1.default(menuItem.label)}`, tooltip: menuItem.label, onClick: () => props.onClick(menuItem.reduxAction), accessLevel: 'Full' }));
|
|
141
|
+
return (React.createElement(SimpleButton_1.default, { "data-name": menuItem.module, key: menuItem.label, icon: menuItem.icon, tone: "none", variant: "text", className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(menuItem.label)}`, tooltip: menuItem.label, onClick: () => props.onClick(menuItem.reduxAction), accessLevel: 'Full' }));
|
|
142
142
|
}
|
|
143
143
|
}));
|
|
144
144
|
}
|
|
@@ -162,8 +162,8 @@ const AdaptableToolPanelComponent = (props) => {
|
|
|
162
162
|
const disabled = button.disabled && button.disabled(button, toolPanelContext);
|
|
163
163
|
const buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text';
|
|
164
164
|
const buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none';
|
|
165
|
-
const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : uuid_1.createUuid();
|
|
166
|
-
return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
|
|
165
|
+
const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : (0, uuid_1.createUuid)();
|
|
166
|
+
return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
|
|
167
167
|
});
|
|
168
168
|
};
|
|
169
169
|
const onSetColumnVisibility = (name) => {
|
|
@@ -225,7 +225,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
225
225
|
onCollapseToolPanel: (toolPanel) => dispatch(ToolPanelRedux.ToolPanelCollapseToolPanel(toolPanel)),
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
exports.ConnectedAdaptableToolPanel = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(AdaptableToolPanelComponent);
|
|
228
|
+
exports.ConnectedAdaptableToolPanel = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(AdaptableToolPanelComponent);
|
|
229
229
|
const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
230
230
|
return class AdaptableToolPanelAgGridComponent {
|
|
231
231
|
init(params) {
|
|
@@ -238,7 +238,7 @@ const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
|
238
238
|
this.gui.className = 'ag-adaptable-panel';
|
|
239
239
|
this.gui.style.width = '100%';
|
|
240
240
|
this.gui.style.overflow = 'auto';
|
|
241
|
-
react_dom_1.render(renderWithAdaptableContext_1.renderWithAdaptableContext(React.createElement(exports.ConnectedAdaptableToolPanel, { api: api, teamSharingActivated: false }), Adaptable), this.gui);
|
|
241
|
+
(0, react_dom_1.render)((0, renderWithAdaptableContext_1.renderWithAdaptableContext)(React.createElement(exports.ConnectedAdaptableToolPanel, { api: api, teamSharingActivated: false }), Adaptable), this.gui);
|
|
242
242
|
}
|
|
243
243
|
getGui() {
|
|
244
244
|
if (!this.gui) {
|
|
@@ -252,4 +252,4 @@ const getAdaptableToolPanelAgGridComponent = (adaptable) => {
|
|
|
252
252
|
};
|
|
253
253
|
};
|
|
254
254
|
exports.getAdaptableToolPanelAgGridComponent = getAdaptableToolPanelAgGridComponent;
|
|
255
|
-
exports.AdaptableToolPanelAgGridComponent = exports.getAdaptableToolPanelAgGridComponent();
|
|
255
|
+
exports.AdaptableToolPanelAgGridComponent = (0, exports.getAdaptableToolPanelAgGridComponent)();
|
|
@@ -11,12 +11,12 @@ const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
|
11
11
|
const CustomToolPanelContent = (props) => {
|
|
12
12
|
var _a;
|
|
13
13
|
const { customToolPanel } = props;
|
|
14
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
15
|
-
const contentsDivDomRef = react_1.useRef();
|
|
14
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
15
|
+
const contentsDivDomRef = (0, react_1.useRef)();
|
|
16
16
|
const contentsDivId = `ab-ToolPanel__${customToolPanel.name}__contents`;
|
|
17
17
|
const buttonsDivId = `ab-ToolPanel__${customToolPanel.name}__buttons`;
|
|
18
|
-
const [contentsHTML, setContentsHTML] = react_1.useState('');
|
|
19
|
-
react_1.useLayoutEffect(() => {
|
|
18
|
+
const [contentsHTML, setContentsHTML] = (0, react_1.useState)('');
|
|
19
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
20
20
|
const element = contentsDivDomRef.current;
|
|
21
21
|
if (hasCustomRenderFn(customToolPanel)) {
|
|
22
22
|
const customRenderContext = {
|
|
@@ -59,8 +59,8 @@ const CustomToolPanelContent = (props) => {
|
|
|
59
59
|
const disabled = button.disabled && button.disabled(button, toolPanelContext);
|
|
60
60
|
const buttonVariant = buttonStyle && buttonStyle.variant ? buttonStyle.variant : 'text';
|
|
61
61
|
const buttonTone = buttonStyle && buttonStyle.tone ? buttonStyle.tone : 'none';
|
|
62
|
-
const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : uuid_1.createUuid();
|
|
63
|
-
return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${kebabCase_1.default(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
|
|
62
|
+
const uniqueKey = buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : (0, uuid_1.createUuid)();
|
|
63
|
+
return (React.createElement(SimpleButton_1.default, { key: uniqueKey, variant: buttonVariant, tone: buttonTone, className: `ab-ToolPanel__Home__${(0, kebabCase_1.default)(buttonLabel)} ${(buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className) || ''}`, tooltip: buttonTooltip, icon: buttonIcon, disabled: disabled, onClick: () => button.onClick(button, toolPanelContext), accessLevel: 'Full' }, buttonLabel));
|
|
64
64
|
})))));
|
|
65
65
|
};
|
|
66
66
|
exports.CustomToolPanelContent = CustomToolPanelContent;
|
|
@@ -23,5 +23,5 @@ declare class ToolPanelPopupComponent extends React.Component<ToolPanelPopupComp
|
|
|
23
23
|
onShowGridPropertiesChanged(event: React.FormEvent<any>): void;
|
|
24
24
|
onToolPanelToolPanelsChanged(selectedValues: AdaptableToolPanels): void;
|
|
25
25
|
}
|
|
26
|
-
export declare let ToolPanelPopup: import("react-redux").ConnectedComponent<typeof ToolPanelPopupComponent, import("react-redux").Omit<React.ClassAttributes<ToolPanelPopupComponent> & ToolPanelPopupComponentProps, "
|
|
26
|
+
export declare let ToolPanelPopup: import("react-redux").ConnectedComponent<typeof ToolPanelPopupComponent, import("react-redux").Omit<React.ClassAttributes<ToolPanelPopupComponent> & ToolPanelPopupComponentProps, "key" | "ref" | "onSuspend" | "api" | "modalContainer" | "moduleInfo" | "accessLevel" | "popupParams" | "onClearPopupParams" | "teamSharingActivated" | "onClosePopup" | "onUnSuspend" | "ToolPanelState" | "GridState" | "onToolPanelSetModuleButtons" | "onToolPanelSetToolPanels">>;
|
|
27
27
|
export {};
|
|
@@ -116,4 +116,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
116
116
|
onToolPanelSetToolPanels: (toolPanels) => dispatch(ToolPanelRedux.ToolPanelSetToolPanels(toolPanels)),
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
exports.ToolPanelPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ToolPanelPopupComponent);
|
|
119
|
+
exports.ToolPanelPopup = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(ToolPanelPopupComponent);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { XOR } from '../../../Utilities/Extensions/TypeExtensions';
|
|
3
2
|
import { AdaptableToolPanel } from '../../../PredefinedConfig/Common/Types';
|
|
4
3
|
import { CustomToolPanel } from '../../../AdaptableOptions/ToolPanelOptions';
|
|
5
4
|
import { ToolPanelVisibilityMode } from '../../../PredefinedConfig/ToolPanelState';
|
|
6
|
-
export declare type ToolPanelWrapperProps =
|
|
5
|
+
export declare type ToolPanelWrapperProps = {
|
|
7
6
|
adaptableToolPanel: AdaptableToolPanel;
|
|
8
|
-
|
|
7
|
+
customToolPanel?: undefined;
|
|
8
|
+
visibilityMode: ToolPanelVisibilityMode;
|
|
9
|
+
onVisibilityModeChange: (visibilityMode: ToolPanelVisibilityMode) => void;
|
|
10
|
+
} | {
|
|
9
11
|
customToolPanel: CustomToolPanel;
|
|
10
|
-
|
|
12
|
+
adaptableToolPanel?: undefined;
|
|
11
13
|
visibilityMode: ToolPanelVisibilityMode;
|
|
12
14
|
onVisibilityModeChange: (visibilityMode: ToolPanelVisibilityMode) => void;
|
|
13
15
|
};
|
|
@@ -13,7 +13,7 @@ const PopupRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/
|
|
|
13
13
|
const ModuleConstants_1 = require("../../../Utilities/Constants/ModuleConstants");
|
|
14
14
|
const ToolPanelWrapper = (props) => {
|
|
15
15
|
const { adaptableToolPanel, customToolPanel, visibilityMode: visibilityMode, onVisibilityModeChange: onVisibilityModeChange, } = props;
|
|
16
|
-
const { api } = AdaptableContext_1.useAdaptable();
|
|
16
|
+
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
17
17
|
const getToolPanelConfiguration = () => {
|
|
18
18
|
var _a;
|
|
19
19
|
if (adaptableToolPanel) {
|
|
@@ -15,7 +15,7 @@ const reorder_1 = require("../../../Utilities/reorder");
|
|
|
15
15
|
const Tag_1 = require("../../../components/Tag");
|
|
16
16
|
const AdaptableFormControlTextClear_1 = require("../Forms/AdaptableFormControlTextClear");
|
|
17
17
|
function useValuesMap({ options, value, toIdentifier, selectedMap, }) {
|
|
18
|
-
const optionsMap = react_1.useMemo(() => {
|
|
18
|
+
const optionsMap = (0, react_1.useMemo)(() => {
|
|
19
19
|
if (selectedMap) {
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
@@ -25,7 +25,7 @@ function useValuesMap({ options, value, toIdentifier, selectedMap, }) {
|
|
|
25
25
|
});
|
|
26
26
|
return map;
|
|
27
27
|
}, [options, selectedMap]);
|
|
28
|
-
const result = react_1.useMemo(() => {
|
|
28
|
+
const result = (0, react_1.useMemo)(() => {
|
|
29
29
|
if (selectedMap) {
|
|
30
30
|
return selectedMap;
|
|
31
31
|
}
|
|
@@ -44,8 +44,8 @@ function ValueSelector(props) {
|
|
|
44
44
|
const [searchInputValue, setSearchInputValue] = React.useState('');
|
|
45
45
|
const baseClassName = 'ab-ValueSelector';
|
|
46
46
|
const preparedToLabel = toListLabel !== null && toListLabel !== void 0 ? toListLabel : toLabel;
|
|
47
|
-
const [selectedOnly, doSetSelectedOnly] = react_1.useState(false);
|
|
48
|
-
const setSelectedOnly = react_1.useCallback((selectedOnly) => {
|
|
47
|
+
const [selectedOnly, doSetSelectedOnly] = (0, react_1.useState)(false);
|
|
48
|
+
const setSelectedOnly = (0, react_1.useCallback)((selectedOnly) => {
|
|
49
49
|
doSetSelectedOnly(selectedOnly);
|
|
50
50
|
onShowSelectedOnlyChange === null || onShowSelectedOnlyChange === void 0 ? void 0 : onShowSelectedOnlyChange(selectedOnly);
|
|
51
51
|
}, [onShowSelectedOnlyChange]);
|
|
@@ -54,7 +54,7 @@ function ValueSelector(props) {
|
|
|
54
54
|
toIdentifier,
|
|
55
55
|
value,
|
|
56
56
|
});
|
|
57
|
-
const notifyChange = react_1.useCallback(() => {
|
|
57
|
+
const notifyChange = (0, react_1.useCallback)(() => {
|
|
58
58
|
const newSelection = [...selectedMap.keys()];
|
|
59
59
|
if (!newSelection.length && selectedOnly) {
|
|
60
60
|
setSelectedOnly(false);
|
|
@@ -134,7 +134,7 @@ function ValueSelector(props) {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
const clone = new Map(selectedMap);
|
|
137
|
-
const newSelection = reorder_1.reorder(selection, source.index, destination.index);
|
|
137
|
+
const newSelection = (0, reorder_1.reorder)(selection, source.index, destination.index);
|
|
138
138
|
// and then pushed back in the new order, at the end
|
|
139
139
|
newSelection.push(...extraKeys);
|
|
140
140
|
selectedMap.clear();
|
|
@@ -188,7 +188,7 @@ function ValueOptionsTags(props) {
|
|
|
188
188
|
renderLabel ? renderLabel(label) : label,
|
|
189
189
|
readOnly ? null : (React.createElement(SimpleButton_1.default, { icon: "clear", ml: 2, iconSize: 14, variant: "text", style: { border: 'none' }, onClick: clear }))));
|
|
190
190
|
};
|
|
191
|
-
const renderEllipsis = react_1.useCallback(({ remaining }) => {
|
|
191
|
+
const renderEllipsis = (0, react_1.useCallback)(({ remaining }) => {
|
|
192
192
|
return (React.createElement(rebass_1.Text, { fontSize: 2, style: { whiteSpace: 'nowrap' } },
|
|
193
193
|
"+",
|
|
194
194
|
remaining,
|
|
@@ -7,7 +7,7 @@ const AdaptableObjectRow_1 = require("./AdaptableObjectRow");
|
|
|
7
7
|
const Helper_1 = require("../../Utilities/Helpers/Helper");
|
|
8
8
|
class WizardSummaryRow extends React.Component {
|
|
9
9
|
render() {
|
|
10
|
-
let colItems = Helper_1.cloneObject(this.props.colItems);
|
|
10
|
+
let colItems = (0, Helper_1.cloneObject)(this.props.colItems);
|
|
11
11
|
colItems[0].Content = this.props.propertyName;
|
|
12
12
|
colItems[1].Content = this.props.propertyValue;
|
|
13
13
|
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems, fontSize: 'medium' });
|
|
@@ -105,4 +105,4 @@ function mapDispatchToProps(dispatch) {
|
|
|
105
105
|
onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ConditionalStyleModuleId, config)),
|
|
106
106
|
};
|
|
107
107
|
}
|
|
108
|
-
exports.ConditionalStyleSummary = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ConditionalStyleSummaryComponent);
|
|
108
|
+
exports.ConditionalStyleSummary = (0, react_redux_1.connect)(mapStateToProps, mapDispatchToProps)(ConditionalStyleSummaryComponent);
|