@adaptabletools/adaptable 16.1.1-canary.1 → 16.2.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 +5 -0
- package/base.css.map +1 -1
- package/bundle.cjs.js +195 -197
- package/index.css +9 -0
- package/index.css.map +1 -1
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -1
- package/src/Api/Internal/AlertInternalApi.d.ts +3 -2
- package/src/Api/Internal/AlertInternalApi.js +35 -5
- package/src/Api/Internal/GridInternalApi.js +1 -0
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +4 -4
- package/src/PredefinedConfig/Common/Fdc3Intent.js +4 -19
- package/src/PredefinedConfig/DashboardState.d.ts +4 -0
- package/src/Redux/ActionsReducers/DashboardRedux.d.ts +11 -0
- package/src/Redux/ActionsReducers/DashboardRedux.js +14 -1
- package/src/Strategy/AlertModule.js +14 -31
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -1
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -0
- package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +14 -2
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +93 -1
- package/src/Utilities/Services/AlertService.js +13 -6
- package/src/Utilities/Services/DataService.d.ts +4 -1
- package/src/Utilities/Services/DataService.js +10 -5
- package/src/Utilities/Services/Interface/IAlertService.d.ts +12 -3
- package/src/Utilities/Services/Interface/IAlertService.js +9 -0
- package/src/Utilities/Services/Interface/IDataService.d.ts +3 -0
- package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -1
- package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
- package/src/View/Components/Selectors/ColumnSelector.js +0 -5
- package/src/View/Dashboard/{CustomToolbarWrapper.d.ts → CustomToolbar.d.ts} +1 -0
- package/src/View/Dashboard/{CustomToolbarWrapper.js → CustomToolbar.js} +36 -33
- package/src/View/Dashboard/Dashboard.d.ts +2 -2
- package/src/View/Dashboard/Dashboard.js +20 -24
- package/src/View/Dashboard/DashboardPopup.d.ts +2 -1
- package/src/View/Dashboard/DashboardPopup.js +7 -3
- package/src/View/Dashboard/DashboardToolbarFactory.d.ts +7 -0
- package/src/View/Dashboard/DashboardToolbarFactory.js +46 -0
- package/src/View/Dashboard/PinnedDashboard.d.ts +5 -0
- package/src/View/Dashboard/PinnedDashboard.js +21 -0
- package/src/View/Dashboard/PinnedToolbarsSelector.d.ts +5 -0
- package/src/View/Dashboard/PinnedToolbarsSelector.js +52 -0
- package/src/View/DataImport/DataImportWizard/DataImportWizard.d.ts +6 -1
- package/src/View/DataImport/DataImportWizard/DataImportWizard.js +71 -9
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.d.ts +8 -0
- package/src/View/DataImport/DataImportWizard/sections/ColumnsSection.js +119 -0
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.d.ts +2 -1
- package/src/View/DataImport/DataImportWizard/sections/DataPreview.js +13 -17
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.d.ts +2 -1
- package/src/View/DataImport/DataImportWizard/sections/ValidationSection.js +1 -1
- package/src/View/QuickSearch/QuickSearchInput.js +1 -1
- package/src/components/Dashboard/Dashboard.d.ts +1 -0
- package/src/components/Dashboard/Dashboard.js +2 -1
- package/src/components/DragAndDropContext/ModuleManager.js +1 -1
- package/src/components/DragAndDropContext/TabList.js +1 -1
- package/src/components/ExpressionEditor/editorButtonsObservable.js +5 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/parser/src/index.js +4 -1
- package/src/parser/src/tokenizer.js +5 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/src/parser/src/index.js
CHANGED
|
@@ -7,8 +7,11 @@ const evaluator_1 = require("./evaluator");
|
|
|
7
7
|
const parser_1 = tslib_1.__importDefault(require("./parser"));
|
|
8
8
|
var utils_1 = require("./utils");
|
|
9
9
|
Object.defineProperty(exports, "findPathTo", { enumerable: true, get: function () { return utils_1.findPathTo; } });
|
|
10
|
+
const getParser = () => {
|
|
11
|
+
return parser_1.default;
|
|
12
|
+
};
|
|
10
13
|
function parse(input) {
|
|
11
|
-
const ast =
|
|
14
|
+
const ast = getParser().parse(input.trim());
|
|
12
15
|
const evaluate = (context) => {
|
|
13
16
|
const result = (0, evaluator_1.evaluateNode)(ast, context);
|
|
14
17
|
const lastResult = result[result.length - 1];
|
|
@@ -5,18 +5,21 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
const parser_1 = tslib_1.__importDefault(require("./parser"));
|
|
7
7
|
const cache = {};
|
|
8
|
+
const getParser = () => {
|
|
9
|
+
return parser_1.default;
|
|
10
|
+
};
|
|
8
11
|
function getTokens(expression) {
|
|
9
12
|
if (cache[expression]) {
|
|
10
13
|
return cache[expression];
|
|
11
14
|
}
|
|
12
15
|
const tokens = [];
|
|
13
|
-
const lexer =
|
|
16
|
+
const lexer = getParser().lexer;
|
|
14
17
|
lexer.setInput(expression);
|
|
15
18
|
while (!lexer.done) {
|
|
16
19
|
const id = lexer.lex();
|
|
17
20
|
const location = lexer.matched.length;
|
|
18
21
|
tokens.push({
|
|
19
|
-
type:
|
|
22
|
+
type: getParser().terminals_[id],
|
|
20
23
|
value: lexer.yytext,
|
|
21
24
|
range: [location - lexer.yytext.length, location],
|
|
22
25
|
});
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "16.
|
|
1
|
+
declare const _default: "16.2.0-canary.0";
|
|
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 = '16.
|
|
3
|
+
exports.default = '16.2.0-canary.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|