@adaptabletools/adaptable 22.1.1 → 23.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/devtools.d.ts +70 -0
- package/icons/bullet-chart.svg +1 -0
- package/icons/horizontal-lines.svg +1 -1
- package/icons/icon-style.svg +1 -0
- package/icons/percent-tag.svg +1 -1
- package/icons/range-bar.svg +1 -0
- package/icons/star.svg +1 -0
- package/index.css +2267 -333
- package/package.json +10 -5
- package/src/AdaptableInterfaces/IAdaptable.d.ts +5 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +27 -1
- package/src/AdaptableOptions/ChartingOptions.d.ts +7 -0
- package/src/AdaptableOptions/ColumnMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/ContextMenuOptions.d.ts +30 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +56 -2
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +13 -6
- package/src/AdaptableOptions/EditOptions.d.ts +34 -4
- package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -1
- package/src/AdaptableOptions/RowFormOptions.d.ts +46 -2
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
- package/src/AdaptableState/AdaptableState.d.ts +0 -2
- package/src/AdaptableState/AlertState.d.ts +65 -24
- package/src/AdaptableState/CalculatedColumnState.d.ts +1 -1
- package/src/AdaptableState/ChartingState.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableButton.d.ts +5 -0
- package/src/AdaptableState/Common/AdaptableColumn.d.ts +5 -0
- package/src/AdaptableState/Common/AdaptableForm.d.ts +304 -16
- package/src/AdaptableState/Common/AdaptableForm.js +211 -2
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +1 -1
- package/src/AdaptableState/Common/AdaptablePredicate.js +22 -2
- package/src/AdaptableState/Common/AdaptableStyle.d.ts +48 -18
- package/src/AdaptableState/Common/AggregationColumns.d.ts +6 -1
- package/src/AdaptableState/Common/AggregationColumns.js +2 -4
- package/src/AdaptableState/Common/Enums.d.ts +1 -4
- package/src/AdaptableState/Common/Enums.js +0 -3
- package/src/AdaptableState/Common/ExtendedLayout.d.ts +3 -3
- package/src/AdaptableState/Common/Menu.d.ts +1 -1
- package/src/AdaptableState/Common/Menu.js +11 -0
- package/src/AdaptableState/Common/Schedule.d.ts +7 -29
- package/src/AdaptableState/Common/Types.d.ts +4 -4
- package/src/AdaptableState/Common/Types.js +0 -2
- package/src/AdaptableState/DashboardState.d.ts +0 -5
- package/src/AdaptableState/ExportState.d.ts +19 -6
- package/src/AdaptableState/IPushPullState.d.ts +0 -14
- package/src/AdaptableState/InitialState.d.ts +2 -6
- package/src/AdaptableState/LayoutState.d.ts +17 -0
- package/src/AdaptableState/OpenFinState.d.ts +0 -14
- package/src/AdaptableState/PlusMinusState.d.ts +8 -0
- package/src/AdaptableState/StyledColumnState.d.ts +742 -18
- package/src/Aggregation/ParameterizedAggregationRegistry.d.ts +35 -0
- package/src/Aggregation/ParameterizedAggregationRegistry.js +63 -0
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.d.ts +3 -0
- package/src/Aggregation/definitions/weightedAverageAggregationDefinition.js +55 -0
- package/src/Aggregation/parameterizedAggregationColumnMenu.d.ts +8 -0
- package/src/Aggregation/parameterizedAggregationColumnMenu.js +137 -0
- package/src/Aggregation/parameterizedAggregationHeader.d.ts +13 -0
- package/src/Aggregation/parameterizedAggregationHeader.js +60 -0
- package/src/Aggregation/parameterizedAggregationHelpers.d.ts +23 -0
- package/src/Aggregation/parameterizedAggregationHelpers.js +111 -0
- package/src/Aggregation/parameterizedAggregationWizardHelpers.d.ts +9 -0
- package/src/Aggregation/parameterizedAggregationWizardHelpers.js +66 -0
- package/src/Aggregation/validateParameterizedAggregations.d.ts +4 -0
- package/src/Aggregation/validateParameterizedAggregations.js +20 -0
- package/src/Api/AdaptableApi.d.ts +0 -5
- package/src/Api/AlertApi.d.ts +7 -3
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnFilterApi.d.ts +4 -0
- package/src/Api/ColumnMenuApi.d.ts +1 -1
- package/src/Api/ColumnScopeApi.d.ts +6 -2
- package/src/Api/DashboardApi.d.ts +13 -0
- package/src/Api/EventApi.d.ts +7 -8
- package/src/Api/Events/ReportScheduleRan.d.ts +11 -0
- package/src/Api/ExportApi.d.ts +42 -1
- package/src/Api/GridApi.d.ts +2 -2
- package/src/Api/GridFilterApi.d.ts +10 -3
- package/src/Api/IPushPullApi.d.ts +1 -5
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +0 -2
- package/src/Api/Implementation/AdaptableApiImpl.js +0 -4
- package/src/Api/Implementation/AlertApiImpl.d.ts +7 -6
- package/src/Api/Implementation/AlertApiImpl.js +26 -6
- package/src/Api/Implementation/ApiBase.d.ts +1 -2
- package/src/Api/Implementation/ApiBase.js +0 -3
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +24 -2
- package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ColumnFilterApiImpl.js +3 -0
- package/src/Api/Implementation/ColumnScopeApiImpl.js +20 -26
- package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -0
- package/src/Api/Implementation/DashboardApiImpl.js +5 -2
- package/src/Api/Implementation/ExportApiImpl.d.ts +12 -1
- package/src/Api/Implementation/ExportApiImpl.js +37 -0
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +6 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
- package/src/Api/Implementation/LayoutApiImpl.js +31 -36
- package/src/Api/Implementation/LayoutHelpers.js +7 -13
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +5 -3
- package/src/Api/Implementation/QuickSearchApiImpl.js +10 -3
- package/src/Api/Implementation/SmartEditApiImpl.js +1 -1
- package/src/Api/Implementation/StateApiImpl.d.ts +5 -3
- package/src/Api/Implementation/StateApiImpl.js +21 -18
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +15 -0
- package/src/Api/Implementation/UserInterfaceApiImpl.js +11 -12
- package/src/Api/Internal/ActionColumnInternalApi.js +7 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/AlertInternalApi.d.ts +4 -4
- package/src/Api/Internal/AlertInternalApi.js +28 -10
- package/src/Api/Internal/ChartingInternalApi.js +8 -3
- package/src/Api/Internal/DashboardInternalApi.d.ts +27 -0
- package/src/Api/Internal/DashboardInternalApi.js +41 -0
- package/src/Api/Internal/EventInternalApi.d.ts +2 -3
- package/src/Api/Internal/EventInternalApi.js +4 -4
- package/src/Api/Internal/FormatColumnInternalApi.d.ts +6 -0
- package/src/Api/Internal/FormatColumnInternalApi.js +6 -0
- package/src/Api/Internal/GridInternalApi.js +3 -2
- package/src/Api/Internal/LayoutInternalApi.js +4 -1
- package/src/Api/Internal/RowFormInternalApi.js +23 -1
- package/src/Api/Internal/StateInternalApi.d.ts +10 -0
- package/src/Api/Internal/StateInternalApi.js +84 -0
- package/src/Api/Internal/StyledColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/StyledColumnInternalApi.js +104 -30
- package/src/Api/LayoutApi.d.ts +8 -1
- package/src/Api/OpenFinApi.d.ts +1 -5
- package/src/Api/PlusMinusApi.d.ts +3 -1
- package/src/Api/QuickSearchApi.d.ts +18 -7
- package/src/Api/StateApi.d.ts +4 -15
- package/src/Api/StyledColumnApi.d.ts +16 -0
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -8
- package/src/Redux/ActionsReducers/DashboardRedux.js +0 -13
- package/src/Redux/ActionsReducers/ExportRedux.d.ts +40 -1
- package/src/Redux/ActionsReducers/ExportRedux.js +99 -2
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +0 -5
- package/src/Redux/ActionsReducers/InternalRedux.js +9 -7
- package/src/Redux/ActionsReducers/QuickSearchRedux.d.ts +27 -2
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +38 -4
- package/src/Redux/Store/AdaptableStore.js +58 -59
- package/src/Strategy/AlertModule.d.ts +4 -1
- package/src/Strategy/AlertModule.js +43 -6
- package/src/Strategy/CalculatedColumnModule.d.ts +1 -1
- package/src/Strategy/CellSummaryModule.d.ts +1 -1
- package/src/Strategy/ChartingModule.d.ts +2 -1
- package/src/Strategy/ChartingModule.js +24 -1
- package/src/Strategy/ColumnFilterModule.d.ts +1 -1
- package/src/Strategy/ColumnInfoModule.d.ts +1 -1
- package/src/Strategy/ExportModule.d.ts +5 -1
- package/src/Strategy/ExportModule.js +62 -7
- package/src/Strategy/FlashingCellModule.d.ts +1 -1
- package/src/Strategy/FormatColumnModule.d.ts +1 -1
- package/src/Strategy/FreeTextColumnModule.d.ts +1 -1
- package/src/Strategy/GridInfoModule.d.ts +1 -1
- package/src/Strategy/Interface/IAlertModule.d.ts +5 -0
- package/src/Strategy/Interface/IExportModule.d.ts +4 -0
- package/src/Strategy/Interface/IModule.d.ts +16 -1
- package/src/Strategy/LayoutModule.d.ts +1 -1
- package/src/Strategy/LayoutModule.js +11 -26
- package/src/Strategy/PlusMinusModule.d.ts +6 -1
- package/src/Strategy/PlusMinusModule.js +78 -26
- package/src/Strategy/QuickSearchModule.js +0 -12
- package/src/Strategy/SettingsPanelModule.d.ts +1 -1
- package/src/Strategy/ShortcutModule.js +1 -1
- package/src/Strategy/StyledColumnModule.d.ts +1 -1
- package/src/Strategy/StyledColumnModule.js +199 -24
- package/src/Strategy/SystemStatusModule.d.ts +1 -1
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +3 -3
- package/src/Strategy/Utilities/Export/formatScheduledReportSummary.d.ts +2 -0
- package/src/Strategy/Utilities/Export/formatScheduledReportSummary.js +6 -0
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +3 -3
- package/src/Strategy/Utilities/Export/getReportSchedulesViewItems.d.ts +2 -0
- package/src/Strategy/Utilities/Export/getReportSchedulesViewItems.js +5 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.js +1 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +0 -3
- package/src/Utilities/Constants/ModuleConstants.js +0 -3
- package/src/Utilities/Constants/ReduxConstants.d.ts +3 -1
- package/src/Utilities/Constants/ReduxConstants.js +6 -4
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +0 -1
- package/src/Utilities/Extensions/NumberExtensions.js +1 -1
- package/src/Utilities/Helpers/ActionColumnWidthHelper.d.ts +6 -0
- package/src/Utilities/Helpers/ActionColumnWidthHelper.js +56 -0
- package/src/Utilities/Helpers/IconStylePresets.d.ts +6 -0
- package/src/Utilities/Helpers/IconStylePresets.js +132 -0
- package/src/Utilities/Helpers/QuickSearchStyleHelper.d.ts +12 -0
- package/src/Utilities/Helpers/QuickSearchStyleHelper.js +76 -0
- package/src/Utilities/Helpers/ScheduleHelper.d.ts +22 -0
- package/src/Utilities/Helpers/ScheduleHelper.js +234 -0
- package/src/Utilities/Helpers/ScheduleJobManager.d.ts +11 -0
- package/src/Utilities/Helpers/ScheduleJobManager.js +25 -0
- package/src/Utilities/Helpers/ScheduleJobRunner.d.ts +8 -0
- package/src/Utilities/Helpers/ScheduleJobRunner.js +27 -0
- package/src/Utilities/Helpers/ScheduledAlertHelper.d.ts +8 -0
- package/src/Utilities/Helpers/ScheduledAlertHelper.js +50 -0
- package/src/Utilities/Helpers/ScheduledJobsMiddlewareHelper.d.ts +3 -0
- package/src/Utilities/Helpers/ScheduledJobsMiddlewareHelper.js +9 -0
- package/src/Utilities/Helpers/ScheduledReportHelper.d.ts +16 -0
- package/src/Utilities/Helpers/ScheduledReportHelper.js +49 -0
- package/src/Utilities/Helpers/StyleHelper.d.ts +35 -0
- package/src/Utilities/Helpers/StyleHelper.js +83 -0
- package/src/Utilities/Helpers/StyledColumnGradientHelper.d.ts +30 -0
- package/src/Utilities/Helpers/StyledColumnGradientHelper.js +41 -0
- package/src/Utilities/Helpers/alertFormHelper.d.ts +2 -0
- package/src/Utilities/Helpers/alertFormHelper.js +11 -0
- package/src/Utilities/Helpers/chartingHelper.d.ts +14 -0
- package/src/Utilities/Helpers/chartingHelper.js +112 -0
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.d.ts +5 -0
- package/src/Utilities/Helpers/iconStyledColumnColumnSupport.js +15 -0
- package/src/Utilities/Helpers/plusMinusTriggerKeys.d.ts +41 -0
- package/src/Utilities/Helpers/plusMinusTriggerKeys.js +90 -0
- package/src/Utilities/Helpers/styledColumnRowKindSupport.d.ts +25 -0
- package/src/Utilities/Helpers/styledColumnRowKindSupport.js +63 -0
- package/src/Utilities/ObjectFactory.d.ts +7 -28
- package/src/Utilities/ObjectFactory.js +19 -103
- package/src/Utilities/Services/AlertService.js +3 -0
- package/src/Utilities/Services/ModuleService.js +0 -2
- package/src/Utilities/Services/QueryLanguageService.js +1 -1
- package/src/Utilities/Services/ValidationService.js +9 -3
- package/src/Utilities/createAgStatusPanelComponent.js +3 -2
- package/src/Utilities/getExpressionViewItems.js +2 -3
- package/src/Utilities/getObjectTagsViewItems.js +2 -1
- package/src/View/AdaptableComputedCSSVarsContext.js +4 -5
- package/src/View/AdaptablePopover/index.js +10 -19
- package/src/View/AdaptableView.js +8 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +15 -25
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +32 -43
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +7 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +11 -18
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +22 -32
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +6 -12
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +7 -19
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +2 -10
- package/src/View/AdaptableWizardView/Wizard.js +3 -6
- package/src/View/AdaptableWizardView/index.js +2 -2
- package/src/View/Alert/ActiveAlertsPanel.js +2 -2
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +3 -5
- package/src/View/Alert/AlertEmptyView.js +2 -2
- package/src/View/Alert/AlertStatusSubPanel.js +3 -2
- package/src/View/Alert/AlertViewPanel.js +4 -8
- package/src/View/Alert/Utilities/getAlertType.d.ts +2 -1
- package/src/View/Alert/Utilities/getAlertType.js +10 -2
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +17 -3
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.js +8 -0
- package/src/View/Alert/Utilities/mapAlertDefinition.d.ts +1 -1
- package/src/View/Alert/Utilities/mapAlertDefinition.js +4 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +67 -97
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +112 -159
- package/src/View/Alert/Wizard/AlertMessageWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +24 -37
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +95 -62
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +24 -38
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.d.ts +9 -0
- package/src/View/Alert/Wizard/AlertScheduledWizardSection.js +31 -0
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +9 -5
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +3 -24
- package/src/View/Alert/Wizard/AlertWizard.js +36 -31
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +1 -3
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +13 -17
- package/src/View/Alert/Wizard/isValidAlertMessage.d.ts +3 -0
- package/src/View/Alert/Wizard/isValidAlertMessage.js +14 -0
- package/src/View/Alert/Wizard/isValidAlertRules.js +4 -0
- package/src/View/BulkUpdate/BulkUpdatePopup.js +11 -25
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +9 -14
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +9 -30
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +14 -19
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +8 -18
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +2 -9
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -17
- package/src/View/CellSummary/CellSummaryDetails.js +2 -3
- package/src/View/CellSummary/CellSummaryPopover.js +2 -2
- package/src/View/CellSummary/CellSummaryPopup.js +2 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +4 -5
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +8 -12
- package/src/View/Charting/ChartingStatusBarPopover.js +2 -8
- package/src/View/Charting/ChartingViewPanel.js +3 -17
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +5 -7
- package/src/View/Charting/ChartingWizard/AgChargingWizard/PreviewChartSection.js +2 -1
- package/src/View/Charting/ChartingWizard/AgChargingWizard/SettingsSection.js +4 -18
- package/src/View/Charting/ChartingWizard/ChartingWizard.js +3 -3
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +5 -6
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/SettingsSection.js +5 -14
- package/src/View/Charting/DeleteChartButton.js +2 -2
- package/src/View/Charting/EditChartButton.js +2 -2
- package/src/View/Charting/ShowChartButton.js +9 -10
- package/src/View/Charting/useChartingElements.js +8 -7
- package/src/View/ColumnInfo/ColumnInfo.js +11 -26
- package/src/View/ColumnInfo/ColumnInfoPopup.js +2 -4
- package/src/View/Comments/CommentsEditor.js +44 -61
- package/src/View/Comments/CommentsPopup.js +12 -30
- package/src/View/Components/AdaptableButton/AdaptableButtonComponent.d.ts +4 -0
- package/src/View/Components/AdaptableButton/AdaptableButtonComponent.js +13 -0
- package/src/View/Components/AdaptableButton/AdaptableButtonView.d.ts +58 -0
- package/src/View/Components/AdaptableButton/AdaptableButtonView.js +48 -0
- package/src/View/Components/AdaptableButton/index.d.ts +3 -3
- package/src/View/Components/AdaptableButton/index.js +2 -13
- package/src/View/Components/AdaptableDateInput/index.js +2 -1
- package/src/View/Components/AdaptableIconComponent/index.js +2 -2
- package/src/View/Components/AdaptableIconSelector/index.js +2 -2
- package/src/View/Components/AdaptableInput/AdaptableDateInlineInput.js +6 -2
- package/src/View/Components/AdaptableInput/index.js +3 -2
- package/src/View/Components/AdaptableObjectCollection/index.js +5 -8
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +9 -21
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +26 -44
- package/src/View/Components/AdaptableObjectRow/index.js +3 -2
- package/src/View/Components/Badge/index.d.ts +17 -3
- package/src/View/Components/Badge/index.js +67 -9
- package/src/View/Components/Buttons/ButtonApply.js +2 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +10 -20
- package/src/View/Components/Buttons/ButtonClear.js +2 -1
- package/src/View/Components/Buttons/ButtonClone.js +2 -2
- package/src/View/Components/Buttons/ButtonClose.js +2 -1
- package/src/View/Components/Buttons/ButtonConfigure.js +2 -1
- package/src/View/Components/Buttons/ButtonDelete.js +2 -2
- package/src/View/Components/Buttons/ButtonEdit.js +2 -2
- package/src/View/Components/Buttons/ButtonExpand.js +3 -1
- package/src/View/Components/Buttons/ButtonExport.js +2 -1
- package/src/View/Components/Buttons/ButtonInfo.js +2 -2
- package/src/View/Components/Buttons/ButtonInvalid.js +2 -1
- package/src/View/Components/Buttons/ButtonLogin.js +2 -1
- package/src/View/Components/Buttons/ButtonLogout.js +2 -1
- package/src/View/Components/Buttons/ButtonMaximise.js +2 -1
- package/src/View/Components/Buttons/ButtonMinimise.js +2 -1
- package/src/View/Components/Buttons/ButtonNew.js +2 -2
- package/src/View/Components/Buttons/ButtonNewPage.js +2 -1
- package/src/View/Components/Buttons/ButtonOpen.js +2 -1
- package/src/View/Components/Buttons/ButtonPause.js +2 -2
- package/src/View/Components/Buttons/ButtonPlay.js +2 -2
- package/src/View/Components/Buttons/ButtonSave.js +2 -1
- package/src/View/Components/Buttons/ButtonSchedule.js +2 -2
- package/src/View/Components/Buttons/ButtonShare.js +5 -6
- package/src/View/Components/Buttons/ButtonStop.js +2 -1
- package/src/View/Components/Buttons/ButtonUnsuspend.js +2 -1
- package/src/View/Components/Buttons/EntityListActionButtons.js +2 -6
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +2 -1
- package/src/View/Components/CellPopup/index.js +2 -1
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.d.ts +6 -1
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.js +15 -3
- package/src/View/Components/ColumnFilter/AdaptableFloatingFilter.js +2 -1
- package/src/View/Components/ColumnFilter/ColumnFilter.d.ts +2 -1
- package/src/View/Components/ColumnFilter/ColumnFilter.js +58 -66
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +16 -17
- package/src/View/Components/ColumnFilter/FloatingFilter.js +28 -31
- package/src/View/Components/ColumnFilter/LayoutColumnFilter.js +2 -2
- package/src/View/Components/ColumnFilter/columnFilterLocation.d.ts +2 -0
- package/src/View/Components/ColumnFilter/columnFilterLocation.js +1 -0
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +9 -10
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +22 -24
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +9 -11
- package/src/View/Components/ColumnFilter/components/FloatingFilterInputList.js +32 -24
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +7 -47
- package/src/View/Components/ColumnGroupTag/index.js +2 -4
- package/src/View/Components/ColumnSelector/index.js +3 -5
- package/src/View/Components/EntityRowItem.js +2 -3
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +5 -12
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +9 -25
- package/src/View/Components/EntityRulesEditor/index.js +17 -38
- package/src/View/Components/ExternalRenderer.js +2 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +3 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +82 -27
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +23 -25
- package/src/View/Components/ModuleProfile.js +4 -7
- package/src/View/Components/ModuleSummary/ModuleDetail.js +6 -5
- package/src/View/Components/ModuleSummary/ModuleHeader.js +4 -4
- package/src/View/Components/ModuleSummary/SummaryRowItem.js +2 -2
- package/src/View/Components/ModuleValueSelector/index.js +2 -2
- package/src/View/Components/NewScopeComponent.js +15 -46
- package/src/View/Components/Panels/PanelDashboard/index.js +2 -1
- package/src/View/Components/Panels/PanelToolPanel/index.js +3 -6
- package/src/View/Components/Panels/PanelWithButton.js +3 -11
- package/src/View/Components/Panels/PanelWithImage.js +5 -13
- package/src/View/Components/Panels/PanelWithRow.js +5 -5
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +2 -4
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +7 -12
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +7 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +20 -19
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -2
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +15 -19
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +3 -12
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -8
- package/src/View/Components/Popups/AdaptablePopupAlert.js +20 -26
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +7 -19
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +4 -15
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -27
- package/src/View/Components/Popups/AdaptableToaster.js +2 -2
- package/src/View/Components/Popups/FormPopups/FormPopups.js +6 -7
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +15 -17
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +42 -42
- package/src/View/Components/Popups/WindowPopups/windowFactory.js +0 -2
- package/src/View/Components/PredicateEditor/PredicateEditor.js +15 -24
- package/src/View/Components/PreviewResultsPanel.js +4 -9
- package/src/View/Components/RangesComponent.d.ts +31 -5
- package/src/View/Components/RangesComponent.js +137 -83
- package/src/View/Components/ReorderDraggable/index.js +10 -18
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +13 -17
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -2
- package/src/View/Components/Selectors/ColumnSelector.js +21 -7
- package/src/View/Components/Selectors/FieldSelector.d.ts +0 -2
- package/src/View/Components/Selectors/FieldSelector.js +5 -5
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +0 -2
- package/src/View/Components/Selectors/PermittedValuesSelector.js +31 -2
- package/src/View/Components/SharedProps/EditableConfigEntityState.js +0 -1
- package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
- package/src/View/Components/StyleComponent.d.ts +0 -2
- package/src/View/Components/StyleComponent.js +27 -131
- package/src/View/Components/StyleVisualItem.js +4 -4
- package/src/View/Components/TagValueSelector/index.js +3 -3
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +18 -40
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -27
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -12
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +16 -17
- package/src/View/Components/ValueSelector/index.js +87 -100
- package/src/View/Components/WizardSummaryPage.js +2 -4
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +9 -29
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +8 -11
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +6 -10
- package/src/View/Dashboard/CustomDashboardButton.d.ts +1 -2
- package/src/View/Dashboard/CustomDashboardButton.js +4 -22
- package/src/View/Dashboard/CustomToolbar.js +85 -33
- package/src/View/Dashboard/Dashboard.d.ts +0 -1
- package/src/View/Dashboard/Dashboard.js +11 -23
- package/src/View/Dashboard/DashboardPopup.js +2 -23
- package/src/View/Dashboard/DashboardToolbarFactory.js +6 -5
- package/src/View/Dashboard/DashboardViewPanel.js +2 -7
- package/src/View/Dashboard/ModuleToolbarWrapper.js +3 -3
- package/src/View/Dashboard/PinnedDashboard.js +5 -7
- package/src/View/Dashboard/PinnedToolbarsSelector.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -32
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +4 -18
- package/src/View/DataImport/DataImportPopup.js +8 -12
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +6 -10
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +18 -26
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +8 -11
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +2 -2
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +2 -11
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +2 -4
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +4 -14
- package/src/View/DataSet/DataSetSelector.js +2 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
- package/src/View/DataSet/DataSetViewPanel.js +3 -3
- package/src/View/Export/ExportDestinationPicker.js +4 -5
- package/src/View/Export/ExportSchedulesTab.d.ts +2 -0
- package/src/View/Export/ExportSchedulesTab.js +54 -0
- package/src/View/Export/ExportStatusBar.js +2 -6
- package/src/View/Export/ExportViewPanel.js +27 -29
- package/src/View/Export/ReportFormatSelector.d.ts +0 -1
- package/src/View/Export/ReportFormatSelector.js +4 -5
- package/src/View/Export/ReportListItem.js +2 -4
- package/src/View/Export/ReportNameSelector.js +3 -4
- package/src/View/Export/Wizard/ExportPopupWizardRouter.d.ts +4 -0
- package/src/View/Export/Wizard/ExportPopupWizardRouter.js +19 -0
- package/src/View/Export/Wizard/NewReportWizard.js +7 -10
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +27 -51
- package/src/View/Export/Wizard/ReportNameWizardSection.js +8 -18
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +11 -38
- package/src/View/Export/Wizard/ScheduledReportSettings.d.ts +13 -0
- package/src/View/Export/Wizard/ScheduledReportSettings.js +36 -0
- package/src/View/Export/Wizard/ScheduledReportSettingsSummary.d.ts +7 -0
- package/src/View/Export/Wizard/ScheduledReportSettingsSummary.js +27 -0
- package/src/View/Export/Wizard/ScheduledReportWizard.d.ts +10 -0
- package/src/View/Export/Wizard/ScheduledReportWizard.js +80 -0
- package/src/View/Export/Wizard/isReportScheduledSettingsValid.d.ts +3 -0
- package/src/View/Export/Wizard/isReportScheduledSettingsValid.js +18 -0
- package/src/View/Filter/ActiveFiltersPanel.js +2 -2
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -2
- package/src/View/Filter/FilterViewPanel.js +5 -9
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -11
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +8 -28
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +9 -41
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +5 -30
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +9 -13
- package/src/View/FormatColumn/MoveFormatColumn.js +3 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +61 -203
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +6 -15
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +92 -0
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +39 -49
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +12 -26
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +21 -54
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +5 -8
- package/src/View/GridFilter/GridFilterExpressionEditor.js +14 -21
- package/src/View/GridFilter/GridFilterPopup.js +2 -2
- package/src/View/GridFilter/GridFilterPopupUI/index.js +2 -18
- package/src/View/GridFilter/GridFilterStatusbar.js +2 -2
- package/src/View/GridFilter/GridFilterViewPanel.js +16 -26
- package/src/View/GridFilter/GridFilterWindowPopup.js +2 -2
- package/src/View/GridFilter/NamedQuerySelector.js +13 -21
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +11 -13
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +7 -23
- package/src/View/KeyHint.js +3 -3
- package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutRadioSelector.js +2 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +5 -6
- package/src/View/Layout/LayoutViewPanel.js +41 -32
- package/src/View/Layout/PivotDetailsPopoup.js +2 -2
- package/src/View/Layout/TransposedPopup.js +2 -8
- package/src/View/Layout/Wizard/LayoutWizard.js +47 -60
- package/src/View/Layout/Wizard/getGridFilterPreview.js +2 -3
- package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +3 -2
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +29 -150
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +131 -187
- package/src/View/Layout/Wizard/sections/FilterSection.js +32 -37
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -3
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.d.ts +12 -0
- package/src/View/Layout/Wizard/sections/ParameterizedAggFuncPicker.js +43 -0
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.d.ts +2 -1
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +77 -197
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +8 -12
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +5 -13
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +21 -44
- package/src/View/Layout/Wizard/sections/RowSelectionSection.js +5 -72
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +106 -140
- package/src/View/Layout/Wizard/sections/SettingsSection.js +3 -26
- package/src/View/Layout/Wizard/sections/SortSection.js +4 -9
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/NamedQuery/EditCurrentQueryButton.js +2 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +3 -5
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +3 -11
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +6 -8
- package/src/View/Note/NoteEditor.js +9 -10
- package/src/View/Note/NotePopup.js +4 -5
- package/src/View/PlusMinus/MovePlusMinus.js +3 -4
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +6 -15
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +78 -31
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +7 -9
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +3 -5
- package/src/View/QuickSearch/QuickSearchInput.js +2 -3
- package/src/View/QuickSearch/QuickSearchPopup.d.ts +6 -2
- package/src/View/QuickSearch/QuickSearchPopup.js +18 -28
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -2
- package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -4
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.d.ts +8 -7
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +136 -103
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +4 -38
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +8 -18
- package/src/View/SmartEdit/SmartEditPopup.js +11 -17
- package/src/View/SmartEdit/SmartEditViewPanel.js +12 -17
- package/src/View/SpecialColumnSettingsWizardStep.js +6 -29
- package/src/View/StateManagement/StateManagementPopup.js +2 -18
- package/src/View/StateManagement/StateManagementViewPanel.js +3 -8
- package/src/View/StateManagement/components/ClearButton.js +2 -2
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/View/StateManagement/components/LoadButton.js +13 -16
- package/src/View/StatusBar/AdaptableStatusBar.js +22 -20
- package/src/View/StatusBar/StatusBarPanel.js +3 -5
- package/src/View/StatusBar/StatusBarPopup.js +7 -6
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.d.ts +26 -0
- package/src/View/StyledColumn/Wizard/BadgePillStyleEditor.js +64 -0
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +150 -93
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.d.ts +49 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSliceStyleEditors.js +138 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.d.ts +12 -0
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +107 -172
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +194 -60
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.d.ts +14 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardBulletSection.js +301 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.d.ts +10 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardGradientSection.js +90 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.d.ts +20 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardIconSection.js +282 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.d.ts +26 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRangeBarSection.js +310 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.d.ts +8 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardRatingSection.js +211 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.d.ts +12 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardScopeSection.js +238 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.d.ts +22 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/GradientSummaryPreview.js +71 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +6 -14
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +2 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +2 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.d.ts +5 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +26 -13
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.js +20 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.d.ts +16 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnChartListPreviews.js +61 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.d.ts +12 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardRangesSection.js +153 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.d.ts +10 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +140 -283
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.d.ts +13 -0
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +101 -27
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -8
- package/src/View/SystemStatus/SystemStatusPopup.js +4 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +7 -11
- package/src/View/TeamSharing/SharedEntityObjectView.js +9 -21
- package/src/View/TeamSharing/TeamSharingApplyButton.js +2 -1
- package/src/View/Theme/ThemePopup.js +2 -27
- package/src/View/Theme/ThemeSelector.d.ts +1 -2
- package/src/View/Theme/ThemeSelector.js +3 -3
- package/src/View/Theme/ThemeStatusbar.d.ts +1 -1
- package/src/View/Theme/ThemeStatusbar.js +3 -4
- package/src/View/Theme/ThemeViewPanel.js +3 -4
- package/src/View/Theme/VariantSelector.js +2 -4
- package/src/View/UIHelper.d.ts +15 -25
- package/src/View/UIHelper.js +40 -116
- package/src/View/Wizard/ObjectTagsWizardSection.js +3 -6
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +13 -0
- package/src/View/Wizard/OnePageAdaptableWizard.js +21 -28
- package/src/View/Wizard/OnePageWizards.js +54 -70
- package/src/View/Wizard/TypeRadio.d.ts +2 -0
- package/src/View/Wizard/TypeRadio.js +6 -5
- package/src/View/renderWithAdaptableContext.js +3 -4
- package/src/agGrid/AdaptableAgGrid.d.ts +5 -2
- package/src/agGrid/AdaptableAgGrid.js +80 -40
- package/src/agGrid/AdaptableFrameworkComponent.d.ts +25 -3
- package/src/agGrid/AdaptableLogger.d.ts +1 -0
- package/src/agGrid/AdaptableLogger.js +8 -0
- package/src/agGrid/AgGridAdapter.d.ts +1 -0
- package/src/agGrid/AgGridAdapter.js +16 -4
- package/src/agGrid/AgGridColumnAdapter.d.ts +26 -0
- package/src/agGrid/AgGridColumnAdapter.js +333 -100
- package/src/agGrid/AgGridFilterAdapter.js +3 -1
- package/src/agGrid/AgGridMenuAdapter.d.ts +2 -0
- package/src/agGrid/AgGridMenuAdapter.js +120 -6
- package/src/agGrid/cellRenderers/ActionColumnRenderer.d.ts +1 -0
- package/src/agGrid/cellRenderers/ActionColumnRenderer.js +87 -88
- package/src/agGrid/cellRenderers/BadgeRenderer.d.ts +2 -2
- package/src/agGrid/cellRenderers/BadgeRenderer.js +44 -28
- package/src/agGrid/cellRenderers/BulletChartRenderer.d.ts +4 -0
- package/src/agGrid/cellRenderers/BulletChartRenderer.js +391 -0
- package/src/agGrid/cellRenderers/IconRenderer.d.ts +23 -0
- package/src/agGrid/cellRenderers/IconRenderer.js +274 -0
- package/src/agGrid/cellRenderers/PercentBarRenderer.js +234 -65
- package/src/agGrid/cellRenderers/RangeBarRenderer.d.ts +4 -0
- package/src/agGrid/cellRenderers/RangeBarRenderer.js +352 -0
- package/src/agGrid/cellRenderers/RatingRenderer.d.ts +4 -0
- package/src/agGrid/cellRenderers/RatingRenderer.js +157 -0
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.d.ts +30 -0
- package/src/agGrid/cellRenderers/shouldRenderStyledColumnOnRow.js +54 -0
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -4
- package/src/agGrid/editors/AdaptableDateEditor/index.js +4 -4
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +17 -19
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +21 -24
- package/src/agGrid/editors/AdaptablePercentageEditor/index.js +4 -4
- package/src/components/Accordion.js +7 -8
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +364 -86
- package/src/components/Card/index.js +8 -8
- package/src/components/CheckBox/index.d.ts +3 -1
- package/src/components/CheckBox/index.js +12 -15
- package/src/components/CodeBlock/index.js +2 -2
- package/src/components/ColorPicker/ColorPicker.js +14 -19
- package/src/components/Combobox/VirtualizedList.d.ts +12 -0
- package/src/components/Combobox/VirtualizedList.js +62 -0
- package/src/components/Combobox/comboboxUtils.d.ts +82 -0
- package/src/components/Combobox/comboboxUtils.js +25 -0
- package/src/components/Combobox/index.d.ts +38 -0
- package/src/components/Combobox/index.js +527 -0
- package/src/components/Dashboard/Dashboard.d.ts +0 -3
- package/src/components/Dashboard/Dashboard.js +15 -42
- package/src/components/Dashboard/DashboardManager.js +2 -1
- package/src/components/Dashboard/DashboardToolbar.js +2 -7
- package/src/components/Datepicker/index.js +243 -106
- package/src/components/Dialog/index.js +7 -9
- package/src/components/DragAndDropContext/ModuleManager.js +2 -8
- package/src/components/DragAndDropContext/TabList.js +27 -41
- package/src/components/DragAndDropContext/UnusedPanel.js +8 -13
- package/src/components/Drawer/index.js +2 -1
- package/src/components/Dropdown/Arrows.js +3 -5
- package/src/components/Dropdown/index.js +15 -20
- package/src/components/DropdownButton/index.js +21 -29
- package/src/components/DropdownButton/renderItem.js +5 -6
- package/src/components/EmptyContent/index.js +3 -4
- package/src/components/ErrorBox/index.js +2 -2
- package/src/components/ExpressionEditor/BaseEditorInput.js +49 -90
- package/src/components/ExpressionEditor/DataTableEditor.js +19 -23
- package/src/components/ExpressionEditor/EditorButton.js +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +8 -15
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -14
- package/src/components/ExpressionEditor/ExpressionPreview.js +6 -5
- package/src/components/ExpressionEditor/NamedQueryEditor.js +4 -10
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +9 -22
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +35 -53
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +112 -133
- package/src/components/ExpressionEditor/index.js +49 -95
- package/src/components/FieldWrap/index.js +3 -2
- package/src/components/FileDroppable/index.js +17 -28
- package/src/components/Flex.js +3 -2
- package/src/components/FlexWithFooter.js +2 -5
- package/src/components/FormLayout/index.js +7 -7
- package/src/components/HelpBlock/index.js +2 -2
- package/src/components/Icon/index.js +4 -4
- package/src/components/IconSelector/IconSelector.js +12 -23
- package/src/components/InfiniteTable/index.js +2 -2
- package/src/components/Input/NumberInput.js +2 -1
- package/src/components/Input/index.d.ts +1 -0
- package/src/components/Input/index.js +6 -4
- package/src/components/InputGroup/InputGroup.js +2 -2
- package/src/components/Loader/Loader.js +3 -5
- package/src/components/Logo/index.js +2 -9
- package/src/components/Modal/Backdrop.js +2 -1
- package/src/components/Modal/index.js +2 -5
- package/src/components/NewDropdownButton/index.d.ts +26 -0
- package/src/components/NewDropdownButton/index.js +24 -0
- package/src/components/NewSelect/index.d.ts +64 -0
- package/src/components/NewSelect/index.js +70 -0
- package/src/components/NewTooltip/index.d.ts +8 -0
- package/src/components/NewTooltip/index.js +8 -0
- package/src/components/NotifyResize/index.js +2 -1
- package/src/components/OverlayTrigger/Overlay.js +2 -1
- package/src/components/OverlayTrigger/index.js +11 -13
- package/src/components/Panel/index.js +10 -11
- package/src/components/PopupWithFooter.js +3 -3
- package/src/components/ProgressIndicator/ProgressIndicator.js +14 -19
- package/src/components/Radio/index.js +5 -10
- package/src/components/ResizeObserver/index.js +2 -2
- package/src/components/Select/CSSNumericVariableWatch.js +3 -3
- package/src/components/SelectList.js +2 -2
- package/src/components/SelectableList/index.js +3 -2
- package/src/components/SimpleButton/index.d.ts +1 -1
- package/src/components/SimpleButton/index.js +14 -18
- package/src/components/SizedContainer/index.js +6 -8
- package/src/components/StylePreview.js +2 -2
- package/src/components/Table/index.js +2 -2
- package/src/components/Tabs/index.js +5 -10
- package/src/components/Tag/Tag.js +4 -3
- package/src/components/Textarea/index.js +2 -1
- package/src/components/Toggle/Toggle.js +3 -4
- package/src/components/Toggle/ToggleGroup.js +3 -3
- package/src/components/ToggleButton/index.js +14 -17
- package/src/components/Tooltip/index.js +2 -2
- package/src/components/Tree/TreeDropdown/index.d.ts +44 -26
- package/src/components/Tree/TreeDropdown/index.js +503 -265
- package/src/components/Tree/treeUtils.d.ts +10 -0
- package/src/components/Tree/treeUtils.js +25 -0
- package/src/components/WarningBox/index.js +2 -2
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WizardPanel/index.js +2 -2
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/add-row.js +2 -3
- package/src/components/icons/alert.js +2 -3
- package/src/components/icons/align-center.js +2 -3
- package/src/components/icons/align-justify.js +2 -3
- package/src/components/icons/align-left.js +2 -3
- package/src/components/icons/align-right.js +2 -3
- package/src/components/icons/analysis.js +2 -4
- package/src/components/icons/application.js +2 -3
- package/src/components/icons/arrow-down-long.js +2 -3
- package/src/components/icons/arrow-down.js +2 -3
- package/src/components/icons/arrow-expand.js +2 -3
- package/src/components/icons/arrow-left.js +2 -4
- package/src/components/icons/arrow-right.js +2 -3
- package/src/components/icons/arrow-up-long.js +2 -3
- package/src/components/icons/arrow-up.js +2 -3
- package/src/components/icons/attach-file.js +2 -4
- package/src/components/icons/badge.js +2 -3
- package/src/components/icons/blanks.js +2 -3
- package/src/components/icons/bold.js +2 -3
- package/src/components/icons/boolean-list.js +2 -3
- package/src/components/icons/brush.js +2 -3
- package/src/components/icons/build.js +2 -4
- package/src/components/icons/bulk-update.js +2 -3
- package/src/components/icons/bullet-chart.d.ts +3 -0
- package/src/components/icons/bullet-chart.js +7 -0
- package/src/components/icons/calculated-column.js +2 -4
- package/src/components/icons/calendar.js +2 -3
- package/src/components/icons/call.js +2 -3
- package/src/components/icons/campaign.js +2 -3
- package/src/components/icons/case-lower.js +2 -3
- package/src/components/icons/case-sentence.js +2 -4
- package/src/components/icons/case-upper.js +2 -3
- package/src/components/icons/cell-summary.js +2 -3
- package/src/components/icons/cell-validation.js +2 -3
- package/src/components/icons/chart.js +2 -3
- package/src/components/icons/chat.js +2 -4
- package/src/components/icons/check-box-outline.js +2 -3
- package/src/components/icons/check-box.js +2 -3
- package/src/components/icons/check-circle.js +2 -3
- package/src/components/icons/check.js +2 -3
- package/src/components/icons/clone.js +2 -3
- package/src/components/icons/close.js +2 -3
- package/src/components/icons/cloud-upload.js +2 -3
- package/src/components/icons/collapse-all.js +2 -3
- package/src/components/icons/collapse.js +2 -3
- package/src/components/icons/column-add.js +2 -6
- package/src/components/icons/column-chooser.js +2 -3
- package/src/components/icons/column-filter.js +2 -3
- package/src/components/icons/column-info.js +2 -3
- package/src/components/icons/column-outline.js +2 -3
- package/src/components/icons/comment.js +2 -3
- package/src/components/icons/comments.js +2 -3
- package/src/components/icons/contact.js +2 -4
- package/src/components/icons/contains.js +2 -3
- package/src/components/icons/copy.js +2 -3
- package/src/components/icons/csv.js +2 -3
- package/src/components/icons/custom-sort.js +2 -3
- package/src/components/icons/dashboard.js +2 -3
- package/src/components/icons/data-object.js +2 -3
- package/src/components/icons/data-set.js +2 -3
- package/src/components/icons/date-range.js +2 -4
- package/src/components/icons/delete.js +2 -3
- package/src/components/icons/division.js +2 -3
- package/src/components/icons/dock.js +2 -3
- package/src/components/icons/dollar.js +2 -3
- package/src/components/icons/drag.js +2 -3
- package/src/components/icons/edit.js +2 -3
- package/src/components/icons/ends-with.js +2 -3
- package/src/components/icons/equal.js +2 -3
- package/src/components/icons/equation.js +2 -3
- package/src/components/icons/error.js +2 -3
- package/src/components/icons/excel.js +2 -4
- package/src/components/icons/expand-all.js +2 -3
- package/src/components/icons/expand.js +2 -3
- package/src/components/icons/exponent.js +2 -3
- package/src/components/icons/export.js +2 -3
- package/src/components/icons/fast-backward.js +2 -3
- package/src/components/icons/fast-forward.js +2 -3
- package/src/components/icons/fdc3.js +2 -5
- package/src/components/icons/filter-off.js +2 -3
- package/src/components/icons/filter.js +2 -3
- package/src/components/icons/flashing-cell.js +2 -3
- package/src/components/icons/folder-open.js +2 -3
- package/src/components/icons/folder-shared.js +2 -3
- package/src/components/icons/folder.js +2 -3
- package/src/components/icons/format-column.js +2 -3
- package/src/components/icons/freetext-column.js +2 -7
- package/src/components/icons/function.js +2 -3
- package/src/components/icons/gradient-column.js +2 -3
- package/src/components/icons/gradient.js +2 -3
- package/src/components/icons/greater-than-or-equal.js +2 -3
- package/src/components/icons/greater-than.js +2 -3
- package/src/components/icons/grid-filter.js +2 -3
- package/src/components/icons/grid-info.js +2 -3
- package/src/components/icons/hide-column.js +2 -4
- package/src/components/icons/history.js +2 -3
- package/src/components/icons/home.js +2 -3
- package/src/components/icons/icon-style.d.ts +3 -0
- package/src/components/icons/icon-style.js +7 -0
- package/src/components/icons/import-export.js +2 -3
- package/src/components/icons/import.js +2 -3
- package/src/components/icons/index.d.ts +1 -1
- package/src/components/icons/index.js +202 -7
- package/src/components/icons/info.js +2 -3
- package/src/components/icons/inspector.js +2 -4
- package/src/components/icons/instrument.js +2 -4
- package/src/components/icons/interactions.js +2 -4
- package/src/components/icons/invalid.js +2 -4
- package/src/components/icons/ipushpull.js +2 -4
- package/src/components/icons/italic.js +2 -3
- package/src/components/icons/justify.js +2 -3
- package/src/components/icons/layout.js +2 -3
- package/src/components/icons/less-than-or-equal.js +2 -3
- package/src/components/icons/less-than.js +2 -3
- package/src/components/icons/list.js +2 -3
- package/src/components/icons/login.js +2 -3
- package/src/components/icons/logout copy.js +2 -4
- package/src/components/icons/logout.js +2 -4
- package/src/components/icons/mail.js +2 -3
- package/src/components/icons/menu.js +2 -3
- package/src/components/icons/minus.js +2 -3
- package/src/components/icons/money.js +2 -4
- package/src/components/icons/multiplication.js +2 -3
- package/src/components/icons/newpage.js +2 -4
- package/src/components/icons/news.js +2 -4
- package/src/components/icons/non-blanks.js +2 -3
- package/src/components/icons/not-contains.js +2 -3
- package/src/components/icons/not-equal.js +2 -3
- package/src/components/icons/note.js +2 -3
- package/src/components/icons/open-in-new.js +2 -3
- package/src/components/icons/order.js +2 -3
- package/src/components/icons/organisation.js +2 -4
- package/src/components/icons/overline.js +2 -3
- package/src/components/icons/pause.js +2 -3
- package/src/components/icons/percent-bar.js +2 -8
- package/src/components/icons/percent.js +2 -3
- package/src/components/icons/person.js +2 -3
- package/src/components/icons/pie-chart.js +2 -3
- package/src/components/icons/play.js +2 -4
- package/src/components/icons/plus-minus.js +2 -3
- package/src/components/icons/plus.js +2 -3
- package/src/components/icons/query.js +2 -3
- package/src/components/icons/quick-search.js +2 -3
- package/src/components/icons/quote.js +2 -4
- package/src/components/icons/range-bar.d.ts +3 -0
- package/src/components/icons/range-bar.js +8 -0
- package/src/components/icons/refresh.js +2 -3
- package/src/components/icons/regex.js +2 -3
- package/src/components/icons/reminder.js +2 -3
- package/src/components/icons/resume.js +2 -3
- package/src/components/icons/rows.js +2 -3
- package/src/components/icons/save.js +2 -3
- package/src/components/icons/schedule.js +2 -6
- package/src/components/icons/science.js +2 -3
- package/src/components/icons/select-all.js +2 -3
- package/src/components/icons/select-fwd.js +2 -3
- package/src/components/icons/select-off.js +2 -3
- package/src/components/icons/settings.js +2 -3
- package/src/components/icons/shortcut.js +2 -3
- package/src/components/icons/show-column.js +2 -4
- package/src/components/icons/smart-edit.js +2 -3
- package/src/components/icons/sort-asc.js +2 -6
- package/src/components/icons/sort-desc.js +2 -6
- package/src/components/icons/spark-line.js +2 -3
- package/src/components/icons/star.d.ts +3 -0
- package/src/components/icons/star.js +4 -0
- package/src/components/icons/starts-with.js +2 -3
- package/src/components/icons/state-management.js +2 -3
- package/src/components/icons/statusbar.js +2 -4
- package/src/components/icons/stop.js +2 -3
- package/src/components/icons/strikethrough.js +2 -3
- package/src/components/icons/styled-grid.js +2 -4
- package/src/components/icons/sync.js +2 -3
- package/src/components/icons/system-status.js +2 -3
- package/src/components/icons/tab-unselected.js +2 -3
- package/src/components/icons/table-arrow-right.js +2 -3
- package/src/components/icons/team-share.js +2 -3
- package/src/components/icons/theme.js +2 -4
- package/src/components/icons/tool-panel.js +2 -3
- package/src/components/icons/track-changes.js +2 -4
- package/src/components/icons/triangle-down.js +2 -3
- package/src/components/icons/triangle-up.js +2 -3
- package/src/components/icons/unchecked.js +2 -3
- package/src/components/icons/underline.js +2 -3
- package/src/components/icons/undo.js +2 -3
- package/src/components/icons/updated-row.js +2 -3
- package/src/components/icons/upload.js +2 -4
- package/src/components/icons/user-filter.js +2 -3
- package/src/components/icons/visibility-off.js +2 -3
- package/src/components/icons/visibility.js +2 -4
- package/src/components/icons/warning.js +2 -3
- package/src/components/twUtils.d.ts +3 -0
- package/src/components/twUtils.js +9 -3
- package/src/components/ui/button.d.ts +8 -0
- package/src/components/ui/button.js +34 -0
- package/src/components/ui/calendar.d.ts +7 -0
- package/src/components/ui/calendar.js +104 -0
- package/src/components/ui/combobox.d.ts +48 -0
- package/src/components/ui/combobox.js +100 -0
- package/src/components/ui/dropdown-menu.d.ts +29 -0
- package/src/components/ui/dropdown-menu.js +50 -0
- package/src/components/ui/input-group.d.ts +18 -0
- package/src/components/ui/input-group.js +57 -0
- package/src/components/ui/input.d.ts +3 -0
- package/src/components/ui/input.js +7 -0
- package/src/components/ui/popover.d.ts +9 -0
- package/src/components/ui/popover.js +22 -0
- package/src/components/ui/select.d.ts +26 -0
- package/src/components/ui/select.js +38 -0
- package/src/components/ui/textarea.d.ts +3 -0
- package/src/components/ui/textarea.js +6 -0
- package/src/components/ui/tooltip.d.ts +6 -0
- package/src/components/ui/tooltip.js +16 -0
- package/src/env.js +2 -2
- package/src/layout-manager/src/index.d.ts +2 -2
- package/src/layout-manager/src/index.js +11 -4
- package/src/lib/utils.d.ts +3 -0
- package/src/lib/utils.js +6 -0
- package/src/metamodel/adaptable.metamodel.d.ts +393 -59
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/migration/AdaptableUpgradeHelper.js +3 -1
- package/src/migration/VersionUpgrade22.js +11 -21
- package/src/migration/VersionUpgrade23.d.ts +85 -0
- package/src/migration/VersionUpgrade23.js +237 -0
- package/src/setupDevTools.d.ts +3 -0
- package/src/setupDevTools.js +410 -0
- package/src/types.d.ts +14 -13
- package/src/types.js +1 -0
- package/themes/dark.css +34 -6
- package/tsconfig.esm.tsbuildinfo +1 -1
- package/fonts/glyphicons-halflings-regular.eot +0 -0
- package/fonts/glyphicons-halflings-regular.svg +0 -288
- package/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/fonts/glyphicons-halflings-regular.woff +0 -0
- package/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/AdaptableState/ScheduleState.d.ts +0 -52
- package/src/Api/Events/ScheduleTriggered.d.ts +0 -11
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +0 -51
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -199
- package/src/Api/ScheduleApi.d.ts +0 -224
- package/src/Api/ScheduleApi.js +0 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -191
- package/src/Redux/ActionsReducers/ScheduleRedux.js +0 -390
- package/src/Strategy/Interface/IScheduleModule.d.ts +0 -4
- package/src/Strategy/Interface/IScheduleModule.js +0 -1
- package/src/Strategy/ScheduleModule.d.ts +0 -21
- package/src/Strategy/ScheduleModule.js +0 -269
- package/src/View/FormatColumn/Wizard/FormatColumnColumnScopeWizardSection.js +0 -46
- package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.d.ts +0 -8
- package/src/View/FormatColumn/Wizard/FormatColumnRowScopeWizardSection.js +0 -80
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.d.ts +0 -11
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +0 -73
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +0 -36
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.d.ts +0 -8
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +0 -75
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.d.ts +0 -12
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +0 -65
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +0 -7
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -86
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.d.ts +0 -7
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -30
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.d.ts +0 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/index.js +0 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.d.ts +0 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +0 -53
- package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +0 -6
- package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -109
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeRowsSection.d.ts +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeRowsSection.js +0 -101
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.d.ts +0 -9
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +0 -89
- package/src/View/Theme/ThemeEditor.d.ts +0 -8
- package/src/View/Theme/ThemeEditor.js +0 -160
- package/src/View/Theme/ThemeEditorWindow.d.ts +0 -2
- package/src/View/Theme/ThemeEditorWindow.js +0 -10
- package/src/View/Theme/ThemeField.d.ts +0 -11
- package/src/View/Theme/ThemeField.js +0 -34
- package/src/components/Select/Select.d.ts +0 -53
- package/src/components/Select/Select.js +0 -765
- package/src/components/Select/index.d.ts +0 -1
- package/src/components/Select/index.js +0 -1
- package/src/components/Tree/TreeList/index.d.ts +0 -25
- package/src/components/Tree/TreeList/index.js +0 -31
- /package/{src/AdaptableState/ScheduleState.js → devtools.js} +0 -0
- /package/src/Api/Events/{ScheduleTriggered.js → ReportScheduleRan.js} +0 -0
- /package/src/{Api/Internal/ScheduleInternalApi.d.ts → Strategy/Interface/IAlertModule.js} +0 -0
- /package/src/{Api/Internal/ScheduleInternalApi.js → Strategy/Interface/IExportModule.js} +0 -0
- /package/src/View/FormatColumn/Wizard/{FormatColumnColumnScopeWizardSection.d.ts → FormatColumnScopeWizardSection.d.ts} +0 -0
|
@@ -0,0 +1,527 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPrimitive, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor, RESIZABLE_VIRTUALIZED_LIST_CLASS, } from "../ui/combobox";
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
import { ChevronDownIcon, Loader2Icon, PlusIcon } from 'lucide-react';
|
|
6
|
+
import { useMemo } from 'react';
|
|
7
|
+
import { InputGroupAddon, InputGroupButton } from '../ui/input-group';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import { getItemTextLabel, toStringValue, toStringValues, valueToItem, valueToItems, } from './comboboxUtils';
|
|
10
|
+
import { VirtualizedList } from './VirtualizedList';
|
|
11
|
+
import { CheckBox } from '../CheckBox';
|
|
12
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from '../ui/tooltip';
|
|
13
|
+
const getContentStyle = ({ maxLabelLength }) => {
|
|
14
|
+
const labelWidth = `${maxLabelLength + 3}ch`;
|
|
15
|
+
return {
|
|
16
|
+
width: labelWidth,
|
|
17
|
+
minWidth: `min(var(--anchor-width), var(--available-width), 80vw)`,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
const getEmptyText = (props) => {
|
|
21
|
+
if (props.isLoading) {
|
|
22
|
+
return 'Loading...';
|
|
23
|
+
}
|
|
24
|
+
return props.emptyText ?? 'No items found.';
|
|
25
|
+
};
|
|
26
|
+
const AdaptableComboboxList = (props) => {
|
|
27
|
+
const virtualizerRef = React.useRef(null);
|
|
28
|
+
const loadingClassName = props.isLoading ? 'twa:opacity-50' : undefined;
|
|
29
|
+
const renderItem = (item) => {
|
|
30
|
+
const isUncreatedCreatable = item.creatable && !item.created;
|
|
31
|
+
const label = isUncreatedCreatable ? `Create "${item.label}"` : item.label;
|
|
32
|
+
const itemLabel = props.renderItemLabel ? props.renderItemLabel(label, item) : label;
|
|
33
|
+
const itemContent = isUncreatedCreatable ? (_jsxs(_Fragment, { children: [_jsx(PlusIcon, {}), " ", itemLabel] })) : (itemLabel);
|
|
34
|
+
const textLabel = props.showItemTooltip ? getItemTextLabel(item) : undefined;
|
|
35
|
+
const tooltipText = textLabel != null ? (isUncreatedCreatable ? `Create "${textLabel}"` : textLabel) : undefined;
|
|
36
|
+
const itemElement = (_jsx(ComboboxItem, { value: item, className: 'ab-Combobox-Row', disabled: item.disabled, renderCheckboxIndicator: props.renderCheckboxIndicator, children: itemContent }, item.value));
|
|
37
|
+
if (tooltipText != null) {
|
|
38
|
+
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { render: itemElement, children: itemContent }), _jsx(TooltipContent, { side: "right", children: tooltipText })] }, item.value));
|
|
39
|
+
}
|
|
40
|
+
return itemElement;
|
|
41
|
+
};
|
|
42
|
+
const list = props.groups ? (_jsx(ComboboxList, { className: loadingClassName, children: (group, index) => (_jsxs(React.Fragment, { children: [_jsxs(ComboboxGroup, { items: group.items, children: [group.label && _jsx(ComboboxLabel, { children: group.label }), _jsx(ComboboxCollection, { children: renderItem })] }), index < (props.groups?.length || 0) - 1 && _jsx(ComboboxSeparator, {})] }, typeof group.label === 'string' ? group.label : `${index}`)) })) : props.virtualized ? (_jsx(ComboboxPrimitive.List, { className: cn(loadingClassName, RESIZABLE_VIRTUALIZED_LIST_CLASS), children: _jsx(VirtualizedList, { open: props.open, renderItemLabel: props.renderItemLabel, virtualizerRef: virtualizerRef, showItemTooltip: props.showItemTooltip, renderCheckboxIndicator: props.renderCheckboxIndicator }) })) : (_jsx(ComboboxList, { className: loadingClassName, children: renderItem }));
|
|
43
|
+
return (_jsxs(_Fragment, { children: [props.showSelectAllCheckbox && (_jsx(ComboboxValue, { children: (selectedItems) => {
|
|
44
|
+
const allChecked = props.selectAllCheckboxValue !== undefined
|
|
45
|
+
? props.selectAllCheckboxValue
|
|
46
|
+
: selectedItems.length === props.totalCount
|
|
47
|
+
? true
|
|
48
|
+
: selectedItems.length >= 1
|
|
49
|
+
? null
|
|
50
|
+
: false;
|
|
51
|
+
return (_jsx(CheckBox, { checked: allChecked, onChange: (checked) => {
|
|
52
|
+
props.onCheckAllChange?.(checked);
|
|
53
|
+
}, onMouseDown: (e) => {
|
|
54
|
+
// Prevent focus from moving to the checkbox input;
|
|
55
|
+
// keeps focus on the combobox input so arrow-key navigation still works.
|
|
56
|
+
// while still allowing the checkbox to be checked/unchecked as usual
|
|
57
|
+
// either by clicking or by using the keyboard
|
|
58
|
+
e.preventDefault();
|
|
59
|
+
}, className: cn('twa:m-0 twa:px-3 twa:py-1 twa:text-sm twa:font-normal twa:text-current twa:w-full twa:bg-primary', {
|
|
60
|
+
'twa:mt-1': props.searchable === 'menulist',
|
|
61
|
+
[loadingClassName]: props.isLoading,
|
|
62
|
+
}), children: "Select All" }));
|
|
63
|
+
} })), _jsx(ComboboxEmpty, { children: props.emptyText }), list] }));
|
|
64
|
+
};
|
|
65
|
+
export const SingleCombobox = (props) => {
|
|
66
|
+
const searchable = props.searchable === false ? false : props.searchable === 'menulist' ? 'menulist' : 'inline';
|
|
67
|
+
const isOpenControlled = props.open !== undefined;
|
|
68
|
+
const [open, setOpen] = React.useState(props.open ?? props.defaultOpen ?? false);
|
|
69
|
+
const resolvedOpen = isOpenControlled ? props.open : open;
|
|
70
|
+
const onOpenChange = (nextOpen) => {
|
|
71
|
+
if (!isOpenControlled)
|
|
72
|
+
setOpen(nextOpen);
|
|
73
|
+
props.onOpenChange?.(nextOpen);
|
|
74
|
+
};
|
|
75
|
+
const showItemTooltip = props.showItemTooltip ?? !!props.virtualized;
|
|
76
|
+
return searchable === 'menulist' ? (_jsx(SingleCombobox_MenuListSearchable, { ...props, multiple: false, open: resolvedOpen, onOpenChange: onOpenChange, searchable: searchable, showItemTooltip: showItemTooltip })) : (_jsx(SingleCombobox_SimpleSearchable, { ...props, multiple: false, open: resolvedOpen, onOpenChange: onOpenChange, searchable: searchable, showItemTooltip: showItemTooltip }));
|
|
77
|
+
};
|
|
78
|
+
const isItemEqualToValue = (a, b) => a?.value === b?.value;
|
|
79
|
+
const AdaptableCombobox_Root = (props) => {
|
|
80
|
+
const allItems = props.allItems;
|
|
81
|
+
const itemByValue = props.itemByValue;
|
|
82
|
+
const resolvedValue = props.multiple
|
|
83
|
+
? valueToItems(props.value, itemByValue)
|
|
84
|
+
: valueToItem(props.value, itemByValue);
|
|
85
|
+
// When props.value is defined, always pass null (not undefined) to keep base-ui in controlled mode,
|
|
86
|
+
// even if the item isn't in the lookup yet (e.g. async item loading).
|
|
87
|
+
const internalValue = props.value !== undefined ? resolvedValue ?? null : resolvedValue;
|
|
88
|
+
const internalDefaultValue = props.multiple
|
|
89
|
+
? valueToItems(props.defaultValue, itemByValue)
|
|
90
|
+
: valueToItem(props.defaultValue, itemByValue);
|
|
91
|
+
const handleValueChange = (next) => {
|
|
92
|
+
if (!props.onValueChange)
|
|
93
|
+
return;
|
|
94
|
+
if (Array.isArray(next)) {
|
|
95
|
+
props.onValueChange(toStringValues(next), next);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
props.onValueChange(toStringValue(next), next);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
let comboboxItems = props.groups ?? props.items;
|
|
102
|
+
if (props.isCreatable && allItems[allItems.length - 1]?.creatable) {
|
|
103
|
+
// let's detect all "creatable" items and add them to the combobox items
|
|
104
|
+
const creatableItems = [];
|
|
105
|
+
for (let len = allItems.length - 1; len >= 0; len--) {
|
|
106
|
+
const item = allItems[len];
|
|
107
|
+
if (item.creatable) {
|
|
108
|
+
creatableItems.unshift(item);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
comboboxItems = [...comboboxItems, ...creatableItems];
|
|
115
|
+
}
|
|
116
|
+
return (_jsx(Combobox, { ...props, items: comboboxItems, isItemEqualToValue: isItemEqualToValue, itemToStringLabel: getItemTextLabel, value: internalValue, defaultValue: internalDefaultValue, onValueChange: handleValueChange, "aria-label": props.ariaLabel || props['aria-label'], "data-name": props['data-name'], disabled: props.disabled, open: props.open, onOpenChange: props.onOpenChange, multiple: props.multiple, filter: props.filter, autoHighlight: true, children: props.children }));
|
|
117
|
+
};
|
|
118
|
+
const useGetAllItems = (props) => {
|
|
119
|
+
const allItems = props.groups
|
|
120
|
+
? props.groups.flatMap((g) => g.items)
|
|
121
|
+
: props.isCreatable
|
|
122
|
+
? // for creatable, let's clone the items
|
|
123
|
+
// as we'll push to the "allItems" array
|
|
124
|
+
[].concat(props.items)
|
|
125
|
+
: props.items;
|
|
126
|
+
const itemByValue = useMemo(() => {
|
|
127
|
+
return new Map(allItems.map((item) => [item.value, item]));
|
|
128
|
+
}, [allItems]);
|
|
129
|
+
const { inputValue, onInputValueChange, onValueChange, value } = useCreatable(props, allItems, itemByValue);
|
|
130
|
+
return {
|
|
131
|
+
value,
|
|
132
|
+
itemByValue,
|
|
133
|
+
inputValue,
|
|
134
|
+
onInputValueChange,
|
|
135
|
+
onValueChange,
|
|
136
|
+
allItems,
|
|
137
|
+
maxLabelLength: allItems.reduce((max, item) => Math.max(max, typeof item.label === 'string' ? item.label.length : 0), 0),
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
function useCreatable(props, allItems, itemByValue) {
|
|
141
|
+
// thse are items that the user has already hit "Enter" or selected
|
|
142
|
+
// so they should be reflected as normal items in the combobox
|
|
143
|
+
const [alreadySavedCreatableItems, setAlreadySavedCreatableItems] = React.useState([]);
|
|
144
|
+
const itemByValueRef = React.useRef(itemByValue);
|
|
145
|
+
itemByValueRef.current = itemByValue;
|
|
146
|
+
if (props.isCreatable && alreadySavedCreatableItems.length > 0) {
|
|
147
|
+
alreadySavedCreatableItems.forEach((item) => {
|
|
148
|
+
itemByValue.set(item.value, item);
|
|
149
|
+
allItems.push(item);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
const handleValueChange = (value, item) => {
|
|
153
|
+
const itemsToCreate = Array.isArray(item)
|
|
154
|
+
? item.filter((item) => item.creatable && !item.created)
|
|
155
|
+
: item && item.creatable && !item.created
|
|
156
|
+
? [item]
|
|
157
|
+
: [];
|
|
158
|
+
let savingCreatableItem = false;
|
|
159
|
+
let itemsAllNumeric = false;
|
|
160
|
+
let newCreatedItems = [];
|
|
161
|
+
if (props.isCreatable && itemsToCreate.length > 0) {
|
|
162
|
+
savingCreatableItem = true;
|
|
163
|
+
itemsAllNumeric = allItems.every((item) => !item.creatable ? typeof item.value === 'number' : true);
|
|
164
|
+
setAlreadySavedCreatableItems((current) => {
|
|
165
|
+
newCreatedItems = itemsToCreate.map((item) => ({
|
|
166
|
+
...item,
|
|
167
|
+
creatable: true,
|
|
168
|
+
created: true,
|
|
169
|
+
// if all other items are numeric, and the value for the created item is a valid number, then convert the value to a number
|
|
170
|
+
// we'll also have to correctly call onValueChange with the new value
|
|
171
|
+
value: itemsAllNumeric && !Number.isNaN(Number(item.value)) ? Number(item.value) : item.value,
|
|
172
|
+
}));
|
|
173
|
+
const mergedItems = [...current, ...newCreatedItems];
|
|
174
|
+
const seenValues = new Set();
|
|
175
|
+
return mergedItems.filter((item) => {
|
|
176
|
+
const key = `${item.value}`;
|
|
177
|
+
if (seenValues.has(key)) {
|
|
178
|
+
return false;
|
|
179
|
+
}
|
|
180
|
+
seenValues.add(key);
|
|
181
|
+
return true;
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
if (savingCreatableItem) {
|
|
186
|
+
if (props.multiple) {
|
|
187
|
+
// Replace the "creatable-not-yet-created" items in the full selection
|
|
188
|
+
// with their newly-created counterparts so existing values are preserved.
|
|
189
|
+
const createdByOriginalValue = new Map();
|
|
190
|
+
itemsToCreate.forEach((it, idx) => {
|
|
191
|
+
createdByOriginalValue.set(it.value, newCreatedItems[idx]);
|
|
192
|
+
});
|
|
193
|
+
const mergedItems = item.map((existing) => {
|
|
194
|
+
return createdByOriginalValue.get(existing.value) ?? existing;
|
|
195
|
+
});
|
|
196
|
+
const mergedValues = mergedItems.map((i) => i.value);
|
|
197
|
+
props.onValueChange?.(mergedValues, mergedItems);
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
props.onValueChange?.(newCreatedItems[0].value, newCreatedItems[0]);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
props.onValueChange?.(value, item);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
const [defaultControlledValue, setDefaultControlledValue] = React.useState(props.defaultValue ?? (props.multiple ? [] : null));
|
|
208
|
+
const value = props.value === undefined ? defaultControlledValue : props.value;
|
|
209
|
+
let initialInputValue = props.inputValue ?? props.defaultInputValue ?? undefined;
|
|
210
|
+
if (initialInputValue === undefined) {
|
|
211
|
+
if (!props.multiple && value != undefined) {
|
|
212
|
+
const item = itemByValue.get(value);
|
|
213
|
+
if (item) {
|
|
214
|
+
initialInputValue = getItemTextLabel(item);
|
|
215
|
+
}
|
|
216
|
+
else if (props.isCreatable) {
|
|
217
|
+
// For a creatable combobox, surface a controlled value that doesn't
|
|
218
|
+
// match any item as the input so the trigger displays it instead of
|
|
219
|
+
// falling back to the placeholder. The value is also re-added below
|
|
220
|
+
// as a creatable item, so base-ui can resolve it back to a row.
|
|
221
|
+
initialInputValue = `${value}`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
if (initialInputValue === undefined) {
|
|
225
|
+
initialInputValue = '';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
const [inputValue, setInputValue] = React.useState(initialInputValue ? `${initialInputValue}` : '');
|
|
229
|
+
React.useEffect(() => {
|
|
230
|
+
if (!props.multiple) {
|
|
231
|
+
const item = itemByValueRef.current.get(props.value);
|
|
232
|
+
if (item) {
|
|
233
|
+
setInputValue(getItemTextLabel(item));
|
|
234
|
+
}
|
|
235
|
+
else if (props.isCreatable && props.value != undefined) {
|
|
236
|
+
setInputValue(`${props.value}`);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, [props.value, props.multiple, props.isCreatable]);
|
|
240
|
+
if (props.isCreatable) {
|
|
241
|
+
if (inputValue) {
|
|
242
|
+
const newValue = inputValue.trim();
|
|
243
|
+
const normalized = newValue.toLocaleLowerCase().replace(/\s+/g, '-');
|
|
244
|
+
const exactExists = allItems.some((item) => {
|
|
245
|
+
const normalizedItemValue = `${item.value}`.trim().toLocaleLowerCase().replace(/\s+/g, '-');
|
|
246
|
+
return normalizedItemValue === normalized;
|
|
247
|
+
});
|
|
248
|
+
if (newValue !== '' && !exactExists) {
|
|
249
|
+
// When the creatable input is mirroring the controlled `props.value`
|
|
250
|
+
// (e.g. an unknown numeric value), use the original value's type for
|
|
251
|
+
// the synthesized item so `valueToItem(props.value, itemByValue)` can
|
|
252
|
+
// resolve back to it. Otherwise fall back to the typed string.
|
|
253
|
+
const creatableValue = !props.multiple && props.value != undefined && `${props.value}` === newValue
|
|
254
|
+
? props.value
|
|
255
|
+
: newValue;
|
|
256
|
+
const creatableItem = {
|
|
257
|
+
creatable: true,
|
|
258
|
+
created: false,
|
|
259
|
+
value: creatableValue,
|
|
260
|
+
label: newValue,
|
|
261
|
+
};
|
|
262
|
+
itemByValue.set(creatableValue, creatableItem);
|
|
263
|
+
allItems.push(creatableItem);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const onValueChange = (value, item) => {
|
|
268
|
+
if (props.value === undefined) {
|
|
269
|
+
setDefaultControlledValue(value);
|
|
270
|
+
}
|
|
271
|
+
if (!props.isCreatable) {
|
|
272
|
+
props.onValueChange?.(value, item);
|
|
273
|
+
}
|
|
274
|
+
else {
|
|
275
|
+
handleValueChange(value, item);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const handleInputValueChange = (value) => {
|
|
279
|
+
setInputValue(value);
|
|
280
|
+
props.onInputValueChange?.(value);
|
|
281
|
+
};
|
|
282
|
+
const result = !props.isCreatable
|
|
283
|
+
? {
|
|
284
|
+
inputValue: undefined,
|
|
285
|
+
onInputValueChange: props.onInputValueChange,
|
|
286
|
+
onValueChange,
|
|
287
|
+
value,
|
|
288
|
+
}
|
|
289
|
+
: {
|
|
290
|
+
inputValue,
|
|
291
|
+
onInputValueChange: handleInputValueChange,
|
|
292
|
+
onValueChange,
|
|
293
|
+
value,
|
|
294
|
+
};
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
const SingleCombobox_MenuListSearchable = (props) => {
|
|
298
|
+
const emptyText = getEmptyText(props);
|
|
299
|
+
const isDisabled = props.disabled;
|
|
300
|
+
const showClear = props.showClear ?? true;
|
|
301
|
+
const anchor = useComboboxAnchor();
|
|
302
|
+
const triggerClassName = cn('ab-ComboBox', 'twa:bg-input-background', props.className);
|
|
303
|
+
const searchInputClassName = cn('ab-ComboBox', props.searchInputClassName ?? cn('twa:bg-input-background', props.className));
|
|
304
|
+
const triggerRef = React.useRef(null);
|
|
305
|
+
const searchInputRef = React.useRef(null);
|
|
306
|
+
const contentElRef = React.useRef(null);
|
|
307
|
+
const contentRefCallback = React.useCallback((el) => {
|
|
308
|
+
contentElRef.current = el;
|
|
309
|
+
}, []);
|
|
310
|
+
const hasFocusRef = React.useRef(false);
|
|
311
|
+
const handleFocus = props.onFocus
|
|
312
|
+
? () => {
|
|
313
|
+
if (!hasFocusRef.current) {
|
|
314
|
+
hasFocusRef.current = true;
|
|
315
|
+
props.onFocus();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
: undefined;
|
|
319
|
+
const handleBlur = props.onBlur
|
|
320
|
+
? (e) => {
|
|
321
|
+
const relatedTarget = e.relatedTarget;
|
|
322
|
+
const isInternal = triggerRef.current?.contains(relatedTarget) ||
|
|
323
|
+
relatedTarget === searchInputRef.current ||
|
|
324
|
+
contentElRef.current?.contains(relatedTarget);
|
|
325
|
+
if (!isInternal) {
|
|
326
|
+
hasFocusRef.current = false;
|
|
327
|
+
props.onBlur();
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
: undefined;
|
|
331
|
+
const { allItems, itemByValue, maxLabelLength, inputValue, onInputValueChange, onValueChange, value, } = useGetAllItems(props);
|
|
332
|
+
return (_jsxs(AdaptableCombobox_Root, { ...props, value: value, allItems: allItems, itemByValue: itemByValue, inputValue: inputValue, onInputValueChange: onInputValueChange, onValueChange: onValueChange, children: [_jsx(ComboboxPrimitive.Trigger, { ref: triggerRef, render: _jsx("div", {}), nativeButton: false, "data-slot": "combobox-menulist-trigger", tabIndex: 0, "aria-label": props.ariaLabel || props['aria-label'], "data-name": props['data-name'], className: cn(
|
|
333
|
+
// we intentially replaced :focus-visible with :focus
|
|
334
|
+
// because when the user clicked an item and the combobox closed
|
|
335
|
+
// the focus ring would not be displayed properly
|
|
336
|
+
// in this specific case of SingleCombobox_MenuListSearchable
|
|
337
|
+
'twa:flex twa:w-full twa:cursor-default twa:items-center twa:justify-between twa:gap-1.5 twa:rounded-input twa:border twa:border-input twa:bg-transparent twa:py-2 twa:pr-2 twa:pl-2.5 twa:text-sm twa:whitespace-nowrap twa:shadow-xs twa:transition-[color,box-shadow] twa:outline-none twa:select-none twa:focus:border-ring twa:focus:ring-3 twa:focus:ring-ring/50 twa:disabled:cursor-not-allowed twa:disabled:opacity-50 twa:data-placeholder:text-muted-foreground twa:h-9', triggerClassName), disabled: isDisabled, onFocus: handleFocus, onBlur: handleBlur, children: _jsx(ComboboxValue, { placeholder: _jsx("span", { children: props.placeholder }), children: (value) => {
|
|
338
|
+
return (_jsxs(React.Fragment, { children: [_jsx("span", { className: "twa:flex twa:flex-1 twa:truncate twa:text-left", "data-slot": "combobox-value", children: _jsx(ComboboxValue, { placeholder: _jsx("span", { children: props.placeholder }) }) }), _jsx("input", { type: "hidden", "data-slot": "combobox-value-input", readOnly: true, value: value ? getItemTextLabel(value) : '' }), props.isLoading && (_jsx(Loader2Icon, { className: "twa:size-4 twa:text-muted-foreground twa:animate-spin" })), value && showClear ? (_jsx(ComboboxClear, { disabled: isDisabled, onMouseDown: (e) => {
|
|
339
|
+
e.preventBaseUIHandler();
|
|
340
|
+
} })) : (_jsx(InputGroupButton, { size: "icon-xs", variant: "ghost", className: 'twa:min-h-auto!', children: _jsx(ChevronDownIcon, { className: "twa:pointer-events-none twa:size-4 twa:shrink-0 twa:text-muted-foreground" }) }))] }));
|
|
341
|
+
} }) }), _jsxs(ComboboxContent, { anchor: anchor, style: getContentStyle({ maxLabelLength }), resizable: props.resizable, contentRef: contentRefCallback, className: props.contentClassName, children: [_jsx(ComboboxInput, { className: searchInputClassName, placeholder: props.placeholder, showClear: false, showTrigger: false, disabled: isDisabled, ref: searchInputRef, onFocus: handleFocus, onBlur: handleBlur }), _jsx(AdaptableComboboxList, { renderItemLabel: props.renderItemLabel, searchable: props.searchable, emptyText: emptyText, groups: props.groups, virtualized: !!props.virtualized, showItemTooltip: !!props.showItemTooltip, open: props.open, isLoading: props.isLoading })] })] }));
|
|
342
|
+
};
|
|
343
|
+
const SingleCombobox_SimpleSearchable = (props) => {
|
|
344
|
+
const emptyText = getEmptyText(props);
|
|
345
|
+
const anchor = useComboboxAnchor();
|
|
346
|
+
const className = cn('ab-ComboBox', 'twa:bg-input-background');
|
|
347
|
+
const showClear = props.showClear ?? true;
|
|
348
|
+
const searchable = props.searchable === false ? false : 'inline';
|
|
349
|
+
const isDisabled = props.disabled;
|
|
350
|
+
const { allItems, itemByValue, maxLabelLength, inputValue, onInputValueChange, onValueChange, value, } = useGetAllItems(props);
|
|
351
|
+
return (_jsxs(AdaptableCombobox_Root, { ...props, value: value, itemByValue: itemByValue, inputValue: inputValue, onInputValueChange: onInputValueChange, onValueChange: onValueChange, allItems: allItems, children: [_jsx(ComboboxInput, { className: className, groupRef: anchor, placeholder: props.placeholder, showClear: showClear, showTrigger: true, isLoading: props.isLoading, disabled: isDisabled, readOnly: searchable === false, "aria-label": props.ariaLabel || props['aria-label'], "data-name": props['data-name'], onFocus: props.onFocus, onBlur: props.onBlur }), _jsx(ComboboxContent, { anchor: anchor, style: getContentStyle({ maxLabelLength }), resizable: props.resizable, children: _jsx(AdaptableComboboxList, { searchable: props.searchable, renderItemLabel: props.renderItemLabel, emptyText: emptyText, groups: props.groups, virtualized: !!props.virtualized, showItemTooltip: !!props.showItemTooltip, open: props.open, isLoading: props.isLoading }) })] }));
|
|
352
|
+
};
|
|
353
|
+
const MultiCombobox_SimpleSearchable = (props) => {
|
|
354
|
+
const anchor = useComboboxAnchor();
|
|
355
|
+
const emptyText = getEmptyText(props);
|
|
356
|
+
const showClear = props.showClear ?? true;
|
|
357
|
+
const isDisabled = props.disabled;
|
|
358
|
+
const { allItems, itemByValue, maxLabelLength, inputValue, onInputValueChange, onValueChange, value, } = useGetAllItems(props);
|
|
359
|
+
const onCheckAllChange = props.onSelectAllCheckboxChange ??
|
|
360
|
+
((checked) => {
|
|
361
|
+
if (checked) {
|
|
362
|
+
onValueChange?.(allItems.map((item) => item.value), allItems);
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
onValueChange?.([], []);
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
const [menuOpen, setMenuOpen] = React.useState(false);
|
|
369
|
+
const onOpenChange = (open) => {
|
|
370
|
+
setMenuOpen(open);
|
|
371
|
+
props.onOpenChange(open);
|
|
372
|
+
};
|
|
373
|
+
return (_jsxs(AdaptableCombobox_Root, { ...props, value: value, multiple: true, allItems: allItems, itemByValue: itemByValue, inputValue: inputValue, onInputValueChange: onInputValueChange, onValueChange: onValueChange, onOpenChange: onOpenChange, children: [_jsx(ComboboxChips, { "aria-label": props.ariaLabel || props['aria-label'], "data-name": props['data-name'], onClick: (e) => {
|
|
374
|
+
// ignore clicks that originate from the right-side controls (chevron / clear),
|
|
375
|
+
// since those buttons already toggle the combobox themselves. without this guard,
|
|
376
|
+
// clicking the chevron while the popup is open would first close it (via the
|
|
377
|
+
// base-ui trigger) and then the bubbled click would re-open it here.
|
|
378
|
+
if (e.target.closest('[data-slot="input-group"]')) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
if (!menuOpen) {
|
|
382
|
+
onOpenChange(true);
|
|
383
|
+
}
|
|
384
|
+
}, ref: anchor, className: clsx('twa:relative', props.className), children: _jsx(ComboboxValue, { children: (selectedItems) => {
|
|
385
|
+
const shouldKeepTrigger = props.searchable === false && selectedItems.length > 0;
|
|
386
|
+
return (_jsxs(React.Fragment, { children: [props.renderInputValues ? (props.renderInputValues(selectedItems)) : (_jsx(MultiComboboxChips, { selectedItems: selectedItems, showClear: showClear })), props.renderInput !== false ? (_jsxs(_Fragment, { children: [_jsx(ComboboxChipsInput, { placeholder: selectedItems.length > 0 ? '' : props.placeholder, readOnly: props.searchable === false, onFocus: props.onFocus, onBlur: props.onBlur, className: props.searchable === false && selectedItems.length > 0
|
|
387
|
+
? 'twa:absolute! twa:inset-0 twa:min-h-auto! twa:max-h-auto!' // so we fill the parent container and on click we can open the combobox as usual
|
|
388
|
+
: 'twa:flex-1' }), props.searchable === false && selectedItems.length > 0 ? (_jsx("div", { className: "twa:flex-1" })) : null, _jsx("div", { "data-slot": "input-group", role: "group", className: "twa:group/input-group twa:z-10", children: _jsxs(InputGroupAddon, { align: "inline-end", className: "twa:p-0 px twa:gap-0.5", children: [props.isLoading && (_jsx(Loader2Icon, { className: "twa:size-4 twa:text-muted-foreground twa:animate-spin" })), _jsx(InputGroupButton, { size: "icon-xs", variant: "ghost", render: _jsx(ComboboxTrigger, { className: "twa:min-h-auto!" }), "data-slot": "input-group-button", className: clsx(`twa:data-pressed:bg-transparent`, shouldKeepTrigger
|
|
389
|
+
? ''
|
|
390
|
+
: 'twa:group-has-data-[slot=combobox-clear]/input-group:hidden'), disabled: isDisabled }), showClear && _jsx(ComboboxClear, { disabled: isDisabled })] }) })] })) : null] }));
|
|
391
|
+
} }) }), _jsx(ComboboxContent, { anchor: anchor, style: getContentStyle({ maxLabelLength }), resizable: props.resizable, children: _jsx(AdaptableComboboxList, { searchable: props.searchable, emptyText: emptyText, renderItemLabel: props.renderItemLabel, showSelectAllCheckbox: props.showSelectAllCheckbox, renderCheckboxIndicator: props.renderCheckboxIndicator ?? true, onCheckAllChange: onCheckAllChange, totalCount: allItems.length, groups: props.groups, virtualized: !!props.virtualized, showItemTooltip: !!props.showItemTooltip, open: props.open, isLoading: props.isLoading }) })] }));
|
|
392
|
+
};
|
|
393
|
+
const MultiComboboxChips = (props) => {
|
|
394
|
+
return (_jsx(_Fragment, { children: props.selectedItems.map((item) => (_jsx(ComboboxChip, { showRemove: props.showClear, onMouseDown: (e) => {
|
|
395
|
+
// this prevents showing the list when the user simply wants to remove a chip
|
|
396
|
+
e.preventBaseUIHandler?.();
|
|
397
|
+
}, className: 'twa:overflow-hidden', "aria-label": typeof item.label === 'string' ? item.label : undefined, children: item.label }, item.value))) }));
|
|
398
|
+
};
|
|
399
|
+
const MultiCombobox_MenuListSearchable = (props) => {
|
|
400
|
+
const anchor = useComboboxAnchor();
|
|
401
|
+
const emptyText = getEmptyText(props);
|
|
402
|
+
const showClear = props.showClear ?? true;
|
|
403
|
+
const isDisabled = props.disabled;
|
|
404
|
+
const chipsInputRef = React.useRef(null);
|
|
405
|
+
const chevronRef = React.useRef(null);
|
|
406
|
+
const searchInputRef = React.useRef(null);
|
|
407
|
+
const contentElRef = React.useRef(null);
|
|
408
|
+
const contentRefCallback = React.useCallback((el) => {
|
|
409
|
+
contentElRef.current = el;
|
|
410
|
+
}, []);
|
|
411
|
+
const { allItems, itemByValue, maxLabelLength, inputValue, onInputValueChange, onValueChange, value, } = useGetAllItems(props);
|
|
412
|
+
const onCheckAllChange = props.onSelectAllCheckboxChange ??
|
|
413
|
+
((checked) => {
|
|
414
|
+
if (checked) {
|
|
415
|
+
onValueChange?.(allItems.map((item) => item.value), allItems);
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
onValueChange?.([], []);
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
const hasFocusRef = React.useRef(false);
|
|
422
|
+
const containerElRef = React.useRef(null);
|
|
423
|
+
const isInternalFocusTarget = (target) => {
|
|
424
|
+
return (containerElRef.current?.contains(target) ||
|
|
425
|
+
contentElRef.current?.contains(target));
|
|
426
|
+
};
|
|
427
|
+
const onOpenChange = (open) => {
|
|
428
|
+
props.onOpenChange(open);
|
|
429
|
+
if (!open && hasFocusRef.current) {
|
|
430
|
+
requestAnimationFrame(() => {
|
|
431
|
+
if (!isInternalFocusTarget(document.activeElement) && hasFocusRef.current) {
|
|
432
|
+
hasFocusRef.current = false;
|
|
433
|
+
props.onBlur?.();
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
const handleFocus = props.onFocus
|
|
439
|
+
? () => {
|
|
440
|
+
if (!hasFocusRef.current) {
|
|
441
|
+
hasFocusRef.current = true;
|
|
442
|
+
props.onFocus();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
: undefined;
|
|
446
|
+
const handleBlur = props.onBlur
|
|
447
|
+
? (e) => {
|
|
448
|
+
if (!isInternalFocusTarget(e.relatedTarget)) {
|
|
449
|
+
hasFocusRef.current = false;
|
|
450
|
+
props.onBlur();
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
: undefined;
|
|
454
|
+
const renderChips = (_props) => {
|
|
455
|
+
return (_jsx(ComboboxChips, { ref: anchor, "aria-label": props.ariaLabel || props['aria-label'], "data-name": props['data-name'], ..._props, onFocus: (e) => {
|
|
456
|
+
containerElRef.current = e.currentTarget;
|
|
457
|
+
_props?.onFocus?.(e);
|
|
458
|
+
handleFocus?.();
|
|
459
|
+
}, onBlur: (event) => {
|
|
460
|
+
_props?.onBlur?.(event);
|
|
461
|
+
const newFocusedTarget = event.relatedTarget;
|
|
462
|
+
const container = event.currentTarget;
|
|
463
|
+
const isInternal = container.contains(newFocusedTarget) ||
|
|
464
|
+
contentElRef.current?.contains(newFocusedTarget);
|
|
465
|
+
if (isInternal) {
|
|
466
|
+
// if we don't have this logic here,
|
|
467
|
+
// the popup wont collapse when focus is lost
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
// if the focused target is not inside the combobox, close the combobox
|
|
471
|
+
onOpenChange(false);
|
|
472
|
+
if (hasFocusRef.current) {
|
|
473
|
+
hasFocusRef.current = false;
|
|
474
|
+
props.onBlur?.();
|
|
475
|
+
}
|
|
476
|
+
}, className: clsx('twa:relative', props.className, _props?.className), children: _jsx(ComboboxValue, { children: (selectedItems) => {
|
|
477
|
+
return (_jsxs(React.Fragment, { children: [props.renderInputValues ? (props.renderInputValues(selectedItems)) : (_jsx(MultiComboboxChips, { selectedItems: selectedItems, showClear: showClear })), props.renderInput !== false ? (_jsx(_Fragment, { children: _jsx(ComboboxChipsInput, { ref: chipsInputRef, placeholder: selectedItems.length > 0 ? '' : props.placeholder, readOnly: true, value: '', className: 'twa:flex-1' }) })) : (_jsx("div", { className: "twa:flex-1" })), _jsx("div", { "data-slot": "input-group", role: "group", className: "twa:group/input-group", children: _jsxs(InputGroupAddon, { align: "inline-end", className: "twa:p-0 px", children: [props.isLoading && (_jsx(Loader2Icon, { className: "twa:size-4 twa:text-muted-foreground twa:animate-spin" })), _jsx(InputGroupButton, { size: "icon-xs", variant: "ghost", render: _jsx(ComboboxTrigger, { className: "twa:min-h-auto!", ref: chevronRef, "data-slot": "input-group-button",
|
|
478
|
+
// we already have the role="combobox" on the parent
|
|
479
|
+
// so we want to avoid the same role twice in the component,
|
|
480
|
+
// hence we use the role="widget" here.
|
|
481
|
+
role: "widget" }), "data-slot": "input-group-button", className: clsx(`twa:data-pressed:bg-transparent`, 'twa:group-has-data-[slot=combobox-clear]/input-group:hidden'), disabled: isDisabled }), showClear && _jsx(ComboboxClear, { disabled: isDisabled })] }) })] }));
|
|
482
|
+
} }) }));
|
|
483
|
+
};
|
|
484
|
+
return (_jsxs(AdaptableCombobox_Root, { ...props, value: value, multiple: true, allItems: allItems, itemByValue: itemByValue, inputValue: inputValue, onInputValueChange: onInputValueChange, onValueChange: onValueChange, onOpenChange: onOpenChange, children: [props.renderInput === false ? (_jsx(ComboboxTrigger, { nativeButton: false, render: renderChips })) : (renderChips(undefined)), _jsxs(ComboboxContent, { anchor: anchor, style: getContentStyle({ maxLabelLength }), resizable: props.resizable, contentRef: contentRefCallback, children: [_jsx(ComboboxInput, { placeholder: 'Filter...', showClear: false, ref: searchInputRef, showTrigger: false, disabled: isDisabled, onFocus: handleFocus, onBlur: handleBlur, role: "searchbox", className: 'twa:min-h-input', children: typeof props.renderSearchInputTrailing === 'function'
|
|
485
|
+
? props.renderSearchInputTrailing()
|
|
486
|
+
: undefined }), _jsx(AdaptableComboboxList, { renderItemLabel: props.renderItemLabel, emptyText: emptyText, searchable: props.searchable, showSelectAllCheckbox: props.showSelectAllCheckbox, selectAllCheckboxValue: props.selectAllCheckboxValue, renderCheckboxIndicator: props.renderCheckboxIndicator ?? true, onCheckAllChange: onCheckAllChange, totalCount: allItems.length, groups: props.groups, virtualized: !!props.virtualized, showItemTooltip: !!props.showItemTooltip, open: props.open, isLoading: props.isLoading })] })] }));
|
|
487
|
+
};
|
|
488
|
+
export const MultiCombobox = (props) => {
|
|
489
|
+
const searchable = props.searchable === false ? false : props.searchable === 'menulist' ? 'menulist' : 'inline';
|
|
490
|
+
const [open, setOpen] = React.useState(props.open ?? props.defaultOpen ?? false);
|
|
491
|
+
const onOpenChange = (open) => {
|
|
492
|
+
setOpen(open);
|
|
493
|
+
props.onOpenChange?.(open);
|
|
494
|
+
};
|
|
495
|
+
const showItemTooltip = props.showItemTooltip ?? !!props.virtualized;
|
|
496
|
+
return searchable === 'menulist' ? (_jsx(MultiCombobox_MenuListSearchable, { renderInput: false, ...props, multiple: true, open: open, onOpenChange: onOpenChange, searchable: searchable, showItemTooltip: showItemTooltip })) : (_jsx(MultiCombobox_SimpleSearchable, { ...props, open: open, multiple: true, onOpenChange: onOpenChange, searchable: searchable, showItemTooltip: showItemTooltip }));
|
|
497
|
+
};
|
|
498
|
+
export const GridFilterCombobox = (props) => {
|
|
499
|
+
const { showSelectedCount = false, placeholder = 'Select...', ...comboboxProps } = props;
|
|
500
|
+
const sharedProps = {
|
|
501
|
+
placeholder,
|
|
502
|
+
showSelectAllCheckbox: true,
|
|
503
|
+
searchable: 'menulist',
|
|
504
|
+
renderInput: false,
|
|
505
|
+
items: props.items ?? [],
|
|
506
|
+
virtualized: true,
|
|
507
|
+
resizable: true,
|
|
508
|
+
showClear: false,
|
|
509
|
+
renderInputValues: (items) => {
|
|
510
|
+
let children = items.map((item) => getItemTextLabel(item)).join(', ');
|
|
511
|
+
if (items.length === 0) {
|
|
512
|
+
children = (_jsx("span", { "data-name": "placeholder", className: "twa:text-muted-foreground", children: placeholder }));
|
|
513
|
+
}
|
|
514
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { className: "twa:text-ellipsis twa:overflow-hidden twa:whitespace-nowrap twa:flex-1000", "data-slot": "combobox-selected-values", children: [showSelectedCount && items.length > 0 && (_jsxs("span", { "data-name": "multiple-values-count", className: "twa:mr-0.5", children: ["(", items.length, ")"] })), children] }) }));
|
|
515
|
+
},
|
|
516
|
+
};
|
|
517
|
+
const className = cn(
|
|
518
|
+
// remove the border/shadow and position it properly
|
|
519
|
+
// to adjust for outline on the input
|
|
520
|
+
'twa:[.ab-FloatingFilter_&]:border-none twa:[.ab-FloatingFilter_&]:inset-y-0.5 twa:[.ab-FloatingFilter_&]:inset-x-0 twa:[.ab-FloatingFilter_&]:absolute twa:[.ab-FloatingFilter_&]:shadow-none twa:[.ab-FloatingFilter_&]:min-h-auto!', comboboxProps.className);
|
|
521
|
+
const mergedProps = {
|
|
522
|
+
...sharedProps,
|
|
523
|
+
...comboboxProps,
|
|
524
|
+
className,
|
|
525
|
+
};
|
|
526
|
+
return _jsx(MultiCombobox, { ...mergedProps });
|
|
527
|
+
};
|
|
@@ -22,9 +22,6 @@ export type DashboardProps = {
|
|
|
22
22
|
floating?: boolean;
|
|
23
23
|
defaultFloating?: boolean;
|
|
24
24
|
onFloatingChange?: Dispatch<SetStateAction<boolean>>;
|
|
25
|
-
inline?: boolean;
|
|
26
|
-
defaultInline?: boolean;
|
|
27
|
-
onInlineChange?: Dispatch<SetStateAction<boolean>>;
|
|
28
25
|
position?: DashboardPosition;
|
|
29
26
|
defaultPosition?: DashboardPosition;
|
|
30
27
|
onPositionChange?: Dispatch<SetStateAction<DashboardPosition>>;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import useDraggable from '../utils/useDraggable';
|
|
3
4
|
import join from '../utils/join';
|
|
4
5
|
import useProperty from '../utils/useProperty';
|
|
5
|
-
import { DashboardToolbar } from './DashboardToolbar';
|
|
6
|
-
import DropdownButton from '../DropdownButton';
|
|
7
|
-
import { ACCESS_LEVEL_FULL } from '../../Utilities/Constants/GeneralConstants';
|
|
8
6
|
export function Dashboard(props) {
|
|
9
7
|
const { title, children, left, right, onShowDashboardPopup } = props;
|
|
10
8
|
const [activeTabIndex, setActiveTabIndex] = useProperty(props, 'activeTabIndex', 0);
|
|
11
9
|
const [collapsed, setCollapsed] = useProperty(props, 'collapsed', false);
|
|
12
10
|
const [floating, setFloating] = useProperty(props, 'floating', false);
|
|
13
|
-
const [inline, setInline] = useProperty(props, 'inline', false);
|
|
14
11
|
const [position, setPosition] = useProperty(props, 'position', {
|
|
15
12
|
x: 0,
|
|
16
13
|
y: 0,
|
|
@@ -28,28 +25,17 @@ export function Dashboard(props) {
|
|
|
28
25
|
left: position.x,
|
|
29
26
|
top: position.y,
|
|
30
27
|
};
|
|
31
|
-
const renderTabs = () => (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
if (children && children.length < 2) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
const activeTabTitle = children?.[activeTabIndex]?.props?.title ?? 'Select Toolbar';
|
|
46
|
-
return (React.createElement(DropdownButton, { className: "twa:ml-1", columns: ['label'], items: React.Children.map(children, (child, index) => ({
|
|
47
|
-
value: String(index),
|
|
48
|
-
label: child.props.title,
|
|
49
|
-
onClick: () => setActiveTabIndex(index),
|
|
50
|
-
})) }, activeTabTitle));
|
|
51
|
-
};
|
|
52
|
-
const renderBar = () => (React.createElement("div", { className: "ab-Dashboard__header", onDoubleClick: (event) => {
|
|
28
|
+
const renderTabs = () => (_jsx("div", { className: "ab-Dashboard__tabs twa:whitespace-nowrap", children: children &&
|
|
29
|
+
React.Children.map(children, (child, index) => (_jsx("button", { type: "button", className: join('ab-Dashboard__tab', !collapsed && activeTabIndex === index ? 'ab-Dashboard__tab--active' : ''), onClick: () => {
|
|
30
|
+
if (activeTabIndex === index) {
|
|
31
|
+
setCollapsed(!collapsed);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
setActiveTabIndex(index);
|
|
35
|
+
setCollapsed(false);
|
|
36
|
+
}
|
|
37
|
+
}, children: child.props.title }, index))) }));
|
|
38
|
+
const renderBar = () => (_jsxs("div", { className: "ab-Dashboard__header", onDoubleClick: (event) => {
|
|
53
39
|
const target = event.target;
|
|
54
40
|
// ignore double clicks on buttons, inputs and their children
|
|
55
41
|
if (!props.canFloat) {
|
|
@@ -59,21 +45,8 @@ export function Dashboard(props) {
|
|
|
59
45
|
return;
|
|
60
46
|
}
|
|
61
47
|
setFloating(!floating);
|
|
62
|
-
} },
|
|
63
|
-
|
|
64
|
-
left,
|
|
65
|
-
!floating && renderTabs()),
|
|
66
|
-
floating ? (React.createElement("div", { className: "ab-Dashboard__title", ref: handleRef, key: "title-drag", style: { cursor: 'move' } }, title)) : (React.createElement("div", { className: "ab-Dashboard__title", key: "title" }, title)),
|
|
67
|
-
React.createElement("div", { className: "ab-Dashboard__header-right" }, right)));
|
|
68
|
-
const renderHomeToolbar = () => (React.createElement(DashboardToolbar, { onConfigure: onShowDashboardPopup, className: "ab-Dashboard__home-toolbar", title: title, tooltip: `Configure Dashboard`, showConfigure: true, showClose: false, accessLevel: ACCESS_LEVEL_FULL },
|
|
69
|
-
left,
|
|
70
|
-
right,
|
|
71
|
-
children && children.length > 1,
|
|
72
|
-
renderTabsDropdown()));
|
|
73
|
-
return (React.createElement("div", {
|
|
48
|
+
}, children: [_jsxs("div", { className: "ab-Dashboard__header-left", children: [left, !floating && renderTabs()] }), floating ? (_jsx("div", { className: "ab-Dashboard__title", ref: handleRef, style: { cursor: 'move' }, children: title }, "title-drag")) : (_jsx("div", { className: "ab-Dashboard__title", children: title }, "title")), _jsx("div", { className: "ab-Dashboard__header-right", children: right })] }));
|
|
49
|
+
return (_jsxs("div", {
|
|
74
50
|
// @ts-ignore
|
|
75
|
-
ref: targetRef, className: join(`ab-Dashboard`, collapsed ? 'ab-Dashboard--collapsed' : '', floating ? 'ab-Dashboard--floating' : '',
|
|
76
|
-
expanded && inline ? renderHomeToolbar() : renderBar(),
|
|
77
|
-
expanded && children && children.length ? (React.createElement("div", { className: "ab-Dashboard__content" }, children[activeTabIndex] ? children[activeTabIndex].props.children : null)) : null,
|
|
78
|
-
props.footer));
|
|
51
|
+
ref: targetRef, className: join(`ab-Dashboard`, collapsed ? 'ab-Dashboard--collapsed' : '', floating ? 'ab-Dashboard--floating' : ''), style: floating ? floatingStyle : undefined, children: [renderBar(), expanded && children && children.length ? (_jsx("div", { className: "ab-Dashboard__content", children: children[activeTabIndex] ? children[activeTabIndex].props.children : null })) : null, props.footer] }));
|
|
79
52
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import * as React from 'react';
|
|
2
3
|
import { ModuleManager } from '../DragAndDropContext/ModuleManager';
|
|
3
4
|
const DashboardManager = ({ tabs, onTabsChange, availableToolbars, api, disabled, }) => {
|
|
@@ -16,6 +17,6 @@ const DashboardManager = ({ tabs, onTabsChange, availableToolbars, api, disabled
|
|
|
16
17
|
}));
|
|
17
18
|
onTabsChange(dashboardTabs);
|
|
18
19
|
}, []);
|
|
19
|
-
return (
|
|
20
|
+
return (_jsx(ModuleManager, { availableItems: availableToolbars, disabled: disabled, onTabsChange: handleTabsChange, tabs: moduleTabs, tabsTitle: moduleInfo.FriendlyName + ' Tabs', unusedPanelTitle: 'Available Toolbars', dragItemText: "Drag into a Tab below" }));
|
|
20
21
|
};
|
|
21
22
|
export default DashboardManager;
|