@adaptabletools/adaptable 12.0.0-canary.2 → 12.0.0-canary.5
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 +41 -14
- package/bundle.cjs.js +159 -142
- package/index.css +49 -14
- package/package.json +3 -3
- 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/AlertOptions.d.ts +5 -9
- package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
- package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -4
- package/src/AdaptableOptions/EditOptions.d.ts +8 -62
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/LayoutOptions.d.ts +6 -1
- package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
- package/src/AdaptableOptions/StateOptions.d.ts +10 -0
- package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
- 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/AlertApi.d.ts +3 -3
- package/src/Api/ConfigApi.d.ts +1 -1
- package/src/Api/EventApi.d.ts +9 -9
- package/src/Api/Events/ActionRowSubmitted.d.ts +34 -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 +3 -3
- package/src/Api/Implementation/ApiBase.d.ts +2 -1
- package/src/Api/Implementation/ApiBase.js +3 -0
- package/src/Api/Implementation/ColumnApiImpl.js +2 -2
- package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
- package/src/Api/Implementation/GridApiImpl.js +0 -44
- package/src/Api/Implementation/InternalApiImpl.d.ts +3 -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/SmartEditApi.d.ts +1 -1
- package/src/Api/StatusBarApi.d.ts +10 -3
- package/src/Api/UserInterfaceApi.d.ts +1 -5
- package/src/PredefinedConfig/AlertState.d.ts +4 -4
- 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/FormContext.d.ts +3 -0
- 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 +10 -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/LayoutModule.d.ts +2 -17
- package/src/Strategy/LayoutModule.js +6 -3
- 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.d.ts +13 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +13 -10
- 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.d.ts +3 -3
- 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.d.ts +2 -2
- 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 +5 -5
- 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/Caption.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 +211 -101
- package/src/metamodel/adaptable.metamodel.js +1 -12874
- package/src/types.d.ts +7 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Api/Events/RowFormSubmitted.d.ts +0 -19
- package/src/components/ApplicationIcon.d.ts +0 -6
- package/src/components/ApplicationIcon.js +0 -13
package/index.css
CHANGED
|
@@ -1177,7 +1177,7 @@ template {
|
|
|
1177
1177
|
padding: 0 !important;
|
|
1178
1178
|
overflow: hidden !important;
|
|
1179
1179
|
clip: rect(1px, 1px, 1px, 1px) !important;
|
|
1180
|
-
border: 0 !important
|
|
1180
|
+
border: 0 !important;
|
|
1181
1181
|
}
|
|
1182
1182
|
|
|
1183
1183
|
/* Buttons */
|
|
@@ -1201,22 +1201,23 @@ template {
|
|
|
1201
1201
|
border: 2px solid transparent;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
-
.rdp-button[disabled] {
|
|
1204
|
+
.rdp-button[aria-disabled='true'] {
|
|
1205
1205
|
opacity: 0.25;
|
|
1206
|
+
pointer-events: none;
|
|
1206
1207
|
}
|
|
1207
1208
|
|
|
1208
|
-
.rdp-button:not([disabled]) {
|
|
1209
|
+
.rdp-button:not([aria-disabled='true']) {
|
|
1209
1210
|
cursor: pointer;
|
|
1210
1211
|
}
|
|
1211
1212
|
|
|
1212
|
-
.rdp-button:focus
|
|
1213
|
-
.rdp-button:active
|
|
1213
|
+
.rdp-button:focus,
|
|
1214
|
+
.rdp-button:active {
|
|
1214
1215
|
color: inherit;
|
|
1215
1216
|
border: var(--rdp-outline);
|
|
1216
1217
|
background-color: var(--rdp-background-color);
|
|
1217
1218
|
}
|
|
1218
1219
|
|
|
1219
|
-
.rdp-button:hover:not([disabled]) {
|
|
1220
|
+
.rdp-button:hover:not([aria-disabled='true']) {
|
|
1220
1221
|
background-color: var(--rdp-background-color);
|
|
1221
1222
|
}
|
|
1222
1223
|
|
|
@@ -1347,8 +1348,8 @@ template {
|
|
|
1347
1348
|
color: unset;
|
|
1348
1349
|
}
|
|
1349
1350
|
|
|
1350
|
-
.rdp-dropdown:focus:not([disabled])
|
|
1351
|
-
.rdp-dropdown:active:not([disabled])
|
|
1351
|
+
.rdp-dropdown:focus:not([disabled]) + .rdp-caption_label,
|
|
1352
|
+
.rdp-dropdown:active:not([disabled]) + .rdp-caption_label {
|
|
1352
1353
|
border: var(--rdp-outline);
|
|
1353
1354
|
border-radius: 6px;
|
|
1354
1355
|
background-color: var(--rdp-background-color);
|
|
@@ -1382,7 +1383,7 @@ template {
|
|
|
1382
1383
|
border: 0;
|
|
1383
1384
|
}
|
|
1384
1385
|
|
|
1385
|
-
.rdp-
|
|
1386
|
+
.rdp-tfoot {
|
|
1386
1387
|
margin: 0.5em;
|
|
1387
1388
|
}
|
|
1388
1389
|
|
|
@@ -1417,15 +1418,15 @@ template {
|
|
|
1417
1418
|
font-weight: bold;
|
|
1418
1419
|
}
|
|
1419
1420
|
|
|
1420
|
-
.rdp-day_selected:not([disabled]),
|
|
1421
|
-
.rdp-day_selected:focus:not([disabled]),
|
|
1422
|
-
.rdp-day_selected:active:not([disabled]),
|
|
1423
|
-
.rdp-day_selected:hover:not([disabled]) {
|
|
1421
|
+
.rdp-day_selected:not([aria-disabled='true']),
|
|
1422
|
+
.rdp-day_selected:focus:not([aria-disabled='true']),
|
|
1423
|
+
.rdp-day_selected:active:not([aria-disabled='true']),
|
|
1424
|
+
.rdp-day_selected:hover:not([aria-disabled='true']) {
|
|
1424
1425
|
color: white;
|
|
1425
1426
|
background-color: var(--rdp-accent-color);
|
|
1426
1427
|
}
|
|
1427
1428
|
|
|
1428
|
-
.rdp-day_selected:focus:not([disabled]) {
|
|
1429
|
+
.rdp-day_selected:focus:not([aria-disabled='true']) {
|
|
1429
1430
|
border: var(--rdp-outline-selected);
|
|
1430
1431
|
}
|
|
1431
1432
|
|
|
@@ -2451,6 +2452,11 @@ template {
|
|
|
2451
2452
|
--ab-cmp-progress-indicator__background: var(--ab-color-primary);
|
|
2452
2453
|
--ab-cmp-progress-indicator__color: var(--ab-color-text-on-primary); }
|
|
2453
2454
|
|
|
2455
|
+
:root {
|
|
2456
|
+
--ab-cmp-icon__fill: var(--ab-icon-fill);
|
|
2457
|
+
--ab-cmp-icon__height: 17px;
|
|
2458
|
+
--ab-cmp-icon__width: 17px; }
|
|
2459
|
+
|
|
2454
2460
|
:root {
|
|
2455
2461
|
--ab-cmp-wizard__padding: var(--ab-space-5);
|
|
2456
2462
|
--ab-cmp-wizard__margin: var(--ab-space-1);
|
|
@@ -4107,6 +4113,29 @@ button.ab-StatusBar__SubPanel:hover {
|
|
|
4107
4113
|
background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
|
|
4108
4114
|
cursor: pointer; }
|
|
4109
4115
|
|
|
4116
|
+
.ab-StatusBar {
|
|
4117
|
+
display: flex;
|
|
4118
|
+
border-right: var(--ab-cmp-adaptable-statusbar__border);
|
|
4119
|
+
border-left: var(--ab-cmp-adaptable-statusbar__border); }
|
|
4120
|
+
|
|
4121
|
+
.ab-StatusBar__SubPanel {
|
|
4122
|
+
padding: var(--ab-cmp-adaptable-statusbar-sub-panel__padding);
|
|
4123
|
+
border: 0;
|
|
4124
|
+
background: none;
|
|
4125
|
+
font-weight: 400;
|
|
4126
|
+
border-right: var(--ab-cmp-adaptable-statusbar__border); }
|
|
4127
|
+
|
|
4128
|
+
.ab-StatusBar__SubPanel:last-child {
|
|
4129
|
+
border-right: 0; }
|
|
4130
|
+
|
|
4131
|
+
.ab-StatusBar__SubPanel,
|
|
4132
|
+
.ab-StatusBar__SubPanel .ab-SimpleButton {
|
|
4133
|
+
color: var(--ab-cmp-adaptable-statusbar__color); }
|
|
4134
|
+
|
|
4135
|
+
button.ab-StatusBar__SubPanel:hover {
|
|
4136
|
+
background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
|
|
4137
|
+
cursor: pointer; }
|
|
4138
|
+
|
|
4110
4139
|
.ab-alert--error {
|
|
4111
4140
|
background: var(--ab-color-error); }
|
|
4112
4141
|
|
|
@@ -4160,6 +4189,12 @@ button.ab-StatusBar__SubPanel:hover {
|
|
|
4160
4189
|
.ab-ActionColumn > button.ab-SimpleButton {
|
|
4161
4190
|
height: 100%; }
|
|
4162
4191
|
|
|
4192
|
+
.adaptableRowActionButtons.ag-cell {
|
|
4193
|
+
padding: 0; }
|
|
4194
|
+
|
|
4195
|
+
.adaptableRowActionButtons.ag-cell .ab-ActionColumn {
|
|
4196
|
+
column-gap: 0; }
|
|
4197
|
+
|
|
4163
4198
|
.Toastify__toast-container {
|
|
4164
4199
|
border-style: none;
|
|
4165
4200
|
border-width: 0px; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.0.0-canary.
|
|
3
|
+
"version": "12.0.0-canary.5",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"main": "agGrid.js",
|
|
32
32
|
"typings": "types.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@infinite-table/infinite-react": "0.3.
|
|
34
|
+
"@infinite-table/infinite-react": "0.3.12",
|
|
35
35
|
"date-fns": "2.22.1",
|
|
36
36
|
"debug": "^4.3.1",
|
|
37
37
|
"isomorphic-fetch": "^2.2.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"re-resizable": "^6.9.1",
|
|
42
42
|
"react": "^16.8.0 || ^17.0.0",
|
|
43
43
|
"react-beautiful-dnd": "13.1.0",
|
|
44
|
-
"react-day-picker": "8.0.
|
|
44
|
+
"react-day-picker": "8.0.6",
|
|
45
45
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
46
46
|
"react-redux": "7.2.4",
|
|
47
47
|
"react-remove-scroll": "2.4.2",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1655288118527;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -1 +1,181 @@
|
|
|
1
|
-
|
|
1
|
+
import { RowNode } from '@ag-grid-community/all-modules';
|
|
2
|
+
import { ActionRowSubmittedInfo, ActionRowType, AdaptableButton, AdaptableColumn, AdaptableObject, BaseContext, FormContext } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Options related to Action Columns and Buttons in Adaptable.
|
|
5
|
+
*/
|
|
6
|
+
export interface ActionOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Columns which contain an AdapTable Button - used for performing Actions
|
|
9
|
+
*/
|
|
10
|
+
actionColumns?: ActionColumn[];
|
|
11
|
+
/**
|
|
12
|
+
* Action buttons to display for each row.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue undefined
|
|
15
|
+
*/
|
|
16
|
+
actionRowButtons?: ('clone' | 'create' | 'edit' | 'delete')[];
|
|
17
|
+
/**
|
|
18
|
+
* Position of supplied Action Buttons
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue 'pinnedLeft'
|
|
21
|
+
*/
|
|
22
|
+
actionRowButtonsPosition?: 'pinnedLeft' | 'pinnedRight';
|
|
23
|
+
/**
|
|
24
|
+
* If set to true, the Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
autoHandleActionRowButtons?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Function which is called when auto-handling the 'create' Action Row Button. The returned row value should have a valid(unique) primary key value.
|
|
31
|
+
*
|
|
32
|
+
* @defaultValue undefined
|
|
33
|
+
*/
|
|
34
|
+
setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
|
|
35
|
+
/**
|
|
36
|
+
* Options for managing the Form which the Action Row displays
|
|
37
|
+
*/
|
|
38
|
+
actionRowFormOptions?: ActionRowFormOptions;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The context for the SetPrimaryKeyValueContext function
|
|
42
|
+
*/
|
|
43
|
+
export interface SetPrimaryKeyValueContext extends BaseContext {
|
|
44
|
+
rowData: any;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A Special Column that wraps an AdapTable Button
|
|
48
|
+
*/
|
|
49
|
+
export interface ActionColumn extends AdaptableObject {
|
|
50
|
+
/**
|
|
51
|
+
* Mandatory 'Id'; if no value set for `FriendlyName`, this will also be Column name
|
|
52
|
+
*/
|
|
53
|
+
columnId: string;
|
|
54
|
+
/**
|
|
55
|
+
* How Column appears in Column Header, Menus; if no value set, `ColumnId` is used
|
|
56
|
+
*/
|
|
57
|
+
friendlyName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Button (or list of buttons) to display in the Column
|
|
60
|
+
*/
|
|
61
|
+
actionColumnButton: AdaptableButton<ActionColumnContext> | AdaptableButton<ActionColumnContext>[];
|
|
62
|
+
/**
|
|
63
|
+
* Shows Action Column also in grouped rows
|
|
64
|
+
*/
|
|
65
|
+
includeGroupedRows?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Additional optional properties for Column (e.g. filterable, resizable)
|
|
68
|
+
*/
|
|
69
|
+
actionColumnSettings?: ActionColumnSettings;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Context required by functions when using an Action Column Button
|
|
73
|
+
*/
|
|
74
|
+
export interface ActionColumnContext extends BaseContext {
|
|
75
|
+
/**
|
|
76
|
+
* Action Column in question
|
|
77
|
+
*/
|
|
78
|
+
actionColumn: ActionColumn;
|
|
79
|
+
/**
|
|
80
|
+
* Primary Key Value in current row
|
|
81
|
+
*/
|
|
82
|
+
primaryKeyValue: any;
|
|
83
|
+
/**
|
|
84
|
+
* Current AG Grid Row Node
|
|
85
|
+
*/
|
|
86
|
+
rowNode: RowNode;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Set of optional properties that define an Action Columns behaviour
|
|
90
|
+
*/
|
|
91
|
+
export interface ActionColumnSettings {
|
|
92
|
+
/**
|
|
93
|
+
* Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid
|
|
94
|
+
*/
|
|
95
|
+
width?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Whether Column can be resized (by dragging column header edges)
|
|
98
|
+
* @defaultValue true
|
|
99
|
+
*/
|
|
100
|
+
resizable?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Whether no menu should be shown for this Column header.
|
|
103
|
+
* @defaultValue false
|
|
104
|
+
*/
|
|
105
|
+
suppressMenu?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Whether if this Column should be movable via dragging
|
|
108
|
+
* @defaultValue false
|
|
109
|
+
*/
|
|
110
|
+
suppressMovable?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Options for editing (create/update/delete) row entries in the grid
|
|
114
|
+
*/
|
|
115
|
+
export interface ActionRowFormOptions {
|
|
116
|
+
/**
|
|
117
|
+
* Custom form title provider
|
|
118
|
+
* @defaultValue 'Create New Row'/'Edit Row'
|
|
119
|
+
*/
|
|
120
|
+
formTitle?: string | ((context: ActionRowParamContext) => string);
|
|
121
|
+
/**
|
|
122
|
+
* Custom form description provider
|
|
123
|
+
* @defaultValue undefined
|
|
124
|
+
*/
|
|
125
|
+
formDescription?: string | ((context: ActionRowParamContext) => string);
|
|
126
|
+
/**
|
|
127
|
+
* Custom form field label provider
|
|
128
|
+
* @defaultValue undefined
|
|
129
|
+
*/
|
|
130
|
+
formFieldLabel?: (context: FormFieldLabelContext) => string;
|
|
131
|
+
/**
|
|
132
|
+
* Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'ActionRowSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
|
|
133
|
+
*/
|
|
134
|
+
formButtons?: AdaptableButton<FormContext>[];
|
|
135
|
+
/**
|
|
136
|
+
* Function which is invoked when the form in an Action Row is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!
|
|
137
|
+
*
|
|
138
|
+
* @param actionRowSubmittedInfo the form submitted info
|
|
139
|
+
* @defaultValue undefined
|
|
140
|
+
*/
|
|
141
|
+
onFormSubmit?: (actionRowSubmittedInfo: ActionRowSubmittedInfo) => void;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Context passed into a Row Form - can be `CreateActionRowContext` or `EditActionRowContext`
|
|
145
|
+
*/
|
|
146
|
+
export declare type ActionRowContext = CreateActionRowContext | EditActionRowContext;
|
|
147
|
+
/**
|
|
148
|
+
* Context used in a Create Row Form
|
|
149
|
+
*/
|
|
150
|
+
export interface CreateActionRowContext extends FormContext {
|
|
151
|
+
/**
|
|
152
|
+
* Type of the Context
|
|
153
|
+
*/
|
|
154
|
+
type: Extract<ActionRowType, 'rowCreated'>;
|
|
155
|
+
/**
|
|
156
|
+
* The RowNode being cloned
|
|
157
|
+
*/
|
|
158
|
+
clonedRowNode?: RowNode;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Context used in an Edit Row Form
|
|
162
|
+
*/
|
|
163
|
+
export interface EditActionRowContext extends FormContext {
|
|
164
|
+
/**
|
|
165
|
+
* Type of the Context
|
|
166
|
+
*/
|
|
167
|
+
type: Extract<ActionRowType, 'rowEdited'>;
|
|
168
|
+
/**
|
|
169
|
+
* The RowNode being edited
|
|
170
|
+
*/
|
|
171
|
+
rowNode: RowNode;
|
|
172
|
+
}
|
|
173
|
+
export interface ActionRowParamContext extends BaseContext {
|
|
174
|
+
type: Extract<ActionRowType, 'rowEdited' | 'rowCreated'>;
|
|
175
|
+
rowNode?: RowNode;
|
|
176
|
+
}
|
|
177
|
+
export interface FormFieldLabelContext extends BaseContext {
|
|
178
|
+
type: Extract<ActionRowType, 'rowEdited' | 'rowCreated'>;
|
|
179
|
+
column: AdaptableColumn;
|
|
180
|
+
rowNode?: RowNode;
|
|
181
|
+
}
|
|
@@ -22,6 +22,7 @@ import { FlashingCellOptions } from './FlashingCellOptions';
|
|
|
22
22
|
import { AlertOptions } from './AlertOptions';
|
|
23
23
|
import { AdaptableQLOptions } from './AdaptableQLOptions';
|
|
24
24
|
import { ColumnOptions } from './ColumnOptions';
|
|
25
|
+
import { ActionOptions } from './ActionOptions';
|
|
25
26
|
/**
|
|
26
27
|
* Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience
|
|
27
28
|
*/
|
|
@@ -81,6 +82,10 @@ export interface AdaptableOptions {
|
|
|
81
82
|
* @gridInfoItem
|
|
82
83
|
*/
|
|
83
84
|
userName?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Options for managing Action Columns and Action Rows
|
|
87
|
+
*/
|
|
88
|
+
actionOptions?: ActionOptions;
|
|
84
89
|
/**
|
|
85
90
|
* Options for managing AdapTableQL
|
|
86
91
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormContext } from '../../types';
|
|
2
2
|
import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
|
|
3
3
|
import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
|
|
4
|
-
import { AdaptableForm
|
|
4
|
+
import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
|
|
5
5
|
import { CellDataChangedInfo } from '../types';
|
|
6
6
|
/**
|
|
7
7
|
* Options related to Alerts in Adaptable.
|
|
@@ -65,7 +65,7 @@ export declare type ActionHandler = {
|
|
|
65
65
|
/**
|
|
66
66
|
* Handler function to call when the Button is clicked
|
|
67
67
|
*/
|
|
68
|
-
handler: (button: AlertButton<
|
|
68
|
+
handler: (button: AlertButton<AlertFormContext>, context: AlertFormContext) => void;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Form to show in an Alert
|
|
@@ -78,20 +78,16 @@ export declare type AlertForm = {
|
|
|
78
78
|
/**
|
|
79
79
|
* The Form to display in the Alert
|
|
80
80
|
*/
|
|
81
|
-
form: AdaptableForm<
|
|
81
|
+
form: AdaptableForm<AlertFormContext>;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Context required by functions when using an Alert Button
|
|
85
85
|
*/
|
|
86
|
-
export interface
|
|
86
|
+
export interface AlertFormContext extends FormContext {
|
|
87
87
|
/**
|
|
88
88
|
* Alert that has been triggered
|
|
89
89
|
*/
|
|
90
90
|
alert: AdaptableAlert;
|
|
91
|
-
/**
|
|
92
|
-
* Data in the Alert Form
|
|
93
|
-
*/
|
|
94
|
-
formData?: AdaptableFormData;
|
|
95
91
|
}
|
|
96
92
|
/**
|
|
97
93
|
* Context used for creating bespoke Alert messages
|
|
@@ -5,10 +5,14 @@ import { Column } from '@ag-grid-community/all-modules';
|
|
|
5
5
|
export interface ColumnOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Provide an alternative Friendly Name for a Column
|
|
8
|
+
*
|
|
9
|
+
* @defaultValue undefined
|
|
8
10
|
*/
|
|
9
11
|
columnFriendlyName?: (columnFriendlyNameContext: ColumnFriendlyNameContext) => string | undefined;
|
|
10
12
|
/**
|
|
11
13
|
* Optional list of Column Types - used primarily for Special Columns
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue []
|
|
12
16
|
*/
|
|
13
17
|
columnTypes?: string[];
|
|
14
18
|
/**
|
|
@@ -80,13 +80,9 @@ export interface DashboardButtonContext extends BaseContext {
|
|
|
80
80
|
/**
|
|
81
81
|
* Context required by functions when using a Custom Toolbar Button
|
|
82
82
|
*/
|
|
83
|
-
export interface CustomToolbarButtonContext extends
|
|
83
|
+
export interface CustomToolbarButtonContext extends DashboardButtonContext {
|
|
84
84
|
/**
|
|
85
85
|
* Custom Toolbar which hosts the Button
|
|
86
86
|
*/
|
|
87
87
|
customToolbar: CustomToolbar;
|
|
88
|
-
/**
|
|
89
|
-
* Current Dashboard State
|
|
90
|
-
*/
|
|
91
|
-
dashboardState: DashboardState;
|
|
92
88
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
2
|
-
import {
|
|
2
|
+
import { ActionColumnContext, AdaptableButton } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Built in `undo` data change action
|
|
5
|
+
*/
|
|
3
6
|
export declare type AdaptableDataChangeHistoryAction = 'undo';
|
|
4
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The context for the DataChangeHistoryButton
|
|
9
|
+
*/
|
|
10
|
+
export interface DataChangeHistoryContext extends ActionColumnContext {
|
|
5
11
|
/**
|
|
6
12
|
* Helper function to undo the change.
|
|
7
13
|
*/
|
|
@@ -10,9 +16,16 @@ export interface DataChangeHistoryContext extends ActionColumnButtonContext {
|
|
|
10
16
|
* If the change references a group node.
|
|
11
17
|
*/
|
|
12
18
|
isGroupNode: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The initial data change
|
|
21
|
+
*/
|
|
22
|
+
dataChangedInfo: CellDataChangedInfo;
|
|
13
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* A custom AdaptableButton which provides a build in `undo` action
|
|
26
|
+
*/
|
|
14
27
|
export interface DataChangeHistoryButton extends AdaptableButton<DataChangeHistoryContext> {
|
|
15
|
-
|
|
28
|
+
action?: AdaptableDataChangeHistoryAction;
|
|
16
29
|
}
|
|
17
30
|
/**
|
|
18
31
|
* Options to manage the 'Data Change History Module', which provides an overview of all previous changes, giving the possibility to undo specific changes
|
|
@@ -34,6 +47,8 @@ export interface DataChangeHistoryOptions {
|
|
|
34
47
|
showDataChange?: (cellDataChangedInfo: CellDataChangedInfo) => boolean;
|
|
35
48
|
/**
|
|
36
49
|
* Action button definition. Can be used to implement undo functionality.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue undefined
|
|
37
52
|
*/
|
|
38
|
-
|
|
53
|
+
changeHistoryButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
|
|
39
54
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AdaptableButton, AdaptableColumn, BaseContext, RowFormSubmittedInfo, RowFormType } from '../../types';
|
|
3
|
-
import { FormContext } from '../PredefinedConfig/Common/FormContext';
|
|
1
|
+
import { BaseContext } from '../../types';
|
|
4
2
|
import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
|
|
5
3
|
import { MathOperation } from '../PredefinedConfig/Common/Enums';
|
|
6
4
|
import { GridCell } from '../PredefinedConfig/Selection/GridCell';
|
|
7
5
|
/**
|
|
8
|
-
* Options related to Editing in Adaptable
|
|
9
|
-
*
|
|
10
|
-
* Allows users to provide Adaptable with Server Validation that works in conjunction with Client (aka Cell) Validation
|
|
6
|
+
* Options related to Editing in Adaptable - includes Server Validation, Smart Edit Operations and Row Forms
|
|
11
7
|
*/
|
|
12
8
|
export interface EditOptions {
|
|
13
9
|
/**
|
|
14
10
|
* Function to validate on Server Adaptable data edits
|
|
11
|
+
*
|
|
12
|
+
* @defaultValue undefined
|
|
15
13
|
*/
|
|
16
14
|
validateOnServer?: (cellDataChangedInfo: CellDataChangedInfo) => Promise<ValidationResult>;
|
|
17
15
|
/**
|
|
@@ -23,16 +21,16 @@ export interface EditOptions {
|
|
|
23
21
|
displayServerValidationMessages?: boolean;
|
|
24
22
|
/**
|
|
25
23
|
* Function which checks if given Grid Cell is editable
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue undefined
|
|
26
26
|
*/
|
|
27
27
|
isCellEditable?: (gridCell: GridCell) => boolean;
|
|
28
28
|
/**
|
|
29
29
|
* Custom Operations to use in Smart Edit
|
|
30
|
+
*
|
|
31
|
+
* @defaultValue undefined
|
|
30
32
|
*/
|
|
31
33
|
smartEditCustomOperations?: SmartEditCustomOperation[];
|
|
32
|
-
/**
|
|
33
|
-
* Options for editing (create/update/delete) row entries in the grid.
|
|
34
|
-
*/
|
|
35
|
-
rowFormOptions?: RowFormOptions;
|
|
36
34
|
}
|
|
37
35
|
/**
|
|
38
36
|
* Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
|
|
@@ -74,55 +72,3 @@ export interface SmartEditOperationContext extends BaseContext {
|
|
|
74
72
|
*/
|
|
75
73
|
currentCell: GridCell;
|
|
76
74
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Options for editing (create/update/delete) row entries in the grid
|
|
79
|
-
*/
|
|
80
|
-
export interface RowFormOptions {
|
|
81
|
-
/**
|
|
82
|
-
* Custom form title provider
|
|
83
|
-
*
|
|
84
|
-
* @defaultValue 'Create New Row'/'Edit Row'
|
|
85
|
-
*/
|
|
86
|
-
formTitle?: string | ((context: FormParamContext) => string);
|
|
87
|
-
/**
|
|
88
|
-
* Custom form description provider
|
|
89
|
-
*
|
|
90
|
-
* @defaultValue undefined
|
|
91
|
-
*/
|
|
92
|
-
formDescription?: string | ((context: FormParamContext) => string);
|
|
93
|
-
/**
|
|
94
|
-
* Custom form field label provider
|
|
95
|
-
*
|
|
96
|
-
* @defaultValue undefined
|
|
97
|
-
*/
|
|
98
|
-
formFieldLabel?: (context: FormFieldLabelContext) => string;
|
|
99
|
-
/**
|
|
100
|
-
* Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'RowFormSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
|
|
101
|
-
*/
|
|
102
|
-
formButtons?: AdaptableButton<RowFormContext>[];
|
|
103
|
-
/**
|
|
104
|
-
* Function which is invoked when a row form is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!
|
|
105
|
-
*
|
|
106
|
-
* @param rowFormSubmittedInfo the form submitted info
|
|
107
|
-
* @defaultValue undefined
|
|
108
|
-
*/
|
|
109
|
-
onFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void;
|
|
110
|
-
}
|
|
111
|
-
export declare type RowFormContext = CreateRowFormContext | EditRowFormContext;
|
|
112
|
-
export interface CreateRowFormContext extends FormContext {
|
|
113
|
-
type: Extract<RowFormType, 'rowCreated'>;
|
|
114
|
-
clonedRowNode?: RowNode;
|
|
115
|
-
}
|
|
116
|
-
export interface EditRowFormContext extends FormContext {
|
|
117
|
-
type: Extract<RowFormType, 'rowEdited'>;
|
|
118
|
-
rowNode: RowNode;
|
|
119
|
-
}
|
|
120
|
-
export interface FormParamContext extends BaseContext {
|
|
121
|
-
type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
|
|
122
|
-
rowNode?: RowNode;
|
|
123
|
-
}
|
|
124
|
-
export interface FormFieldLabelContext extends BaseContext {
|
|
125
|
-
type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
|
|
126
|
-
column: AdaptableColumn;
|
|
127
|
-
rowNode?: RowNode;
|
|
128
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContextMenuContext, GridCell } from '../../types';
|
|
1
|
+
import { AdaptableIcon, ContextMenuContext, GridCell } from '../../types';
|
|
2
2
|
import { CustomFDC3Context } from '../PredefinedConfig/Common/FDC3Context';
|
|
3
3
|
/**
|
|
4
4
|
* Options required for when using the Finance plugin
|
|
@@ -84,9 +84,9 @@ export interface FDC3Column {
|
|
|
84
84
|
*/
|
|
85
85
|
intentContextMenuLabel?: string | ((raiseFDC3IntentContext: RaiseFDC3IntentContext) => string);
|
|
86
86
|
/**
|
|
87
|
-
* Returns
|
|
87
|
+
* Returns a custom icon to display in the Raise Intent Context Menu Item;
|
|
88
88
|
*/
|
|
89
|
-
getIconForIntent?: (intent: FDC3Intent | CustomFDC3Intent) =>
|
|
89
|
+
getIconForIntent?: (intent: FDC3Intent | CustomFDC3Intent) => AdaptableIcon;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* A Column which will be defined as an FDC3 Instrument
|
|
@@ -91,5 +91,12 @@ export interface DataSet extends AdaptableObject {
|
|
|
91
91
|
*/
|
|
92
92
|
form?: AdaptableForm<DataSetFormContext>;
|
|
93
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* Used when a DataSet displays a Form
|
|
96
|
+
*/
|
|
94
97
|
export interface DataSetFormContext extends FormContext {
|
|
98
|
+
/**
|
|
99
|
+
* The DataSet which triggered the Form
|
|
100
|
+
*/
|
|
101
|
+
dataSet: DataSet;
|
|
95
102
|
}
|
|
@@ -68,15 +68,20 @@ export interface LayoutOptions {
|
|
|
68
68
|
export interface LayoutTagOptions {
|
|
69
69
|
/**
|
|
70
70
|
* Automatically generate an Object Tag for each Layout
|
|
71
|
+
*
|
|
72
|
+
* @defaultValue false
|
|
71
73
|
*/
|
|
72
74
|
autoGenerateTagsForLayouts?: boolean | ((context: AutoGenerateTagsForLayoutsContext) => AdaptableObjectTag[]);
|
|
73
75
|
/**
|
|
74
76
|
* Checks if the provided Adaptable Object is available in the given Layout
|
|
77
|
+
*
|
|
78
|
+
* @defaultValue undefined
|
|
75
79
|
*/
|
|
76
80
|
isObjectAvailableInLayout?: (context: LayoutAvailableContext) => boolean;
|
|
77
81
|
/**
|
|
78
82
|
* Automatically checks if Adaptable Objects Tags are available in current Layout
|
|
79
|
-
*
|
|
83
|
+
*
|
|
84
|
+
* @defaultValue false
|
|
80
85
|
*/
|
|
81
86
|
autoCheckTagsForLayouts?: boolean;
|
|
82
87
|
}
|
|
@@ -29,6 +29,8 @@ export interface SettingsPanelOptions {
|
|
|
29
29
|
alwaysShowInToolPanel?: boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Ordered items to display at side of Settings Panel
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue all available AdapTable modules
|
|
32
34
|
*/
|
|
33
35
|
navigation?: {
|
|
34
36
|
items?: (AdaptableSettingsPanel | string | '-')[];
|
|
@@ -5,22 +5,32 @@ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
|
|
|
5
5
|
export interface StateOptions {
|
|
6
6
|
/**
|
|
7
7
|
* Allows the customization of state persistence
|
|
8
|
+
*
|
|
9
|
+
* @defaultValue persists state to local storage
|
|
8
10
|
*/
|
|
9
11
|
persistState?: AdaptablePersistStateFunction;
|
|
10
12
|
/**
|
|
11
13
|
* Allows the customization of Adaptable State loading
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue loads state from local storage
|
|
12
16
|
*/
|
|
13
17
|
loadState?: AdaptableLoadStateFunction;
|
|
14
18
|
/**
|
|
15
19
|
* Allows the customization of the Adaptable State that is going to be persisted
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue undefined
|
|
16
22
|
*/
|
|
17
23
|
saveState?: AdaptableSaveStateFunction;
|
|
18
24
|
/**
|
|
19
25
|
* Allows hooking into Adaptable State hydration
|
|
26
|
+
*
|
|
27
|
+
* @defaultValue undefined
|
|
20
28
|
*/
|
|
21
29
|
applyState?: (state: any) => any;
|
|
22
30
|
/**
|
|
23
31
|
* Allows clearing of remote Adaptable State
|
|
32
|
+
*
|
|
33
|
+
* @defaultValue undefined
|
|
24
34
|
*/
|
|
25
35
|
clearState?: AdaptableClearStateFunction;
|
|
26
36
|
/**
|