@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
|
@@ -11,4 +11,4 @@ export interface IPopupWithFooterProps extends DialogProps {
|
|
|
11
11
|
footer: React.ReactNode;
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare const PopupWithFooter: React.ForwardRefExoticComponent<Pick<IPopupWithFooterProps, "fixed" | "max" | "required" | "
|
|
14
|
+
export declare const PopupWithFooter: React.ForwardRefExoticComponent<Pick<IPopupWithFooterProps, "fixed" | "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" | "maxWidth" | "opacity" | "order" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "translate" | "value" | "hidden" | "cite" | "dir" | "footer" | "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" | "modal" | "mt" | "mb" | "ml" | "mr" | "my" | "marginY" | "mx" | "marginX" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "bg" | "css" | "showCloseButton" | "isOpen" | "focusOnBrowserVisible" | "windowModal" | "windowModalProps" | "modalProps" | "defaultIsOpen" | "onDismiss" | "dismissOnClickOutside" | "onHide" | "showModal"> & React.RefAttributes<HTMLElement>>;
|
|
@@ -8,15 +8,15 @@ const react_1 = require("react");
|
|
|
8
8
|
const Loader_1 = require("../Loader");
|
|
9
9
|
const AdaptableContext_1 = require("../../View/AdaptableContext");
|
|
10
10
|
const ProgressIndicator = () => {
|
|
11
|
-
const { active, label } = react_redux_1.useSelector((state) => state.System.ProgressIndicator);
|
|
12
|
-
const [visible, setVisible] = react_1.useState(false);
|
|
13
|
-
const [progressIndicatorCoordinates, setProgressIndicatorCoordinates] = react_1.useState({
|
|
11
|
+
const { active, label } = (0, react_redux_1.useSelector)((state) => state.System.ProgressIndicator);
|
|
12
|
+
const [visible, setVisible] = (0, react_1.useState)(false);
|
|
13
|
+
const [progressIndicatorCoordinates, setProgressIndicatorCoordinates] = (0, react_1.useState)({
|
|
14
14
|
top: 0,
|
|
15
15
|
left: 0,
|
|
16
16
|
height: 0,
|
|
17
17
|
width: 0,
|
|
18
18
|
});
|
|
19
|
-
const adaptable = AdaptableContext_1.useAdaptable();
|
|
19
|
+
const adaptable = (0, AdaptableContext_1.useAdaptable)();
|
|
20
20
|
const disableAdaptableGrid = (containerElement, disabled) => {
|
|
21
21
|
const DISABLING_CSS_CLASS = 'ab-wait-for-progress-indicator';
|
|
22
22
|
if (!containerElement) {
|
|
@@ -36,7 +36,7 @@ const ProgressIndicator = () => {
|
|
|
36
36
|
const { top, left, height, width } = containerElement.getBoundingClientRect();
|
|
37
37
|
setProgressIndicatorCoordinates({ top, left, height, width });
|
|
38
38
|
};
|
|
39
|
-
react_1.useEffect(() => {
|
|
39
|
+
(0, react_1.useEffect)(() => {
|
|
40
40
|
disableAdaptableGrid(adaptable.getAdaptableContainerElement(), active);
|
|
41
41
|
disableAdaptableGrid(adaptable.getAgGridContainerElement(), active);
|
|
42
42
|
updateGridContainerCoordinates(adaptable.getAdaptableContainerElement());
|
|
@@ -17,9 +17,9 @@ const useRadioContext = () => {
|
|
|
17
17
|
exports.useRadioContext = useRadioContext;
|
|
18
18
|
const Radio = (_a) => {
|
|
19
19
|
var { children, checked, onChange, value, name, gapDistance = 10, childrenPosition = 'end', as = 'label', id, tabIndex, disabled } = _a, props = tslib_1.__rest(_a, ["children", "checked", "onChange", "value", "name", "gapDistance", "childrenPosition", "as", "id", "tabIndex", "disabled"]);
|
|
20
|
-
const context = exports.useRadioContext();
|
|
20
|
+
const context = (0, exports.useRadioContext)();
|
|
21
21
|
const { value: contextValue, onChange: contextOnChange, name: contextName } = context;
|
|
22
|
-
const [stateChecked, setStateChecked] = react_1.useState(false);
|
|
22
|
+
const [stateChecked, setStateChecked] = (0, react_1.useState)(false);
|
|
23
23
|
const computedChecked = checked !== undefined
|
|
24
24
|
? checked
|
|
25
25
|
: contextValue !== undefined
|
|
@@ -56,7 +56,7 @@ const Radio = (_a) => {
|
|
|
56
56
|
};
|
|
57
57
|
const RadioGroup = (props) => {
|
|
58
58
|
const { orientation, value: _value, name, onRadioChange } = props, flexProps = tslib_1.__rest(props, ["orientation", "value", "name", "onRadioChange"]);
|
|
59
|
-
const [value, setValue] = useProperty_1.default(props, 'value', undefined, {
|
|
59
|
+
const [value, setValue] = (0, useProperty_1.default)(props, 'value', undefined, {
|
|
60
60
|
onChange: (value) => {
|
|
61
61
|
onRadioChange(value);
|
|
62
62
|
},
|
|
@@ -6,7 +6,7 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const getResizeObserverObject_1 = require("./getResizeObserverObject");
|
|
8
8
|
const setupResizeObserver = (node, callback) => {
|
|
9
|
-
const RO = getResizeObserverObject_1.getResizeObserverObject();
|
|
9
|
+
const RO = (0, getResizeObserverObject_1.getResizeObserverObject)();
|
|
10
10
|
if (!RO) {
|
|
11
11
|
return () => { };
|
|
12
12
|
}
|
|
@@ -39,14 +39,14 @@ exports.setupResizeObserver = setupResizeObserver;
|
|
|
39
39
|
* @param callback The function to be called when the element is resized.
|
|
40
40
|
*/
|
|
41
41
|
const useResizeObserver = (ref, callback, config = { earlyAttach: false }) => {
|
|
42
|
-
const sizeRef = react_1.useRef({
|
|
42
|
+
const sizeRef = (0, react_1.useRef)({
|
|
43
43
|
width: 0,
|
|
44
44
|
height: 0,
|
|
45
45
|
});
|
|
46
46
|
const effectFn = (callback) => {
|
|
47
47
|
let disconnect;
|
|
48
48
|
if (ref.current) {
|
|
49
|
-
disconnect = exports.setupResizeObserver(ref.current, (size) => {
|
|
49
|
+
disconnect = (0, exports.setupResizeObserver)(ref.current, (size) => {
|
|
50
50
|
size = {
|
|
51
51
|
width: Math.round(size.width),
|
|
52
52
|
height: Math.round(size.height),
|
|
@@ -64,13 +64,13 @@ const useResizeObserver = (ref, callback, config = { earlyAttach: false }) => {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
react_1.useEffect(() => {
|
|
67
|
+
(0, react_1.useEffect)(() => {
|
|
68
68
|
if (!config.earlyAttach) {
|
|
69
69
|
return effectFn(callback);
|
|
70
70
|
}
|
|
71
71
|
return () => { };
|
|
72
72
|
}, [ref.current, callback, config.earlyAttach]);
|
|
73
|
-
react_1.useLayoutEffect(() => {
|
|
73
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
74
74
|
if (config.earlyAttach) {
|
|
75
75
|
return effectFn(callback);
|
|
76
76
|
}
|
|
@@ -79,7 +79,7 @@ const useResizeObserver = (ref, callback, config = { earlyAttach: false }) => {
|
|
|
79
79
|
};
|
|
80
80
|
exports.useResizeObserver = useResizeObserver;
|
|
81
81
|
const ReactResizeObserver = (props) => {
|
|
82
|
-
const style = react_1.useMemo(() => ({
|
|
82
|
+
const style = (0, react_1.useMemo)(() => ({
|
|
83
83
|
position: 'absolute',
|
|
84
84
|
top: 0,
|
|
85
85
|
left: 0,
|
|
@@ -88,16 +88,16 @@ const ReactResizeObserver = (props) => {
|
|
|
88
88
|
boxSizing: 'border-box',
|
|
89
89
|
}), []);
|
|
90
90
|
const { notifyOnMount, earlyAttach } = props;
|
|
91
|
-
const firstTime = react_1.useRef(true);
|
|
92
|
-
const ref = react_1.useRef(null);
|
|
93
|
-
const onResize = react_1.useCallback((size) => {
|
|
91
|
+
const firstTime = (0, react_1.useRef)(true);
|
|
92
|
+
const ref = (0, react_1.useRef)(null);
|
|
93
|
+
const onResize = (0, react_1.useCallback)((size) => {
|
|
94
94
|
if (firstTime.current && !notifyOnMount) {
|
|
95
95
|
firstTime.current = false;
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
props.onResize(size);
|
|
99
99
|
}, [props.onResize]);
|
|
100
|
-
exports.useResizeObserver(ref, onResize, { earlyAttach: earlyAttach || false });
|
|
100
|
+
(0, exports.useResizeObserver)(ref, onResize, { earlyAttach: earlyAttach || false });
|
|
101
101
|
return React.createElement("div", { ref: ref, style: style });
|
|
102
102
|
};
|
|
103
103
|
exports.ReactResizeObserver = ReactResizeObserver;
|
|
@@ -14,10 +14,10 @@ const SelectableListContext = React.createContext({
|
|
|
14
14
|
setSelected: (x) => { },
|
|
15
15
|
});
|
|
16
16
|
const useSelectionEvent = () => {
|
|
17
|
-
const { selected, setSelected, toggleOnSimpleClick, clickInfoRef, getItemId } = react_1.useContext(SelectableListContext);
|
|
17
|
+
const { selected, setSelected, toggleOnSimpleClick, clickInfoRef, getItemId } = (0, react_1.useContext)(SelectableListContext);
|
|
18
18
|
return (event, { index }) => {
|
|
19
19
|
if (index === undefined) {
|
|
20
|
-
LoggingHelper_1.LogAdaptableWarning('No "index" was passed to the list item');
|
|
20
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('No "index" was passed to the list item');
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
const { lastClickIndexWithoutShift, lastShiftSelectionRange } = clickInfoRef.current;
|
|
@@ -80,8 +80,8 @@ const useSelectionEvent = () => {
|
|
|
80
80
|
};
|
|
81
81
|
exports.useSelectionEvent = useSelectionEvent;
|
|
82
82
|
const SelectableList = (props) => {
|
|
83
|
-
const [selected, setSelected] = useProperty_1.default(props, 'selected', {});
|
|
84
|
-
const clickInfoRef = react_1.useRef({
|
|
83
|
+
const [selected, setSelected] = (0, useProperty_1.default)(props, 'selected', {});
|
|
84
|
+
const clickInfoRef = (0, react_1.useRef)({
|
|
85
85
|
lastClickIndexWithoutShift: 0,
|
|
86
86
|
});
|
|
87
87
|
const getItemId = (index) => {
|
|
@@ -14,7 +14,7 @@ const SimpleButton = React.forwardRef((props, ref) => {
|
|
|
14
14
|
var _a, _b;
|
|
15
15
|
let { children, disabled, variant = 'outlined', tone = 'neutral', iconPosition = 'start', iconSize, className, icon, tooltip, tooltipAnchor, accessLevel: accessLevel, type } = props, buttonProps = tslib_1.__rest(props, ["children", "disabled", "variant", "tone", "iconPosition", "iconSize", "className", "icon", "tooltip", "tooltipAnchor", "accessLevel", "type"]);
|
|
16
16
|
let adaptableInternalIcon;
|
|
17
|
-
if (AdaptableIconComponent_1.isAdaptableInternalIcon(icon)) {
|
|
17
|
+
if ((0, AdaptableIconComponent_1.isAdaptableInternalIcon)(icon)) {
|
|
18
18
|
adaptableInternalIcon = icon;
|
|
19
19
|
}
|
|
20
20
|
if (typeof icon === 'string' && icons_1.default[icon]) {
|
|
@@ -32,7 +32,7 @@ const SimpleButton = React.forwardRef((props, ref) => {
|
|
|
32
32
|
}
|
|
33
33
|
icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, Object.assign({}, iconProps));
|
|
34
34
|
}
|
|
35
|
-
if (AdaptableIconComponent_1.isAdaptableExternalIcon(icon) || AdaptableIconComponent_1.isAdaptableElementIcon(icon)) {
|
|
35
|
+
if ((0, AdaptableIconComponent_1.isAdaptableExternalIcon)(icon) || (0, AdaptableIconComponent_1.isAdaptableElementIcon)(icon)) {
|
|
36
36
|
icon = React.createElement(AdaptableIconComponent_1.AdaptableIconComponent, { icon: icon });
|
|
37
37
|
}
|
|
38
38
|
if (icon) {
|
|
@@ -76,7 +76,7 @@ const SimpleButton = React.forwardRef((props, ref) => {
|
|
|
76
76
|
const fontWeight = buttonProps.fontWeight
|
|
77
77
|
? (_b = (_a = theme_1.default[buttonProps.fontWeight]) !== null && _a !== void 0 ? _a : buttonProps.fontWeight) !== null && _b !== void 0 ? _b : 'normal'
|
|
78
78
|
: 'normal';
|
|
79
|
-
const btn = (React.createElement(rebass_1.Button, Object.assign({}, buttonProps, { disabled: disabled, className: join_1.default(className, exports.baseClassName, disabled ? `${exports.baseClassName}--disabled` : '', fontWeight ? `${exports.baseClassName}--font-weight=${fontWeight}` : '', `${exports.baseClassName}--variant-${variant}`, `${exports.baseClassName}--tone-${tone}`), ref: ref }), children));
|
|
79
|
+
const btn = (React.createElement(rebass_1.Button, Object.assign({}, buttonProps, { disabled: disabled, className: (0, join_1.default)(className, exports.baseClassName, disabled ? `${exports.baseClassName}--disabled` : '', fontWeight ? `${exports.baseClassName}--font-weight=${fontWeight}` : '', `${exports.baseClassName}--variant-${variant}`, `${exports.baseClassName}--tone-${tone}`), ref: ref }), children));
|
|
80
80
|
return tooltip ? (React.createElement(Tooltip_1.default, { anchor: tooltipAnchor, label: tooltip }, btn)) : (btn);
|
|
81
81
|
});
|
|
82
82
|
SimpleButton.defaultProps = {
|
|
@@ -7,6 +7,6 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const StyleHelper_1 = require("../Utilities/Helpers/StyleHelper");
|
|
8
8
|
const StylePreview = (props) => {
|
|
9
9
|
var _a, _b, _c;
|
|
10
|
-
return (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: (_a = props.padding) !== null && _a !== void 0 ? _a : 2, mt: (_b = props.mt) !== null && _b !== void 0 ? _b : 2, style: Object.assign(Object.assign({}, StyleHelper_1.toStyle(props.styleObject)), props.style) }), (_c = props.children) !== null && _c !== void 0 ? _c : 'Preview result'));
|
|
10
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: (_a = props.padding) !== null && _a !== void 0 ? _a : 2, mt: (_b = props.mt) !== null && _b !== void 0 ? _b : 2, style: Object.assign(Object.assign({}, (0, StyleHelper_1.toStyle)(props.styleObject)), props.style) }), (_c = props.children) !== null && _c !== void 0 ? _c : 'Preview result'));
|
|
11
11
|
};
|
|
12
12
|
exports.StylePreview = StylePreview;
|
|
@@ -4,6 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const React = tslib_1.__importStar(require("react"));
|
|
5
5
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
6
6
|
const Table = (props) => {
|
|
7
|
-
return React.createElement("table", Object.assign({}, props, { className: join_1.default(props.className, 'ab-Table') }));
|
|
7
|
+
return React.createElement("table", Object.assign({}, props, { className: (0, join_1.default)(props.className, 'ab-Table') }));
|
|
8
8
|
};
|
|
9
9
|
exports.default = Table;
|
|
@@ -21,10 +21,9 @@ const isTabContent = (c) => {
|
|
|
21
21
|
return c.type === exports.Content || ((_a = c.props) === null || _a === void 0 ? void 0 : _a.isTabsContent);
|
|
22
22
|
};
|
|
23
23
|
const Tabs = (props) => {
|
|
24
|
-
var _a;
|
|
25
24
|
const { autoFocus = true, children, onValueChange: _onValueChange, defaultValue: _defaultValue, value: _value, keyboardNavigation = true, selectedIndex: _selectedIndex, defaultSelectedIndex: _defaultSelectedIndex, onSelectedIndexChange: _onSelectedIndexChange } = props, boxProps = tslib_1.__rest(props, ["autoFocus", "children", "onValueChange", "defaultValue", "value", "keyboardNavigation", "selectedIndex", "defaultSelectedIndex", "onSelectedIndexChange"]);
|
|
26
|
-
let [selectedIndex, doSetSelectedIndex] = useProperty_1.default(props, 'selectedIndex', 0);
|
|
27
|
-
const [selectedValue, setSelectedValue] = useProperty_1.default(props, 'value', 0);
|
|
25
|
+
let [selectedIndex, doSetSelectedIndex] = (0, useProperty_1.default)(props, 'selectedIndex', 0);
|
|
26
|
+
const [selectedValue, setSelectedValue] = (0, useProperty_1.default)(props, 'value', 0);
|
|
28
27
|
const allChildren = React.Children.toArray(children);
|
|
29
28
|
const values = [];
|
|
30
29
|
const tabs = allChildren.filter(isTab).map((tab, index) => {
|
|
@@ -63,13 +62,13 @@ const Tabs = (props) => {
|
|
|
63
62
|
doSetSelectedIndex(index);
|
|
64
63
|
};
|
|
65
64
|
const currentContent = contents[selectedIndex];
|
|
66
|
-
const
|
|
65
|
+
const _a = (currentContent === null || currentContent === void 0 ? void 0 : currentContent.props) || {}, { value } = _a, contentProps = tslib_1.__rest(_a, ["value"]);
|
|
67
66
|
return (React.createElement(TabContext.Provider, { value: {
|
|
68
67
|
selectedIndex,
|
|
69
68
|
tabCount: tabs.length,
|
|
70
69
|
setSelectedIndex,
|
|
71
70
|
} },
|
|
72
|
-
React.createElement(rebass_1.Box, Object.assign({}, boxProps, { className: join_1.default(boxProps.className, 'ab-Tabs'), "data-selected-index": selectedIndex }),
|
|
71
|
+
React.createElement(rebass_1.Box, Object.assign({}, boxProps, { className: (0, join_1.default)(boxProps.className, 'ab-Tabs'), "data-selected-index": selectedIndex }),
|
|
73
72
|
React.createElement(rebass_1.Flex, { flexDirection: "row", className: "ab-Tabs__Strip" },
|
|
74
73
|
React.createElement(rebass_1.Box, { className: "ab-Tabs__Filler" }),
|
|
75
74
|
tabs,
|
|
@@ -83,8 +82,8 @@ const Tab = (props) => {
|
|
|
83
82
|
const baseClassName = 'ab-Tabs__Tab';
|
|
84
83
|
const active = context.selectedIndex === props.index;
|
|
85
84
|
const beforeActive = context.selectedIndex === props.index + 1;
|
|
86
|
-
const className = join_1.default(propsClassName, baseClassName, active ? `${baseClassName}--active` : '', beforeActive ? `${baseClassName}--before-active` : '');
|
|
87
|
-
const ref = react_1.useRef(null);
|
|
85
|
+
const className = (0, join_1.default)(propsClassName, baseClassName, active ? `${baseClassName}--active` : '', beforeActive ? `${baseClassName}--before-active` : '');
|
|
86
|
+
const ref = (0, react_1.useRef)(null);
|
|
88
87
|
React.useEffect(() => {
|
|
89
88
|
var _a;
|
|
90
89
|
if (active && autoFocus && keyboardNavigation) {
|
|
@@ -7,5 +7,5 @@ const rebass_1 = require("rebass");
|
|
|
7
7
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
8
8
|
exports.Tag = React.forwardRef((props, ref) => {
|
|
9
9
|
var _a, _b, _c, _d;
|
|
10
|
-
return (React.createElement(rebass_1.Box, Object.assign({}, props, { ref: ref, className: join_1.default('ab-Tag', props.className), backgroundColor: "primary", paddingTop: (_a = props.paddingTop) !== null && _a !== void 0 ? _a : 1, paddingBottom: (_b = props.paddingBottom) !== null && _b !== void 0 ? _b : 1, paddingLeft: (_c = props.paddingLeft) !== null && _c !== void 0 ? _c : 2, paddingRight: (_d = props.paddingRight) !== null && _d !== void 0 ? _d : 2, style: Object.assign({ borderRadius: 'var(--ab__border-radius)' }, props.style) })));
|
|
10
|
+
return (React.createElement(rebass_1.Box, Object.assign({}, props, { ref: ref, className: (0, join_1.default)('ab-Tag', props.className), backgroundColor: "primary", paddingTop: (_a = props.paddingTop) !== null && _a !== void 0 ? _a : 1, paddingBottom: (_b = props.paddingBottom) !== null && _b !== void 0 ? _b : 1, paddingLeft: (_c = props.paddingLeft) !== null && _c !== void 0 ? _c : 2, paddingRight: (_d = props.paddingRight) !== null && _d !== void 0 ? _d : 2, style: Object.assign({ borderRadius: 'var(--ab__border-radius)' }, props.style) })));
|
|
11
11
|
});
|
|
@@ -11,5 +11,5 @@ declare const Textarea: React.ForwardRefExoticComponent<Pick<React.HTMLProps<HTM
|
|
|
11
11
|
placehoder?: string;
|
|
12
12
|
type?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
|
-
} & BoxProps, "max" | "required" | "
|
|
14
|
+
} & BoxProps, "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<unknown>>;
|
|
15
15
|
export default Textarea;
|
|
@@ -15,6 +15,6 @@ const Textarea = React.forwardRef((props, ref) => {
|
|
|
15
15
|
if (type === 'string') {
|
|
16
16
|
type = 'text';
|
|
17
17
|
}
|
|
18
|
-
return (React.createElement(rebass_1.Box, Object.assign({ ref: ref, as: "textarea" }, textareaProps, { type: type, disabled: disabled, className: join_1.default(className, exports.baseClassName, disabled ? `${exports.baseClassName}--disabled` : '') })));
|
|
18
|
+
return (React.createElement(rebass_1.Box, Object.assign({ ref: ref, as: "textarea" }, textareaProps, { type: type, disabled: disabled, className: (0, join_1.default)(className, exports.baseClassName, disabled ? `${exports.baseClassName}--disabled` : '') })));
|
|
19
19
|
});
|
|
20
20
|
exports.default = Textarea;
|
|
@@ -13,7 +13,7 @@ const ToggleButton = ({ checked, onChange, disabled, className, children, style
|
|
|
13
13
|
onChange(Boolean(event.target.checked));
|
|
14
14
|
};
|
|
15
15
|
const baseClassName = 'ab-ToggleButton';
|
|
16
|
-
const preparedClassName = join_1.default(className, baseClassName, checked && `${baseClassName}--checked`, disabled && `${baseClassName}--disabled`);
|
|
16
|
+
const preparedClassName = (0, join_1.default)(className, baseClassName, checked && `${baseClassName}--checked`, disabled && `${baseClassName}--disabled`);
|
|
17
17
|
return (React.createElement("label", { "data-name": dataName, style: style, className: preparedClassName },
|
|
18
18
|
React.createElement("input", { type: "checkbox", disabled: disabled, checked: Boolean(checked), className: `${baseClassName}__input`, onChange: handleChange }),
|
|
19
19
|
React.createElement(rebass_1.Flex, { alignItems: "center", justifyContent: checked ? 'start' : 'end', className: `${baseClassName}__slider` },
|
|
@@ -10,7 +10,7 @@ const react_dom_1 = require("react-dom");
|
|
|
10
10
|
const useStacking_1 = require("./useStacking");
|
|
11
11
|
let portalElement;
|
|
12
12
|
const ensurePortalElement = () => {
|
|
13
|
-
if (!UIHelper_1.isBrowserDocumentAvailable()) {
|
|
13
|
+
if (!(0, UIHelper_1.isBrowserDocumentAvailable)()) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
if (portalElement) {
|
|
@@ -50,7 +50,7 @@ const WindowModal = (props) => {
|
|
|
50
50
|
y: normalizeTopLeft((_b = props.position) === null || _b === void 0 ? void 0 : _b.y),
|
|
51
51
|
};
|
|
52
52
|
const positionRef = React.useRef(normalizedPosition);
|
|
53
|
-
const stacking = useStacking_1.useStacking();
|
|
53
|
+
const stacking = (0, useStacking_1.useStacking)();
|
|
54
54
|
/**
|
|
55
55
|
* This is needed because the function called in onDrop is saved when
|
|
56
56
|
* it gets attached to the DOM element event handler.
|
|
@@ -73,7 +73,7 @@ const WindowModal = (props) => {
|
|
|
73
73
|
size: props.size,
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
const { targetRef, applyTransform } = useDraggable_1.default({
|
|
76
|
+
const { targetRef, applyTransform } = (0, useDraggable_1.default)({
|
|
77
77
|
handleSelector: props.handleSelector,
|
|
78
78
|
onDrop: handleDrop,
|
|
79
79
|
});
|
|
@@ -103,7 +103,7 @@ const WindowModal = (props) => {
|
|
|
103
103
|
applyTransform(positionDelta.x, positionDelta.y);
|
|
104
104
|
}
|
|
105
105
|
}, []);
|
|
106
|
-
return react_dom_1.createPortal(React.createElement("div", { style: style,
|
|
106
|
+
return (0, react_dom_1.createPortal)(React.createElement("div", { style: style,
|
|
107
107
|
//@ts-ignore
|
|
108
108
|
ref: targetRef, onMouseDown: stacking.bringInFront },
|
|
109
109
|
React.createElement(re_resizable_1.Resizable, { minWidth: props.minWidth, minHeight: props.minHeight, onResizeStop: handleResizeStop, onResize: handleResize, bounds: "window", defaultSize: {
|
|
@@ -13,7 +13,7 @@ const BASE_Z_INDEX = 1000;
|
|
|
13
13
|
* This is done by changing the zIndex of all registered window-modals.
|
|
14
14
|
*/
|
|
15
15
|
const useStacking = () => {
|
|
16
|
-
const modalZIndexId = React.useMemo(() => uuid_1.createUuid(), []);
|
|
16
|
+
const modalZIndexId = React.useMemo(() => (0, uuid_1.createUuid)(), []);
|
|
17
17
|
const [zIndex, setZIndex] = React.useState(BASE_Z_INDEX);
|
|
18
18
|
React.useEffect(() => {
|
|
19
19
|
setZIndexMap[modalZIndexId] = setZIndex;
|
|
@@ -5,6 +5,6 @@ const React = tslib_1.__importStar(require("react"));
|
|
|
5
5
|
const Panel_1 = tslib_1.__importDefault(require("../Panel"));
|
|
6
6
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
7
7
|
const WizardPanel = (props) => {
|
|
8
|
-
return (React.createElement(Panel_1.default, Object.assign({ border: "none", borderRadius: "none", variant: "primary", bodyScroll: true }, props, { className: join_1.default(props.className, 'ab-WizardPanel'), style: Object.assign({ height: '100%' }, props.style) })));
|
|
8
|
+
return (React.createElement(Panel_1.default, Object.assign({ border: "none", borderRadius: "none", variant: "primary", bodyScroll: true }, props, { className: (0, join_1.default)(props.className, 'ab-WizardPanel'), style: Object.assign({ height: '100%' }, props.style) })));
|
|
9
9
|
};
|
|
10
10
|
exports.default = WizardPanel;
|
|
@@ -10,6 +10,6 @@ const getSize = (size) => Math.round(size * (DEFAULT_SIZE / HUNDRED_PERCENT_SIZE
|
|
|
10
10
|
exports.getSize = getSize;
|
|
11
11
|
exports.default = (_a) => {
|
|
12
12
|
var { children, size = DEFAULT_SIZE, name, tabIndex, color } = _a, props = tslib_1.__rest(_a, ["children", "size", "name", "tabIndex", "color"]);
|
|
13
|
-
size = exports.getSize(size);
|
|
14
|
-
return (React.createElement("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", tabIndex: tabIndex }, props, { className: join_1.default(props.className, `ab-Icon ab-Icon--${name}`), style: Object.assign({ verticalAlign: 'middle', fill: color !== null && color !== void 0 ? color : 'currentColor' }, props.style) }), children));
|
|
13
|
+
size = (0, exports.getSize)(size);
|
|
14
|
+
return (React.createElement("svg", Object.assign({ width: size, height: size, viewBox: "0 0 24 24", tabIndex: tabIndex }, props, { className: (0, join_1.default)(props.className, `ab-Icon ab-Icon--${name}`), style: Object.assign({ verticalAlign: 'middle', fill: color !== null && color !== void 0 ? color : 'currentColor' }, props.style) }), children));
|
|
15
15
|
};
|
|
@@ -287,7 +287,7 @@ const Icon = (_a) => {
|
|
|
287
287
|
var { name, style, className, tabIndex } = _a, props = tslib_1.__rest(_a, ["name", "style", "className", "tabIndex"]);
|
|
288
288
|
const IconCmp = (allIcons[name] || null);
|
|
289
289
|
if (!IconCmp) {
|
|
290
|
-
LoggingHelper_1.LogAdaptableWarning('NO icon found for ' + name);
|
|
290
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('NO icon found for ' + name);
|
|
291
291
|
return React.createElement("svg", { height: "17", width: "17" });
|
|
292
292
|
}
|
|
293
293
|
return React.createElement(IconCmp, Object.assign({ tabIndex: tabIndex }, props, { style: style, name: name, className: className }));
|
|
@@ -5,8 +5,8 @@ const react_1 = require("react");
|
|
|
5
5
|
const usePrevious_1 = tslib_1.__importDefault(require("./usePrevious"));
|
|
6
6
|
const useAutoFocus = (props, focusElementRef) => {
|
|
7
7
|
const autoFocus = props.autoFocus === undefined ? true : props.autoFocus;
|
|
8
|
-
const prevAutoFocus = usePrevious_1.default(props.previous ? props.previous({ autoFocus }) : autoFocus, undefined);
|
|
9
|
-
react_1.useEffect(() => {
|
|
8
|
+
const prevAutoFocus = (0, usePrevious_1.default)(props.previous ? props.previous({ autoFocus }) : autoFocus, undefined);
|
|
9
|
+
(0, react_1.useEffect)(() => {
|
|
10
10
|
if (focusElementRef.current &&
|
|
11
11
|
focusElementRef.current.focus &&
|
|
12
12
|
autoFocus &&
|
|
@@ -38,13 +38,13 @@ class SectionSelector {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
const useContainerScrollObserver = (callback) => {
|
|
41
|
-
const containerNodeRef = react_1.useRef(null);
|
|
42
|
-
const sectionSelectorRef = react_1.useRef(null);
|
|
43
|
-
const update = react_1.useCallback((scrollTop) => {
|
|
41
|
+
const containerNodeRef = (0, react_1.useRef)(null);
|
|
42
|
+
const sectionSelectorRef = (0, react_1.useRef)(null);
|
|
43
|
+
const update = (0, react_1.useCallback)((scrollTop) => {
|
|
44
44
|
callback(sectionSelectorRef.current.select(scrollTop));
|
|
45
45
|
}, []);
|
|
46
|
-
const scrollRafRef = react_1.useRef(null);
|
|
47
|
-
const onScroll = react_1.useCallback(() => {
|
|
46
|
+
const scrollRafRef = (0, react_1.useRef)(null);
|
|
47
|
+
const onScroll = (0, react_1.useCallback)(() => {
|
|
48
48
|
if (scrollRafRef.current) {
|
|
49
49
|
cancelAnimationFrame(scrollRafRef.current);
|
|
50
50
|
scrollRafRef.current = null;
|
|
@@ -54,7 +54,7 @@ const useContainerScrollObserver = (callback) => {
|
|
|
54
54
|
update(containerNodeRef.current.scrollTop);
|
|
55
55
|
});
|
|
56
56
|
}, []);
|
|
57
|
-
const setupScroll = react_1.useCallback((node) => {
|
|
57
|
+
const setupScroll = (0, react_1.useCallback)((node) => {
|
|
58
58
|
var _a;
|
|
59
59
|
if (node) {
|
|
60
60
|
containerNodeRef.current = node;
|
|
@@ -69,7 +69,7 @@ const useContainerScrollObserver = (callback) => {
|
|
|
69
69
|
const ref = setupScroll;
|
|
70
70
|
return {
|
|
71
71
|
ref,
|
|
72
|
-
scrollToIndex: react_1.useCallback((index) => {
|
|
72
|
+
scrollToIndex: (0, react_1.useCallback)((index) => {
|
|
73
73
|
const container = containerNodeRef.current;
|
|
74
74
|
const node = container.childNodes[index];
|
|
75
75
|
node.scrollIntoView({
|
|
@@ -5,10 +5,10 @@ function clamp(num, min, max) {
|
|
|
5
5
|
return num <= min ? min : num >= max ? max : num;
|
|
6
6
|
}
|
|
7
7
|
function useDraggable({ onMove, onDrop, getBoundingRect = () => document.body.getBoundingClientRect(), handleSelector, }) {
|
|
8
|
-
const startRef = react_1.useRef();
|
|
9
|
-
const handleRef = react_1.useRef(null);
|
|
10
|
-
const targetRef = react_1.useRef(null);
|
|
11
|
-
const handleRefCallback = react_1.useCallback((newNode) => {
|
|
8
|
+
const startRef = (0, react_1.useRef)();
|
|
9
|
+
const handleRef = (0, react_1.useRef)(null);
|
|
10
|
+
const targetRef = (0, react_1.useRef)(null);
|
|
11
|
+
const handleRefCallback = (0, react_1.useCallback)((newNode) => {
|
|
12
12
|
const oldNode = handleRef.current;
|
|
13
13
|
if (oldNode) {
|
|
14
14
|
oldNode.removeEventListener('mousedown', handleMouseDown);
|
|
@@ -19,7 +19,7 @@ function useDraggable({ onMove, onDrop, getBoundingRect = () => document.body.ge
|
|
|
19
19
|
}
|
|
20
20
|
handleRef.current = newNode;
|
|
21
21
|
}, []);
|
|
22
|
-
react_1.useEffect(() => {
|
|
22
|
+
(0, react_1.useEffect)(() => {
|
|
23
23
|
if (handleSelector) {
|
|
24
24
|
/**
|
|
25
25
|
* Element may not be yet attached.
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useLatest = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const useLatest = (value) => {
|
|
6
|
-
const ref = react_1.useRef(value);
|
|
6
|
+
const ref = (0, react_1.useRef)(value);
|
|
7
7
|
ref.current = value;
|
|
8
|
-
return react_1.useCallback(() => ref.current, []);
|
|
8
|
+
return (0, react_1.useCallback)(() => ref.current, []);
|
|
9
9
|
};
|
|
10
10
|
exports.useLatest = useLatest;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const react_1 = require("react");
|
|
4
4
|
const usePrevious = (value, initialValue) => {
|
|
5
|
-
const ref = react_1.useRef(initialValue);
|
|
6
|
-
react_1.useEffect(() => {
|
|
5
|
+
const ref = (0, react_1.useRef)(initialValue);
|
|
6
|
+
(0, react_1.useEffect)(() => {
|
|
7
7
|
ref.current = value;
|
|
8
8
|
});
|
|
9
9
|
return ref.current;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const react_1 = require("react");
|
|
4
4
|
function usePropState(state, setState, initialState) {
|
|
5
|
-
const [localState, setLocalState] = react_1.useState(initialState);
|
|
5
|
+
const [localState, setLocalState] = (0, react_1.useState)(initialState);
|
|
6
6
|
return [
|
|
7
7
|
state !== undefined ? state : localState,
|
|
8
8
|
setState !== undefined ? setState : setLocalState,
|