@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
|
@@ -13,7 +13,7 @@ const SYSTEM_MAX_TIMEFRAME_SIZE = 86400000; // 24h
|
|
|
13
13
|
exports.observableExpressionFunctions = {
|
|
14
14
|
WHERE: {
|
|
15
15
|
handler(args, context) {
|
|
16
|
-
return expressionFunctionUtils_1.handleWhereFunction(args, context);
|
|
16
|
+
return (0, expressionFunctionUtils_1.handleWhereFunction)(args, context);
|
|
17
17
|
},
|
|
18
18
|
isHiddenFromMenu: true,
|
|
19
19
|
description: 'Splits 2 composed queries, allowing for a main query(lhs) to have a where clause query(rhs) defined',
|
|
@@ -23,32 +23,32 @@ exports.observableExpressionFunctions = {
|
|
|
23
23
|
},
|
|
24
24
|
ROW_CHANGE: {
|
|
25
25
|
handler(args, context) {
|
|
26
|
-
const operandParameter = expressionFunctionUtils_1.extractParameter('ROW_CHANGE', 'operand', ['COUNT', 'MAX', 'MIN', 'NONE'], args);
|
|
27
|
-
const timeframeParameter = expressionFunctionUtils_1.extractParameter('ROW_CHANGE', 'config', ['TIMEFRAME'], args);
|
|
28
|
-
let dataChangeLog$ = expressionFunctionUtils_1.getDataChangeLog$(context, operandParameter.column);
|
|
26
|
+
const operandParameter = (0, expressionFunctionUtils_1.extractParameter)('ROW_CHANGE', 'operand', ['COUNT', 'MAX', 'MIN', 'NONE'], args);
|
|
27
|
+
const timeframeParameter = (0, expressionFunctionUtils_1.extractParameter)('ROW_CHANGE', 'config', ['TIMEFRAME'], args);
|
|
28
|
+
let dataChangeLog$ = (0, expressionFunctionUtils_1.getDataChangeLog$)(context, operandParameter.column);
|
|
29
29
|
switch (operandParameter.name) {
|
|
30
30
|
case 'COUNT': {
|
|
31
31
|
const timeframeChange$ = getTrailingRowCountChange$(dataChangeLog$, timeframeParameter.value, operandParameter.value);
|
|
32
32
|
return getDataChangeCount$(dataChangeLog$, timeframeChange$, operandParameter.value);
|
|
33
33
|
}
|
|
34
34
|
case 'MIN': {
|
|
35
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
35
|
+
(0, expressionFunctionUtils_1.validateColumnType)(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
36
36
|
const timeframeChange$ = getTrailingRowValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
37
37
|
return getDataChangeMin$(dataChangeLog$, timeframeChange$);
|
|
38
38
|
}
|
|
39
39
|
case 'MAX': {
|
|
40
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
40
|
+
(0, expressionFunctionUtils_1.validateColumnType)(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
41
41
|
const timeframeChange$ = getTrailingRowValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
42
42
|
return getDataChangeMax$(dataChangeLog$, timeframeChange$);
|
|
43
43
|
}
|
|
44
44
|
case 'NONE': {
|
|
45
45
|
return dataChangeLog$.pipe(
|
|
46
46
|
// wait for the given time
|
|
47
|
-
operators_1.debounceTime(timeframeParameter.value),
|
|
47
|
+
(0, operators_1.debounceTime)(timeframeParameter.value),
|
|
48
48
|
// completing the observable (ex. alert deletion) will also fire the NONE event
|
|
49
49
|
// takeUntil takes care of this, ignoring any emissions as soon as the source completes
|
|
50
50
|
// (count() result is irrelevant here, the main thing is that it emits an source completion)
|
|
51
|
-
operators_1.takeUntil(dataChangeLog$.pipe(operators_1.count())));
|
|
51
|
+
(0, operators_1.takeUntil)(dataChangeLog$.pipe((0, operators_1.count)())));
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -62,34 +62,34 @@ exports.observableExpressionFunctions = {
|
|
|
62
62
|
},
|
|
63
63
|
GRID_CHANGE: {
|
|
64
64
|
handler(args, context) {
|
|
65
|
-
const operandParameter = expressionFunctionUtils_1.extractParameter('GRID_CHANGE', 'operand', ['COUNT', 'MAX', 'MIN', 'NONE'], args);
|
|
66
|
-
const timeframeParameter = expressionFunctionUtils_1.extractParameter('GRID_CHANGE', 'config', ['TIMEFRAME'], args);
|
|
67
|
-
let dataChangeLog$ = expressionFunctionUtils_1.getDataChangeLog$(context, operandParameter.column);
|
|
65
|
+
const operandParameter = (0, expressionFunctionUtils_1.extractParameter)('GRID_CHANGE', 'operand', ['COUNT', 'MAX', 'MIN', 'NONE'], args);
|
|
66
|
+
const timeframeParameter = (0, expressionFunctionUtils_1.extractParameter)('GRID_CHANGE', 'config', ['TIMEFRAME'], args);
|
|
67
|
+
let dataChangeLog$ = (0, expressionFunctionUtils_1.getDataChangeLog$)(context, operandParameter.column);
|
|
68
68
|
switch (operandParameter.name) {
|
|
69
69
|
case 'COUNT': {
|
|
70
70
|
const timeframeChange$ = getTrailingGridCountChange$(dataChangeLog$, timeframeParameter.value, operandParameter.value);
|
|
71
71
|
return getDataChangeCount$(dataChangeLog$, timeframeChange$, operandParameter.value);
|
|
72
72
|
}
|
|
73
73
|
case 'MIN': {
|
|
74
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
74
|
+
(0, expressionFunctionUtils_1.validateColumnType)(operandParameter.column, ['Number'], 'MIN', context.adaptableApi);
|
|
75
75
|
const timeframeChange$ = getTrailingGridValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
76
76
|
return getDataChangeMin$(dataChangeLog$, timeframeChange$);
|
|
77
77
|
}
|
|
78
78
|
case 'MAX': {
|
|
79
|
-
expressionFunctionUtils_1.validateColumnType(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
79
|
+
(0, expressionFunctionUtils_1.validateColumnType)(operandParameter.column, ['Number'], 'MAX', context.adaptableApi);
|
|
80
80
|
const timeframeChange$ = getTrailingGridValueChange$(dataChangeLog$, timeframeParameter.value);
|
|
81
81
|
return getDataChangeMax$(dataChangeLog$, timeframeChange$);
|
|
82
82
|
}
|
|
83
83
|
case 'NONE': {
|
|
84
84
|
return dataChangeLog$.pipe(
|
|
85
85
|
// add a synthetic first value to ensure the grid is observed even when there are no changes
|
|
86
|
-
operators_1.startWith(getDataChangedInfoStub(context)),
|
|
86
|
+
(0, operators_1.startWith)(getDataChangedInfoStub(context)),
|
|
87
87
|
// wait for the given time
|
|
88
|
-
operators_1.debounceTime(timeframeParameter.value),
|
|
88
|
+
(0, operators_1.debounceTime)(timeframeParameter.value),
|
|
89
89
|
// completing the observable (ex. alert deletion) will also fire the NONE event
|
|
90
90
|
// takeUntil takes care of this, ignoring any emissions as soon as the source completes
|
|
91
91
|
// (count() result is irrelevant here, the main thing is that it emits an source completion)
|
|
92
|
-
operators_1.takeUntil(dataChangeLog$.pipe(operators_1.count())));
|
|
92
|
+
(0, operators_1.takeUntil)(dataChangeLog$.pipe((0, operators_1.count)())));
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
},
|
|
@@ -103,7 +103,7 @@ exports.observableExpressionFunctions = {
|
|
|
103
103
|
},
|
|
104
104
|
COL: {
|
|
105
105
|
handler(args, context) {
|
|
106
|
-
return expressionFunctionUtils_1.handleColumnFunction(args, context);
|
|
106
|
+
return (0, expressionFunctionUtils_1.handleColumnFunction)(args, context);
|
|
107
107
|
},
|
|
108
108
|
description: 'References a column by its unique identifier',
|
|
109
109
|
signatures: ['[colName]', 'COL(name: string)'],
|
|
@@ -111,7 +111,7 @@ exports.observableExpressionFunctions = {
|
|
|
111
111
|
},
|
|
112
112
|
COUNT: {
|
|
113
113
|
handler(args) {
|
|
114
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('COUNT', args);
|
|
114
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('COUNT', args);
|
|
115
115
|
const countValue = args.find((arg) => typeof arg === 'number');
|
|
116
116
|
if (countValue == null || countValue <= 0) {
|
|
117
117
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COUNT', 'expects a positive number as argument');
|
|
@@ -133,7 +133,7 @@ exports.observableExpressionFunctions = {
|
|
|
133
133
|
},
|
|
134
134
|
NONE: {
|
|
135
135
|
handler(args) {
|
|
136
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('NONE', args);
|
|
136
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('NONE', args);
|
|
137
137
|
const result = {
|
|
138
138
|
type: 'operand',
|
|
139
139
|
name: 'NONE',
|
|
@@ -147,7 +147,7 @@ exports.observableExpressionFunctions = {
|
|
|
147
147
|
},
|
|
148
148
|
MIN: {
|
|
149
149
|
handler(args) {
|
|
150
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('MIN', args);
|
|
150
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('MIN', args);
|
|
151
151
|
const result = {
|
|
152
152
|
type: 'operand',
|
|
153
153
|
name: 'MIN',
|
|
@@ -161,7 +161,7 @@ exports.observableExpressionFunctions = {
|
|
|
161
161
|
},
|
|
162
162
|
MAX: {
|
|
163
163
|
handler(args) {
|
|
164
|
-
const columnParameter = expressionFunctionUtils_1.extractColumnParameter('MAX', args);
|
|
164
|
+
const columnParameter = (0, expressionFunctionUtils_1.extractColumnParameter)('MAX', args);
|
|
165
165
|
const result = {
|
|
166
166
|
type: 'operand',
|
|
167
167
|
name: 'MAX',
|
|
@@ -189,7 +189,7 @@ exports.observableExpressionFunctions = {
|
|
|
189
189
|
const unit = (_a = matchingResult === null || matchingResult === void 0 ? void 0 : matchingResult[2]) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
190
190
|
let duration;
|
|
191
191
|
if (value && unit && durationUnitRatios[unit]) {
|
|
192
|
-
duration = parseInt_1.default(value) * durationUnitRatios[unit];
|
|
192
|
+
duration = (0, parseInt_1.default)(value) * durationUnitRatios[unit];
|
|
193
193
|
}
|
|
194
194
|
if (!duration) {
|
|
195
195
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('TIMEFRAME', `timeframe expression is invalid`);
|
|
@@ -265,27 +265,27 @@ const getDataChangedInfoStub = (context) => {
|
|
|
265
265
|
};
|
|
266
266
|
// returns an observable which fires if the source$ emitted `targetCount` times in the given `timeframeChange$` period
|
|
267
267
|
const getDataChangeCount$ = (dataChangeLog$, timeframeChange$, targetCount) => {
|
|
268
|
-
return dataChangeLog$.pipe(operators_1.withLatestFrom(timeframeChange$), operators_1.filter(([_, changeCountWithinTimeframe]) => {
|
|
268
|
+
return dataChangeLog$.pipe((0, operators_1.withLatestFrom)(timeframeChange$), (0, operators_1.filter)(([_, changeCountWithinTimeframe]) => {
|
|
269
269
|
return targetCount === changeCountWithinTimeframe;
|
|
270
|
-
}), operators_1.map(([source]) => source));
|
|
270
|
+
}), (0, operators_1.map)(([source]) => source));
|
|
271
271
|
};
|
|
272
272
|
// returns an observable which fires if the last source$ emission had the lowest(min) value in the given `timeframeChange$` period
|
|
273
273
|
const getDataChangeMin$ = (dataChangeLog$, timeframeChange$) => {
|
|
274
|
-
return dataChangeLog$.pipe(operators_1.withLatestFrom(timeframeChange$), operators_1.filter(([changeLog, values]) => {
|
|
274
|
+
return dataChangeLog$.pipe((0, operators_1.withLatestFrom)(timeframeChange$), (0, operators_1.filter)(([changeLog, values]) => {
|
|
275
275
|
return values.length > 1
|
|
276
276
|
? isLastElementMinValue(values)
|
|
277
|
-
: expressionFunctionUtils_1.getNumericValue(changeLog.oldValue) > expressionFunctionUtils_1.getNumericValue(changeLog.newValue);
|
|
278
|
-
}), operators_1.map(([changeLog]) => {
|
|
277
|
+
: (0, expressionFunctionUtils_1.getNumericValue)(changeLog.oldValue) > (0, expressionFunctionUtils_1.getNumericValue)(changeLog.newValue);
|
|
278
|
+
}), (0, operators_1.map)(([changeLog]) => {
|
|
279
279
|
return changeLog;
|
|
280
280
|
}));
|
|
281
281
|
};
|
|
282
282
|
// returns an observable which fires if the last source$ emission had the highest(max) value in the given `timeframeChange$` period
|
|
283
283
|
const getDataChangeMax$ = (dataChangeLog$, timeframeChange$) => {
|
|
284
|
-
return dataChangeLog$.pipe(operators_1.withLatestFrom(timeframeChange$), operators_1.filter(([changeLog, values]) => {
|
|
284
|
+
return dataChangeLog$.pipe((0, operators_1.withLatestFrom)(timeframeChange$), (0, operators_1.filter)(([changeLog, values]) => {
|
|
285
285
|
return values.length > 1
|
|
286
286
|
? isLastElementMaxValue(values)
|
|
287
|
-
: expressionFunctionUtils_1.getNumericValue(changeLog.oldValue) < expressionFunctionUtils_1.getNumericValue(changeLog.newValue);
|
|
288
|
-
}), operators_1.map(([changeLog]) => {
|
|
287
|
+
: (0, expressionFunctionUtils_1.getNumericValue)(changeLog.oldValue) < (0, expressionFunctionUtils_1.getNumericValue)(changeLog.newValue);
|
|
288
|
+
}), (0, operators_1.map)(([changeLog]) => {
|
|
289
289
|
return changeLog;
|
|
290
290
|
}));
|
|
291
291
|
};
|
|
@@ -293,7 +293,7 @@ const getDataChangeMax$ = (dataChangeLog$, timeframeChange$) => {
|
|
|
293
293
|
// the counter is continuously up-to-date in the given timeframe
|
|
294
294
|
// if the given counterLimit is reached, the counter is reset
|
|
295
295
|
const getTrailingGridCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
296
|
-
return rxjs_1.defer(() => {
|
|
296
|
+
return (0, rxjs_1.defer)(() => {
|
|
297
297
|
// keep the counter value in an internal intermediary state
|
|
298
298
|
let counter = 0;
|
|
299
299
|
const movingTimeWindow$ = getSlidingTimeframe$(source$, trailingPeriod, (dataChangeLog) => {
|
|
@@ -304,7 +304,7 @@ const getTrailingGridCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
|
304
304
|
counter--;
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
|
-
return movingTimeWindow$.pipe(operators_1.map(() => {
|
|
307
|
+
return movingTimeWindow$.pipe((0, operators_1.map)(() => {
|
|
308
308
|
const gridCounter = counter;
|
|
309
309
|
if (gridCounter === counterLimit) {
|
|
310
310
|
// reset counter
|
|
@@ -318,7 +318,7 @@ const getTrailingGridCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
|
318
318
|
// the counter is continuously up-to-date in the given timeframe
|
|
319
319
|
// if the given counterLimit is reached, the counter is reset
|
|
320
320
|
const getTrailingRowCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
321
|
-
return rxjs_1.defer(() => {
|
|
321
|
+
return (0, rxjs_1.defer)(() => {
|
|
322
322
|
// keep the counter value in an internal intermediary state (distinct per row PK)
|
|
323
323
|
const counterMap = new Map();
|
|
324
324
|
const getCellCounter = (dataChangeLog) => { var _a; return (_a = counterMap.get(dataChangeLog.primaryKeyValue)) !== null && _a !== void 0 ? _a : 0; };
|
|
@@ -332,7 +332,7 @@ const getTrailingRowCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
|
332
332
|
counterMap.set(dataChangeLog.primaryKeyValue, --currentCounter);
|
|
333
333
|
}
|
|
334
334
|
});
|
|
335
|
-
return slidingTimeframe$.pipe(operators_1.map((dataChangeLog) => {
|
|
335
|
+
return slidingTimeframe$.pipe((0, operators_1.map)((dataChangeLog) => {
|
|
336
336
|
const cellCounter = getCellCounter(dataChangeLog);
|
|
337
337
|
if (cellCounter === counterLimit) {
|
|
338
338
|
// reset counter
|
|
@@ -345,18 +345,18 @@ const getTrailingRowCountChange$ = (source$, trailingPeriod, counterLimit) => {
|
|
|
345
345
|
// returns an observable which maps a dataChangeLogEntry to the array of changed values in the entire grid
|
|
346
346
|
// the changed values array is continuously up-to-date in the given timeframe
|
|
347
347
|
const getTrailingGridValueChange$ = (source$, trailingPeriod) => {
|
|
348
|
-
return rxjs_1.defer(() => {
|
|
348
|
+
return (0, rxjs_1.defer)(() => {
|
|
349
349
|
// keep the changed values in an internal intermediary state
|
|
350
350
|
let values = [];
|
|
351
351
|
const doubleInsertionsMap = new WeakMap();
|
|
352
352
|
const slidingTimeframe$ = getSlidingTimeframe$(source$, trailingPeriod, (dataChangeLog) => {
|
|
353
353
|
if (!values.length) {
|
|
354
354
|
// values is empty, so we evaluate both old & new node values
|
|
355
|
-
values.push(expressionFunctionUtils_1.getNumericValue(dataChangeLog.oldValue));
|
|
355
|
+
values.push((0, expressionFunctionUtils_1.getNumericValue)(dataChangeLog.oldValue));
|
|
356
356
|
// mark the double insertion, we will have to pop 2 elements
|
|
357
357
|
doubleInsertionsMap.set(dataChangeLog, true);
|
|
358
358
|
}
|
|
359
|
-
values.push(expressionFunctionUtils_1.getNumericValue(dataChangeLog.newValue));
|
|
359
|
+
values.push((0, expressionFunctionUtils_1.getNumericValue)(dataChangeLog.newValue));
|
|
360
360
|
}, (dataChangeLog) => {
|
|
361
361
|
values.shift();
|
|
362
362
|
if (doubleInsertionsMap.get(dataChangeLog)) {
|
|
@@ -365,13 +365,13 @@ const getTrailingGridValueChange$ = (source$, trailingPeriod) => {
|
|
|
365
365
|
doubleInsertionsMap.delete(dataChangeLog);
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
|
-
return slidingTimeframe$.pipe(operators_1.map(() => values));
|
|
368
|
+
return slidingTimeframe$.pipe((0, operators_1.map)(() => values));
|
|
369
369
|
});
|
|
370
370
|
};
|
|
371
371
|
// returns an observable which maps a dataChangeLogEntry to the array of changed values in the row of the given dataChangeLogEntry
|
|
372
372
|
// the changed values array is continuously up-to-date in the given timeframe
|
|
373
373
|
const getTrailingRowValueChange$ = (source$, trailingPeriod) => {
|
|
374
|
-
return rxjs_1.defer(() => {
|
|
374
|
+
return (0, rxjs_1.defer)(() => {
|
|
375
375
|
// keep the changed values in an internal intermediary state (distinct per row PK)
|
|
376
376
|
const rowValuesMap = new Map();
|
|
377
377
|
const doubleInsertionsMap = new WeakMap();
|
|
@@ -380,11 +380,11 @@ const getTrailingRowValueChange$ = (source$, trailingPeriod) => {
|
|
|
380
380
|
let rowValues = getRowValues(dataChangeLog);
|
|
381
381
|
if (!rowValues.length) {
|
|
382
382
|
// values is empty, so we evaluate both old & new node values
|
|
383
|
-
rowValues.push(expressionFunctionUtils_1.getNumericValue(dataChangeLog.oldValue));
|
|
383
|
+
rowValues.push((0, expressionFunctionUtils_1.getNumericValue)(dataChangeLog.oldValue));
|
|
384
384
|
// mark the double insertion, we will have to pop 2 elements
|
|
385
385
|
doubleInsertionsMap.set(dataChangeLog, true);
|
|
386
386
|
}
|
|
387
|
-
rowValues.push(expressionFunctionUtils_1.getNumericValue(dataChangeLog.newValue));
|
|
387
|
+
rowValues.push((0, expressionFunctionUtils_1.getNumericValue)(dataChangeLog.newValue));
|
|
388
388
|
rowValuesMap.set(dataChangeLog.primaryKeyValue, rowValues);
|
|
389
389
|
}, (dataChangeLog) => {
|
|
390
390
|
let rowValues = getRowValues(dataChangeLog);
|
|
@@ -396,7 +396,7 @@ const getTrailingRowValueChange$ = (source$, trailingPeriod) => {
|
|
|
396
396
|
}
|
|
397
397
|
rowValuesMap.set(dataChangeLog.primaryKeyValue, rowValues);
|
|
398
398
|
});
|
|
399
|
-
return slidingTimeframe$.pipe(operators_1.map((dataChangeLog) => getRowValues(dataChangeLog)));
|
|
399
|
+
return slidingTimeframe$.pipe((0, operators_1.map)((dataChangeLog) => getRowValues(dataChangeLog)));
|
|
400
400
|
});
|
|
401
401
|
};
|
|
402
402
|
// return an observable which will emit when the source$ event enters, respectively exits the timeframe
|
|
@@ -404,16 +404,16 @@ const getTrailingRowValueChange$ = (source$, trailingPeriod) => {
|
|
|
404
404
|
const getSlidingTimeframe$ = (source$, timeframeDuration, onTimeframeEnter, onTimeframeExit) => {
|
|
405
405
|
return source$.pipe(
|
|
406
406
|
// create intermediary observable which, for each emission from source$:
|
|
407
|
-
operators_1.mergeMap((dataChangeLog) => {
|
|
407
|
+
(0, operators_1.mergeMap)((dataChangeLog) => {
|
|
408
408
|
// 1. it will emit the payload immediately...
|
|
409
|
-
const enter$ = rxjs_1.of(dataChangeLog).pipe(
|
|
409
|
+
const enter$ = (0, rxjs_1.of)(dataChangeLog).pipe(
|
|
410
410
|
// ...and execute the provided onPushHandler() callback
|
|
411
|
-
operators_1.tap((dataChangeLog) => onTimeframeEnter(dataChangeLog)));
|
|
411
|
+
(0, operators_1.tap)((dataChangeLog) => onTimeframeEnter(dataChangeLog)));
|
|
412
412
|
// 2. and after a given 'timeWindowSize' delay it will re-emit the payload...
|
|
413
|
-
const exit$ = rxjs_1.of(dataChangeLog).pipe(operators_1.delay(timeframeDuration),
|
|
413
|
+
const exit$ = (0, rxjs_1.of)(dataChangeLog).pipe((0, operators_1.delay)(timeframeDuration),
|
|
414
414
|
// ...and execute the provided onPopHandler() callback
|
|
415
|
-
operators_1.tap((dataChangeLog) => onTimeframeExit(dataChangeLog)));
|
|
416
|
-
return rxjs_1.of(enter$, exit$).pipe(operators_1.mergeAll());
|
|
415
|
+
(0, operators_1.tap)((dataChangeLog) => onTimeframeExit(dataChangeLog)));
|
|
416
|
+
return (0, rxjs_1.of)(enter$, exit$).pipe((0, operators_1.mergeAll)());
|
|
417
417
|
}));
|
|
418
418
|
};
|
|
419
419
|
const getMaxTimeframeSize = (expressionValue, context) => {
|
|
@@ -150,7 +150,7 @@ exports.scalarExpressionFunctions = {
|
|
|
150
150
|
},
|
|
151
151
|
DATE: {
|
|
152
152
|
handler(args) {
|
|
153
|
-
return parseISO_1.default(args[0]);
|
|
153
|
+
return (0, parseISO_1.default)(args[0]);
|
|
154
154
|
},
|
|
155
155
|
description: 'Returns a new date by parsing the given string in ISO 8601 format',
|
|
156
156
|
signatures: [
|
|
@@ -171,7 +171,7 @@ exports.scalarExpressionFunctions = {
|
|
|
171
171
|
},
|
|
172
172
|
TODAY: {
|
|
173
173
|
handler() {
|
|
174
|
-
return startOfDay_1.default(new Date());
|
|
174
|
+
return (0, startOfDay_1.default)(new Date());
|
|
175
175
|
},
|
|
176
176
|
description: 'Returns the current day',
|
|
177
177
|
signatures: ['TODAY()'],
|
|
@@ -179,7 +179,7 @@ exports.scalarExpressionFunctions = {
|
|
|
179
179
|
},
|
|
180
180
|
DAY: {
|
|
181
181
|
handler(args) {
|
|
182
|
-
return startOfDay_1.default(args[0]);
|
|
182
|
+
return (0, startOfDay_1.default)(args[0]);
|
|
183
183
|
},
|
|
184
184
|
description: 'Returns the day from a date',
|
|
185
185
|
signatures: ['DAY(input: date)'],
|
|
@@ -187,7 +187,7 @@ exports.scalarExpressionFunctions = {
|
|
|
187
187
|
},
|
|
188
188
|
WEEK: {
|
|
189
189
|
handler(args) {
|
|
190
|
-
return startOfWeek_1.default(args[0]);
|
|
190
|
+
return (0, startOfWeek_1.default)(args[0]);
|
|
191
191
|
},
|
|
192
192
|
description: 'Returns the week from a date',
|
|
193
193
|
signatures: ['WEEK(input: date)'],
|
|
@@ -195,7 +195,7 @@ exports.scalarExpressionFunctions = {
|
|
|
195
195
|
},
|
|
196
196
|
MONTH: {
|
|
197
197
|
handler(args) {
|
|
198
|
-
return startOfMonth_1.default(args[0]);
|
|
198
|
+
return (0, startOfMonth_1.default)(args[0]);
|
|
199
199
|
},
|
|
200
200
|
description: 'Returns the month from a date',
|
|
201
201
|
signatures: ['MONTH(input: date)'],
|
|
@@ -203,7 +203,7 @@ exports.scalarExpressionFunctions = {
|
|
|
203
203
|
},
|
|
204
204
|
YEAR: {
|
|
205
205
|
handler(args) {
|
|
206
|
-
return startOfYear_1.default(args[0]);
|
|
206
|
+
return (0, startOfYear_1.default)(args[0]);
|
|
207
207
|
},
|
|
208
208
|
description: 'Returns the year from a date',
|
|
209
209
|
signatures: ['YEAR(input: date)'],
|
|
@@ -211,7 +211,7 @@ exports.scalarExpressionFunctions = {
|
|
|
211
211
|
},
|
|
212
212
|
ADD_DAYS: {
|
|
213
213
|
handler(args) {
|
|
214
|
-
return addDays_1.default(args[0], args[1]);
|
|
214
|
+
return (0, addDays_1.default)(args[0], args[1]);
|
|
215
215
|
},
|
|
216
216
|
description: 'Returns a date based on input data and days to add',
|
|
217
217
|
signatures: ['ADD_DAYS(input: date, days: number)'],
|
|
@@ -219,7 +219,7 @@ exports.scalarExpressionFunctions = {
|
|
|
219
219
|
},
|
|
220
220
|
ADD_WEEKS: {
|
|
221
221
|
handler(args) {
|
|
222
|
-
return addWeeks_1.default(args[0], args[1]);
|
|
222
|
+
return (0, addWeeks_1.default)(args[0], args[1]);
|
|
223
223
|
},
|
|
224
224
|
description: 'Returns a date based on input data and weeks to add',
|
|
225
225
|
signatures: ['ADD_WEEKS(input: date, weeks: number)'],
|
|
@@ -227,7 +227,7 @@ exports.scalarExpressionFunctions = {
|
|
|
227
227
|
},
|
|
228
228
|
ADD_MONTHS: {
|
|
229
229
|
handler(args) {
|
|
230
|
-
return addMonths_1.default(args[0], args[1]);
|
|
230
|
+
return (0, addMonths_1.default)(args[0], args[1]);
|
|
231
231
|
},
|
|
232
232
|
description: 'Returns a date based on input data and months to add',
|
|
233
233
|
signatures: ['ADD_MONTHS(input: date, months: number)'],
|
|
@@ -235,7 +235,7 @@ exports.scalarExpressionFunctions = {
|
|
|
235
235
|
},
|
|
236
236
|
ADD_YEARS: {
|
|
237
237
|
handler(args) {
|
|
238
|
-
return addYears_1.default(args[0], args[1]);
|
|
238
|
+
return (0, addYears_1.default)(args[0], args[1]);
|
|
239
239
|
},
|
|
240
240
|
description: 'Returns a date based on input data and years to add',
|
|
241
241
|
signatures: ['ADD_YEARS(input: date, years: number)'],
|
|
@@ -243,8 +243,8 @@ exports.scalarExpressionFunctions = {
|
|
|
243
243
|
},
|
|
244
244
|
DIFF_DAYS: {
|
|
245
245
|
handler(args) {
|
|
246
|
-
const [first, second] = dateUtils_1.normalizeDateParams(args);
|
|
247
|
-
const result = differenceInDays_1.default(first, second);
|
|
246
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
247
|
+
const result = (0, differenceInDays_1.default)(first, second);
|
|
248
248
|
return sanitizeNumericResult(result);
|
|
249
249
|
},
|
|
250
250
|
description: 'Returns the difference in days between 2 dates',
|
|
@@ -253,8 +253,8 @@ exports.scalarExpressionFunctions = {
|
|
|
253
253
|
},
|
|
254
254
|
DIFF_WEEKS: {
|
|
255
255
|
handler(args) {
|
|
256
|
-
const [first, second] = dateUtils_1.normalizeDateParams(args);
|
|
257
|
-
const result = differenceInWeeks_1.default(first, second);
|
|
256
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
257
|
+
const result = (0, differenceInWeeks_1.default)(first, second);
|
|
258
258
|
return sanitizeNumericResult(result);
|
|
259
259
|
},
|
|
260
260
|
description: 'Returns the difference in weeks between 2 dates',
|
|
@@ -263,8 +263,8 @@ exports.scalarExpressionFunctions = {
|
|
|
263
263
|
},
|
|
264
264
|
DIFF_MONTHS: {
|
|
265
265
|
handler(args) {
|
|
266
|
-
const [first, second] = dateUtils_1.normalizeDateParams(args);
|
|
267
|
-
const result = differenceInMonths_1.default(first, second);
|
|
266
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
267
|
+
const result = (0, differenceInMonths_1.default)(first, second);
|
|
268
268
|
return sanitizeNumericResult(result);
|
|
269
269
|
},
|
|
270
270
|
description: 'Returns the difference in months between 2 dates',
|
|
@@ -273,8 +273,8 @@ exports.scalarExpressionFunctions = {
|
|
|
273
273
|
},
|
|
274
274
|
DIFF_YEARS: {
|
|
275
275
|
handler(args) {
|
|
276
|
-
const [first, second] = dateUtils_1.normalizeDateParams(args);
|
|
277
|
-
const result = differenceInYears_1.default(first, second);
|
|
276
|
+
const [first, second] = (0, dateUtils_1.normalizeDateParams)(args);
|
|
277
|
+
const result = (0, differenceInYears_1.default)(first, second);
|
|
278
278
|
return sanitizeNumericResult(result);
|
|
279
279
|
},
|
|
280
280
|
description: 'Returns the difference in years between 2 dates',
|
|
@@ -315,7 +315,7 @@ exports.scalarExpressionFunctions = {
|
|
|
315
315
|
},
|
|
316
316
|
REPLACE: {
|
|
317
317
|
handler(args, context) {
|
|
318
|
-
if (expressionFunctionUtils_1.isTextSearchCaseInsensitive(context)) {
|
|
318
|
+
if ((0, expressionFunctionUtils_1.isTextSearchCaseInsensitive)(context)) {
|
|
319
319
|
return String(args[0]).replace(new RegExp(args[1], 'ig'), args[2]);
|
|
320
320
|
}
|
|
321
321
|
else {
|
|
@@ -74,7 +74,7 @@ function CapitaliseFirstLetter(str) {
|
|
|
74
74
|
}
|
|
75
75
|
exports.CapitaliseFirstLetter = CapitaliseFirstLetter;
|
|
76
76
|
function Humanize(str) {
|
|
77
|
-
return startCase_1.default(str);
|
|
77
|
+
return (0, startCase_1.default)(str);
|
|
78
78
|
}
|
|
79
79
|
exports.Humanize = Humanize;
|
|
80
80
|
function ReplaceEmptySpacesWithUnderscore(str = '') {
|
|
@@ -52,13 +52,13 @@ function initPredefinedConfigWithUuids(predefinedConfig) {
|
|
|
52
52
|
// so whenever we clone a plain object,
|
|
53
53
|
// we add a Uuid property
|
|
54
54
|
// jw added 9/8/20: unless there is on there already
|
|
55
|
-
if (isPlainObject_1.default(value) && value != predefinedConfig) {
|
|
55
|
+
if ((0, isPlainObject_1.default)(value) && value != predefinedConfig) {
|
|
56
56
|
if (value.Uuid == null || value.Uuid == undefined) {
|
|
57
|
-
value.Uuid = Uuid_1.createUuid();
|
|
57
|
+
value.Uuid = (0, Uuid_1.createUuid)();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
return cloneDeepWith_1.default(predefinedConfig, customizer);
|
|
61
|
+
return (0, cloneDeepWith_1.default)(predefinedConfig, customizer);
|
|
62
62
|
}
|
|
63
63
|
exports.initPredefinedConfigWithUuids = initPredefinedConfigWithUuids;
|
|
64
64
|
function checkValidPrimaryKey(adaptable) {
|
|
@@ -71,7 +71,7 @@ function checkValidPrimaryKey(adaptable) {
|
|
|
71
71
|
}
|
|
72
72
|
else {
|
|
73
73
|
if (adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning == true) {
|
|
74
|
-
LoggingHelper_1.ConsoleLogError(errorMessage);
|
|
74
|
+
(0, LoggingHelper_1.ConsoleLogError)(errorMessage);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
return false;
|
|
@@ -132,7 +132,7 @@ function runAdaptableComparerFunction(columnId, columnValues, adaptable) {
|
|
|
132
132
|
exports.runAdaptableComparerFunction = runAdaptableComparerFunction;
|
|
133
133
|
function addAdaptableObjectUuidAndSource(adaptableObject) {
|
|
134
134
|
if (!adaptableObject.Uuid) {
|
|
135
|
-
adaptableObject.Uuid = Uuid_1.createUuid();
|
|
135
|
+
adaptableObject.Uuid = (0, Uuid_1.createUuid)();
|
|
136
136
|
}
|
|
137
137
|
adaptableObject.Source = 'User';
|
|
138
138
|
return adaptableObject;
|
|
@@ -24,16 +24,16 @@ const isValueValidDate = (data) => {
|
|
|
24
24
|
};
|
|
25
25
|
exports.isValueValidDate = isValueValidDate;
|
|
26
26
|
const dateToISO = (date) => {
|
|
27
|
-
return FormatHelper_1.DateFormatter(date, { Pattern: 'yyyy-MM-dd' });
|
|
27
|
+
return (0, FormatHelper_1.DateFormatter)(date, { Pattern: 'yyyy-MM-dd' });
|
|
28
28
|
};
|
|
29
29
|
exports.dateToISO = dateToISO;
|
|
30
30
|
const parseToISO = (date, dateFormat) => {
|
|
31
|
-
const dateInstance = exports.parseDateValue(date, dateFormat);
|
|
32
|
-
return exports.isValidDate(dateInstance) ? exports.dateToISO(dateInstance) : '';
|
|
31
|
+
const dateInstance = (0, exports.parseDateValue)(date, dateFormat);
|
|
32
|
+
return (0, exports.isValidDate)(dateInstance) ? (0, exports.dateToISO)(dateInstance) : '';
|
|
33
33
|
};
|
|
34
34
|
exports.parseToISO = parseToISO;
|
|
35
35
|
const parseDateValue = (dateValue, dateFormat) => {
|
|
36
|
-
if (dateValue == undefined) {
|
|
36
|
+
if (dateValue == undefined || (typeof dateValue === 'string' && dateValue.trim() === '')) {
|
|
37
37
|
return undefined;
|
|
38
38
|
}
|
|
39
39
|
if (dateValue instanceof Date) {
|
|
@@ -46,18 +46,18 @@ const parseDateValue = (dateValue, dateFormat) => {
|
|
|
46
46
|
else {
|
|
47
47
|
// typeof dateValue === 'string'
|
|
48
48
|
if (dateFormat) {
|
|
49
|
-
dateInstance = parse_1.default(dateValue, dateFormat, new Date());
|
|
49
|
+
dateInstance = (0, parse_1.default)(dateValue, dateFormat, new Date());
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
dateInstance = parseISO_1.default(dateValue);
|
|
52
|
+
dateInstance = (0, parseISO_1.default)(dateValue);
|
|
53
53
|
}
|
|
54
|
-
if (!exports.isValidDate(dateInstance)) {
|
|
54
|
+
if (!(0, exports.isValidDate)(dateInstance)) {
|
|
55
55
|
// last chance: try to use the native Date.parse(), https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse
|
|
56
56
|
dateInstance = new Date(Date.parse(dateValue));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
if (!exports.isValidDate(dateInstance)) {
|
|
60
|
-
LoggingHelper_1.LogAdaptableError(`Invalid date value "${dateValue}" - cannot be converted to a Date instance. Please make sure you specify adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat correctly.`);
|
|
59
|
+
if (!(0, exports.isValidDate)(dateInstance)) {
|
|
60
|
+
(0, LoggingHelper_1.LogAdaptableError)(`Invalid date value "${dateValue}" - cannot be converted to a Date instance. Please make sure you specify adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat correctly.`);
|
|
61
61
|
dateInstance = undefined;
|
|
62
62
|
}
|
|
63
63
|
return dateInstance;
|
|
@@ -80,7 +80,7 @@ function DateFormatter(input, options) {
|
|
|
80
80
|
if (typeof input === 'string') {
|
|
81
81
|
input = new Date(input);
|
|
82
82
|
}
|
|
83
|
-
return format_1.default(input, (options === null || options === void 0 ? void 0 : options.Pattern) || GeneralConstants_1.DEFAULT_DATE_FORMAT_PATTERN);
|
|
83
|
+
return (0, format_1.default)(input, (options === null || options === void 0 ? void 0 : options.Pattern) || GeneralConstants_1.DEFAULT_DATE_FORMAT_PATTERN);
|
|
84
84
|
}
|
|
85
85
|
catch (error) {
|
|
86
86
|
return input;
|
|
@@ -106,7 +106,7 @@ function StringFormatter(input, options = {}) {
|
|
|
106
106
|
s = s.toUpperCase();
|
|
107
107
|
}
|
|
108
108
|
else if (options.Case == 'Sentence') {
|
|
109
|
-
s = sentence_case_1.sentenceCase(s);
|
|
109
|
+
s = (0, sentence_case_1.sentenceCase)(s);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
if (options.Trim !== undefined && options.Trim == true) {
|
|
@@ -65,13 +65,7 @@ exports.convertArrayToCsv = convertArrayToCsv;
|
|
|
65
65
|
function createDownloadedFile(content, fileName, mimeType) {
|
|
66
66
|
let a = document.createElement('a');
|
|
67
67
|
mimeType = mimeType || 'application/octet-stream';
|
|
68
|
-
if (
|
|
69
|
-
// IE10
|
|
70
|
-
navigator.msSaveBlob(new Blob([content], {
|
|
71
|
-
type: mimeType,
|
|
72
|
-
}), fileName);
|
|
73
|
-
}
|
|
74
|
-
else if (URL && 'download' in a) {
|
|
68
|
+
if (URL && 'download' in a) {
|
|
75
69
|
// html5 A[download]
|
|
76
70
|
a.href = URL.createObjectURL(new Blob([content], {
|
|
77
71
|
type: mimeType,
|
|
@@ -110,14 +104,14 @@ function copyToClipboard(text) {
|
|
|
110
104
|
return document.execCommand('copy'); // Security exception may be thrown by some browsers.
|
|
111
105
|
}
|
|
112
106
|
catch (ex) {
|
|
113
|
-
LoggingHelper_1.LogAdaptableWarning('Copy to clipboard failed.', ex);
|
|
107
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('Copy to clipboard failed.', ex);
|
|
114
108
|
return false;
|
|
115
109
|
}
|
|
116
110
|
finally {
|
|
117
111
|
document.body.removeChild(textarea);
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
|
-
LoggingHelper_1.LogAdaptableWarning('Copy not available on this computer.');
|
|
114
|
+
(0, LoggingHelper_1.LogAdaptableWarning)('Copy not available on this computer.');
|
|
121
115
|
}
|
|
122
116
|
exports.copyToClipboard = copyToClipboard;
|
|
123
117
|
function ReturnItemCount(items, itemName) {
|
|
@@ -108,4 +108,4 @@ function ConsoleLog(message, ...optionalParams) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
exports.ConsoleLog = ConsoleLog;
|
|
111
|
-
_a = exports.getLoggingFunctions(), exports.LogAdaptableError = _a.LogAdaptableError, exports.LogAdaptableInfo = _a.LogAdaptableInfo, exports.LogAdaptableSuccess = _a.LogAdaptableSuccess, exports.LogAdaptableWarning = _a.LogAdaptableWarning;
|
|
111
|
+
_a = (0, exports.getLoggingFunctions)(), exports.LogAdaptableError = _a.LogAdaptableError, exports.LogAdaptableInfo = _a.LogAdaptableInfo, exports.LogAdaptableSuccess = _a.LogAdaptableSuccess, exports.LogAdaptableWarning = _a.LogAdaptableWarning;
|
|
@@ -45,7 +45,7 @@ const convertCSSAbsoluteFontSizeToPt = (fontSize) => {
|
|
|
45
45
|
};
|
|
46
46
|
exports.convertCSSAbsoluteFontSizeToPt = convertCSSAbsoluteFontSizeToPt;
|
|
47
47
|
const toStyle = (style) => {
|
|
48
|
-
return Object.assign(Object.assign({}, exports.convertAdaptableStyleToCSS(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
48
|
+
return Object.assign(Object.assign({}, (0, exports.convertAdaptableStyleToCSS)(style !== null && style !== void 0 ? style : {})), { borderWidth: (style === null || style === void 0 ? void 0 : style.BorderColor) ? 2 : 0, borderStyle: 'solid' });
|
|
49
49
|
};
|
|
50
50
|
exports.toStyle = toStyle;
|
|
51
51
|
const getVariableColor = (variable) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertDefinition } from '../../PredefinedConfig/AlertState';
|
|
2
|
-
import { RowNode } from '@ag-grid-community/
|
|
2
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
3
3
|
import { AdaptableColumn } from '../../../types';
|
|
4
4
|
export interface PreviewInfo {
|
|
5
5
|
column: AdaptableColumn;
|
|
@@ -25,7 +25,7 @@ import { SystemStatusMessageInfo } from '../PredefinedConfig/Common/SystemStatus
|
|
|
25
25
|
import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
|
|
26
26
|
import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
|
|
27
27
|
import { ColumnFilter, CustomDisplayFormatterContext, FlashingCellDefinition, GridDataChangedInfo, SystemFilterPredicateId } from '../types';
|
|
28
|
-
import { RowNode } from '@ag-grid-community/
|
|
28
|
+
import { RowNode } from '@ag-grid-community/core';
|
|
29
29
|
import { AdaptableApi } from '../../types';
|
|
30
30
|
import { ToastOptions } from '../components/Toastify';
|
|
31
31
|
export declare function CreateEmptyCustomSort(): CustomSort;
|