@infomaximum/widget-sdk 4.0.0-beta31 → 4.0.0-beta32

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 CHANGED
@@ -44,6 +44,7 @@ interface IControlRecord<Settings extends object, Value, ControlType = EControlT
44
44
  title?: string;
45
45
  /** Тип используемого элемента управления настройкой из предложенных нашей системой */
46
46
  type: ControlType | string;
47
+ marginTop?: number;
47
48
  /** Объект дополнительных параметров элемента управления */
48
49
  props?: object | ((settings: Settings) => object);
49
50
  /** Описание доступа к значению настройки */
@@ -373,6 +374,7 @@ interface IFormulaFilterValue {
373
374
  }>;
374
375
  }
375
376
  interface IStagesFilterItem {
377
+ id: number;
376
378
  /** Название этапа */
377
379
  name: string;
378
380
  /** Формула фильтра этапа */
@@ -859,7 +861,7 @@ type TWidgetActionInputValue = TWidgetActionCommonInputValue & ({
859
861
  columnName: string;
860
862
  } | {
861
863
  mode: EWidgetActionInputMode.FROM_VARIABLE;
862
- name: string;
864
+ sourceVariable: string;
863
865
  } | {
864
866
  mode: EWidgetActionInputMode.FORMULA;
865
867
  formula: string;
package/dist/index.esm.js CHANGED
@@ -115,7 +115,7 @@ var isActionValid = function (action, _a) {
115
115
  return false;
116
116
  }
117
117
  var value = actionInput.value;
118
- if (value.mode === EWidgetActionInputMode.FROM_VARIABLE && !variables.has(value.name)) {
118
+ if (value.mode === EWidgetActionInputMode.FROM_VARIABLE && !variables.has(value.sourceVariable)) {
119
119
  return false;
120
120
  }
121
121
  if (value.mode === EWidgetActionInputMode.FORMULA && !value.formula) {
package/dist/index.js CHANGED
@@ -116,7 +116,7 @@ var isActionValid = function (action, _a) {
116
116
  return false;
117
117
  }
118
118
  var value = actionInput.value;
119
- if (value.mode === exports.EWidgetActionInputMode.FROM_VARIABLE && !variables.has(value.name)) {
119
+ if (value.mode === exports.EWidgetActionInputMode.FROM_VARIABLE && !variables.has(value.sourceVariable)) {
120
120
  return false;
121
121
  }
122
122
  if (value.mode === exports.EWidgetActionInputMode.FORMULA && !value.formula) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "4.0.0-beta31",
3
+ "version": "4.0.0-beta32",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",