@infomaximum/widget-sdk 3.16.0 → 3.17.0

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
@@ -12,7 +12,8 @@ declare enum ESimpleDataType {
12
12
  DATETIME = "DATETIME",
13
13
  STRING = "STRING",
14
14
  INTEGER = "INTEGER",
15
- DATETIME64 = "DATETIME64"
15
+ DATETIME64 = "DATETIME64",
16
+ BOOLEAN = "BOOLEAN"
16
17
  }
17
18
 
18
19
  declare enum EControlType {
@@ -142,7 +143,9 @@ declare enum EFormatTypes {
142
143
  /** День месяца */
143
144
  DAY_OF_MONTH = "DAY_OF_MONTH",
144
145
  /** Неделя */
145
- WEEK = "WEEK"
146
+ WEEK = "WEEK",
147
+ /** Логический */
148
+ BOOLEAN = "BOOLEAN"
146
149
  }
147
150
  declare enum EFormattingPresets {
148
151
  "AUTO" = "AUTO",
package/dist/index.esm.js CHANGED
@@ -114,10 +114,13 @@ var ESimpleDataType;
114
114
  ESimpleDataType["STRING"] = "STRING";
115
115
  ESimpleDataType["INTEGER"] = "INTEGER";
116
116
  ESimpleDataType["DATETIME64"] = "DATETIME64";
117
+ ESimpleDataType["BOOLEAN"] = "BOOLEAN";
117
118
  })(ESimpleDataType || (ESimpleDataType = {}));
118
119
 
119
120
  var prepareValuesForSql = function (dataType, values) {
120
- return dataType === ESimpleDataType.INTEGER || dataType === ESimpleDataType.FLOAT
121
+ return dataType === ESimpleDataType.INTEGER ||
122
+ dataType === ESimpleDataType.FLOAT ||
123
+ dataType === ESimpleDataType.BOOLEAN
121
124
  ? values
122
125
  : values.map(function (value) { return "'".concat(escapeSingularQuotes(escapeReverseSlash(value)), "'"); });
123
126
  };
@@ -216,6 +219,8 @@ var EFormatTypes;
216
219
  EFormatTypes["DAY_OF_MONTH"] = "DAY_OF_MONTH";
217
220
  /** Неделя */
218
221
  EFormatTypes["WEEK"] = "WEEK";
222
+ /** Логический */
223
+ EFormatTypes["BOOLEAN"] = "BOOLEAN";
219
224
  })(EFormatTypes || (EFormatTypes = {}));
220
225
  var EFormattingPresets;
221
226
  (function (EFormattingPresets) {
package/dist/index.js CHANGED
@@ -115,10 +115,13 @@ exports.ESimpleDataType = void 0;
115
115
  ESimpleDataType["STRING"] = "STRING";
116
116
  ESimpleDataType["INTEGER"] = "INTEGER";
117
117
  ESimpleDataType["DATETIME64"] = "DATETIME64";
118
+ ESimpleDataType["BOOLEAN"] = "BOOLEAN";
118
119
  })(exports.ESimpleDataType || (exports.ESimpleDataType = {}));
119
120
 
120
121
  var prepareValuesForSql = function (dataType, values) {
121
- return dataType === exports.ESimpleDataType.INTEGER || dataType === exports.ESimpleDataType.FLOAT
122
+ return dataType === exports.ESimpleDataType.INTEGER ||
123
+ dataType === exports.ESimpleDataType.FLOAT ||
124
+ dataType === exports.ESimpleDataType.BOOLEAN
122
125
  ? values
123
126
  : values.map(function (value) { return "'".concat(escapeSingularQuotes(escapeReverseSlash(value)), "'"); });
124
127
  };
@@ -217,6 +220,8 @@ exports.EFormatTypes = void 0;
217
220
  EFormatTypes["DAY_OF_MONTH"] = "DAY_OF_MONTH";
218
221
  /** Неделя */
219
222
  EFormatTypes["WEEK"] = "WEEK";
223
+ /** Логический */
224
+ EFormatTypes["BOOLEAN"] = "BOOLEAN";
220
225
  })(exports.EFormatTypes || (exports.EFormatTypes = {}));
221
226
  exports.EFormattingPresets = void 0;
222
227
  (function (EFormattingPresets) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/widget-sdk",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",