@adaptabletools/adaptable-cjs 21.2.2-canary.0 → 22.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +0 -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/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/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/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/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/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 +2 -3
- package/src/agGrid/AdaptableAgGrid.js +92 -14
- 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.FlashingCellWizard = 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 FlashingCellSettingsWizardSection_1 = require("./FlashingCellSettingsWizardSection");
|
|
10
9
|
const Helper_1 = require("../../../Utilities/Helpers/Helper");
|
|
@@ -19,6 +18,7 @@ const react_redux_1 = require("react-redux");
|
|
|
19
18
|
const isValidFlashingCellRules_1 = require("./isValidFlashingCellRules");
|
|
20
19
|
const FlashingCellRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/FlashingCellRedux"));
|
|
21
20
|
const ObjectTagsWizardSection_1 = require("../../Wizard/ObjectTagsWizardSection");
|
|
21
|
+
const Flex_1 = require("../../../components/Flex");
|
|
22
22
|
const FlashingCellWizard = (props) => {
|
|
23
23
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
24
24
|
const [flashingCell, setFlashingCell] = (0, react_1.useState)(() => {
|
|
@@ -77,7 +77,7 @@ const FlashingCellWizard = (props) => {
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
details: 'Choose Flash Styles for Up, Down and Neutral Changes',
|
|
80
|
-
render: () => (React.createElement(
|
|
80
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
81
81
|
React.createElement(FlashingCellStyleWizardSection_1.FlashingAlertStyleWizardSection, { onStyleChange: (styleName, style) => {
|
|
82
82
|
updateStyles[styleName](style);
|
|
83
83
|
} }))),
|
|
@@ -86,7 +86,7 @@ const FlashingCellWizard = (props) => {
|
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
details: 'Set Duration and Target Properties',
|
|
89
|
-
render: () => (React.createElement(
|
|
89
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
90
90
|
React.createElement(FlashingCellSettingsWizardSection_1.FlashingAlertSettingsWizardSection, { onChange: setFlashingCell }))),
|
|
91
91
|
renderSummary: FlashingCellSettingsWizardSection_1.renderFlashingAlertSettingsSummary,
|
|
92
92
|
title: 'Settings',
|
|
@@ -95,7 +95,7 @@ const FlashingCellWizard = (props) => {
|
|
|
95
95
|
details: 'Select Flashing Cell Tags',
|
|
96
96
|
title: 'Tags',
|
|
97
97
|
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
98
|
-
render: () => (React.createElement(
|
|
98
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
99
99
|
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setFlashingCell }))),
|
|
100
100
|
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
101
101
|
},
|
|
@@ -103,7 +103,7 @@ const FlashingCellWizard = (props) => {
|
|
|
103
103
|
{
|
|
104
104
|
details: 'Review the Flashing Cell Rule',
|
|
105
105
|
render: () => {
|
|
106
|
-
return (React.createElement(
|
|
106
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
107
107
|
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
108
108
|
},
|
|
109
109
|
title: 'Summary',
|
|
@@ -12,5 +12,5 @@ export interface FormatColumnFormatWizardState {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const getFormatColumnFormatSummaryValue: (data: FormatColumn) => string;
|
|
14
14
|
export declare const renderFormatColumnFormatSummary: (data: FormatColumn) => React.JSX.Element;
|
|
15
|
-
export declare const getFormatDisplayTypeForScope: (scope: ColumnScope, api: AdaptableApi) =>
|
|
15
|
+
export declare const getFormatDisplayTypeForScope: (scope: ColumnScope, api: AdaptableApi) => "number" | "date" | "text" | undefined;
|
|
16
16
|
export declare const FormatColumnFormatWizardSection: (props: FormatColumnFormatWizardSectionProps) => React.JSX.Element;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FormatColumnFormatWizardSection = exports.getFormatDisplayTypeForScope = exports.renderFormatColumnFormatSummary = exports.getFormatColumnFormatSummaryValue = 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 uniq_1 = tslib_1.__importDefault(require("lodash/uniq"));
|
|
8
7
|
const clamp_1 = tslib_1.__importDefault(require("lodash/clamp"));
|
|
9
8
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
@@ -25,6 +24,8 @@ const Textarea_1 = tslib_1.__importDefault(require("../../../components/Textarea
|
|
|
25
24
|
const ButtonInfo_1 = require("../../Components/Buttons/ButtonInfo");
|
|
26
25
|
const DocumentationLinkConstants_1 = require("../../../Utilities/Constants/DocumentationLinkConstants");
|
|
27
26
|
const AdaptableColumn_1 = require("../../../AdaptableState/Common/AdaptableColumn");
|
|
27
|
+
const Flex_1 = require("../../../components/Flex");
|
|
28
|
+
const Card_1 = require("../../../components/Card");
|
|
28
29
|
const DOLLAR_OPTIONS = {
|
|
29
30
|
FractionDigits: 2,
|
|
30
31
|
FractionSeparator: '.',
|
|
@@ -218,25 +219,25 @@ const renderDateFormat = (data, _onChange, setFormatOption, scopedCustomFormatte
|
|
|
218
219
|
if (data.DisplayFormat.Formatter !== 'DateFormatter') {
|
|
219
220
|
return null;
|
|
220
221
|
}
|
|
221
|
-
return (React.createElement(
|
|
222
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
222
223
|
React.createElement(Tabs_1.Tabs, null,
|
|
223
224
|
React.createElement(Tabs_1.Tabs.Tab, null, "Format"),
|
|
224
225
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
225
|
-
React.createElement(
|
|
226
|
+
React.createElement(Flex_1.Box, { className: "twa:p-2 twa:text-2" },
|
|
226
227
|
"Either create your own date pattern, or select one of the preset date formats (check out",
|
|
227
228
|
' ',
|
|
228
229
|
React.createElement("a", { href: "https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table", target: "_blank" }, "available symbols"),
|
|
229
230
|
")."),
|
|
230
231
|
React.createElement(FormLayout_1.default, null,
|
|
231
232
|
React.createElement(FormLayout_1.FormRow, { label: "Pattern" },
|
|
232
|
-
React.createElement(Input_1.default, { "data-name": "pattern", value: data.DisplayFormat.Options.Pattern ?? '', onChange: (e) => setFormatOption('Pattern', e.currentTarget.value),
|
|
233
|
+
React.createElement(Input_1.default, { "data-name": "pattern", value: data.DisplayFormat.Options.Pattern ?? '', onChange: (e) => setFormatOption('Pattern', e.currentTarget.value), className: "twa:mr-2" }),
|
|
233
234
|
React.createElement("span", null, data.DisplayFormat.Options.Pattern &&
|
|
234
235
|
FormatHelper_1.default.DateFormatter(new Date(), data.DisplayFormat.Options, true)))))),
|
|
235
|
-
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, {
|
|
236
|
+
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", keyboardNavigation: false },
|
|
236
237
|
React.createElement(Tabs_1.Tabs.Tab, null, "Custom Formats"),
|
|
237
238
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
238
239
|
React.createElement(FormLayout_1.default, null, scopedCustomFormatters.map((formatter) => renderCustomFormatter(data, formatter, setFormatOption)))))),
|
|
239
|
-
React.createElement(Tabs_1.Tabs, {
|
|
240
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", keyboardNavigation: false },
|
|
240
241
|
React.createElement(Tabs_1.Tabs.Tab, null, "Presets"),
|
|
241
242
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
242
243
|
React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { style: { fontWeight: 'bold' }, colItems: [
|
|
@@ -309,12 +310,12 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
309
310
|
const IS_DOLLAR = data.DisplayFormat.Options.Prefix === '$'; //isEqual(data.DisplayFormat.Options, DOLLAR_OPTIONS);
|
|
310
311
|
const IS_STERLING = data.DisplayFormat.Options.Prefix === '£'; //isEqual(data.DisplayFormat, STERLING_OPTIONS);
|
|
311
312
|
const showDocumentationLinks = api.internalApi.isDocumentationLinksDisplayed();
|
|
312
|
-
return (React.createElement(
|
|
313
|
+
return (React.createElement(Flex_1.Box, { "data-name": 'format-column-display-format', className: "twa:p-2" },
|
|
313
314
|
React.createElement(Tabs_1.Tabs, null,
|
|
314
315
|
React.createElement(Tabs_1.Tabs.Tab, null, "Format"),
|
|
315
316
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
316
|
-
React.createElement(
|
|
317
|
-
React.createElement(FormLayout_1.default, {
|
|
317
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
318
|
+
React.createElement(FormLayout_1.default, { className: "twa:mr-3" },
|
|
318
319
|
React.createElement(FormLayout_1.FormRow, { label: "Fraction Separator" },
|
|
319
320
|
React.createElement(Input_1.default, { "data-name": "fraction-separator", value: data.DisplayFormat.Options.FractionSeparator ?? '', onChange: (e) => setFormatOption('FractionSeparator', e.currentTarget.value) }),
|
|
320
321
|
' '),
|
|
@@ -355,41 +356,38 @@ const renderNumberFormat = (data, onChange, setFormatOption, scopedCustomFormatt
|
|
|
355
356
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "round-checkbox", checked: data.DisplayFormat.Options.Round, onChange: (checked) => setFormatOption('Round', checked) })),
|
|
356
357
|
React.createElement(FormLayout_1.FormRow, { label: "Empty" },
|
|
357
358
|
React.createElement(CheckBox_1.CheckBox, { "data-name": "empty-checkbox", checked: data.DisplayFormat.Options.Empty, onChange: (checked) => setFormatOption('Empty', checked) })))))),
|
|
358
|
-
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, {
|
|
359
|
+
scopedCustomFormatters.length > 0 && (React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", keyboardNavigation: false },
|
|
359
360
|
React.createElement(Tabs_1.Tabs.Tab, null, "Custom Formats"),
|
|
360
361
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
361
|
-
React.createElement(
|
|
362
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
362
363
|
React.createElement(FormLayout_1.default, null, scopedCustomFormatters.map((formatter) => renderCustomFormatter(data, formatter, setFormatOption))))))),
|
|
363
|
-
React.createElement(Tabs_1.Tabs, {
|
|
364
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", autoFocus: false, keyboardNavigation: false },
|
|
364
365
|
React.createElement(Tabs_1.Tabs.Tab, null, "Presets"),
|
|
365
366
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
366
|
-
React.createElement(
|
|
367
|
-
React.createElement(
|
|
368
|
-
React.createElement(FormLayout_1.default, {
|
|
367
|
+
React.createElement(Flex_1.Box, { className: "twa:p-2 twa:text-2" }, "Select a preset for common use cases"),
|
|
368
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
369
|
+
React.createElement(FormLayout_1.default, { className: "twa:m-2" },
|
|
369
370
|
React.createElement(FormLayout_1.FormRow, { label: "Show As:" },
|
|
370
|
-
React.createElement(Radio_1.default, { "data-name": "preset-percentage",
|
|
371
|
-
React.createElement(Radio_1.default, { "data-name": "preset-thousand",
|
|
372
|
-
React.createElement(Radio_1.default, { "data-name": "preset-million",
|
|
373
|
-
React.createElement(Radio_1.default, { "data-name": "preset-dollar",
|
|
374
|
-
React.createElement(Radio_1.default, { "data-name": "preset-sterling",
|
|
375
|
-
React.createElement(Tabs_1.Tabs, {
|
|
371
|
+
React.createElement(Radio_1.default, { "data-name": "preset-percentage", className: "twa:ml-2", checked: IS_PERCENT, onChange: () => setPercentPreset() }, "Percentage"),
|
|
372
|
+
React.createElement(Radio_1.default, { "data-name": "preset-thousand", className: "twa:ml-3", checked: IS_THOUSAND, onChange: () => setDivideThousandPreset() }, "K (Thousand)"),
|
|
373
|
+
React.createElement(Radio_1.default, { "data-name": "preset-million", className: "twa:ml-3", checked: IS_MILLION, onChange: () => setDivideMillionPreset() }, "M (Million)"),
|
|
374
|
+
React.createElement(Radio_1.default, { "data-name": "preset-dollar", className: "twa:ml-3", checked: IS_DOLLAR, onChange: () => setDollarPreset() }, "Dollar"),
|
|
375
|
+
React.createElement(Radio_1.default, { "data-name": "preset-sterling", className: "twa:ml-3", checked: IS_STERLING, onChange: () => setSterlingPreset() }, "Sterling")))))),
|
|
376
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", autoFocus: false, keyboardNavigation: false },
|
|
376
377
|
React.createElement(Tabs_1.Tabs.Tab, null, "Dynamic Content"),
|
|
377
378
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
378
|
-
React.createElement(
|
|
379
|
-
React.createElement(FormLayout_1.default, {
|
|
379
|
+
React.createElement(Flex_1.Box, { className: "twa:p-2 twa:text-2" }, "Provide dynamic content through the use of Placeholders"),
|
|
380
|
+
React.createElement(FormLayout_1.default, { className: "twa:m-2" },
|
|
380
381
|
React.createElement(FormLayout_1.FormRow, { label: "" },
|
|
381
|
-
React.createElement(Textarea_1.default, {
|
|
382
|
-
showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation",
|
|
383
|
-
|
|
384
|
-
padding: 0,
|
|
385
|
-
} },
|
|
386
|
-
React.createElement(ButtonInfo_1.ButtonInfo, { mr: 2, onClick: () => window.open(DocumentationLinkConstants_1.FormatColumnPlaceholderDocsLink, '_blank') }),
|
|
382
|
+
React.createElement(Textarea_1.default, { className: "twa:min-w-[300px] twa:mt-2", rows: 3, placeholder: "", type: 'text', autoFocus: false, value: data.DisplayFormat.Options.Content?.toString() ?? '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) }),
|
|
383
|
+
showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation", className: "twa:mt-3 twa:mb-2 twa:p-0 twa:text-3" },
|
|
384
|
+
React.createElement(ButtonInfo_1.ButtonInfo, { className: "twa:mr-2", onClick: () => window.open(DocumentationLinkConstants_1.FormatColumnPlaceholderDocsLink, '_blank') }),
|
|
387
385
|
"Learn more about using placeholders"))),
|
|
388
386
|
' '))),
|
|
389
|
-
React.createElement(Tabs_1.Tabs, {
|
|
387
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mt-2", autoFocus: false, keyboardNavigation: false },
|
|
390
388
|
React.createElement(Tabs_1.Tabs.Tab, null, "Examples"),
|
|
391
389
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
392
|
-
React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, {
|
|
390
|
+
React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { className: "twa:font-bold", colItems: [
|
|
393
391
|
{ Content: 'Raw Number', Size: 1 },
|
|
394
392
|
{ Content: 'Formatted Number', Size: 1 },
|
|
395
393
|
] }),
|
|
@@ -420,42 +418,39 @@ const renderStringFormat = (data, _onChange, setFormatOption, scopedCustomFormat
|
|
|
420
418
|
return null;
|
|
421
419
|
}
|
|
422
420
|
const showDocumentationLinks = api.internalApi.isDocumentationLinksDisplayed();
|
|
423
|
-
return (React.createElement(
|
|
424
|
-
React.createElement(
|
|
425
|
-
React.createElement(
|
|
426
|
-
React.createElement(
|
|
427
|
-
React.createElement(
|
|
428
|
-
React.createElement(
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
React.createElement(Tabs_1.Tabs.Tab, null, "Example"),
|
|
457
|
-
React.createElement(Tabs_1.Tabs.Content, null,
|
|
458
|
-
React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { style: { fontWeight: 'bold' }, colItems: [
|
|
421
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", "data-name": 'format-column-display-format', className: "twa:gap-3 twa:p-3" },
|
|
422
|
+
React.createElement(Card_1.Card, null,
|
|
423
|
+
React.createElement(Card_1.Card.Title, null, "Format"),
|
|
424
|
+
React.createElement(Card_1.Card.Body, { className: "twa:grid twa:p-2 twa:grid-cols-[1fr_1fr] twa:gap-2" },
|
|
425
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row", className: "twa:gap-2 twa:col-span-2 twa:items-center" },
|
|
426
|
+
React.createElement("label", null, "Case:"),
|
|
427
|
+
React.createElement(Toggle_1.ToggleGroup, null,
|
|
428
|
+
React.createElement(Toggle_1.Toggle, { pressed: data.DisplayFormat.Options.Case === 'Upper', onPressedChange: (pressed) => setFormatOption('Case', pressed ? 'Upper' : undefined), icon: "case-upper" }),
|
|
429
|
+
React.createElement(Toggle_1.Toggle, { pressed: data.DisplayFormat.Options.Case === 'Lower', onPressedChange: (pressed) => setFormatOption('Case', pressed ? 'Lower' : undefined), icon: "case-lower" }),
|
|
430
|
+
React.createElement(Toggle_1.Toggle, { pressed: data.DisplayFormat.Options.Case === 'Sentence', onPressedChange: (pressed) => setFormatOption('Case', pressed ? 'Sentence' : undefined), icon: "case-sentence" })),
|
|
431
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "trim-checkbox", className: "twa:ml-5", checked: data.DisplayFormat.Options.Trim, onChange: (checked) => setFormatOption('Trim', checked) }, "Trim")),
|
|
432
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2" },
|
|
433
|
+
React.createElement("label", null, "Prefix"),
|
|
434
|
+
React.createElement(Input_1.default, { "data-name": "prefix", value: data.DisplayFormat.Options.Prefix ?? '', onChange: (e) => setFormatOption('Prefix', e.currentTarget.value) })),
|
|
435
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:gap-2" },
|
|
436
|
+
React.createElement("label", null, "Suffix"),
|
|
437
|
+
React.createElement(Input_1.default, { "data-name": "suffix", value: data.DisplayFormat.Options.Suffix ?? '', onChange: (e) => setFormatOption('Suffix', e.currentTarget.value) })),
|
|
438
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:col-span-2 twa:gap-2" },
|
|
439
|
+
React.createElement("label", null, "Content"),
|
|
440
|
+
React.createElement(Textarea_1.default, { className: "twa:min-w-[300px]", rows: 3, placeholder: "", type: 'text', autoFocus: false, value: data.DisplayFormat.Options.Content ?? '', onChange: (e) => setFormatOption('Content', e.currentTarget.value) }),
|
|
441
|
+
showDocumentationLinks && (React.createElement(HelpBlock_1.default, { "data-name": "query-documentation", className: "twa:mt-3 twa:mb-2 twa:p-0 twa:text-3" },
|
|
442
|
+
React.createElement(ButtonInfo_1.ButtonInfo, { className: "twa:mr-2", onClick: () => window.open(DocumentationLinkConstants_1.FormatColumnPlaceholderDocsLink, '_blank') }),
|
|
443
|
+
"See how to create dynamic Display Format using placeholders"))),
|
|
444
|
+
React.createElement(CheckBox_1.CheckBox, { className: "twa:col-span-2", "data-name": "empty-checkbox", checked: data.DisplayFormat.Options.Empty, onChange: (checked) => setFormatOption('Empty', checked) }, "Empty"))),
|
|
445
|
+
scopedCustomFormatters.length > 0 && (React.createElement(Card_1.Card, { shadow: false },
|
|
446
|
+
React.createElement(Card_1.Card.Title, null, "Custom Formats"),
|
|
447
|
+
React.createElement(Card_1.Card.Body, null,
|
|
448
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column" },
|
|
449
|
+
React.createElement(FormLayout_1.default, { className: "twa:mr-3" }, scopedCustomFormatters.map((formatter) => renderCustomFormatter(data, formatter, setFormatOption))))))),
|
|
450
|
+
React.createElement(Card_1.Card, null,
|
|
451
|
+
React.createElement(Card_1.Card.Title, null, "Example"),
|
|
452
|
+
React.createElement(Card_1.Card.Body, null,
|
|
453
|
+
React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { className: "twa:font-bold", colItems: [
|
|
459
454
|
{ Content: 'Raw String', Size: 1 },
|
|
460
455
|
{ Content: 'Formatted String', Size: 1 },
|
|
461
456
|
] }),
|
|
@@ -494,7 +489,7 @@ const FormatColumnFormatWizardSection = (props) => {
|
|
|
494
489
|
if (Type === 'StringFormatter') {
|
|
495
490
|
return renderStringFormat(data, update, setFormatOption, customScopedFormatters, adaptable.api);
|
|
496
491
|
}
|
|
497
|
-
return (React.createElement(HelpBlock_1.default, {
|
|
492
|
+
return (React.createElement(HelpBlock_1.default, { className: "twa:m-2" },
|
|
498
493
|
"Setting a Display Format is only possible if ",
|
|
499
494
|
React.createElement("b", null, "all"),
|
|
500
495
|
" the columns in Scope are Numeric, String or Date"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnRuleWizardSection =
|
|
3
|
+
exports.FormatColumnRuleWizardSection = FormatColumnRuleWizardSection;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
@@ -9,7 +9,7 @@ const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlo
|
|
|
9
9
|
function FormatColumnRuleWizardSection(props) {
|
|
10
10
|
const { data, api, moduleInfo } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
11
11
|
if (data.Target && data.Target === 'columnHeader') {
|
|
12
|
-
return (React.createElement(HelpBlock_1.default, {
|
|
12
|
+
return (React.createElement(HelpBlock_1.default, { className: "twa:mt-3" }, "Conditions cannot be applied if the Target of the Format Column is Column Header"));
|
|
13
13
|
}
|
|
14
14
|
return (React.createElement(EntityRulesEditor_1.EntityRulesEditor, { module: moduleInfo.ModuleName, defaultPredicateId: props.defaultPredicateId,
|
|
15
15
|
// TODO see what is this
|
|
@@ -29,4 +29,3 @@ function FormatColumnRuleWizardSection(props) {
|
|
|
29
29
|
" is 'All Columns' - so any data change may be evaluated in a complex AggregatedBooleanExpression")),
|
|
30
30
|
} }));
|
|
31
31
|
}
|
|
32
|
-
exports.FormatColumnRuleWizardSection = FormatColumnRuleWizardSection;
|
|
@@ -6,7 +6,6 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
|
|
7
7
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
8
8
|
const constants_1 = require("./constants");
|
|
9
|
-
const rebass_1 = require("rebass");
|
|
10
9
|
const renderFormatColumnScopeSummary = (data) => {
|
|
11
10
|
return (0, NewScopeComponent_1.renderScopeSummary)(data.Scope, {
|
|
12
11
|
scopeWholeRow: 'Matching rows will be formatted',
|
|
@@ -18,9 +17,6 @@ exports.renderFormatColumnScopeSummary = renderFormatColumnScopeSummary;
|
|
|
18
17
|
const FormatColumnScopeWizardSection = (props) => {
|
|
19
18
|
const { data, api } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
20
19
|
return (React.createElement(React.Fragment, null,
|
|
21
|
-
React.createElement(rebass_1.Box, { "data-name": 'scope-heading', style: {
|
|
22
|
-
borderRadius: `var(--ab__border-radius)`,
|
|
23
|
-
}, padding: 2, backgroundColor: `var(--ab-color-primarylight)` }, "Scope"),
|
|
24
20
|
React.createElement(NewScopeComponent_1.NewScopeComponent, { descriptions: {
|
|
25
21
|
rowScope: 'Format all columns in the row',
|
|
26
22
|
columnScope: 'Select columns to format',
|
|
@@ -3,34 +3,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FormatColumnSettingsWizardSection = exports.renderFormatColumnSettingsSummary = 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 FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
8
7
|
const CheckBox_1 = require("../../../components/CheckBox");
|
|
9
|
-
const Tabs_1 = require("../../../components/Tabs");
|
|
10
8
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
11
9
|
const Tag_1 = require("../../../components/Tag");
|
|
12
10
|
const ToggleGroup_1 = require("../../../components/Toggle/ToggleGroup");
|
|
13
11
|
const Toggle_1 = require("../../../components/Toggle/Toggle");
|
|
14
12
|
const Radio_1 = tslib_1.__importStar(require("../../../components/Radio"));
|
|
13
|
+
const Flex_1 = require("../../../components/Flex");
|
|
14
|
+
const Card_1 = require("../../../components/Card");
|
|
15
15
|
const renderFormatColumnSettingsSummary = (data) => {
|
|
16
|
-
return (React.createElement(
|
|
17
|
-
React.createElement(
|
|
16
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
17
|
+
React.createElement(Flex_1.Box, null,
|
|
18
18
|
"Cell alignment ",
|
|
19
|
-
React.createElement(Tag_1.Tag, null, data.CellAlignment ?? '
|
|
20
|
-
React.createElement(
|
|
19
|
+
React.createElement(Tag_1.Tag, null, data.CellAlignment ?? 'default')),
|
|
20
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
21
21
|
"Data Rows ",
|
|
22
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeDataRows ? '
|
|
22
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeDataRows ? 'no' : 'yes')),
|
|
23
23
|
' ',
|
|
24
|
-
React.createElement(
|
|
24
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
25
25
|
"Group Rows ",
|
|
26
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeGroupRows ? '
|
|
27
|
-
React.createElement(
|
|
26
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeGroupRows ? 'no' : 'yes')),
|
|
27
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
28
28
|
"Summary Rows ",
|
|
29
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeSummaryRows ? '
|
|
30
|
-
React.createElement(
|
|
29
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeSummaryRows ? 'no' : 'yes')),
|
|
30
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
31
31
|
"Total Rows ",
|
|
32
|
-
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeTotalRows ? '
|
|
33
|
-
React.createElement(
|
|
32
|
+
React.createElement(Tag_1.Tag, null, data.RowScope?.ExcludeTotalRows ? 'no' : 'yes')),
|
|
33
|
+
React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
34
34
|
"Apply on Column Groups:",
|
|
35
35
|
' ',
|
|
36
36
|
React.createElement(Tag_1.Tag, null, !data.ColumnGroupScope || data.ColumnGroupScope === 'Both'
|
|
@@ -83,10 +83,10 @@ const FormatColumnSettingsWizardSection = (props) => {
|
|
|
83
83
|
},
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
return (React.createElement(
|
|
87
|
-
React.createElement(
|
|
88
|
-
React.createElement(
|
|
89
|
-
React.createElement(
|
|
86
|
+
return (React.createElement(Card_1.Card, null,
|
|
87
|
+
React.createElement(Card_1.Card.Title, null, "Settings"),
|
|
88
|
+
React.createElement(Card_1.Card.Body, null,
|
|
89
|
+
React.createElement(Flex_1.Flex, { flexDirection: "row" },
|
|
90
90
|
React.createElement(FormLayout_1.default, null,
|
|
91
91
|
React.createElement(FormLayout_1.FormRow, { label: "Cell Alignment" },
|
|
92
92
|
React.createElement(ToggleGroup_1.ToggleGroup, null,
|
|
@@ -101,17 +101,17 @@ const FormatColumnSettingsWizardSection = (props) => {
|
|
|
101
101
|
: onCellAlignmentSelectChanged(null) }))),
|
|
102
102
|
data.Target === 'cell' && (React.createElement(React.Fragment, null,
|
|
103
103
|
React.createElement(FormLayout_1.FormRow, { label: "Exclude Data Rows:" },
|
|
104
|
-
React.createElement(
|
|
105
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged,
|
|
104
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
105
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-data-rows-checkbox", checked: data.RowScope?.ExcludeDataRows, onChange: onExcludeDataRowsChanged, className: "twa:mr-2" }))),
|
|
106
106
|
React.createElement(FormLayout_1.FormRow, { label: "Exclude Group Rows:" },
|
|
107
|
-
React.createElement(
|
|
108
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged,
|
|
107
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
108
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-grouped-rows-checkbox", checked: data.RowScope?.ExcludeGroupRows, onChange: onExcludeGroupedRowsChanged, className: "twa:mr-2" }))),
|
|
109
109
|
React.createElement(FormLayout_1.FormRow, { label: "Exclude Row Summaries:" },
|
|
110
|
-
React.createElement(
|
|
111
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged,
|
|
110
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
111
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-summary-rows-checkbox", checked: data.RowScope?.ExcludeSummaryRows, onChange: onExcludeSummaryRowsChanged, className: "twa:mr-2" }))),
|
|
112
112
|
React.createElement(FormLayout_1.FormRow, { label: "Exclude Total Rows:" },
|
|
113
|
-
React.createElement(
|
|
114
|
-
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged,
|
|
113
|
+
React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:ml-2" },
|
|
114
|
+
React.createElement(CheckBox_1.CheckBox, { "data-name": "exclude-total-rows-checkbox", checked: data.RowScope?.ExcludeTotalRows, onChange: onExcludeTotalRowsChanged, className: "twa:mr-2" }))))),
|
|
115
115
|
React.createElement(FormLayout_1.FormRow, { label: "Apply on Column Group:" },
|
|
116
116
|
React.createElement(Radio_1.RadioGroup, { value: data.ColumnGroupScope || 'Both', name: "columnGroupScope", orientation: "horizontal", onRadioChange: (columnGroupScope) => {
|
|
117
117
|
props.onChange({
|
|
@@ -119,8 +119,8 @@ const FormatColumnSettingsWizardSection = (props) => {
|
|
|
119
119
|
ColumnGroupScope: columnGroupScope,
|
|
120
120
|
});
|
|
121
121
|
} },
|
|
122
|
-
React.createElement(Radio_1.default, {
|
|
123
|
-
React.createElement(Radio_1.default, {
|
|
124
|
-
React.createElement(Radio_1.default, {
|
|
122
|
+
React.createElement(Radio_1.default, { className: "twa:ml-1", value: "Both" }, "Always"),
|
|
123
|
+
React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Expanded" }, "Expanded"),
|
|
124
|
+
React.createElement(Radio_1.default, { className: "twa:ml-4", value: "Collapsed" }, "Collapsed"))))))));
|
|
125
125
|
};
|
|
126
126
|
exports.FormatColumnSettingsWizardSection = FormatColumnSettingsWizardSection;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.renderFormatColumnStyleSummary = exports.renderFormatColumnStyleWizardSummary = exports.isFormatColumnStyleValid = void 0;
|
|
4
|
+
exports.FormatColumnStyleWizardSection = FormatColumnStyleWizardSection;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const React = tslib_1.__importStar(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
7
|
const StyleHelper_1 = require("../../../Utilities/Helpers/StyleHelper");
|
|
8
8
|
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
9
9
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
10
10
|
const UIHelper_1 = tslib_1.__importDefault(require("../../UIHelper"));
|
|
11
|
+
const Flex_1 = require("../../../components/Flex");
|
|
11
12
|
const isFormatColumnStyleValid = (data, api) => {
|
|
12
13
|
if (data.Style &&
|
|
13
14
|
UIHelper_1.default.IsEmptyStyle(data.Style) &&
|
|
@@ -33,7 +34,7 @@ const renderFormatColumnStyleWizardSummary = (data) => {
|
|
|
33
34
|
};
|
|
34
35
|
exports.renderFormatColumnStyleWizardSummary = renderFormatColumnStyleWizardSummary;
|
|
35
36
|
const renderFormatColumnStyleSummary = (data, api) => {
|
|
36
|
-
return (React.createElement(
|
|
37
|
+
return (React.createElement(Flex_1.Box, { className: "ab-FormatPreview twa:p-2", style: toStyle(data) }, "Preview result"));
|
|
37
38
|
};
|
|
38
39
|
exports.renderFormatColumnStyleSummary = renderFormatColumnStyleSummary;
|
|
39
40
|
function FormatColumnStyleWizardSection(props) {
|
|
@@ -42,4 +43,3 @@ function FormatColumnStyleWizardSection(props) {
|
|
|
42
43
|
props.onChange({ ...data, Style });
|
|
43
44
|
} }));
|
|
44
45
|
}
|
|
45
|
-
exports.FormatColumnStyleWizardSection = FormatColumnStyleWizardSection;
|
|
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
7
7
|
const Tabs_1 = require("../../../components/Tabs");
|
|
8
|
-
const rebass_1 = require("rebass");
|
|
9
8
|
const TypeRadio_1 = require("../../Wizard/TypeRadio");
|
|
9
|
+
const Flex_1 = require("../../../components/Flex");
|
|
10
10
|
const renderFormatColumnTargetSummary = (data) => {
|
|
11
11
|
if (!data.Target || data.Target === 'cell') {
|
|
12
12
|
return 'Column Cells';
|
|
@@ -27,10 +27,10 @@ const FormatColumnTargetWizardSection = (props) => {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
return (React.createElement(React.Fragment, null,
|
|
30
|
-
React.createElement(Tabs_1.Tabs, {
|
|
30
|
+
React.createElement(Tabs_1.Tabs, { className: "twa:mb-3" },
|
|
31
31
|
React.createElement(Tabs_1.Tabs.Tab, null, "Target"),
|
|
32
32
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
33
|
-
React.createElement(
|
|
33
|
+
React.createElement(Flex_1.Flex, { flexDirection: "column" },
|
|
34
34
|
React.createElement(TypeRadio_1.TypeRadio, { "data-name": "target-column-cell", text: 'Column Cells', description: "Column Cells are styled and formatted", checked: currentTarget === 'cell', onClick: () => handleTargetChange('cell') }),
|
|
35
35
|
React.createElement(TypeRadio_1.TypeRadio, { "data-name": "target-column-header", text: 'Column Header', description: "The Column Header is styled (Note: Conditions are not available for Column Headers)", checked: currentTarget === 'columnHeader', onClick: () => handleTargetChange('columnHeader') }))))));
|
|
36
36
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormatColumnWizard =
|
|
3
|
+
exports.FormatColumnWizard = FormatColumnWizard;
|
|
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 FormatColumnScopeWizardSection_1 = require("./FormatColumnScopeWizardSection");
|
|
@@ -22,6 +21,7 @@ const FormatColumnRuleWizardSection_1 = require("./FormatColumnRuleWizardSection
|
|
|
22
21
|
const constants_1 = require("./constants");
|
|
23
22
|
const ObjectExtensions_1 = require("../../../Utilities/Extensions/ObjectExtensions");
|
|
24
23
|
const FormatColumnTargetWizardSection_1 = require("./FormatColumnTargetWizardSection");
|
|
24
|
+
const Flex_1 = require("../../../components/Flex");
|
|
25
25
|
const adjustDisplayFormat = (fc, api) => {
|
|
26
26
|
const formatColumn = { ...fc };
|
|
27
27
|
let formatDataType = (0, FormatColumnFormatWizardSection_1.getFormatDisplayTypeForScope)(formatColumn.Scope, api);
|
|
@@ -95,14 +95,14 @@ function FormatColumnWizard(props) {
|
|
|
95
95
|
}
|
|
96
96
|
props.onFinishWizard(formatColumn);
|
|
97
97
|
};
|
|
98
|
-
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: formatColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
98
|
+
return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, modal: props.modal, data: formatColumn, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
|
|
99
99
|
{
|
|
100
100
|
title: 'Scope',
|
|
101
101
|
details: 'Select which Columns will be formatted',
|
|
102
102
|
isValid: NewScopeComponent_1.isScopeValid,
|
|
103
103
|
renderSummary: FormatColumnScopeWizardSection_1.renderFormatColumnScopeSummary,
|
|
104
104
|
render: () => {
|
|
105
|
-
return (React.createElement(
|
|
105
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
|
|
106
106
|
React.createElement(FormatColumnScopeWizardSection_1.FormatColumnScopeWizardSection, { onChange: setFormatColumn })));
|
|
107
107
|
},
|
|
108
108
|
},
|
|
@@ -111,7 +111,7 @@ function FormatColumnWizard(props) {
|
|
|
111
111
|
details: 'Select which Columns Elements will be formatted',
|
|
112
112
|
renderSummary: FormatColumnTargetWizardSection_1.renderFormatColumnTargetSummary,
|
|
113
113
|
render: () => {
|
|
114
|
-
return (React.createElement(
|
|
114
|
+
return (React.createElement(Flex_1.Flex, { flexDirection: "column", className: "twa:p-2 twa:h-full" },
|
|
115
115
|
React.createElement(FormatColumnTargetWizardSection_1.FormatColumnTargetWizardSection, { onChange: setFormatColumn })));
|
|
116
116
|
},
|
|
117
117
|
},
|
|
@@ -134,7 +134,7 @@ function FormatColumnWizard(props) {
|
|
|
134
134
|
isValid: FormatColumnStyleWizardSection_1.isFormatColumnStyleValid,
|
|
135
135
|
renderSummary: FormatColumnStyleWizardSection_1.renderFormatColumnStyleWizardSummary,
|
|
136
136
|
render: () => {
|
|
137
|
-
return (React.createElement(
|
|
137
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
138
138
|
React.createElement(FormatColumnStyleWizardSection_1.FormatColumnStyleWizardSection, { onChange: setFormatColumn })));
|
|
139
139
|
},
|
|
140
140
|
},
|
|
@@ -151,7 +151,7 @@ function FormatColumnWizard(props) {
|
|
|
151
151
|
details: 'Set Additional Properties',
|
|
152
152
|
renderSummary: FormatColumnSettingsWizardSection_1.renderFormatColumnSettingsSummary,
|
|
153
153
|
render: () => {
|
|
154
|
-
return (React.createElement(
|
|
154
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
155
155
|
React.createElement(FormatColumnSettingsWizardSection_1.FormatColumnSettingsWizardSection, { onChange: setFormatColumn })));
|
|
156
156
|
},
|
|
157
157
|
},
|
|
@@ -159,7 +159,7 @@ function FormatColumnWizard(props) {
|
|
|
159
159
|
details: 'Select Format Column Tags',
|
|
160
160
|
title: 'Tags',
|
|
161
161
|
isVisible: (_, api) => api.internalApi.shouldDisplayTagSections(),
|
|
162
|
-
render: () => (React.createElement(
|
|
162
|
+
render: () => (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
163
163
|
React.createElement(ObjectTagsWizardSection_1.ObjectTagsWizardSection, { onChange: setFormatColumn }))),
|
|
164
164
|
renderSummary: ObjectTagsWizardSection_1.renderObjectTagsSummary,
|
|
165
165
|
},
|
|
@@ -167,11 +167,10 @@ function FormatColumnWizard(props) {
|
|
|
167
167
|
{
|
|
168
168
|
details: 'Review the Format Column',
|
|
169
169
|
render: () => {
|
|
170
|
-
return (React.createElement(
|
|
170
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
171
171
|
React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
|
|
172
172
|
},
|
|
173
173
|
title: 'Summary',
|
|
174
174
|
},
|
|
175
175
|
] }));
|
|
176
176
|
}
|
|
177
|
-
exports.FormatColumnWizard = FormatColumnWizard;
|