@infomaximum/widget-sdk 3.25.0 → 3.25.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/dist/index.d.ts +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -777,7 +777,7 @@ interface IWidgetAction {
|
|
|
777
777
|
inputs: IWidgetActionInput[];
|
|
778
778
|
shouldRefreshWidgetsAfterExecution: boolean;
|
|
779
779
|
}
|
|
780
|
-
declare const isActionValid: (action: IWidgetAction, { scripts, tables }: IWidgetsContext) => boolean;
|
|
780
|
+
declare const isActionValid: (action: IWidgetAction, { scripts, tables, variables }: IWidgetsContext) => boolean;
|
|
781
781
|
|
|
782
782
|
interface IBaseWidgetSettings {
|
|
783
783
|
apiVersion: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -73,7 +73,7 @@ var EWidgetActionInputMode;
|
|
|
73
73
|
})(EWidgetActionInputMode || (EWidgetActionInputMode = {}));
|
|
74
74
|
var isActionValid = function (action, _a) {
|
|
75
75
|
var _b;
|
|
76
|
-
var scripts = _a.scripts, tables = _a.tables;
|
|
76
|
+
var scripts = _a.scripts, tables = _a.tables, variables = _a.variables;
|
|
77
77
|
var currentScript = scripts.get((_b = action.scriptGuid) !== null && _b !== void 0 ? _b : "");
|
|
78
78
|
if (!currentScript) {
|
|
79
79
|
return false;
|
|
@@ -88,7 +88,8 @@ var isActionValid = function (action, _a) {
|
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
var value = actionInput.value;
|
|
91
|
-
if (value.mode === EWidgetActionInputMode.FROM_VARIABLE &&
|
|
91
|
+
if (value.mode === EWidgetActionInputMode.FROM_VARIABLE &&
|
|
92
|
+
!variables.has(value.guid)) {
|
|
92
93
|
return false;
|
|
93
94
|
}
|
|
94
95
|
if (value.mode === EWidgetActionInputMode.FORMULA && !value.formula) {
|
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ exports.EWidgetActionInputMode = void 0;
|
|
|
74
74
|
})(exports.EWidgetActionInputMode || (exports.EWidgetActionInputMode = {}));
|
|
75
75
|
var isActionValid = function (action, _a) {
|
|
76
76
|
var _b;
|
|
77
|
-
var scripts = _a.scripts, tables = _a.tables;
|
|
77
|
+
var scripts = _a.scripts, tables = _a.tables, variables = _a.variables;
|
|
78
78
|
var currentScript = scripts.get((_b = action.scriptGuid) !== null && _b !== void 0 ? _b : "");
|
|
79
79
|
if (!currentScript) {
|
|
80
80
|
return false;
|
|
@@ -89,7 +89,8 @@ var isActionValid = function (action, _a) {
|
|
|
89
89
|
return false;
|
|
90
90
|
}
|
|
91
91
|
var value = actionInput.value;
|
|
92
|
-
if (value.mode === exports.EWidgetActionInputMode.FROM_VARIABLE &&
|
|
92
|
+
if (value.mode === exports.EWidgetActionInputMode.FROM_VARIABLE &&
|
|
93
|
+
!variables.has(value.guid)) {
|
|
93
94
|
return false;
|
|
94
95
|
}
|
|
95
96
|
if (value.mode === exports.EWidgetActionInputMode.FORMULA && !value.formula) {
|