@adaptabletools/adaptable 15.4.3 → 16.0.0-canary.1
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 +1 -1
- package/base.css.map +1 -1
- package/bundle.cjs.js +234 -228
- package/index.css +1 -1
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +8 -2
- package/src/AdaptableOptions/ActionColumnOptions.d.ts +82 -0
- package/src/AdaptableOptions/{ActionOptions.d.ts → ActionRowOptions.d.ts} +15 -90
- package/src/AdaptableOptions/AdaptableOptions.d.ts +32 -12
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +1 -12
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -0
- package/src/AdaptableOptions/CalendarOptions.d.ts +11 -0
- package/src/AdaptableOptions/CellSummaryOptions.d.ts +10 -0
- package/src/AdaptableOptions/ColumnOptions.d.ts +0 -4
- package/src/AdaptableOptions/CustomSortOptions.d.ts +24 -0
- package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +5 -1
- package/src/AdaptableOptions/DataSetOptions.d.ts +41 -0
- package/src/AdaptableOptions/DataSetOptions.js +2 -0
- package/src/AdaptableOptions/EditOptions.d.ts +4 -4
- package/src/AdaptableOptions/EntitlementOptions.d.ts +0 -16
- package/src/AdaptableOptions/ExportOptions.d.ts +2 -4
- package/src/AdaptableOptions/ExpressionOptions.d.ts +7 -0
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
- package/src/AdaptableOptions/GroupingOptions.d.ts +50 -0
- package/src/AdaptableOptions/GroupingOptions.js +2 -0
- package/src/AdaptableOptions/MasterDetailPluginOptions.d.ts +9 -0
- package/src/AdaptableOptions/PredicateOptions.d.ts +4 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +0 -8
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +30 -1
- package/src/Api/ActionColumnApi.d.ts +10 -0
- package/src/Api/ActionColumnApi.js +2 -0
- package/src/Api/{ActionApi.d.ts → ActionRowApi.d.ts} +4 -15
- package/src/Api/ActionRowApi.js +2 -0
- package/src/Api/AdaptableApi.d.ts +11 -6
- package/src/Api/AlertApi.d.ts +2 -111
- package/src/Api/BulkUpdateApi.d.ts +0 -7
- package/src/Api/CalculatedColumnApi.d.ts +0 -31
- package/src/Api/CalendarApi.d.ts +1 -1
- package/src/Api/CellSummaryApi.d.ts +0 -7
- package/src/Api/ChartingApi.d.ts +0 -7
- package/src/Api/ColumnApi.d.ts +1 -131
- package/src/Api/ConfigApi.d.ts +1 -7
- package/src/Api/CustomSortApi.d.ts +0 -25
- package/src/Api/DashboardApi.d.ts +0 -16
- package/src/Api/DataChangeHistoryApi.d.ts +0 -7
- package/src/Api/DataSetApi.d.ts +1 -16
- package/src/Api/EventApi.d.ts +1 -9
- package/src/Api/Events/AdaptableStateChanged.d.ts +0 -8
- package/src/Api/Events/AdaptableStateReloaded.d.ts +0 -4
- package/src/Api/Events/BaseEventInfo.d.ts +9 -1
- package/src/Api/Events/LiveDataChanged.d.ts +3 -7
- package/src/Api/ExportApi.d.ts +7 -31
- package/src/Api/{QueryLanguageApi.d.ts → ExpressionApi.d.ts} +2 -2
- package/src/Api/ExpressionApi.js +2 -0
- package/src/Api/FilterApi.d.ts +1 -59
- package/src/Api/FlashingCellApi.d.ts +0 -15
- package/src/Api/FormatColumnApi.d.ts +1 -91
- package/src/Api/FreeTextColumnApi.d.ts +0 -39
- package/src/Api/GridApi.d.ts +0 -31
- package/src/Api/Implementation/ActionColumnApiImpl.d.ts +7 -0
- package/src/Api/Implementation/ActionColumnApiImpl.js +14 -0
- package/src/Api/Implementation/ActionRowApiImpl.d.ts +12 -0
- package/src/Api/Implementation/{ActionApiImpl.js → ActionRowApiImpl.js} +8 -15
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -4
- package/src/Api/Implementation/AdaptableApiImpl.js +7 -5
- package/src/Api/Implementation/AlertApiImpl.d.ts +1 -43
- package/src/Api/Implementation/AlertApiImpl.js +4 -94
- package/src/Api/Implementation/ApiBase.d.ts +15 -5
- package/src/Api/Implementation/ApiBase.js +26 -8
- package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +0 -7
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +0 -32
- package/src/Api/Implementation/CalendarApiImpl.d.ts +1 -0
- package/src/Api/Implementation/CalendarApiImpl.js +20 -17
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +3 -6
- package/src/Api/Implementation/ChartingApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ChartingApiImpl.js +0 -5
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -35
- package/src/Api/Implementation/ColumnApiImpl.js +1 -138
- package/src/Api/Implementation/ConfigApiImpl.js +2 -1
- package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -5
- package/src/Api/Implementation/CustomSortApiImpl.js +0 -16
- package/src/Api/Implementation/DashboardApiImpl.d.ts +0 -4
- package/src/Api/Implementation/DashboardApiImpl.js +2 -24
- package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +0 -1
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +0 -5
- package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -4
- package/src/Api/Implementation/DataSetApiImpl.js +1 -14
- package/src/Api/Implementation/ExportApiImpl.d.ts +4 -10
- package/src/Api/Implementation/ExportApiImpl.js +15 -34
- package/src/Api/Implementation/{QueryLanguageApiImpl.d.ts → ExpressionApiImpl.d.ts} +4 -4
- package/src/Api/Implementation/{QueryLanguageApiImpl.js → ExpressionApiImpl.js} +7 -5
- package/src/Api/Implementation/FilterApiImpl.d.ts +1 -17
- package/src/Api/Implementation/FilterApiImpl.js +0 -53
- package/src/Api/Implementation/FlashingCellApiImpl.d.ts +0 -3
- package/src/Api/Implementation/FlashingCellApiImpl.js +2 -13
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -34
- package/src/Api/Implementation/FormatColumnApiImpl.js +0 -73
- package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -8
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -29
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -7
- package/src/Api/Implementation/GridApiImpl.js +3 -32
- package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/LayoutApiImpl.js +2 -27
- package/src/Api/Implementation/OptionsApiImpl.d.ts +10 -5
- package/src/Api/Implementation/OptionsApiImpl.js +19 -7
- package/src/Api/Implementation/PlusMinusApiImpl.d.ts +0 -1
- package/src/Api/Implementation/PlusMinusApiImpl.js +0 -5
- package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -8
- package/src/Api/Implementation/PredicateApiImpl.js +2 -30
- package/src/Api/Implementation/QueryApiImpl.d.ts +0 -5
- package/src/Api/Implementation/QueryApiImpl.js +0 -21
- package/src/Api/Implementation/QuickSearchApiImpl.d.ts +0 -1
- package/src/Api/Implementation/QuickSearchApiImpl.js +0 -5
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -18
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -69
- package/src/Api/Implementation/ScopeApiImpl.js +1 -1
- package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SettingsPanelApiImpl.js +0 -9
- package/src/Api/Implementation/ShortcutApiImpl.d.ts +1 -6
- package/src/Api/Implementation/ShortcutApiImpl.js +0 -21
- package/src/Api/Implementation/SmartEditApiImpl.d.ts +0 -1
- package/src/Api/Implementation/SmartEditApiImpl.js +0 -5
- package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -5
- package/src/Api/Implementation/StyledColumnApiImpl.js +2 -17
- package/src/Api/Implementation/SystemStatusApiImpl.d.ts +0 -2
- package/src/Api/Implementation/SystemStatusApiImpl.js +0 -9
- package/src/Api/Implementation/TeamSharingApiImpl.d.ts +0 -5
- package/src/Api/Implementation/TeamSharingApiImpl.js +0 -21
- package/src/Api/Implementation/ThemeApiImpl.d.ts +0 -4
- package/src/Api/Implementation/ThemeApiImpl.js +2 -17
- package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +4 -2
- package/src/Api/Implementation/UserInterfaceApiImpl.js +17 -10
- package/src/Api/Internal/{ActionInternalApi.d.ts → ActionRowInternalApi.d.ts} +2 -2
- package/src/Api/Internal/{ActionInternalApi.js → ActionRowInternalApi.js} +12 -5
- package/src/Api/Internal/AdaptableInternalApi.d.ts +1 -10
- package/src/Api/Internal/AdaptableInternalApi.js +9 -20
- package/src/Api/Internal/AlertInternalApi.js +9 -6
- package/src/Api/Internal/CalculatedColumnInternalApi.js +2 -2
- package/src/Api/Internal/CustomSortInternalApi.d.ts +1 -1
- package/src/Api/Internal/CustomSortInternalApi.js +1 -1
- package/src/Api/Internal/DashboardInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.d.ts +1 -1
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/ExportInternalApi.js +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.d.ts → ExpressionnternalApi.d.ts} +1 -1
- package/src/Api/Internal/{QueryLanguageInternalApi.js → ExpressionnternalApi.js} +9 -5
- package/src/Api/Internal/FilterInternalApi.js +4 -1
- package/src/Api/Internal/FormatColumnInternalApi.js +1 -1
- package/src/Api/Internal/GridInternalApi.js +8 -0
- package/src/Api/Internal/LayoutInternalApi.js +6 -1
- package/src/Api/Internal/PredicateInternalApi.js +10 -0
- package/src/Api/Internal/QueryInternalApi.js +3 -1
- package/src/Api/Internal/SystemStatusInternalApi.js +4 -1
- package/src/Api/Internal/TeamSharingInternalApi.js +2 -0
- package/src/Api/LayoutApi.d.ts +3 -27
- package/src/Api/OptionsApi.d.ts +28 -10
- package/src/Api/PlusMinusApi.d.ts +0 -7
- package/src/Api/PredicateApi.d.ts +1 -32
- package/src/Api/QueryApi.d.ts +0 -23
- package/src/Api/QuickSearchApi.d.ts +0 -4
- package/src/Api/ScheduleApi.d.ts +0 -81
- package/src/Api/SettingsPanelApi.d.ts +0 -11
- package/src/Api/ShortcutApi.d.ts +0 -25
- package/src/Api/SmartEditApi.d.ts +0 -7
- package/src/Api/StyledColumnApi.d.ts +0 -21
- package/src/Api/SystemStatusApi.d.ts +0 -11
- package/src/Api/TeamSharingApi.d.ts +0 -23
- package/src/Api/ThemeApi.d.ts +0 -19
- package/src/Api/UserInterfaceApi.d.ts +4 -9
- package/src/PredefinedConfig/AlertState.d.ts +4 -1
- package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +3 -3
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +4 -1
- package/src/PredefinedConfig/Common/AggregationColumns.d.ts +3 -0
- package/src/PredefinedConfig/Common/BaseContext.d.ts +8 -0
- package/src/PredefinedConfig/Common/CellSummary.d.ts +1 -0
- package/src/PredefinedConfig/Common/DataChangedScope.d.ts +9 -0
- package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +2 -1
- package/src/PredefinedConfig/Common/Enums.js +1 -0
- package/src/PredefinedConfig/LayoutState.d.ts +0 -6
- package/src/PredefinedConfig/SystemState.d.ts +1 -1
- package/src/PredefinedConfig/TeamSharingState.d.ts +1 -1
- package/src/PredefinedConfig/ThemeState.d.ts +3 -0
- package/src/Strategy/AdaptableModuleBase.js +3 -3
- package/src/Strategy/AlertModule.js +3 -3
- package/src/Strategy/CalculatedColumnModule.js +2 -2
- package/src/Strategy/CellSummaryModule.js +3 -0
- package/src/Strategy/DataSetModule.d.ts +1 -1
- package/src/Strategy/DataSetModule.js +1 -1
- package/src/Strategy/ExportModule.js +4 -0
- package/src/Strategy/FlashingCellModule.js +4 -4
- package/src/Strategy/FormatColumnModule.js +3 -3
- package/src/Strategy/QueryModule.js +1 -1
- package/src/Strategy/SmartEditModule.js +2 -0
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +25 -23
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +4 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +12 -6
- package/src/Utilities/Helpers/FormatHelper.js +7 -0
- package/src/Utilities/ObjectFactory.d.ts +2 -2
- package/src/Utilities/ObjectFactory.js +7 -4
- package/src/Utilities/Services/AlertService.js +1 -1
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +2 -2
- package/src/Utilities/Services/ChartingService.js +2 -0
- package/src/Utilities/Services/EntitlementService.js +2 -2
- package/src/Utilities/Services/MetamodelService.js +4 -0
- package/src/Utilities/Services/ModuleService.js +10 -10
- package/src/Utilities/Services/QueryLanguageService.js +16 -0
- package/src/Utilities/Services/ReportService.js +8 -6
- package/src/Utilities/Services/RowEditService.js +4 -2
- package/src/Utilities/Services/ValidationService.js +2 -0
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +5 -5
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +9 -9
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsActionColumnsForm.js +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsSidebarForm.js +4 -4
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +3 -3
- package/src/View/AdaptableWizardView/Wizard.js +2 -2
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CellSummary/CellSummaryStatusPanel.js +1 -1
- package/src/View/Components/AdaptableIconSelector/index.d.ts +6 -0
- package/src/View/Components/AdaptableIconSelector/index.js +18 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -2
- package/src/View/Components/AdaptableViewIcon/index.d.ts +10 -0
- package/src/View/Components/AdaptableViewIcon/index.js +18 -0
- package/src/View/Components/EntityRulesEditor/Utilities.js +3 -3
- package/src/View/Components/ExternalRenderer.js +14 -2
- package/src/View/Components/FilterForm/QuickFilterForm.js +4 -0
- package/src/View/Components/Popups/AdaptablePopupAlert.js +2 -0
- package/src/View/Components/RangesComponent.d.ts +4 -4
- package/src/View/Components/RangesComponent.js +13 -22
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +2 -0
- package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -1
- package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +1 -1
- package/src/View/Dashboard/CustomDashboardButton.js +2 -0
- package/src/View/Dashboard/CustomToolbarWrapper.js +13 -1
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -7
- package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
- package/src/View/DataChangeHistory/buildActionColumnButton.js +3 -2
- package/src/View/Export/ExportViewPanel.d.ts +1 -1
- package/src/View/Export/ExportViewPanel.js +4 -4
- package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +3 -1
- package/src/View/GridInfo/GridInfoPopup.d.ts +0 -1
- package/src/View/GridInfo/GridInfoPopup.js +1 -2
- package/src/View/GridInfo/GridOptionsComponent.js +1 -1
- package/src/View/Layout/LayoutViewPanel.js +1 -1
- package/src/View/Layout/PivotDetailsPopoup.js +2 -0
- package/src/View/Layout/SaveLayoutButton.js +1 -1
- package/src/View/Layout/Wizard/LayoutWizard.js +1 -1
- package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +1 -1
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +2 -2
- package/src/View/StyledColumn/Wizard/StyledColumnWizardStyleSection/Components/StyledColumnBadgePreview.js +8 -1
- package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
- package/src/agGrid/ActionColumnRenderer.js +5 -1
- package/src/agGrid/Adaptable.d.ts +21 -10
- package/src/agGrid/Adaptable.js +164 -63
- package/src/agGrid/BadgeRenderer.js +10 -2
- package/src/agGrid/CheckboxRenderer.d.ts +1 -2
- package/src/agGrid/agGridHelper.js +4 -5
- package/src/agGrid/agGridMenuHelper.js +4 -0
- package/src/agGrid/attachAddaptableColumnTypes.d.ts +11 -11
- package/src/agGrid/editors/AdaptableDateEditor/index.js +2 -0
- package/src/agGrid/editors/AdaptableNumberEditor/index.js +2 -2
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +6 -3
- package/src/components/AdaptableIconComponent/index.js +6 -3
- package/src/components/ExpressionEditor/BaseEditorInput.js +2 -0
- package/src/components/ExpressionEditor/index.js +1 -1
- package/src/components/IconSelector/IconSelector.d.ts +2 -0
- package/src/components/IconSelector/IconSelector.js +21 -5
- package/src/components/Input/NumberInput.d.ts +10 -0
- package/src/components/Input/NumberInput.js +46 -0
- package/src/metamodel/adaptable.metamodel.d.ts +230 -145
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +14 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/AdaptableOptions/GeneralOptions.d.ts +0 -159
- package/src/Api/Events/SearchChanged.d.ts +0 -12
- package/src/Api/Implementation/ActionApiImpl.d.ts +0 -14
- /package/src/AdaptableOptions/{ActionOptions.js → ActionColumnOptions.js} +0 -0
- /package/src/AdaptableOptions/{GeneralOptions.js → ActionRowOptions.js} +0 -0
- /package/src/{Api/ActionApi.js → AdaptableOptions/CalendarOptions.js} +0 -0
- /package/src/{Api/Events/SearchChanged.js → AdaptableOptions/CellSummaryOptions.js} +0 -0
- /package/src/{Api/QueryLanguageApi.js → AdaptableOptions/CustomSortOptions.js} +0 -0
|
@@ -62,7 +62,7 @@ const ShortcutSettingsWizard = (props) => {
|
|
|
62
62
|
React.createElement(Tabs_1.Tabs, { autoFocus: false },
|
|
63
63
|
React.createElement(Tabs_1.Tabs.Tab, null, "Shortcut Settings"),
|
|
64
64
|
React.createElement(Tabs_1.Tabs.Content, null,
|
|
65
|
-
React.createElement(FormLayout_1.default,
|
|
65
|
+
React.createElement(FormLayout_1.default, null,
|
|
66
66
|
React.createElement(FormLayout_1.FormRow, null,
|
|
67
67
|
' ',
|
|
68
68
|
React.createElement(HelpBlock_1.default, { fontSize: 2, mb: 0 }, "Keyboard key that, when pressed, triggers the shortcut")),
|
|
@@ -10,11 +10,11 @@ const DropdownButton_1 = tslib_1.__importDefault(require("../../../components/Dr
|
|
|
10
10
|
const ErrorBox_1 = tslib_1.__importDefault(require("../../../components/ErrorBox"));
|
|
11
11
|
const FormLayout_1 = tslib_1.__importStar(require("../../../components/FormLayout"));
|
|
12
12
|
const HelpBlock_1 = tslib_1.__importDefault(require("../../../components/HelpBlock"));
|
|
13
|
-
const IconSelector_1 = require("../../../components/IconSelector");
|
|
14
13
|
const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
|
|
15
14
|
const Tabs_1 = require("../../../components/Tabs");
|
|
16
15
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
|
|
17
16
|
const AdaptablePopover_1 = require("../../AdaptablePopover");
|
|
17
|
+
const AdaptableIconSelector_1 = require("../../Components/AdaptableIconSelector");
|
|
18
18
|
const PredicateEditor_1 = require("../../Components/PredicateEditor/PredicateEditor");
|
|
19
19
|
const StyleComponent_1 = require("../../Components/StyleComponent");
|
|
20
20
|
const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
|
|
@@ -51,7 +51,7 @@ const BadgeEditor = (props) => {
|
|
|
51
51
|
React.createElement(HelpBlock_1.default, { fontSize: 2, mb: 1, mt: 2 }, "Select (optional) Icon (and Icon position) to display in the Badge"),
|
|
52
52
|
' ',
|
|
53
53
|
// for now, only show for system icons the
|
|
54
|
-
!badge.Icon || 'name' in badge.Icon ? (React.createElement(
|
|
54
|
+
!badge.Icon || 'name' in badge.Icon ? (React.createElement(AdaptableIconSelector_1.AdaptableIconSelector, { value: (badge === null || badge === void 0 ? void 0 : badge.Icon) && 'name' in (badge === null || badge === void 0 ? void 0 : badge.Icon) ? badge.Icon.name : undefined, onChange: (iconName) => {
|
|
55
55
|
if (iconName) {
|
|
56
56
|
onChange(Object.assign(Object.assign({}, badge), { Icon: {
|
|
57
57
|
name: iconName,
|
|
@@ -21,8 +21,15 @@ const StyledColumnBadgePreview = ({ data }) => {
|
|
|
21
21
|
const predicateStr = badge.Predicate
|
|
22
22
|
? adaptable.api.predicateApi.predicateToString(badge.Predicate)
|
|
23
23
|
: 'No Predicate';
|
|
24
|
+
let icon = badge.Icon;
|
|
25
|
+
const customIcon = badge.Icon &&
|
|
26
|
+
'name' in badge.Icon &&
|
|
27
|
+
adaptable.api.userInterfaceApi.getCustomIconDefinition(badge.Icon.name);
|
|
28
|
+
if (customIcon) {
|
|
29
|
+
icon = customIcon;
|
|
30
|
+
}
|
|
24
31
|
return (React.createElement(rebass_1.Box, { mb: 1, key: index },
|
|
25
|
-
React.createElement(Badge_1.Badge, { icon:
|
|
32
|
+
React.createElement(Badge_1.Badge, { icon: icon, adaptableStyle: badge.Style, iconPosition: badge.IconPosition }, value),
|
|
26
33
|
React.createElement(Tag_1.Tag, { ml: 2 }, predicateStr)));
|
|
27
34
|
})));
|
|
28
35
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
|
|
3
|
-
import { ActionColumn } from '../
|
|
3
|
+
import { ActionColumn } from '../types';
|
|
4
4
|
interface ActionColumnCellRendererParams extends ICellRendererParams {
|
|
5
5
|
actionColumn?: ActionColumn;
|
|
6
6
|
}
|
|
@@ -10,7 +10,7 @@ function getActionButtonsAndActionColumn(adaptable, actionColumn, colId) {
|
|
|
10
10
|
var _a;
|
|
11
11
|
const actionCol = actionColumn
|
|
12
12
|
? actionColumn
|
|
13
|
-
: (_a = adaptable.api.
|
|
13
|
+
: (_a = adaptable.api.actionColumnApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((ac) => ac.columnId == colId);
|
|
14
14
|
if (actionCol && actionCol.actionColumnButton) {
|
|
15
15
|
let actionButtons = Array.isArray(actionCol.actionColumnButton)
|
|
16
16
|
? actionCol.actionColumnButton
|
|
@@ -71,6 +71,8 @@ const ReactActionColumnRenderer = (props) => {
|
|
|
71
71
|
primaryKeyValue: pkValue,
|
|
72
72
|
rowNode: props.node,
|
|
73
73
|
adaptableApi: adaptable.api,
|
|
74
|
+
userName: adaptable.adaptableOptions.userName,
|
|
75
|
+
adaptableId: adaptable.adaptableOptions.adaptableId,
|
|
74
76
|
data: props.data,
|
|
75
77
|
};
|
|
76
78
|
return (React.createElement("div", { className: "ab-ActionColumn" }, renderActionButtons(actionButtons, adaptable.api, buttonContext, rerender)));
|
|
@@ -98,6 +100,8 @@ class ActionColumnRenderer {
|
|
|
98
100
|
primaryKeyValue: pkValue,
|
|
99
101
|
rowNode: params.node,
|
|
100
102
|
adaptableApi: adaptable.api,
|
|
103
|
+
userName: adaptable.adaptableOptions.userName,
|
|
104
|
+
adaptableId: adaptable.adaptableOptions.adaptableId,
|
|
101
105
|
data: params.data,
|
|
102
106
|
};
|
|
103
107
|
const eGui = this.eGui;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartRef, ColDef, ColGroupDef, Column, ColumnRowGroupChangedEvent, ExcelStyle, GridOptions, IRowNode, Module, ModuleNames } from '@ag-grid-community/core';
|
|
2
2
|
import { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard } from '../AdaptableInterfaces/AdaptableNoCodeWizard';
|
|
3
|
-
import { AdaptableVariant, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
3
|
+
import { AdaptableVariant, AgGridConfig, IAdaptable } from '../AdaptableInterfaces/IAdaptable';
|
|
4
4
|
import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
|
|
5
5
|
import { AdaptablePlugin } from '../AdaptableOptions/AdaptablePlugin';
|
|
6
6
|
import { AdaptableApi } from '../Api/AdaptableApi';
|
|
@@ -33,16 +33,18 @@ import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLan
|
|
|
33
33
|
import { IAlertService } from '../Utilities/Services/Interface/IAlertService';
|
|
34
34
|
import { ColumnSetupInfo } from './ColumnSetupInfo';
|
|
35
35
|
import { CustomSort } from '../PredefinedConfig/CustomSortState';
|
|
36
|
-
import { ColumnValuesComparer } from '../AdaptableOptions/
|
|
36
|
+
import { ColumnValuesComparer } from '../AdaptableOptions/CustomSortOptions';
|
|
37
37
|
import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
|
|
38
38
|
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
39
39
|
import { RenderReactRootFn } from '../renderReactRoot';
|
|
40
40
|
import { AdaptableLogger } from './AdaptableLogger';
|
|
41
41
|
declare type RuntimeConfig = {
|
|
42
|
+
gridOptions: GridOptions;
|
|
42
43
|
waitForAgGrid?: boolean;
|
|
43
44
|
supressReact18RenderWarning?: boolean;
|
|
44
45
|
renderReactRoot?: RenderReactRootFn;
|
|
45
46
|
variant?: AdaptableVariant;
|
|
47
|
+
agGridModules?: Module[];
|
|
46
48
|
};
|
|
47
49
|
export declare class Adaptable implements IAdaptable {
|
|
48
50
|
api: AdaptableApi;
|
|
@@ -117,21 +119,19 @@ export declare class Adaptable implements IAdaptable {
|
|
|
117
119
|
* @param runtimeConfig the list of all the provided AG Grid modules (which will be passed to the underlying AG Grid instance)
|
|
118
120
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
119
121
|
*/
|
|
120
|
-
static init(adaptableOptions: AdaptableOptions,
|
|
121
|
-
agGridModules: Module[];
|
|
122
|
-
}): Promise<AdaptableApi>;
|
|
122
|
+
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
|
123
123
|
/**
|
|
124
124
|
* Lazy static constructor for Adaptable
|
|
125
125
|
* Receives an AdaptableOptions object
|
|
126
126
|
* Returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
127
127
|
* @param adaptableOptions an instance of AdaptableOptions
|
|
128
128
|
*/
|
|
129
|
-
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig
|
|
129
|
+
static initInternal(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig): Promise<AdaptableApi>;
|
|
130
130
|
private static collectInstance;
|
|
131
131
|
static forEachAdaptable(fn: (adaptable: Adaptable) => void): void;
|
|
132
132
|
private static dismissInstance;
|
|
133
133
|
constructor();
|
|
134
|
-
init(adaptableOptions: AdaptableOptions, runtimeConfig
|
|
134
|
+
init(adaptableOptions: AdaptableOptions, runtimeConfig: RuntimeConfig, _staticInit?: boolean): Promise<AdaptableApi>;
|
|
135
135
|
forPlugins(callback: (plugin: AdaptablePlugin) => any): void;
|
|
136
136
|
getPlugin(pluginId: string): AdaptablePlugin;
|
|
137
137
|
getPluginProperty(pluginId: string, propertyName: string, ...args: any): any;
|
|
@@ -194,6 +194,15 @@ export declare class Adaptable implements IAdaptable {
|
|
|
194
194
|
setColumnOrder(VisibleColumnList: string[]): void;
|
|
195
195
|
private persistLayout;
|
|
196
196
|
setLayout(layout?: Layout): void;
|
|
197
|
+
/**
|
|
198
|
+
* Setting layout works by modifing the column state.
|
|
199
|
+
* The column state is based on the current existing columns.
|
|
200
|
+
* At this point the column groups do not exist, and the widths from layout are not applied.
|
|
201
|
+
*
|
|
202
|
+
* After the col sate is applied and the column groups are created we need
|
|
203
|
+
* to apply the state again to update the widths of the group columns.
|
|
204
|
+
*/
|
|
205
|
+
private applyGroupColumnWidth;
|
|
197
206
|
updateRowGroupsExpandedState(layout?: Layout): void;
|
|
198
207
|
private updateLayoutFromGrid;
|
|
199
208
|
setSelectedCells(): SelectedCellInfo | undefined;
|
|
@@ -266,10 +275,10 @@ export declare class Adaptable implements IAdaptable {
|
|
|
266
275
|
*/
|
|
267
276
|
private mapColumnDefs;
|
|
268
277
|
private getColDefsForSpecialColumns;
|
|
269
|
-
getColDefsForFreeTextColumns(): ColDef<any>[];
|
|
278
|
+
getColDefsForFreeTextColumns(): ColDef<any, any>[];
|
|
270
279
|
setupColumnValueGetter({ col }: ColumnSetupInfo): void;
|
|
271
280
|
private getColDefsForRowEditColumns;
|
|
272
|
-
getColDefsForActionColumns(): ColDef<any>[];
|
|
281
|
+
getColDefsForActionColumns(): ColDef<any, any>[];
|
|
273
282
|
updateColDefsForSpecialColumns(): void;
|
|
274
283
|
private getColDefsForCalculatedColumns;
|
|
275
284
|
private isRegularColDef;
|
|
@@ -307,6 +316,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
307
316
|
setupAllowedAggFuncs({ col, abColumn }: ColumnSetupInfo): void;
|
|
308
317
|
triggerSetupColumnKeyCreator(colId: string): void;
|
|
309
318
|
setupColumnKeyCreator(columnSetupInfo: ColumnSetupInfo): void;
|
|
319
|
+
setupColumnCellDataType(columnSetupInfo: ColumnSetupInfo): void;
|
|
310
320
|
setupColumnHeader({ col, abColumn }: ColumnSetupInfo): boolean;
|
|
311
321
|
setupColumnFilter({ col, colDef }: ColumnSetupInfo): void;
|
|
312
322
|
setupColumnFloatingFilter({ col, colDef }: ColumnSetupInfo): void;
|
|
@@ -317,7 +327,8 @@ export declare class Adaptable implements IAdaptable {
|
|
|
317
327
|
private applyCurrentTheme;
|
|
318
328
|
private applyFinalRendering;
|
|
319
329
|
isAgGridModulePresent(moduleName: ModuleNames): boolean;
|
|
320
|
-
|
|
330
|
+
getAgGridRegisteredModules(): Module[];
|
|
331
|
+
private getAgGridRegisteredModuleNames;
|
|
321
332
|
private onRowDataChanged;
|
|
322
333
|
private onCellDataChanged;
|
|
323
334
|
private isUndoChange;
|