@citolab/qti-components 7.0.6-beta.1 → 7.0.6-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/cdn/chunks/{chunk-FTKONGII.js → chunk-7XYBFL7U.js} +28 -28
- package/cdn/chunks/chunk-N5OHGRGG.js +8 -0
- package/cdn/chunks/chunk-NDHSIO2G.js +8 -0
- package/cdn/chunks/chunk-QV6I5NVQ.js +8 -0
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/dist/chunks/{chunk-DU37U6PW.js → chunk-K6ATVWMP.js} +21 -27
- package/dist/chunks/chunk-K6ATVWMP.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/qti-components/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/chunk-2V6LQV2K.js +0 -50
- package/dist/chunks/chunk-2V6LQV2K.js.map +0 -1
- package/dist/chunks/chunk-4WVLWWYJ.js +0 -50
- package/dist/chunks/chunk-4WVLWWYJ.js.map +0 -1
- package/dist/chunks/chunk-DU37U6PW.js.map +0 -1
- package/dist/chunks/chunk-O6WEZVEM.js +0 -43
- package/dist/chunks/chunk-O6WEZVEM.js.map +0 -1
package/cdn/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as eo,A as D,Aa as Eo,B as E,Ba as Fo,C as F,Ca as Go,D as G,Da as Ho,E as H,F as I,G as J,H as K,I as L,J as M,K as N,L as O,M as P,N as Q,O as R,P as S,Q as T,R as U,S as V,T as W,U as X,V as Y,W as Z,X as _,Y as $,Z as oo,_ as ro,a as o,aa as fo,b as m,ba as mo,c as p,ca as po,d as t,da as to,e as x,ea as xo,f as a,fa as ao,g as b,ga as bo,h as c,ha as co,i as d,ia as go,j as g,ja as ho,k as h,ka as io,l as i,la as jo,m as j,ma as ko,n as k,na as lo,o as l,oa as no,p as n,pa as qo,q,qa as so,r as s,ra as uo,s as u,sa as vo,t as v,ta as wo,u as w,ua as yo,v as y,va as zo,w as z,wa as Ao,x as A,xa as Bo,y as B,ya as Co,z as C,za as Do}from"./chunks/chunk-
|
|
1
|
+
import{$ as eo,A as D,Aa as Eo,B as E,Ba as Fo,C as F,Ca as Go,D as G,Da as Ho,E as H,F as I,G as J,H as K,I as L,J as M,K as N,L as O,M as P,N as Q,O as R,P as S,Q as T,R as U,S as V,T as W,U as X,V as Y,W as Z,X as _,Y as $,Z as oo,_ as ro,a as o,aa as fo,b as m,ba as mo,c as p,ca as po,d as t,da as to,e as x,ea as xo,f as a,fa as ao,g as b,ga as bo,h as c,ha as co,i as d,ia as go,j as g,ja as ho,k as h,ka as io,l as i,la as jo,m as j,ma as ko,n as k,na as lo,o as l,oa as no,p as n,pa as qo,q,qa as so,r as s,ra as uo,s as u,sa as vo,t as v,ta as wo,u as w,ua as yo,v as y,va as zo,w as z,wa as Ao,x as A,xa as Bo,y as B,ya as Co,z as C,za as Do}from"./chunks/chunk-7XYBFL7U.js";import{a as Yo,b as Zo}from"./chunks/chunk-4UJBK6JO.js";import{a as Wo,b as Xo}from"./chunks/chunk-TQBDBMWL.js";import{a as Io,b as Lo,c as Mo,d as No,e as Oo,f as Po}from"./chunks/chunk-DZCKF45D.js";import"./chunks/chunk-MJMONWKB.js";import"./chunks/chunk-5BR5CJFH.js";import{a as r,b as e,c as f}from"./chunks/chunk-5FCXUJAG.js";import"./chunks/chunk-3GO57DNP.js";import{a as Uo}from"./chunks/chunk-4WXQYE2P.js";import{a as Ro}from"./chunks/chunk-3V6LA7B3.js";import{a as Vo}from"./chunks/chunk-6S4CDN3T.js";import{a as So}from"./chunks/chunk-PKT2SJQD.js";import{a as To}from"./chunks/chunk-5P7CTN7Q.js";import{a as Qo}from"./chunks/chunk-IMJOPCFR.js";import"./chunks/chunk-EHK76KRT.js";import{a as Jo,b as Ko}from"./chunks/chunk-6MCYE7P5.js";import"./chunks/chunk-XUJ7TXHW.js";import"./chunks/chunk-L4CUWIE6.js";import"./chunks/chunk-R33OODNX.js";import"./chunks/chunk-KWPDTFYH.js";import"./chunks/chunk-RXKI3AO4.js";import"./chunks/chunk-X2KBNXRO.js";import"./chunks/chunk-5GCSZ3CH.js";import"./chunks/chunk-LZZB4VGC.js";import"./chunks/chunk-QQCGUVEV.js";import"./chunks/chunk-FRS2J3OS.js";import"./chunks/chunk-IAP2CEE7.js";export{Wo as ItemContainer,oo as QtiAnd,o as QtiAssessmentItem,Mo as QtiAssessmentItemRef,No as QtiAssessmentSection,m as QtiAssessmentStimulusRef,Oo as QtiAssessmentTest,c as QtiAssociableHotspot,d as QtiAssociateInteraction,eo as QtiBaseValue,g as QtiChoiceInteraction,p as QtiCompanionMaterialsInfo,fo as QtiContains,Do as QtiContentBody,mo as QtiCorrect,h as QtiCustomInteraction,t as QtiCustomOperator,i as QtiEndAttemptInteraction,to as QtiEqual,po as QtiEqualRounded,j as QtiExtendedTextInteraction,x as QtiFeedbackBlock,a as QtiFeedbackInline,q as QtiGap,k as QtiGapImg,l as QtiGapMatchInteraction,n as QtiGapText,s as QtiGraphicAssociateInteraction,u as QtiGraphicGapMatchInteraction,v as QtiGraphicOrderInteraction,xo as QtiGt,ao as QtiGte,w as QtiHotspotChoice,y as QtiHotspotInteraction,A as QtiHottext,z as QtiHottextInteraction,C as QtiInlineChoice,B as QtiInlineChoiceInteraction,bo as QtiIsNull,Xo as QtiItem,P as QtiItemBody,V as QtiLookupOutcomeValue,co as QtiLt,go as QtiLte,ho as QtiMapResponse,io as QtiMapping,jo as QtiMatch,E as QtiMatchInteraction,F as QtiMediaInteraction,ko as QtiMember,b as QtiModalFeedback,lo as QtiMultiple,no as QtiNot,qo as QtiOr,G as QtiOrderInteraction,so as QtiOrdered,Go as QtiOutcomeDeclaration,Q as QtiOutcomeProcessing,R as QtiOutcomeProcessingProcessor,H as QtiPortableCustomInteraction,I as QtiPositionObjectInteraction,J as QtiPositionObjectStage,uo as QtiPrintedVariable,vo as QtiProduct,S as QtiPrompt,W as QtiResponseCondition,Ho as QtiResponseDeclaration,Z as QtiResponseElse,$ as QtiResponseElseIf,_ as QtiResponseIf,T as QtiResponseProcessing,Eo as QtiRubricBlock,U as QtiRule,K as QtiSelectPointInteraction,X as QtiSetOutcomeValue,Y as QtiSetOutcomeValueRule,D as QtiSimpleAssociableChoice,L as QtiSimpleChoice,M as QtiSliderInteraction,zo as QtiStringMatch,Fo as QtiStylesheet,wo as QtiSubtract,Ao as QtiSum,Bo as QtiSumExpression,Lo as QtiTest,Po as QtiTestPart,N as QtiTextEntryInteraction,O as QtiUploadInteraction,Co as QtiVariable,Qo as TestComponent,Io as TestContainer,Uo as TestItemLink,Ro as TestNext,Vo as TestPagingButtonsStamp,So as TestPrev,To as TestView,Zo as getItemByUri,Yo as getManifestInfo,ro as qtiAndMixin,yo as qtiSubtractMixin,r as qtiTransformItem,e as qtiTransformManifest,f as qtiTransformTest,Jo as testContext,Ko as testElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A,Aa,B,Ba,C,Ca,D,Da,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,xa,y,ya,z,za}from"../chunks/chunk-
|
|
1
|
+
import{$,A,Aa,B,Ba,C,Ca,D,Da,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,_,a,aa,b,ba,c,ca,d,da,e,ea,f,fa,g,ga,h,ha,i,ia,j,ja,k,ka,l,la,m,ma,n,na,o,oa,p,pa,q,qa,r,ra,s,sa,t,ta,u,ua,v,va,w,wa,x,xa,y,ya,z,za}from"../chunks/chunk-7XYBFL7U.js";import"../chunks/chunk-5BR5CJFH.js";import"../chunks/chunk-5FCXUJAG.js";import"../chunks/chunk-EHK76KRT.js";import"../chunks/chunk-XUJ7TXHW.js";import"../chunks/chunk-R33OODNX.js";import"../chunks/chunk-KWPDTFYH.js";import"../chunks/chunk-RXKI3AO4.js";import"../chunks/chunk-X2KBNXRO.js";import"../chunks/chunk-5GCSZ3CH.js";import"../chunks/chunk-LZZB4VGC.js";import"../chunks/chunk-QQCGUVEV.js";import"../chunks/chunk-FRS2J3OS.js";import"../chunks/chunk-IAP2CEE7.js";export{Z as QtiAnd,a as QtiAssessmentItem,b as QtiAssessmentStimulusRef,h as QtiAssociableHotspot,i as QtiAssociateInteraction,$ as QtiBaseValue,j as QtiChoiceInteraction,c as QtiCompanionMaterialsInfo,aa as QtiContains,za as QtiContentBody,ba as QtiCorrect,k as QtiCustomInteraction,d as QtiCustomOperator,l as QtiEndAttemptInteraction,da as QtiEqual,ca as QtiEqualRounded,m as QtiExtendedTextInteraction,e as QtiFeedbackBlock,f as QtiFeedbackInline,q as QtiGap,n as QtiGapImg,o as QtiGapMatchInteraction,p as QtiGapText,r as QtiGraphicAssociateInteraction,s as QtiGraphicGapMatchInteraction,t as QtiGraphicOrderInteraction,ea as QtiGt,fa as QtiGte,u as QtiHotspotChoice,v as QtiHotspotInteraction,x as QtiHottext,w as QtiHottextInteraction,z as QtiInlineChoice,y as QtiInlineChoiceInteraction,ga as QtiIsNull,M as QtiItemBody,S as QtiLookupOutcomeValue,ha as QtiLt,ia as QtiLte,ja as QtiMapResponse,ka as QtiMapping,la as QtiMatch,B as QtiMatchInteraction,C as QtiMediaInteraction,ma as QtiMember,g as QtiModalFeedback,na as QtiMultiple,oa as QtiNot,pa as QtiOr,D as QtiOrderInteraction,qa as QtiOrdered,Ca as QtiOutcomeDeclaration,N as QtiOutcomeProcessing,O as QtiOutcomeProcessingProcessor,E as QtiPortableCustomInteraction,F as QtiPositionObjectInteraction,G as QtiPositionObjectStage,ra as QtiPrintedVariable,sa as QtiProduct,P as QtiPrompt,T as QtiResponseCondition,Da as QtiResponseDeclaration,W as QtiResponseElse,Y as QtiResponseElseIf,X as QtiResponseIf,Q as QtiResponseProcessing,Aa as QtiRubricBlock,R as QtiRule,H as QtiSelectPointInteraction,U as QtiSetOutcomeValue,V as QtiSetOutcomeValueRule,A as QtiSimpleAssociableChoice,I as QtiSimpleChoice,J as QtiSliderInteraction,va as QtiStringMatch,Ba as QtiStylesheet,ta as QtiSubtract,wa as QtiSum,xa as QtiSumExpression,K as QtiTextEntryInteraction,L as QtiUploadInteraction,ya as QtiVariable,_ as qtiAndMixin,ua as qtiSubtractMixin};
|
|
@@ -63,7 +63,10 @@ var QtiAssessmentItem = class extends LitElement {
|
|
|
63
63
|
});
|
|
64
64
|
this.addEventListener("qti-register-interaction", (e) => {
|
|
65
65
|
e.stopPropagation();
|
|
66
|
-
|
|
66
|
+
const composedPath = e.composedPath();
|
|
67
|
+
if (e.composedPath.length === 1) {
|
|
68
|
+
this._interactionElements.push(composedPath[0]);
|
|
69
|
+
}
|
|
67
70
|
});
|
|
68
71
|
this.addEventListener("end-attempt", (e) => {
|
|
69
72
|
const { responseIdentifier, countAttempt } = e.detail;
|
|
@@ -823,8 +826,6 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
823
826
|
this.draggables.forEach((draggable) => {
|
|
824
827
|
draggable.style.viewTransitionName = `drag-${index}-${this.getAttribute("identifier") || crypto.randomUUID()}`;
|
|
825
828
|
draggable.setAttribute("qti-draggable", "true");
|
|
826
|
-
draggable.addEventListener("dragstart", this.handleDragStart);
|
|
827
|
-
draggable.addEventListener("dragend", this.handleDragEnd);
|
|
828
829
|
index++;
|
|
829
830
|
});
|
|
830
831
|
};
|
|
@@ -848,27 +849,6 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
851
|
};
|
|
851
|
-
this.handleDragStart = (ev) => {
|
|
852
|
-
const target = ev.currentTarget;
|
|
853
|
-
ev.dataTransfer.setData("text", target.getAttribute("identifier"));
|
|
854
|
-
if (this.responseIdentifier) {
|
|
855
|
-
ev.dataTransfer.setData("responseIdentifier", this.responseIdentifier);
|
|
856
|
-
}
|
|
857
|
-
this._internals.states.add("--dragzone-enabled");
|
|
858
|
-
this._internals.states.add("--dragzone-active");
|
|
859
|
-
target.setAttribute("dragging", "");
|
|
860
|
-
this.activateDragLocation();
|
|
861
|
-
this.activateDroppables(target);
|
|
862
|
-
};
|
|
863
|
-
this.handleDragEnd = async (ev) => {
|
|
864
|
-
ev.preventDefault();
|
|
865
|
-
const draggable = ev.currentTarget;
|
|
866
|
-
this._internals.states.delete("--dragzone-enabled");
|
|
867
|
-
this._internals.states.delete("--dragzone-active");
|
|
868
|
-
this.deactivateDragLocation();
|
|
869
|
-
this.deactivateDroppables();
|
|
870
|
-
draggable.removeAttribute("dragging");
|
|
871
|
-
};
|
|
872
852
|
}
|
|
873
853
|
handleDraggableContainerChange(dragContainersAdded, dragContainersRemoved) {
|
|
874
854
|
if (this.isMatchTabular()) return;
|
|
@@ -1015,8 +995,12 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
1015
995
|
const dragContainers = this.dragContainers;
|
|
1016
996
|
dragContainers.forEach((d) => {
|
|
1017
997
|
d.removeAttribute("enabled");
|
|
998
|
+
d.removeAttribute("active");
|
|
999
|
+
});
|
|
1000
|
+
this.droppables.forEach((d) => {
|
|
1001
|
+
d.removeAttribute("enabled");
|
|
1002
|
+
d.removeAttribute("active");
|
|
1018
1003
|
});
|
|
1019
|
-
this.droppables.forEach((d) => d.removeAttribute("enabled"));
|
|
1020
1004
|
}
|
|
1021
1005
|
disconnectedCallback() {
|
|
1022
1006
|
super.disconnectedCallback();
|
|
@@ -1075,6 +1059,11 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
1075
1059
|
}
|
|
1076
1060
|
this._internals.states.delete("--dragzone-active");
|
|
1077
1061
|
this.checkAllMaxAssociations();
|
|
1062
|
+
this._internals.states.delete("--dragzone-enabled");
|
|
1063
|
+
this._internals.states.delete("--dragzone-active");
|
|
1064
|
+
this.deactivateDragLocation();
|
|
1065
|
+
this.deactivateDroppables();
|
|
1066
|
+
this.dragClone.removeAttribute("dragging");
|
|
1078
1067
|
e.preventDefault();
|
|
1079
1068
|
}
|
|
1080
1069
|
handleTouchCancel(_e) {
|
|
@@ -1342,6 +1331,11 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
1342
1331
|
this.dragSource = e.currentTarget;
|
|
1343
1332
|
this.isDraggable = true;
|
|
1344
1333
|
this.rootNode = this.dragSource.getRootNode();
|
|
1334
|
+
this._internals.states.add("--dragzone-enabled");
|
|
1335
|
+
this._internals.states.add("--dragzone-active");
|
|
1336
|
+
this.dragSource.setAttribute("dragging", "");
|
|
1337
|
+
this.activateDragLocation();
|
|
1338
|
+
this.activateDroppables(this.dragSource);
|
|
1345
1339
|
const draggableInDragContainer = this.findDraggableInDraggableContainer(
|
|
1346
1340
|
this.dragSource.getAttribute("identifier")
|
|
1347
1341
|
);
|
|
@@ -1397,7 +1391,7 @@ var DragDropInteractionMixin = (superClass, draggablesSelector, droppablesSelect
|
|
|
1397
1391
|
}
|
|
1398
1392
|
let elements;
|
|
1399
1393
|
if (container instanceof HTMLSlotElement) {
|
|
1400
|
-
elements = Array.from(container
|
|
1394
|
+
elements = Array.from(container?.assignedElements() || []);
|
|
1401
1395
|
} else {
|
|
1402
1396
|
elements = Array.from(container.querySelectorAll(draggablesSelector));
|
|
1403
1397
|
}
|
|
@@ -6094,4 +6088,4 @@ export {
|
|
|
6094
6088
|
QtiOutcomeDeclaration,
|
|
6095
6089
|
QtiResponseDeclaration
|
|
6096
6090
|
};
|
|
6097
|
-
//# sourceMappingURL=chunk-
|
|
6091
|
+
//# sourceMappingURL=chunk-K6ATVWMP.js.map
|