bruce-models 5.1.0 → 5.1.2
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 +17 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +17 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/calculator/calculator.js +16 -0
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/plugin/plugin.d.ts +2 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -4423,6 +4423,22 @@
|
|
|
4423
4423
|
if (mapValue == eValue) {
|
|
4424
4424
|
return option.appliedValue;
|
|
4425
4425
|
}
|
|
4426
|
+
// Case where Entity value is a boolean but the mapping value is a string.
|
|
4427
|
+
// Common as mapping value is typically a user-entered string.
|
|
4428
|
+
else if (typeof eValue === "boolean" && typeof mapValue === "string") {
|
|
4429
|
+
const eValueStr = eValue ? "true" : "false";
|
|
4430
|
+
if (mapValue == eValueStr) {
|
|
4431
|
+
return option.appliedValue;
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4434
|
+
// Handling possible case where the opposite is true.
|
|
4435
|
+
// Have not seen this happen yet, but preparing for any future cases.
|
|
4436
|
+
else if (typeof mapValue === "boolean" && typeof eValue === "string") {
|
|
4437
|
+
const mapValueStr = mapValue ? "true" : "false";
|
|
4438
|
+
if (mapValueStr == eValue) {
|
|
4439
|
+
return option.appliedValue;
|
|
4440
|
+
}
|
|
4441
|
+
}
|
|
4426
4442
|
}
|
|
4427
4443
|
}
|
|
4428
4444
|
}
|
|
@@ -14199,7 +14215,7 @@
|
|
|
14199
14215
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
14200
14216
|
|
|
14201
14217
|
// This is updated with the package.json version on build.
|
|
14202
|
-
const VERSION = "5.1.
|
|
14218
|
+
const VERSION = "5.1.2";
|
|
14203
14219
|
|
|
14204
14220
|
exports.VERSION = VERSION;
|
|
14205
14221
|
exports.AbstractApi = AbstractApi;
|