@adaptabletools/adaptable 13.0.0-canary.1 → 13.0.0-canary.3
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/agGrid.d.ts +23 -1
- package/agGrid.js +23 -1
- package/base.css +1 -0
- package/bundle.cjs.js +158 -158
- package/index.css +1 -0
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -0
- package/src/AdaptableOptions/AdaptableQLOptions.d.ts +42 -14
- package/src/Api/ConditionalStyleApi.d.ts +20 -0
- package/src/Api/FormatColumnApi.d.ts +42 -3
- package/src/Api/Implementation/DashboardApiImpl.js +2 -3
- package/src/Api/Implementation/FormatColumnApiImpl.d.ts +17 -1
- package/src/Api/Implementation/FormatColumnApiImpl.js +94 -14
- package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +0 -2
- package/src/Api/Implementation/QueryLanguageApiImpl.js +0 -3
- package/src/Api/QueryLanguageApi.d.ts +0 -5
- package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +1 -1
- package/src/PredefinedConfig/Common/AdaptablePredicate.js +37 -37
- package/src/PredefinedConfig/FormatColumnState.d.ts +19 -0
- package/src/PredefinedConfig/PredefinedConfig.d.ts +1 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +14 -0
- package/src/Redux/ActionsReducers/FormatColumnRedux.js +43 -1
- package/src/Redux/Store/AdaptableStore.js +2 -0
- package/src/Strategy/FormatColumnModule.d.ts +2 -9
- package/src/Strategy/FormatColumnModule.js +5 -1
- package/src/Strategy/Interface/IModule.d.ts +10 -10
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +2 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +5 -5
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +3 -2
- package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +4 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -0
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +4 -1
- package/src/Utilities/Extensions/TypeExtensions.d.ts +1 -0
- package/src/Utilities/Extensions/TypeExtensions.js +5 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +14 -4
- package/src/Utilities/Services/LicenseService.js +1 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +5 -3
- package/src/Utilities/Services/QueryLanguageService.js +92 -39
- package/src/Utilities/license/LicenseDetails.d.ts +1 -1
- package/src/Utilities/license/decode.d.ts +1 -0
- package/src/Utilities/license/decode.js +1 -1
- package/src/View/AdaptablePopover/index.d.ts +2 -2
- package/src/View/AdaptableView.d.ts +3 -3
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +1 -1
- package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -1
- package/src/View/AdaptableWizardView/index.d.ts +1 -1
- package/src/View/ColorPicker.d.ts +1 -5
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +2 -2
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +1 -1
- package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +1 -1
- package/src/View/FormatColumn/MoveFormatColumn.d.ts +7 -0
- package/src/View/FormatColumn/MoveFormatColumn.js +27 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.d.ts +9 -0
- package/src/View/FormatColumn/Wizard/FormatColumnRuleWizardSection.js +66 -0
- package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +20 -2
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +2 -1
- package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +14 -0
- package/src/View/FormatColumn/Wizard/constants.d.ts +1 -0
- package/src/View/FormatColumn/Wizard/constants.js +4 -0
- package/src/View/Layout/Wizard/sections/AggregationsSection.js +1 -1
- package/src/View/Layout/Wizard/sections/SettingsSection.d.ts +2 -2
- package/src/View/License/LicenseWatermark.d.ts +1 -1
- package/src/View/StateManagement/components/ClearButton.d.ts +1 -1
- package/src/View/StateManagement/components/LoadButton.d.ts +1 -1
- package/src/View/StatusBar/StatusBarPanel.d.ts +4 -4
- package/src/View/Wizard/OnePageAdaptableWizard.d.ts +3 -3
- package/src/View/Wizard/OnePageAdaptableWizard.js +2 -2
- package/src/View/Wizard/OnePageWizards.d.ts +3 -3
- package/src/View/Wizard/OnePageWizards.js +2 -2
- package/src/agGrid/Adaptable.d.ts +11 -0
- package/src/agGrid/Adaptable.js +134 -66
- package/src/agGrid/FilterWrapper.js +4 -5
- package/src/agGrid/FloatingFilterWrapper.js +3 -4
- package/src/agGrid/createAgStatusPanelComponent.d.ts +1 -0
- package/src/agGrid/createAgStatusPanelComponent.js +3 -3
- package/src/components/CheckBox/index.d.ts +1 -1
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/Dialog/index.d.ts +4 -2
- package/src/components/Dialog/index.js +2 -2
- package/src/components/DropdownButton/index.d.ts +21 -4
- package/src/components/DropdownButton/index.js +5 -6
- package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -1
- package/src/components/ExpressionEditor/EditorInput.js +1 -1
- package/src/components/ExpressionEditor/EditorInputWithWhereClause.js +1 -1
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +4 -2
- package/src/components/Loader/Loader.d.ts +2 -2
- package/src/components/Logo/index.d.ts +1 -1
- package/src/components/Modal/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +2 -2
- package/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/src/components/SelectList.d.ts +1 -1
- package/src/components/SimpleButton/index.d.ts +4 -5
- package/src/components/SimpleButton/index.js +3 -2
- package/src/components/StylePreview.d.ts +1 -1
- package/src/components/Tag/Tag.d.ts +1 -1
- package/src/components/Textarea/index.d.ts +6 -4
- package/src/components/ToggleButton/index.d.ts +1 -1
- package/src/components/WindowModal/WindowModal.d.ts +1 -1
- package/src/components/icons/index.d.ts +3 -2
- package/src/components/icons/layout.d.ts +2 -1
- package/src/components/utils/useContainerScrollObserver/index.d.ts +1 -1
- package/src/metamodel/adaptable.metamodel.d.ts +47 -29
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/types.d.ts +6 -3
- package/src/renderReactRoot.d.ts +3 -0
- package/src/renderReactRoot.js +54 -0
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -22,11 +22,11 @@ export interface ExpressionContext extends BaseContext {
|
|
|
22
22
|
/**
|
|
23
23
|
* All Expression Functions available to AdaptableQL
|
|
24
24
|
*/
|
|
25
|
-
functions: ExpressionFunctionMap
|
|
25
|
+
functions: ExpressionFunctionMap<string>;
|
|
26
26
|
/**
|
|
27
27
|
* Expression Functions available to AdaptableQL in (optional) WHERE clause
|
|
28
28
|
*/
|
|
29
|
-
whereClauseFunctions?: ExpressionFunctionMap
|
|
29
|
+
whereClauseFunctions?: ExpressionFunctionMap<string>;
|
|
30
30
|
/**
|
|
31
31
|
* Optional filter function to be applied before evaluating the expression
|
|
32
32
|
*/
|
|
@@ -40,7 +40,10 @@ export interface ExpressionContext extends BaseContext {
|
|
|
40
40
|
*/
|
|
41
41
|
evaluateCustomQueryVariable: (functionName: string, args?: any[]) => any;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Key-Value map of Expression Names and their implementation
|
|
45
|
+
*/
|
|
46
|
+
export declare type ExpressionFunctionMap<T extends string> = Record<T | string, ExpressionFunction>;
|
|
44
47
|
/**
|
|
45
48
|
* Defines an AdaptableQL Function used in an Adaptable Expression
|
|
46
49
|
*/
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderReactRoot = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const ReactDOM = tslib_1.__importStar(require("react-dom"));
|
|
6
|
+
//@ts-ignore
|
|
7
|
+
// import * as ReactDOMClient from 'react-dom/client';
|
|
8
|
+
const originalConsoleError = console.error;
|
|
9
|
+
const doRenderReactRoot = (el, container) => {
|
|
10
|
+
// if ((ReactDOMClient || {}).createRoot) {
|
|
11
|
+
// const root = ReactDOMClient.createRoot(container);
|
|
12
|
+
// root.render(el);
|
|
13
|
+
// return () => {
|
|
14
|
+
// root.unmount();
|
|
15
|
+
// };
|
|
16
|
+
// }
|
|
17
|
+
ReactDOM.render(el, container);
|
|
18
|
+
return () => {
|
|
19
|
+
ReactDOM.unmountComponentAtNode(container);
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
function capture() {
|
|
23
|
+
console.error = (message, ...optionalParams) => {
|
|
24
|
+
if (message &&
|
|
25
|
+
typeof message === 'string' &&
|
|
26
|
+
message.includes('Warning: ReactDOM.render is no longer supported in React 18.')) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
return originalConsoleError.call(console, message, ...optionalParams);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function release() {
|
|
33
|
+
console.error = originalConsoleError;
|
|
34
|
+
}
|
|
35
|
+
const renderReactRoot = (el, container, supressReact18RenderWarning) => {
|
|
36
|
+
if (supressReact18RenderWarning) {
|
|
37
|
+
capture();
|
|
38
|
+
}
|
|
39
|
+
const unmount = doRenderReactRoot(el, container);
|
|
40
|
+
if (supressReact18RenderWarning) {
|
|
41
|
+
release();
|
|
42
|
+
}
|
|
43
|
+
return () => {
|
|
44
|
+
// probably capturing not needed for unmount to be honest ...
|
|
45
|
+
if (supressReact18RenderWarning) {
|
|
46
|
+
capture();
|
|
47
|
+
}
|
|
48
|
+
unmount();
|
|
49
|
+
if (supressReact18RenderWarning) {
|
|
50
|
+
release();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
exports.renderReactRoot = renderReactRoot;
|
package/src/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export type { AdaptableNoCodeWizardOptions, IAdaptableNoCodeWizard, } from './Ad
|
|
|
3
3
|
export type { BooleanFunctionName } from './Utilities/ExpressionFunctions/booleanExpressionFunctions';
|
|
4
4
|
export type { ScalarFunctionName } from './Utilities/ExpressionFunctions/scalarExpressionFunctions';
|
|
5
5
|
export type { ObservableFunctionName } from './Utilities/ExpressionFunctions/observableExpressionFunctions';
|
|
6
|
-
export type {
|
|
6
|
+
export type { AggregatedBooleanFunctionName } from './Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions';
|
|
7
7
|
export type { AggregatedScalarFunctionName } from './Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions';
|
|
8
8
|
export type { AdaptableOptions } from './AdaptableOptions/AdaptableOptions';
|
|
9
9
|
export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
|
|
@@ -37,7 +37,7 @@ export type { UserInterfaceOptions, BasePermittedValues, PermittedValues, EditLo
|
|
|
37
37
|
export type { MenuOptions } from './AdaptableOptions/MenuOptions';
|
|
38
38
|
export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
|
|
39
39
|
export type { EntitlementOptions, EntitlementContext } from './AdaptableOptions/EntitlementOptions';
|
|
40
|
-
export type { ExpressionOptions, ModuleExpressionFunctions, AdaptableQLOptions, CustomQueryVariableContext, } from './AdaptableOptions/AdaptableQLOptions';
|
|
40
|
+
export type { ExpressionOptions, ModuleExpressionFunctions, ModuleExpressionFunctionsMap, DefaultExpressionFunctionsContext, EvaluateExpressionExternallyContext, ExpressionFunctionDefinitions, ModuleExpressionFunctionsContext, AdaptableQLOptions, CustomQueryVariableContext, } from './AdaptableOptions/AdaptableQLOptions';
|
|
41
41
|
export type { DataChangeHistoryOptions, DataChangeHistoryButton, DataChangeHistoryContext, AdaptableDataChangeHistoryAction, } from './AdaptableOptions/DataChangeHistoryOptions';
|
|
42
42
|
export type { LayoutAssociatedObjectLoadConfig } from './Api/Implementation/ApiBase';
|
|
43
43
|
export type { AdaptableApi } from './Api/AdaptableApi';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "13.0.0-canary.
|
|
1
|
+
declare const _default: "13.0.0-canary.3";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '13.0.0-canary.
|
|
3
|
+
exports.default = '13.0.0-canary.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|