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