@adaptabletools/adaptable 12.2.2 → 14.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +2 -2
- package/bundle.cjs.js +419 -143
- package/index.css +2 -2
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +3 -2
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -2
- package/src/AdaptableOptions/ActionOptions.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -5
- package/src/AdaptableOptions/AdaptablePlugin.d.ts +1 -1
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -1
- package/src/AdaptableOptions/ColumnOptions.d.ts +1 -1
- package/src/AdaptableOptions/EntitlementOptions.d.ts +15 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +1 -1
- package/src/Api/ChartingApi.d.ts +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/Api/Events/ActionRowSubmitted.d.ts +1 -1
- package/src/Api/Events/AdaptableReady.d.ts +1 -1
- package/src/Api/Events/GridDataChanged.d.ts +1 -1
- package/src/Api/ExportApi.d.ts +5 -1
- package/src/Api/FilterApi.d.ts +1 -1
- package/src/Api/FinanceApi.d.ts +1 -1
- package/src/Api/FormatColumnApi.d.ts +1 -1
- package/src/Api/FreeTextColumnApi.d.ts +1 -1
- package/src/Api/GridApi.d.ts +4 -3
- package/src/Api/Implementation/ActionApiImpl.js +5 -5
- package/src/Api/Implementation/AlertApiImpl.js +9 -9
- package/src/Api/Implementation/ApiBase.js +3 -3
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
- package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +1 -1
- package/src/Api/Implementation/ConfigApiImpl.js +2 -2
- package/src/Api/Implementation/DashboardApiImpl.js +2 -2
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -5
- package/src/Api/Implementation/ExportApiImpl.js +2 -2
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FilterApiImpl.js +6 -6
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +3 -3
- package/src/Api/Implementation/GridApiImpl.js +12 -12
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -5
- package/src/Api/Implementation/LayoutApiImpl.js +12 -12
- package/src/Api/Implementation/PredicateApiImpl.js +3 -3
- package/src/Api/Implementation/QueryApiImpl.js +6 -6
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -5
- package/src/Api/Implementation/ScopeApiImpl.js +3 -3
- package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +1 -1
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +9 -9
- package/src/Api/Implementation/TeamSharingApiImpl.js +10 -10
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +1 -1
- package/src/PredefinedConfig/ChartingState.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +17 -17
- package/src/PredefinedConfig/Common/CellDataChangedInfo.d.ts +1 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridCell.d.ts +1 -1
- package/src/PredefinedConfig/Selection/GridRow.d.ts +1 -1
- package/src/PredefinedConfig/Uuid.js +1 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +2 -2
- package/src/Redux/ActionsReducers/ChartingRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +2 -2
- package/src/Redux/ActionsReducers/CustomSortRedux.js +2 -2
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +2 -2
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +2 -2
- package/src/Redux/ActionsReducers/GridRedux.d.ts +1 -1
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +2 -2
- package/src/Redux/ActionsReducers/ScheduleRedux.js +10 -10
- package/src/Redux/ActionsReducers/ShortcutRedux.js +2 -2
- package/src/Redux/ActionsReducers/SystemRedux.js +2 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +8 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +9 -9
- package/src/Redux/Store/AdaptableStore.js +23 -23
- package/src/Strategy/AlertModule.js +6 -6
- package/src/Strategy/CalculatedColumnModule.js +4 -4
- package/src/Strategy/ConditionalStyleModule.js +8 -8
- package/src/Strategy/CustomSortModule.js +3 -3
- package/src/Strategy/DashboardModule.js +1 -1
- package/src/Strategy/DataChangeHistoryModule.js +1 -1
- package/src/Strategy/DataSetModule.js +2 -2
- package/src/Strategy/ExportModule.js +4 -4
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.js +7 -7
- package/src/Strategy/FormatColumnModule.js +8 -8
- package/src/Strategy/FreeTextColumnModule.js +1 -1
- package/src/Strategy/LayoutModule.js +2 -2
- package/src/Strategy/PlusMinusModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/ScheduleModule.js +2 -2
- package/src/Strategy/ShortcutModule.js +3 -3
- package/src/Strategy/StatusBarModule.d.ts +1 -1
- package/src/Strategy/TeamSharingModule.js +6 -6
- package/src/Strategy/ToolPanelModule.js +4 -4
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.js +2 -2
- package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +1 -1
- package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
- package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.js +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +3 -3
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +35 -35
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +18 -18
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +10 -10
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +48 -48
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +19 -19
- package/src/Utilities/Extensions/StringExtensions.js +1 -1
- package/src/Utilities/Helpers/AdaptableHelper.js +5 -5
- package/src/Utilities/Helpers/DateHelper.js +9 -9
- package/src/Utilities/Helpers/FormatHelper.js +2 -2
- package/src/Utilities/Helpers/Helper.js +3 -9
- package/src/Utilities/Helpers/LoggingHelper.js +1 -1
- package/src/Utilities/Helpers/StyleHelper.js +1 -1
- package/src/Utilities/Interface/Preview.d.ts +1 -1
- package/src/Utilities/ObjectFactory.d.ts +1 -1
- package/src/Utilities/ObjectFactory.js +30 -30
- package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +1 -1
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
- package/src/Utilities/Services/AlertService.js +3 -3
- package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -3
- package/src/Utilities/Services/DataService.js +1 -1
- package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +1 -1
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +3 -3
- package/src/Utilities/Services/QueryLanguageService.d.ts +1 -1
- package/src/Utilities/Services/QueryLanguageService.js +2 -2
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ReportService.js +7 -7
- package/src/Utilities/Services/RowEditService.d.ts +1 -1
- package/src/Utilities/Services/TeamSharingService.js +1 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptableView.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +10 -10
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +1 -1
- package/src/View/AdaptableWizardView/Wizard.js +6 -6
- package/src/View/AdaptableWizardView/helper.d.ts +1 -1
- package/src/View/AdaptableWizardView/helper.js +1 -1
- package/src/View/Alert/ActiveAlertsPanel.js +2 -2
- package/src/View/Alert/AlertEmptyView.js +1 -1
- package/src/View/Alert/AlertEntityRow.js +1 -1
- package/src/View/Alert/AlertStatusSubPanel.js +3 -3
- package/src/View/Alert/AlertViewPanel.js +2 -2
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -5
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
- package/src/View/Alert/Wizard/AlertWizard.js +4 -4
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
- package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
- package/src/View/BulkUpdate/BulkUpdateViewPanel.js +2 -2
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +4 -4
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +5 -5
- package/src/View/CellSummary/CellSummaryPopup.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
- package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/ColorPicker.js +2 -2
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +4 -4
- package/src/View/Components/AdaptableInput/index.js +1 -1
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -4
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -4
- package/src/View/Components/AdaptableObjectRow/index.js +1 -1
- package/src/View/Components/Buttons/ButtonBase/index.js +1 -1
- package/src/View/Components/Buttons/ButtonDelete.js +1 -1
- package/src/View/Components/ColumnSelector/index.js +1 -1
- package/src/View/Components/EntityRulesEditor/index.js +3 -3
- package/src/View/Components/ExpressionWizard.js +1 -1
- package/src/View/Components/ExternalRenderer.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +7 -7
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +4 -4
- package/src/View/Components/FilterForm/QuickFilterForm.js +13 -13
- package/src/View/Components/ListBox/DualListBoxEditor.js +10 -10
- package/src/View/Components/ModuleValueSelector/index.js +6 -6
- package/src/View/Components/NewScopeComponent.js +3 -3
- package/src/View/Components/Panels/PanelToolPanel/index.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.js +1 -1
- package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +8 -8
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +4 -4
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +3 -3
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +1 -1
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -2
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +1 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +1 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +5 -5
- package/src/View/Components/Popups/Utilities.js +5 -5
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +6 -6
- package/src/View/Components/RangesComponent.js +2 -2
- package/src/View/Components/Selectors/ColumnValueSelector.js +2 -2
- package/src/View/Components/TagValueSelector/index.js +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +2 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +6 -6
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -6
- package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelWrapper.d.ts +6 -4
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
- package/src/View/Components/ValueSelector/index.js +7 -7
- package/src/View/Components/WizardSummaryRow.js +1 -1
- package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +3 -3
- package/src/View/CustomSort/CustomSortSummary.js +1 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +9 -9
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +4 -4
- package/src/View/Dashboard/CustomDashboardButton.js +2 -2
- package/src/View/Dashboard/CustomToolbarWrapper.js +7 -7
- package/src/View/Dashboard/Dashboard.js +4 -4
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/DashboardViewPanel.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +7 -9
- package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +7 -7
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +9 -9
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +1 -1
- package/src/View/DataSet/DataSetSelector.js +1 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +1 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/DataSet/DataSetViewPanel.js +1 -1
- package/src/View/Export/ExportSelector.js +1 -1
- package/src/View/Export/ExportViewPanel.d.ts +2 -1
- package/src/View/Export/ExportViewPanel.js +14 -5
- package/src/View/Export/ReportExportDropdown.js +3 -3
- package/src/View/Export/Wizard/NewReportWizard.js +4 -4
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -3
- package/src/View/Filter/ActiveFiltersPanel.js +1 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterSummary.js +2 -2
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +3 -3
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +7 -7
- package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -5
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +6 -6
- package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -1
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -5
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +4 -4
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -2
- package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -4
- package/src/View/Layout/EditCurrentLayoutButton.js +1 -1
- package/src/View/Layout/LayoutCloneButton.js +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +1 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +1 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/LayoutViewPanel.js +2 -2
- package/src/View/Layout/SaveLayoutButton.js +3 -3
- package/src/View/Layout/Wizard/Components/ColumnLabels.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +5 -5
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +7 -7
- package/src/View/Layout/Wizard/sections/ColumnsSection.js +8 -8
- package/src/View/Layout/Wizard/sections/FilterSection.js +5 -5
- package/src/View/Layout/Wizard/sections/PivotColumnsSection.js +5 -5
- package/src/View/Layout/Wizard/sections/RowGroupingSection.js +5 -5
- package/src/View/Layout/Wizard/sections/SettingsSection.js +2 -2
- package/src/View/Layout/Wizard/sections/SortSection.js +6 -6
- package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +3 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +3 -3
- package/src/View/Query/EditCurrentQueryButton.js +1 -1
- package/src/View/Query/ExpandedQueryPopup.js +3 -3
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/QueryViewPanel.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
- package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
- package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +3 -3
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.js +2 -2
- package/src/View/QuickSearch/useQuickSearchDebounced.js +3 -3
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +2 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +4 -4
- package/src/View/SmartEdit/SmartEditPopup.js +1 -1
- package/src/View/SmartEdit/SmartEditViewPanel.js +1 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -2
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -2
- package/src/View/StateManagement/components/LoadButton.js +1 -1
- package/src/View/StateManagement/handleExportState.js +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +5 -5
- package/src/View/StatusBar/StatusBarPopup.js +2 -2
- package/src/View/SystemStatus/SystemStatusEntityRow.js +1 -1
- package/src/View/SystemStatus/SystemStatusPopup.js +1 -1
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -2
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.js +2 -2
- package/src/View/TeamSharing/SharedEntityDependencies.js +1 -1
- package/src/View/TeamSharing/SharedEntityObjectView.js +2 -2
- package/src/View/TeamSharing/TeamSharingApplyButton.js +1 -1
- package/src/View/Theme/ThemePopup.js +1 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +1 -1
- package/src/View/Theme/ThemeViewPanel.js +2 -2
- package/src/View/Wizard/AdaptableWizard.js +1 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
- package/src/View/Wizard/OnePageAdaptableWizard.js +5 -5
- package/src/View/Wizard/OnePageWizards.js +14 -12
- package/src/View/Wizard/useKeyboardNavigation.js +1 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +3 -3
- package/src/agGrid/Adaptable.d.ts +19 -11
- package/src/agGrid/Adaptable.js +157 -160
- package/src/agGrid/CheckboxRenderer.d.ts +1 -1
- package/src/agGrid/ColumnSetupInfo.d.ts +1 -1
- package/src/agGrid/FilterWrapper.js +1 -1
- package/src/agGrid/FloatingFilterWrapper.js +1 -1
- package/src/agGrid/GroupCellRenderer.d.ts +1 -1
- package/src/agGrid/GroupCellRenderer.js +2 -2
- package/src/agGrid/PercentBarRenderer.js +1 -1
- package/src/agGrid/agGridHelper.d.ts +1 -1
- package/src/agGrid/agGridHelper.js +12 -13
- package/src/agGrid/agGridMenuHelper.d.ts +1 -1
- package/src/agGrid/agGridMenuHelper.js +5 -5
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -1
- package/src/agGrid/createAgStatusPanelComponent.js +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +3 -3
- package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableDateEditor/index.js +5 -5
- package/src/agGrid/editors/AdaptableNumberEditor/InternalAdaptableNumberEditor.js +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -1
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +4 -4
- package/src/agGrid/weightedAverage.d.ts +1 -1
- package/src/agGrid/weightedAverage.js +3 -3
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/AdaptableIconComponent/index.js +14 -17
- package/src/components/CheckBox/index.js +3 -3
- package/src/components/CodeBlock/index.js +1 -1
- package/src/components/Dashboard/Dashboard.js +8 -8
- package/src/components/Dashboard/DashboardToolbar.js +1 -1
- package/src/components/Datepicker/Caption.js +7 -7
- package/src/components/Datepicker/CaptionLabel.js +4 -4
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Datepicker/index.js +10 -10
- package/src/components/Dialog/index.js +9 -9
- package/src/components/Dialog/useIsOpen.js +1 -1
- package/src/components/Dropdown/index.js +6 -6
- package/src/components/DropdownButton/index.js +7 -7
- package/src/components/DropdownButton/renderItem.js +1 -1
- package/src/components/DropdownButton/useExpanded.js +4 -4
- package/src/components/EllipsisContainer/index.js +8 -8
- package/src/components/EmptyContent/index.js +1 -1
- package/src/components/ErrorBox/index.js +1 -1
- package/src/components/ExpressionEditor/BaseEditorInput.js +20 -7
- package/src/components/ExpressionEditor/EditorButton.js +1 -1
- package/src/components/ExpressionEditor/EditorContext.js +2 -2
- package/src/components/ExpressionEditor/EditorInput.js +2 -2
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +9 -9
- package/src/components/ExpressionEditor/NamedQueryContext.js +2 -2
- package/src/components/ExpressionEditor/index.js +8 -8
- package/src/components/FieldWrap/index.js +1 -1
- package/src/components/FileDroppable/index.js +4 -4
- package/src/components/FormLayout/index.js +4 -4
- package/src/components/HelpBlock/index.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/Input/index.js +1 -1
- package/src/components/List/GridList/index.js +1 -1
- package/src/components/List/ListGroup/index.js +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.js +2 -2
- package/src/components/Modal/Backdrop.js +5 -5
- package/src/components/Modal/index.js +5 -5
- package/src/components/NotifyResize/index.js +1 -1
- package/src/components/OverlayTrigger/Overlay.js +15 -15
- package/src/components/OverlayTrigger/getOverlayStyle.js +1 -1
- package/src/components/OverlayTrigger/index.js +24 -24
- package/src/components/OverlayTrigger/useAgGridClassName.js +2 -2
- package/src/components/Panel/index.js +3 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +5 -5
- package/src/components/Radio/index.js +3 -3
- package/src/components/ResizeObserver/index.js +10 -10
- package/src/components/SelectableList/index.js +4 -4
- package/src/components/SimpleButton/index.js +3 -3
- package/src/components/StylePreview.js +1 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/Tabs/index.js +6 -7
- package/src/components/Tag/Tag.js +1 -1
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/Textarea/index.js +1 -1
- package/src/components/ToggleButton/index.js +1 -1
- package/src/components/WindowModal/WindowModal.js +4 -4
- package/src/components/WindowModal/useStacking.js +1 -1
- package/src/components/WizardPanel/index.js +1 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +1 -1
- package/src/components/utils/batchUpdate.js +1 -1
- package/src/components/utils/useAutoFocus.js +2 -2
- package/src/components/utils/useContainerScrollObserver/index.js +7 -7
- package/src/components/utils/useDraggable.js +5 -5
- package/src/components/utils/useLatest.js +2 -2
- package/src/components/utils/usePrevious.js +2 -2
- package/src/components/utils/usePropState.js +1 -1
- package/src/components/utils/useProperty.js +2 -2
- package/src/components/utils/useRerender.js +2 -2
- package/src/components/utils/useSelectionRange.js +3 -3
- package/src/components/utils/uuid.js +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +18 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.js +1 -1
- package/src/types.d.ts +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -9,16 +9,16 @@ const SimpleButton_1 = tslib_1.__importDefault(require("../SimpleButton"));
|
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const react_day_picker_1 = require("react-day-picker");
|
|
11
11
|
function CaptionLabel(props) {
|
|
12
|
-
const { locale, classNames, styles } = react_day_picker_1.useDayPicker();
|
|
12
|
+
const { locale, classNames, styles } = (0, react_day_picker_1.useDayPicker)();
|
|
13
13
|
const { onPreviousYearClick, onNextYearClick, onNextMonthClick, onPreviousMonthClick } = props;
|
|
14
|
-
const captionStyles = react_1.useMemo(() => (Object.assign(Object.assign({}, styles.caption_label), { width: '100%' })), []);
|
|
14
|
+
const captionStyles = (0, react_1.useMemo)(() => (Object.assign(Object.assign({}, styles.caption_label), { width: '100%' })), []);
|
|
15
15
|
return (React.createElement("div", { key: "caption", className: classNames.caption_label, style: captionStyles, "aria-live": "polite", "aria-atomic": "true" },
|
|
16
16
|
React.createElement(SimpleButton_1.default, { padding: 1, mr: 1, variant: "text", icon: "arrow-left", onClick: onPreviousMonthClick }),
|
|
17
|
-
React.createElement(rebass_1.Flex, { justifyContent: "center", style: { minWidth: 80, flex: 2 } }, format_1.default(props.displayMonth, 'LLLL', { locale })),
|
|
17
|
+
React.createElement(rebass_1.Flex, { justifyContent: "center", style: { minWidth: 80, flex: 2 } }, (0, format_1.default)(props.displayMonth, 'LLLL', { locale })),
|
|
18
18
|
React.createElement(SimpleButton_1.default, { padding: 1, ml: 1, variant: "text", icon: "arrow-right", onClick: onNextMonthClick }),
|
|
19
19
|
React.createElement(SimpleButton_1.default, { padding: 1, mr: 1, variant: "text", icon: "arrow-left", onClick: onPreviousYearClick }),
|
|
20
20
|
React.createElement(rebass_1.Flex, { justifyContent: "center", style: { minWidth: 40, flex: 1 } },
|
|
21
|
-
format_1.default(props.displayMonth, 'y', { locale }),
|
|
21
|
+
(0, format_1.default)(props.displayMonth, 'y', { locale }),
|
|
22
22
|
' '),
|
|
23
23
|
React.createElement(SimpleButton_1.default, { padding: 1, ml: 1, variant: "text", icon: "arrow-right", onClick: onNextYearClick })));
|
|
24
24
|
}
|
|
@@ -15,4 +15,4 @@ export declare type DatepickerProps = Omit<BoxProps, 'value' | 'onChange' | 'def
|
|
|
15
15
|
showWeekNumber?: boolean;
|
|
16
16
|
showOutsideDays?: boolean;
|
|
17
17
|
};
|
|
18
|
-
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "max" | "required" | "
|
|
18
|
+
export declare const Datepicker: React.ForwardRefExoticComponent<Pick<DatepickerProps, "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "start" | "open" | "name" | "alignSelf" | "backgroundColor" | "color" | "content" | "flex" | "fontSize" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "opacity" | "order" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "acceptCharset" | "action" | "method" | "noValidate" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "async" | "disabled" | "multiple" | "size" | "manifest" | "m" | "wrap" | "accept" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "min" | "minLength" | "muted" | "optimum" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "bg" | "css" | "showClearButton" | "onHide" | "showOutsideDays" | "showWeekNumber" | "datepickerButtons" | "dateProps"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -37,23 +37,23 @@ const DatepickerOverlay = ({ onHide, children, onKeyDown, }) => {
|
|
|
37
37
|
exports.Datepicker = React.forwardRef((props, ref) => {
|
|
38
38
|
var _a;
|
|
39
39
|
const { dateProps, required, disabled, style, placeholder, showWeekNumber, showOutsideDays, value: _, defaultValue: __, onChange: ___, showClearButton: showClearButtonFromProps, datepickerButtons } = props, boxProps = tslib_1.__rest(props, ["dateProps", "required", "disabled", "style", "placeholder", "showWeekNumber", "showOutsideDays", "value", "defaultValue", "onChange", "showClearButton", "datepickerButtons"]);
|
|
40
|
-
const datepickerContext = DatepickerContext_1.useDatepickerContext();
|
|
40
|
+
const datepickerContext = (0, DatepickerContext_1.useDatepickerContext)();
|
|
41
41
|
const showClearButton = (showClearButtonFromProps !== null && showClearButtonFromProps !== void 0 ? showClearButtonFromProps : datepickerContext.showClearButton) === false ? false : true;
|
|
42
|
-
let [value, setValue] = useProperty_1.default(props, 'value', undefined, {
|
|
42
|
+
let [value, setValue] = (0, useProperty_1.default)(props, 'value', undefined, {
|
|
43
43
|
onChange: props.onChange,
|
|
44
44
|
});
|
|
45
45
|
const useInputOptions = Object.assign(Object.assign({}, dateProps), { required });
|
|
46
46
|
if (value && value instanceof Date && !isNaN(+value)) {
|
|
47
47
|
useInputOptions.defaultSelected = value;
|
|
48
48
|
}
|
|
49
|
-
const [month, setMonth] = react_1.useState(value !== null && value !== void 0 ? value : new Date());
|
|
50
|
-
const { dayPickerProps, setSelected } = react_day_picker_1.useInput(useInputOptions);
|
|
49
|
+
const [month, setMonth] = (0, react_1.useState)(value !== null && value !== void 0 ? value : new Date());
|
|
50
|
+
const { dayPickerProps, setSelected } = (0, react_day_picker_1.useInput)(useInputOptions);
|
|
51
51
|
const updateValue = (value) => {
|
|
52
52
|
setValue(value);
|
|
53
53
|
setSelected(value);
|
|
54
54
|
};
|
|
55
|
-
const inputValue = (_a = FormatHelper_1.DateFormatter(value, { Pattern: dateProps.format })) !== null && _a !== void 0 ? _a : '';
|
|
56
|
-
const [visible, doSetVisible] = react_1.useState(false);
|
|
55
|
+
const inputValue = (_a = (0, FormatHelper_1.DateFormatter)(value, { Pattern: dateProps.format })) !== null && _a !== void 0 ? _a : '';
|
|
56
|
+
const [visible, doSetVisible] = (0, react_1.useState)(false);
|
|
57
57
|
const setVisible = (visible, keyboardEventKey) => {
|
|
58
58
|
var _a, _b;
|
|
59
59
|
doSetVisible(visible);
|
|
@@ -73,10 +73,10 @@ exports.Datepicker = React.forwardRef((props, ref) => {
|
|
|
73
73
|
clear: renderButton('Clear', () => clearValue()),
|
|
74
74
|
close: renderButton('Close', () => setVisible(false)),
|
|
75
75
|
today: renderButton('Today', () => updateValue(todayDate)),
|
|
76
|
-
tomorrow: renderButton('Tomorrow', () => updateValue(addDays_1.default(todayDate, 1))),
|
|
77
|
-
yesterday: renderButton('Yesterday', () => updateValue(addDays_1.default(todayDate, -1))),
|
|
78
|
-
nextWorkday: renderButton('Next Workday', () => updateValue(addBusinessDays_1.default(todayDate, 1))),
|
|
79
|
-
prevWorkday: renderButton('Prev Workday', () => updateValue(addBusinessDays_1.default(todayDate, -1))),
|
|
76
|
+
tomorrow: renderButton('Tomorrow', () => updateValue((0, addDays_1.default)(todayDate, 1))),
|
|
77
|
+
yesterday: renderButton('Yesterday', () => updateValue((0, addDays_1.default)(todayDate, -1))),
|
|
78
|
+
nextWorkday: renderButton('Next Workday', () => updateValue((0, addBusinessDays_1.default)(todayDate, 1))),
|
|
79
|
+
prevWorkday: renderButton('Prev Workday', () => updateValue((0, addBusinessDays_1.default)(todayDate, -1))),
|
|
80
80
|
'-': React.createElement("div", { style: { flex: '1 1 1%' } }),
|
|
81
81
|
'|': React.createElement("hr", { style: { width: '100%', height: 0, margin: 0, border: 'none' } }),
|
|
82
82
|
};
|
|
@@ -18,9 +18,9 @@ exports.Dialog = React.forwardRef((props, ref) => {
|
|
|
18
18
|
let { modal, fixed, focusOnBrowserVisible = false, autoFocus = true, className, children, modalProps, dismissOnClickOutside = false, onDismiss, windowModal, windowModalProps } = props, boxProps = tslib_1.__rest(props, ["modal", "fixed", "focusOnBrowserVisible", "autoFocus", "className", "children", "modalProps", "dismissOnClickOutside", "onDismiss", "windowModal", "windowModalProps"]);
|
|
19
19
|
modal = props.modal === undefined ? true : props.modal;
|
|
20
20
|
fixed = props.fixed === undefined ? true : props.fixed;
|
|
21
|
-
const [isOpen, setIsOpen] = useIsOpen_1.default(props);
|
|
22
|
-
const boxRef = react_1.useRef(null);
|
|
23
|
-
useAutoFocus_1.default({
|
|
21
|
+
const [isOpen, setIsOpen] = (0, useIsOpen_1.default)(props);
|
|
22
|
+
const boxRef = (0, react_1.useRef)(null);
|
|
23
|
+
(0, useAutoFocus_1.default)({
|
|
24
24
|
isOpen,
|
|
25
25
|
autoFocus: props.autoFocus,
|
|
26
26
|
previous: ({ autoFocus }) => autoFocus && isOpen,
|
|
@@ -31,7 +31,7 @@ exports.Dialog = React.forwardRef((props, ref) => {
|
|
|
31
31
|
if (props.onKeyDown) {
|
|
32
32
|
props.onKeyDown(e);
|
|
33
33
|
}
|
|
34
|
-
captureTabNavigation_1.default(boxRef.current, e);
|
|
34
|
+
(0, captureTabNavigation_1.default)(boxRef.current, e);
|
|
35
35
|
if (e.key === 'Escape') {
|
|
36
36
|
if (e.nativeEvent.anotherModalClosed) {
|
|
37
37
|
return;
|
|
@@ -48,9 +48,9 @@ exports.Dialog = React.forwardRef((props, ref) => {
|
|
|
48
48
|
}
|
|
49
49
|
setIsOpen(false);
|
|
50
50
|
}
|
|
51
|
-
captureTabNavigation_1.default(boxRef.current, event);
|
|
51
|
+
(0, captureTabNavigation_1.default)(boxRef.current, event);
|
|
52
52
|
};
|
|
53
|
-
react_1.useEffect(() => {
|
|
53
|
+
(0, react_1.useEffect)(() => {
|
|
54
54
|
if (dismissOnClickOutside && isOpen) {
|
|
55
55
|
const dismissDialog = (e) => {
|
|
56
56
|
requestAnimationFrame(() => {
|
|
@@ -72,14 +72,14 @@ exports.Dialog = React.forwardRef((props, ref) => {
|
|
|
72
72
|
const bringToFront = React.useCallback(() => {
|
|
73
73
|
if (boxRef.current &&
|
|
74
74
|
boxRef.current.focus &&
|
|
75
|
-
(!document.activeElement || !contains_1.default(boxRef.current, document.activeElement))) {
|
|
75
|
+
(!document.activeElement || !(0, contains_1.default)(boxRef.current, document.activeElement))) {
|
|
76
76
|
boxRef.current.focus();
|
|
77
77
|
}
|
|
78
78
|
}, [boxRef]);
|
|
79
79
|
React.useImperativeHandle(ref, () => ({
|
|
80
80
|
bringToFront,
|
|
81
81
|
}));
|
|
82
|
-
react_1.useEffect(() => {
|
|
82
|
+
(0, react_1.useEffect)(() => {
|
|
83
83
|
let listener;
|
|
84
84
|
if (focusOnBrowserVisible) {
|
|
85
85
|
listener = () => {
|
|
@@ -110,7 +110,7 @@ exports.Dialog = React.forwardRef((props, ref) => {
|
|
|
110
110
|
if (boxProps && boxProps.onClick) {
|
|
111
111
|
boxProps.onClick(e);
|
|
112
112
|
}
|
|
113
|
-
}, onKeyDown: onKeyDown, className: join_1.default(baseClassName, modal ? `${baseClassName}--modal` : `${baseClassName}--not-modal`, className), ref: boxRef }),
|
|
113
|
+
}, onKeyDown: onKeyDown, className: (0, join_1.default)(baseClassName, modal ? `${baseClassName}--modal` : `${baseClassName}--not-modal`, className), ref: boxRef }),
|
|
114
114
|
children,
|
|
115
115
|
closeButton));
|
|
116
116
|
const content = fixed ? (React.createElement("div", { onClick: setPreventDismissFlag, className: `${baseClassName}-fixed-wrapper` }, box)) : (box);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
|
5
5
|
exports.default = (props) => {
|
|
6
|
-
return useProperty_1.default(props, 'isOpen', true, {
|
|
6
|
+
return (0, useProperty_1.default)(props, 'isOpen', true, {
|
|
7
7
|
onChange: (isOpen) => {
|
|
8
8
|
if (!isOpen && props.onDismiss) {
|
|
9
9
|
props.onDismiss();
|
|
@@ -14,11 +14,11 @@ const Dropdown = (props) => {
|
|
|
14
14
|
if (showClearButton !== false) {
|
|
15
15
|
showClearButton = true;
|
|
16
16
|
}
|
|
17
|
-
let [value, setValue] = useProperty_1.default(props, 'value', undefined, {
|
|
17
|
+
let [value, setValue] = (0, useProperty_1.default)(props, 'value', undefined, {
|
|
18
18
|
onChange: props.onChange,
|
|
19
19
|
});
|
|
20
20
|
let selectedOption = null;
|
|
21
|
-
let [lazyOptions, setLazyOptions] = react_1.useState([]);
|
|
21
|
+
let [lazyOptions, setLazyOptions] = (0, react_1.useState)([]);
|
|
22
22
|
let onMouseDown = () => {
|
|
23
23
|
if (onExpand) {
|
|
24
24
|
onExpand();
|
|
@@ -56,9 +56,9 @@ const Dropdown = (props) => {
|
|
|
56
56
|
const onChange = (option, e) => {
|
|
57
57
|
setValue(option ? option.value : option, e, option);
|
|
58
58
|
};
|
|
59
|
-
const selectRef = react_1.useRef(null);
|
|
60
|
-
const domRef = react_1.useRef(null);
|
|
61
|
-
const [focused, setFocused] = react_1.useState(false);
|
|
59
|
+
const selectRef = (0, react_1.useRef)(null);
|
|
60
|
+
const domRef = (0, react_1.useRef)(null);
|
|
61
|
+
const [focused, setFocused] = (0, react_1.useState)(false);
|
|
62
62
|
const onFocus = (e) => {
|
|
63
63
|
if (e.target === selectRef.current) {
|
|
64
64
|
setFocused(true);
|
|
@@ -83,7 +83,7 @@ const Dropdown = (props) => {
|
|
|
83
83
|
e.preventDefault();
|
|
84
84
|
onChange(null, e);
|
|
85
85
|
} })));
|
|
86
|
-
return (React.createElement(rebass_1.Flex, Object.assign({ ref: domRef, flexDirection: "row", alignItems: "center" }, boxProps, { className: join_1.default(props.className, baseClassName, !selectedOption ? `${baseClassName}--empty` : `${baseClassName}--not-empty`, focused ? `${baseClassName}--focused` : `${baseClassName}--not-focused`, disabled ? `${baseClassName}--disabled` : null), style: style, tabIndex: focused ? -1 : props.tabIndex || 0, onFocus: onFocus, onBlur: onBlur }),
|
|
86
|
+
return (React.createElement(rebass_1.Flex, Object.assign({ ref: domRef, flexDirection: "row", alignItems: "center" }, boxProps, { className: (0, join_1.default)(props.className, baseClassName, !selectedOption ? `${baseClassName}--empty` : `${baseClassName}--not-empty`, focused ? `${baseClassName}--focused` : `${baseClassName}--not-focused`, disabled ? `${baseClassName}--disabled` : null), style: style, tabIndex: focused ? -1 : props.tabIndex || 0, onFocus: onFocus, onBlur: onBlur }),
|
|
87
87
|
React.createElement("div", { style: { display: 'inline-block' }, className: `${baseClassName}__text` },
|
|
88
88
|
selectedText,
|
|
89
89
|
React.createElement(Arrows_1.default, null)),
|
|
@@ -34,7 +34,7 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
34
34
|
}
|
|
35
35
|
const disabled = isItemDisabled(item);
|
|
36
36
|
const itemStyle = Object.assign(Object.assign({}, defaultListItemStyle), listItemStyle);
|
|
37
|
-
const itemClassName = join_1.default(`${baseClassName}__list-item`, item.clickable === false || disabled
|
|
37
|
+
const itemClassName = (0, join_1.default)(`${baseClassName}__list-item`, item.clickable === false || disabled
|
|
38
38
|
? `${baseClassName}__list-item--not-clickable`
|
|
39
39
|
: `${baseClassName}__list-item--clickable`, disabled ? `${baseClassName}__list-item--disabled` : '', listItemClassName);
|
|
40
40
|
const getItemHandler = (eventName) => {
|
|
@@ -63,7 +63,7 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
63
63
|
if (item['label']) {
|
|
64
64
|
domProps['data-name'] = item['label'];
|
|
65
65
|
}
|
|
66
|
-
return renderItem_1.default({
|
|
66
|
+
return (0, renderItem_1.default)({
|
|
67
67
|
index,
|
|
68
68
|
idProperty,
|
|
69
69
|
onItemClick: getItemHandler('onClick'),
|
|
@@ -78,14 +78,14 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
78
78
|
React.createElement("tbody", null, content)));
|
|
79
79
|
}
|
|
80
80
|
const dropdownButtonClassName = props.className;
|
|
81
|
-
const className = join_1.default(props.className, baseClassName);
|
|
81
|
+
const className = (0, join_1.default)(props.className, baseClassName);
|
|
82
82
|
//const
|
|
83
|
-
const positionerRef = react_1.useRef(null);
|
|
84
|
-
const { expanded, toggle, setExpanded, positionInfo } = useExpanded_1.default(props, positionerRef);
|
|
83
|
+
const positionerRef = (0, react_1.useRef)(null);
|
|
84
|
+
const { expanded, toggle, setExpanded, positionInfo } = (0, useExpanded_1.default)(props, positionerRef);
|
|
85
85
|
const { maxHeight: maxListHeight, maxWidth: maxListWidth } = positionInfo;
|
|
86
86
|
listStyle = Object.assign({ minWidth: typeof maxListWidth === 'number' ? Math.min(listMinWidth, maxListWidth) : listMinWidth, maxHeight: maxListHeight, maxWidth: maxListWidth }, listStyle);
|
|
87
87
|
let icon = expanded
|
|
88
|
-
? react_1.cloneElement(exports.DROPDOWN_ICON, {
|
|
88
|
+
? (0, react_1.cloneElement)(exports.DROPDOWN_ICON, {
|
|
89
89
|
style: Object.assign(Object.assign({}, exports.DROPDOWN_ICON.props.style), { transform: 'rotate(180deg) translate3d(0px, -2px, 0px)' }),
|
|
90
90
|
})
|
|
91
91
|
: exports.DROPDOWN_ICON;
|
|
@@ -102,7 +102,7 @@ const DropdownButton = React.forwardRef((props, ref) => {
|
|
|
102
102
|
spacer,
|
|
103
103
|
hasClearButton ? clearButton : null,
|
|
104
104
|
icon));
|
|
105
|
-
const buttonRef = react_1.useRef(null);
|
|
105
|
+
const buttonRef = (0, react_1.useRef)(null);
|
|
106
106
|
return (React.createElement(OverlayTrigger_1.default, Object.assign({ visible: expanded, constrainTo: constrainTo, anchor: "vertical", targetOffset: listOffset, render: () => {
|
|
107
107
|
return (React.createElement("div", { "data-name": `${dropdownButtonClassName}`, style: listStyle, className: `${baseClassName}__list` }, content));
|
|
108
108
|
} }, overlayProps, { target: domProps.tooltip ? (node) => node.previousSibling : undefined }),
|
|
@@ -5,7 +5,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const isPlainObject_1 = tslib_1.__importDefault(require("lodash/isPlainObject"));
|
|
6
6
|
exports.default = ({ domProps, item, onItemClick, index, columns, className, idProperty, style, }) => {
|
|
7
7
|
const key = item[idProperty] || index;
|
|
8
|
-
if (!isPlainObject_1.default(item)) {
|
|
8
|
+
if (!(0, isPlainObject_1.default)(item)) {
|
|
9
9
|
return (React.createElement("tr", Object.assign({ onClick: onItemClick, key: key, className: className }, domProps),
|
|
10
10
|
React.createElement("td", { colSpan: columns.length, style: style }, item)));
|
|
11
11
|
}
|
|
@@ -6,7 +6,7 @@ const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
|
|
6
6
|
const getAvailableSizeInfo_1 = tslib_1.__importDefault(require("../utils/getAvailableSizeInfo"));
|
|
7
7
|
const OverlayTrigger_1 = require("../OverlayTrigger");
|
|
8
8
|
exports.default = (props, positionerRef) => {
|
|
9
|
-
const positionInfoRef = react_1.useRef({
|
|
9
|
+
const positionInfoRef = (0, react_1.useRef)({
|
|
10
10
|
maxHeight: '50vh',
|
|
11
11
|
maxWidth: '50vw',
|
|
12
12
|
verticalPosition: 'bottom',
|
|
@@ -14,13 +14,13 @@ exports.default = (props, positionerRef) => {
|
|
|
14
14
|
});
|
|
15
15
|
const updatePosition = () => {
|
|
16
16
|
const positionRect = positionerRef.current.getBoundingClientRect();
|
|
17
|
-
positionInfoRef.current = getAvailableSizeInfo_1.default({
|
|
18
|
-
constrainRect: OverlayTrigger_1.getConstrainRect(positionerRef.current, props.constrainTo),
|
|
17
|
+
positionInfoRef.current = (0, getAvailableSizeInfo_1.default)({
|
|
18
|
+
constrainRect: (0, OverlayTrigger_1.getConstrainRect)(positionerRef.current, props.constrainTo),
|
|
19
19
|
targetRect: positionRect,
|
|
20
20
|
maxSizeOffset: 30,
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
|
-
const [expanded, doSetExpanded] = useProperty_1.default(props, 'expanded', false, {
|
|
23
|
+
const [expanded, doSetExpanded] = (0, useProperty_1.default)(props, 'expanded', false, {
|
|
24
24
|
onChange: (expanded) => {
|
|
25
25
|
if (expanded) {
|
|
26
26
|
if (props.onExpand) {
|
|
@@ -9,7 +9,7 @@ const useLatest_1 = require("../utils/useLatest");
|
|
|
9
9
|
const usePrevious_1 = tslib_1.__importDefault(require("../utils/usePrevious"));
|
|
10
10
|
const Container = ({ children, index, hidden, observerRef, }) => {
|
|
11
11
|
var _a;
|
|
12
|
-
const [mounted, setMounted] = react_1.useState(false);
|
|
12
|
+
const [mounted, setMounted] = (0, react_1.useState)(false);
|
|
13
13
|
React.useEffect(() => {
|
|
14
14
|
const timeoutId = setTimeout(() => {
|
|
15
15
|
// we wait for a bit, so intersection observer
|
|
@@ -19,7 +19,7 @@ const Container = ({ children, index, hidden, observerRef, }) => {
|
|
|
19
19
|
}, 50);
|
|
20
20
|
return () => clearTimeout(timeoutId);
|
|
21
21
|
}, []);
|
|
22
|
-
const domRef = react_1.useRef(null);
|
|
22
|
+
const domRef = (0, react_1.useRef)(null);
|
|
23
23
|
const onMount = (node) => {
|
|
24
24
|
var _a, _b;
|
|
25
25
|
if (node) {
|
|
@@ -46,12 +46,12 @@ const Container = ({ children, index, hidden, observerRef, }) => {
|
|
|
46
46
|
};
|
|
47
47
|
const EllipsisContainer = (props) => {
|
|
48
48
|
const { allowWrap, count, direction, renderItem, renderEllipsis } = props, boxProps = tslib_1.__rest(props, ["allowWrap", "count", "direction", "renderItem", "renderEllipsis"]);
|
|
49
|
-
const domRef = react_1.useRef(null);
|
|
50
|
-
const observerRef = react_1.useRef(null);
|
|
49
|
+
const domRef = (0, react_1.useRef)(null);
|
|
50
|
+
const observerRef = (0, react_1.useRef)(null);
|
|
51
51
|
const [minNotVisibleIndex, setMinNotVisibleIndex] = React.useState(props.count);
|
|
52
|
-
const [visibleSet] = react_1.useState(() => new Set());
|
|
53
|
-
const [invisibleSet] = react_1.useState(() => new Set());
|
|
54
|
-
const getCount = useLatest_1.useLatest(props.count);
|
|
52
|
+
const [visibleSet] = (0, react_1.useState)(() => new Set());
|
|
53
|
+
const [invisibleSet] = (0, react_1.useState)(() => new Set());
|
|
54
|
+
const getCount = (0, useLatest_1.useLatest)(props.count);
|
|
55
55
|
React.useEffect(() => {
|
|
56
56
|
const callback = (entries) => {
|
|
57
57
|
const count = getCount();
|
|
@@ -84,7 +84,7 @@ const EllipsisContainer = (props) => {
|
|
|
84
84
|
observer.disconnect();
|
|
85
85
|
};
|
|
86
86
|
}, []);
|
|
87
|
-
const prevCount = usePrevious_1.default(count, count);
|
|
87
|
+
const prevCount = (0, usePrevious_1.default)(count, count);
|
|
88
88
|
React.useLayoutEffect(() => {
|
|
89
89
|
if (allowWrap) {
|
|
90
90
|
return;
|
|
@@ -11,6 +11,6 @@ const EmptyContent = (_a) => {
|
|
|
11
11
|
children = React.createElement("p", null, children);
|
|
12
12
|
}
|
|
13
13
|
return (React.createElement(rebass_1.Box, { flex: 1, className: `${baseClassName}__wrapper` },
|
|
14
|
-
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column" }, flexProps, { className: join_1.default(baseClassName, className), style: style }), children)));
|
|
14
|
+
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column" }, flexProps, { className: (0, join_1.default)(baseClassName, className), style: style }), children)));
|
|
15
15
|
};
|
|
16
16
|
exports.default = EmptyContent;
|
|
@@ -7,6 +7,6 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
8
8
|
exports.baseClassName = 'ab-ErrorBox';
|
|
9
9
|
const ErrorBox = (props) => {
|
|
10
|
-
return React.createElement(rebass_1.Box, Object.assign({}, props, { className: join_1.default(props.className, exports.baseClassName) }));
|
|
10
|
+
return React.createElement(rebass_1.Box, Object.assign({}, props, { className: (0, join_1.default)(props.className, exports.baseClassName) }));
|
|
11
11
|
};
|
|
12
12
|
exports.default = ErrorBox;
|
|
@@ -18,9 +18,22 @@ const ButtonInfo_1 = require("../../View/Components/Buttons/ButtonInfo");
|
|
|
18
18
|
const DocumentationLinkConstants_1 = require("../../Utilities/Constants/DocumentationLinkConstants");
|
|
19
19
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
20
20
|
const icons_1 = require("../icons");
|
|
21
|
+
const AdaptableContext_1 = require("../../View/AdaptableContext");
|
|
22
|
+
const VarEditorButton = () => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
25
|
+
const expressionOptions = (_b = (_a = adaptable.api.internalApi.getAdaptableOptions().adaptableQLOptions) === null || _a === void 0 ? void 0 : _a.expressionOptions) === null || _b === void 0 ? void 0 : _b.customQueryVariables;
|
|
26
|
+
if (!expressionOptions || Object.keys(expressionOptions).length === 0) {
|
|
27
|
+
return React.createElement(React.Fragment, null);
|
|
28
|
+
}
|
|
29
|
+
return (React.createElement(React.Fragment, null, Object.keys(expressionOptions).map((varOption) => {
|
|
30
|
+
const varString = `VAR('${varOption}')`;
|
|
31
|
+
return (React.createElement(EditorButton_1.default, { data: varString, key: varOption }, varString));
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
21
34
|
function BaseEditorInput(props) {
|
|
22
35
|
const { expressionFunctions, testData, style, type } = props;
|
|
23
|
-
const { ref: textAreaRefCallback, selectionStart, selectionEnd } = useSelectionRange_1.useSelectionRange();
|
|
36
|
+
const { ref: textAreaRefCallback, selectionStart, selectionEnd } = (0, useSelectionRange_1.useSelectionRange)();
|
|
24
37
|
const cursor = selectionStart === selectionEnd ? selectionStart : null;
|
|
25
38
|
let result;
|
|
26
39
|
let evaluationError;
|
|
@@ -38,7 +51,7 @@ function BaseEditorInput(props) {
|
|
|
38
51
|
React.createElement("i", null, " (click for more details)")),
|
|
39
52
|
React.createElement(rebass_1.Text, { marginLeft: 3, style: { fontStyle: 'italic' } }, parserExceptionDetails)));
|
|
40
53
|
};
|
|
41
|
-
const testRowNode = react_1.useMemo(() => {
|
|
54
|
+
const testRowNode = (0, react_1.useMemo)(() => {
|
|
42
55
|
const firstRowNode = props.api.gridApi.getFirstRowNode();
|
|
43
56
|
if (!firstRowNode || !firstRowNode.data) {
|
|
44
57
|
return {};
|
|
@@ -78,17 +91,17 @@ function BaseEditorInput(props) {
|
|
|
78
91
|
expressionError = buildParserExceptionMessage(e);
|
|
79
92
|
}
|
|
80
93
|
else {
|
|
81
|
-
LoggingHelper_1.LogAdaptableError(`Unexpected error while evaluating '${props.value}':
|
|
94
|
+
(0, LoggingHelper_1.LogAdaptableError)(`Unexpected error while evaluating '${props.value}':
|
|
82
95
|
${e}`);
|
|
83
96
|
}
|
|
84
97
|
}
|
|
85
|
-
react_1.useEffect(() => {
|
|
98
|
+
(0, react_1.useEffect)(() => {
|
|
86
99
|
// update selected function only for focused textareas (where cursor is present)
|
|
87
100
|
if (cursor != undefined) {
|
|
88
101
|
props.onSelectedFunctionChange(selectedFunctionName ? expressionFunctions[selectedFunctionName] : null);
|
|
89
102
|
}
|
|
90
103
|
}, [selectedFunctionName]);
|
|
91
|
-
const functionsDropdown = (React.createElement(OverlayTrigger_1.default, { render: () => (React.createElement(rebass_1.Flex, { flexDirection: "column", p: 2, style: {
|
|
104
|
+
const functionsDropdown = (React.createElement(OverlayTrigger_1.default, { render: () => (React.createElement(rebass_1.Flex, { "data-name": "expression-dropdown-list", flexDirection: "column", p: 2, style: {
|
|
92
105
|
fontSize: 'var(--ab-font-size-2)',
|
|
93
106
|
border: '1px solid var(--ab-color-primarydark)',
|
|
94
107
|
borderRadius: 'var(--ab__border-radius)',
|
|
@@ -98,8 +111,8 @@ function BaseEditorInput(props) {
|
|
|
98
111
|
overflow: 'auto',
|
|
99
112
|
} }, Object.keys(expressionFunctions)
|
|
100
113
|
.filter((functionName) => !expressionFunctions[functionName].isHiddenFromMenu)
|
|
101
|
-
.map((functionName) => (React.createElement(EditorButton_1.default, { data: `${functionName}()`, key: functionName, mr: 1 }, functionName))))), showEvent: "focus", hideEvent: "blur" },
|
|
102
|
-
React.createElement(SimpleButton_1.default, { icon: "arrow-down", iconPosition: 'end', mr: 1 },
|
|
114
|
+
.map((functionName) => functionName === 'VAR' ? (React.createElement(VarEditorButton, { key: functionName })) : (React.createElement(EditorButton_1.default, { data: `${functionName}()`, key: functionName, mr: 1 }, functionName))))), showEvent: "focus", hideEvent: "blur" },
|
|
115
|
+
React.createElement(SimpleButton_1.default, { "data-name": "expression-dropdown", icon: "arrow-down", iconPosition: 'end', mr: 1 },
|
|
103
116
|
React.createElement(rebass_1.Flex, { marginRight: 1, style: { fontSize: 'var(--ab-font-size-2)' } },
|
|
104
117
|
React.createElement(icons_1.Icon, { name: 'equation', style: { marginTop: 0 } })))));
|
|
105
118
|
const operatorButtons = props.editorButtons
|
|
@@ -8,7 +8,7 @@ let dragImage;
|
|
|
8
8
|
const DRAG_IMAGE_SRC = 'data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=';
|
|
9
9
|
function EditorButton(props) {
|
|
10
10
|
const { data } = props, buttonProps = tslib_1.__rest(props, ["data"]);
|
|
11
|
-
const { textAreaRef } = EditorContext_1.useExpressionEditor();
|
|
11
|
+
const { textAreaRef } = (0, EditorContext_1.useExpressionEditor)();
|
|
12
12
|
return (React.createElement(SimpleButton_1.default, Object.assign({ "data-name": 'operator-or-fn', variant: "text", draggable: true, onDragStart: (event) => {
|
|
13
13
|
if (!dragImage) {
|
|
14
14
|
// we want to lazy init the image since otherwise it fails in SSR environments if it is declared outside the cmp - ReferenceError: Image is not defined
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useExpressionEditor = exports.ExpressionEditorContext = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
exports.ExpressionEditorContext = react_1.createContext({
|
|
5
|
+
exports.ExpressionEditorContext = (0, react_1.createContext)({
|
|
6
6
|
textAreaRef: { current: null },
|
|
7
7
|
selectedFunction: null,
|
|
8
8
|
setSelectedFunction: (_fn) => { },
|
|
9
9
|
});
|
|
10
10
|
const useExpressionEditor = () => {
|
|
11
|
-
return react_1.useContext(exports.ExpressionEditorContext);
|
|
11
|
+
return (0, react_1.useContext)(exports.ExpressionEditorContext);
|
|
12
12
|
};
|
|
13
13
|
exports.useExpressionEditor = useExpressionEditor;
|
|
@@ -25,12 +25,12 @@ function EditorInput(props) {
|
|
|
25
25
|
return obj;
|
|
26
26
|
}, {});
|
|
27
27
|
};
|
|
28
|
-
const expressionFunctions = react_1.useMemo(() => {
|
|
28
|
+
const expressionFunctions = (0, react_1.useMemo)(() => {
|
|
29
29
|
return props.type === 'aggregatedScalar' || props.type === 'cumulativeAggregatedScalar'
|
|
30
30
|
? getFilteredAggregatedExpressionFunctions(moduleExpressionFunctions.aggregatedScalarFunctions, props.type)
|
|
31
31
|
: Object.assign(Object.assign({}, moduleExpressionFunctions.booleanFunctions), moduleExpressionFunctions.scalarFunctions);
|
|
32
32
|
}, [props.type]);
|
|
33
|
-
const { setSelectedFunction } = EditorContext_1.useExpressionEditor();
|
|
33
|
+
const { setSelectedFunction } = (0, EditorContext_1.useExpressionEditor)();
|
|
34
34
|
const queryName = `${StringExtensions_1.default.CapitaliseFirstLetter(props.type)}Query`;
|
|
35
35
|
return (React.createElement(BaseEditorInput_1.BaseEditorInput, { type: 'main', value: props.value, placeholder: `Create ${queryName}`, onChange: props.onChange, onSelectedFunctionChange: setSelectedFunction, expressionFunctions: expressionFunctions, editorButtons: props.type === 'aggregatedScalar'
|
|
36
36
|
? editorButtonsAggregatedScalar_1.editorButtonsAggregatedScalar
|
|
@@ -20,40 +20,40 @@ function EditorInputWithWhereClause(props) {
|
|
|
20
20
|
? moduleExpressionFunctions.observableFunctions
|
|
21
21
|
: moduleExpressionFunctions.aggregatedBooleanFunctions;
|
|
22
22
|
const whereClauseExpressionsFns = Object.assign(Object.assign({}, moduleExpressionFunctions.booleanFunctions), moduleExpressionFunctions.scalarFunctions);
|
|
23
|
-
const [value, setValue] = useProperty_1.default(props, 'value', '', {
|
|
23
|
+
const [value, setValue] = (0, useProperty_1.default)(props, 'value', '', {
|
|
24
24
|
onChange: props.onChange,
|
|
25
25
|
});
|
|
26
26
|
const [reactiveValue, whereClauseValue] = value.split(' WHERE ');
|
|
27
27
|
const updateReactiveValue = (value) => {
|
|
28
28
|
let fullExpressionString = value;
|
|
29
|
-
if (StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace(value) && StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace(whereClauseValue)) {
|
|
29
|
+
if ((0, StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace)(value) && (0, StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace)(whereClauseValue)) {
|
|
30
30
|
fullExpressionString = `${value} WHERE ${whereClauseValue}`;
|
|
31
31
|
}
|
|
32
|
-
if (StringExtensions_1.IsNullOrEmptyOrWhiteSpace(value)) {
|
|
32
|
+
if ((0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(value)) {
|
|
33
33
|
setShowWhereClause(false);
|
|
34
34
|
}
|
|
35
35
|
setValue(fullExpressionString);
|
|
36
36
|
};
|
|
37
37
|
const updateWhereClauseValue = (value) => {
|
|
38
|
-
if (StringExtensions_1.IsNullOrEmptyOrWhiteSpace(value)) {
|
|
38
|
+
if ((0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(value)) {
|
|
39
39
|
setValue(reactiveValue);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
setValue(`${reactiveValue} WHERE ${value}`);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
const { setSelectedFunction } = EditorContext_1.useExpressionEditor();
|
|
46
|
-
const [showWhereClause, setShowWhereClause] = react_1.useState(StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace(whereClauseValue));
|
|
47
|
-
const queryName = `${StringExtensions_1.CapitaliseFirstLetter(props.type)}Query`;
|
|
45
|
+
const { setSelectedFunction } = (0, EditorContext_1.useExpressionEditor)();
|
|
46
|
+
const [showWhereClause, setShowWhereClause] = (0, react_1.useState)((0, StringExtensions_1.IsNotNullOrEmptyOrWhiteSpace)(whereClauseValue));
|
|
47
|
+
const queryName = `${(0, StringExtensions_1.CapitaliseFirstLetter)(props.type)}Query`;
|
|
48
48
|
return (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "start" },
|
|
49
49
|
React.createElement(BaseEditorInput_1.BaseEditorInput, { type: 'main', value: reactiveValue || '', placeholder: `Create ${queryName}`, onChange: updateReactiveValue, onSelectedFunctionChange: setSelectedFunction, expressionFunctions: reactiveExpressionFns, editorButtons: props.type === 'observable' ? editorButtonsObservable_1.editorButtonsObservable : editorButtonsAggregatedBoolean_1.editorButtonsAggregatedBoolean, testData: props.testData, isFullExpression: true, hideResultPreview: true, api: props.api, style: { height: '75px' } }),
|
|
50
|
-
React.createElement(CheckBox_1.CheckBox, { disabled: StringExtensions_1.IsNullOrEmptyOrWhiteSpace(reactiveValue), checked: showWhereClause, style: { alignItems: 'center' }, onChange: (checked) => {
|
|
50
|
+
React.createElement(CheckBox_1.CheckBox, { disabled: (0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(reactiveValue), checked: showWhereClause, style: { alignItems: 'center' }, onChange: (checked) => {
|
|
51
51
|
setShowWhereClause(checked);
|
|
52
52
|
if (!checked) {
|
|
53
53
|
// reset whereClause value if textarea is hidden
|
|
54
54
|
updateWhereClauseValue(null);
|
|
55
55
|
}
|
|
56
56
|
}, pl: 3 }, "WHERE"),
|
|
57
|
-
showWhereClause && (React.createElement(BaseEditorInput_1.BaseEditorInput, { type: 'secondary', disabled: StringExtensions_1.IsNullOrEmptyOrWhiteSpace(reactiveValue), value: whereClauseValue || '', placeholder: `Create BooleanQuery which narrows down the scope of the ${queryName}`, onChange: updateWhereClauseValue, onSelectedFunctionChange: setSelectedFunction, expressionFunctions: whereClauseExpressionsFns, editorButtons: editorButtonsSearch_1.editorButtonsSearch, testData: props.testData, isFullExpression: true, hideResultPreview: true, api: props.api, style: { height: '75px' } }))));
|
|
57
|
+
showWhereClause && (React.createElement(BaseEditorInput_1.BaseEditorInput, { type: 'secondary', disabled: (0, StringExtensions_1.IsNullOrEmptyOrWhiteSpace)(reactiveValue), value: whereClauseValue || '', placeholder: `Create BooleanQuery which narrows down the scope of the ${queryName}`, onChange: updateWhereClauseValue, onSelectedFunctionChange: setSelectedFunction, expressionFunctions: whereClauseExpressionsFns, editorButtons: editorButtonsSearch_1.editorButtonsSearch, testData: props.testData, isFullExpression: true, hideResultPreview: true, api: props.api, style: { height: '75px' } }))));
|
|
58
58
|
}
|
|
59
59
|
exports.default = EditorInputWithWhereClause;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useNamedQueryContext = exports.NamedQueryContext = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
|
-
exports.NamedQueryContext = react_1.createContext({
|
|
5
|
+
exports.NamedQueryContext = (0, react_1.createContext)({
|
|
6
6
|
namedQuery: false,
|
|
7
7
|
setNamedQuery: () => { },
|
|
8
8
|
// hasValidNamedQueryName: () => false,
|
|
9
9
|
});
|
|
10
10
|
const useNamedQueryContext = () => {
|
|
11
|
-
return react_1.useContext(exports.NamedQueryContext);
|
|
11
|
+
return (0, react_1.useContext)(exports.NamedQueryContext);
|
|
12
12
|
};
|
|
13
13
|
exports.useNamedQueryContext = useNamedQueryContext;
|
|
@@ -28,13 +28,13 @@ const AdaptableFormControlTextClear_1 = require("../../View/Components/Forms/Ada
|
|
|
28
28
|
function ExpressionEditor(props) {
|
|
29
29
|
var _a;
|
|
30
30
|
const { type, module } = props;
|
|
31
|
-
const [data, setData] = react_1.useState(props.initialData);
|
|
32
|
-
const [showColumnIds, setShowColumnIds] = react_1.useState(false);
|
|
33
|
-
const [showNamedQueries, setShowNamedQueries] = react_1.useState(false);
|
|
34
|
-
const [selectedFunction, setSelectedFunction] = react_1.useState(null);
|
|
35
|
-
const [expressionText, setExpressionText] = react_1.useState('');
|
|
36
|
-
const { namedQuery, setNamedQuery } = NamedQueryContext_1.useNamedQueryContext();
|
|
37
|
-
const textAreaRef = react_1.useRef(null);
|
|
31
|
+
const [data, setData] = (0, react_1.useState)(props.initialData);
|
|
32
|
+
const [showColumnIds, setShowColumnIds] = (0, react_1.useState)(false);
|
|
33
|
+
const [showNamedQueries, setShowNamedQueries] = (0, react_1.useState)(false);
|
|
34
|
+
const [selectedFunction, setSelectedFunction] = (0, react_1.useState)(null);
|
|
35
|
+
const [expressionText, setExpressionText] = (0, react_1.useState)('');
|
|
36
|
+
const { namedQuery, setNamedQuery } = (0, NamedQueryContext_1.useNamedQueryContext)();
|
|
37
|
+
const textAreaRef = (0, react_1.useRef)(null);
|
|
38
38
|
const allowSaveNamedQuery = (_a = props.allowSaveNamedQuery) !== null && _a !== void 0 ? _a : type === 'boolean';
|
|
39
39
|
const editorInput = type === 'observable' || type === 'aggregatedBoolean' ? (React.createElement(EditorInputWithWhereClause_1.default, { type: type, module: module, value: props.value, onChange: (value) => {
|
|
40
40
|
setExpressionText(value);
|
|
@@ -96,7 +96,7 @@ function ExpressionEditor(props) {
|
|
|
96
96
|
};
|
|
97
97
|
const getColDateValue = (column) => {
|
|
98
98
|
const colValue = getColValue(column);
|
|
99
|
-
return colValue && DateHelper_1.isValueValidDate(colValue)
|
|
99
|
+
return colValue && (0, DateHelper_1.isValueValidDate)(colValue)
|
|
100
100
|
? new Date(colValue).toISOString().substr(0, 10)
|
|
101
101
|
: '';
|
|
102
102
|
};
|
|
@@ -5,7 +5,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const rebass_1 = require("rebass");
|
|
6
6
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
7
7
|
const FieldWrap = (props) => {
|
|
8
|
-
return React.createElement(rebass_1.Flex, Object.assign({}, props, { className: join_1.default(props.className, 'ab-FieldWrap') }));
|
|
8
|
+
return React.createElement(rebass_1.Flex, Object.assign({}, props, { className: (0, join_1.default)(props.className, 'ab-FieldWrap') }));
|
|
9
9
|
};
|
|
10
10
|
FieldWrap.defaultProps = {
|
|
11
11
|
flexDirection: 'row',
|