@adaptabletools/adaptable-cjs 21.2.2-canary.0 → 22.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/README.md +4 -6
- package/icons/inspector.svg +1 -0
- package/index.css +6464 -5488
- package/index.css.map +1 -1
- package/package.json +5 -6
- package/src/AdaptableInterfaces/IAdaptable.d.ts +9 -1
- package/src/AdaptableOptions/DefaultAdaptableOptions.js +2 -2
- package/src/AdaptableState/ChartingState.d.ts +1 -1
- package/src/AdaptableState/Common/AdaptableAlert.d.ts +2 -2
- package/src/AdaptableState/Common/AdaptableColumn.js +2 -2
- package/src/AdaptableState/Common/AdaptableForm.js +1 -2
- package/src/AdaptableState/Common/AdaptableIcon.d.ts +1 -1
- package/src/AdaptableState/Common/AdaptablePredicate.js +7 -3
- package/src/AdaptableState/Common/AggregationColumns.d.ts +3 -3
- package/src/AdaptableState/Common/DataUpdateConfig.d.ts +4 -4
- package/src/AdaptableState/TeamSharingState.d.ts +1 -1
- package/src/Api/CustomSortApi.d.ts +6 -1
- package/src/Api/GridApi.d.ts +14 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +22 -10
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.js +5 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +9 -0
- package/src/Api/Implementation/GridApiImpl.js +16 -0
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/LayoutApiImpl.js +85 -2
- package/src/Api/Implementation/LayoutHelpers.d.ts +2 -2
- package/src/Api/Implementation/LayoutHelpers.js +2 -2
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ScheduleApiImpl.js +12 -0
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ShortcutApiImpl.js +4 -0
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -0
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -0
- package/src/Api/Internal/AdaptableInternalApi.d.ts +0 -1
- package/src/Api/Internal/AdaptableInternalApi.js +3 -3
- package/src/Api/Internal/ColumnFilterInternalApi.js +1 -1
- package/src/Api/Internal/ColumnInternalApi.js +2 -2
- package/src/Api/Internal/LayoutInternalApi.d.ts +5 -0
- package/src/Api/Internal/LayoutInternalApi.js +25 -0
- package/src/Api/LayoutApi.d.ts +7 -1
- package/src/Api/ScheduleApi.d.ts +5 -0
- package/src/Api/ShortcutApi.d.ts +5 -0
- package/src/Api/StyledColumnApi.d.ts +5 -0
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/InternalRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/LayoutRedux.d.ts +3 -9
- package/src/Redux/ActionsReducers/StyledColumnRedux.d.ts +6 -6
- package/src/Redux/ActionsReducers/StyledColumnRedux.js +16 -16
- package/src/Redux/ActionsReducers/utils.js +3 -4
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +4 -2
- package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
- package/src/Redux/Store/AdaptableStore.js +8 -7
- package/src/Redux/Store/buildAdaptableStateFunctionConfig.js +1 -2
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/Utilities/Alert/getAlertPreviewViewItems.js +1 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +4 -3
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +18 -17
- package/src/Utilities/Constants/DocumentationLinkConstants.js +19 -18
- package/src/Utilities/ExpressionFunctions/deepMap.js +2 -2
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +4 -4
- package/src/Utilities/ExpressionFunctions/groupingMap.js +1 -2
- package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +1 -2
- package/src/Utilities/Extensions/ArrayExtensions.js +37 -37
- package/src/Utilities/Extensions/EnumExtensions.js +3 -3
- package/src/Utilities/Extensions/NumberExtensions.js +5 -5
- package/src/Utilities/Extensions/ObjectExtensions.js +3 -3
- package/src/Utilities/Extensions/StringExtensions.d.ts +1 -1
- package/src/Utilities/Extensions/StringExtensions.js +20 -20
- package/src/Utilities/Helpers/AdaptableHelper.js +8 -8
- package/src/Utilities/Helpers/FormatHelper.js +3 -4
- package/src/Utilities/Helpers/Helper.js +18 -18
- package/src/Utilities/Helpers/PreviewHelper.js +5 -5
- package/src/Utilities/Helpers/StyleHelper.d.ts +1 -1
- package/src/Utilities/Hooks/useAdaptableColumn.js +1 -2
- package/src/Utilities/Hooks/useAdaptableState.js +1 -2
- package/src/Utilities/ObjectFactory.js +40 -40
- package/src/Utilities/Services/Interface/IAlertService.d.ts +2 -2
- package/src/Utilities/Services/LicenseService/shouldLogThankYouMessage.js +1 -2
- package/src/Utilities/Services/ModuleService.js +37 -38
- package/src/Utilities/adaptableOverrideCheck.js +2 -3
- package/src/Utilities/createAgStatusPanelComponent.d.ts +1 -1
- package/src/Utilities/getObjectTagsViewItems.js +1 -1
- package/src/Utilities/license/hashing.js +1 -1
- package/src/Utilities/runIfNotResolvedIn.d.ts +1 -1
- package/src/Utilities/sortColumnStateForVisibleColumns.js +1 -2
- package/src/Utilities/updateSingleToMultiplePredicates.js +1 -2
- package/src/Utilities/waitForTimeout.js +1 -2
- package/src/View/AdaptableComputedCSSVarsContext.js +6 -1
- package/src/View/AdaptablePopover/index.d.ts +1 -1
- package/src/View/AdaptablePopover/index.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +8 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +9 -8
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +6 -6
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +2 -2
- package/src/View/AdaptableWizardView/Wizard.js +2 -2
- package/src/View/AdaptableWizardView/index.js +1 -4
- package/src/View/Alert/ActiveAlertsPanelItemLabel.js +3 -3
- package/src/View/Alert/AlertStatusSubPanel.js +1 -1
- package/src/View/Alert/AlertViewPanel.js +4 -4
- package/src/View/Alert/Utilities/getDefaultAlertDefinition.d.ts +3 -20
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +17 -15
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +29 -26
- package/src/View/Alert/Wizard/AlertMessageWizardSection.js +12 -16
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.d.ts +3 -1
- package/src/View/Alert/Wizard/AlertNotificationWizardSection.js +7 -7
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertTypeWizardSection.js +3 -3
- package/src/View/Alert/Wizard/AlertWizard.js +8 -8
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +13 -10
- package/src/View/BulkUpdate/BulkUpdatePopup.js +11 -11
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +6 -6
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +11 -11
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +4 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -7
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.d.ts +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnTypeSection.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.d.ts +0 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +9 -15
- package/src/View/CalculatedColumn/Wizard/calculatedColumnTypes.d.ts +2 -0
- package/src/View/CalculatedColumn/Wizard/calculatedColumnTypes.js +9 -0
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/CellSummary/CellSummaryViewPanel.js +6 -6
- package/src/View/Charting/ChartingStatusBarPopover.js +5 -5
- package/src/View/Charting/ChartingViewPanel.js +9 -9
- package/src/View/Charting/ChartingWizard/AgChargingWizard/AgChargingWizard.js +4 -4
- package/src/View/Charting/ChartingWizard/ExternalChartingWizard/ExternalChartingWizard.js +3 -3
- package/src/View/Charting/useChartingElements.d.ts +1 -1
- package/src/View/Charting/useChartingElements.js +1 -1
- package/src/View/ColumnInfo/ColumnInfo.js +15 -20
- package/src/View/ColumnInfo/ColumnInfoPopup.js +2 -2
- package/src/View/Comments/CommentsEditor.js +16 -19
- package/src/View/Comments/CommentsPopup.js +7 -7
- package/src/View/Components/AdaptableDateInput/index.js +1 -1
- package/src/View/Components/AdaptableInput/index.js +3 -2
- package/src/View/Components/AdaptableObjectCollection/index.d.ts +2 -2
- package/src/View/Components/AdaptableObjectCollection/index.js +9 -5
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +14 -14
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +2 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +20 -18
- package/src/View/Components/AdaptableObjectRow/index.d.ts +1 -0
- package/src/View/Components/AdaptableObjectRow/index.js +5 -6
- package/src/View/Components/Buttons/ButtonBase/index.d.ts +1 -2
- package/src/View/Components/Buttons/ButtonBase/index.js +5 -4
- package/src/View/Components/Buttons/ButtonClear.js +2 -1
- package/src/View/Components/Buttons/ButtonFunction.js +2 -1
- package/src/View/Components/Buttons/ButtonNew.d.ts +11 -1
- package/src/View/Components/Buttons/ButtonNew.js +2 -1
- package/src/View/Components/Buttons/EntityListActionButtons.d.ts +1 -1
- package/src/View/Components/Buttons/EntityListActionButtons.js +14 -43
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.d.ts +1 -0
- package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +3 -2
- package/src/View/Components/CellPopup/index.d.ts +1 -1
- package/src/View/Components/ColumnFilter/AdaptableColumnFilter.d.ts +4 -3
- package/src/View/Components/ColumnFilter/ColumnFilter.d.ts +4 -2
- package/src/View/Components/ColumnFilter/ColumnFilter.js +29 -26
- package/src/View/Components/ColumnFilter/ColumnFilterWindow.js +7 -7
- package/src/View/Components/ColumnFilter/FloatingFilter.js +7 -7
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.d.ts +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterInput.js +2 -2
- package/src/View/Components/ColumnFilter/components/ColumnFilterInputList.js +1 -1
- package/src/View/Components/ColumnFilter/components/ColumnFilterMenu.js +6 -6
- package/src/View/Components/ColumnFilter/components/FloatingFilterValues.js +2 -2
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.d.ts +1 -1
- package/src/View/Components/ColumnFilter/useAdaptableFilterWrapper.js +9 -1
- package/src/View/Components/ColumnSelector/index.js +1 -3
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicateEditor.js +11 -11
- package/src/View/Components/EntityRulesEditor/EntityRulePredicatesEditor/EntityRulePredicatesEditor.js +12 -16
- package/src/View/Components/EntityRulesEditor/index.d.ts +5 -2
- package/src/View/Components/EntityRulesEditor/index.js +12 -11
- package/src/View/Components/ExpressionWizard.js +4 -4
- package/src/View/Components/FilterForm/Waiting.d.ts +4 -2
- package/src/View/Components/FilterForm/Waiting.js +5 -4
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -0
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +4 -8
- package/src/View/Components/ModuleValueSelector/index.js +2 -2
- package/src/View/Components/NewScopeComponent.js +26 -26
- package/src/View/Components/Panels/PanelFooter.js +5 -5
- package/src/View/Components/Panels/PanelToolPanel/index.d.ts +1 -1
- package/src/View/Components/Panels/PanelToolPanel/index.js +9 -11
- package/src/View/Components/Panels/PanelWithButton.d.ts +3 -5
- package/src/View/Components/Panels/PanelWithButton.js +8 -7
- package/src/View/Components/Panels/PanelWithImage.d.ts +2 -3
- package/src/View/Components/Panels/PanelWithImage.js +11 -13
- package/src/View/Components/Panels/PanelWithRow.d.ts +0 -1
- package/src/View/Components/Panels/PanelWithRow.js +3 -3
- package/src/View/Components/Panels/PanelWithTwoButtons.d.ts +1 -1
- package/src/View/Components/Panels/PanelWithTwoButtons.js +3 -3
- package/src/View/Components/Popups/AdaptableLoadingScreen.js +4 -7
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +4 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +3 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -31
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +2 -0
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +9 -10
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +8 -13
- package/src/View/Components/Popups/AdaptablePopupConfirmation.js +6 -6
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +8 -8
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +11 -13
- package/src/View/Components/Popups/FormPopups/FormPopups.js +3 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +2 -2
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +3 -3
- package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
- package/src/View/Components/PredicateEditor/PredicateEditor.js +9 -9
- package/src/View/Components/PreviewResultsPanel.d.ts +1 -0
- package/src/View/Components/PreviewResultsPanel.js +6 -13
- package/src/View/Components/RangesComponent.js +23 -23
- package/src/View/Components/ReorderDraggable/index.d.ts +2 -0
- package/src/View/Components/ReorderDraggable/index.js +9 -9
- package/src/View/Components/Selectors/BulkUpdateValueSelector.js +5 -8
- package/src/View/Components/Selectors/ColumnSelector.js +1 -1
- package/src/View/Components/Selectors/ColumnSelectorOld.js +1 -1
- package/src/View/Components/StyleComponent.d.ts +2 -26
- package/src/View/Components/StyleComponent.js +186 -190
- package/src/View/Components/TagValueSelector/index.d.ts +1 -1
- package/src/View/Components/TagValueSelector/index.js +3 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +13 -12
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +13 -10
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +2 -2
- package/src/View/Components/ValueSelector/index.d.ts +9 -33
- package/src/View/Components/ValueSelector/index.js +40 -64
- package/src/View/Components/WizardSummaryPage.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -6
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +5 -5
- package/src/View/Dashboard/Dashboard.js +5 -5
- package/src/View/Dashboard/DashboardPopup.js +27 -23
- package/src/View/Dashboard/DashboardViewPanel.js +5 -5
- package/src/View/Dashboard/PinnedDashboard.js +4 -4
- package/src/View/Dashboard/PinnedToolbarsSelector.js +3 -2
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +12 -12
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
- package/src/View/DataImport/DataImportPopup.js +3 -3
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +2 -2
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +6 -6
- package/src/View/DataImport/DataImportWizard/sections/ImportSection.js +4 -4
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadFileSection.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadSection.js +5 -5
- package/src/View/DataImport/DataImportWizard/sections/UploadSection/UploadTextSection.js +1 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +4 -4
- package/src/View/DataSet/DataSetViewPanel.d.ts +2 -2
- package/src/View/DataSet/DataSetViewPanel.js +3 -3
- package/src/View/Export/ExportDestinationPicker.js +2 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/Export/ReportFormatSelector.js +3 -3
- package/src/View/Export/ReportListItem.js +2 -2
- package/src/View/Export/ReportNameSelector.js +3 -3
- package/src/View/Export/Wizard/NewReportWizard.js +4 -4
- package/src/View/Export/Wizard/ReportColumnTypeWizard.js +8 -8
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +11 -11
- package/src/View/Export/Wizard/ReportNameWizardSection.js +5 -5
- package/src/View/Export/Wizard/ReportRowTypeWizard.js +8 -8
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +9 -9
- package/src/View/Export/Wizard/ReportSettingsWizard.js +3 -3
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +2 -2
- package/src/View/Filter/FilterViewPanel.js +6 -6
- package/src/View/FlashingCell/FlashingCellStyle.d.ts +2 -2
- package/src/View/FlashingCell/FlashingCellStyle.js +5 -5
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +12 -12
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +5 -5
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +63 -68
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +2 -3
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +0 -4
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +29 -29
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnTargetWizardSection.js +3 -3
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +9 -10
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +12 -12
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
- package/src/View/GridFilter/GridFilterExpressionEditor.js +6 -6
- package/src/View/GridFilter/GridFilterPopup.js +31 -40
- package/src/View/GridFilter/GridFilterPopupUI/index.d.ts +68 -0
- package/src/View/GridFilter/GridFilterPopupUI/index.js +47 -0
- package/src/View/GridFilter/GridFilterViewPanel.js +16 -23
- package/src/View/GridFilter/NamedQuerySelector.js +9 -9
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +5 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +2 -1
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.d.ts +3 -1
- package/src/View/GridInfo/GridInfoPopup/AdaptableObjectsSummary.js +5 -4
- package/src/View/GridInfo/GridInfoPopup/AdaptableOptionsComponent.js +5 -9
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +7 -7
- package/src/View/KeyHint.d.ts +5 -2
- package/src/View/KeyHint.js +4 -2
- package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -2
- package/src/View/Layout/LayoutViewPanel.d.ts +3 -3
- package/src/View/Layout/LayoutViewPanel.js +4 -4
- package/src/View/Layout/TransposedPopup.js +5 -5
- package/src/View/Layout/Wizard/LayoutWizard.js +18 -18
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +9 -11
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +214 -139
- package/src/View/Layout/Wizard/sections/FilterSection.js +6 -7
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +2 -2
- package/src/View/Layout/Wizard/sections/PivotAggregationsSection.js +20 -23
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +4 -6
- package/src/View/Layout/Wizard/sections/PivotRowGroupingSection.js +4 -6
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +8 -10
- package/src/View/Layout/Wizard/sections/RowSummarySection.js +16 -18
- package/src/View/Layout/Wizard/sections/SettingsSection.js +11 -11
- package/src/View/Layout/Wizard/sections/SortSection.js +6 -8
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +2 -2
- package/src/View/NamedQuery/Wizard/NamedQuerySettingsWizardSection.js +3 -3
- package/src/View/NamedQuery/Wizard/NamedQueryWizard.js +4 -5
- package/src/View/Note/NoteEditor.js +5 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -3
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -6
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +4 -4
- package/src/View/QuickSearch/FloatingQuickSearch/FloatingQuickSearch.js +2 -2
- package/src/View/QuickSearch/QuickSearchInput.d.ts +1 -0
- package/src/View/QuickSearch/QuickSearchInput.js +5 -5
- package/src/View/QuickSearch/QuickSearchPopup.js +17 -16
- package/src/View/QuickSearch/QuickSearchViewPanel.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +6 -6
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +5 -5
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +6 -6
- package/src/View/Schedule/Wizard/ScheduleWizard.js +5 -5
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +9 -12
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +5 -5
- package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
- package/src/View/SmartEdit/SmartEditPopup.js +8 -8
- package/src/View/SmartEdit/SmartEditViewPanel.js +4 -4
- package/src/View/SpecialColumnSettingsWizardStep.js +5 -5
- package/src/View/StateManagement/StateManagementPopup.js +12 -12
- package/src/View/StateManagement/StateManagementViewPanel.js +3 -3
- package/src/View/StateManagement/handleExportState.d.ts +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +2 -2
- package/src/View/StatusBar/StatusBarPanel.d.ts +2 -2
- package/src/View/StatusBar/StatusBarPanel.js +5 -4
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +9 -9
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +59 -56
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +8 -8
- package/src/View/StyledColumn/Wizard/StyledColumnWizardColumnSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardSettingsSection.js +19 -19
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarColumnComparisonPreview.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarRangesPreview.js +4 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/PercentBarStylePreview.js +5 -5
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +3 -3
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgeSettings.js +5 -7
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection.js +15 -16
- package/src/View/StyledColumn/Wizard/StyledColumnWizardTypeSection.js +4 -4
- package/src/View/SystemStatus/SystemStatusEntityRow.js +4 -4
- package/src/View/SystemStatus/SystemStatusPopup.js +2 -2
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.js +3 -3
- package/src/View/TeamSharing/SharedEntityDependencies.js +5 -5
- package/src/View/TeamSharing/SharedEntityObjectView.js +8 -8
- package/src/View/Theme/ThemeEditor.js +6 -31
- package/src/View/Theme/ThemeEditorWindow.js +2 -2
- package/src/View/Theme/ThemeField.js +2 -3
- package/src/View/Theme/ThemePopup.d.ts +1 -1
- package/src/View/Theme/ThemePopup.js +4 -4
- package/src/View/Theme/ThemeStatusbar.js +2 -2
- package/src/View/Theme/VariantSelector.js +1 -1
- package/src/View/UIHelper.d.ts +1 -1
- package/src/View/UIHelper.js +29 -29
- package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +2 -4
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +10 -4
- package/src/View/Wizard/OnePageAdaptableWizard.js +16 -18
- package/src/View/Wizard/OnePageWizards.d.ts +10 -4
- package/src/View/Wizard/OnePageWizards.js +52 -66
- package/src/View/Wizard/TypeRadio.js +4 -4
- package/src/View/Wizard/WizardLegend.js +3 -4
- package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
- package/src/View/Wizard/useKeyboardNavigation.js +7 -4
- package/src/View/renderWithAdaptableContext.js +2 -5
- package/src/agGrid/AdaptableAgGrid.d.ts +11 -3
- package/src/agGrid/AdaptableAgGrid.js +153 -18
- package/src/agGrid/AdaptableFilterHandler.d.ts +5 -7
- package/src/agGrid/AdaptableFilterHandler.js +12 -28
- package/src/agGrid/AgGridColumnAdapter.d.ts +6 -1
- package/src/agGrid/AgGridColumnAdapter.js +28 -7
- package/src/agGrid/AgGridFilterAdapter.js +1 -1
- package/src/agGrid/AgGridFloatingFilterAdapter.js +1 -21
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -5
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/agGrid/editors/AdaptablePercentageEditor/InternalAdaptablePercentageEditor.js +1 -5
- package/src/agGrid/index.js +2 -4
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +12 -12
- package/src/components/Card/index.d.ts +25 -0
- package/src/components/Card/index.js +49 -0
- package/src/components/CheckBox/index.d.ts +3 -4
- package/src/components/CheckBox/index.js +7 -9
- package/src/components/CodeBlock/index.d.ts +6 -2
- package/src/components/CodeBlock/index.js +3 -3
- package/src/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/src/components/ColorPicker/ColorPicker.js +10 -9
- package/src/components/Dashboard/Dashboard.js +2 -3
- package/src/components/Dashboard/DashboardTab.js +1 -2
- package/src/components/Dashboard/DashboardToolbar.js +6 -8
- package/src/components/Datepicker/index.d.ts +2 -2
- package/src/components/Datepicker/index.js +10 -9
- package/src/components/Dialog/index.d.ts +8 -2
- package/src/components/Dialog/index.js +8 -8
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +1 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
- package/src/components/DragAndDropContext/ModuleManager.js +9 -6
- package/src/components/DragAndDropContext/TabList.d.ts +2 -1
- package/src/components/DragAndDropContext/TabList.js +48 -29
- package/src/components/DragAndDropContext/UnusedPanel.js +8 -17
- package/src/components/Dropdown/index.d.ts +2 -2
- package/src/components/Dropdown/index.js +5 -6
- package/src/components/DropdownButton/index.d.ts +2 -22
- package/src/components/DropdownButton/index.js +7 -4
- package/src/components/EmptyContent/index.d.ts +2 -2
- package/src/components/EmptyContent/index.js +4 -4
- package/src/components/ErrorBox/index.d.ts +2 -2
- package/src/components/ErrorBox/index.js +3 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +67 -51
- package/src/components/ExpressionEditor/DataTableEditor.js +6 -10
- package/src/components/ExpressionEditor/EditorButton.js +0 -2
- package/src/components/ExpressionEditor/EditorContext.d.ts +0 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +5 -5
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +12 -14
- package/src/components/ExpressionEditor/NamedQueryContext.d.ts +0 -1
- package/src/components/ExpressionEditor/NamedQueryEditor.js +6 -16
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.d.ts +2 -10
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +11 -11
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +1 -1
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +13 -13
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +11 -16
- package/src/components/ExpressionEditor/index.d.ts +1 -0
- package/src/components/ExpressionEditor/index.js +32 -37
- package/src/components/FieldWrap/index.d.ts +9 -2
- package/src/components/FieldWrap/index.js +3 -8
- package/src/components/FileDroppable/FileDroppableState.d.ts +0 -1
- package/src/components/FileDroppable/index.d.ts +3 -2
- package/src/components/FileDroppable/index.js +7 -7
- package/src/components/Flex.d.ts +15 -1
- package/src/components/Flex.js +42 -3
- package/src/components/FlexWithFooter.d.ts +3 -2
- package/src/components/FlexWithFooter.js +5 -5
- package/src/components/FormLayout/index.d.ts +5 -1
- package/src/components/FormLayout/index.js +3 -3
- package/src/components/HelpBlock/index.d.ts +2 -2
- package/src/components/HelpBlock/index.js +5 -4
- package/src/components/IconSelector/IconSelector.js +11 -11
- package/src/components/InfiniteTable/index.js +1 -2
- package/src/components/Input/index.d.ts +1 -2
- package/src/components/Input/index.js +6 -3
- package/src/components/Modal/Backdrop.js +1 -1
- package/src/components/Modal/index.d.ts +3 -2
- package/src/components/Modal/index.js +3 -3
- package/src/components/OverlayTrigger/index.js +3 -0
- package/src/components/Panel/index.d.ts +22 -6
- package/src/components/Panel/index.js +54 -15
- package/src/components/PopupWithFooter.js +3 -4
- package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/src/components/Radio/index.d.ts +25 -3
- package/src/components/Radio/index.js +19 -21
- package/src/components/Select/Select.js +33 -21
- package/src/components/SelectList.js +1 -1
- package/src/components/SelectableList/index.d.ts +1 -1
- package/src/components/SimpleButton/index.d.ts +4 -6
- package/src/components/SimpleButton/index.js +55 -23
- package/src/components/SizedContainer/index.d.ts +3 -1
- package/src/components/SizedContainer/index.js +3 -3
- package/src/components/StylePreview.d.ts +3 -1
- package/src/components/StylePreview.js +4 -3
- package/src/components/Tabs/index.d.ts +3 -3
- package/src/components/Tabs/index.js +26 -9
- package/src/components/Tag/Tag.d.ts +14 -2
- package/src/components/Tag/Tag.js +13 -4
- package/src/components/Tag/index.d.ts +1 -1
- package/src/components/Tag/index.js +3 -1
- package/src/components/Textarea/index.d.ts +5 -1
- package/src/components/Textarea/index.js +5 -4
- package/src/components/Toggle/Toggle.js +48 -3
- package/src/components/Toggle/ToggleGroup.d.ts +7 -0
- package/src/components/Toggle/ToggleGroup.js +58 -3
- package/src/components/ToggleButton/index.d.ts +2 -2
- package/src/components/ToggleButton/index.js +25 -7
- package/src/components/Tree/TreeDropdown/index.js +13 -19
- package/src/components/Tree/TreeList/index.js +6 -11
- package/src/components/WarningBox/index.d.ts +6 -2
- package/src/components/WarningBox/index.js +3 -3
- package/src/components/WizardPanel/index.d.ts +6 -1
- package/src/components/WizardPanel/index.js +2 -2
- package/src/components/icons/DefaultIcon.d.ts +1 -0
- package/src/components/icons/index.d.ts +1 -1
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/inspector.d.ts +3 -0
- package/src/components/icons/inspector.js +8 -0
- package/src/components/twUtils.d.ts +7 -0
- package/src/components/twUtils.js +16 -0
- package/src/components/utils/contains.js +1 -1
- package/src/components/utils/useDraggable.d.ts +0 -1
- package/src/components/utils/useDraggable.js +1 -1
- package/src/components/utils/usePropState.js +1 -1
- package/src/components/utils/useSelectionRange.js +1 -2
- package/src/devTools/index.d.ts +23 -23
- package/src/devTools/index.js +3 -3
- package/src/env.js +2 -2
- package/src/layout-manager/src/LMEmitter.d.ts +1 -0
- package/src/layout-manager/src/LMEmitter.js +1 -0
- package/src/layout-manager/src/destructurePivotColumnId.js +1 -2
- package/src/layout-manager/src/index.js +2 -2
- package/src/layout-manager/src/isLayoutEqual.js +4 -4
- package/src/layout-manager/src/isPivotAggTotalColumn.js +1 -2
- package/src/layout-manager/src/isPivotColumnTotal.js +1 -2
- package/src/layout-manager/src/isPivotGrandTotal.js +1 -2
- package/src/layout-manager/src/normalizeLayoutModel.js +4 -4
- package/src/layout-manager/src/simplifyLayoutModel.js +3 -4
- package/src/layout-manager/src/sortColumnIdsByOrder.js +2 -3
- package/src/migration/VersionUpgrade20.js +8 -7
- package/src/parser/src/evaluator.js +1 -2
- package/src/parser/src/index.js +5 -5
- package/src/parser/src/predicate/mapExpressionToQlPredicate.js +2 -2
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +2 -3
- package/src/parser/src/tokenizer.js +1 -2
- package/src/parser/src/utils.js +3 -4
- package/src/twMerge.d.ts +1 -0
- package/src/twMerge.js +14 -0
- package/themes/dark.css +35 -9
- package/themes/light.css +0 -2
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/base.css +0 -5602
- package/base.css.map +0 -1
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.d.ts +0 -3
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +0 -11
- package/src/View/Alert/AlertsPanel.d.ts +0 -14
- package/src/View/Alert/AlertsPanel.js +0 -43
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.d.ts +0 -19
- package/src/View/Alert/Wizard/AlertSelectQueryWizard.js +0 -59
- package/src/View/Components/FilterForm/ListBoxMenu.d.ts +0 -14
- package/src/View/Components/FilterForm/ListBoxMenu.js +0 -33
- package/src/View/Components/ListBox/DualListBoxEditor.d.ts +0 -22
- package/src/View/Components/ListBox/DualListBoxEditor.js +0 -520
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.d.ts +0 -13
- package/src/View/Components/ListBox/ListBoxFilterSortComponent.js +0 -31
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.d.ts +0 -15
- package/src/View/CustomSort/Wizard/CustomSortSummaryWizard.js +0 -36
- package/src/View/Layout/Wizard/Components/ColumnLabels.d.ts +0 -9
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +0 -57
- package/src/View/Wizard/AdaptableWizard.d.ts +0 -56
- package/src/View/Wizard/AdaptableWizard.js +0 -174
- package/src/components/ContainerProps.d.ts +0 -30
- package/src/components/ContainerProps.js +0 -2
- package/src/components/EllipsisContainer/index.d.ts +0 -13
- package/src/components/EllipsisContainer/index.js +0 -105
- package/src/components/List/GridList/index.d.ts +0 -10
- package/src/components/List/GridList/index.js +0 -26
- package/src/components/List/ListGroup/index.d.ts +0 -6
- package/src/components/List/ListGroup/index.js +0 -12
- package/src/components/List/ListGroupItem/index.d.ts +0 -11
- package/src/components/List/ListGroupItem/index.js +0 -19
- package/src/components/utils/useTheme.d.ts +0 -32
- package/src/components/utils/useTheme.js +0 -5
- package/src/theme.d.ts +0 -32
- package/src/theme.js +0 -51
- package/themes/dark.css.map +0 -1
- package/themes/light.css.map +0 -1
|
@@ -4,7 +4,6 @@ exports.FreeTextColumnWizard = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
9
8
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
10
9
|
const FreeTextColumnSettingsWizardSection_1 = require("./FreeTextColumnSettingsWizardSection");
|
|
@@ -13,6 +12,7 @@ const FreeTextColumnRedux = tslib_1.__importStar(require("../../../Redux/Actions
|
|
|
13
12
|
const react_redux_1 = require("react-redux");
|
|
14
13
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
15
14
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
15
|
+
const Flex_1 = require("../../../components/Flex");
|
|
16
16
|
const FreeTextColumnWizard = (props) => {
|
|
17
17
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
18
18
|
const allFreeTextColumns = (0, react_redux_1.useSelector)((state) => state.FreeTextColumn.FreeTextColumns);
|
|
@@ -42,7 +42,7 @@ const FreeTextColumnWizard = (props) => {
|
|
|
42
42
|
details: 'Configure the Free Text Column',
|
|
43
43
|
isValid: FreeTextColumnSettingsWizardSection_1.isValidFreeTextColumn,
|
|
44
44
|
render: () => {
|
|
45
|
-
return (React.createElement(
|
|
45
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
46
46
|
React.createElement(FreeTextColumnSettingsWizardSection_1.FreeTextColumnSettingsWizardSection, { isEdit: Boolean(props.data), onChange: setFreeTextColumn })));
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -50,7 +50,7 @@ const FreeTextColumnWizard = (props) => {
|
|
|
50
50
|
details: 'Select Free Text Column Tags',
|
|
51
51
|
title: 'Tags',
|
|
52
52
|
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
53
|
-
render: () => (React.createElement(
|
|
53
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
54
54
|
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setFreeTextColumn }))),
|
|
55
55
|
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
56
56
|
},
|
|
@@ -59,7 +59,7 @@ const FreeTextColumnWizard = (props) => {
|
|
|
59
59
|
details: 'Review the Free Text Column',
|
|
60
60
|
renderSummary: FreeTextColumnSettingsWizardSection_1.renderFreeTextColumnSummary,
|
|
61
61
|
render: () => {
|
|
62
|
-
return (React.createElement(
|
|
62
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
63
63
|
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
64
64
|
},
|
|
65
65
|
title: 'Summary',
|
|
@@ -4,7 +4,6 @@ exports.GridFilterExpressionEditor = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
|
-
const rebass_1 = require("rebass");
|
|
8
7
|
const ExpressionEditor_1 = require("../../components/ExpressionEditor");
|
|
9
8
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
10
9
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
@@ -15,6 +14,7 @@ const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions"
|
|
|
15
14
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
16
15
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
17
16
|
const useGridFilterOptionsForExpressionEditor_1 = require("./useGridFilterOptionsForExpressionEditor");
|
|
17
|
+
const Flex_1 = require("../../components/Flex");
|
|
18
18
|
const GridFilterExpressionEditor = (props) => {
|
|
19
19
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
20
20
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
@@ -91,15 +91,15 @@ const GridFilterExpressionEditor = (props) => {
|
|
|
91
91
|
setNamedQuery(newQuery);
|
|
92
92
|
},
|
|
93
93
|
} },
|
|
94
|
-
React.createElement(
|
|
94
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:h-full" },
|
|
95
95
|
React.createElement(ExpressionEditor_1.ExpressionEditor, { ...expressionEditorProps, type: 'boolean', module: ModuleConstants_1.GridFilterModuleId, value: expression, onChange: (expression) => setExpression(expression), initialData: initialData, columns: api.columnApi.internalApi.getQueryableColumnsForUIEditor(), fields: api.expressionApi.internalApi.getAvailableFields(), namedQueries: api.namedQueryApi.getNamedQueries(), api: api }),
|
|
96
|
-
React.createElement(
|
|
97
|
-
props.onDismiss && (React.createElement(SimpleButton_1.default, {
|
|
96
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row", alignItems: "center", className: "twa:p-1" },
|
|
97
|
+
props.onDismiss && (React.createElement(SimpleButton_1.default, { className: "twa:m-1", variant: "text", "data-name": "action-close", onClick: () => {
|
|
98
98
|
props.onDismiss();
|
|
99
99
|
} }, "CLOSE")),
|
|
100
|
-
React.createElement(
|
|
100
|
+
React.createElement(Flex_1.Box, { className: "twa:flex-1" }),
|
|
101
101
|
React.createElement(SimpleButton_1.default, { disabled: actionsDisabled, onClick: handleSaveQuery, icon: "save" }, "Save Query"),
|
|
102
|
-
React.createElement(SimpleButton_1.default, { variant: "raised", tone: "accent", "data-name": "action-run",
|
|
102
|
+
React.createElement(SimpleButton_1.default, { variant: "raised", tone: "accent", "data-name": "action-run", className: "twa:m-1", icon: "play", onClick: () => {
|
|
103
103
|
if (namedQuery) {
|
|
104
104
|
onAddNamedQuery({
|
|
105
105
|
Name: namedQuery.Name,
|
|
@@ -3,47 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GridFilterPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
|
-
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
8
|
-
const FieldWrap_1 = tslib_1.__importDefault(require("../../components/FieldWrap"));
|
|
9
|
-
const FormLayout_1 = tslib_1.__importStar(require("../../components/FormLayout"));
|
|
10
|
-
const Input_1 = tslib_1.__importDefault(require("../../components/Input"));
|
|
11
|
-
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
12
|
-
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
13
|
-
const ButtonClear_1 = require("../Components/Buttons/ButtonClear");
|
|
14
|
-
const ButtonExpand_1 = require("../Components/Buttons/ButtonExpand");
|
|
15
|
-
const ButtonInvalid_1 = require("../Components/Buttons/ButtonInvalid");
|
|
16
|
-
const ButtonPause_1 = require("../Components/Buttons/ButtonPause");
|
|
17
|
-
const ButtonPlay_1 = require("../Components/Buttons/ButtonPlay");
|
|
18
|
-
const ButtonSave_1 = require("../Components/Buttons/ButtonSave");
|
|
19
|
-
const ButtonUnsuspend_1 = require("../Components/Buttons/ButtonUnsuspend");
|
|
20
|
-
const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
|
|
21
|
-
const NamedQuerySelector_1 = require("./NamedQuerySelector");
|
|
22
6
|
const useGridFilterExpressionEditor_1 = require("./useGridFilterExpressionEditor");
|
|
7
|
+
const GridFilterPopupUI_1 = require("./GridFilterPopupUI");
|
|
23
8
|
const GridFilterPopup = () => {
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
9
|
+
const hookData = (0, useGridFilterExpressionEditor_1.useGridFilterExpressionEditor)();
|
|
10
|
+
// Create callback handlers
|
|
11
|
+
const handleExpressionChange = (value) => {
|
|
12
|
+
hookData.setExpression(value);
|
|
13
|
+
};
|
|
14
|
+
const handleRunQuery = (expression) => {
|
|
15
|
+
hookData.runQuery(expression);
|
|
16
|
+
};
|
|
17
|
+
const handleClearQuery = () => {
|
|
18
|
+
hookData.clearQuery();
|
|
19
|
+
};
|
|
20
|
+
const handleSaveQuery = () => {
|
|
21
|
+
hookData.saveQuery();
|
|
22
|
+
};
|
|
23
|
+
const handleSuspend = () => {
|
|
24
|
+
hookData.suspendGridFilter();
|
|
25
|
+
};
|
|
26
|
+
const handleUnsuspend = () => {
|
|
27
|
+
hookData.unSuspendGridFilter();
|
|
28
|
+
};
|
|
29
|
+
const handleExpand = () => {
|
|
30
|
+
hookData.onExpand();
|
|
31
|
+
};
|
|
32
|
+
const handleSelectNamedQuery = (query) => {
|
|
33
|
+
handleRunQuery(query);
|
|
34
|
+
};
|
|
35
|
+
const handleSetGridFilterExpression = (query) => {
|
|
36
|
+
hookData.setGridFilterExpression(query);
|
|
37
|
+
};
|
|
38
|
+
return (React.createElement(GridFilterPopupUI_1.GridFilterPopupUI, { expression: hookData.expression, isExpressionValid: hookData.isExpressionValid, isExpressionNamedQuery: hookData.isExpressionNamedQuery, isSuspended: hookData.isSuspended, isReadOnly: hookData.isReadOnly, availableColumns: hookData.availableColumns, namedQueries: hookData.namedQueries, cachedQueries: hookData.cachedQueries, currentGridFilterExpression: hookData.gridFilter?.Expression, headerText: "Grid Filter", glyphicon: "grid-filter", infoLink: hookData.gridFilterHelpPage, infoLinkDisabled: hookData.gridFilterLinkDisabled, onExpressionChange: handleExpressionChange, onRunQuery: handleRunQuery, onClearQuery: handleClearQuery, onSaveQuery: handleSaveQuery, onSuspend: handleSuspend, onUnsuspend: handleUnsuspend, onExpand: handleExpand, onSelectNamedQuery: handleSelectNamedQuery, onSetGridFilterExpression: handleSetGridFilterExpression, gridFilterAccessLevel: hookData.gridFilterAccessLevel, namedQueryAccessLevel: hookData.namedQueryModuleAccessLevel }));
|
|
48
39
|
};
|
|
49
40
|
exports.GridFilterPopup = GridFilterPopup;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NamedQuery, CachedQuery } from '../../../AdaptableState/NamedQueryState';
|
|
3
|
+
/**
|
|
4
|
+
* Column item for the dropdown menu
|
|
5
|
+
*/
|
|
6
|
+
export interface ColumnItem {
|
|
7
|
+
/** Column identifier */
|
|
8
|
+
columnId: string;
|
|
9
|
+
/** Display label for the column */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Callback when column is selected */
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Props for the GridFilterPopupUI component.
|
|
16
|
+
* This is a pure presentation component that receives all data and callbacks as props.
|
|
17
|
+
*/
|
|
18
|
+
export interface GridFilterPopupUIProps {
|
|
19
|
+
/** Current filter expression value */
|
|
20
|
+
expression: string;
|
|
21
|
+
/** Whether the current expression is valid */
|
|
22
|
+
isExpressionValid: boolean;
|
|
23
|
+
/** Whether the current expression matches a named query */
|
|
24
|
+
isExpressionNamedQuery: boolean;
|
|
25
|
+
/** Whether the grid filter is currently suspended */
|
|
26
|
+
isSuspended: boolean;
|
|
27
|
+
/** Whether the grid filter is read only */
|
|
28
|
+
isReadOnly: boolean;
|
|
29
|
+
/** Available columns for the dropdown menu */
|
|
30
|
+
availableColumns: ColumnItem[];
|
|
31
|
+
/** List of saved named queries */
|
|
32
|
+
namedQueries: NamedQuery[];
|
|
33
|
+
/** List of recently used cached queries */
|
|
34
|
+
cachedQueries: CachedQuery[];
|
|
35
|
+
/** Current grid filter expression (may differ from input expression) */
|
|
36
|
+
currentGridFilterExpression?: string;
|
|
37
|
+
/** Header text for the popup panel */
|
|
38
|
+
headerText: string;
|
|
39
|
+
/** Icon name for the popup panel */
|
|
40
|
+
glyphicon: string;
|
|
41
|
+
/** Help page URL for the info link */
|
|
42
|
+
infoLink?: string;
|
|
43
|
+
/** Whether the info link should be disabled */
|
|
44
|
+
infoLinkDisabled?: boolean;
|
|
45
|
+
/** Called when the expression input value changes */
|
|
46
|
+
onExpressionChange: (value: string) => void;
|
|
47
|
+
/** Called when the query should be executed */
|
|
48
|
+
onRunQuery: (expression?: string) => void;
|
|
49
|
+
/** Called when the clear button is clicked */
|
|
50
|
+
onClearQuery: () => void;
|
|
51
|
+
/** Called when the save button is clicked */
|
|
52
|
+
onSaveQuery: () => void;
|
|
53
|
+
/** Called when the suspend button is clicked */
|
|
54
|
+
onSuspend: () => void;
|
|
55
|
+
/** Called when the unsuspend/resume button is clicked */
|
|
56
|
+
onUnsuspend: () => void;
|
|
57
|
+
/** Called when the expand button is clicked */
|
|
58
|
+
onExpand: () => void;
|
|
59
|
+
/** Called when a named query is selected */
|
|
60
|
+
onSelectNamedQuery: (query: string) => void;
|
|
61
|
+
/** Called when setting the grid filter expression directly */
|
|
62
|
+
onSetGridFilterExpression: (query: string) => void;
|
|
63
|
+
/** Access level for grid filter operations */
|
|
64
|
+
gridFilterAccessLevel: 'ReadOnly' | 'Hidden' | 'Full';
|
|
65
|
+
/** Access level for named query operations */
|
|
66
|
+
namedQueryAccessLevel: 'ReadOnly' | 'Hidden' | 'Full';
|
|
67
|
+
}
|
|
68
|
+
export declare const GridFilterPopupUI: (props: GridFilterPopupUIProps) => React.JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GridFilterPopupUI = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const React = tslib_1.__importStar(require("react"));
|
|
6
|
+
const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/DropdownButton"));
|
|
7
|
+
const FieldWrap_1 = tslib_1.__importDefault(require("../../../components/FieldWrap"));
|
|
8
|
+
const Input_1 = tslib_1.__importDefault(require("../../../components/Input"));
|
|
9
|
+
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
10
|
+
const StringExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/StringExtensions"));
|
|
11
|
+
const ButtonClear_1 = require("../../Components/Buttons/ButtonClear");
|
|
12
|
+
const ButtonExpand_1 = require("../../Components/Buttons/ButtonExpand");
|
|
13
|
+
const ButtonInvalid_1 = require("../../Components/Buttons/ButtonInvalid");
|
|
14
|
+
const ButtonPause_1 = require("../../Components/Buttons/ButtonPause");
|
|
15
|
+
const ButtonPlay_1 = require("../../Components/Buttons/ButtonPlay");
|
|
16
|
+
const ButtonSave_1 = require("../../Components/Buttons/ButtonSave");
|
|
17
|
+
const ButtonUnsuspend_1 = require("../../Components/Buttons/ButtonUnsuspend");
|
|
18
|
+
const PopupPanel_1 = require("../../Components/Popups/AdaptablePopup/PopupPanel");
|
|
19
|
+
const NamedQuerySelector_1 = require("./../NamedQuerySelector");
|
|
20
|
+
const Flex_1 = require("../../../components/Flex");
|
|
21
|
+
const GridFilterPopupUI = (props) => {
|
|
22
|
+
const { expression, isExpressionValid, isExpressionNamedQuery, isSuspended, isReadOnly, availableColumns, namedQueries, cachedQueries, currentGridFilterExpression, headerText, glyphicon, infoLink, infoLinkDisabled, onExpressionChange, onRunQuery, onClearQuery, onSaveQuery, onSuspend, onUnsuspend, onExpand, onSelectNamedQuery, onSetGridFilterExpression, gridFilterAccessLevel, namedQueryAccessLevel, } = props;
|
|
23
|
+
const disabled = isReadOnly || isSuspended || gridFilterAccessLevel === 'ReadOnly';
|
|
24
|
+
const handleKeyDown = (e) => {
|
|
25
|
+
if (e.key === 'Enter') {
|
|
26
|
+
onRunQuery();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
return (React.createElement(PopupPanel_1.PopupPanel, { className: "ab-GridFilter", headerText: headerText, glyphicon: glyphicon, infoLink: infoLink, infoLinkDisabled: infoLinkDisabled },
|
|
30
|
+
React.createElement(Panel_1.default, { className: "twa:flex-1 twa:border-none twa:shadow-md twa:overflow-hidden" },
|
|
31
|
+
React.createElement(Panel_1.default.FlexBody, null,
|
|
32
|
+
React.createElement(Flex_1.Box, { className: "twa:grid twa:gap-3 twa:grid-cols-[auto_1fr] twa:items-center" },
|
|
33
|
+
"Expression:",
|
|
34
|
+
React.createElement(FieldWrap_1.default, { className: "twa:mr-1 twa:w-full" },
|
|
35
|
+
React.createElement(ButtonExpand_1.ButtonExpand, { disabled: disabled, variant: "text", tone: "neutral", onClick: onExpand, tooltip: "Edit the Expression in UI", className: "twa:ml-1" }),
|
|
36
|
+
React.createElement(Input_1.default, { onKeyDown: handleKeyDown, disabled: disabled, type: "text", "data-name": "grid-filter-input", placeholder: "Grid Filter", spellCheck: false, value: expression, onChange: (e) => onExpressionChange(e.target.value), className: "twa:font-mono twa:text-2" }),
|
|
37
|
+
isExpressionValid && (React.createElement(ButtonPlay_1.ButtonPlay, { onClick: () => onRunQuery(), tooltip: '', accessLevel: gridFilterAccessLevel, variant: "text", tone: "accent", disabled: disabled || expression === '' || expression === currentGridFilterExpression, className: "twa:mr-1" })),
|
|
38
|
+
currentGridFilterExpression && !isExpressionValid && (React.createElement(ButtonInvalid_1.ButtonInvalid, { variant: "text", tone: "neutral", tooltip: "Invalid Grid Filter", className: "twa:mr-1" })),
|
|
39
|
+
' ',
|
|
40
|
+
StringExtensions_1.default.IsNotNullOrEmpty(expression) && (React.createElement(ButtonClear_1.ButtonClear, { onClick: () => onClearQuery(), tooltip: "Clear Grid Filter", accessLevel: gridFilterAccessLevel }))),
|
|
41
|
+
React.createElement(Flex_1.Flex, { justifyContent: "space-around", className: "twa:col-start-2" },
|
|
42
|
+
React.createElement(ButtonSave_1.ButtonSave, { onClick: () => onSaveQuery(), tooltip: "Save as Named Query", accessLevel: namedQueryAccessLevel, disabled: disabled || !isExpressionValid || isExpressionNamedQuery || expression === '', variant: "text", tone: "neutral", className: "twa:mr-1" }, "Save"),
|
|
43
|
+
isSuspended ? (React.createElement(ButtonUnsuspend_1.ButtonUnsuspend, { onClick: () => onUnsuspend(), tooltip: "Unsuspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: disabled || !isExpressionValid, variant: "text", tone: "neutral", className: "twa:mr-1" }, "Resume")) : (React.createElement(ButtonPause_1.ButtonPause, { onClick: () => onSuspend(), tooltip: "Suspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: disabled || !isExpressionValid, variant: "text", tone: "neutral", className: "twa:mr-1" }, "Suspend")),
|
|
44
|
+
React.createElement(DropdownButton_1.default, { disabled: disabled, variant: "text", items: availableColumns, className: "twa:mr-1", tooltip: "Pick Columns", icon: "list", iconPosition: "start" }, "Columns"),
|
|
45
|
+
React.createElement(NamedQuerySelector_1.NamedQuerySelector, { disabled: disabled, namedQueries: namedQueries, cachedQueries: cachedQueries, currentQuery: currentGridFilterExpression, onSelect: (query) => onSelectNamedQuery(query), setGridFilterExpression: (query) => onSetGridFilterExpression(query) }, "Named Queries")))))));
|
|
46
|
+
};
|
|
47
|
+
exports.GridFilterPopupUI = GridFilterPopupUI;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GridFilterPanelControl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
6
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
8
7
|
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
9
8
|
const FieldWrap_1 = tslib_1.__importDefault(require("../../components/FieldWrap"));
|
|
@@ -18,6 +17,7 @@ const ButtonSave_1 = require("../Components/Buttons/ButtonSave");
|
|
|
18
17
|
const ButtonUnsuspend_1 = require("../Components/Buttons/ButtonUnsuspend");
|
|
19
18
|
const NamedQuerySelector_1 = require("./NamedQuerySelector");
|
|
20
19
|
const useGridFilterExpressionEditor_1 = require("./useGridFilterExpressionEditor");
|
|
20
|
+
const Flex_1 = require("../../components/Flex");
|
|
21
21
|
const QueryViewPanelComponent = (props) => {
|
|
22
22
|
const { cachedQueries, expression, setExpression, isExpressionNamedQuery, isExpressionValid, isSuspended, gridFilter, isAdaptableReady, namedQueries, availableColumns, runQuery, onExpand, clearQuery, namedQueryModuleAccessLevel, saveQuery, suspendGridFilter, unSuspendGridFilter, setGridFilterExpression, gridFilterAccessLevel, isReadOnly, } = (0, useGridFilterExpressionEditor_1.useGridFilterExpressionEditor)();
|
|
23
23
|
if (!isAdaptableReady) {
|
|
@@ -31,14 +31,11 @@ const QueryViewPanelComponent = (props) => {
|
|
|
31
31
|
runQuery();
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const buttonExpand = (React.createElement(ButtonExpand_1.ButtonExpand, { disabled: disabled, accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", onClick: onExpand, tooltip: "Edit the Expression in UI",
|
|
34
|
+
const buttonExpand = (React.createElement(ButtonExpand_1.ButtonExpand, { disabled: disabled, accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", onClick: onExpand, tooltip: "Edit the Expression in UI", className: "twa:ml-1" }));
|
|
35
35
|
const renderTextInput = () => {
|
|
36
|
-
return props.viewType === 'Toolbar' ? (React.createElement(FieldWrap_1.default, {
|
|
36
|
+
return props.viewType === 'Toolbar' ? (React.createElement(FieldWrap_1.default, { className: "twa:mr-1 twa:w-[500px] twa:overflow-visible" },
|
|
37
37
|
buttonExpand,
|
|
38
|
-
React.createElement(
|
|
39
|
-
position: 'relative',
|
|
40
|
-
height: '100%',
|
|
41
|
-
}, flex: 1 },
|
|
38
|
+
React.createElement(Flex_1.Box, { className: "twa:flex-1 twa:relative twa:h-full" },
|
|
42
39
|
React.createElement(Textarea_1.default, { "data-name": "grid-filter-input", autoResizeOnFocus: true, style: {
|
|
43
40
|
left: 0,
|
|
44
41
|
top: 0,
|
|
@@ -54,17 +51,13 @@ const QueryViewPanelComponent = (props) => {
|
|
|
54
51
|
overflow: 'hidden',
|
|
55
52
|
zIndex: 100,
|
|
56
53
|
}, placeholder: "Grid Filter", onChange: (x) => setExpression(x.target.value), value: expression })),
|
|
57
|
-
isExpressionValid && (React.createElement(ButtonPlay_1.ButtonPlay, { onClick: () => runQuery(), tooltip: '', accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", disabled: disabled || expression == '' || expression == gridFilter?.Expression,
|
|
58
|
-
gridFilter && !isExpressionValid && (React.createElement(ButtonInvalid_1.ButtonInvalid, { variant: "text", tone: "neutral", tooltip: "Invalid Grid Filter",
|
|
54
|
+
isExpressionValid && (React.createElement(ButtonPlay_1.ButtonPlay, { onClick: () => runQuery(), tooltip: '', accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", disabled: disabled || expression == '' || expression == gridFilter?.Expression, className: "twa:mr-1" })),
|
|
55
|
+
gridFilter && !isExpressionValid && (React.createElement(ButtonInvalid_1.ButtonInvalid, { variant: "text", tone: "neutral", tooltip: "Invalid Grid Filter", className: "twa:mr-1" })),
|
|
59
56
|
' ',
|
|
60
|
-
StringExtensions_1.default.IsNotNullOrEmpty(expression) && (React.createElement(ButtonClear_1.ButtonClear, { onClick: () => clearQuery(), tooltip: "Clear Grid Filter", accessLevel: gridFilterAccessLevel })))) : (React.createElement(FieldWrap_1.default, {
|
|
57
|
+
StringExtensions_1.default.IsNotNullOrEmpty(expression) && (React.createElement(ButtonClear_1.ButtonClear, { onClick: () => clearQuery(), tooltip: "Clear Grid Filter", accessLevel: gridFilterAccessLevel })))) : (React.createElement(FieldWrap_1.default, { className: "twa:w-full twa:overflow-visible" },
|
|
61
58
|
' ',
|
|
62
59
|
buttonExpand,
|
|
63
|
-
React.createElement(
|
|
64
|
-
position: 'relative',
|
|
65
|
-
minHeight: 40,
|
|
66
|
-
width: '100%',
|
|
67
|
-
}, flex: 1 },
|
|
60
|
+
React.createElement(Flex_1.Box, { className: "twa:flex-1 twa:relative twa:w-full twa:min-h-[40px]" },
|
|
68
61
|
React.createElement(Textarea_1.default, { "data-name": "grid-filter-input", autoResizeOnFocus: true, style: {
|
|
69
62
|
left: 0,
|
|
70
63
|
top: 0,
|
|
@@ -81,11 +74,11 @@ const QueryViewPanelComponent = (props) => {
|
|
|
81
74
|
overflow: 'hidden',
|
|
82
75
|
}, placeholder: "Grid Filter", onChange: (x) => setExpression(x.target.value), value: expression }))));
|
|
83
76
|
};
|
|
84
|
-
const saveButton = (React.createElement(ButtonSave_1.ButtonSave, { onClick: () => saveQuery(), tooltip: "Save as Named Query", accessLevel: namedQueryModuleAccessLevel, disabled: disabled || !isExpressionValid || isExpressionNamedQuery || expression == '', variant: "text", tone: "neutral",
|
|
85
|
-
const suspendButton = (React.createElement(ButtonPause_1.ButtonPause, { onClick: () => suspendGridFilter(), tooltip: "Suspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: disabled || !isExpressionValid, variant: "text", tone: "neutral",
|
|
86
|
-
const unSuspendButton = (React.createElement(ButtonUnsuspend_1.ButtonUnsuspend, { onClick: () => unSuspendGridFilter(), tooltip: "Unsuspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: !isExpressionValid, variant: "text", tone: "neutral",
|
|
77
|
+
const saveButton = (React.createElement(ButtonSave_1.ButtonSave, { onClick: () => saveQuery(), tooltip: "Save as Named Query", accessLevel: namedQueryModuleAccessLevel, disabled: disabled || !isExpressionValid || isExpressionNamedQuery || expression == '', variant: "text", tone: "neutral", className: "twa:mr-1" }));
|
|
78
|
+
const suspendButton = (React.createElement(ButtonPause_1.ButtonPause, { onClick: () => suspendGridFilter(), tooltip: "Suspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: disabled || !isExpressionValid, variant: "text", tone: "neutral", className: "twa:mr-1" }));
|
|
79
|
+
const unSuspendButton = (React.createElement(ButtonUnsuspend_1.ButtonUnsuspend, { onClick: () => unSuspendGridFilter(), tooltip: "Unsuspend Grid Filter", accessLevel: gridFilterAccessLevel, disabled: !isExpressionValid, variant: "text", tone: "neutral", className: "twa:mr-1" }));
|
|
87
80
|
const namedQuerySelector = (React.createElement(NamedQuerySelector_1.NamedQuerySelector, { namedQueries: namedQueries, cachedQueries: cachedQueries, currentQuery: gridFilter?.Expression, onSelect: (query) => runQuery(query), setGridFilterExpression: (query) => setGridFilterExpression(query) }));
|
|
88
|
-
const columnsDropdown = (React.createElement(DropdownButton_1.default, { disabled: disabled, accessLevel: gridFilterAccessLevel, variant: "text", items: availableColumns,
|
|
81
|
+
const columnsDropdown = (React.createElement(DropdownButton_1.default, { disabled: disabled, accessLevel: gridFilterAccessLevel, variant: "text", items: availableColumns, className: "twa:mr-1", tooltip: "Pick Columns" },
|
|
89
82
|
React.createElement(icons_1.Icon, { name: 'list' })));
|
|
90
83
|
const renderButtons = () => {
|
|
91
84
|
return props.viewType === 'Toolbar' ? (React.createElement(React.Fragment, null,
|
|
@@ -94,7 +87,7 @@ const QueryViewPanelComponent = (props) => {
|
|
|
94
87
|
columnsDropdown,
|
|
95
88
|
namedQuerySelector,
|
|
96
89
|
' ')) : (React.createElement(React.Fragment, null,
|
|
97
|
-
React.createElement(ButtonPlay_1.ButtonPlay, { "aria-label": 'Run Grid Filter', onClick: () => runQuery(), tooltip: "Run Grid Filter", accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", disabled: disabled || !isExpressionValid || expression == '' || expression == gridFilter,
|
|
90
|
+
React.createElement(ButtonPlay_1.ButtonPlay, { "aria-label": 'Run Grid Filter', onClick: () => runQuery(), tooltip: "Run Grid Filter", accessLevel: gridFilterAccessLevel, variant: "text", tone: "neutral", disabled: disabled || !isExpressionValid || expression == '' || expression == gridFilter, className: "twa:mr-1" }),
|
|
98
91
|
' ',
|
|
99
92
|
React.createElement(ButtonClear_1.ButtonClear, { onClick: () => clearQuery(), tooltip: "Clear Grid Filter", accessLevel: gridFilterAccessLevel, disabled: expression == '' }),
|
|
100
93
|
' ',
|
|
@@ -102,8 +95,8 @@ const QueryViewPanelComponent = (props) => {
|
|
|
102
95
|
isSuspended ? unSuspendButton : suspendButton,
|
|
103
96
|
namedQuerySelector));
|
|
104
97
|
};
|
|
105
|
-
return (React.createElement(
|
|
106
|
-
React.createElement(
|
|
107
|
-
React.createElement(
|
|
98
|
+
return (React.createElement(Flex_1.Flex, { onKeyDown: handleEnter, flexDirection: "row", className: `ab-${elementType}__Query__wrap`, flexWrap: props.viewType === 'ToolPanel' ? 'wrap' : 'nowrap' },
|
|
99
|
+
React.createElement(Flex_1.Flex, { className: props.viewType === 'ToolPanel' ? 'twa:w-full' : 'twa:w-auto' }, renderTextInput()),
|
|
100
|
+
React.createElement(Flex_1.Flex, null, renderButtons())));
|
|
108
101
|
};
|
|
109
102
|
exports.GridFilterPanelControl = QueryViewPanelComponent;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NamedQuerySelector = exports.AvailableSearchLabel = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
6
|
const icons_1 = require("../../components/icons");
|
|
8
7
|
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
9
8
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
@@ -12,9 +11,10 @@ const Enums_1 = require("../../AdaptableState/Common/Enums");
|
|
|
12
11
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
13
12
|
const AdaptablePopover_1 = require("../AdaptablePopover");
|
|
14
13
|
const ButtonOpen_1 = require("../Components/Buttons/ButtonOpen");
|
|
14
|
+
const Flex_1 = require("../../components/Flex");
|
|
15
15
|
const AvailableSearchLabel = (props) => {
|
|
16
|
-
return (React.createElement(
|
|
17
|
-
React.createElement(
|
|
16
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", justifyContent: "space-around", className: "twa:text-start twa:w-full" },
|
|
17
|
+
React.createElement(Flex_1.Box, { className: "twa:mb-2 twa:flex-1" }, props.label),
|
|
18
18
|
React.createElement(Tag_1.Tag, null, props.expression)));
|
|
19
19
|
};
|
|
20
20
|
exports.AvailableSearchLabel = AvailableSearchLabel;
|
|
@@ -39,15 +39,15 @@ const NamedQuerySelector = (props) => {
|
|
|
39
39
|
: null;
|
|
40
40
|
return ArrayExtensions_1.default.IsNotNullOrEmpty(cachedQueries) ||
|
|
41
41
|
ArrayExtensions_1.default.IsNotNullOrEmpty(availableSearches) ? (React.createElement(AdaptablePopover_1.AdaptablePopover, { tooltipText: "Load Named Query", showIcon: false, popoverMinWidth: 300, bodyText: [
|
|
42
|
-
React.createElement(
|
|
42
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:justify-stretch" },
|
|
43
43
|
React.createElement(Panel_1.default, { header: "Named Queries" },
|
|
44
|
-
React.createElement(
|
|
45
|
-
return (React.createElement(SimpleButton_1.default, {
|
|
44
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column" }, availableSearches.map((item, index) => {
|
|
45
|
+
return (React.createElement(SimpleButton_1.default, { className: "twa:mb-2", variant: "text", key: index, onClick: item.onClick }, item.label));
|
|
46
46
|
}))),
|
|
47
47
|
cachedQueries ? (React.createElement(React.Fragment, null,
|
|
48
|
-
React.createElement(Panel_1.default, {
|
|
49
|
-
React.createElement(
|
|
50
|
-
return (React.createElement(SimpleButton_1.default, { disabled: props.disabled,
|
|
48
|
+
React.createElement(Panel_1.default, { className: "twa:mt-2", header: "Recent Grid Filters" },
|
|
49
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column" }, cachedQueries.map((cachedQuery, index) => {
|
|
50
|
+
return (React.createElement(SimpleButton_1.default, { disabled: props.disabled, className: "twa:mb-2", variant: "text", key: index, onClick: cachedQuery.onClick }, cachedQuery.label));
|
|
51
51
|
}))))) : null),
|
|
52
52
|
] },
|
|
53
53
|
React.createElement(SimpleButton_1.default, { disabled: props.disabled, variant: "text", icon: "folder-open" }, props.children))) : (React.createElement(ButtonOpen_1.ButtonOpen, { tooltip: "Load Named Query", disabled: true }));
|
|
@@ -13,7 +13,11 @@ export declare const useGridFilterExpressionEditor: () => {
|
|
|
13
13
|
isAdaptableReady: boolean;
|
|
14
14
|
namedQueries: import("../../types").NamedQuery[];
|
|
15
15
|
onAddCachedQuery: (cachedQuery: CachedQuery) => void;
|
|
16
|
-
availableColumns:
|
|
16
|
+
availableColumns: {
|
|
17
|
+
columnId: string;
|
|
18
|
+
label: string;
|
|
19
|
+
onClick: () => void;
|
|
20
|
+
}[];
|
|
17
21
|
runQuery: (newExpression?: string) => void;
|
|
18
22
|
clearQuery: () => void;
|
|
19
23
|
onExpand: () => void;
|
|
@@ -44,8 +44,9 @@ const useGridFilterExpressionEditor = () => {
|
|
|
44
44
|
.getQueryLanguageService()
|
|
45
45
|
.validateBoolean(expression, ModuleConstants_1.NamedQueryModuleId).isValid;
|
|
46
46
|
const isExpressionNamedQuery = namedQueries.find((sq) => sq.BooleanExpression == expression) != null;
|
|
47
|
-
|
|
47
|
+
const availableColumns = adaptable.api.columnApi.getColumns().map((col) => {
|
|
48
48
|
return {
|
|
49
|
+
columnId: col.columnId,
|
|
49
50
|
label: col.friendlyName,
|
|
50
51
|
onClick: () => {
|
|
51
52
|
// Bogdan - im sure there is a better way to do this check with fancy operators i dont know
|
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AdaptableObjectsSummary = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
6
|
+
const Flex_1 = require("../../../components/Flex");
|
|
7
7
|
const AdaptableContext_1 = require("../../AdaptableContext");
|
|
8
8
|
const AdaptableObjectList_1 = require("../../Components/AdaptableObjectList");
|
|
9
9
|
const useRerender_1 = require("../../../components/utils/useRerender");
|
|
10
10
|
const react_1 = require("react");
|
|
11
|
-
const
|
|
11
|
+
const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
12
|
+
const AdaptableObjectsSummary = ({ className, }) => {
|
|
12
13
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
13
14
|
const rerender = (0, useRerender_1.useRerender)();
|
|
14
15
|
(0, react_1.useEffect)(() => {
|
|
@@ -16,7 +17,7 @@ const AdaptableObjectsSummary = () => {
|
|
|
16
17
|
}, [adaptable]);
|
|
17
18
|
const modules = adaptable.ModuleService.getModuleCollection();
|
|
18
19
|
const baseClassName = 'ab-AdaptableObjectsSummary';
|
|
19
|
-
return (React.createElement(
|
|
20
|
+
return (React.createElement(Flex_1.Box, { className: (0, clsx_1.default)(baseClassName, className) }, [...modules].map(([moduleName, module]) => {
|
|
20
21
|
if (!module.isModuleVisible()) {
|
|
21
22
|
return null;
|
|
22
23
|
}
|
|
@@ -24,7 +25,7 @@ const AdaptableObjectsSummary = () => {
|
|
|
24
25
|
if (!items?.length) {
|
|
25
26
|
return null;
|
|
26
27
|
}
|
|
27
|
-
return (React.createElement(
|
|
28
|
+
return (React.createElement(Flex_1.Box, { "data-name": module.moduleInfo.ModuleName, className: `${baseClassName}__module-list`, key: module.moduleInfo.ModuleName },
|
|
28
29
|
React.createElement("b", { className: `${baseClassName}__header` }, module.moduleInfo.FriendlyName),
|
|
29
30
|
items?.length && React.createElement(AdaptableObjectList_1.AdaptableObjectList, { items: items, module: module })));
|
|
30
31
|
})));
|
|
@@ -10,7 +10,7 @@ const ButtonMaximise_1 = require("../../Components/Buttons/ButtonMaximise");
|
|
|
10
10
|
const AdaptableObjectCollection_1 = require("../../Components/AdaptableObjectCollection");
|
|
11
11
|
const AdaptableObjectRow_1 = require("../../Components/AdaptableObjectRow");
|
|
12
12
|
const AdaptablePopover_1 = require("../../AdaptablePopover");
|
|
13
|
-
const
|
|
13
|
+
const Flex_1 = require("../../../components/Flex");
|
|
14
14
|
const AdaptableOptionsComponent = (props) => {
|
|
15
15
|
const { api } = props;
|
|
16
16
|
const getAdaptableOptionsColItems = () => [
|
|
@@ -81,7 +81,7 @@ const AdaptableOptionsComponent = (props) => {
|
|
|
81
81
|
setGridInfoOptions(gridInfoOptions);
|
|
82
82
|
}, []);
|
|
83
83
|
const [expandedComponentContainer, setExpandedComponentContainer] = (0, react_1.useState)('');
|
|
84
|
-
return (React.createElement(
|
|
84
|
+
return (React.createElement(Flex_1.Box, { className: "ab-AdaptableOptions twa:p-2", "data-name": "gridInfo-adaptableOptions-content" }, gridInfoOptions &&
|
|
85
85
|
Array.from(gridInfoOptions.entries()).map(([containerName, container]) => (React.createElement(OptionContainerComponent, { key: containerName, name: containerName, label: container.containerLabel, viewMode: containerName === expandedComponentContainer ? 'expanded' : 'collapsed', onViewModeChange: (newViewMode) => setExpandedComponentContainer(newViewMode === 'expanded' ? containerName : '') }, gridInfoContainerComponents.get(containerName))))));
|
|
86
86
|
};
|
|
87
87
|
exports.AdaptableOptionsComponent = AdaptableOptionsComponent;
|
|
@@ -91,13 +91,9 @@ const OptionContainerComponent = (props) => {
|
|
|
91
91
|
onViewModeChange(viewMode === 'expanded' ? 'collapsed' : 'expanded');
|
|
92
92
|
};
|
|
93
93
|
const panelButton = viewMode === 'expanded' ? (React.createElement(ButtonMinimise_1.ButtonMinimise, { onClick: () => requestViewModeChange(), tooltip: `Hide ${label}` })) : (React.createElement(ButtonMaximise_1.ButtonMaximise, { onClick: () => requestViewModeChange(), tooltip: `Show ${label}` }));
|
|
94
|
-
return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `ab-OptionsContainer options-container-${name}`, variant: "default", headerText: label, headerProps: {
|
|
95
|
-
|
|
96
|
-
style: {
|
|
97
|
-
fontWeight: viewMode === 'expanded' ? 800 : 400,
|
|
98
|
-
cursor: 'pointer',
|
|
99
|
-
},
|
|
94
|
+
return (React.createElement(PanelWithButton_1.PanelWithButton, { className: `ab-OptionsContainer options-container-${name} twa:mb-3`, variant: "default", headerText: label, headerProps: {
|
|
95
|
+
className: `twa:text-3 twa:cursor-pointer ${viewMode === 'expanded' ? 'twa:font-extrabold' : 'twa:font-normal'}`,
|
|
100
96
|
'data-name': `options-container-header-${name}`,
|
|
101
97
|
onClick: () => requestViewModeChange(),
|
|
102
|
-
}, button: panelButton
|
|
98
|
+
}, button: panelButton }, viewMode === 'expanded' && children));
|
|
103
99
|
};
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GridInfoPopup = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
6
|
const Panel_1 = tslib_1.__importDefault(require("../../../components/Panel"));
|
|
8
7
|
const Tabs_1 = require("../../../components/Tabs");
|
|
9
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/ArrayExtensions"));
|
|
@@ -15,6 +14,7 @@ const PopupPanel_1 = require("../../Components/Popups/AdaptablePopup/PopupPanel"
|
|
|
15
14
|
const AdaptableObjectsSummary_1 = require("./AdaptableObjectsSummary");
|
|
16
15
|
const EnvVars_1 = require("../../../EnvVars");
|
|
17
16
|
const AgGridModulesAdapter_1 = require("../../../agGrid/AgGridModulesAdapter");
|
|
17
|
+
const clsx_1 = tslib_1.__importDefault(require("clsx"));
|
|
18
18
|
const adaptableVersion = EnvVars_1.ADAPTABLE_VERSION;
|
|
19
19
|
const agGridVersion = AgGridModulesAdapter_1.AG_GRID_VERSION;
|
|
20
20
|
const GridInfoPopup = (props) => {
|
|
@@ -82,15 +82,15 @@ const GridInfoPopup = (props) => {
|
|
|
82
82
|
return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { key: index, colItems: x });
|
|
83
83
|
});
|
|
84
84
|
const baseClassName = 'ab-GridInfo';
|
|
85
|
-
return (React.createElement(PopupPanel_1.PopupPanel, { className: baseClassName, headerText: 'Grid Info', glyphicon: 'info' },
|
|
86
|
-
React.createElement(
|
|
87
|
-
React.createElement(Panel_1.default,
|
|
88
|
-
React.createElement(Tabs_1.Tabs,
|
|
85
|
+
return (React.createElement(PopupPanel_1.PopupPanel, { className: (0, clsx_1.default)(baseClassName), headerText: 'Grid Info', glyphicon: 'info', scrollable: false },
|
|
86
|
+
React.createElement(Panel_1.default, { className: "twa:flex-1 twa:border-none twa:shadow-md twa:overflow-hidden" },
|
|
87
|
+
React.createElement(Panel_1.default.FlexBody, null,
|
|
88
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:flex-1 twa:min-h-0" },
|
|
89
89
|
React.createElement(Tabs_1.Tabs.Tab, null, "Grid Summary"),
|
|
90
90
|
React.createElement(Tabs_1.Tabs.Tab, null, "Grid State"),
|
|
91
91
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
92
|
-
React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, {
|
|
92
|
+
React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { className: "twa:flex-1 twa:min-h-0" /* so the collection scrolls nicely, the header remains fixed*/, colItems: propValueColItems, items: gridSummaries })),
|
|
93
93
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
94
|
-
React.createElement(AdaptableObjectsSummary_1.AdaptableObjectsSummary,
|
|
94
|
+
React.createElement(AdaptableObjectsSummary_1.AdaptableObjectsSummary, { className: "twa:min-h-0 twa:overflow-auto twa:p-2" })))))));
|
|
95
95
|
};
|
|
96
96
|
exports.GridInfoPopup = GridInfoPopup;
|
package/src/View/KeyHint.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const KeyHint: (props:
|
|
2
|
+
import { BoxProps } from '../components/Flex';
|
|
3
|
+
export declare const KeyHint: (props: BoxProps & {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}) => React.JSX.Element;
|
package/src/View/KeyHint.js
CHANGED
|
@@ -3,8 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.KeyHint = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const
|
|
6
|
+
const Flex_1 = require("../components/Flex");
|
|
7
|
+
const twMerge_1 = require("../twMerge");
|
|
7
8
|
const KeyHint = (props) => {
|
|
8
|
-
|
|
9
|
+
const cls = (0, twMerge_1.twMerge)('twa:text-1 twa:text-inputcolor', props.className);
|
|
10
|
+
return React.createElement(Flex_1.Box, { ...props, className: cls });
|
|
9
11
|
};
|
|
10
12
|
exports.KeyHint = KeyHint;
|