@startinblox/core 0.19.22-beta.1 → 0.19.22-beta.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/{helpers-Fl7SPUjU.js → helpers-B2OOHoq7.js} +46 -95
- package/dist/helpers.js +1 -1
- package/dist/index.js +15780 -20288
- package/dist/{leaflet-2MZa2u07.js → leaflet-B-Oc5et1.js} +63 -42
- package/dist/quill.snow-B73wIbzm.js +13 -0
- package/package.json +21 -22
- package/dist/quill.snow-gf_AguUg.js +0 -949
- /package/dist/{MarkerCluster-96Sa2BSd.js → MarkerCluster-pBxvH3Oj.js} +0 -0
- /package/dist/{MarkerCluster.Default-CpBAgxXL.js → MarkerCluster.Default-DBivQAto.js} +0 -0
- /package/dist/{default-theme-oAPinkzv.js → default-theme-CYuJ78jz.js} +0 -0
- /package/dist/{en-CZGbNQZd.js → en-D7xQ8_VL.js} +0 -0
- /package/dist/{fr-IUy0jqNf.js → fr-ClQZ5-J-.js} +0 -0
- /package/dist/{slimselect-AzdIsdl3.js → slimselect-DIo2l9XQ.js} +0 -0
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
throw TypeError("Cannot " + msg);
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
4
3
|
};
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
12
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
13
|
-
};
|
|
14
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
15
|
-
__accessCheck(obj, member, "write to private field");
|
|
16
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
17
|
-
return value;
|
|
18
|
-
};
|
|
19
|
-
var __privateMethod = (obj, member, method) => {
|
|
20
|
-
__accessCheck(obj, member, "access private method");
|
|
21
|
-
return method;
|
|
22
|
-
};
|
|
23
|
-
var _values, _resolve, _createIterable, createIterable_fn, _next, next_fn, _nextPromise, nextPromise_fn;
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
9
|
+
var _values, _resolve, _AsyncIterableBuilder_instances, createIterable_fn, next_fn, nextPromise_fn;
|
|
24
10
|
function isArray(value) {
|
|
25
11
|
return !Array.isArray ? getTag(value) === "[object Array]" : Array.isArray(value);
|
|
26
12
|
}
|
|
@@ -73,7 +59,6 @@ class KeyStore {
|
|
|
73
59
|
let totalWeight = 0;
|
|
74
60
|
keys.forEach((key) => {
|
|
75
61
|
let obj = createKey(key);
|
|
76
|
-
totalWeight += obj.weight;
|
|
77
62
|
this._keys.push(obj);
|
|
78
63
|
this._keyMap[obj.id] = obj;
|
|
79
64
|
totalWeight += obj.weight;
|
|
@@ -337,8 +322,7 @@ class FuseIndex {
|
|
|
337
322
|
value: item
|
|
338
323
|
});
|
|
339
324
|
});
|
|
340
|
-
} else
|
|
341
|
-
;
|
|
325
|
+
} else ;
|
|
342
326
|
}
|
|
343
327
|
record.$[keyIndex] = subRecords;
|
|
344
328
|
} else if (isString(value) && !isBlank(value)) {
|
|
@@ -1104,10 +1088,8 @@ function format(results, docs, {
|
|
|
1104
1088
|
includeScore = Config.includeScore
|
|
1105
1089
|
} = {}) {
|
|
1106
1090
|
const transformers = [];
|
|
1107
|
-
if (includeMatches)
|
|
1108
|
-
|
|
1109
|
-
if (includeScore)
|
|
1110
|
-
transformers.push(transformScore);
|
|
1091
|
+
if (includeMatches) transformers.push(transformMatches);
|
|
1092
|
+
if (includeScore) transformers.push(transformScore);
|
|
1111
1093
|
return results.map((result) => {
|
|
1112
1094
|
const { idx } = result;
|
|
1113
1095
|
const data = {
|
|
@@ -1320,7 +1302,7 @@ class Fuse {
|
|
|
1320
1302
|
return matches;
|
|
1321
1303
|
}
|
|
1322
1304
|
}
|
|
1323
|
-
Fuse.version = "
|
|
1305
|
+
Fuse.version = "7.0.0";
|
|
1324
1306
|
Fuse.createIndex = createIndex;
|
|
1325
1307
|
Fuse.parseIndex = parseIndex;
|
|
1326
1308
|
Fuse.config = Config;
|
|
@@ -1358,8 +1340,7 @@ function importCSS(...stylesheets) {
|
|
|
1358
1340
|
let link = Array.from(document.head.querySelectorAll("link")).find(
|
|
1359
1341
|
(link2) => link2.href === url
|
|
1360
1342
|
);
|
|
1361
|
-
if (link)
|
|
1362
|
-
return link;
|
|
1343
|
+
if (link) return link;
|
|
1363
1344
|
link = document.createElement("link");
|
|
1364
1345
|
link.rel = "stylesheet";
|
|
1365
1346
|
link.href = url;
|
|
@@ -1371,21 +1352,17 @@ function importCSS(...stylesheets) {
|
|
|
1371
1352
|
function importInlineCSS(id, importer) {
|
|
1372
1353
|
id = `sib-inline-css-${id}`;
|
|
1373
1354
|
let style = document.head.querySelector(`style#${id}`);
|
|
1374
|
-
if (style)
|
|
1375
|
-
return style;
|
|
1355
|
+
if (style) return style;
|
|
1376
1356
|
style = document.createElement("style");
|
|
1377
1357
|
style.id = id;
|
|
1378
1358
|
document.head.appendChild(style);
|
|
1379
1359
|
(async () => {
|
|
1380
1360
|
let textContent;
|
|
1381
|
-
if (typeof importer === "string")
|
|
1382
|
-
textContent = importer;
|
|
1361
|
+
if (typeof importer === "string") textContent = importer;
|
|
1383
1362
|
else {
|
|
1384
1363
|
const imported = await importer();
|
|
1385
|
-
if (typeof imported === "string")
|
|
1386
|
-
|
|
1387
|
-
else
|
|
1388
|
-
textContent = imported.default || "";
|
|
1364
|
+
if (typeof imported === "string") textContent = imported;
|
|
1365
|
+
else textContent = imported.default || "";
|
|
1389
1366
|
}
|
|
1390
1367
|
style.textContent = textContent;
|
|
1391
1368
|
})();
|
|
@@ -1397,8 +1374,7 @@ function importJS(...plugins) {
|
|
|
1397
1374
|
let script = Array.from(document.querySelectorAll("script")).find(
|
|
1398
1375
|
(script2) => script2.src === url
|
|
1399
1376
|
);
|
|
1400
|
-
if (script)
|
|
1401
|
-
return script;
|
|
1377
|
+
if (script) return script;
|
|
1402
1378
|
script = document.createElement("script");
|
|
1403
1379
|
script.src = url;
|
|
1404
1380
|
document.head.appendChild(script);
|
|
@@ -1406,15 +1382,12 @@ function importJS(...plugins) {
|
|
|
1406
1382
|
});
|
|
1407
1383
|
}
|
|
1408
1384
|
function relativeSource(source) {
|
|
1409
|
-
if (!source.match(/^\..?\//))
|
|
1410
|
-
return new URL(source, document.baseURI).href;
|
|
1385
|
+
if (!source.match(/^\..?\//)) return new URL(source, document.baseURI).href;
|
|
1411
1386
|
const e = new Error();
|
|
1412
|
-
if (!e.stack)
|
|
1413
|
-
return source;
|
|
1387
|
+
if (!e.stack) return source;
|
|
1414
1388
|
const f2 = e.stack.split("\n").filter((l) => l.includes(":"))[2];
|
|
1415
1389
|
let line = f2.match(/[a-z]+:.*$/);
|
|
1416
|
-
if (!line)
|
|
1417
|
-
return source;
|
|
1390
|
+
if (!line) return source;
|
|
1418
1391
|
const calledFile = line[0].replace(/(\:[0-9]+){2}\)?$/, "");
|
|
1419
1392
|
source = new URL(source, calledFile).href;
|
|
1420
1393
|
return source;
|
|
@@ -1427,8 +1400,7 @@ function loadScript(source) {
|
|
|
1427
1400
|
script.async = true;
|
|
1428
1401
|
script.onload = () => setTimeout(resolve, 0);
|
|
1429
1402
|
script.src = source;
|
|
1430
|
-
if (head)
|
|
1431
|
-
head.appendChild(script);
|
|
1403
|
+
if (head) head.appendChild(script);
|
|
1432
1404
|
});
|
|
1433
1405
|
}
|
|
1434
1406
|
function domIsReady() {
|
|
@@ -1443,12 +1415,9 @@ function domIsReady() {
|
|
|
1443
1415
|
function setDeepProperty(obj, path, value) {
|
|
1444
1416
|
const name = path.shift();
|
|
1445
1417
|
if (name) {
|
|
1446
|
-
if (!(name in obj))
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
setDeepProperty(obj[name], path, value);
|
|
1450
|
-
else
|
|
1451
|
-
obj[name] = value;
|
|
1418
|
+
if (!(name in obj)) obj[name] = {};
|
|
1419
|
+
if (path.length) setDeepProperty(obj[name], path, value);
|
|
1420
|
+
else obj[name] = value;
|
|
1452
1421
|
}
|
|
1453
1422
|
}
|
|
1454
1423
|
function parseFieldsString(fields) {
|
|
@@ -1460,13 +1429,11 @@ function parseFieldsString(fields) {
|
|
|
1460
1429
|
}
|
|
1461
1430
|
const re = /((^\s*|,)\s*)(("(\\"|[^"])*")|('(\\'|[^'])*')|[^,]*)/gm;
|
|
1462
1431
|
fieldsArray = fields.match(re) || [];
|
|
1463
|
-
if (!fieldsArray)
|
|
1464
|
-
return [];
|
|
1432
|
+
if (!fieldsArray) return [];
|
|
1465
1433
|
return fieldsArray.map((a) => a.replace(/^[\s,]+/, ""));
|
|
1466
1434
|
}
|
|
1467
1435
|
function findClosingBracketMatchIndex(str, pos) {
|
|
1468
|
-
if (str[pos] != "(")
|
|
1469
|
-
throw new Error("No '(' at index " + pos);
|
|
1436
|
+
if (str[pos] != "(") throw new Error("No '(' at index " + pos);
|
|
1470
1437
|
let depth = 1;
|
|
1471
1438
|
for (let i = pos + 1; i < str.length; i++) {
|
|
1472
1439
|
switch (str[i]) {
|
|
@@ -1474,8 +1441,7 @@ function findClosingBracketMatchIndex(str, pos) {
|
|
|
1474
1441
|
depth++;
|
|
1475
1442
|
break;
|
|
1476
1443
|
case ")":
|
|
1477
|
-
if (--depth == 0)
|
|
1478
|
-
return i;
|
|
1444
|
+
if (--depth == 0) return i;
|
|
1479
1445
|
break;
|
|
1480
1446
|
}
|
|
1481
1447
|
}
|
|
@@ -1497,15 +1463,12 @@ function fuzzyCompare(subject, search2) {
|
|
|
1497
1463
|
}
|
|
1498
1464
|
const compare = {
|
|
1499
1465
|
string(subject, query) {
|
|
1500
|
-
if (query === "")
|
|
1501
|
-
|
|
1502
|
-
if (subject.toString().toLowerCase().includes(String(query).toLowerCase()))
|
|
1503
|
-
return true;
|
|
1466
|
+
if (query === "") return true;
|
|
1467
|
+
if (subject.toString().toLowerCase().includes(String(query).toLowerCase())) return true;
|
|
1504
1468
|
return fuzzyCompare(subject, query);
|
|
1505
1469
|
},
|
|
1506
1470
|
boolean(subject, query) {
|
|
1507
|
-
if (!query)
|
|
1508
|
-
return true;
|
|
1471
|
+
if (!query) return true;
|
|
1509
1472
|
return subject;
|
|
1510
1473
|
},
|
|
1511
1474
|
number(subject, query) {
|
|
@@ -1518,10 +1481,8 @@ const compare = {
|
|
|
1518
1481
|
return (range[0] == null || range[0] === "" || subject >= range[0]) && (range[1] == null || range[1] === "" || subject <= range[1]);
|
|
1519
1482
|
},
|
|
1520
1483
|
resource(subject, query) {
|
|
1521
|
-
if (query === "")
|
|
1522
|
-
|
|
1523
|
-
if (!query["@id"])
|
|
1524
|
-
return false;
|
|
1484
|
+
if (query === "") return true;
|
|
1485
|
+
if (!query["@id"]) return false;
|
|
1525
1486
|
const ret = subject["@id"] === query["@id"];
|
|
1526
1487
|
return ret;
|
|
1527
1488
|
}
|
|
@@ -1556,10 +1517,8 @@ function transformArrayToContainer(resource) {
|
|
|
1556
1517
|
const newValue = { ...resource };
|
|
1557
1518
|
for (let predicate of Object.keys(newValue)) {
|
|
1558
1519
|
const predicateValue = newValue[predicate];
|
|
1559
|
-
if (!predicateValue || typeof predicateValue !== "object")
|
|
1560
|
-
|
|
1561
|
-
if (["permissions", "@context"].includes(predicate))
|
|
1562
|
-
continue;
|
|
1520
|
+
if (!predicateValue || typeof predicateValue !== "object") continue;
|
|
1521
|
+
if (["permissions", "@context"].includes(predicate)) continue;
|
|
1563
1522
|
if (!Array.isArray(predicateValue) && predicateValue["@id"]) {
|
|
1564
1523
|
newValue[predicate] = transformArrayToContainer(resource[predicate]);
|
|
1565
1524
|
}
|
|
@@ -1577,45 +1536,38 @@ function transformArrayToContainer(resource) {
|
|
|
1577
1536
|
}
|
|
1578
1537
|
class AsyncIterableBuilder {
|
|
1579
1538
|
constructor() {
|
|
1580
|
-
__privateAdd(this,
|
|
1581
|
-
__privateAdd(this, _next);
|
|
1582
|
-
__privateAdd(this, _nextPromise);
|
|
1539
|
+
__privateAdd(this, _AsyncIterableBuilder_instances);
|
|
1583
1540
|
__privateAdd(this, _values, []);
|
|
1584
|
-
__privateAdd(this, _resolve
|
|
1585
|
-
__privateMethod(this,
|
|
1586
|
-
this.iterable = __privateMethod(this,
|
|
1587
|
-
this.next = __privateMethod(this,
|
|
1541
|
+
__privateAdd(this, _resolve);
|
|
1542
|
+
__privateMethod(this, _AsyncIterableBuilder_instances, nextPromise_fn).call(this);
|
|
1543
|
+
this.iterable = __privateMethod(this, _AsyncIterableBuilder_instances, createIterable_fn).call(this);
|
|
1544
|
+
this.next = __privateMethod(this, _AsyncIterableBuilder_instances, next_fn).bind(this);
|
|
1588
1545
|
}
|
|
1589
1546
|
}
|
|
1590
1547
|
_values = new WeakMap();
|
|
1591
1548
|
_resolve = new WeakMap();
|
|
1592
|
-
|
|
1549
|
+
_AsyncIterableBuilder_instances = new WeakSet();
|
|
1593
1550
|
createIterable_fn = async function* () {
|
|
1594
1551
|
for (let index = 0; ; index++) {
|
|
1595
1552
|
const { value, done } = await __privateGet(this, _values)[index];
|
|
1596
1553
|
delete __privateGet(this, _values)[index];
|
|
1597
1554
|
yield value;
|
|
1598
|
-
if (done)
|
|
1599
|
-
return;
|
|
1555
|
+
if (done) return;
|
|
1600
1556
|
}
|
|
1601
1557
|
};
|
|
1602
|
-
_next = new WeakSet();
|
|
1603
1558
|
next_fn = function(value, done = false) {
|
|
1604
1559
|
__privateGet(this, _resolve).call(this, { value, done });
|
|
1605
|
-
__privateMethod(this,
|
|
1560
|
+
__privateMethod(this, _AsyncIterableBuilder_instances, nextPromise_fn).call(this);
|
|
1606
1561
|
};
|
|
1607
|
-
_nextPromise = new WeakSet();
|
|
1608
1562
|
nextPromise_fn = function() {
|
|
1609
1563
|
__privateGet(this, _values).push(new Promise((resolve) => __privateSet(this, _resolve, resolve)));
|
|
1610
1564
|
};
|
|
1611
1565
|
const asyncQuerySelector = (selector, parent = document) => new Promise((resolve) => {
|
|
1612
1566
|
const element = parent.querySelector(selector);
|
|
1613
|
-
if (element)
|
|
1614
|
-
return resolve(element);
|
|
1567
|
+
if (element) return resolve(element);
|
|
1615
1568
|
const observer = new MutationObserver(() => {
|
|
1616
1569
|
const element2 = parent.querySelector(selector);
|
|
1617
|
-
if (!element2)
|
|
1618
|
-
return;
|
|
1570
|
+
if (!element2) return;
|
|
1619
1571
|
observer.disconnect();
|
|
1620
1572
|
return resolve(element2);
|
|
1621
1573
|
});
|
|
@@ -1630,8 +1582,7 @@ const asyncQuerySelectorAll = (selector, parent = document) => {
|
|
|
1630
1582
|
const { next, iterable } = new AsyncIterableBuilder();
|
|
1631
1583
|
function checkNewElement() {
|
|
1632
1584
|
for (const element of parent.querySelectorAll(selector)) {
|
|
1633
|
-
if (delivered.has(element))
|
|
1634
|
-
continue;
|
|
1585
|
+
if (delivered.has(element)) continue;
|
|
1635
1586
|
delivered.add(element);
|
|
1636
1587
|
next(element);
|
|
1637
1588
|
}
|
package/dist/helpers.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, n, o, c, A as A2, d, m, e, a, f, g, j, i, k, l, p, s, b, t, u } from "./helpers-
|
|
1
|
+
import { A, n, o, c, A as A2, d, m, e, a, f, g, j, i, k, l, p, s, b, t, u } from "./helpers-B2OOHoq7.js";
|
|
2
2
|
export {
|
|
3
3
|
A as AsyncIterableBuilder,
|
|
4
4
|
n as asyncQuerySelector,
|