@adaptabletools/adaptable 12.0.0-canary.3 → 12.0.0-canary.6
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 +26 -0
- package/bundle.cjs.js +102 -99
- package/index.css +34 -0
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/ActionOptions.d.ts +181 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +17 -2
- package/src/AdaptableOptions/EditOptions.d.ts +7 -80
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- package/src/AdaptableOptions/LayoutOptions.d.ts +11 -6
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +10 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -112
- package/src/Api/ActionApi.d.ts +24 -0
- package/src/Api/{Events/RowFormSubmitted.js → ActionApi.js} +0 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/ActionRowSubmitted.d.ts +58 -0
- package/src/Api/Events/ActionRowSubmitted.js +2 -0
- package/src/Api/GridApi.d.ts +0 -14
- package/src/Api/Implementation/ActionApiImpl.d.ts +8 -0
- package/src/Api/Implementation/ActionApiImpl.js +56 -0
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.d.ts +2 -4
- package/src/Api/Implementation/AlertApiImpl.js +2 -3
- package/src/Api/Implementation/ApiBase.d.ts +13 -1
- package/src/Api/Implementation/ApiBase.js +10 -0
- package/src/Api/Implementation/ColumnApiImpl.js +2 -2
- package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -4
- package/src/Api/Implementation/ConditionalStyleApiImpl.js +2 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -4
- package/src/Api/Implementation/CustomSortApiImpl.js +2 -3
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -4
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -4
- package/src/Api/Implementation/FormatColumnApiImpl.js +2 -3
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
- package/src/Api/Implementation/GridApiImpl.js +0 -44
- package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
- package/src/Api/Implementation/InternalApiImpl.js +5 -4
- package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
- package/src/Api/Implementation/LayoutApiImpl.js +0 -6
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -4
- package/src/Api/Implementation/PlusMinusApiImpl.js +2 -3
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +6 -16
- package/src/Api/Implementation/ScheduleApiImpl.js +10 -16
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +2 -4
- package/src/Api/Implementation/ShortcutApiImpl.js +2 -3
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +2 -1
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +4 -3
- package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +2 -1
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -4
- package/src/Api/InternalApi.d.ts +1 -1
- package/src/Api/LayoutApi.d.ts +1 -6
- package/src/Api/SmartEditApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +10 -3
- package/src/Api/UserInterfaceApi.d.ts +1 -5
- package/src/PredefinedConfig/Common/AdaptableAlert.js +4 -2
- package/src/PredefinedConfig/Common/AdaptableColumn.js +2 -1
- package/src/PredefinedConfig/Common/AdaptableForm.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -18
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -4
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -36
- package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -1
- package/src/PredefinedConfig/Common/Menu.d.ts +3 -3
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/PredefinedConfig/StatusBarState.d.ts +5 -2
- package/src/PredefinedConfig/Uuid.js +2 -1
- package/src/Redux/ActionsReducers/AlertRedux.js +16 -8
- package/src/Redux/ActionsReducers/ApplicationRedux.js +8 -4
- package/src/Redux/ActionsReducers/BulkUpdateRedux.js +6 -3
- package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +10 -5
- package/src/Redux/ActionsReducers/CellSummaryRedux.js +2 -1
- package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +14 -7
- package/src/Redux/ActionsReducers/CustomSortRedux.js +14 -7
- package/src/Redux/ActionsReducers/DashboardRedux.js +24 -12
- package/src/Redux/ActionsReducers/ExportRedux.js +16 -8
- package/src/Redux/ActionsReducers/FlashingCellRedux.js +16 -8
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +14 -7
- package/src/Redux/ActionsReducers/GridRedux.js +38 -19
- package/src/Redux/ActionsReducers/LayoutRedux.js +30 -15
- package/src/Redux/ActionsReducers/PluginsRedux.js +4 -2
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +16 -8
- package/src/Redux/ActionsReducers/PopupRedux.js +37 -19
- package/src/Redux/ActionsReducers/QueryRedux.js +12 -6
- package/src/Redux/ActionsReducers/QuickSearchRedux.js +8 -4
- package/src/Redux/ActionsReducers/ScheduleRedux.js +58 -29
- package/src/Redux/ActionsReducers/ShortcutRedux.js +14 -7
- package/src/Redux/ActionsReducers/SmartEditRedux.js +6 -3
- package/src/Redux/ActionsReducers/StatusBarRedux.js +10 -5
- package/src/Redux/ActionsReducers/SystemRedux.js +103 -51
- package/src/Redux/ActionsReducers/SystemStatusRedux.js +4 -2
- package/src/Redux/ActionsReducers/TeamSharingRedux.js +22 -11
- package/src/Redux/ActionsReducers/ThemeRedux.js +10 -5
- package/src/Redux/ActionsReducers/ToolPanelRedux.js +16 -8
- package/src/Redux/DeadRedux.js +16 -8
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
- package/src/Redux/Store/AdaptableStore.js +7 -2
- package/src/Strategy/AlertModule.d.ts +2 -18
- package/src/Strategy/AlertModule.js +2 -1
- package/src/Strategy/ConditionalStyleModule.d.ts +2 -10
- package/src/Strategy/DashboardModule.js +3 -1
- package/src/Strategy/DataChangeHistoryModule.d.ts +2 -8
- package/src/Strategy/DataSetModule.d.ts +2 -13
- package/src/Strategy/ExportModule.d.ts +2 -13
- package/src/Strategy/ExportModule.js +1 -1
- package/src/Strategy/FilterModule.d.ts +2 -14
- package/src/Strategy/FilterModule.js +1 -1
- package/src/Strategy/FlashingCellModule.d.ts +2 -9
- package/src/Strategy/GridInfoModule.js +6 -2
- package/src/Strategy/Interface/IModule.d.ts +2 -1
- package/src/Strategy/LayoutModule.d.ts +3 -17
- package/src/Strategy/LayoutModule.js +57 -4
- package/src/Strategy/PlusMinusModule.d.ts +2 -9
- package/src/Strategy/QuickSearchModule.d.ts +2 -7
- package/src/Strategy/ScheduleModule.d.ts +2 -13
- package/src/Strategy/ShortcutModule.d.ts +2 -9
- package/src/Strategy/StatusBarModule.js +2 -2
- package/src/Strategy/SystemStatusModule.d.ts +2 -7
- package/src/Strategy/ThemeModule.d.ts +2 -8
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -1
- package/src/Strategy/Utilities/getAlertPreviewViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +2 -1
- package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportColumnsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExportRowsViewItems.js +2 -1
- package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +2 -6
- package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getFlashingTargetViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +2 -1
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -1
- package/src/Strategy/Utilities/getRuleViewItems.js +2 -1
- package/src/Strategy/Utilities/getScopeViewItems.js +2 -1
- package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +2 -1
- package/src/Strategy/Utilities/getStyleViewItems.js +2 -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 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +21 -13
- package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
- package/src/Utilities/Extensions/TypeExtensions.d.ts +30 -0
- package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +6 -16
- package/src/Utilities/Helpers/DateHelper.d.ts +27 -0
- package/src/Utilities/Helpers/DateHelper.js +43 -6
- package/src/Utilities/Helpers/Helper.js +2 -1
- package/src/Utilities/Helpers/LoggingHelper.js +2 -1
- package/src/Utilities/Helpers/StyleHelper.js +8 -4
- package/src/Utilities/MenuItem.d.ts +4 -3
- package/src/Utilities/MenuItem.js +9 -3
- package/src/Utilities/ObjectFactory.js +1 -0
- package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -0
- package/src/Utilities/Services/Interface/IRowEditService.d.ts +3 -3
- package/src/Utilities/Services/MetamodelService.d.ts +7 -1
- package/src/Utilities/Services/MetamodelService.js +82 -6
- package/src/Utilities/Services/ModuleService.js +3 -1
- package/src/Utilities/Services/RowEditService.d.ts +6 -6
- package/src/Utilities/Services/RowEditService.js +24 -25
- package/src/Utilities/isAdaptableObject.js +2 -1
- package/src/Utilities/isMacLike.js +2 -1
- package/src/Utilities/license/decode.js +1 -1
- package/src/Utilities/reorder.js +2 -1
- package/src/Utilities/runIfNotResolvedIn.js +2 -1
- package/src/Utilities/waitForCondition.d.ts +1 -1
- package/src/Utilities/waitForCondition.js +2 -1
- package/src/View/AdaptableContext.js +2 -1
- package/src/View/AdaptableView.js +2 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +12 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -1
- package/src/View/AdaptableWizardView/Utils.js +2 -1
- package/src/View/AdaptableWizardView/Wizard.js +4 -2
- package/src/View/AdaptableWizardView/helper.js +6 -3
- package/src/View/Alert/ActiveAlertsPanel.js +2 -1
- package/src/View/Alert/AlertEmptyView.js +2 -1
- package/src/View/Alert/AlertStatusSubPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
- package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -3
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
- package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
- package/src/View/Alert/Wizard/AlertWizard.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
- package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -2
- package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
- package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
- package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
- package/src/View/CellSummary/CellSummaryPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
- package/src/View/ColorPicker.d.ts +5 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.js +11 -11
- package/src/View/Components/AdaptableInput/index.d.ts +2 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -2
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -2
- package/src/View/Components/Buttons/ButtonClone.js +2 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.js +2 -1
- package/src/View/Components/Buttons/ButtonNew.js +2 -1
- package/src/View/Components/ColumnSelector/index.js +2 -1
- package/src/View/Components/EntityRulesEditor/index.js +6 -3
- package/src/View/Components/ExpressionWizard.js +2 -1
- package/src/View/Components/ExternalRenderer.js +2 -1
- package/src/View/Components/FilterForm/FilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
- package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -3
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +2 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -2
- package/src/View/Components/ListBox/DualListBoxEditor.js +2 -1
- package/src/View/Components/ModuleValueSelector/index.js +2 -1
- package/src/View/Components/NewScopeComponent.js +6 -3
- package/src/View/Components/Panels/PanelFooter.js +2 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +1 -429
- package/src/View/Components/Panels/PanelWithImage.js +2 -0
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -5
- package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -5
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupAlert.js +4 -4
- package/src/View/Components/Popups/AdaptablePopupPrompt.js +2 -1
- package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -1
- package/src/View/Components/Popups/AdaptableToaster.js +2 -1
- package/src/View/Components/Popups/FormPopups/FormPopups.js +4 -2
- package/src/View/Components/Popups/Utilities.js +8 -4
- package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -1
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/TagValueSelector/index.js +4 -2
- package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -1
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
- 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.js +2 -1
- package/src/View/Components/WizardSummaryPage.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +4 -2
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -1
- package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +6 -3
- package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -1
- package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
- package/src/View/Dashboard/Dashboard.d.ts +1 -1
- package/src/View/Dashboard/Dashboard.js +4 -3
- package/src/View/Dashboard/DashboardPopup.js +1 -1
- package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
- package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
- package/src/View/DataSet/DataSetSelector.js +2 -1
- package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
- package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
- package/src/View/Export/ExportSelector.js +2 -1
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ReportExportDropdown.js +2 -1
- package/src/View/Export/Wizard/NewReportWizard.js +4 -2
- package/src/View/Export/Wizard/ReportColumnsWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportNameWizardSection.js +6 -3
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +6 -3
- package/src/View/Filter/ActiveFiltersPanel.js +2 -1
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
- package/src/View/Filter/FilterSummary.d.ts +1 -1
- package/src/View/Filter/FilterViewPanel.d.ts +1 -1
- package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +4 -2
- package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
- package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +10 -5
- package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -3
- package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
- package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -4
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -2
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -3
- package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
- package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
- package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
- package/src/View/GridInfo/GridInfoPopup.js +6 -4
- package/src/View/KeyHint.js +2 -1
- package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
- package/src/View/Layout/LayoutCloneButton.js +2 -1
- package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutRadioSelector.js +2 -1
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
- package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
- package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
- package/src/View/License/LicenseWatermark.js +1 -1
- package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
- package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -3
- package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.js +2 -1
- package/src/View/Query/ExpandedQueryPopup.js +2 -1
- package/src/View/Query/QueryViewPanel.d.ts +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +6 -3
- package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +6 -3
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
- package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
- package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -2
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
- package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -3
- package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
- package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
- package/src/View/StateManagement/StateManagementPopup.js +2 -1
- package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
- package/src/View/StateManagement/components/ClearButton.js +2 -1
- package/src/View/StateManagement/components/ExportDropdown.js +2 -1
- package/src/View/StateManagement/components/LoadButton.js +2 -1
- package/src/View/StateManagement/handleExportState.js +2 -1
- package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
- package/src/View/StatusBar/StatusBarPanel.js +2 -1
- package/src/View/StatusBar/StatusBarPopup.js +5 -4
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
- package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
- package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
- package/src/View/UIHelper.d.ts +2 -0
- package/src/View/UIHelper.js +12 -11
- package/src/View/Wizard/AdaptableWizard.js +2 -1
- package/src/View/Wizard/ObjectTagsWizardSection.js +4 -2
- package/src/View/Wizard/OnePageAdaptableWizard.js +10 -5
- package/src/View/Wizard/OnePageWizards.js +8 -4
- package/src/View/Wizard/useKeyboardNavigation.js +2 -1
- package/src/View/renderWithAdaptableContext.js +2 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +1 -1
- package/src/agGrid/Adaptable.js +31 -28
- package/src/agGrid/CheckboxRenderer.js +2 -1
- package/src/agGrid/FilterWrapper.js +2 -1
- package/src/agGrid/FloatingFilterWrapper.js +2 -1
- package/src/agGrid/PercentBarRenderer.js +2 -1
- package/src/agGrid/agGridHelper.js +3 -1
- package/src/agGrid/agGridMenuHelper.js +13 -10
- package/src/agGrid/createAgStatusPanelComponent.js +2 -1
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +8 -5
- package/src/components/AdaptableIconComponent/index.d.ts +10 -0
- package/src/components/AdaptableIconComponent/index.js +40 -0
- package/src/components/CheckBox/index.js +2 -1
- package/src/components/CodeBlock/index.js +2 -1
- package/src/components/Dashboard/DashboardManager.js +1 -1
- package/src/components/Datepicker/DatepickerContext.js +2 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
- package/src/components/DragAndDropContext/ModuleManager.js +5 -4
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
- package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
- package/src/components/EllipsisContainer/index.js +4 -2
- package/src/components/ExpressionEditor/EditorContext.js +2 -1
- package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
- package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
- package/src/components/FileDroppable/index.js +2 -1
- package/src/components/FormLayout/index.js +2 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +2 -4
- package/src/components/Loader/Loader.js +4 -2
- package/src/components/Logo/index.js +2 -1
- package/src/components/Modal/Backdrop.js +2 -1
- package/src/components/Modal/index.js +2 -1
- package/src/components/OverlayTrigger/Overlay.js +2 -1
- package/src/components/OverlayTrigger/index.js +2 -1
- package/src/components/OverlayTrigger/utils.js +6 -3
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
- package/src/components/Radio/index.js +4 -2
- package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
- package/src/components/ResizeObserver/index.js +6 -3
- package/src/components/SelectList.js +2 -1
- package/src/components/SelectableList/index.js +2 -1
- package/src/components/SimpleButton/index.d.ts +2 -1
- package/src/components/SimpleButton/index.js +19 -6
- package/src/components/StylePreview.js +2 -1
- package/src/components/Tabs/index.js +6 -3
- package/src/components/Textarea/index.d.ts +5 -1
- package/src/components/ToggleButton/index.js +2 -1
- package/src/components/WindowModal/WindowModal.js +2 -1
- package/src/components/WindowModal/useStacking.js +2 -1
- package/src/components/icons/DefaultIcon.js +2 -1
- package/src/components/icons/index.d.ts +3 -1
- package/src/components/icons/index.js +10 -2
- package/src/components/utils/useContainerScrollObserver/index.js +2 -1
- package/src/components/utils/useGlobalEvent.js +2 -1
- package/src/components/utils/useLatest.js +2 -1
- package/src/components/utils/useRerender.js +2 -1
- package/src/components/utils/uuid.js +2 -1
- package/src/metamodel/adaptable-metamodel-model.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +219 -112
- package/src/metamodel/adaptable.metamodel.js +1 -12958
- package/src/types.d.ts +8 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/RowFormSubmitted.d.ts +0 -34
- package/src/components/ApplicationIcon.d.ts +0 -6
- package/src/components/ApplicationIcon.js +0 -13
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomSortSortOrderViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getCustomSortSortOrderViewItems = (customSort) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Sort Order',
|
|
7
7
|
values: customSort.SortedValues,
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
exports.getCustomSortSortOrderViewItems = getCustomSortSortOrderViewItems;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExportColumnsViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getExportColumnsViewItems = (report, api) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Columns',
|
|
7
7
|
values: [...api.internalApi.getReportService().GetReportColumnScopeShortDescription(report)],
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
exports.getExportColumnsViewItems = getExportColumnsViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExportRowsViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getExportRowsViewItems = (report, api) => {
|
|
5
5
|
var _a;
|
|
6
6
|
const values = [];
|
|
7
7
|
switch (report.ReportRowScope) {
|
|
@@ -24,3 +24,4 @@ exports.getExportRowsViewItems = (report, api) => {
|
|
|
24
24
|
],
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
+
exports.getExportRowsViewItems = getExportRowsViewItems;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExpressionViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getExpressionViewItems = (query) => {
|
|
5
5
|
var _a;
|
|
6
6
|
return {
|
|
7
7
|
name: 'Expression',
|
|
8
8
|
values: [(_a = query === null || query === void 0 ? void 0 : query.ScalarExpression) !== null && _a !== void 0 ? _a : query === null || query === void 0 ? void 0 : query.AggregatedScalarExpression],
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
exports.getExpressionViewItems = getExpressionViewItems;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFlashingCellDurationViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getFlashingCellDurationViewItems = (flashingCell) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Duration',
|
|
7
7
|
values: [flashingCell.FlashDuration],
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
exports.getFlashingCellDurationViewItems = getFlashingCellDurationViewItems;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const getFlashingCellStyleViewItems: () =>
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
view: import("react").FunctionComponent<import("../../View/FlashingCell/FlashingCellStyle").FlashingCellStyleProps>;
|
|
6
|
-
};
|
|
1
|
+
import { AdaptableObjectItemView } from '../Interface/IModule';
|
|
2
|
+
export declare const getFlashingCellStyleViewItems: () => AdaptableObjectItemView;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFlashingCellStyleViewItems = void 0;
|
|
4
4
|
const FlashingCellStyle_1 = require("../../View/FlashingCell/FlashingCellStyle");
|
|
5
|
-
|
|
5
|
+
const getFlashingCellStyleViewItems = () => {
|
|
6
6
|
return {
|
|
7
7
|
name: 'Flash Styles',
|
|
8
8
|
label: 'Change Style',
|
|
9
9
|
view: FlashingCellStyle_1.FlashingCellStyle,
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
exports.getFlashingCellStyleViewItems = getFlashingCellStyleViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFlashingTargetViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getFlashingTargetViewItems = (flashingCell) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Target',
|
|
7
7
|
values: Array.isArray(flashingCell.FlashTarget)
|
|
@@ -9,3 +9,4 @@ exports.getFlashingTargetViewItems = (flashingCell) => {
|
|
|
9
9
|
: [flashingCell.FlashTarget],
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
exports.getFlashingTargetViewItems = getFlashingTargetViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFormatColumnSettingsViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getFormatColumnSettingsViewItems = (calculatedColumn) => {
|
|
5
5
|
var _a;
|
|
6
6
|
const values = [
|
|
7
7
|
`Cell alignment: ${(_a = calculatedColumn.CellAlignment) !== null && _a !== void 0 ? _a : 'default'}`,
|
|
@@ -13,3 +13,4 @@ exports.getFormatColumnSettingsViewItems = (calculatedColumn) => {
|
|
|
13
13
|
values,
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
exports.getFormatColumnSettingsViewItems = getFormatColumnSettingsViewItems;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const rebass_1 = require("rebass");
|
|
7
7
|
const FormatColumnStyleWizardSection_1 = require("../../View/FormatColumn/Wizard/FormatColumnStyleWizardSection");
|
|
8
|
-
|
|
8
|
+
const getFormatColumnStyleViewItems = (formatColumn, api) => {
|
|
9
9
|
return React.createElement(rebass_1.Box, { mt: 2 }, FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary(formatColumn, api));
|
|
10
10
|
};
|
|
11
|
+
exports.getFormatColumnStyleViewItems = getFormatColumnStyleViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getObjectTagsViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getObjectTagsViewItems = (object, api) => {
|
|
5
5
|
var _a;
|
|
6
6
|
if (!api.internalApi.shouldDisplayTagSections()) {
|
|
7
7
|
return;
|
|
@@ -11,3 +11,4 @@ exports.getObjectTagsViewItems = (object, api) => {
|
|
|
11
11
|
values: (_a = object === null || object === void 0 ? void 0 : object.Tags) === null || _a === void 0 ? void 0 : _a.map((tag) => api.internalApi.getLabelForTag(tag)),
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
exports.getObjectTagsViewItems = getObjectTagsViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuleViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getRuleViewItems = (rule, api) => {
|
|
5
5
|
return {
|
|
6
6
|
name: 'Condition',
|
|
7
7
|
values: [
|
|
@@ -11,3 +11,4 @@ exports.getRuleViewItems = (rule, api) => {
|
|
|
11
11
|
],
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
+
exports.getRuleViewItems = getRuleViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getScopeViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getScopeViewItems = (scope, api) => {
|
|
5
5
|
let values = [];
|
|
6
6
|
if ('ColumnIds' in scope && Array.isArray(scope.ColumnIds)) {
|
|
7
7
|
values = scope.ColumnIds;
|
|
@@ -19,3 +19,4 @@ exports.getScopeViewItems = (scope, api) => {
|
|
|
19
19
|
values,
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
exports.getScopeViewItems = getScopeViewItems;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getShortcutSettingsViewItems = void 0;
|
|
4
|
-
|
|
4
|
+
const getShortcutSettingsViewItems = (shortcut) => {
|
|
5
5
|
var _a, _b;
|
|
6
6
|
const values = [
|
|
7
7
|
`Shortcut Key: ${shortcut.ShortcutKey || 'Not selected'}`,
|
|
@@ -13,3 +13,4 @@ exports.getShortcutSettingsViewItems = (shortcut) => {
|
|
|
13
13
|
values,
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
exports.getShortcutSettingsViewItems = getShortcutSettingsViewItems;
|
|
@@ -7,9 +7,10 @@ const StylePreview_1 = require("../../components/StylePreview");
|
|
|
7
7
|
const StyleComponent = (props) => {
|
|
8
8
|
return React.createElement(StylePreview_1.StylePreview, { styleObject: props.data.Style });
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
const getStyleViewItems = () => {
|
|
11
11
|
return {
|
|
12
12
|
name: 'Style',
|
|
13
13
|
view: StyleComponent,
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
exports.getStyleViewItems = getStyleViewItems;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = void 0;
|
|
3
|
+
exports.AdaptableOptionsDocsLink = exports.LicenseDocsLink = exports.PrimaryKeyDocsLink = exports.PredicateDocsLink = exports.AggregatedScalarQueryDocsLink = exports.AggregatedBooleanQueryDocsLink = exports.ObservableQueryDocsLink = exports.ScalarQueryDocsLink = exports.BooleanQueryDocsLink = exports.ExpressionEditorDocsLink = exports.HOST_URL_DOCS = void 0;
|
|
4
4
|
exports.HOST_URL_DOCS = 'https://docs.adaptabletools.com';
|
|
5
5
|
//export const HOST_URL_DOCS = 'http://localhost:3000';
|
|
6
6
|
exports.ExpressionEditorDocsLink = `${exports.HOST_URL_DOCS}/guide/ui-expression-editor`;
|
|
@@ -12,3 +12,4 @@ exports.AggregatedScalarQueryDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptabl
|
|
|
12
12
|
exports.PredicateDocsLink = `${exports.HOST_URL_DOCS}/guide/adaptable-ql-predicate`;
|
|
13
13
|
exports.PrimaryKeyDocsLink = `${exports.HOST_URL_DOCS}/guide/dev-guide-tutorial-primary-key`;
|
|
14
14
|
exports.LicenseDocsLink = `${exports.HOST_URL_DOCS}/guide/licensing`;
|
|
15
|
+
exports.AdaptableOptionsDocsLink = `${exports.HOST_URL_DOCS}/guide/reference-options-overview`;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
|
|
4
|
+
exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = void 0;
|
|
4
5
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
5
6
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
6
7
|
exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
|
|
@@ -12,6 +12,7 @@ const aggregatedBooleanExpressionFunctions_1 = require("../ExpressionFunctions/a
|
|
|
12
12
|
const AdaptablePredicate_1 = require("../../PredefinedConfig/Common/AdaptablePredicate");
|
|
13
13
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
14
14
|
const aggregatedScalarExpressionFunctions_1 = require("../ExpressionFunctions/aggregatedScalarExpressionFunctions");
|
|
15
|
+
// change type to DeepRequired<AdaptableOptions> to check which properties have no default values defined
|
|
15
16
|
exports.DefaultAdaptableOptions = {
|
|
16
17
|
adaptableId: GeneralConstants.ADAPTABLE_ID,
|
|
17
18
|
adaptableStateKey: undefined,
|
|
@@ -28,6 +29,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
28
29
|
statusbarHighlightDuration: 2000,
|
|
29
30
|
dataChangeDetectionPolicy: 'rawValue',
|
|
30
31
|
actionHandlers: undefined,
|
|
32
|
+
alertMessageText: undefined,
|
|
31
33
|
},
|
|
32
34
|
notificationsOptions: {
|
|
33
35
|
maxNotifications: 3,
|
|
@@ -68,7 +70,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
68
70
|
moduleExpressionFunctions: undefined,
|
|
69
71
|
queryableColumns: undefined,
|
|
70
72
|
performExpressionValidation: true,
|
|
71
|
-
maxTimeframeSize: 28800000,
|
|
73
|
+
maxTimeframeSize: 28800000, // 8 hours
|
|
72
74
|
},
|
|
73
75
|
},
|
|
74
76
|
containerOptions: {
|
|
@@ -80,6 +82,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
80
82
|
alertContainer: undefined,
|
|
81
83
|
},
|
|
82
84
|
columnOptions: {
|
|
85
|
+
columnFriendlyName: undefined,
|
|
83
86
|
columnTypes: GeneralConstants_1.EMPTY_ARRAY,
|
|
84
87
|
showMissingColumnsWarning: true,
|
|
85
88
|
autoOrderGroupedColumns: true,
|
|
@@ -92,11 +95,13 @@ exports.DefaultAdaptableOptions = {
|
|
|
92
95
|
customToolbars: undefined,
|
|
93
96
|
buttonsLocation: 'right',
|
|
94
97
|
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
actionOptions: {
|
|
99
|
+
actionColumns: undefined,
|
|
100
|
+
actionRowButtons: undefined,
|
|
101
|
+
actionRowButtonsPosition: 'pinnedLeft',
|
|
102
|
+
autoHandleActionRowButtons: false,
|
|
103
|
+
setPrimaryKeyValue: undefined,
|
|
104
|
+
actionRowFormOptions: {
|
|
100
105
|
formTitle: undefined,
|
|
101
106
|
formDescription: undefined,
|
|
102
107
|
formFieldLabel: undefined,
|
|
@@ -104,6 +109,12 @@ exports.DefaultAdaptableOptions = {
|
|
|
104
109
|
onFormSubmit: undefined,
|
|
105
110
|
},
|
|
106
111
|
},
|
|
112
|
+
editOptions: {
|
|
113
|
+
validateOnServer: undefined,
|
|
114
|
+
displayServerValidationMessages: true,
|
|
115
|
+
isCellEditable: undefined,
|
|
116
|
+
smartEditCustomOperations: undefined,
|
|
117
|
+
},
|
|
107
118
|
entitlementOptions: {
|
|
108
119
|
defaultAccessLevel: 'Full',
|
|
109
120
|
moduleEntitlements: undefined,
|
|
@@ -150,6 +161,8 @@ exports.DefaultAdaptableOptions = {
|
|
|
150
161
|
maxColumnsToDisplay: 10,
|
|
151
162
|
},
|
|
152
163
|
layoutTagOptions: {
|
|
164
|
+
autoGenerateTagsForLayouts: false,
|
|
165
|
+
isObjectAvailableInLayout: undefined,
|
|
153
166
|
autoCheckTagsForLayouts: false,
|
|
154
167
|
},
|
|
155
168
|
},
|
|
@@ -204,6 +217,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
204
217
|
saveState: (state) => state,
|
|
205
218
|
loadState: undefined,
|
|
206
219
|
persistState: undefined,
|
|
220
|
+
clearState: undefined,
|
|
207
221
|
},
|
|
208
222
|
teamSharingOptions: {
|
|
209
223
|
enableTeamSharing: false,
|
|
@@ -223,13 +237,6 @@ exports.DefaultAdaptableOptions = {
|
|
|
223
237
|
showOutsideDays: true,
|
|
224
238
|
datepickerButtons: ['close', 'today'],
|
|
225
239
|
},
|
|
226
|
-
actionOptions: {
|
|
227
|
-
actionColumns: undefined,
|
|
228
|
-
actionRowButtons: undefined,
|
|
229
|
-
actionRowButtonsPosition: 'pinnedLeft',
|
|
230
|
-
autoHandleActionRowButtons: false,
|
|
231
|
-
setPrimaryKeyValue: undefined,
|
|
232
|
-
},
|
|
233
240
|
colorPalette: UIHelper_1.default.getDefaultColors(),
|
|
234
241
|
editableCellStyle: undefined,
|
|
235
242
|
readOnlyCellStyle: undefined,
|
|
@@ -249,6 +256,7 @@ exports.DefaultAdaptableOptions = {
|
|
|
249
256
|
dataChangeHistoryOptions: {
|
|
250
257
|
activeByDefault: false,
|
|
251
258
|
showDataChange: undefined,
|
|
259
|
+
changeHistoryButton: undefined,
|
|
252
260
|
},
|
|
253
261
|
settingsPanelOptions: {
|
|
254
262
|
popupType: 'window',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeDateParams = void 0;
|
|
4
|
-
|
|
4
|
+
const normalizeDateParams = (args) => {
|
|
5
5
|
let [first, second] = args;
|
|
6
6
|
if (typeof first === 'string') {
|
|
7
7
|
first = new Date(first);
|
|
@@ -11,3 +11,4 @@ exports.normalizeDateParams = (args) => {
|
|
|
11
11
|
}
|
|
12
12
|
return [first, second];
|
|
13
13
|
};
|
|
14
|
+
exports.normalizeDateParams = normalizeDateParams;
|
|
@@ -9,18 +9,21 @@ const toNumber_1 = tslib_1.__importDefault(require("lodash/toNumber"));
|
|
|
9
9
|
const evaluator_1 = require("../../parser/src/evaluator");
|
|
10
10
|
// string functions may be case (in)sensitive, see internalApi.isTextComparisonCaseSensitive()
|
|
11
11
|
// if case is insensitive, we convert ALL involved strings to lower case
|
|
12
|
-
|
|
12
|
+
const getStringValues = (context, ...stringArguments) => {
|
|
13
13
|
return exports.isTextSearchCaseInsensitive(context)
|
|
14
14
|
? stringArguments.map((string) => string.toLowerCase())
|
|
15
15
|
: stringArguments;
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.getStringValues = getStringValues;
|
|
18
|
+
const getStringValue = (context, stringArgument) => {
|
|
18
19
|
return exports.isTextSearchCaseInsensitive(context) ? stringArgument.toLowerCase() : stringArgument;
|
|
19
20
|
};
|
|
20
|
-
exports.
|
|
21
|
+
exports.getStringValue = getStringValue;
|
|
22
|
+
const isTextSearchCaseInsensitive = (context) => !context.api.internalApi.isTextComparisonCaseSensitive();
|
|
23
|
+
exports.isTextSearchCaseInsensitive = isTextSearchCaseInsensitive;
|
|
21
24
|
// returns an observable which filters the source$ emissions and emits only if the CellDataChangedInfo relates to the given column
|
|
22
25
|
// optionally, if a filter function (where clause) is provided, it is also evaluated
|
|
23
|
-
|
|
26
|
+
const getDataChangeLog$ = (context, columnNameFilter) => {
|
|
24
27
|
let dataChangeLog$ = context.api.internalApi.getDataService().dataChangeLog$;
|
|
25
28
|
// filter only the given column changes
|
|
26
29
|
dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
|
|
@@ -30,7 +33,8 @@ exports.getDataChangeLog$ = (context, columnNameFilter) => {
|
|
|
30
33
|
}
|
|
31
34
|
return dataChangeLog$;
|
|
32
35
|
};
|
|
33
|
-
exports.
|
|
36
|
+
exports.getDataChangeLog$ = getDataChangeLog$;
|
|
37
|
+
const handleWhereFunction = (args, context) => {
|
|
34
38
|
const reactiveExpressionNode = args[0];
|
|
35
39
|
const whereClauseExpressionNode = args[1];
|
|
36
40
|
const filterFn = (rowNode) => {
|
|
@@ -49,10 +53,12 @@ exports.handleWhereFunction = (args, context) => {
|
|
|
49
53
|
filterFn,
|
|
50
54
|
});
|
|
51
55
|
};
|
|
52
|
-
exports.
|
|
56
|
+
exports.handleWhereFunction = handleWhereFunction;
|
|
57
|
+
const extractColumnParameter = (consumingFunctionName, args) => {
|
|
53
58
|
return exports.extractParameter(consumingFunctionName, 'config', ['COL'], args);
|
|
54
59
|
};
|
|
55
|
-
exports.
|
|
60
|
+
exports.extractColumnParameter = extractColumnParameter;
|
|
61
|
+
const extractParameter = (consumingFunctionName, allowedType, allowedOperands, args, isOptional) => {
|
|
56
62
|
const result = args.filter((arg) => (arg === null || arg === void 0 ? void 0 : arg.type) === allowedType && allowedOperands.includes(arg === null || arg === void 0 ? void 0 : arg.name));
|
|
57
63
|
if (isOptional && !result.length) {
|
|
58
64
|
return;
|
|
@@ -65,7 +71,8 @@ exports.extractParameter = (consumingFunctionName, allowedType, allowedOperands,
|
|
|
65
71
|
}
|
|
66
72
|
return result[0];
|
|
67
73
|
};
|
|
68
|
-
exports.
|
|
74
|
+
exports.extractParameter = extractParameter;
|
|
75
|
+
const handleColumnFunction = (args, context) => {
|
|
69
76
|
if (StringExtensions_1.default.IsNullOrEmpty(args[0])) {
|
|
70
77
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError('COL', `no column name is provided`);
|
|
71
78
|
}
|
|
@@ -77,16 +84,19 @@ exports.handleColumnFunction = (args, context) => {
|
|
|
77
84
|
};
|
|
78
85
|
return result;
|
|
79
86
|
};
|
|
80
|
-
exports.
|
|
87
|
+
exports.handleColumnFunction = handleColumnFunction;
|
|
88
|
+
const getNumericValue = (input) => {
|
|
81
89
|
const numericValue = toNumber_1.default(input);
|
|
82
90
|
return isNaN(numericValue) ? 0 : numericValue;
|
|
83
91
|
};
|
|
84
|
-
exports.
|
|
92
|
+
exports.getNumericValue = getNumericValue;
|
|
93
|
+
const validateColumnType = (columnId, validColumnTypes, consumingFunction, api) => {
|
|
85
94
|
const columnType = api.columnApi.getColumnDataTypeFromColumnId(columnId);
|
|
86
95
|
if (!validColumnTypes.some((validType) => validType === columnType)) {
|
|
87
96
|
throw new ExpressionEvaluationError_1.ExpressionEvaluationError(consumingFunction, `expects a column of type ${validColumnTypes.join(' or ')}`);
|
|
88
97
|
}
|
|
89
98
|
};
|
|
99
|
+
exports.validateColumnType = validateColumnType;
|
|
90
100
|
const validateColumnId = (columnId, api) => {
|
|
91
101
|
const column = api.columnApi.getColumnFromId(columnId);
|
|
92
102
|
if (!column) {
|
|
@@ -43,4 +43,34 @@ export declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<
|
|
|
43
43
|
}[Keys];
|
|
44
44
|
/** Similar to the builtin Extract, but checks the filter strictly */
|
|
45
45
|
export declare type StrictExtract<T, U extends Partial<T>> = Extract<T, U>;
|
|
46
|
+
/**
|
|
47
|
+
* DeepRequired
|
|
48
|
+
*
|
|
49
|
+
* from https://github.com/piotrwitek/utility-types
|
|
50
|
+
*
|
|
51
|
+
* @desc Required that works for deeply nested structure
|
|
52
|
+
* @example
|
|
53
|
+
* // Expect: {
|
|
54
|
+
* // first: {
|
|
55
|
+
* // second: {
|
|
56
|
+
* // name: string;
|
|
57
|
+
* // };
|
|
58
|
+
* // };
|
|
59
|
+
* // }
|
|
60
|
+
* type NestedProps = {
|
|
61
|
+
* first?: {
|
|
62
|
+
* second?: {
|
|
63
|
+
* name?: string;
|
|
64
|
+
* };
|
|
65
|
+
* };
|
|
66
|
+
* };
|
|
67
|
+
* type RequiredNestedProps = DeepRequired<NestedProps>;
|
|
68
|
+
*/
|
|
69
|
+
export declare type DeepRequired<T> = T extends (...args: any[]) => any ? T : T extends any[] ? _DeepRequiredArray<T[number]> : T extends object ? _DeepRequiredObject<T> : T;
|
|
70
|
+
export interface _DeepRequiredArray<T> extends Array<DeepRequired<NonUndefined<T>>> {
|
|
71
|
+
}
|
|
72
|
+
export declare type _DeepRequiredObject<T> = {
|
|
73
|
+
[P in keyof T]-?: DeepRequired<NonUndefined<T[P]>>;
|
|
74
|
+
};
|
|
75
|
+
export declare type NonUndefined<A> = A extends undefined ? never : A;
|
|
46
76
|
export {};
|
|
@@ -9,15 +9,13 @@ export declare function initPredefinedConfigWithUuids(predefinedConfig: Predefin
|
|
|
9
9
|
export declare function checkValidPrimaryKey(adaptable: IAdaptable): boolean;
|
|
10
10
|
export declare function AdaptableObjectExistsInState(array: AdaptableObject[], itemToCheck: AdaptableObject): boolean;
|
|
11
11
|
export declare function getAppropriateAccessLevel(adaptableObject: AdaptableObject, moduleAccessLevel: AccessLevel): AccessLevel;
|
|
12
|
-
export declare function checkAdaptableOptions(adaptableOptions: AdaptableOptions): void;
|
|
13
12
|
export declare function runAdaptableComparerFunction(columnId: string, columnValues: any[], adaptable: IAdaptable): AdaptableComparerFunction;
|
|
14
13
|
export declare function addAdaptableObjectUuidAndSource(adaptableObject: AdaptableObject): AdaptableObject;
|
|
15
14
|
export declare const AdaptableHelper: {
|
|
16
|
-
|
|
15
|
+
assignAdaptableOptions: typeof assignAdaptableOptions;
|
|
17
16
|
initPredefinedConfigWithUuids: typeof initPredefinedConfigWithUuids;
|
|
18
17
|
checkValidPrimaryKey: typeof checkValidPrimaryKey;
|
|
19
18
|
AdaptableObjectExistsInState: typeof AdaptableObjectExistsInState;
|
|
20
|
-
checkAdaptableOptions: typeof checkAdaptableOptions;
|
|
21
19
|
runAdaptableComparerFunction: typeof runAdaptableComparerFunction;
|
|
22
20
|
getAppropriateAccessLevel: typeof getAppropriateAccessLevel;
|
|
23
21
|
addUuidAndSource: typeof addAdaptableObjectUuidAndSource;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AdaptableHelper = exports.addAdaptableObjectUuidAndSource = exports.runAdaptableComparerFunction = exports.
|
|
3
|
+
exports.AdaptableHelper = exports.addAdaptableObjectUuidAndSource = exports.runAdaptableComparerFunction = exports.getAppropriateAccessLevel = exports.AdaptableObjectExistsInState = exports.checkValidPrimaryKey = exports.initPredefinedConfigWithUuids = exports.assignAdaptableOptions = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cloneDeepWith_1 = tslib_1.__importDefault(require("lodash/cloneDeepWith"));
|
|
6
6
|
const isPlainObject_1 = tslib_1.__importDefault(require("lodash/isPlainObject"));
|
|
@@ -10,7 +10,8 @@ const DefaultAdaptableOptions_1 = require("../Defaults/DefaultAdaptableOptions")
|
|
|
10
10
|
function assignAdaptableOptions(adaptableOptions) {
|
|
11
11
|
var _a;
|
|
12
12
|
const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions, adaptableOptions);
|
|
13
|
-
returnedAdaptableOptions.adaptableStateKey =
|
|
13
|
+
returnedAdaptableOptions.adaptableStateKey =
|
|
14
|
+
(_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
|
|
14
15
|
returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
|
|
15
16
|
returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
|
|
16
17
|
returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
|
|
@@ -21,13 +22,13 @@ function assignAdaptableOptions(adaptableOptions) {
|
|
|
21
22
|
returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
|
|
22
23
|
returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
|
|
23
24
|
returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
|
|
24
|
-
returnedAdaptableOptions.
|
|
25
|
+
returnedAdaptableOptions.actionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionOptions, adaptableOptions.actionOptions);
|
|
26
|
+
returnedAdaptableOptions.actionOptions.actionRowFormOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.actionOptions.actionRowFormOptions, returnedAdaptableOptions.actionOptions.actionRowFormOptions);
|
|
25
27
|
returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
|
|
26
28
|
returnedAdaptableOptions.generalOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.generalOptions, adaptableOptions.generalOptions);
|
|
27
29
|
returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
|
|
28
30
|
returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
|
|
29
31
|
returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
|
|
30
|
-
returnedAdaptableOptions.userInterfaceOptions.actionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.actionOptions, returnedAdaptableOptions.userInterfaceOptions.actionOptions);
|
|
31
32
|
returnedAdaptableOptions.userInterfaceOptions.dateInputOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.dateInputOptions, returnedAdaptableOptions.userInterfaceOptions.dateInputOptions);
|
|
32
33
|
returnedAdaptableOptions.menuOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.menuOptions, adaptableOptions.menuOptions);
|
|
33
34
|
returnedAdaptableOptions.stateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.stateOptions, adaptableOptions.stateOptions);
|
|
@@ -97,16 +98,6 @@ function getAppropriateAccessLevel(adaptableObject, moduleAccessLevel) {
|
|
|
97
98
|
return moduleAccessLevel;
|
|
98
99
|
}
|
|
99
100
|
exports.getAppropriateAccessLevel = getAppropriateAccessLevel;
|
|
100
|
-
// perform any checks that are necessary here
|
|
101
|
-
// for now just adaptableId
|
|
102
|
-
function checkAdaptableOptions(adaptableOptions) {
|
|
103
|
-
if (adaptableOptions.adaptableId) {
|
|
104
|
-
if (adaptableOptions.adaptableId.includes('.')) {
|
|
105
|
-
LoggingHelper_1.ConsoleLogWarning("The 'adaptableId' property in adaptableOptions should not include a '.'. We strongly recommend that you remove this.");
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
exports.checkAdaptableOptions = checkAdaptableOptions;
|
|
110
101
|
function runAdaptableComparerFunction(columnId, columnValues, adaptable) {
|
|
111
102
|
return function compareItemsOfCustomSort(valueA, valueB, nodeA, nodeB) {
|
|
112
103
|
let firstElementValueString = nodeA
|
|
@@ -148,11 +139,10 @@ function addAdaptableObjectUuidAndSource(adaptableObject) {
|
|
|
148
139
|
}
|
|
149
140
|
exports.addAdaptableObjectUuidAndSource = addAdaptableObjectUuidAndSource;
|
|
150
141
|
exports.AdaptableHelper = {
|
|
151
|
-
|
|
142
|
+
assignAdaptableOptions,
|
|
152
143
|
initPredefinedConfigWithUuids,
|
|
153
144
|
checkValidPrimaryKey,
|
|
154
145
|
AdaptableObjectExistsInState,
|
|
155
|
-
checkAdaptableOptions,
|
|
156
146
|
runAdaptableComparerFunction,
|
|
157
147
|
getAppropriateAccessLevel,
|
|
158
148
|
addUuidAndSource: addAdaptableObjectUuidAndSource,
|
|
@@ -8,3 +8,30 @@ export declare const isValueValidDate: (data: any) => boolean;
|
|
|
8
8
|
export declare const dateToISO: (date: Date | number | string) => string;
|
|
9
9
|
export declare const parseToISO: (date: string | Date | number, dateFormat?: string) => string;
|
|
10
10
|
export declare const parseDateValue: (dateValue: string | Date | number, dateFormat?: string) => Date | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a date with the same day/month/year/hour with the current timezone.
|
|
13
|
+
* '2022-06-01T17:00:00.000Z' => '2022-06-01T17:00:00.000+03:00' // RO time
|
|
14
|
+
*
|
|
15
|
+
* new Date() always creates the date using the current timezone.
|
|
16
|
+
* To compare two dates, they need to be in the same timezone.
|
|
17
|
+
*
|
|
18
|
+
* @param date Date
|
|
19
|
+
*/
|
|
20
|
+
export declare const utcDateToSameDateInLocale: (date: Date) => Date;
|
|
21
|
+
/**
|
|
22
|
+
* To make sure selected/input date is correct and in the current time-zone.
|
|
23
|
+
|
|
24
|
+
*
|
|
25
|
+
* '2022-06-14' is considered to be '2022-06-13 00:00:00.
|
|
26
|
+
* And when date object is created it uses the current timezone.
|
|
27
|
+
*
|
|
28
|
+
* '2022-06-14' => Mon Jun 13 2022 20:00:00 GMT-0400 (Eastern Daylight Time)
|
|
29
|
+
*
|
|
30
|
+
* @param stringDate date string
|
|
31
|
+
*/
|
|
32
|
+
export declare const parseFilterInputDate: (stringDate: string) => Date;
|
|
33
|
+
/**
|
|
34
|
+
* Used to parse the date from rowDate inside date predicates.
|
|
35
|
+
* The date is parsed in moved to local timezone.
|
|
36
|
+
*/
|
|
37
|
+
export declare const parseFilterValueDate: (value: any) => Date;
|