@adaptabletools/adaptable-cjs 17.0.0-canary.4 → 18.0.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.css +62 -14
- package/base.css.map +1 -1
- package/index.css +267 -165
- package/index.css.map +1 -1
- package/package.json +5 -4
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
- package/src/AdaptableOptions/AlertOptions.d.ts +7 -7
- package/src/AdaptableOptions/ColumnFilterOptions.d.ts +9 -9
- package/src/AdaptableOptions/CommentsOptions.d.ts +28 -0
- package/src/AdaptableOptions/EditOptions.d.ts +6 -6
- package/src/AdaptableOptions/GridFilterOptions.d.ts +13 -8
- package/src/AdaptableOptions/GroupingOptions.d.ts +9 -9
- package/src/AdaptableOptions/InteropioPluginOptions.d.ts +10 -0
- package/src/AdaptableOptions/MenuOptions.d.ts +18 -4
- package/src/AdaptableOptions/MenuOptions.js +14 -6
- package/src/AdaptableOptions/NotesOptions.d.ts +2 -9
- package/src/Api/AdaptableApi.d.ts +6 -1
- package/src/Api/CommentApi.d.ts +58 -0
- package/src/Api/EventApi.d.ts +48 -12
- package/src/Api/Events/CalculatedColumnChanged.d.ts +19 -0
- package/src/Api/Events/CellSelectionChanged.d.ts +11 -0
- package/src/Api/Events/CommentsChangedInfo.d.ts +5 -0
- package/src/Api/Events/LiveDataChanged.d.ts +3 -3
- package/src/Api/Events/RowSelectionChanged.d.ts +11 -0
- package/src/Api/GridApi.d.ts +0 -6
- package/src/Api/GridFilterApi.d.ts +2 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +6 -6
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/CommentsApiImpl.d.ts +15 -0
- package/src/Api/Implementation/CommentsApiImpl.js +46 -0
- package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
- package/src/Api/Implementation/ExpressionApiImpl.js +3 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +0 -1
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
- package/src/Api/Implementation/GridFilterApiImpl.js +1 -1
- package/src/Api/Implementation/NotesApiImpl.d.ts +2 -6
- package/src/Api/Implementation/NotesApiImpl.js +1 -15
- package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -0
- package/src/Api/Implementation/OptionsApiImpl.js +3 -0
- package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -6
- package/src/Api/Implementation/PluginsApiImpl.js +3 -15
- package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -12
- package/src/Api/Implementation/ScheduleApiImpl.js +0 -36
- package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -0
- package/src/Api/Implementation/ThemeApiImpl.js +3 -0
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
- package/src/Api/Internal/AdaptableInternalApi.js +3 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.d.ts +2 -0
- package/src/Api/Internal/CalculatedColumnInternalApi.js +16 -0
- package/src/Api/Internal/DashboardInternalApi.d.ts +1 -0
- package/src/Api/Internal/DashboardInternalApi.js +5 -0
- package/src/Api/Internal/DataImportInternalApi.js +2 -0
- package/src/Api/Internal/DataSetInternalApi.js +2 -1
- package/src/Api/Internal/GridInternalApi.d.ts +3 -1
- package/src/Api/Internal/GridInternalApi.js +32 -9
- package/src/Api/Internal/LayoutInternalApi.d.ts +2 -2
- package/src/Api/Internal/LayoutInternalApi.js +11 -11
- package/src/Api/InteropioPluginApi.d.ts +10 -0
- package/src/Api/{NotesAPi.d.ts → NotesApi.d.ts} +19 -21
- package/src/Api/OptionsApi.d.ts +5 -0
- package/src/Api/PluginsApi.d.ts +3 -13
- package/src/Api/ScheduleApi.d.ts +1 -48
- package/src/Api/ThemeApi.d.ts +5 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +4 -2
- package/src/PredefinedConfig/CellAddress.d.ts +13 -0
- package/src/PredefinedConfig/CellAddress.js +5 -0
- package/src/PredefinedConfig/CommentState.d.ts +48 -0
- package/src/PredefinedConfig/CommentState.js +2 -0
- package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +2 -1
- package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
- package/src/PredefinedConfig/Common/Enums.js +0 -1
- package/src/PredefinedConfig/Common/Schedule.d.ts +1 -1
- package/src/PredefinedConfig/Common/Types.d.ts +5 -5
- package/src/PredefinedConfig/Common/Types.js +0 -2
- package/src/PredefinedConfig/NotesState.d.ts +0 -13
- package/src/PredefinedConfig/PredefinedConfig.d.ts +3 -0
- package/src/PredefinedConfig/ScheduleState.d.ts +0 -5
- package/src/PredefinedConfig/SystemState.d.ts +5 -6
- package/src/PredefinedConfig/ThemeState.d.ts +1 -1
- package/src/Redux/ActionsReducers/CommentsRedux.d.ts +79 -0
- package/src/Redux/ActionsReducers/CommentsRedux.js +189 -0
- package/src/Redux/ActionsReducers/NotesRedux.js +1 -2
- package/src/Redux/ActionsReducers/PluginsRedux.d.ts +0 -48
- package/src/Redux/ActionsReducers/PluginsRedux.js +1 -49
- package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +16 -0
- package/src/Redux/ActionsReducers/PlusMinusRedux.js +47 -1
- package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +0 -53
- package/src/Redux/ActionsReducers/ScheduleRedux.js +2 -90
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -12
- package/src/Redux/ActionsReducers/SystemRedux.js +55 -23
- package/src/Redux/Store/AdaptableStore.d.ts +2 -2
- package/src/Redux/Store/AdaptableStore.js +107 -46
- package/src/Strategy/CommentsModule.d.ts +16 -0
- package/src/Strategy/CommentsModule.js +82 -0
- package/src/Strategy/LayoutModule.d.ts +12 -4
- package/src/Strategy/LayoutModule.js +19 -14
- package/src/Strategy/NotesModule.d.ts +0 -13
- package/src/Strategy/NotesModule.js +9 -88
- package/src/Strategy/PlusMinusModule.js +2 -0
- package/src/Strategy/ScheduleModule.js +0 -23
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.d.ts +2 -1
- package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +14 -5
- package/src/Strategy/Utilities/getExpressionViewItems.js +8 -2
- package/src/Utilities/Constants/ConfigConstants.d.ts +1 -0
- package/src/Utilities/Constants/ConfigConstants.js +2 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +8 -3
- package/src/Utilities/Constants/ModuleConstants.d.ts +3 -3
- package/src/Utilities/Constants/ModuleConstants.js +4 -4
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -3
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +7 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +6 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/dateUtils.js +18 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +12 -12
- package/src/Utilities/Extensions/ArrayExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/ArrayExtensions.js +8 -1
- package/src/Utilities/Helpers/PreviewHelper.js +5 -2
- package/src/Utilities/ObjectFactory.d.ts +19 -22
- package/src/Utilities/ObjectFactory.js +51 -60
- package/src/Utilities/Services/CellPopupService.d.ts +23 -0
- package/src/Utilities/Services/CellPopupService.js +138 -0
- package/src/Utilities/Services/Interface/IReportService.d.ts +1 -1
- package/src/Utilities/Services/Interface/IThemeService.d.ts +8 -0
- package/src/Utilities/Services/ModuleService.js +1 -3
- package/src/Utilities/Services/ReportService.d.ts +1 -1
- package/src/Utilities/Services/ThemeService.d.ts +3 -0
- package/src/Utilities/Services/ThemeService.js +33 -1
- package/src/Utilities/Services/ValidationService.js +11 -11
- package/src/View/AdaptableView.js +3 -3
- package/src/View/AdaptableViewFactory.js +4 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -2
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +1 -1
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -2
- package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
- package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -3
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
- package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +1 -1
- package/src/View/Charting/useChartingElements.js +8 -3
- package/src/View/Comments/CommentsEditor.d.ts +7 -0
- package/src/View/Comments/CommentsEditor.js +100 -0
- package/src/View/Comments/CommentsPopup.d.ts +2 -0
- package/src/View/Comments/CommentsPopup.js +87 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +2 -1
- package/src/View/Components/CellPopup/index.js +1 -1
- package/src/View/Components/FilterForm/FilterForm.js +8 -2
- package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -3
- package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
- package/src/View/Components/FilterForm/QuickFilterValues.d.ts +2 -2
- package/src/View/Components/FilterForm/QuickFilterValues.js +4 -3
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.d.ts +5 -0
- package/src/View/Components/Popups/GridCellPopup/GridCellPopup.js +67 -0
- package/src/View/Components/Popups/GridCellPopup/index.d.ts +1 -0
- package/src/View/Components/Popups/GridCellPopup/index.js +5 -0
- package/src/View/Components/Selectors/ColumnSelector.d.ts +1 -0
- package/src/View/Components/Selectors/ColumnSelector.js +2 -1
- package/src/View/Components/Selectors/PermittedValuesSelector.d.ts +5 -4
- package/src/View/Components/Selectors/PermittedValuesSelector.js +25 -3
- package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -4
- package/src/View/Dashboard/ModuleToolbarWrapper.js +1 -1
- package/src/View/Dashboard/PinnedDashboard.js +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +2 -2
- package/src/View/Export/Wizard/ReportRowsWizardSection.js +3 -1
- package/src/View/GridFilter/GridFilterExpressionEditor.js +1 -1
- package/src/View/GridFilter/GridFilterPopup.js +10 -8
- package/src/View/GridFilter/GridFilterViewPanel.js +14 -11
- package/src/View/GridFilter/NamedQuerySelector.js +1 -1
- package/src/View/GridFilter/useGridFilterExpressionEditor.d.ts +3 -0
- package/src/View/GridFilter/useGridFilterExpressionEditor.js +17 -6
- package/src/View/GridFilter/useGridFilterOptionsForExpressionEditor.js +5 -23
- package/src/View/GridInfo/GridInfoPopup/GridInfoPopup.js +3 -2
- package/src/View/Layout/Wizard/getGridFilterPreview.d.ts +6 -0
- package/src/View/Layout/Wizard/getGridFilterPreview.js +16 -0
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/Layout/Wizard/sections/GridFilterSection.js +4 -4
- package/src/View/NamedQuery/EditCurrentQueryButton.js +1 -1
- package/src/View/NamedQuery/Wizard/NamedQueryExpressionWizardSection.js +1 -1
- package/src/View/Notes/NoteEditor.d.ts +8 -0
- package/src/View/Notes/NoteEditor.js +33 -0
- package/src/View/Notes/NotesPopup.d.ts +2 -2
- package/src/View/Notes/NotesPopup.js +78 -55
- package/src/View/PlusMinus/MovePlusMinus.d.ts +7 -0
- package/src/View/PlusMinus/MovePlusMinus.js +27 -0
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +0 -4
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -8
- package/src/View/Schedule/Wizard/ScheduleWizard.js +0 -8
- package/src/View/StyledColumn/Wizard/StyledColumnBadgeSection.js +3 -1
- package/src/View/StyledColumn/Wizard/StyledColumnWizard.js +1 -2
- package/src/agGrid/Adaptable.d.ts +7 -0
- package/src/agGrid/Adaptable.js +49 -35
- package/src/agGrid/BadgeRenderer.js +9 -5
- package/src/agGrid/agGridHelper.d.ts +2 -1
- package/src/agGrid/agGridHelper.js +15 -3
- package/src/agGrid/agGridMenuHelper.d.ts +2 -0
- package/src/agGrid/agGridMenuHelper.js +73 -25
- package/src/components/Datepicker/index.js +4 -4
- package/src/components/ExpressionEditor/ExpressionPreview.d.ts +7 -0
- package/src/components/ExpressionEditor/ExpressionPreview.js +25 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilder.js +2 -2
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.d.ts +6 -0
- package/src/components/ExpressionEditor/QueryBuilder/QueryBuilderInputs.js +40 -11
- package/src/components/ExpressionEditor/QueryBuilder/QueryPredicateBuilder.js +14 -2
- package/src/components/ExpressionEditor/QueryBuilder/booleanExpressions.js +1 -0
- package/src/components/ExpressionEditor/QueryBuilder/utils.js +1 -1
- package/src/components/ExpressionEditor/index.js +4 -7
- package/src/components/InputGroup/InputGroup.d.ts +7 -0
- package/src/components/InputGroup/InputGroup.js +12 -0
- package/src/components/InputGroup/index.d.ts +1 -0
- package/src/components/InputGroup/index.js +4 -0
- package/src/components/OverlayTrigger/index.js +7 -2
- package/src/components/Select/Select.d.ts +1 -2
- package/src/components/Select/Select.js +63 -23
- package/src/components/Toastify/index.d.ts +2 -2
- package/src/components/Toastify/index.js +1 -1
- package/src/components/icons/comments.d.ts +3 -0
- package/src/components/icons/comments.js +7 -0
- package/src/components/icons/index.js +3 -1
- package/src/env.d.ts +3 -1
- package/src/env.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +72 -158
- package/src/metamodel/adaptable.metamodel.js +128 -260
- package/src/parser/src/parser.d.ts +2 -0
- package/src/parser/src/parser.js +1880 -705
- package/src/parser/src/predicate/mapQlPredicateToExpression.js +5 -2
- package/src/parser/src/predicate/types.d.ts +1 -1
- package/src/parser/src/types.d.ts +1 -1
- package/src/renderReactRoot.js +15 -0
- package/src/themes/index.js +4 -0
- package/src/types.d.ts +10 -13
- package/themes/dark.css +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/src/AdaptableOptions/FinsemblePluginOptions.d.ts +0 -35
- package/src/AdaptableOptions/Glue42PluginOptions.d.ts +0 -25
- package/src/AdaptableOptions/Glue42WebPluginOptions.d.ts +0 -10
- package/src/Api/Events/SelectionChanged.d.ts +0 -16
- package/src/Api/FinsembleApi.d.ts +0 -10
- package/src/Api/Glue42Api.d.ts +0 -75
- package/src/Api/Glue42WebApi.d.ts +0 -10
- package/src/PredefinedConfig/Glue42State.d.ts +0 -46
- package/src/View/Notes/NotesListing.d.ts +0 -2
- package/src/View/Notes/NotesListing.js +0 -88
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.d.ts +0 -9
- package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +0 -25
- package/src/bundle-dependencies/bundles/react-toastify/components/CloseButton.d.ts +0 -9
- package/src/bundle-dependencies/bundles/react-toastify/components/Icons.d.ts +0 -24
- package/src/bundle-dependencies/bundles/react-toastify/components/ProgressBar.d.ts +0 -59
- package/src/bundle-dependencies/bundles/react-toastify/components/Toast.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/ToastContainer.d.ts +0 -3
- package/src/bundle-dependencies/bundles/react-toastify/components/Transitions.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/components/index.d.ts +0 -6
- package/src/bundle-dependencies/bundles/react-toastify/core/eventManager.d.ts +0 -39
- package/src/bundle-dependencies/bundles/react-toastify/core/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/core/toast.d.ts +0 -41
- package/src/bundle-dependencies/bundles/react-toastify/hooks/index.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToast.d.ts +0 -10
- package/src/bundle-dependencies/bundles/react-toastify/hooks/useToastContainer.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/index.js +0 -1
- package/src/bundle-dependencies/bundles/react-toastify/inject-style.d.ts +0 -8
- package/src/bundle-dependencies/bundles/react-toastify/types/index.d.ts +0 -269
- package/src/bundle-dependencies/bundles/react-toastify/utils/collapseToast.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/constant.d.ts +0 -23
- package/src/bundle-dependencies/bundles/react-toastify/utils/cssTransition.d.ts +0 -43
- package/src/bundle-dependencies/bundles/react-toastify/utils/index.d.ts +0 -5
- package/src/bundle-dependencies/bundles/react-toastify/utils/mapper.d.ts +0 -2
- package/src/bundle-dependencies/bundles/react-toastify/utils/propValidator.d.ts +0 -9
- /package/src/AdaptableOptions/{FinsemblePluginOptions.js → CommentsOptions.js} +0 -0
- /package/src/AdaptableOptions/{Glue42PluginOptions.js → InteropioPluginOptions.js} +0 -0
- /package/src/{AdaptableOptions/Glue42WebPluginOptions.js → Api/CommentApi.js} +0 -0
- /package/src/Api/Events/{SelectionChanged.js → CalculatedColumnChanged.js} +0 -0
- /package/src/Api/{FinsembleApi.js → Events/CellSelectionChanged.js} +0 -0
- /package/src/Api/{Glue42Api.js → Events/CommentsChangedInfo.js} +0 -0
- /package/src/Api/{Glue42WebApi.js → Events/RowSelectionChanged.js} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.d.ts → ExpressionInternalApi.d.ts} +0 -0
- /package/src/Api/Internal/{ExpressionnternalApi.js → ExpressionInternalApi.js} +0 -0
- /package/src/Api/{NotesAPi.js → InteropioPluginApi.js} +0 -0
- /package/src/{PredefinedConfig/Glue42State.js → Api/NotesApi.js} +0 -0
|
@@ -37,7 +37,7 @@ function mapQlPredicateToExpression(predicate) {
|
|
|
37
37
|
}
|
|
38
38
|
return `"${arg}"`;
|
|
39
39
|
}
|
|
40
|
-
if (typeof arg === 'object') {
|
|
40
|
+
if (typeof arg === 'object' && 'operator' in arg) {
|
|
41
41
|
if ((0, types_1.isQlLogicalOperator)(arg.operator)) {
|
|
42
42
|
return `(${mapQlPredicateToExpression(arg)})`;
|
|
43
43
|
}
|
|
@@ -48,7 +48,7 @@ function mapQlPredicateToExpression(predicate) {
|
|
|
48
48
|
}
|
|
49
49
|
return arg;
|
|
50
50
|
});
|
|
51
|
-
if (typeof firstArg === 'object') {
|
|
51
|
+
if (typeof firstArg === 'object' && 'operator' in firstArg) {
|
|
52
52
|
firstArg = mapQlPredicateToExpression(firstArg);
|
|
53
53
|
}
|
|
54
54
|
if ((0, types_1.isQlLogicalOperator)(operator)) {
|
|
@@ -61,6 +61,9 @@ function mapQlPredicateToExpression(predicate) {
|
|
|
61
61
|
if (operator === 'BETWEEN') {
|
|
62
62
|
return `${firstArg} ${operatorSymbol} (${mappedArgs})`;
|
|
63
63
|
}
|
|
64
|
+
if (operator === 'IN') {
|
|
65
|
+
return `${firstArg} ${operatorSymbol} (${mappedArgs.join(', ')})`;
|
|
66
|
+
}
|
|
64
67
|
return `${firstArg} ${operatorSymbol} ${mappedArgs.join(', ')}`;
|
|
65
68
|
}
|
|
66
69
|
if (predicateType === 'FUNCTION') {
|
|
@@ -4,7 +4,7 @@ export type QlPredicateError = {
|
|
|
4
4
|
};
|
|
5
5
|
export interface QlPredicate {
|
|
6
6
|
operator: BooleanFunctionName;
|
|
7
|
-
args?: (QlPredicate | boolean | number | string)[];
|
|
7
|
+
args?: (QlPredicate | boolean | number | string | string[] | number[] | Date[])[];
|
|
8
8
|
}
|
|
9
9
|
export type QlLogicalOperator = 'AND' | 'OR';
|
|
10
10
|
export declare const isQlLogicalOperator: (operator: string) => operator is QlLogicalOperator;
|
|
@@ -96,7 +96,7 @@ export interface ExpressionFunction {
|
|
|
96
96
|
/**
|
|
97
97
|
* Data Types of Inputs used by Expression (test, number, date, boolean)
|
|
98
98
|
*/
|
|
99
|
-
export type ExpressionFunctionInputType = 'text' | 'number' | 'date' | 'boolean';
|
|
99
|
+
export type ExpressionFunctionInputType = 'text' | 'number' | 'date' | 'boolean' | 'number[]' | 'date[]' | 'text[]';
|
|
100
100
|
/**
|
|
101
101
|
* Categories for Expression Functions
|
|
102
102
|
*/
|
package/src/renderReactRoot.js
CHANGED
|
@@ -3,10 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renderReactRoot = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ReactDOMClient = tslib_1.__importStar(require("react-dom/client"));
|
|
6
|
+
const renderWeakMap = new WeakMap();
|
|
6
7
|
const renderReactRoot = (el, container) => {
|
|
8
|
+
// Keeping a reference to previous roots causes an error.
|
|
9
|
+
// Already (correctly) unmouted elements are not unmounted again, and triggers an error.
|
|
10
|
+
//
|
|
11
|
+
// let root = renderWeakMap.get(container);
|
|
12
|
+
// if (!root) {
|
|
13
|
+
// renderWeakMap.set(container, (root = ReactDOMClient.createRoot(container)));
|
|
14
|
+
// }
|
|
7
15
|
const root = ReactDOMClient.createRoot(container);
|
|
8
16
|
root.render(el);
|
|
9
17
|
return () => {
|
|
18
|
+
// requestAnimationFrame(() => {
|
|
19
|
+
// // This pervents this warning:
|
|
20
|
+
// // Warning: Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.
|
|
21
|
+
// // https:stackoverflow.com/questions/73459382/react-18-async-way-to-unmount-root
|
|
22
|
+
// });
|
|
23
|
+
// This needs to be syncronous, if not, in a raf it may be to late, the element may be gone.
|
|
24
|
+
// To reproduce, move this in RAF and play with filters.
|
|
10
25
|
root.unmount();
|
|
11
26
|
};
|
|
12
27
|
};
|
package/src/themes/index.js
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type { FlashingCellOptions } from './AdaptableOptions/FlashingCellOptions
|
|
|
14
14
|
export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
|
|
15
15
|
export type { AlertOptions, ActionHandler, AlertForm, AlertFormContext, AlertMessageContext, } from './AdaptableOptions/AlertOptions';
|
|
16
16
|
export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
|
|
17
|
-
export type { EditOptions,
|
|
17
|
+
export type { EditOptions, ServerValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, ServerValidationContext, CellEditableContext, } from './AdaptableOptions/EditOptions';
|
|
18
18
|
export type { ActionRowOptions, ActionRowButtonOptions, ActionRowFormOptions, ActionRowParamContext, ActionRowParamFieldContext, CreateActionRowFormContext, EditActionRowFormContext, ActionRowFormContext, ActionRowType, ActionRowButtonType, ActionRowButtonConfigurationContext, ActionRowButtonsContext, SetPrimaryKeyValueContext, ActionRowFormColumnContext, } from './AdaptableOptions/ActionRowOptions';
|
|
19
19
|
export type { ActionColumnContext, ActionColumn, ActionColumnSettings, ActionColumnOptions, } from './AdaptableOptions/ActionColumnOptions';
|
|
20
20
|
export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, ExternalReport, PreProcessExportContext, AdaptableReportColumn, DataFormatType, ExportFormContext, ReportContext, ExportableColumnContext, ReportFileNameContext, } from './AdaptableOptions/ExportOptions';
|
|
@@ -23,18 +23,15 @@ export type { DataSetOptions, DataSet, DataSetFormContext, } from './AdaptableOp
|
|
|
23
23
|
export type { CellSummaryOptions } from './AdaptableOptions/CellSummaryOptions';
|
|
24
24
|
export type { CustomSortOptions, ColumnValuesComparer } from './AdaptableOptions/CustomSortOptions';
|
|
25
25
|
export type { NotesOptions, NotableCellContext } from './AdaptableOptions/NotesOptions';
|
|
26
|
-
export type { GroupingOptions,
|
|
27
|
-
export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
|
|
28
|
-
export type { Glue42WebPluginOptions } from './AdaptableOptions/Glue42WebPluginOptions';
|
|
26
|
+
export type { GroupingOptions, BalancedGroupsKeyContext, } from './AdaptableOptions/GroupingOptions';
|
|
29
27
|
export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
|
|
30
28
|
export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutAvailableContext, AutoGenerateTagsForLayoutsContext, LayoutAssociatedObject, PivotPreviewColumnsContext, } from './AdaptableOptions/LayoutOptions';
|
|
31
29
|
export type { ChartingOptions, ChartContainer, ExternalChartingContext, ExternalChartingOptions, } from './AdaptableOptions/ChartingOptions';
|
|
32
30
|
export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
|
|
33
31
|
export type { MasterDetailPluginOptions, DetailInitContext, } from './AdaptableOptions/MasterDetailPluginOptions';
|
|
34
|
-
export type { FinsemblePluginOptions, FinsemblePluginStateOptions, } from './AdaptableOptions/FinsemblePluginOptions';
|
|
35
32
|
export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
|
|
36
33
|
export type { ColumnFilterOptions, QuickFilterOptions, FilterFormOptions, ValuesFilterOptions, ColumnFilterContext, } from './AdaptableOptions/ColumnFilterOptions';
|
|
37
|
-
export type { GridFilterOptions } from './AdaptableOptions/GridFilterOptions';
|
|
34
|
+
export type { GridFilterOptions, GridFilterEditors, GridFilterEditor, } from './AdaptableOptions/GridFilterOptions';
|
|
38
35
|
export type { QuickSearchOptions, QuickSearchContext } from './AdaptableOptions/QuickSearchOptions';
|
|
39
36
|
export type { FormatColumnOptions, CustomDisplayFormatter, CustomDisplayFormatterContext, } from './AdaptableOptions/FormatColumnOptions';
|
|
40
37
|
export type { ColumnOptions, ColumnFriendlyNameContext } from './AdaptableOptions/ColumnOptions';
|
|
@@ -43,7 +40,7 @@ export type { AggregationColumns, WeightedAverageAggregation, } from './Predefin
|
|
|
43
40
|
export type { AccessLevel, Entitlement } from './PredefinedConfig/Common/Entitlement';
|
|
44
41
|
export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterActionOnDataChange';
|
|
45
42
|
export type { ConfigState } from './PredefinedConfig/ConfigState';
|
|
46
|
-
export type { AdaptableNote, NotesState as NoteState, AdaptableNotes,
|
|
43
|
+
export type { AdaptableNote, NotesState as NoteState, AdaptableNotes, } from './PredefinedConfig/NotesState';
|
|
47
44
|
export type { TeamSharingOptions, SharedEntitiesContext, } from './AdaptableOptions/TeamSharingOptions';
|
|
48
45
|
export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
|
|
49
46
|
export type { UserInterfaceOptions, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, ObjectTagsContext, CustomIcon, } from './AdaptableOptions/UserInterfaceOptions';
|
|
@@ -66,7 +63,7 @@ export type { ColumnApi } from './Api/ColumnApi';
|
|
|
66
63
|
export type { ActionColumnApi } from './Api/ActionColumnApi';
|
|
67
64
|
export type { ActionRowApi } from './Api/ActionRowApi';
|
|
68
65
|
export type { ChartingApi } from './Api/ChartingApi';
|
|
69
|
-
export type { NotesApi } from './Api/
|
|
66
|
+
export type { NotesApi } from './Api/NotesApi';
|
|
70
67
|
export type { ConfigApi } from './Api/ConfigApi';
|
|
71
68
|
export type { CustomSortApi } from './Api/CustomSortApi';
|
|
72
69
|
export type { DashboardApi } from './Api/DashboardApi';
|
|
@@ -78,12 +75,9 @@ export type { ExportApi } from './Api/ExportApi';
|
|
|
78
75
|
export type { Fdc3Api } from './Api/Fdc3Api';
|
|
79
76
|
export type { ColumnFilterApi } from './Api/ColumnFilterApi';
|
|
80
77
|
export type { GridFilterApi } from './Api/GridFilterApi';
|
|
81
|
-
export type { FinsembleApi } from './Api/FinsembleApi';
|
|
82
78
|
export type { FlashingCellApi } from './Api/FlashingCellApi';
|
|
83
79
|
export type { FormatColumnApi } from './Api/FormatColumnApi';
|
|
84
80
|
export type { FreeTextColumnApi } from './Api/FreeTextColumnApi';
|
|
85
|
-
export type { Glue42Api } from './Api/Glue42Api';
|
|
86
|
-
export type { Glue42WebApi } from './Api/Glue42WebApi';
|
|
87
81
|
export type { GridApi } from './Api/GridApi';
|
|
88
82
|
export type { IPushPullApi } from './Api/IPushPullApi';
|
|
89
83
|
export type { LayoutApi } from './Api/LayoutApi';
|
|
@@ -118,6 +112,7 @@ export type { CellChangedInfo } from './Api/Events/CellChanged';
|
|
|
118
112
|
export type { TeamSharingEntityChangedInfo } from './Api/Events/TeamSharingEntityChanged';
|
|
119
113
|
export type { GridDataChangedInfo } from './Api/Events/GridDataChanged';
|
|
120
114
|
export type { LayoutChangedInfo } from './Api/Events/LayoutChanged';
|
|
115
|
+
export type { CalculatedColumnChangedInfo } from './Api/Events/CalculatedColumnChanged';
|
|
121
116
|
export type { CustomToolbarConfiguredInfo } from './Api/Events/CustomToolbarConfigured';
|
|
122
117
|
export type { LiveDataChangedInfo, LiveReport } from './Api/Events/LiveDataChanged';
|
|
123
118
|
export type { ChartChangedInfo, ChartingOpenState, ChartDisplayedInfo, } from './Api/Events/ChartChanged';
|
|
@@ -127,7 +122,8 @@ export type { GridFilterAppliedInfo } from './Api/Events/GridFilterApplied';
|
|
|
127
122
|
export type { GridSortedInfo, AdaptableSortState } from './Api/Events/GridSorted';
|
|
128
123
|
export type { AdaptableSearchState } from './Api/Events/AdaptableSearchState';
|
|
129
124
|
export type { DataSetSelectedInfo } from './Api/Events/DataSetSelected';
|
|
130
|
-
export type {
|
|
125
|
+
export type { CellSelectionChangedInfo } from './Api/Events/CellSelectionChanged';
|
|
126
|
+
export type { RowSelectionChangedInfo } from './Api/Events/RowSelectionChanged';
|
|
131
127
|
export type { AdaptableStateReloadedInfo } from './Api/Events/AdaptableStateReloaded';
|
|
132
128
|
export type { ThemeChangedInfo } from './Api/Events/ThemeChanged';
|
|
133
129
|
export type { ThemeEditedInfo } from './Api/Events/ThemeEdited';
|
|
@@ -182,7 +178,6 @@ export type { FormatColumn, FormatColumnState, FormatColumnRule, FormatColumnPre
|
|
|
182
178
|
export type { StyledColumn, StyledColumnState, PercentBarStyle, GradientStyle, CellColorRange, ColumnComparison, CellTextOptions, CellTextOption, NumericStyledColumn, RangeValueType, SparkLineStyle, BadgeStyle, BadgeStyleDefinition, BadgeStylePredicate, SystemBadgeStylePredicateId, SystemBadgeStylePredicateIds, } from './PredefinedConfig/StyledColumnState';
|
|
183
179
|
export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './PredefinedConfig/FreeTextColumnState';
|
|
184
180
|
export type { StatusBarState, AdaptableStatusBar } from './PredefinedConfig/StatusBarState';
|
|
185
|
-
export type { Glue42Report, Glue42Schedule, Glue42State } from './PredefinedConfig/Glue42State';
|
|
186
181
|
export type { IPushPullDomain, IPushPullReport, IPushPullSchedule, IPushPullState, } from './PredefinedConfig/IPushPullState';
|
|
187
182
|
export type { Layout, LayoutState } from './PredefinedConfig/LayoutState';
|
|
188
183
|
export type { OpenFinReport, OpenFinSchedule, OpenFinState } from './PredefinedConfig/OpenFinState';
|
|
@@ -204,3 +199,5 @@ export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrame
|
|
|
204
199
|
export type { Fdc3StandardContextType, Fdc3CustomContextType, InstrumentContext, InstrumentListContext, PositionContext, PortfolioContext, ContactContext, ContactListContext, CountryContext, OrganizationContext, Fdc3ContextType, Fdc3Context, ChartContextType, ChartContext, ChatInitSettingsContext, ChatInitSettingsContextType, ContactContextType, ContactListContextType, CurrencyContext, EmailContext, CountryContextType, CurrencyContextType, EmailContextType, InstrumentContextType, InstrumentListContextType, NothingContextType, OrganizationContextType, PortfolioContextType, PositionContextType, NothingContext, Fdc3CustomContext, ValuationContext, ValuationContextType, TimeRangeContextType, TimeRangeContext, } from './PredefinedConfig/Common/Fdc3Context';
|
|
205
200
|
export type { Fdc3IntentType, Fdc3StandardIntentType, Fdc3CustomIntentType, CompatibleContext, } from './PredefinedConfig/Common/Fdc3Intent';
|
|
206
201
|
export type { Fdc3Options, GridDataContextMapping, ActionColumnDefaultConfiguration, ResolveContextDataContext, RaiseIntentConfig, BroadcastConfig, HandleFdc3IntentContext, HandleFdc3Context, Fdc3ButtonContext, Fdc3AdaptableButton, HandleFdc3IntentResolutionContext, UIControlConfig, Fdc3IntentOptions, Fdc3ContextOptions, RaiseIntentConfiguration, BroadcastConfiguration, FDC3ActionColumn, } from './AdaptableOptions/Fdc3Options';
|
|
202
|
+
export type { CellAddress } from './PredefinedConfig/CellAddress';
|
|
203
|
+
export type { CommentThread, AdaptableComment } from './PredefinedConfig/CommentState';
|
package/themes/dark.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
.ab--theme-dark {
|
|
2
2
|
font-family: Helvetica, Arial, sans-serif;
|
|
3
3
|
--ab-theme-loaded: dark;
|
|
4
4
|
--ab-cmp-input--disabled__background: #232323;
|
|
@@ -14,8 +14,8 @@ html.ab--theme-dark {
|
|
|
14
14
|
--ab-cmp-checkbox__border-color: var(--ab-color-text-on-primary);
|
|
15
15
|
--ab-cmp-checkbox--checked__border-color: var(--ab-color-accent);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
.ab--theme-dark input[type=number].ab-Input::-webkit-outer-spin-button,
|
|
18
|
+
.ab--theme-dark input[type=number].ab-Input::-webkit-inner-spin-button {
|
|
19
19
|
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="20" viewBox="4 0 18 18" version="1.1"><path fill="%23f7f7f7" d="M7 10l5 5 5-5z" transform="translate(0, 2)"/><path fill="%23f7f7f7" d="M7 14l5-5 5 5z" transform="translate(0, -6)"/></svg>') no-repeat center center;
|
|
20
20
|
}
|
|
21
21
|
|