plmt-constructor-sdk 0.13.13 → 0.13.14

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.
@@ -6,7 +6,8 @@ export declare enum ViewSettingsItemType {
6
6
  Select = "select",
7
7
  ColorPicker = "color-picker",
8
8
  Title = "title",
9
- TextArea = "textArea"
9
+ TextArea = "textArea",
10
+ ConditionalFormatters = "conditions"
10
11
  }
11
12
  export interface ViewSettingsItemValue {
12
13
  type: ViewSettingsItemType;
@@ -10,6 +10,7 @@ var ViewSettingsItemType;
10
10
  ViewSettingsItemType["ColorPicker"] = "color-picker";
11
11
  ViewSettingsItemType["Title"] = "title";
12
12
  ViewSettingsItemType["TextArea"] = "textArea";
13
+ ViewSettingsItemType["ConditionalFormatters"] = "conditions";
13
14
  })(ViewSettingsItemType = exports.ViewSettingsItemType || (exports.ViewSettingsItemType = {}));
14
15
  exports.viewSettingsItemValue = '418d9556-a046-4623-be0b-4f4f69ccb783';
15
16
  function viewSettingsExtract(viewSettings) {
@@ -33,6 +34,7 @@ function valueConversion(type, source) {
33
34
  case ViewSettingsItemType.Select:
34
35
  case ViewSettingsItemType.ColorPicker:
35
36
  case ViewSettingsItemType.TextArea:
37
+ case ViewSettingsItemType.ConditionalFormatters:
36
38
  return source ? String(source) : '';
37
39
  case ViewSettingsItemType.Checkbox:
38
40
  return Boolean(source);
package/config.d.ts CHANGED
@@ -150,3 +150,4 @@ export declare function colorPicker(params: {
150
150
  defaultValue?: string;
151
151
  }): ViewSettingsItem;
152
152
  export declare function title(label: any): ViewSettingsItem;
153
+ export declare function conditionalFormatters(key: string, label?: Text): ViewSettingsItem;
package/config.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * @module Конфигурация
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.title = exports.colorPicker = exports.select = exports.radio = exports.checkbox = exports.textArea = exports.input = exports.ViewSettingsItem = exports.drilldown = exports.colorize = exports.sort = exports.filter = exports.block = exports.Block = exports.BlockIcon = exports.DataQueryFunction = exports.DataQueryMethod = void 0;
9
+ exports.conditionalFormatters = exports.title = exports.colorPicker = exports.select = exports.radio = exports.checkbox = exports.textArea = exports.input = exports.ViewSettingsItem = exports.drilldown = exports.colorize = exports.sort = exports.filter = exports.block = exports.Block = exports.BlockIcon = exports.DataQueryFunction = exports.DataQueryMethod = void 0;
10
10
  const data_1 = require("./data");
11
11
  const config_1 = require("./__internal__/config");
12
12
  const dataset_1 = require("./__internal__/dataset");
@@ -197,3 +197,14 @@ function title(label) {
197
197
  });
198
198
  }
199
199
  exports.title = title;
200
+ function conditionalFormatters(key, label) {
201
+ return createViewSettingsItem({
202
+ type: view_settings_1.ViewSettingsItemType.ConditionalFormatters,
203
+ key,
204
+ label: label || {
205
+ ru: 'Условия форматирования',
206
+ en: 'Formatting conditions',
207
+ },
208
+ });
209
+ }
210
+ exports.conditionalFormatters = conditionalFormatters;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plmt-constructor-sdk",
3
- "version": "0.13.13",
3
+ "version": "0.13.14",
4
4
  "description": "Набор инструментов для создания виджетов.",
5
5
  "dependencies": {
6
6
  "logical-not": "^1.0.9"