@infomaximum/widget-sdk 4.0.0-next2 → 4.0.0-next4
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 +3 -1
- package/dist/index.esm.js +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -467,9 +467,11 @@ interface IWidgetTableColumn {
|
|
|
467
467
|
dataType: ESimpleDataType;
|
|
468
468
|
}
|
|
469
469
|
interface IScripField {
|
|
470
|
+
/** @deprecated удалить после выполнения BI-13602, задача BI-13650 */
|
|
470
471
|
guid: string;
|
|
471
472
|
name: string;
|
|
472
473
|
dataType: ESimpleDataType;
|
|
474
|
+
isRequired: boolean;
|
|
473
475
|
}
|
|
474
476
|
interface IActionScript {
|
|
475
477
|
key: string;
|
|
@@ -1429,7 +1431,7 @@ interface IDefinition<WidgetSettings extends IBaseWidgetSettings, GroupSettings
|
|
|
1429
1431
|
/** заполняет настройки значениями по умолчанию */
|
|
1430
1432
|
fillSettings: IFillSettings<WidgetSettings>;
|
|
1431
1433
|
/** возвращает ключи показателей(разрезов или мер), для которых должна работать системная сортировка */
|
|
1432
|
-
getSortableIndicatorsKeys(): Readonly<StringKeyOf<WidgetSettings>[]>;
|
|
1434
|
+
getSortableIndicatorsKeys?(): Readonly<StringKeyOf<WidgetSettings>[]>;
|
|
1433
1435
|
}
|
|
1434
1436
|
|
|
1435
1437
|
type TContextMenu = (TContextMenuList | TContextMenuButtonGroup) & {
|
package/dist/index.esm.js
CHANGED
|
@@ -52,11 +52,14 @@ var isExecuteScriptActionValid = function (action, _a) {
|
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
return currentScript.fields.every(function (_a) {
|
|
55
|
-
var name = _a.name;
|
|
55
|
+
var name = _a.name, isRequired = _a.isRequired;
|
|
56
56
|
var actionInput = actionInputsMap.get(name !== null && name !== void 0 ? name : "");
|
|
57
57
|
if (!actionInput) {
|
|
58
58
|
return false;
|
|
59
59
|
}
|
|
60
|
+
if (!isRequired) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
60
63
|
if (actionInput.inputMethod === EWidgetActionInputMethod.VARIABLE &&
|
|
61
64
|
!variables.has(actionInput.sourceVariable)) {
|
|
62
65
|
return false;
|
package/dist/index.js
CHANGED
|
@@ -53,11 +53,14 @@ var isExecuteScriptActionValid = function (action, _a) {
|
|
|
53
53
|
return false;
|
|
54
54
|
}
|
|
55
55
|
return currentScript.fields.every(function (_a) {
|
|
56
|
-
var name = _a.name;
|
|
56
|
+
var name = _a.name, isRequired = _a.isRequired;
|
|
57
57
|
var actionInput = actionInputsMap.get(name !== null && name !== void 0 ? name : "");
|
|
58
58
|
if (!actionInput) {
|
|
59
59
|
return false;
|
|
60
60
|
}
|
|
61
|
+
if (!isRequired) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
61
64
|
if (actionInput.inputMethod === exports.EWidgetActionInputMethod.VARIABLE &&
|
|
62
65
|
!variables.has(actionInput.sourceVariable)) {
|
|
63
66
|
return false;
|