@citolab/qti-components 7.0.6-beta.1 → 7.0.6-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/cdn/chunks/{chunk-4WXQYE2P.js → chunk-N5OHGRGG.js} +1 -1
- package/cdn/chunks/{chunk-3V6LA7B3.js → chunk-NDHSIO2G.js} +1 -1
- package/cdn/chunks/{chunk-PKT2SJQD.js → chunk-QV6I5NVQ.js} +1 -1
- package/cdn/chunks/{chunk-FTKONGII.js → chunk-TVDTF6P6.js} +28 -28
- package/cdn/chunks/chunk-UJP4TGD3.js +1 -0
- package/cdn/exports/interaction.js +1 -1
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +1 -1
- package/cdn/qti-components/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/test-component.abstract.js +1 -1
- package/cdn/qti-test/components/test-item-link.js +1 -1
- package/cdn/qti-test/components/test-next.js +1 -1
- package/cdn/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-prev.js +1 -1
- package/cdn/qti-test/components/test-view.js +1 -1
- package/dist/chunks/{chunk-ZPNJ2HP5.js → chunk-OIRWOI3E.js} +2 -1
- package/dist/chunks/chunk-OIRWOI3E.js.map +1 -0
- package/dist/chunks/{chunk-DU37U6PW.js → chunk-ZHAJ3CMP.js} +25 -31
- package/dist/chunks/chunk-ZHAJ3CMP.js.map +1 -0
- package/dist/exports/interaction.js +1 -1
- package/dist/index.js +2 -2
- package/dist/qti-components/index.js +2 -2
- package/package.json +1 -1
- package/cdn/chunks/chunk-R33OODNX.js +0 -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/dist/chunks/chunk-ZPNJ2HP5.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{a as Io,b as Lo,c as Mo,d as No,e as Oo,f as Po}from"./chunks/chunk-DZCKF45D.js";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-TVDTF6P6.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"./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-N5OHGRGG.js";import{a as Ro}from"./chunks/chunk-NDHSIO2G.js";import{a as Vo}from"./chunks/chunk-6S4CDN3T.js";import{a as So}from"./chunks/chunk-QV6I5NVQ.js";import{a as To}from"./chunks/chunk-5P7CTN7Q.js";import"./chunks/chunk-L4CUWIE6.js";import{a as Qo}from"./chunks/chunk-IMJOPCFR.js";import{a as Jo,b as Ko}from"./chunks/chunk-6MCYE7P5.js";import"./chunks/chunk-EHK76KRT.js";import"./chunks/chunk-XUJ7TXHW.js";import"./chunks/chunk-UJP4TGD3.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-TVDTF6P6.js";import"../chunks/chunk-5BR5CJFH.js";import"../chunks/chunk-5FCXUJAG.js";import"../chunks/chunk-EHK76KRT.js";import"../chunks/chunk-XUJ7TXHW.js";import"../chunks/chunk-UJP4TGD3.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunks/chunk-3GO57DNP.js";import{a as e}from"../../chunks/chunk-
|
|
1
|
+
import"../../chunks/chunk-3GO57DNP.js";import{a as e}from"../../chunks/chunk-N5OHGRGG.js";import{a as b}from"../../chunks/chunk-NDHSIO2G.js";import{a as f}from"../../chunks/chunk-6S4CDN3T.js";import{a as c}from"../../chunks/chunk-QV6I5NVQ.js";import{a as d}from"../../chunks/chunk-5P7CTN7Q.js";import"../../chunks/chunk-L4CUWIE6.js";import{a}from"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestComponent,e as TestItemLink,b as TestNext,f as TestPagingButtonsStamp,c as TestPrev,d as TestView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-N5OHGRGG.js";import"../../chunks/chunk-L4CUWIE6.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestItemLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-NDHSIO2G.js";import"../../chunks/chunk-L4CUWIE6.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestNext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-6S4CDN3T.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-6S4CDN3T.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestPagingButtonsStamp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-QV6I5NVQ.js";import"../../chunks/chunk-L4CUWIE6.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestPrev};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-5P7CTN7Q.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-5P7CTN7Q.js";import"../../chunks/chunk-IMJOPCFR.js";import"../../chunks/chunk-6MCYE7P5.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-5GCSZ3CH.js";import"../../chunks/chunk-LZZB4VGC.js";import"../../chunks/chunk-FRS2J3OS.js";import"../../chunks/chunk-IAP2CEE7.js";export{a as TestView};
|
|
@@ -32,6 +32,7 @@ var Interaction = class extends LitElement {
|
|
|
32
32
|
composed: true,
|
|
33
33
|
cancelable: false,
|
|
34
34
|
detail: {
|
|
35
|
+
interactionElement: this,
|
|
35
36
|
responseIdentifier: this.responseIdentifier
|
|
36
37
|
}
|
|
37
38
|
})
|
|
@@ -68,4 +69,4 @@ __decorateClass([
|
|
|
68
69
|
export {
|
|
69
70
|
Interaction
|
|
70
71
|
};
|
|
71
|
-
//# sourceMappingURL=chunk-
|
|
72
|
+
//# sourceMappingURL=chunk-OIRWOI3E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/exports/interaction.ts"],"sourcesContent":["import { property, state } from 'lit/decorators.js';\nimport { LitElement } from 'lit';\nimport type { IInteraction } from './interaction.interface';\n\nexport abstract class Interaction extends LitElement implements IInteraction {\n static formAssociated = true;\n\n @property({ type: String, attribute: 'response-identifier' }) responseIdentifier;\n\n @property({ reflect: true, type: Boolean }) disabled = false;\n\n @property({ reflect: true, type: Boolean }) readonly = false;\n\n @state()\n protected _correctResponse: string | string[];\n protected _internals: ElementInternals;\n\n constructor() {\n super();\n this._internals = this.attachInternals();\n }\n\n abstract validate(): boolean;\n\n public reportValidity(): boolean {\n return this._internals.reportValidity();\n }\n\n public reset(): void {\n this.value = '';\n }\n\n abstract get value(): string | string[] | null;\n abstract set value(val: string | string[] | null);\n\n public get correctResponse(): string | string[] {\n return this._correctResponse;\n }\n set correctResponse(value: string | string[]) {\n this._correctResponse = value;\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n\n this.dispatchEvent(\n new CustomEvent('qti-register-interaction', {\n bubbles: true,\n composed: true,\n cancelable: false,\n detail: {\n interactionElement: this,\n responseIdentifier: this.responseIdentifier\n }\n })\n );\n }\n\n public saveResponse(value: string | string[]) {\n this.dispatchEvent(\n new CustomEvent('qti-interaction-response', {\n bubbles: true,\n composed: true,\n cancelable: false,\n detail: {\n responseIdentifier: this.responseIdentifier,\n response: Array.isArray(value) ? [...value] : value\n }\n })\n );\n }\n}\n"],"mappings":";;;;;AAAA,SAAS,UAAU,aAAa;AAChC,SAAS,kBAAkB;AAGpB,IAAe,cAAf,cAAmC,WAAmC;AAAA,EAa3E,cAAc;AACZ,UAAM;AAToC,oBAAW;AAEX,oBAAW;AAQrD,SAAK,aAAa,KAAK,gBAAgB;AAAA,EACzC;AAAA,EAIO,iBAA0B;AAC/B,WAAO,KAAK,WAAW,eAAe;AAAA,EACxC;AAAA,EAEO,QAAc;AACnB,SAAK,QAAQ;AAAA,EACf;AAAA,EAKA,IAAW,kBAAqC;AAC9C,WAAO,KAAK;AAAA,EACd;AAAA,EACA,IAAI,gBAAgB,OAA0B;AAC5C,SAAK,mBAAmB;AAAA,EAC1B;AAAA,EAEgB,oBAAoB;AAClC,UAAM,kBAAkB;AAExB,SAAK;AAAA,MACH,IAAI,YAAY,4BAA4B;AAAA,QAC1C,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,QAAQ;AAAA,UACN,oBAAoB;AAAA,UACpB,oBAAoB,KAAK;AAAA,QAC3B;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEO,aAAa,OAA0B;AAC5C,SAAK;AAAA,MACH,IAAI,YAAY,4BAA4B;AAAA,QAC1C,SAAS;AAAA,QACT,UAAU;AAAA,QACV,YAAY;AAAA,QACZ,QAAQ;AAAA,UACN,oBAAoB,KAAK;AAAA,UACzB,UAAU,MAAM,QAAQ,KAAK,IAAI,CAAC,GAAG,KAAK,IAAI;AAAA,QAChD;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AACF;AAnEsB,YACb,iBAAiB;AAEsC;AAAA,EAA7D,SAAS,EAAE,MAAM,QAAQ,WAAW,sBAAsB,CAAC;AAAA,GAHxC,YAG0C;AAElB;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GALtB,YAKwB;AAEA;AAAA,EAA3C,SAAS,EAAE,SAAS,MAAM,MAAM,QAAQ,CAAC;AAAA,GAPtB,YAOwB;AAGlC;AAAA,EADT,MAAM;AAAA,GATa,YAUV;","names":[]}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-ELDMXTUQ.js";
|
|
10
10
|
import {
|
|
11
11
|
Interaction
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OIRWOI3E.js";
|
|
13
13
|
import {
|
|
14
14
|
itemContextVariables
|
|
15
15
|
} from "./chunk-DLUJN2FW.js";
|
|
@@ -61,10 +61,13 @@ var QtiAssessmentItem = class extends LitElement {
|
|
|
61
61
|
feedbackElement.checkShowFeedback(feedbackElement.outcomeIdentifier);
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
|
-
this.addEventListener(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
this.addEventListener(
|
|
65
|
+
"qti-register-interaction",
|
|
66
|
+
(e) => {
|
|
67
|
+
e.stopPropagation();
|
|
68
|
+
this._interactionElements.push(e.detail.interactionElement);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
68
71
|
this.addEventListener("end-attempt", (e) => {
|
|
69
72
|
const { responseIdentifier, countAttempt } = e.detail;
|
|
70
73
|
this.validate();
|
|
@@ -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-ZHAJ3CMP.js.map
|