@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
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getSharedEntityStaleDepsItemView = exports.getSharedEntityActiveStatusObjectView = exports.SharedEntityTypeItemView = 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 SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
8
7
|
const Tag_1 = require("../../components/Tag");
|
|
9
8
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
10
9
|
const AdaptableObjectList_1 = require("../Components/AdaptableObjectList/AdaptableObjectList");
|
|
10
|
+
const Flex_1 = require("../../components/Flex");
|
|
11
11
|
const SharedEntityTypeItemView = (props) => {
|
|
12
12
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
13
13
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
@@ -16,11 +16,11 @@ const SharedEntityTypeItemView = (props) => {
|
|
|
16
16
|
const sharedObject = props.data.Entity;
|
|
17
17
|
const item = module?.toView(sharedObject);
|
|
18
18
|
return (React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement(
|
|
20
|
-
React.createElement(
|
|
21
|
-
React.createElement(Tag_1.Tag, {
|
|
19
|
+
React.createElement(Flex_1.Flex, { className: "twa:my-2" },
|
|
20
|
+
React.createElement(Flex_1.Flex, { className: "twa:mr-2", alignItems: "center" },
|
|
21
|
+
React.createElement(Tag_1.Tag, { className: "twa:m-0" }, props.data.Module)),
|
|
22
22
|
item ? (isExpanded ? (React.createElement(SimpleButton_1.default, { "data-name": "shared-entity-collapse-button", onClick: () => setIsExpanded(false), icon: "arrow-up" }, "Collapse")) : (React.createElement(SimpleButton_1.default, { "data-name": "shared-entity-expand-button", onClick: () => setIsExpanded(true), icon: "arrow-down" }, "Expand"))) : null),
|
|
23
|
-
isExpanded && item && (React.createElement(
|
|
23
|
+
isExpanded && item && (React.createElement(Flex_1.Box, { as: "ul", className: "ab-Shared-Entity-Shared-Object twa:p-0 twa:flex twa:flex-col twa:gap-3" },
|
|
24
24
|
React.createElement(AdaptableObjectList_1.AdaptableObjectListItem, { hideControls: true, data: item, module: module })))));
|
|
25
25
|
};
|
|
26
26
|
exports.SharedEntityTypeItemView = SharedEntityTypeItemView;
|
|
@@ -46,11 +46,11 @@ const getSharedEntityActiveStatusObjectView = (isDependency) => (props) => {
|
|
|
46
46
|
const newRevision = sharedEntity.Revision;
|
|
47
47
|
let statusInfo = null;
|
|
48
48
|
if (isUpToDateAndActive) {
|
|
49
|
-
statusInfo = (React.createElement(
|
|
49
|
+
statusInfo = (React.createElement(Flex_1.Box, { className: "twa:ml-1 twa:text-success" },
|
|
50
50
|
React.createElement("b", null, "up-to-date")));
|
|
51
51
|
}
|
|
52
52
|
if (isStaleAndActive) {
|
|
53
|
-
statusInfo = (React.createElement(
|
|
53
|
+
statusInfo = (React.createElement(Flex_1.Box, { className: "twa:ml-1 twa:text-warn" }, ` (Rev. ${newRevision} available)`));
|
|
54
54
|
}
|
|
55
55
|
activeInfo = activeRevision && (React.createElement(React.Fragment, null,
|
|
56
56
|
activeRevision &&
|
|
@@ -78,6 +78,6 @@ const getSharedEntityStaleDepsItemView = (staleDependencies) => () => {
|
|
|
78
78
|
staleDepsString += ` ${staleDependencies.length} stale dependencies`;
|
|
79
79
|
}
|
|
80
80
|
return (React.createElement(Tag_1.Tag, null,
|
|
81
|
-
React.createElement(
|
|
81
|
+
React.createElement(Flex_1.Box, { className: "twa:ml-1 twa:text-warn" }, staleDepsString)));
|
|
82
82
|
};
|
|
83
83
|
exports.getSharedEntityStaleDepsItemView = getSharedEntityStaleDepsItemView;
|
|
@@ -8,11 +8,11 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
8
8
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
|
|
9
9
|
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
10
10
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
11
|
-
const rebass_1 = require("rebass");
|
|
12
11
|
const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
|
|
13
12
|
const ThemeField_1 = require("./ThemeField");
|
|
14
13
|
const VariantSelector_1 = require("./VariantSelector");
|
|
15
14
|
const AdaptableHelper_1 = require("../../Utilities/Helpers/AdaptableHelper");
|
|
15
|
+
const Flex_1 = require("../../components/Flex");
|
|
16
16
|
const fields = [
|
|
17
17
|
{
|
|
18
18
|
name: 'Primary Color',
|
|
@@ -39,31 +39,6 @@ const fields = [
|
|
|
39
39
|
type: 'color',
|
|
40
40
|
variable: '--ab-color-text-on-primarydark',
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
name: 'Secondary Color',
|
|
44
|
-
type: 'color',
|
|
45
|
-
variable: '--ab-color-secondary',
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: 'Secondary Dark Color',
|
|
49
|
-
type: 'color',
|
|
50
|
-
variable: '--ab-color-secondarydark',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'Secondary Light Color',
|
|
54
|
-
type: 'color',
|
|
55
|
-
variable: '--ab-color-secondarylight',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'Text on Secondary Color',
|
|
59
|
-
type: 'color',
|
|
60
|
-
variable: '--ab-color-text-on-secondary',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'Text on Secondary Light Color',
|
|
64
|
-
type: 'color',
|
|
65
|
-
variable: '--ab-color-text-on-secondarylight',
|
|
66
|
-
},
|
|
67
42
|
{
|
|
68
43
|
name: 'Default background',
|
|
69
44
|
type: 'color',
|
|
@@ -142,18 +117,18 @@ const ThemeEditor = (props) => {
|
|
|
142
117
|
const nameHasChanged = currentThemeObject.Name !== props.theme;
|
|
143
118
|
const nameIsNotUnique = allThemes.some((theme) => theme.Uuid !== currentThemeObject.Uuid && currentThemeObject.Name === theme.Name);
|
|
144
119
|
const saveNameDisabled = !nameHasChanged || nameIsNotUnique || currentThemeObject.Name === '';
|
|
145
|
-
return (React.createElement(Panel_1.default, { header: React.createElement(
|
|
146
|
-
React.createElement(
|
|
120
|
+
return (React.createElement(Panel_1.default, { header: React.createElement(Flex_1.Flex, { alignItems: "center", className: "twa:w-full" },
|
|
121
|
+
React.createElement(Flex_1.Box, { className: "twa:flex-1" }, " Edit Custom Theme"),
|
|
147
122
|
React.createElement(SimpleButton_1.default, { "data-name": "delete", accessLevel: currentThemeAccessLevel, icon: "delete", onClick: handleDeleteTheme, variant: "text" })) },
|
|
148
123
|
React.createElement(FormLayout_1.default, null,
|
|
149
124
|
React.createElement(FormLayout_1.FormRow, { label: "Theme Name" },
|
|
150
|
-
React.createElement(AdaptableInput_1.default, { disabled: currentThemeIsReadOnly,
|
|
125
|
+
React.createElement(AdaptableInput_1.default, { disabled: currentThemeIsReadOnly, className: "twa:mr-2", onChange: (event) => setCurrentThemeObject({
|
|
151
126
|
...currentThemeObject,
|
|
152
127
|
Name: event.target.value.replace(/ /g, '-'),
|
|
153
128
|
}), value: currentThemeObject.Name ?? '' }),
|
|
154
129
|
React.createElement(SimpleButton_1.default, { onClick: handleSaveName, disabled: saveNameDisabled || currentThemeIsReadOnly, icon: "save", hidden: currentThemeIsReadOnly }),
|
|
155
|
-
React.createElement(
|
|
156
|
-
nameIsNotUnique &&
|
|
130
|
+
React.createElement(Flex_1.Box, { className: "twa:text-2 twa:mt-1" }, "The name cannot contain spaces."),
|
|
131
|
+
nameIsNotUnique && React.createElement(Flex_1.Box, { className: "twa:text-2 twa:text-error" }, "Name must be unique.")),
|
|
157
132
|
React.createElement(FormLayout_1.FormRow, { label: "Description" },
|
|
158
133
|
React.createElement(AdaptableInput_1.default, { disabled: currentThemeIsReadOnly, onChange: (event) => handleDescriptionChange('Description', event.target.value), value: currentThemeObject?.Description ?? '' })),
|
|
159
134
|
React.createElement(FormLayout_1.FormRow, { label: "Variant" },
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ThemeEditorWindow = 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 AdaptableContext_1 = require("../AdaptableContext");
|
|
8
7
|
const ThemePopup_1 = require("./ThemePopup");
|
|
8
|
+
const Flex_1 = require("../../components/Flex");
|
|
9
9
|
const ThemeEditorWindow = () => {
|
|
10
10
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
11
11
|
const moduleInfo = adaptable.ModuleService.getModuleInfoByModule('Theme');
|
|
12
|
-
return (React.createElement(
|
|
12
|
+
return (React.createElement(Flex_1.Box, { className: "twa:p-2" },
|
|
13
13
|
React.createElement(ThemePopup_1.ThemePopup, { hideShowInWindow: true, moduleInfo: moduleInfo, api: adaptable.api })));
|
|
14
14
|
};
|
|
15
15
|
exports.ThemeEditorWindow = ThemeEditorWindow;
|
|
@@ -8,9 +8,9 @@ const AdaptableContext_1 = require("../AdaptableContext");
|
|
|
8
8
|
const StyleHelper_1 = require("../../Utilities/Helpers/StyleHelper");
|
|
9
9
|
const FormLayout_1 = require("../../components/FormLayout");
|
|
10
10
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
11
|
-
const rebass_1 = require("rebass");
|
|
12
11
|
const ColorPicker_1 = require("../../components/ColorPicker");
|
|
13
12
|
const AdaptableInput_1 = tslib_1.__importDefault(require("../Components/AdaptableInput"));
|
|
13
|
+
const Flex_1 = require("../../components/Flex");
|
|
14
14
|
const Field = (props) => {
|
|
15
15
|
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
16
16
|
let input = null;
|
|
@@ -32,9 +32,8 @@ const Field = (props) => {
|
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
return (React.createElement(FormLayout_1.FormRow, { label: props.name },
|
|
35
|
-
React.createElement(
|
|
35
|
+
React.createElement(Flex_1.Flex, null,
|
|
36
36
|
input,
|
|
37
|
-
' ',
|
|
38
37
|
React.createElement(SimpleButton_1.default, { disabled: props.value === undefined, onClick: () => props.onChange(false) }, "Clear"))));
|
|
39
38
|
};
|
|
40
39
|
exports.Field = Field;
|
|
@@ -11,7 +11,7 @@ interface ThemePopupProps extends ModuleViewPopupProps<ThemePopupComponent> {
|
|
|
11
11
|
declare class ThemePopupComponent extends React.Component<ThemePopupProps, {}> {
|
|
12
12
|
render(): React.JSX.Element;
|
|
13
13
|
onChangeTheme(value: string): void;
|
|
14
|
-
handleCreateNewTheme: (variant:
|
|
14
|
+
handleCreateNewTheme: (variant: "dark" | "light") => void;
|
|
15
15
|
}
|
|
16
16
|
export declare let ThemePopup: import("react-redux").ConnectedComponent<typeof ThemePopupComponent, {
|
|
17
17
|
[x: string]: any;
|
|
@@ -9,11 +9,11 @@ const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
|
|
|
9
9
|
const FormLayout_1 = tslib_1.__importStar(require("../../components/FormLayout"));
|
|
10
10
|
const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
|
|
11
11
|
const ThemeEditor_1 = require("./ThemeEditor");
|
|
12
|
-
const rebass_1 = require("rebass");
|
|
13
12
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
14
13
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
15
14
|
const icons_1 = require("../../components/icons");
|
|
16
15
|
const ThemeSelector_1 = require("./ThemeSelector");
|
|
16
|
+
const Flex_1 = require("../../components/Flex");
|
|
17
17
|
class ThemePopupComponent extends React.Component {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
@@ -36,7 +36,7 @@ class ThemePopupComponent extends React.Component {
|
|
|
36
36
|
.getUserThemes()
|
|
37
37
|
.some((theme) => theme.Name === this.props.CurrentTheme);
|
|
38
38
|
const disabled = this.props.accessLevel === 'ReadOnly';
|
|
39
|
-
const newButton = (React.createElement(DropdownButton_1.default, {
|
|
39
|
+
const newButton = (React.createElement(DropdownButton_1.default, { className: "twa:ml-2", disabled: disabled, tone: "accent", variant: "raised", columns: ['label'], items: [
|
|
40
40
|
{
|
|
41
41
|
label: 'Dark',
|
|
42
42
|
onClick: () => this.handleCreateNewTheme('dark'),
|
|
@@ -55,9 +55,9 @@ class ThemePopupComponent extends React.Component {
|
|
|
55
55
|
newButton) },
|
|
56
56
|
React.createElement(FormLayout_1.default, null,
|
|
57
57
|
React.createElement(FormLayout_1.FormRow, { label: "Current Theme:" },
|
|
58
|
-
React.createElement(
|
|
58
|
+
React.createElement(Flex_1.Box, { className: "twa:max-w-[150px]" },
|
|
59
59
|
React.createElement(ThemeSelector_1.ThemeSelector, null)))),
|
|
60
|
-
isCustomTheme && (React.createElement(
|
|
60
|
+
isCustomTheme && (React.createElement(Flex_1.Box, { className: "twa:mt-3" },
|
|
61
61
|
React.createElement(ThemeEditor_1.ThemeEditor, { accessLevel: this.props.accessLevel, theme: this.props.CurrentTheme })))));
|
|
62
62
|
}
|
|
63
63
|
onChangeTheme(value) {
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ThemeStatusbar = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const rebass_1 = require("rebass");
|
|
7
6
|
const ThemeSelector_1 = require("./ThemeSelector");
|
|
7
|
+
const Flex_1 = require("../../components/Flex");
|
|
8
8
|
const ThemeStatusbar = () => {
|
|
9
|
-
return (react_1.default.createElement(
|
|
9
|
+
return (react_1.default.createElement(Flex_1.Box, { onClick: (event) => {
|
|
10
10
|
event.stopPropagation();
|
|
11
11
|
} },
|
|
12
12
|
react_1.default.createElement(ThemeSelector_1.ThemeSelector, { size: "small" })));
|
|
@@ -21,7 +21,7 @@ const VariantSelector = (props) => {
|
|
|
21
21
|
? options.find((theme) => theme.value === props.theme.Variant)?.label
|
|
22
22
|
: 'Select a theme';
|
|
23
23
|
return (React.createElement(React.Fragment, null,
|
|
24
|
-
React.createElement(DropdownButton_1.default, {
|
|
24
|
+
React.createElement(DropdownButton_1.default, { className: "twa:mr-2", columns: ['label'], items: options, disabled: props.disabled }, label),
|
|
25
25
|
React.createElement(SimpleButton_1.default, { onClick: () => props.onChange(null), disabled: !props.theme.Variant || props.disabled, hidden: props.disabled, icon: "delete" })));
|
|
26
26
|
};
|
|
27
27
|
exports.VariantSelector = VariantSelector;
|
package/src/View/UIHelper.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const ORANGE: string;
|
|
|
29
29
|
export declare function getHexForName(name: string): string;
|
|
30
30
|
export declare function getDefaultColors(): string[];
|
|
31
31
|
export declare function getEmptyConfigState(): EditableConfigEntityState;
|
|
32
|
-
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "
|
|
32
|
+
export declare function getDescriptionForDataType(dataType: AdaptableColumnDataType): "text" | "number" | "date";
|
|
33
33
|
export declare function getPlaceholderForDataType(dataType: AdaptableColumnDataType): "Enter Value" | "Enter Number" | "Enter Date";
|
|
34
34
|
export declare function getModalContainer(adaptableOptions: AdaptableOptions, document: Document): HTMLElement;
|
|
35
35
|
export declare function IsEmptyStyle(style: AdaptableStyle): boolean;
|
package/src/View/UIHelper.js
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UIHelper = exports.
|
|
3
|
+
exports.UIHelper = exports.ORANGE = exports.LIGHT_RED = exports.RED = exports.DARK_RED = exports.PURPLE = exports.MAGENTA = exports.CYAN = exports.LIGHT_BLUE = exports.BLUE = exports.DARK_BLUE = exports.LIGHT_YELLOW = exports.YELLOW = exports.LIME_GREEN = exports.GREEN = exports.DARK_GREEN = exports.BROWN = exports.GRAY = exports.LIGHT_GRAY = exports.WHITE = exports.BLACK = void 0;
|
|
4
|
+
exports.getHexForName = getHexForName;
|
|
5
|
+
exports.getDefaultColors = getDefaultColors;
|
|
6
|
+
exports.getEmptyConfigState = getEmptyConfigState;
|
|
7
|
+
exports.getDescriptionForDataType = getDescriptionForDataType;
|
|
8
|
+
exports.getPlaceholderForDataType = getPlaceholderForDataType;
|
|
9
|
+
exports.getModalContainer = getModalContainer;
|
|
10
|
+
exports.IsEmptyStyle = IsEmptyStyle;
|
|
11
|
+
exports.IsNotEmptyStyle = IsNotEmptyStyle;
|
|
12
|
+
exports.getMessageTypeByStatusColour = getMessageTypeByStatusColour;
|
|
13
|
+
exports.getButtonToneByMessageType = getButtonToneByMessageType;
|
|
14
|
+
exports.getGlyphByMessageType = getGlyphByMessageType;
|
|
15
|
+
exports.getColorByMessageType = getColorByMessageType;
|
|
16
|
+
exports.getStyleForStatusColour = getStyleForStatusColour;
|
|
17
|
+
exports.getStyleForMessageType = getStyleForMessageType;
|
|
18
|
+
exports.getGlyphForStatusColour = getGlyphForStatusColour;
|
|
19
|
+
exports.getGlyphForMessageType = getGlyphForMessageType;
|
|
20
|
+
exports.getButtonToneForMessageType = getButtonToneForMessageType;
|
|
21
|
+
exports.getScheduleDescription = getScheduleDescription;
|
|
22
|
+
exports.getWeekDayByIndex = getWeekDayByIndex;
|
|
23
|
+
exports.getMessageTypeFromAdaptableAlerts = getMessageTypeFromAdaptableAlerts;
|
|
24
|
+
exports.getButtonColourForAdaptableAlerts = getButtonColourForAdaptableAlerts;
|
|
25
|
+
exports.getButtonTextColourForArrayandMessageType = getButtonTextColourForArrayandMessageType;
|
|
26
|
+
exports.getButtonTextColourForMessageType = getButtonTextColourForMessageType;
|
|
27
|
+
exports.getAdaptableToolPanelWidth = getAdaptableToolPanelWidth;
|
|
28
|
+
exports.getSimpleButtonPaddingWidth = getSimpleButtonPaddingWidth;
|
|
29
|
+
exports.getCSSVariableValue = getCSSVariableValue;
|
|
30
|
+
exports.setCSSVariableValue = setCSSVariableValue;
|
|
31
|
+
exports.isBrowserDocumentAvailable = isBrowserDocumentAvailable;
|
|
4
32
|
const tslib_1 = require("tslib");
|
|
5
33
|
const EditableConfigEntityState_1 = require("./Components/SharedProps/EditableConfigEntityState");
|
|
6
34
|
const Enums_1 = require("../AdaptableState/Common/Enums");
|
|
@@ -73,7 +101,6 @@ function getHexForName(name) {
|
|
|
73
101
|
return 'not found';
|
|
74
102
|
}
|
|
75
103
|
}
|
|
76
|
-
exports.getHexForName = getHexForName;
|
|
77
104
|
function getDefaultColors() {
|
|
78
105
|
return [
|
|
79
106
|
getHexForName(exports.BLACK),
|
|
@@ -98,7 +125,6 @@ function getDefaultColors() {
|
|
|
98
125
|
getHexForName(exports.ORANGE),
|
|
99
126
|
];
|
|
100
127
|
}
|
|
101
|
-
exports.getDefaultColors = getDefaultColors;
|
|
102
128
|
function getEmptyConfigState() {
|
|
103
129
|
return {
|
|
104
130
|
editedAdaptableObject: null,
|
|
@@ -106,7 +132,6 @@ function getEmptyConfigState() {
|
|
|
106
132
|
wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
|
|
107
133
|
};
|
|
108
134
|
}
|
|
109
|
-
exports.getEmptyConfigState = getEmptyConfigState;
|
|
110
135
|
function getDescriptionForDataType(dataType) {
|
|
111
136
|
switch (dataType) {
|
|
112
137
|
case 'text':
|
|
@@ -117,7 +142,6 @@ function getDescriptionForDataType(dataType) {
|
|
|
117
142
|
return 'date';
|
|
118
143
|
}
|
|
119
144
|
}
|
|
120
|
-
exports.getDescriptionForDataType = getDescriptionForDataType;
|
|
121
145
|
function getPlaceholderForDataType(dataType) {
|
|
122
146
|
switch (dataType) {
|
|
123
147
|
case 'text':
|
|
@@ -128,7 +152,6 @@ function getPlaceholderForDataType(dataType) {
|
|
|
128
152
|
return 'Enter Date';
|
|
129
153
|
}
|
|
130
154
|
}
|
|
131
|
-
exports.getPlaceholderForDataType = getPlaceholderForDataType;
|
|
132
155
|
function getModalContainer(adaptableOptions, document) {
|
|
133
156
|
let modalContainer;
|
|
134
157
|
if (adaptableOptions.containerOptions.modalContainer) {
|
|
@@ -149,11 +172,9 @@ function getModalContainer(adaptableOptions, document) {
|
|
|
149
172
|
}
|
|
150
173
|
return modalContainer;
|
|
151
174
|
}
|
|
152
|
-
exports.getModalContainer = getModalContainer;
|
|
153
175
|
function IsEmptyStyle(style) {
|
|
154
176
|
return !IsNotEmptyStyle(style);
|
|
155
177
|
}
|
|
156
|
-
exports.IsEmptyStyle = IsEmptyStyle;
|
|
157
178
|
function IsNotEmptyStyle(style) {
|
|
158
179
|
return (style.BackColor != null ||
|
|
159
180
|
style.ForeColor != null ||
|
|
@@ -163,7 +184,6 @@ function IsNotEmptyStyle(style) {
|
|
|
163
184
|
style.FontSize != null ||
|
|
164
185
|
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(style.ClassName));
|
|
165
186
|
}
|
|
166
|
-
exports.IsNotEmptyStyle = IsNotEmptyStyle;
|
|
167
187
|
function getMessageTypeByStatusColour(statusColour) {
|
|
168
188
|
switch (statusColour) {
|
|
169
189
|
case Enums_1.StatusColour.Error:
|
|
@@ -176,7 +196,6 @@ function getMessageTypeByStatusColour(statusColour) {
|
|
|
176
196
|
return 'Info';
|
|
177
197
|
}
|
|
178
198
|
}
|
|
179
|
-
exports.getMessageTypeByStatusColour = getMessageTypeByStatusColour;
|
|
180
199
|
function getButtonToneByMessageType(messageType) {
|
|
181
200
|
switch (messageType) {
|
|
182
201
|
case 'Info':
|
|
@@ -191,7 +210,6 @@ function getButtonToneByMessageType(messageType) {
|
|
|
191
210
|
return 'neutral';
|
|
192
211
|
}
|
|
193
212
|
}
|
|
194
|
-
exports.getButtonToneByMessageType = getButtonToneByMessageType;
|
|
195
213
|
function getGlyphByMessageType(messageType) {
|
|
196
214
|
switch (messageType) {
|
|
197
215
|
case 'Info':
|
|
@@ -204,7 +222,6 @@ function getGlyphByMessageType(messageType) {
|
|
|
204
222
|
return 'error';
|
|
205
223
|
}
|
|
206
224
|
}
|
|
207
|
-
exports.getGlyphByMessageType = getGlyphByMessageType;
|
|
208
225
|
function getColorByMessageType(messageType) {
|
|
209
226
|
switch (messageType) {
|
|
210
227
|
case 'Error':
|
|
@@ -217,7 +234,6 @@ function getColorByMessageType(messageType) {
|
|
|
217
234
|
return 'var(--ab-color-info)';
|
|
218
235
|
}
|
|
219
236
|
}
|
|
220
|
-
exports.getColorByMessageType = getColorByMessageType;
|
|
221
237
|
function getStyleForStatusColour(statusColour) {
|
|
222
238
|
let result;
|
|
223
239
|
switch (statusColour) {
|
|
@@ -247,7 +263,6 @@ function getStyleForStatusColour(statusColour) {
|
|
|
247
263
|
}
|
|
248
264
|
return result;
|
|
249
265
|
}
|
|
250
|
-
exports.getStyleForStatusColour = getStyleForStatusColour;
|
|
251
266
|
function getStyleForMessageType(messageType) {
|
|
252
267
|
let result;
|
|
253
268
|
switch (messageType) {
|
|
@@ -277,7 +292,6 @@ function getStyleForMessageType(messageType) {
|
|
|
277
292
|
}
|
|
278
293
|
return result;
|
|
279
294
|
}
|
|
280
|
-
exports.getStyleForMessageType = getStyleForMessageType;
|
|
281
295
|
function getGlyphForStatusColour(statusColour) {
|
|
282
296
|
switch (statusColour) {
|
|
283
297
|
case Enums_1.StatusColour.Info:
|
|
@@ -290,7 +304,6 @@ function getGlyphForStatusColour(statusColour) {
|
|
|
290
304
|
return 'error';
|
|
291
305
|
}
|
|
292
306
|
}
|
|
293
|
-
exports.getGlyphForStatusColour = getGlyphForStatusColour;
|
|
294
307
|
function getGlyphForMessageType(messageType) {
|
|
295
308
|
switch (messageType) {
|
|
296
309
|
case 'Info':
|
|
@@ -303,7 +316,6 @@ function getGlyphForMessageType(messageType) {
|
|
|
303
316
|
return 'error';
|
|
304
317
|
}
|
|
305
318
|
}
|
|
306
|
-
exports.getGlyphForMessageType = getGlyphForMessageType;
|
|
307
319
|
function getButtonToneForMessageType(messageType) {
|
|
308
320
|
switch (messageType) {
|
|
309
321
|
case 'Info':
|
|
@@ -316,7 +328,6 @@ function getButtonToneForMessageType(messageType) {
|
|
|
316
328
|
return 'success';
|
|
317
329
|
}
|
|
318
330
|
}
|
|
319
|
-
exports.getButtonToneForMessageType = getButtonToneForMessageType;
|
|
320
331
|
function getScheduleDescription(schedule) {
|
|
321
332
|
if (schedule == null) {
|
|
322
333
|
return '[No Schedule]';
|
|
@@ -346,7 +357,6 @@ function getScheduleDescription(schedule) {
|
|
|
346
357
|
}
|
|
347
358
|
return `${dateString} @ ${addLeadingZero(schedule.Hour)}:${addLeadingZero(schedule.Minute)}`;
|
|
348
359
|
}
|
|
349
|
-
exports.getScheduleDescription = getScheduleDescription;
|
|
350
360
|
function getShortenedDayString(dayOfWeek) {
|
|
351
361
|
switch (dayOfWeek) {
|
|
352
362
|
case 'Sunday':
|
|
@@ -383,7 +393,6 @@ function getWeekDayByIndex(dayOfWeek) {
|
|
|
383
393
|
return 'Saturday';
|
|
384
394
|
}
|
|
385
395
|
}
|
|
386
|
-
exports.getWeekDayByIndex = getWeekDayByIndex;
|
|
387
396
|
function addLeadingZero(item) {
|
|
388
397
|
item = item || 0;
|
|
389
398
|
if (item < 10) {
|
|
@@ -403,18 +412,15 @@ function getMessageTypeFromAdaptableAlerts(adaptableAlerts) {
|
|
|
403
412
|
}
|
|
404
413
|
return 'Info';
|
|
405
414
|
}
|
|
406
|
-
exports.getMessageTypeFromAdaptableAlerts = getMessageTypeFromAdaptableAlerts;
|
|
407
415
|
function getButtonColourForAdaptableAlerts(adaptableAlerts, messageTypeColor) {
|
|
408
416
|
return ArrayExtensions_1.default.IsNotNullOrEmpty(adaptableAlerts) ? messageTypeColor : 'primary';
|
|
409
417
|
}
|
|
410
|
-
exports.getButtonColourForAdaptableAlerts = getButtonColourForAdaptableAlerts;
|
|
411
418
|
function getButtonTextColourForArrayandMessageType(adaptableAlerts, messageType) {
|
|
412
419
|
if (ArrayExtensions_1.default.IsNullOrEmpty(adaptableAlerts)) {
|
|
413
420
|
return 'text-on-primary';
|
|
414
421
|
}
|
|
415
422
|
return this.getButtonTextColourForMessageType(messageType);
|
|
416
423
|
}
|
|
417
|
-
exports.getButtonTextColourForArrayandMessageType = getButtonTextColourForArrayandMessageType;
|
|
418
424
|
function getButtonTextColourForMessageType(messageType) {
|
|
419
425
|
switch (messageType) {
|
|
420
426
|
case 'Info':
|
|
@@ -427,7 +433,6 @@ function getButtonTextColourForMessageType(messageType) {
|
|
|
427
433
|
return 'var( --ab-color-text-on-error)';
|
|
428
434
|
}
|
|
429
435
|
}
|
|
430
|
-
exports.getButtonTextColourForMessageType = getButtonTextColourForMessageType;
|
|
431
436
|
function getNumericCSSVariableValue(stringValue, defaultValue) {
|
|
432
437
|
const numericValue = typeof stringValue === 'string' ? +stringValue.match(/\d/g)?.join('') : stringValue;
|
|
433
438
|
return typeof numericValue === 'number' ? numericValue : defaultValue;
|
|
@@ -435,11 +440,9 @@ function getNumericCSSVariableValue(stringValue, defaultValue) {
|
|
|
435
440
|
function getAdaptableToolPanelWidth() {
|
|
436
441
|
return getNumericCSSVariableValue(getCSSVariableValue('--ab-cmp-toolpanel__width'), 200);
|
|
437
442
|
}
|
|
438
|
-
exports.getAdaptableToolPanelWidth = getAdaptableToolPanelWidth;
|
|
439
443
|
function getSimpleButtonPaddingWidth() {
|
|
440
444
|
return getNumericCSSVariableValue(getCSSVariableValue('--ab-space-1'), 4);
|
|
441
445
|
}
|
|
442
|
-
exports.getSimpleButtonPaddingWidth = getSimpleButtonPaddingWidth;
|
|
443
446
|
function getCSSVariableValue(cssVariable) {
|
|
444
447
|
if (!isBrowserDocumentAvailable()) {
|
|
445
448
|
// possible during static/server-side rendering (should happen only in test cases)
|
|
@@ -447,7 +450,6 @@ function getCSSVariableValue(cssVariable) {
|
|
|
447
450
|
}
|
|
448
451
|
return getComputedStyle(document.documentElement).getPropertyValue(cssVariable);
|
|
449
452
|
}
|
|
450
|
-
exports.getCSSVariableValue = getCSSVariableValue;
|
|
451
453
|
function setCSSVariableValue(cssVariable, value) {
|
|
452
454
|
if (!isBrowserDocumentAvailable()) {
|
|
453
455
|
// possible during static/server-side rendering (should happen only in test cases)
|
|
@@ -455,11 +457,9 @@ function setCSSVariableValue(cssVariable, value) {
|
|
|
455
457
|
}
|
|
456
458
|
document.documentElement.style.setProperty(cssVariable, value);
|
|
457
459
|
}
|
|
458
|
-
exports.setCSSVariableValue = setCSSVariableValue;
|
|
459
460
|
function isBrowserDocumentAvailable() {
|
|
460
461
|
return typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
461
462
|
}
|
|
462
|
-
exports.isBrowserDocumentAvailable = isBrowserDocumentAvailable;
|
|
463
463
|
exports.UIHelper = {
|
|
464
464
|
getHexForName,
|
|
465
465
|
getDefaultColors,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AdaptableObject } from '../../../AdaptableState/Common/AdaptableObject';
|
|
3
2
|
import { AdaptableApi } from '../../../Api/AdaptableApi';
|
|
4
3
|
import { ModuleInfo } from '../../../Strategy/Interface/IModule';
|
|
@@ -35,6 +34,7 @@ export interface AdaptableObjectAdaptableWizardProps<View> extends AdaptableWiza
|
|
|
35
34
|
}
|
|
36
35
|
export interface AdaptableOnePageWizardProps<T extends AdaptableObject> {
|
|
37
36
|
moduleInfo?: ModuleInfo;
|
|
37
|
+
modal?: boolean;
|
|
38
38
|
data: T;
|
|
39
39
|
configEntities?: T[];
|
|
40
40
|
wizardStartIndex?: number;
|
|
@@ -6,18 +6,16 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const Tabs_1 = require("../../components/Tabs");
|
|
7
7
|
const TagValueSelector_1 = require("../Components/TagValueSelector");
|
|
8
8
|
const OnePageAdaptableWizard_1 = require("./OnePageAdaptableWizard");
|
|
9
|
-
const rebass_1 = require("rebass");
|
|
10
9
|
const ObjectTagsWizardSection = (props) => {
|
|
11
10
|
const { onChange } = props;
|
|
12
11
|
const { data } = (0, OnePageAdaptableWizard_1.useOnePageAdaptableWizardContext)();
|
|
13
|
-
return (React.createElement(Tabs_1.Tabs, {
|
|
12
|
+
return (React.createElement(Tabs_1.Tabs, { className: "twa:h-full" },
|
|
14
13
|
React.createElement(Tabs_1.Tabs.Tab, null, "Tags"),
|
|
15
14
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
16
15
|
React.createElement(TagValueSelector_1.TagValueSelector, { selectedTags: data.Tags, onChange: (selectedTags) => onChange({ ...data, Tags: selectedTags }) }))));
|
|
17
16
|
};
|
|
18
17
|
exports.ObjectTagsWizardSection = ObjectTagsWizardSection;
|
|
19
18
|
const renderObjectTagsSummary = (data) => {
|
|
20
|
-
return data.Tags?.length ?
|
|
21
|
-
React.createElement(TagValueSelector_1.TagValueOptionsTags, { tags: data.Tags }))) : null;
|
|
19
|
+
return data.Tags?.length ? React.createElement(TagValueSelector_1.TagValueOptionsTags, { tags: data.Tags }) : null;
|
|
22
20
|
};
|
|
23
21
|
exports.renderObjectTagsSummary = renderObjectTagsSummary;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
|
-
import { TextProps } from 'rebass';
|
|
4
3
|
import { AdaptableApi } from '../../types';
|
|
5
4
|
import { ModuleInfo } from '../../Strategy/Interface/IModule';
|
|
6
5
|
import { ExpressionEditorNamedQuery } from '../../components/ExpressionEditor/NamedQueryContext';
|
|
6
|
+
import { BoxProps } from '../../components/Flex';
|
|
7
7
|
export type OnePageAdaptableWizardContextType<T> = {
|
|
8
8
|
data: T;
|
|
9
9
|
sections: (OnePageAdaptableWizardSection<T> | '-')[];
|
|
@@ -11,9 +11,13 @@ export type OnePageAdaptableWizardContextType<T> = {
|
|
|
11
11
|
api: AdaptableApi;
|
|
12
12
|
namedQuery: ExpressionEditorNamedQuery;
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
type CmpProps = BoxProps & {
|
|
15
|
+
className?: string;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
};
|
|
18
|
+
export declare const SummaryTag: React.FunctionComponent<React.PropsWithChildren<CmpProps>>;
|
|
19
|
+
export declare const SummaryText: React.FunctionComponent<React.PropsWithChildren<CmpProps>>;
|
|
20
|
+
export declare const FormDescriptionText: React.FunctionComponent<React.PropsWithChildren<CmpProps>>;
|
|
17
21
|
export declare const OnePageAdaptableWizardContext: React.Context<OnePageAdaptableWizardContextType<any>>;
|
|
18
22
|
export declare function useOnePageAdaptableWizardContext<ENTITY>(): OnePageAdaptableWizardContextType<ENTITY>;
|
|
19
23
|
export interface OnePageAdaptableWizardSection<ENTITY> {
|
|
@@ -26,6 +30,7 @@ export interface OnePageAdaptableWizardSection<ENTITY> {
|
|
|
26
30
|
}
|
|
27
31
|
export interface OnePageAdaptableWizardProps<ENTITY> {
|
|
28
32
|
moduleInfo: ModuleInfo;
|
|
33
|
+
modal?: boolean;
|
|
29
34
|
data: ENTITY;
|
|
30
35
|
sections: (OnePageAdaptableWizardSection<ENTITY> | '-')[];
|
|
31
36
|
currentIndex?: number;
|
|
@@ -43,3 +48,4 @@ export interface OnePageAdaptableWizardProps<ENTITY> {
|
|
|
43
48
|
}
|
|
44
49
|
export declare const OnePageAdaptableWizard: <ENTITY extends unknown>(props: OnePageAdaptableWizardProps<ENTITY>) => React.JSX.Element;
|
|
45
50
|
export declare const OnePageWizardSummary: <ENTITY extends unknown>() => React.JSX.Element;
|
|
51
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnePageWizardSummary = exports.OnePageAdaptableWizard = exports.
|
|
3
|
+
exports.OnePageWizardSummary = exports.OnePageAdaptableWizard = exports.OnePageAdaptableWizardContext = exports.FormDescriptionText = exports.SummaryText = exports.SummaryTag = void 0;
|
|
4
|
+
exports.useOnePageAdaptableWizardContext = useOnePageAdaptableWizardContext;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const React = tslib_1.__importStar(require("react"));
|
|
6
7
|
const react_1 = require("react");
|
|
7
8
|
const react_redux_1 = require("react-redux");
|
|
8
|
-
const rebass_1 = require("rebass");
|
|
9
9
|
const NamedQueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/NamedQueryRedux"));
|
|
10
10
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../components/SimpleButton"));
|
|
11
11
|
const AdaptableContext_1 = require("../AdaptableContext");
|
|
@@ -13,11 +13,13 @@ const Tabs_1 = require("../../components/Tabs");
|
|
|
13
13
|
const NamedQueryContext_1 = require("../../components/ExpressionEditor/NamedQueryContext");
|
|
14
14
|
const OnePageWizards_1 = require("./OnePageWizards");
|
|
15
15
|
const kebabCase_1 = tslib_1.__importDefault(require("lodash/kebabCase"));
|
|
16
|
-
const
|
|
16
|
+
const Flex_1 = require("../../components/Flex");
|
|
17
|
+
const twMerge_1 = require("../../twMerge");
|
|
18
|
+
const SummaryTag = (props) => (React.createElement(Flex_1.Box, { ...props }));
|
|
17
19
|
exports.SummaryTag = SummaryTag;
|
|
18
|
-
const SummaryText = (props) => (React.createElement(
|
|
20
|
+
const SummaryText = (props) => (React.createElement(Flex_1.Box, { ...props, className: (0, twMerge_1.twMerge)('twa:text-2 twa:mb-3', props.className) }));
|
|
19
21
|
exports.SummaryText = SummaryText;
|
|
20
|
-
const FormDescriptionText = (props) => React.createElement(
|
|
22
|
+
const FormDescriptionText = (props) => React.createElement(Flex_1.Box, { ...props, className: (0, twMerge_1.twMerge)('twa:text-2 twa:mt-1', props.className) });
|
|
21
23
|
exports.FormDescriptionText = FormDescriptionText;
|
|
22
24
|
exports.OnePageAdaptableWizardContext = React.createContext({
|
|
23
25
|
data: null,
|
|
@@ -29,7 +31,6 @@ exports.OnePageAdaptableWizardContext = React.createContext({
|
|
|
29
31
|
function useOnePageAdaptableWizardContext() {
|
|
30
32
|
return React.useContext(exports.OnePageAdaptableWizardContext);
|
|
31
33
|
}
|
|
32
|
-
exports.useOnePageAdaptableWizardContext = useOnePageAdaptableWizardContext;
|
|
33
34
|
const OnePageAdaptableWizard = (props) => {
|
|
34
35
|
const { api } = (0, AdaptableContext_1.useAdaptable)();
|
|
35
36
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
@@ -86,11 +87,7 @@ const OnePageWizardSummary = () => {
|
|
|
86
87
|
const { sections, data, api, moduleInfo } = useOnePageAdaptableWizardContext();
|
|
87
88
|
const { setCurrentSection } = (0, OnePageWizards_1.useOnePageWizardContext)();
|
|
88
89
|
const [namedQuery] = (0, react_1.useState)(false);
|
|
89
|
-
const renderEdit = (index) => (React.createElement(SimpleButton_1.default, { px:
|
|
90
|
-
textDecoration: 'underline',
|
|
91
|
-
display: 'inline-block',
|
|
92
|
-
fontSize: 'var(--ab-font-size-2)',
|
|
93
|
-
}, onClick: () => {
|
|
90
|
+
const renderEdit = (index) => (React.createElement(SimpleButton_1.default, { className: "twa:px-1 twa:inline-block twa:text-2 twa:underline", variant: "text", onClick: () => {
|
|
94
91
|
setCurrentSection(index);
|
|
95
92
|
} }, "edit"));
|
|
96
93
|
const extraContext = {
|
|
@@ -100,7 +97,7 @@ const OnePageWizardSummary = () => {
|
|
|
100
97
|
moduleInfo: moduleInfo,
|
|
101
98
|
sections,
|
|
102
99
|
};
|
|
103
|
-
return (React.createElement(
|
|
100
|
+
return (React.createElement(Flex_1.Box, { className: "ab-OnePageWizardSummary twa:flex twa:flex-col twa:gap-2" }, sections
|
|
104
101
|
.map((section, index) => {
|
|
105
102
|
if (section === '-') {
|
|
106
103
|
return null;
|
|
@@ -111,12 +108,13 @@ const OnePageWizardSummary = () => {
|
|
|
111
108
|
if (section.isVisible && !section.isVisible(data, api, extraContext)) {
|
|
112
109
|
return null;
|
|
113
110
|
}
|
|
114
|
-
return (React.createElement(
|
|
115
|
-
React.createElement(Tabs_1.Tabs
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
111
|
+
return (React.createElement(React.Fragment, null,
|
|
112
|
+
React.createElement(Tabs_1.Tabs, { keyboardNavigation: false, key: index },
|
|
113
|
+
React.createElement(Tabs_1.Tabs.Tab, null,
|
|
114
|
+
section.title,
|
|
115
|
+
" ",
|
|
116
|
+
renderEdit(index)),
|
|
117
|
+
React.createElement(Tabs_1.Tabs.Content, null, section.renderSummary(data, api)))));
|
|
120
118
|
})
|
|
121
119
|
.filter(Boolean)));
|
|
122
120
|
};
|