@citolab/qti-components 7.26.0 → 7.26.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/LICENSE.md +674 -0
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +351 -342
- package/custom-elements.json +17216 -18384
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/{chunk-FEO7D54Z.js → chunk-75ME6QG5.js} +3 -3
- package/dist/{chunk-VQAG7NSK.js → chunk-DG5TP35K.js} +2 -2
- package/dist/{chunk-IKBPPSNQ.js → chunk-G5ZUC3OT.js} +14 -2
- package/dist/{chunk-IKBPPSNQ.js.map → chunk-G5ZUC3OT.js.map} +1 -1
- package/dist/{chunk-RKXUA6D6.js → chunk-GG36UR7F.js} +2 -2
- package/dist/{chunk-DUBGJJ75.js → chunk-QUWFDFGZ.js} +3 -3
- package/dist/{chunk-BHB6PYJG.js → chunk-TORB5UN2.js} +1 -59
- package/dist/chunk-TORB5UN2.js.map +1 -0
- package/dist/{chunk-LPVYU726.js → chunk-TZMDZQFG.js} +4 -4
- package/dist/{chunk-I4NHZ6D6.js → chunk-XZY2TIZJ.js} +8404 -6413
- package/dist/chunk-XZY2TIZJ.js.map +1 -0
- package/dist/config.context-BjZ2bZSY.d.ts +42 -0
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/{interaction-B1Pu7KOD.d.ts → interaction-Bgzlw7Iu.d.ts} +1 -1
- package/dist/interactions.d.ts +124 -13
- package/dist/interactions.js +3 -3
- package/dist/item.css +12 -0
- package/dist/item.d.ts +1 -1
- package/dist/item.js +3 -3
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +2135 -2092
- package/dist/test.d.ts +1 -1
- package/dist/test.js +5 -5
- package/package.json +15 -16
- package/dist/chunk-BHB6PYJG.js.map +0 -1
- package/dist/chunk-I4NHZ6D6.js.map +0 -1
- package/dist/config.context-DUz2-kxN.d.ts +0 -14
- /package/dist/{chunk-FEO7D54Z.js.map → chunk-75ME6QG5.js.map} +0 -0
- /package/dist/{chunk-VQAG7NSK.js.map → chunk-DG5TP35K.js.map} +0 -0
- /package/dist/{chunk-RKXUA6D6.js.map → chunk-GG36UR7F.js.map} +0 -0
- /package/dist/{chunk-DUBGJJ75.js.map → chunk-QUWFDFGZ.js.map} +0 -0
- /package/dist/{chunk-LPVYU726.js.map → chunk-TZMDZQFG.js.map} +0 -0
|
@@ -1372,63 +1372,6 @@ var o6 = s6.litElementPolyfillSupport;
|
|
|
1372
1372
|
o6?.({ LitElement: i4 });
|
|
1373
1373
|
(s6.litElementVersions ??= []).push("4.2.1");
|
|
1374
1374
|
|
|
1375
|
-
// ../qti-utilities/src/decorators/live-query.ts
|
|
1376
|
-
function liveQuery(querySelector, options) {
|
|
1377
|
-
return (proto, decoratedFnName) => {
|
|
1378
|
-
const { connectedCallback, disconnectedCallback } = proto;
|
|
1379
|
-
proto.connectedCallback = function() {
|
|
1380
|
-
connectedCallback.call(this);
|
|
1381
|
-
const handler = this[decoratedFnName];
|
|
1382
|
-
const callback = (mutationList) => {
|
|
1383
|
-
const added = [];
|
|
1384
|
-
const removed = [];
|
|
1385
|
-
for (const m4 of mutationList) {
|
|
1386
|
-
if (m4.type !== "childList") continue;
|
|
1387
|
-
m4.addedNodes.forEach((n7) => {
|
|
1388
|
-
if (n7.nodeType !== 1) return;
|
|
1389
|
-
const el = n7;
|
|
1390
|
-
if (el.matches?.(querySelector)) added.push(el);
|
|
1391
|
-
added.push(...el.querySelectorAll?.(querySelector) ?? []);
|
|
1392
|
-
});
|
|
1393
|
-
m4.removedNodes.forEach((n7) => {
|
|
1394
|
-
if (n7.nodeType !== 1) return;
|
|
1395
|
-
const el = n7;
|
|
1396
|
-
if (el.matches?.(querySelector)) removed.push(el);
|
|
1397
|
-
removed.push(...el.querySelectorAll?.(querySelector) ?? []);
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
const dedupe = (arr) => Array.from(new Set(arr));
|
|
1401
|
-
const A2 = dedupe(added);
|
|
1402
|
-
const R2 = dedupe(removed);
|
|
1403
|
-
if (A2.length || R2.length) {
|
|
1404
|
-
handler.call(this, A2, R2);
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
const obsLight = new MutationObserver(callback);
|
|
1408
|
-
obsLight.observe(this, { childList: true, subtree: true });
|
|
1409
|
-
const obsShadow = this.shadowRoot ? new MutationObserver(callback) : null;
|
|
1410
|
-
obsShadow?.observe(this.shadowRoot, { childList: true, subtree: true });
|
|
1411
|
-
this.__lqObservers = [obsLight, obsShadow].filter((o8) => !!o8);
|
|
1412
|
-
const fireInitial = async () => {
|
|
1413
|
-
if (options?.waitUntilFirstUpdate && "updateComplete" in this) {
|
|
1414
|
-
await this.updateComplete;
|
|
1415
|
-
}
|
|
1416
|
-
const initial = [
|
|
1417
|
-
...this.querySelectorAll(querySelector),
|
|
1418
|
-
...this.shadowRoot?.querySelectorAll(querySelector) ?? []
|
|
1419
|
-
];
|
|
1420
|
-
if (initial.length) handler.call(this, initial, []);
|
|
1421
|
-
};
|
|
1422
|
-
void fireInitial();
|
|
1423
|
-
};
|
|
1424
|
-
proto.disconnectedCallback = function() {
|
|
1425
|
-
disconnectedCallback.call(this);
|
|
1426
|
-
this.__lqObservers?.forEach((o8) => o8.disconnect());
|
|
1427
|
-
this.__lqObservers = void 0;
|
|
1428
|
-
};
|
|
1429
|
-
};
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
1375
|
// ../qti-utilities/src/decorators/watch.ts
|
|
1433
1376
|
function watch(propertyName, options) {
|
|
1434
1377
|
const resolvedOptions = {
|
|
@@ -2317,7 +2260,6 @@ export {
|
|
|
2317
2260
|
E,
|
|
2318
2261
|
W,
|
|
2319
2262
|
i4 as i2,
|
|
2320
|
-
liveQuery,
|
|
2321
2263
|
watch,
|
|
2322
2264
|
t5 as t2,
|
|
2323
2265
|
e7 as e3,
|
|
@@ -2408,4 +2350,4 @@ lit-html/node/directive-helpers.js:
|
|
|
2408
2350
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2409
2351
|
*)
|
|
2410
2352
|
*/
|
|
2411
|
-
//# sourceMappingURL=chunk-
|
|
2353
|
+
//# sourceMappingURL=chunk-TORB5UN2.js.map
|