@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
|
@@ -41,7 +41,7 @@ const readJSONFile = async (file, toJSON) => {
|
|
|
41
41
|
exports.readJSONFile = readJSONFile;
|
|
42
42
|
const FileDroppable = (props) => {
|
|
43
43
|
const { onDropSuccess, message, fileAccept = '.json', helpText = 'AdapTable No Code Version', defaultText = 'Click here to select a JSON file to load or drag it here', dragOverText = 'Drop file here to start Adaptable Wizard', icon = React.createElement(icons_1.Icon, { name: "attach-file", size: 48 }) } = props, domProps = tslib_1.__rest(props, ["onDropSuccess", "message", "fileAccept", "helpText", "defaultText", "dragOverText", "icon"]);
|
|
44
|
-
const [state, dispatch] = react_1.useReducer(reducer_1.default, initialState);
|
|
44
|
+
const [state, dispatch] = (0, react_1.useReducer)(reducer_1.default, initialState);
|
|
45
45
|
const onDragEnter = (e) => {
|
|
46
46
|
dispatch({
|
|
47
47
|
type: reducer_1.ActionTypes.DRAG_OVER,
|
|
@@ -50,7 +50,7 @@ const FileDroppable = (props) => {
|
|
|
50
50
|
const onDragLeave = (event) => {
|
|
51
51
|
stop(event);
|
|
52
52
|
if (domRef.current != event.target &&
|
|
53
|
-
contains_1.default(domRef.current, event.target)) {
|
|
53
|
+
(0, contains_1.default)(domRef.current, event.target)) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
dispatch({
|
|
@@ -97,7 +97,7 @@ const FileDroppable = (props) => {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
const domRef = react_1.useRef();
|
|
100
|
+
const domRef = (0, react_1.useRef)();
|
|
101
101
|
let form = (React.createElement("form", { onSubmit: stop },
|
|
102
102
|
React.createElement(SimpleButton_1.default, { style: { cursor: 'pointer' }, variant: "outlined" },
|
|
103
103
|
React.createElement("div", null, state.dragOver ? dragOverText : defaultText),
|
|
@@ -114,7 +114,7 @@ const FileDroppable = (props) => {
|
|
|
114
114
|
zIndex: 1,
|
|
115
115
|
} }))));
|
|
116
116
|
const msg = message || state.message;
|
|
117
|
-
return (React.createElement(rebass_1.Flex, Object.assign({}, domProps, { flexDirection: "column", className: join_1.default(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: stop, ref: domRef }),
|
|
117
|
+
return (React.createElement(rebass_1.Flex, Object.assign({}, domProps, { flexDirection: "column", className: (0, join_1.default)(props.className, 'ab-FileDroppable', state.dragOver ? 'ab-FileDroppable--drag-over' : ''), alignItems: "center", justifyContent: "center", onDragEnter: onDragEnter, onDragLeave: onDragLeave, onDrop: onDrop, onDragOver: stop, ref: domRef }),
|
|
118
118
|
props.children,
|
|
119
119
|
helpText || icon ? (React.createElement(rebass_1.Flex, { flexDirection: "column" },
|
|
120
120
|
helpText ? (React.createElement(rebass_1.Flex, { flexDirection: "column", alignItems: "center", margin: 2 },
|
|
@@ -7,7 +7,7 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const react_1 = require("react");
|
|
8
8
|
const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
|
|
9
9
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
10
|
-
const FormLayoutContext = react_1.createContext(null);
|
|
10
|
+
const FormLayoutContext = (0, react_1.createContext)(null);
|
|
11
11
|
const defaultColumns = {
|
|
12
12
|
label: {
|
|
13
13
|
className: 'ab-FormLayout_column--label',
|
|
@@ -26,7 +26,7 @@ const FormLayout = (props) => {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
if (defaultColumns[c.name]) {
|
|
29
|
-
c = merge_1.default({}, defaultColumns[c.name], c);
|
|
29
|
+
c = (0, merge_1.default)({}, defaultColumns[c.name], c);
|
|
30
30
|
}
|
|
31
31
|
c.component = c.component === undefined ? defaultComponent : c.component;
|
|
32
32
|
return c;
|
|
@@ -53,10 +53,10 @@ const FormLayout = (props) => {
|
|
|
53
53
|
currentRow: 0,
|
|
54
54
|
childrenToColumns,
|
|
55
55
|
} },
|
|
56
|
-
React.createElement(rebass_1.Box, Object.assign({}, boxProps, { className: join_1.default(boxProps.className, 'ab-FormLayout'), style: Object.assign(Object.assign({}, style), formStyle) }))));
|
|
56
|
+
React.createElement(rebass_1.Box, Object.assign({}, boxProps, { className: (0, join_1.default)(boxProps.className, 'ab-FormLayout'), style: Object.assign(Object.assign({}, style), formStyle) }))));
|
|
57
57
|
};
|
|
58
58
|
const FormRow = (props) => {
|
|
59
|
-
const ctx = react_1.useContext(FormLayoutContext);
|
|
59
|
+
const ctx = (0, react_1.useContext)(FormLayoutContext);
|
|
60
60
|
const { columns, placeholder, childrenToColumns } = ctx;
|
|
61
61
|
const rowIndex = ctx.currentRow;
|
|
62
62
|
ctx.currentRow++;
|
|
@@ -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-HelpBlock';
|
|
9
9
|
const HelpBlock = (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 = HelpBlock;
|
|
@@ -8,5 +8,5 @@ export declare type InputProps = HTMLProps<HTMLInputElement> & {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
list?: any;
|
|
10
10
|
} & BoxProps;
|
|
11
|
-
declare const Input: React.ForwardRefExoticComponent<Pick<InputProps, "max" | "required" | "
|
|
11
|
+
declare const Input: React.ForwardRefExoticComponent<Pick<InputProps, "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" | "placehoder"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export default Input;
|
|
@@ -15,6 +15,6 @@ const Input = React.forwardRef((props, ref) => {
|
|
|
15
15
|
if (type === 'string') {
|
|
16
16
|
type = 'text';
|
|
17
17
|
}
|
|
18
|
-
return (React.createElement(rebass_1.Box, Object.assign({ as: "input", ref: ref }, inputProps, { type: type, disabled: disabled, className: join_1.default(className, exports.baseClassName, type ? `${exports.baseClassName}--type-${type}` : '', disabled ? `${exports.baseClassName}--disabled` : '') })));
|
|
18
|
+
return (React.createElement(rebass_1.Box, Object.assign({ as: "input", ref: ref }, inputProps, { type: type, disabled: disabled, className: (0, join_1.default)(className, exports.baseClassName, type ? `${exports.baseClassName}--type-${type}` : '', disabled ? `${exports.baseClassName}--disabled` : '') })));
|
|
19
19
|
});
|
|
20
20
|
exports.default = Input;
|
|
@@ -18,7 +18,7 @@ const GridList = (props) => {
|
|
|
18
18
|
}).filter((data) => !!data.item);
|
|
19
19
|
return (React.createElement(InfiniteTable_1.DataSource, { data: data, primaryKey: "id" },
|
|
20
20
|
React.createElement(InfiniteTable_1.InfiniteTable, { header: false, showZebraRows: props.showZebraRows, rowHeight: (_a = props.rowHeight) !== null && _a !== void 0 ? _a : '--ab-grid-row-height', domProps: {
|
|
21
|
-
className: join_1.default(baseClassName, props.className),
|
|
21
|
+
className: (0, join_1.default)(baseClassName, props.className),
|
|
22
22
|
style: {
|
|
23
23
|
minHeight: '15rem',
|
|
24
24
|
},
|
|
@@ -7,6 +7,6 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const baseClassName = 'ab-ListGroup';
|
|
8
8
|
const ListGroup = (props) => {
|
|
9
9
|
const { className } = props, domProps = tslib_1.__rest(props, ["className"]);
|
|
10
|
-
return React.createElement(rebass_1.Box, Object.assign({}, domProps, { className: join_1.default(className, baseClassName) }));
|
|
10
|
+
return React.createElement(rebass_1.Box, Object.assign({}, domProps, { className: (0, join_1.default)(className, baseClassName) }));
|
|
11
11
|
};
|
|
12
12
|
exports.default = ListGroup;
|
|
@@ -6,5 +6,5 @@ declare const ListGroupItem: React.ForwardRefExoticComponent<Pick<React.HTMLProp
|
|
|
6
6
|
noZebra?: boolean;
|
|
7
7
|
index?: number;
|
|
8
8
|
selectionId?: string | number;
|
|
9
|
-
}, "
|
|
9
|
+
}, "index" | "max" | "required" | "type" | "data" | "default" | "high" | "low" | "key" | "id" | "media" | "height" | "width" | "active" | "start" | "open" | "name" | "color" | "content" | "translate" | "value" | "hidden" | "cite" | "dir" | "form" | "label" | "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" | "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" | "factory" | "noZebra" | "selectionId"> & React.RefAttributes<unknown>>;
|
|
10
10
|
export default ListGroupItem;
|
|
@@ -7,13 +7,13 @@ const SelectableList_1 = require("../../SelectableList");
|
|
|
7
7
|
const baseClassName = 'ab-ListGroupItem';
|
|
8
8
|
const ListGroupItem = React.forwardRef((props, ref) => {
|
|
9
9
|
const { className, active, factory: Tag = 'button', noZebra } = props, domProps = tslib_1.__rest(props, ["className", "active", "factory", "noZebra"]);
|
|
10
|
-
const onSelectionClick = SelectableList_1.useSelectionEvent();
|
|
10
|
+
const onSelectionClick = (0, SelectableList_1.useSelectionEvent)();
|
|
11
11
|
const result = (React.createElement(Tag, Object.assign({}, domProps, { onClick: (event) => {
|
|
12
12
|
if (domProps.onClick) {
|
|
13
13
|
domProps.onClick(event);
|
|
14
14
|
}
|
|
15
15
|
onSelectionClick(event, { index: props.index });
|
|
16
|
-
}, ref: ref, className: join_1.default(className, baseClassName, noZebra ? `${baseClassName}--no-zebra` : null, `${baseClassName}--${active ? 'active' : 'not-active'}`) })));
|
|
16
|
+
}, ref: ref, className: (0, join_1.default)(className, baseClassName, noZebra ? `${baseClassName}--no-zebra` : null, `${baseClassName}--${active ? 'active' : 'not-active'}`) })));
|
|
17
17
|
return result;
|
|
18
18
|
});
|
|
19
19
|
exports.default = ListGroupItem;
|
|
@@ -9,13 +9,13 @@ exports.baseClassName = 'ab-Modal';
|
|
|
9
9
|
const Backdrop = (props) => {
|
|
10
10
|
const { uuid, timestamp } = props;
|
|
11
11
|
const [backdropVisible, setBackdropVisible] = React.useState(false);
|
|
12
|
-
const [zIndex, setZIndex] = react_1.useState(-1);
|
|
13
|
-
react_1.useLayoutEffect(() => {
|
|
14
|
-
exports.updatePositionInStack(uuid, {
|
|
12
|
+
const [zIndex, setZIndex] = (0, react_1.useState)(-1);
|
|
13
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
14
|
+
(0, exports.updatePositionInStack)(uuid, {
|
|
15
15
|
timestamp,
|
|
16
16
|
baseZIndex: props.zIndex,
|
|
17
17
|
setBackdropOrder: (visible, zIndex) => {
|
|
18
|
-
react_dom_1.unstable_batchedUpdates(() => {
|
|
18
|
+
(0, react_dom_1.unstable_batchedUpdates)(() => {
|
|
19
19
|
setBackdropVisible(visible);
|
|
20
20
|
setZIndex(zIndex);
|
|
21
21
|
if (visible && props.onBringToFront) {
|
|
@@ -24,7 +24,7 @@ const Backdrop = (props) => {
|
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
|
-
return () => exports.updatePositionInStack(uuid, null);
|
|
27
|
+
return () => (0, exports.updatePositionInStack)(uuid, null);
|
|
28
28
|
}, []);
|
|
29
29
|
return backdropVisible ? (React.createElement("div", { "data-id": uuid, style: { zIndex }, className: `${exports.baseClassName}-backdrop` })) : null;
|
|
30
30
|
};
|
|
@@ -15,7 +15,7 @@ const UIHelper_1 = require("../../View/UIHelper");
|
|
|
15
15
|
// const createUuid = (): string => uuidv4();
|
|
16
16
|
let portalElement;
|
|
17
17
|
const ensurePortalElement = () => {
|
|
18
|
-
if (!UIHelper_1.isBrowserDocumentAvailable()) {
|
|
18
|
+
if (!(0, UIHelper_1.isBrowserDocumentAvailable)()) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
if (portalElement) {
|
|
@@ -28,14 +28,14 @@ let globalCounter = 0;
|
|
|
28
28
|
const Modal = (props) => {
|
|
29
29
|
ensurePortalElement();
|
|
30
30
|
const { className, style, children, isOpen, onBringToFront } = props, boxProps = tslib_1.__rest(props, ["className", "style", "children", "isOpen", "onBringToFront"]);
|
|
31
|
-
const uuid = react_1.useMemo(() => uuid_1.createUuid(), []);
|
|
32
|
-
const counter = react_1.useMemo(() => globalCounter++, [isOpen]);
|
|
31
|
+
const uuid = (0, react_1.useMemo)(() => (0, uuid_1.createUuid)(), []);
|
|
32
|
+
const counter = (0, react_1.useMemo)(() => globalCounter++, [isOpen]);
|
|
33
33
|
const openTimestamp = counter;
|
|
34
34
|
const backdropZIndexOffset = props.backdropZIndexOffset || 1;
|
|
35
35
|
const zIndex = (props.baseZIndex || 2000) + counter;
|
|
36
|
-
return react_dom_1.createPortal(isOpen ? (React.createElement(React.Fragment, null,
|
|
36
|
+
return (0, react_dom_1.createPortal)(isOpen ? (React.createElement(React.Fragment, null,
|
|
37
37
|
React.createElement(Backdrop_1.default, { timestamp: openTimestamp, uuid: uuid, zIndex: zIndex - backdropZIndexOffset, onBringToFront: onBringToFront }),
|
|
38
38
|
React.createElement(react_remove_scroll_1.RemoveScroll, null,
|
|
39
|
-
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column" }, boxProps, { style: Object.assign({ zIndex }, style), className: join_1.default(Backdrop_1.baseClassName, className) }), children)))) : null, portalElement);
|
|
39
|
+
React.createElement(rebass_1.Flex, Object.assign({ alignItems: "center", justifyContent: "center", flexDirection: "column" }, boxProps, { style: Object.assign({ zIndex }, style), className: (0, join_1.default)(Backdrop_1.baseClassName, className) }), children)))) : null, portalElement);
|
|
40
40
|
};
|
|
41
41
|
exports.Modal = Modal;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
5
|
const getResizeObserverObject_1 = require("../ResizeObserver/getResizeObserverObject");
|
|
6
|
-
const RO = getResizeObserverObject_1.getResizeObserverObject();
|
|
6
|
+
const RO = (0, getResizeObserverObject_1.getResizeObserverObject)();
|
|
7
7
|
const NotifyResize = (props) => {
|
|
8
8
|
const domRef = React.useRef(null);
|
|
9
9
|
React.useEffect(() => {
|
|
@@ -9,7 +9,7 @@ const usePrevious_1 = tslib_1.__importDefault(require("../utils/usePrevious"));
|
|
|
9
9
|
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
10
10
|
const utils_1 = require("./utils");
|
|
11
11
|
const useRefresh = () => {
|
|
12
|
-
const [x, update] = react_1.useState(0);
|
|
12
|
+
const [x, update] = (0, react_1.useState)(0);
|
|
13
13
|
return () => {
|
|
14
14
|
update(x + 1);
|
|
15
15
|
};
|
|
@@ -22,33 +22,33 @@ const translateToValues = (x) => x
|
|
|
22
22
|
.map((s) => s.trim());
|
|
23
23
|
const Overlay = React.forwardRef((props, ref) => {
|
|
24
24
|
const { visible, getConstrainRect, anchor, position } = props, domProps = tslib_1.__rest(props, ["visible", "getConstrainRect", "anchor", "position"]);
|
|
25
|
-
const domRef = react_1.useRef(null);
|
|
25
|
+
const domRef = (0, react_1.useRef)(null);
|
|
26
26
|
const setRef = (node) => {
|
|
27
27
|
domRef.current = node;
|
|
28
28
|
if (ref && typeof ref === 'function') {
|
|
29
29
|
ref(node);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const [opacity, setOpacity] = react_1.useState(0);
|
|
33
|
-
const transitionInProgressRef = react_1.useRef(false);
|
|
34
|
-
const prevVisible = usePrevious_1.default(visible, visible);
|
|
35
|
-
const prevOpacity = usePrevious_1.default(opacity, opacity);
|
|
36
|
-
const refresh = exports.useRefresh();
|
|
37
|
-
react_1.useEffect(() => {
|
|
38
|
-
batchUpdate_1.default(() => {
|
|
32
|
+
const [opacity, setOpacity] = (0, react_1.useState)(0);
|
|
33
|
+
const transitionInProgressRef = (0, react_1.useRef)(false);
|
|
34
|
+
const prevVisible = (0, usePrevious_1.default)(visible, visible);
|
|
35
|
+
const prevOpacity = (0, usePrevious_1.default)(opacity, opacity);
|
|
36
|
+
const refresh = (0, exports.useRefresh)();
|
|
37
|
+
(0, react_1.useEffect)(() => {
|
|
38
|
+
(0, batchUpdate_1.default)(() => {
|
|
39
39
|
transitionInProgressRef.current = true;
|
|
40
40
|
setOpacity(props.visible ? 1 : 0);
|
|
41
41
|
}).commit();
|
|
42
42
|
}, [visible]);
|
|
43
|
-
react_1.useLayoutEffect(() => {
|
|
43
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
44
44
|
if (!visible) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const constrainRect = getConstrainRect();
|
|
48
48
|
const domNode = domRef.current;
|
|
49
|
-
const thisRect = utils_1.getRect(domNode);
|
|
50
|
-
const intersection = utils_1.getIntersection(constrainRect, thisRect);
|
|
51
|
-
if (!isEqual_1.default(intersection, thisRect)) {
|
|
49
|
+
const thisRect = (0, utils_1.getRect)(domNode);
|
|
50
|
+
const intersection = (0, utils_1.getIntersection)(constrainRect, thisRect);
|
|
51
|
+
if (!(0, isEqual_1.default)(intersection, thisRect)) {
|
|
52
52
|
const transform = props.style
|
|
53
53
|
? props.style.transform || 'translate3d(0px, 0px, 0px)'
|
|
54
54
|
: 'translate3d(0px, 0px, 0px)';
|
|
@@ -80,9 +80,9 @@ const Overlay = React.forwardRef((props, ref) => {
|
|
|
80
80
|
refresh();
|
|
81
81
|
};
|
|
82
82
|
const renderTime = Date.now();
|
|
83
|
-
const renderTimeRef = react_1.useRef(renderTime);
|
|
83
|
+
const renderTimeRef = (0, react_1.useRef)(renderTime);
|
|
84
84
|
renderTimeRef.current = renderTime;
|
|
85
|
-
react_1.useEffect(() => {
|
|
85
|
+
(0, react_1.useEffect)(() => {
|
|
86
86
|
let timeoutId;
|
|
87
87
|
if (prevOpacity && !opacity) {
|
|
88
88
|
timeoutId = setTimeout(() => {
|
|
@@ -9,7 +9,7 @@ const getWindowSize = () => ({
|
|
|
9
9
|
});
|
|
10
10
|
const getOverlayStyle = ({ targetRect, constrainRect, anchor, targetOffset, alignHorizontal, }) => {
|
|
11
11
|
alignHorizontal = alignHorizontal || 'center';
|
|
12
|
-
const sizeInfo = getAvailableSizeInfo_1.default({ targetRect, constrainRect });
|
|
12
|
+
const sizeInfo = (0, getAvailableSizeInfo_1.default)({ targetRect, constrainRect });
|
|
13
13
|
const overlayStyle = {
|
|
14
14
|
maxWidth: sizeInfo.maxWidth,
|
|
15
15
|
maxHeight: sizeInfo.maxHeight,
|
|
@@ -21,20 +21,20 @@ const UIHelper_1 = require("../../View/UIHelper");
|
|
|
21
21
|
const getConstrainRect = (target, constrainTo) => {
|
|
22
22
|
let el = null;
|
|
23
23
|
if (typeof constrainTo === 'string') {
|
|
24
|
-
el = selectParent_1.default(constrainTo, target);
|
|
24
|
+
el = (0, selectParent_1.default)(constrainTo, target);
|
|
25
25
|
}
|
|
26
26
|
if (typeof constrainTo === 'function') {
|
|
27
27
|
el = constrainTo(target);
|
|
28
28
|
}
|
|
29
29
|
if (el && el.tagName) {
|
|
30
|
-
return utils_1.getRect(el);
|
|
30
|
+
return (0, utils_1.getRect)(el);
|
|
31
31
|
}
|
|
32
|
-
return utils_1.getDocRect();
|
|
32
|
+
return (0, utils_1.getDocRect)();
|
|
33
33
|
};
|
|
34
34
|
exports.getConstrainRect = getConstrainRect;
|
|
35
35
|
let portalElement;
|
|
36
36
|
const ensurePortalElement = () => {
|
|
37
|
-
if (!UIHelper_1.isBrowserDocumentAvailable()) {
|
|
37
|
+
if (!(0, UIHelper_1.isBrowserDocumentAvailable)()) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
if (portalElement) {
|
|
@@ -45,11 +45,11 @@ const ensurePortalElement = () => {
|
|
|
45
45
|
};
|
|
46
46
|
const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
47
47
|
let { visible: _, showTriangle, showEvent, hideEvent, render, targetOffset, preventPortalEventPropagation = false, defaultZIndex, anchor, hideDelay = 0, opacityTransitionDuration, onVisibleChange, alignHorizontal, constrainTo, target: targetProp } = props, domProps = tslib_1.__rest(props, ["visible", "showTriangle", "showEvent", "hideEvent", "render", "targetOffset", "preventPortalEventPropagation", "defaultZIndex", "anchor", "hideDelay", "opacityTransitionDuration", "onVisibleChange", "alignHorizontal", "constrainTo", "target"]);
|
|
48
|
-
const domRef = react_1.useRef(null);
|
|
49
|
-
const targetRef = react_1.useRef(null);
|
|
50
|
-
const overlayRef = react_1.useRef(null);
|
|
51
|
-
const [visible, doSetVisible] = useProperty_1.default(props, 'visible', false);
|
|
52
|
-
const hideTimeoutRef = react_1.useRef(null);
|
|
48
|
+
const domRef = (0, react_1.useRef)(null);
|
|
49
|
+
const targetRef = (0, react_1.useRef)(null);
|
|
50
|
+
const overlayRef = (0, react_1.useRef)(null);
|
|
51
|
+
const [visible, doSetVisible] = (0, useProperty_1.default)(props, 'visible', false);
|
|
52
|
+
const hideTimeoutRef = (0, react_1.useRef)(null);
|
|
53
53
|
const setVisible = React.useCallback((visible) => {
|
|
54
54
|
if (!visible) {
|
|
55
55
|
hideTimeoutRef.current = setTimeout(() => {
|
|
@@ -64,25 +64,25 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
64
64
|
}
|
|
65
65
|
doSetVisible(true);
|
|
66
66
|
}, []);
|
|
67
|
-
const [targetRect, setTargetRect] = react_1.useState(null);
|
|
68
|
-
const [sizeInfo, setSizeInfo] = react_1.useState(null);
|
|
69
|
-
const prevVisible = usePrevious_1.default(visible, false);
|
|
67
|
+
const [targetRect, setTargetRect] = (0, react_1.useState)(null);
|
|
68
|
+
const [sizeInfo, setSizeInfo] = (0, react_1.useState)(null);
|
|
69
|
+
const prevVisible = (0, usePrevious_1.default)(visible, false);
|
|
70
70
|
ensurePortalElement();
|
|
71
71
|
const onShow = React.useCallback((event) => {
|
|
72
72
|
const target = targetRef.current;
|
|
73
|
-
if (event && preventPortalEventPropagation && !contains_1.default(target, event.target)) {
|
|
73
|
+
if (event && preventPortalEventPropagation && !(0, contains_1.default)(target, event.target)) {
|
|
74
74
|
// because of how React portals behave - see https://github.com/facebook/react/issues/11387
|
|
75
75
|
// after the portal is rendered, even though an item is in a separate dom parent, if it's in the portal,
|
|
76
76
|
// events from it are propagated to the components in the portal and thus break some stuff
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
batchUpdate_1.default(() => {
|
|
79
|
+
(0, batchUpdate_1.default)(() => {
|
|
80
80
|
setVisible(true);
|
|
81
81
|
const target = targetRef.current;
|
|
82
82
|
const targetRect = target.getBoundingClientRect();
|
|
83
|
-
const sizeInfo = getAvailableSizeInfo_1.default({
|
|
83
|
+
const sizeInfo = (0, getAvailableSizeInfo_1.default)({
|
|
84
84
|
targetRect,
|
|
85
|
-
constrainRect: exports.getConstrainRect(target, constrainTo),
|
|
85
|
+
constrainRect: (0, exports.getConstrainRect)(target, constrainTo),
|
|
86
86
|
});
|
|
87
87
|
setTargetRect(targetRect);
|
|
88
88
|
setSizeInfo(sizeInfo);
|
|
@@ -91,7 +91,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
91
91
|
const onHide = React.useCallback((_event) => {
|
|
92
92
|
setVisible(false);
|
|
93
93
|
}, [setVisible]);
|
|
94
|
-
react_1.useEffect(() => {
|
|
94
|
+
(0, react_1.useEffect)(() => {
|
|
95
95
|
if (ref) {
|
|
96
96
|
const api = {
|
|
97
97
|
show: onShow,
|
|
@@ -105,13 +105,13 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}, [ref]);
|
|
108
|
-
react_1.useEffect(() => {
|
|
108
|
+
(0, react_1.useEffect)(() => {
|
|
109
109
|
let target = domRef.current.previousSibling;
|
|
110
110
|
if (targetProp) {
|
|
111
111
|
target = targetProp(target);
|
|
112
112
|
}
|
|
113
113
|
if (!target) {
|
|
114
|
-
LoggingHelper_1.LogAdaptableWarning('No OverlayTrigger target - make sure you render a child inside the OverlayTrigger, which will be the overlay target');
|
|
114
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('No OverlayTrigger target - make sure you render a child inside the OverlayTrigger, which will be the overlay target');
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
117
117
|
targetRef.current = target;
|
|
@@ -134,7 +134,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
134
134
|
};
|
|
135
135
|
}, [props.visible, showEvent, hideEvent, onShow, onHide]);
|
|
136
136
|
let overlay;
|
|
137
|
-
const agGridClassName = useAgGridClassName_1.default([visible]);
|
|
137
|
+
const agGridClassName = (0, useAgGridClassName_1.default)([visible]);
|
|
138
138
|
if (targetRect) {
|
|
139
139
|
const overlayTarget = targetRef.current;
|
|
140
140
|
alignHorizontal =
|
|
@@ -142,8 +142,8 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
142
142
|
getComputedStyle(overlayTarget)
|
|
143
143
|
.getPropertyValue('--ab-overlay-horizontal-align')
|
|
144
144
|
.trim();
|
|
145
|
-
let overlayStyle = getOverlayStyle_1.default({
|
|
146
|
-
constrainRect: exports.getConstrainRect(overlayTarget, constrainTo),
|
|
145
|
+
let overlayStyle = (0, getOverlayStyle_1.default)({
|
|
146
|
+
constrainRect: (0, exports.getConstrainRect)(overlayTarget, constrainTo),
|
|
147
147
|
targetRect,
|
|
148
148
|
targetOffset,
|
|
149
149
|
anchor,
|
|
@@ -154,7 +154,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
154
154
|
overlayStyle.zIndex = defaultZIndex;
|
|
155
155
|
overlayStyle = Object.assign(Object.assign({}, overlayStyle), props.style);
|
|
156
156
|
const position = anchor === 'vertical' ? sizeInfo.verticalPosition : sizeInfo.horizontalPosition;
|
|
157
|
-
overlay = react_dom_1.createPortal(React.createElement(Overlay_1.default, Object.assign({}, domProps, { ref: (node) => {
|
|
157
|
+
overlay = (0, react_dom_1.createPortal)(React.createElement(Overlay_1.default, Object.assign({}, domProps, { ref: (node) => {
|
|
158
158
|
if (overlayRef.current && overlayRef.current != node) {
|
|
159
159
|
overlayRef.current.removeEventListener(showEvent, onShow);
|
|
160
160
|
overlayRef.current.removeEventListener(hideEvent, onHide);
|
|
@@ -164,7 +164,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
164
164
|
node.addEventListener(showEvent, onShow);
|
|
165
165
|
node.addEventListener(hideEvent, onHide);
|
|
166
166
|
}
|
|
167
|
-
}, className: join_1.default('ab-Overlay', `ab-Overlay--position-${position}`, showTriangle ? 'ab-Overlay--show-triangle' : '', agGridClassName, domProps.className), visible: visible, style: overlayStyle, anchor: anchor, position: position, getConstrainRect: () => exports.getConstrainRect(targetRef.current) }), props.render()), portalElement);
|
|
167
|
+
}, className: (0, join_1.default)('ab-Overlay', `ab-Overlay--position-${position}`, showTriangle ? 'ab-Overlay--show-triangle' : '', agGridClassName, domProps.className), visible: visible, style: overlayStyle, anchor: anchor, position: position, getConstrainRect: () => (0, exports.getConstrainRect)(targetRef.current) }), props.render()), portalElement);
|
|
168
168
|
}
|
|
169
169
|
return (React.createElement(React.Fragment, null,
|
|
170
170
|
props.children,
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const react_1 = require("react");
|
|
4
4
|
const AdaptableContext_1 = require("../../View/AdaptableContext");
|
|
5
5
|
const useAgGridClassName = (deps = []) => {
|
|
6
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
7
|
-
return react_1.useMemo(() => {
|
|
6
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
7
|
+
return (0, react_1.useMemo)(() => {
|
|
8
8
|
if (adaptable) {
|
|
9
9
|
return adaptable.getAgGridCurrentThemeName();
|
|
10
10
|
}
|
|
@@ -12,7 +12,7 @@ const Header = (_a) => {
|
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
14
|
const style = {};
|
|
15
|
-
return (React.createElement(rebass_1.Flex, Object.assign({ flexDirection: "row", alignItems: "center" }, headerProps, { style: Object.assign(Object.assign({}, style), headerProps.style), className: join_1.default(`${exports.baseClassName}__header`, `${exports.baseClassName}__header--variant-${variant}`) }), children));
|
|
15
|
+
return (React.createElement(rebass_1.Flex, Object.assign({ flexDirection: "row", alignItems: "center" }, headerProps, { style: Object.assign(Object.assign({}, style), headerProps.style), className: (0, join_1.default)(`${exports.baseClassName}__header`, `${exports.baseClassName}__header--variant-${variant}`) }), children));
|
|
16
16
|
};
|
|
17
17
|
const Body = (_a) => {
|
|
18
18
|
var { children, bodyScroll, variant } = _a, bodyProps = tslib_1.__rest(_a, ["children", "bodyScroll", "variant"]);
|
|
@@ -22,7 +22,7 @@ const Body = (_a) => {
|
|
|
22
22
|
if (bodyScroll === true) {
|
|
23
23
|
bodyScroll = 'auto';
|
|
24
24
|
}
|
|
25
|
-
return (React.createElement(rebass_1.Box, Object.assign({}, bodyProps, { className: join_1.default(`${exports.baseClassName}__body`, variant && `${exports.baseClassName}__body--variant-${variant}`, bodyScroll ? `${exports.baseClassName}__body--scroll-${bodyScroll}` : null) }), children));
|
|
25
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, bodyProps, { className: (0, join_1.default)(`${exports.baseClassName}__body`, variant && `${exports.baseClassName}__body--variant-${variant}`, bodyScroll ? `${exports.baseClassName}__body--scroll-${bodyScroll}` : null) }), children));
|
|
26
26
|
};
|
|
27
27
|
const Panel = (props) => {
|
|
28
28
|
const { borderRadius, border, className, header, children, headerProps, bodyProps, bodyScroll, variant = 'default' } = props, boxProps = tslib_1.__rest(props, ["borderRadius", "border", "className", "header", "children", "headerProps", "bodyProps", "bodyScroll", "variant"]);
|
|
@@ -33,7 +33,7 @@ const Panel = (props) => {
|
|
|
33
33
|
}
|
|
34
34
|
const headerStyle = Object.assign({ border }, (headerProps ? headerProps.style : null));
|
|
35
35
|
const bodyStyle = Object.assign({ border }, (bodyProps ? bodyProps.style : null));
|
|
36
|
-
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps, { style: Object.assign(Object.assign({}, style), boxProps.style), className: join_1.default(className, exports.baseClassName, `${exports.baseClassName}--variant-${variant}`, !header ? `${exports.baseClassName}--no-header` : `${exports.baseClassName}--with-header`) }),
|
|
36
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, boxProps, { style: Object.assign(Object.assign({}, style), boxProps.style), className: (0, join_1.default)(className, exports.baseClassName, `${exports.baseClassName}--variant-${variant}`, !header ? `${exports.baseClassName}--no-header` : `${exports.baseClassName}--with-header`) }),
|
|
37
37
|
React.createElement(Header, Object.assign({}, headerProps, { style: headerStyle, variant: variant }), header),
|
|
38
38
|
React.createElement(Body, Object.assign({}, bodyProps, { style: bodyStyle, bodyScroll: bodyScroll, variant: variant }), children)));
|
|
39
39
|
};
|