@startinblox/core 0.20.0-beta.1 → 0.20.0-beta.3
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/{helpers-D842zXW3.js → helpers-B4P9rvjM.js} +19 -8
- package/dist/helpers.js +1 -1
- package/dist/index.js +980 -508
- package/dist/slimselect-CT2Oyr_0.js +4 -0
- package/dist/slimselect-WIZK5Hmq.js +4 -0
- package/package.json +4 -1
- package/dist/slimselect-BTZP03JZ.js +0 -4
- package/dist/slimselect-DIo2l9XQ.js +0 -4
|
@@ -1324,8 +1324,10 @@ async function evalTemplateString(str, variables = {}) {
|
|
|
1324
1324
|
const keys = Object.keys(variables);
|
|
1325
1325
|
const values = keys.map((key) => variables[key]);
|
|
1326
1326
|
try {
|
|
1327
|
-
const AsyncFunction = Object.getPrototypeOf(
|
|
1328
|
-
|
|
1327
|
+
const AsyncFunction = Object.getPrototypeOf(
|
|
1328
|
+
async function() {
|
|
1329
|
+
}
|
|
1330
|
+
).constructor;
|
|
1329
1331
|
const func = AsyncFunction.call(null, ...keys, "return `" + str + "`");
|
|
1330
1332
|
return await func(...values);
|
|
1331
1333
|
} catch (e) {
|
|
@@ -1421,10 +1423,14 @@ function setDeepProperty(obj, path, value) {
|
|
|
1421
1423
|
}
|
|
1422
1424
|
}
|
|
1423
1425
|
function parseFieldsString(fields) {
|
|
1426
|
+
if (!fields) return [];
|
|
1424
1427
|
let fieldsArray;
|
|
1425
1428
|
while (fields.indexOf("(") > 0) {
|
|
1426
1429
|
let firstBracket = fields.indexOf("(");
|
|
1427
|
-
let noset = fields.substring(
|
|
1430
|
+
let noset = fields.substring(
|
|
1431
|
+
firstBracket,
|
|
1432
|
+
findClosingBracketMatchIndex(fields, firstBracket) + 1
|
|
1433
|
+
);
|
|
1428
1434
|
fields = fields.replace(noset, "");
|
|
1429
1435
|
}
|
|
1430
1436
|
const re = /((^\s*|,)\s*)(("(\\"|[^"])*")|('(\\'|[^'])*')|[^,]*)/gm;
|
|
@@ -1451,7 +1457,9 @@ function defineComponent(tagName, componentClass) {
|
|
|
1451
1457
|
if (!customElements.get(tagName)) {
|
|
1452
1458
|
customElements.define(tagName, componentClass);
|
|
1453
1459
|
} else {
|
|
1454
|
-
console.warn(
|
|
1460
|
+
console.warn(
|
|
1461
|
+
`Warning: the component "${tagName}" has already been loaded in another version of sib-core.`
|
|
1462
|
+
);
|
|
1455
1463
|
}
|
|
1456
1464
|
}
|
|
1457
1465
|
function fuzzyCompare(subject, search2) {
|
|
@@ -1464,7 +1472,8 @@ function fuzzyCompare(subject, search2) {
|
|
|
1464
1472
|
const compare = {
|
|
1465
1473
|
string(subject, query) {
|
|
1466
1474
|
if (query === "") return true;
|
|
1467
|
-
if (subject.toString().toLowerCase().includes(String(query).toLowerCase()))
|
|
1475
|
+
if (subject.toString().toLowerCase().includes(String(query).toLowerCase()))
|
|
1476
|
+
return true;
|
|
1468
1477
|
return fuzzyCompare(subject, query);
|
|
1469
1478
|
},
|
|
1470
1479
|
boolean(subject, query) {
|
|
@@ -1527,9 +1536,11 @@ function transformArrayToContainer(resource) {
|
|
|
1527
1536
|
"@id": predicateValue["@id"],
|
|
1528
1537
|
"ldp:contains": [...predicateValue]
|
|
1529
1538
|
};
|
|
1530
|
-
newValue[predicate]["ldp:contains"].forEach(
|
|
1531
|
-
|
|
1532
|
-
|
|
1539
|
+
newValue[predicate]["ldp:contains"].forEach(
|
|
1540
|
+
(childPredicate, index) => {
|
|
1541
|
+
newValue[predicate]["ldp:contains"][index] = transformArrayToContainer(childPredicate);
|
|
1542
|
+
}
|
|
1543
|
+
);
|
|
1533
1544
|
}
|
|
1534
1545
|
}
|
|
1535
1546
|
return newValue;
|
package/dist/helpers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, o, c, A as A2, d, n, e, b, f, g, k, i, l, m, p, s, j, t, u } from "./helpers-
|
|
1
|
+
import { A, a, o, c, A as A2, d, n, e, b, f, g, k, i, l, m, p, s, j, t, u } from "./helpers-B4P9rvjM.js";
|
|
2
2
|
export {
|
|
3
3
|
A as AsyncIterableBuilder,
|
|
4
4
|
a as asyncQuerySelector,
|