@startinblox/core 0.19.2 → 0.19.4-beta.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/index.js +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11042,11 +11042,14 @@ class CustomGetter {
|
|
|
11042
11042
|
} else if (Array.isArray(value)) {
|
|
11043
11043
|
if (value.length === 0)
|
|
11044
11044
|
return null;
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11045
|
+
if (Array.isArray(value[0])) {
|
|
11046
|
+
const ln = store._getLanguage();
|
|
11047
|
+
let translatedValue = value.find((v) => v["@language"] && v["@language"] === ln);
|
|
11048
|
+
if (!translatedValue)
|
|
11049
|
+
translatedValue = value.find((v) => v["@language"] && v["@language"] === "en");
|
|
11050
|
+
return translatedValue ? translatedValue["@value"] || null : null;
|
|
11051
|
+
}
|
|
11052
|
+
return value;
|
|
11050
11053
|
}
|
|
11051
11054
|
}
|
|
11052
11055
|
return value;
|
|
@@ -13011,7 +13014,7 @@ const RangeMixin = {
|
|
|
13011
13014
|
async setRangeAttribute(resources) {
|
|
13012
13015
|
if (resources) {
|
|
13013
13016
|
const getRangeValue = async (resource) => {
|
|
13014
|
-
let res = await store.getData(resource["@id"], this.context || base_context
|
|
13017
|
+
let res = await store.getData(resource["@id"], this.context || base_context);
|
|
13015
13018
|
if (res === null) {
|
|
13016
13019
|
res = resource;
|
|
13017
13020
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startinblox/core",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4-beta.1",
|
|
4
4
|
"description": "This is a series of web component respecting both the web components standards and the Linked Data Platform convention.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|