@infomaximum/widget-sdk 4.0.0-beta60 → 4.0.0-beta63
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/dist/index.d.ts +1 -1
- package/dist/index.esm.js +9 -6
- package/dist/index.js +9 -6
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -498,7 +498,7 @@ interface IGlobalContext {
|
|
|
498
498
|
language: ELanguages;
|
|
499
499
|
processes: Map<string, IWidgetProcess>;
|
|
500
500
|
reportMeasures: TNullable<Map<string, ICommonMeasures>>;
|
|
501
|
-
workspaceMeasures: TNullable<Map<string, ICommonMeasures
|
|
501
|
+
workspaceMeasures: TNullable<Map<string, Map<string, ICommonMeasures>>>;
|
|
502
502
|
reportDimensions: TNullable<Map<string, ICommonDimensions>>;
|
|
503
503
|
workspaceDimensions: TNullable<Map<string, Map<string, ICommonDimensions>>>;
|
|
504
504
|
/** @deprecated удалить после окончания поддержки миграций BI-13650 */
|
package/dist/index.esm.js
CHANGED
|
@@ -722,6 +722,11 @@ function getTransitionMeasureFormula(_a, process) {
|
|
|
722
722
|
return "";
|
|
723
723
|
}
|
|
724
724
|
|
|
725
|
+
/** Удалить из строки символы экранирования */
|
|
726
|
+
function unescapeSpecialCharacters(str) {
|
|
727
|
+
return str.replace(/\\(?!\\)/g, "").replace(/\\\\/g, "\\");
|
|
728
|
+
}
|
|
729
|
+
|
|
725
730
|
/**
|
|
726
731
|
* Регулярное выражение для поиска имени ссылки внутри формулы.
|
|
727
732
|
* Учитывает, что имя внутри формулы содержит экраны.
|
|
@@ -743,7 +748,10 @@ var parseIndicatorLink = function (formula) {
|
|
|
743
748
|
}
|
|
744
749
|
var workspaceMatch = formula.match(workspaceLinkRegExp.source);
|
|
745
750
|
if (workspaceMatch) {
|
|
746
|
-
return {
|
|
751
|
+
return {
|
|
752
|
+
scopeName: unescapeSpecialCharacters(workspaceMatch[1]),
|
|
753
|
+
indicatorName: unescapeSpecialCharacters(workspaceMatch[2]),
|
|
754
|
+
};
|
|
747
755
|
}
|
|
748
756
|
return null;
|
|
749
757
|
};
|
|
@@ -1002,11 +1010,6 @@ function bindContentsWithIndicators(outputs, indicators) {
|
|
|
1002
1010
|
return compactMap(indicators, function (indicator) { return bindContentWithIndicator(outputs, indicator); });
|
|
1003
1011
|
}
|
|
1004
1012
|
|
|
1005
|
-
/** Удалить из строки символы экранирования */
|
|
1006
|
-
function unescapeSpecialCharacters(str) {
|
|
1007
|
-
return str.replace(/\\(?!\\)/g, "").replace(/\\\\/g, "\\");
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
1013
|
var EUnitMode;
|
|
1011
1014
|
(function (EUnitMode) {
|
|
1012
1015
|
EUnitMode["PIXEL"] = "PIXEL";
|
package/dist/index.js
CHANGED
|
@@ -723,6 +723,11 @@ function getTransitionMeasureFormula(_a, process) {
|
|
|
723
723
|
return "";
|
|
724
724
|
}
|
|
725
725
|
|
|
726
|
+
/** Удалить из строки символы экранирования */
|
|
727
|
+
function unescapeSpecialCharacters(str) {
|
|
728
|
+
return str.replace(/\\(?!\\)/g, "").replace(/\\\\/g, "\\");
|
|
729
|
+
}
|
|
730
|
+
|
|
726
731
|
/**
|
|
727
732
|
* Регулярное выражение для поиска имени ссылки внутри формулы.
|
|
728
733
|
* Учитывает, что имя внутри формулы содержит экраны.
|
|
@@ -744,7 +749,10 @@ var parseIndicatorLink = function (formula) {
|
|
|
744
749
|
}
|
|
745
750
|
var workspaceMatch = formula.match(workspaceLinkRegExp.source);
|
|
746
751
|
if (workspaceMatch) {
|
|
747
|
-
return {
|
|
752
|
+
return {
|
|
753
|
+
scopeName: unescapeSpecialCharacters(workspaceMatch[1]),
|
|
754
|
+
indicatorName: unescapeSpecialCharacters(workspaceMatch[2]),
|
|
755
|
+
};
|
|
748
756
|
}
|
|
749
757
|
return null;
|
|
750
758
|
};
|
|
@@ -1003,11 +1011,6 @@ function bindContentsWithIndicators(outputs, indicators) {
|
|
|
1003
1011
|
return compactMap(indicators, function (indicator) { return bindContentWithIndicator(outputs, indicator); });
|
|
1004
1012
|
}
|
|
1005
1013
|
|
|
1006
|
-
/** Удалить из строки символы экранирования */
|
|
1007
|
-
function unescapeSpecialCharacters(str) {
|
|
1008
|
-
return str.replace(/\\(?!\\)/g, "").replace(/\\\\/g, "\\");
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
1014
|
exports.EUnitMode = void 0;
|
|
1012
1015
|
(function (EUnitMode) {
|
|
1013
1016
|
EUnitMode["PIXEL"] = "PIXEL";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/widget-sdk",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-beta63",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.esm.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rollup -c",
|
|
14
14
|
"lint": "tsc --noEmit",
|
|
15
|
-
"release": "
|
|
16
|
-
"format": "prettier --find-config-path --write 'src/**/*'"
|
|
15
|
+
"release": "npm run lint && standard-version && rollup -c",
|
|
16
|
+
"format": "prettier --find-config-path --write 'src/**/*'",
|
|
17
|
+
"prepublishOnly": "npm run build"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"@infomaximum/base-filter": "^1.1.0",
|