bruce-models 2.8.9 → 2.9.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/bruce-models.es5.js +13 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +13 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +12 -0
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/custom-form/custom-form-content.d.ts +9 -11
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -5377,6 +5377,9 @@
|
|
|
5377
5377
|
* @returns
|
|
5378
5378
|
*/
|
|
5379
5379
|
function GetValue(fields, entity, tags) {
|
|
5380
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
|
|
5381
|
+
return null;
|
|
5382
|
+
}
|
|
5380
5383
|
if (!tags) {
|
|
5381
5384
|
tags = [];
|
|
5382
5385
|
}
|
|
@@ -5430,6 +5433,9 @@
|
|
|
5430
5433
|
* @param tags
|
|
5431
5434
|
*/
|
|
5432
5435
|
function GetColor(fields, entity, tags) {
|
|
5436
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
|
|
5437
|
+
return null;
|
|
5438
|
+
}
|
|
5433
5439
|
if (!tags) {
|
|
5434
5440
|
tags = [];
|
|
5435
5441
|
}
|
|
@@ -5476,6 +5482,9 @@
|
|
|
5476
5482
|
}
|
|
5477
5483
|
Calculator.GetColor = GetColor;
|
|
5478
5484
|
function GetNumber(fields, entity, tags) {
|
|
5485
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
|
|
5486
|
+
return null;
|
|
5487
|
+
}
|
|
5479
5488
|
if (!tags) {
|
|
5480
5489
|
tags = [];
|
|
5481
5490
|
}
|
|
@@ -5508,6 +5517,9 @@
|
|
|
5508
5517
|
}
|
|
5509
5518
|
Calculator.GetNumber = GetNumber;
|
|
5510
5519
|
function GetString(fields, entity, tags) {
|
|
5520
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length)) {
|
|
5521
|
+
return null;
|
|
5522
|
+
}
|
|
5511
5523
|
if (!tags) {
|
|
5512
5524
|
tags = [];
|
|
5513
5525
|
}
|
|
@@ -11749,7 +11761,7 @@
|
|
|
11749
11761
|
DataSource.GetList = GetList;
|
|
11750
11762
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
11751
11763
|
|
|
11752
|
-
const VERSION$1 = "2.
|
|
11764
|
+
const VERSION$1 = "2.9.1";
|
|
11753
11765
|
|
|
11754
11766
|
exports.VERSION = VERSION$1;
|
|
11755
11767
|
exports.AbstractApi = AbstractApi;
|