@citolab/qti-components 7.3.5 → 7.3.7
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-2VU43EIZ.js +8 -0
- package/cdn/chunks/chunk-2WJEB7LD.js +1 -0
- package/cdn/chunks/chunk-34G25RYG.js +8 -0
- package/cdn/chunks/chunk-7543U7PC.js +1 -0
- package/cdn/chunks/chunk-A73O6JDN.js +5 -0
- package/cdn/chunks/chunk-AV6ISYP4.js +41 -0
- package/cdn/chunks/chunk-AYRVSFDB.js +1 -0
- package/cdn/chunks/chunk-BJRPEBBQ.js +1 -0
- package/cdn/chunks/chunk-C3UTBQLI.js +8 -0
- package/cdn/chunks/chunk-CHA2MSUC.js +1 -0
- package/cdn/chunks/chunk-D5X3UG54.js +1 -0
- package/cdn/chunks/chunk-DS3TJWSG.js +8 -0
- package/cdn/chunks/chunk-FTIKZVQS.js +0 -0
- package/cdn/chunks/chunk-GHYJJLM6.js +5 -0
- package/cdn/chunks/chunk-H5VQY4UD.js +1 -0
- package/cdn/chunks/chunk-IYTC7IL7.js +48 -0
- package/cdn/chunks/chunk-JB5OTSUJ.js +1 -0
- package/cdn/chunks/chunk-JR322KXH.js +1 -0
- package/cdn/chunks/chunk-JYB6NVDN.js +1 -0
- package/cdn/chunks/chunk-LXJSKVMQ.js +6 -0
- package/cdn/chunks/chunk-NN2AW26H.js +5 -0
- package/cdn/chunks/chunk-ONSO5XEG.js +1464 -0
- package/cdn/chunks/chunk-PMW5NIBL.js +8 -0
- package/cdn/chunks/chunk-Q54YYIH7.js +8 -0
- package/cdn/chunks/chunk-QIEEN6C7.js +8 -0
- package/cdn/chunks/chunk-RALUW4CJ.js +5 -0
- package/cdn/chunks/chunk-RTHQAQWR.js +2 -0
- package/cdn/chunks/chunk-SB62LFF7.js +10 -0
- package/cdn/chunks/chunk-TI7HI3OS.js +1464 -0
- package/cdn/chunks/chunk-VWTYL7A3.js +48 -0
- package/cdn/chunks/chunk-W4QXZT2Y.js +8 -0
- package/cdn/chunks/chunk-YNBLRM6A.js +1 -0
- package/cdn/chunks/chunk-ZPQBCZQ2.js +3589 -0
- package/cdn/exports/computed-item.context.js +1 -1
- package/cdn/exports/computed.context.js +1 -1
- package/cdn/exports/config.context.js +1 -1
- package/cdn/exports/interaction.js +1 -1
- package/cdn/exports/item.context.js +1 -1
- package/cdn/exports/qti-assessment-item.context.js +1 -1
- package/cdn/exports/qti-condition-expression.js +1 -1
- package/cdn/exports/qti-expression.js +1 -1
- package/cdn/exports/session.context.js +1 -1
- package/cdn/exports/test.context.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-item/components/item-container.js +1 -1
- package/cdn/qti-item/components/item-show-correct-response.js +1 -1
- package/cdn/qti-item/components/print-item-variables.js +1 -1
- package/cdn/qti-item/components/styles.js +1 -1
- package/cdn/qti-item/core/index.js +1 -1
- package/cdn/qti-loader/index.js +1 -1
- package/cdn/qti-test/components/index.js +1 -1
- package/cdn/qti-test/components/styles.js +1 -1
- package/cdn/qti-test/components/test-check-item.js +1 -1
- package/cdn/qti-test/components/test-container.js +1 -1
- package/cdn/qti-test/components/test-end-attempt.js +1 -1
- package/cdn/qti-test/components/test-item-link.js +1 -1
- package/cdn/qti-test/components/test-navigation.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-print-context.js +1 -1
- package/cdn/qti-test/components/test-print-item-variables.js +1 -1
- package/cdn/qti-test/components/test-scoring-buttons.js +1 -1
- package/cdn/qti-test/components/test-scoring-feedback.js +1 -1
- package/cdn/qti-test/components/test-section-buttons-stamp.js +1 -1
- package/cdn/qti-test/components/test-section-link.js +1 -1
- package/cdn/qti-test/components/test-show-correct-response.js +1 -1
- package/cdn/qti-test/components/test-stamp.js +1 -1
- package/cdn/qti-test/components/test-view-toggle.js +1 -1
- package/cdn/qti-test/components/test-view.js +1 -1
- package/cdn/qti-test/core/index.js +1 -1
- package/cdn/qti-transformers/index.js +1 -1
- package/dist/chunks/chunk-3TX2EBTU.js +94 -0
- package/dist/chunks/chunk-3TX2EBTU.js.map +1 -0
- package/dist/chunks/chunk-7K44TDQO.js +91 -0
- package/dist/chunks/chunk-7K44TDQO.js.map +1 -0
- package/dist/chunks/chunk-AZJR5HSV.js +7960 -0
- package/dist/chunks/chunk-AZJR5HSV.js.map +1 -0
- package/dist/chunks/chunk-B3C3IFYR.js +7960 -0
- package/dist/chunks/chunk-B3C3IFYR.js.map +1 -0
- package/dist/chunks/chunk-BV2QSR2N.js +3 -0
- package/dist/chunks/chunk-BV2QSR2N.js.map +1 -0
- package/dist/chunks/chunk-CP34TICQ.js +45 -0
- package/dist/chunks/chunk-CP34TICQ.js.map +1 -0
- package/dist/chunks/chunk-EMVOKXSA.js +84 -0
- package/dist/chunks/chunk-EMVOKXSA.js.map +1 -0
- package/dist/chunks/chunk-GAHXUFMQ.js +93 -0
- package/dist/chunks/chunk-GAHXUFMQ.js.map +1 -0
- package/dist/chunks/chunk-GRQYHS5X.js +269 -0
- package/dist/chunks/chunk-GRQYHS5X.js.map +1 -0
- package/dist/chunks/chunk-KSXNC564.js +43 -0
- package/dist/chunks/chunk-KSXNC564.js.map +1 -0
- package/dist/chunks/chunk-LNL2LY75.js +94 -0
- package/dist/chunks/chunk-LNL2LY75.js.map +1 -0
- package/dist/chunks/chunk-NBCXOMMU.js +887 -0
- package/dist/chunks/chunk-NBCXOMMU.js.map +1 -0
- package/dist/chunks/chunk-NJ26K2SA.js +3579 -0
- package/dist/chunks/chunk-NJ26K2SA.js.map +1 -0
- package/dist/chunks/chunk-TUKEQ36K.js +60 -0
- package/dist/chunks/chunk-TUKEQ36K.js.map +1 -0
- package/dist/chunks/chunk-VVXIAK5M.js +82 -0
- package/dist/chunks/chunk-VVXIAK5M.js.map +1 -0
- package/dist/chunks/chunk-YKLITOZB.js +887 -0
- package/dist/chunks/chunk-YKLITOZB.js.map +1 -0
- package/dist/exports/computed.context.d.ts +2 -2
- package/dist/exports/session.context.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -13
- package/dist/item.css +0 -3
- package/dist/qti-components/index.js +2 -1
- package/dist/qti-components-jsx.d.ts +4 -8
- package/dist/qti-item/components/item-container.js +2 -2
- package/dist/qti-item/core/index.js +2 -2
- package/dist/qti-test/components/index.d.ts +2 -2
- package/dist/qti-test/components/index.js +12 -10
- package/dist/qti-test/components/test-container.js +2 -2
- package/dist/qti-test/components/test-navigation.d.ts +2 -2
- package/dist/qti-test/components/test-navigation.js +1 -1
- package/dist/qti-test/components/test-next.d.ts +18 -15
- package/dist/qti-test/components/test-next.js +4 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-paging-buttons-stamp.js +1 -1
- package/dist/qti-test/components/test-prev.d.ts +19 -18
- package/dist/qti-test/components/test-prev.js +4 -1
- package/dist/qti-test/components/test-print-context.d.ts +2 -2
- package/dist/qti-test/components/test-print-item-variables.d.ts +2 -2
- package/dist/qti-test/components/test-scoring-buttons.d.ts +2 -2
- package/dist/qti-test/components/test-scoring-buttons.js +1 -1
- package/dist/qti-test/components/test-scoring-feedback.d.ts +2 -2
- package/dist/qti-test/components/test-section-buttons-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-section-buttons-stamp.js +1 -1
- package/dist/qti-test/components/test-show-correct-response.d.ts +2 -2
- package/dist/qti-test/components/test-stamp.d.ts +1 -1
- package/dist/qti-test/components/test-stamp.js +1 -1
- package/dist/qti-test/components/test-view-toggle.js +1 -1
- package/dist/qti-test/core/index.d.ts +3 -3
- package/dist/qti-test/core/index.js +3 -2
- package/dist/qti-test-feedback-DCZDtUuH.d.ts +85 -0
- package/dist/vscode.html-custom-data.json +4 -16
- package/package.json +3 -3
package/cdn/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as Mo,b as No,c as Oo,d as Po,e as Qo,f as Ro}from"./chunks/chunk-GHYJJLM6.js";import{a as dr}from"./chunks/chunk-JYB6NVDN.js";import{a as ar}from"./chunks/chunk-RALUW4CJ.js";import{a as cr}from"./chunks/chunk-C3UTBQLI.js";import{a as br}from"./chunks/chunk-VWTYL7A3.js";import"./chunks/chunk-TC54XTRL.js";import"./chunks/chunk-PUI3LIFH.js";import{a as pr}from"./chunks/chunk-BJRPEBBQ.js";import{a as Vo}from"./chunks/chunk-SB62LFF7.js";import{a as er}from"./chunks/chunk-H5VQY4UD.js";import{a as $o}from"./chunks/chunk-IYTC7IL7.js";import{a as mr}from"./chunks/chunk-JB5OTSUJ.js";import{a as tr}from"./chunks/chunk-AYRVSFDB.js";import{a as or}from"./chunks/chunk-7543U7PC.js";import{a as rr}from"./chunks/chunk-34G25RYG.js";import{a as Yo}from"./chunks/chunk-PMW5NIBL.js";import{a as fr}from"./chunks/chunk-RTHQAQWR.js";import{a as xr}from"./chunks/chunk-Q54YYIH7.js";import{a as _o}from"./chunks/chunk-A73O6JDN.js";import{a as Xo}from"./chunks/chunk-QIEEN6C7.js";import{a as Wo}from"./chunks/chunk-2VU43EIZ.js";import{a as So}from"./chunks/chunk-CHA2MSUC.js";import{a as To}from"./chunks/chunk-DS3TJWSG.js";import{a as Zo}from"./chunks/chunk-YNBLRM6A.js";import"./chunks/chunk-AV6ISYP4.js";import{a as Uo}from"./chunks/chunk-W4QXZT2Y.js";import"./chunks/chunk-FTIKZVQS.js";import"./chunks/chunk-ZPQBCZQ2.js";import"./chunks/chunk-U5Y5T4ZS.js";import"./chunks/chunk-CZDMOYYF.js";import{a as Ko,b as Lo}from"./chunks/chunk-QQR6POPY.js";import{a as gr,b as hr}from"./chunks/chunk-4VDQDT6F.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,Ea as Io,F as I,Fa as Jo,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-ONSO5XEG.js";import"./chunks/chunk-EHK76KRT.js";import"./chunks/chunk-6BGG2JJR.js";import"./chunks/chunk-XUJ7TXHW.js";import"./chunks/chunk-KWPDTFYH.js";import"./chunks/chunk-2WJEB7LD.js";import"./chunks/chunk-LXJSKVMQ.js";import"./chunks/chunk-QQCGUVEV.js";import{a as r,b as e,c as f}from"./chunks/chunk-ULI6NOVG.js";import"./chunks/chunk-TCHROQU3.js";import"./chunks/chunk-P6SSTAJ2.js";import"./chunks/chunk-7WJYJA45.js";import"./chunks/chunk-D5X3UG54.js";import"./chunks/chunk-42P7F3FC.js";import"./chunks/chunk-65CZNGQC.js";import"./chunks/chunk-JR322KXH.js";export{Ko as INITIAL_TEST_CONTEXT,ar as ItemContainer,cr as ItemShowCorrectResponse,br as PrintItemVariables,oo as QtiAnd,o as QtiAssessmentItem,No as QtiAssessmentItemRef,Oo as QtiAssessmentSection,m as QtiAssessmentStimulusRef,Po as QtiAssessmentTest,c as QtiAssociableHotspot,d as QtiAssociateInteraction,eo as QtiBaseValue,g as QtiChoiceInteraction,p as QtiCompanionMaterialsInfo,fo as QtiContains,Fo as QtiContentBody,mo as QtiCorrect,h as QtiCustomInteraction,t as QtiCustomOperator,Eo as QtiDelete,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,dr as QtiItem,P as QtiItemBody,V as QtiLookupOutcomeValue,co as QtiLt,go as QtiLte,ho as QtiMapResponse,io as QtiMapResponsePoint,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,Io 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,Do as QtiRandom,W as QtiResponseCondition,Jo as QtiResponseDeclaration,Z as QtiResponseElse,$ as QtiResponseElseIf,_ as QtiResponseIf,T as QtiResponseProcessing,Go 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,Ho as QtiStylesheet,wo as QtiSubtract,Ao as QtiSum,Bo as QtiSumExpression,Mo as QtiTest,Ro as QtiTestFeedback,Qo as QtiTestPart,N as QtiTextEntryInteraction,O as QtiUploadInteraction,Co as QtiVariable,xr as TestCheckItem,_o as TestContainer,Xo as TestEndAttempt,Wo as TestItemLink,So as TestNavigation,To as TestNext,Zo as TestPagingButtonsStamp,Uo as TestPrev,er as TestPrintContext,$o as TestPrintVariables,mr as TestScoringButtons,tr as TestScoringFeedback,or as TestSectionButtonsStamp,rr as TestSectionLink,Yo as TestShowCorrectResponse,fr as TestStamp,Vo as TestView,pr as TestViewToggle,hr as getItemByUri,gr as getManifestInfo,ro as qtiAndMixin,yo as qtiSubtractMixin,r as qtiTransformItem,e as qtiTransformManifest,f as qtiTransformTest,Lo as testContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$,A,Aa,B,Ba,C,Ca,D,Da,E,Ea,F,Fa,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,Ea,F,Fa,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-ONSO5XEG.js";import"../chunks/chunk-EHK76KRT.js";import"../chunks/chunk-6BGG2JJR.js";import"../chunks/chunk-XUJ7TXHW.js";import"../chunks/chunk-KWPDTFYH.js";import"../chunks/chunk-2WJEB7LD.js";import"../chunks/chunk-LXJSKVMQ.js";import"../chunks/chunk-QQCGUVEV.js";import"../chunks/chunk-ULI6NOVG.js";import"../chunks/chunk-7WJYJA45.js";import"../chunks/chunk-D5X3UG54.js";import"../chunks/chunk-42P7F3FC.js";import"../chunks/chunk-65CZNGQC.js";import"../chunks/chunk-JR322KXH.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,Ba as QtiContentBody,ba as QtiCorrect,k as QtiCustomInteraction,d as QtiCustomOperator,Aa as QtiDelete,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 QtiMapResponsePoint,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,Ea 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,za as QtiRandom,T as QtiResponseCondition,Fa as QtiResponseDeclaration,W as QtiResponseElse,Y as QtiResponseElseIf,X as QtiResponseIf,Q as QtiResponseProcessing,Ca 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,Da 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{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-RALUW4CJ.js";import"../../chunks/chunk-ZPQBCZQ2.js";import"../../chunks/chunk-6BGG2JJR.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-ULI6NOVG.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as ItemContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-C3UTBQLI.js";import"../../chunks/chunk-TC54XTRL.js";import"../../chunks/chunk-TCHROQU3.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as ItemShowCorrectResponse};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-VWTYL7A3.js";import"../../chunks/chunk-TCHROQU3.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as PrintItemVariables};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunks/chunk-TC54XTRL.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunks/chunk-TC54XTRL.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{b as btn,c as dis,a as form,d as ind};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"../../chunks/chunk-
|
|
1
|
+
import{a as d}from"../../chunks/chunk-JYB6NVDN.js";import{a}from"../../chunks/chunk-RALUW4CJ.js";import{a as c}from"../../chunks/chunk-C3UTBQLI.js";import{a as b}from"../../chunks/chunk-VWTYL7A3.js";import"../../chunks/chunk-TC54XTRL.js";import"../../chunks/chunk-ZPQBCZQ2.js";import"../../chunks/chunk-6BGG2JJR.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-ULI6NOVG.js";import"../../chunks/chunk-TCHROQU3.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as ItemContainer,c as ItemShowCorrectResponse,b as PrintItemVariables,d as QtiItem};
|
package/cdn/qti-loader/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunks/chunk-4VDQDT6F.js";import"../chunks/chunk-ULI6NOVG.js";import"../chunks/chunk-
|
|
1
|
+
import{a,b}from"../chunks/chunk-4VDQDT6F.js";import"../chunks/chunk-ULI6NOVG.js";import"../chunks/chunk-JR322KXH.js";export{b as getItemByUri,a as getManifestInfo};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunks/chunk-PUI3LIFH.js";import{a as
|
|
1
|
+
import"../../chunks/chunk-PUI3LIFH.js";import{a as p}from"../../chunks/chunk-BJRPEBBQ.js";import{a as d}from"../../chunks/chunk-SB62LFF7.js";import{a as m}from"../../chunks/chunk-H5VQY4UD.js";import{a as j}from"../../chunks/chunk-IYTC7IL7.js";import{a as o}from"../../chunks/chunk-JB5OTSUJ.js";import{a as q}from"../../chunks/chunk-AYRVSFDB.js";import{a as k}from"../../chunks/chunk-7543U7PC.js";import{a as l}from"../../chunks/chunk-34G25RYG.js";import{a as g}from"../../chunks/chunk-PMW5NIBL.js";import{a as n}from"../../chunks/chunk-RTHQAQWR.js";import{a as r}from"../../chunks/chunk-Q54YYIH7.js";import{a as i}from"../../chunks/chunk-A73O6JDN.js";import{a as f}from"../../chunks/chunk-QIEEN6C7.js";import{a as e}from"../../chunks/chunk-2VU43EIZ.js";import{a}from"../../chunks/chunk-CHA2MSUC.js";import{a as b}from"../../chunks/chunk-DS3TJWSG.js";import{a as h}from"../../chunks/chunk-YNBLRM6A.js";import"../../chunks/chunk-AV6ISYP4.js";import{a as c}from"../../chunks/chunk-W4QXZT2Y.js";import"../../chunks/chunk-FTIKZVQS.js";import"../../chunks/chunk-ZPQBCZQ2.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-CZDMOYYF.js";import"../../chunks/chunk-QQR6POPY.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-6BGG2JJR.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-ULI6NOVG.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{r as TestCheckItem,i as TestContainer,f as TestEndAttempt,e as TestItemLink,a as TestNavigation,b as TestNext,h as TestPagingButtonsStamp,c as TestPrev,m as TestPrintContext,j as TestPrintVariables,o as TestScoringButtons,q as TestScoringFeedback,k as TestSectionButtonsStamp,l as TestSectionLink,g as TestShowCorrectResponse,n as TestStamp,d as TestView,p as TestViewToggle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{b as btn,c as dis,a as form,d as ind};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-Q54YYIH7.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestCheckItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-A73O6JDN.js";import"../../chunks/chunk-ZPQBCZQ2.js";import"../../chunks/chunk-6BGG2JJR.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-ULI6NOVG.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-QIEEN6C7.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestEndAttempt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-2VU43EIZ.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestItemLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-CHA2MSUC.js";import"../../chunks/chunk-CZDMOYYF.js";import"../../chunks/chunk-QQR6POPY.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestNavigation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-DS3TJWSG.js";import"../../chunks/chunk-FTIKZVQS.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestNext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-YNBLRM6A.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestPagingButtonsStamp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-W4QXZT2Y.js";import"../../chunks/chunk-FTIKZVQS.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestPrev};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-H5VQY4UD.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestPrintContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-IYTC7IL7.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestPrintVariables};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-JB5OTSUJ.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestScoringButtons};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-AYRVSFDB.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestScoringFeedback};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-7543U7PC.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestSectionButtonsStamp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-34G25RYG.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestSectionLink};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-PMW5NIBL.js";import"../../chunks/chunk-U5Y5T4ZS.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestShowCorrectResponse};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-RTHQAQWR.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-P6SSTAJ2.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestStamp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-BJRPEBBQ.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-CZDMOYYF.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestViewToggle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunks/chunk-
|
|
1
|
+
import{a}from"../../chunks/chunk-SB62LFF7.js";import"../../chunks/chunk-CZDMOYYF.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as TestView};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,b as d,c as e,d as f,e as g,f as h}from"../../chunks/chunk-
|
|
1
|
+
import{a as c,b as d,c as e,d as f,e as g,f as h}from"../../chunks/chunk-GHYJJLM6.js";import"../../chunks/chunk-AV6ISYP4.js";import"../../chunks/chunk-CZDMOYYF.js";import{a,b}from"../../chunks/chunk-QQR6POPY.js";import"../../chunks/chunk-ONSO5XEG.js";import"../../chunks/chunk-EHK76KRT.js";import"../../chunks/chunk-6BGG2JJR.js";import"../../chunks/chunk-XUJ7TXHW.js";import"../../chunks/chunk-KWPDTFYH.js";import"../../chunks/chunk-2WJEB7LD.js";import"../../chunks/chunk-LXJSKVMQ.js";import"../../chunks/chunk-QQCGUVEV.js";import"../../chunks/chunk-ULI6NOVG.js";import"../../chunks/chunk-7WJYJA45.js";import"../../chunks/chunk-D5X3UG54.js";import"../../chunks/chunk-42P7F3FC.js";import"../../chunks/chunk-65CZNGQC.js";import"../../chunks/chunk-JR322KXH.js";export{a as INITIAL_TEST_CONTEXT,d as QtiAssessmentItemRef,e as QtiAssessmentSection,f as QtiAssessmentTest,c as QtiTest,h as QtiTestFeedback,g as QtiTestPart,b as testContext};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunks/chunk-ULI6NOVG.js";import"../chunks/chunk-
|
|
1
|
+
import{a,b,c}from"../chunks/chunk-ULI6NOVG.js";import"../chunks/chunk-JR322KXH.js";export{a as qtiTransformItem,b as qtiTransformManifest,c as qtiTransformTest};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {
|
|
2
|
+
item_default
|
|
3
|
+
} from "./chunk-NJ26K2SA.js";
|
|
4
|
+
import {
|
|
5
|
+
watch
|
|
6
|
+
} from "./chunk-ELDMXTUQ.js";
|
|
7
|
+
import {
|
|
8
|
+
qtiTransformTest
|
|
9
|
+
} from "./chunk-VEWD22O5.js";
|
|
10
|
+
import {
|
|
11
|
+
__decorateClass
|
|
12
|
+
} from "./chunk-H2JE6IVU.js";
|
|
13
|
+
|
|
14
|
+
// src/lib/qti-test/components/test-container.ts
|
|
15
|
+
import { LitElement, html } from "lit";
|
|
16
|
+
import { customElement, property, state } from "lit/decorators.js";
|
|
17
|
+
import { until } from "lit/directives/until.js";
|
|
18
|
+
var TestContainer = class extends LitElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.testURL = null;
|
|
22
|
+
this.testDoc = null;
|
|
23
|
+
this.testXML = null;
|
|
24
|
+
/** Template content if provided */
|
|
25
|
+
this.templateContent = null;
|
|
26
|
+
}
|
|
27
|
+
async handleTestURLChange() {
|
|
28
|
+
if (!this.testURL) return;
|
|
29
|
+
try {
|
|
30
|
+
const api = await qtiTransformTest().load(this.testURL);
|
|
31
|
+
this.testDoc = api.htmlDoc();
|
|
32
|
+
} catch (error) {
|
|
33
|
+
console.error("Error loading or parsing XML:", error);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
handleTestXMLChange() {
|
|
37
|
+
if (!this.testXML) return;
|
|
38
|
+
try {
|
|
39
|
+
this.testDoc = qtiTransformTest().parse(this.testXML).htmlDoc();
|
|
40
|
+
} catch (error) {
|
|
41
|
+
console.error("Error parsing XML:", error);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
async connectedCallback() {
|
|
45
|
+
super.connectedCallback();
|
|
46
|
+
this.initializeTemplateContent();
|
|
47
|
+
this.applyStyles();
|
|
48
|
+
if (this.testURL) {
|
|
49
|
+
this.handleTestURLChange();
|
|
50
|
+
}
|
|
51
|
+
if (this.testXML) {
|
|
52
|
+
this.handleTestXMLChange();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
initializeTemplateContent() {
|
|
56
|
+
const template = this.querySelector("template");
|
|
57
|
+
this.templateContent = template ? template.content : html``;
|
|
58
|
+
}
|
|
59
|
+
applyStyles() {
|
|
60
|
+
const sheet = new CSSStyleSheet();
|
|
61
|
+
sheet.replaceSync(item_default);
|
|
62
|
+
this.shadowRoot.adoptedStyleSheets = [sheet];
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
return html`
|
|
66
|
+
${this.templateContent}
|
|
67
|
+
<slot></slot>
|
|
68
|
+
${until(this.testDoc, html`<span>Loading...</span>`)}
|
|
69
|
+
`;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
__decorateClass([
|
|
73
|
+
property({ type: String, attribute: "test-url" })
|
|
74
|
+
], TestContainer.prototype, "testURL", 2);
|
|
75
|
+
__decorateClass([
|
|
76
|
+
state()
|
|
77
|
+
], TestContainer.prototype, "testDoc", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
state()
|
|
80
|
+
], TestContainer.prototype, "testXML", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
watch("testURL", { waitUntilFirstUpdate: true })
|
|
83
|
+
], TestContainer.prototype, "handleTestURLChange", 1);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
watch("testXML", { waitUntilFirstUpdate: true })
|
|
86
|
+
], TestContainer.prototype, "handleTestXMLChange", 1);
|
|
87
|
+
TestContainer = __decorateClass([
|
|
88
|
+
customElement("test-container")
|
|
89
|
+
], TestContainer);
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
TestContainer
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=chunk-3TX2EBTU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/components/test-container.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { until } from 'lit/directives/until.js';\n\nimport { watch } from '../../decorators/watch';\nimport itemCss from '../../../item.css?inline';\nimport { qtiTransformTest } from '../../qti-transformers';\n\n/**\n * `<test-container>` is a custom element designed for hosting the qti-assessment-item.\n * The `qti-assessment-test` will be placed inside the shadow DOM of this element.\n * The element loads the test from the provided URL and renders it inside the shadow DOM.\n *\n * ```html\n * <qti-test>\n * <test-navigation>\n * <test-container class=\"m-4 bg-white\" test-url=\"./path/to/assessmenttest.xml\"></test-container>\n * </test-navigation>\n * </qti-test>\n * ```\n */\n@customElement('test-container')\nexport class TestContainer extends LitElement {\n /** URL of the item to load */\n @property({ type: String, attribute: 'test-url' })\n testURL: string = null;\n\n /** A parsed HTML document */\n @state()\n testDoc: DocumentFragment = null;\n\n /** The raw XML string */\n @state()\n testXML: string = null;\n\n /** Template content if provided */\n private templateContent = null;\n\n @watch('testURL', { waitUntilFirstUpdate: true })\n protected async handleTestURLChange() {\n if (!this.testURL) return;\n try {\n const api = await qtiTransformTest().load(this.testURL);\n this.testDoc = api.htmlDoc();\n } catch (error) {\n console.error('Error loading or parsing XML:', error);\n }\n }\n\n @watch('testXML', { waitUntilFirstUpdate: true })\n protected handleTestXMLChange() {\n if (!this.testXML) return;\n try {\n this.testDoc = qtiTransformTest().parse(this.testXML).htmlDoc();\n } catch (error) {\n console.error('Error parsing XML:', error);\n }\n }\n\n async connectedCallback(): Promise<void> {\n super.connectedCallback();\n this.initializeTemplateContent();\n this.applyStyles();\n if (this.testURL) {\n this.handleTestURLChange();\n }\n if (this.testXML) {\n this.handleTestXMLChange();\n }\n }\n\n private initializeTemplateContent() {\n const template = this.querySelector('template') as HTMLTemplateElement;\n this.templateContent = template ? template.content : html``;\n }\n\n private applyStyles() {\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(itemCss);\n this.shadowRoot.adoptedStyleSheets = [sheet];\n }\n\n render() {\n return html`\n ${this.templateContent}\n <slot></slot>\n ${until(this.testDoc, html`<span>Loading...</span>`)}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-container': TestContainer;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,YAAY,YAAY;AACjC,SAAS,eAAe,UAAU,aAAa;AAC/C,SAAS,aAAa;AAoBf,IAAM,gBAAN,cAA4B,WAAW;AAAA,EAAvC;AAAA;AAGL,mBAAkB;AAIlB,mBAA4B;AAI5B,mBAAkB;AAGlB;AAAA,SAAQ,kBAAkB;AAAA;AAAA,EAG1B,MAAgB,sBAAsB;AACpC,QAAI,CAAC,KAAK,QAAS;AACnB,QAAI;AACF,YAAM,MAAM,MAAM,iBAAiB,EAAE,KAAK,KAAK,OAAO;AACtD,WAAK,UAAU,IAAI,QAAQ;AAAA,IAC7B,SAAS,OAAO;AACd,cAAQ,MAAM,iCAAiC,KAAK;AAAA,IACtD;AAAA,EACF;AAAA,EAGU,sBAAsB;AAC9B,QAAI,CAAC,KAAK,QAAS;AACnB,QAAI;AACF,WAAK,UAAU,iBAAiB,EAAE,MAAM,KAAK,OAAO,EAAE,QAAQ;AAAA,IAChE,SAAS,OAAO;AACd,cAAQ,MAAM,sBAAsB,KAAK;AAAA,IAC3C;AAAA,EACF;AAAA,EAEA,MAAM,oBAAmC;AACvC,UAAM,kBAAkB;AACxB,SAAK,0BAA0B;AAC/B,SAAK,YAAY;AACjB,QAAI,KAAK,SAAS;AAChB,WAAK,oBAAoB;AAAA,IAC3B;AACA,QAAI,KAAK,SAAS;AAChB,WAAK,oBAAoB;AAAA,IAC3B;AAAA,EACF;AAAA,EAEQ,4BAA4B;AAClC,UAAM,WAAW,KAAK,cAAc,UAAU;AAC9C,SAAK,kBAAkB,WAAW,SAAS,UAAU;AAAA,EACvD;AAAA,EAEQ,cAAc;AACpB,UAAM,QAAQ,IAAI,cAAc;AAChC,UAAM,YAAY,YAAO;AACzB,SAAK,WAAW,qBAAqB,CAAC,KAAK;AAAA,EAC7C;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,QACH,KAAK,eAAe;AAAA;AAAA,QAEpB,MAAM,KAAK,SAAS,6BAA6B,CAAC;AAAA;AAAA,EAExD;AACF;AAhEE;AAAA,EADC,SAAS,EAAE,MAAM,QAAQ,WAAW,WAAW,CAAC;AAAA,GAFtC,cAGX;AAIA;AAAA,EADC,MAAM;AAAA,GANI,cAOX;AAIA;AAAA,EADC,MAAM;AAAA,GAVI,cAWX;AAMgB;AAAA,EADf,MAAM,WAAW,EAAE,sBAAsB,KAAK,CAAC;AAAA,GAhBrC,cAiBK;AAWN;AAAA,EADT,MAAM,WAAW,EAAE,sBAAsB,KAAK,CAAC;AAAA,GA3BrC,cA4BD;AA5BC,gBAAN;AAAA,EADN,cAAc,gBAAgB;AAAA,GAClB;","names":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
btn,
|
|
3
|
+
dis
|
|
4
|
+
} from "./chunk-5ZHHNEDA.js";
|
|
5
|
+
import {
|
|
6
|
+
watch
|
|
7
|
+
} from "./chunk-ELDMXTUQ.js";
|
|
8
|
+
import {
|
|
9
|
+
computedContext
|
|
10
|
+
} from "./chunk-AZIKAG7K.js";
|
|
11
|
+
import {
|
|
12
|
+
__decorateClass
|
|
13
|
+
} from "./chunk-H2JE6IVU.js";
|
|
14
|
+
|
|
15
|
+
// src/lib/qti-test/components/test-next.ts
|
|
16
|
+
import { css, html, LitElement } from "lit";
|
|
17
|
+
import { customElement, property } from "lit/decorators.js";
|
|
18
|
+
import { consume } from "@lit/context";
|
|
19
|
+
var TestNext = class extends LitElement {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this._internalDisabled = true;
|
|
23
|
+
this._internals = this.attachInternals();
|
|
24
|
+
this._internals.role = "button";
|
|
25
|
+
this._internals.ariaLabel = "Next item";
|
|
26
|
+
this.addEventListener("click", (e) => {
|
|
27
|
+
e.preventDefault();
|
|
28
|
+
if (!this._internalDisabled) this._requestItem(this.sectionItems[this.itemIndex + 1].identifier);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
_handleTestElementChange(_oldValue, newValue) {
|
|
32
|
+
if (newValue) {
|
|
33
|
+
this._internalDisabled = false;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
connectedCallback() {
|
|
37
|
+
super.connectedCallback();
|
|
38
|
+
this.checkDisabled();
|
|
39
|
+
}
|
|
40
|
+
willUpdate(_changedProperties) {
|
|
41
|
+
if (!this.computedContext) return;
|
|
42
|
+
const testPart = this.computedContext?.testParts.find((testPart2) => testPart2.active);
|
|
43
|
+
if (!testPart) return;
|
|
44
|
+
this.sectionItems = testPart.sections.flatMap((section) => section.items);
|
|
45
|
+
this.itemIndex = this.sectionItems.findIndex((item) => item.active);
|
|
46
|
+
this.checkDisabled();
|
|
47
|
+
}
|
|
48
|
+
checkDisabled() {
|
|
49
|
+
this._internalDisabled = !this.computedContext || this.itemIndex < 0 || this.itemIndex >= this.sectionItems?.length - 1;
|
|
50
|
+
}
|
|
51
|
+
_requestItem(identifier) {
|
|
52
|
+
this.dispatchEvent(
|
|
53
|
+
new CustomEvent("qti-request-navigation", {
|
|
54
|
+
composed: true,
|
|
55
|
+
bubbles: true,
|
|
56
|
+
detail: {
|
|
57
|
+
type: "item",
|
|
58
|
+
id: identifier
|
|
59
|
+
}
|
|
60
|
+
})
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return html`<slot></slot>`;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
TestNext.styles = css`
|
|
68
|
+
:host {
|
|
69
|
+
${btn};
|
|
70
|
+
}
|
|
71
|
+
:host([disabled]) {
|
|
72
|
+
${dis};
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
__decorateClass([
|
|
76
|
+
property({ type: Boolean, reflect: true, attribute: "disabled" })
|
|
77
|
+
], TestNext.prototype, "_internalDisabled", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
consume({ context: computedContext, subscribe: true })
|
|
80
|
+
], TestNext.prototype, "computedContext", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
watch("computedContext")
|
|
83
|
+
], TestNext.prototype, "_handleTestElementChange", 1);
|
|
84
|
+
TestNext = __decorateClass([
|
|
85
|
+
customElement("test-next")
|
|
86
|
+
], TestNext);
|
|
87
|
+
|
|
88
|
+
export {
|
|
89
|
+
TestNext
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=chunk-7K44TDQO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/qti-test/components/test-next.ts"],"sourcesContent":["import { css, html, LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { consume } from '@lit/context';\n\nimport * as styles from './styles';\nimport { watch } from '../../decorators';\nimport { computedContext } from '../../exports/computed.context';\n\nimport type { ComputedContext, ComputedItem } from '../../exports/computed.context';\n\n/**\n * Represents a custom element for navigating to the next test item.\n *\n * @remarks\n * This element provides functionality for navigating to the next test item.\n *\n * @example\n * ```html\n * <test-next></test-next>\n * ```\n */\n@customElement('test-next')\nexport class TestNext extends LitElement {\n @property({ type: Boolean, reflect: true, attribute: 'disabled' })\n public _internalDisabled = true;\n\n @consume({ context: computedContext, subscribe: true })\n protected computedContext: ComputedContext;\n\n sectionItems: ComputedItem[];\n itemIndex: number;\n\n @watch('computedContext')\n _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext) {\n if (newValue) {\n this._internalDisabled = false;\n }\n }\n\n static styles = css`\n :host {\n ${styles.btn};\n }\n :host([disabled]) {\n ${styles.dis};\n }\n `;\n private _internals: ElementInternals;\n\n constructor() {\n super();\n\n this._internals = this.attachInternals();\n this._internals.role = 'button';\n this._internals.ariaLabel = 'Next item';\n\n this.addEventListener('click', e => {\n e.preventDefault();\n if (!this._internalDisabled) this._requestItem(this.sectionItems[this.itemIndex + 1].identifier);\n });\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.checkDisabled();\n }\n\n willUpdate(_changedProperties: Map<string | number | symbol, unknown>) {\n if (!this.computedContext) return;\n const testPart = this.computedContext?.testParts.find(testPart => testPart.active);\n if (!testPart) return;\n this.sectionItems = testPart.sections.flatMap(section => section.items);\n this.itemIndex = this.sectionItems.findIndex(item => item.active);\n this.checkDisabled();\n }\n\n checkDisabled() {\n this._internalDisabled =\n !this.computedContext || this.itemIndex < 0 || this.itemIndex >= this.sectionItems?.length - 1;\n }\n\n protected _requestItem(identifier: string): void {\n this.dispatchEvent(\n new CustomEvent('qti-request-navigation', {\n composed: true,\n bubbles: true,\n detail: {\n type: 'item',\n id: identifier\n }\n })\n );\n }\n\n render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'test-next': TestNext;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,KAAK,MAAM,kBAAkB;AACtC,SAAS,eAAe,gBAAgB;AACxC,SAAS,eAAe;AAoBjB,IAAM,WAAN,cAAuB,WAAW;AAAA,EA2BvC,cAAc;AACZ,UAAM;AA1BR,SAAO,oBAAoB;AA4BzB,SAAK,aAAa,KAAK,gBAAgB;AACvC,SAAK,WAAW,OAAO;AACvB,SAAK,WAAW,YAAY;AAE5B,SAAK,iBAAiB,SAAS,OAAK;AAClC,QAAE,eAAe;AACjB,UAAI,CAAC,KAAK,kBAAmB,MAAK,aAAa,KAAK,aAAa,KAAK,YAAY,CAAC,EAAE,UAAU;AAAA,IACjG,CAAC;AAAA,EACH;AAAA,EA3BA,yBAAyB,WAA4B,UAA2B;AAC9E,QAAI,UAAU;AACZ,WAAK,oBAAoB;AAAA,IAC3B;AAAA,EACF;AAAA,EAyBA,oBAA0B;AACxB,UAAM,kBAAkB;AACxB,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,WAAW,oBAA4D;AACrE,QAAI,CAAC,KAAK,gBAAiB;AAC3B,UAAM,WAAW,KAAK,iBAAiB,UAAU,KAAK,CAAAA,cAAYA,UAAS,MAAM;AACjF,QAAI,CAAC,SAAU;AACf,SAAK,eAAe,SAAS,SAAS,QAAQ,aAAW,QAAQ,KAAK;AACtE,SAAK,YAAY,KAAK,aAAa,UAAU,UAAQ,KAAK,MAAM;AAChE,SAAK,cAAc;AAAA,EACrB;AAAA,EAEA,gBAAgB;AACd,SAAK,oBACH,CAAC,KAAK,mBAAmB,KAAK,YAAY,KAAK,KAAK,aAAa,KAAK,cAAc,SAAS;AAAA,EACjG;AAAA,EAEU,aAAa,YAA0B;AAC/C,SAAK;AAAA,MACH,IAAI,YAAY,0BAA0B;AAAA,QACxC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,QAAQ;AAAA,UACN,MAAM;AAAA,UACN,IAAI;AAAA,QACN;AAAA,MACF,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,EACT;AACF;AA3Ea,SAiBJ,SAAS;AAAA;AAAA,QAEH,GAAG;AAAA;AAAA;AAAA,QAGH,GAAG;AAAA;AAAA;AApBT;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,MAAM,WAAW,WAAW,CAAC;AAAA,GADtD,SAEJ;AAGG;AAAA,EADT,QAAQ,EAAE,SAAS,iBAAiB,WAAW,KAAK,CAAC;AAAA,GAJ3C,SAKD;AAMV;AAAA,EADC,MAAM,iBAAiB;AAAA,GAVb,SAWX;AAXW,WAAN;AAAA,EADN,cAAc,WAAW;AAAA,GACb;","names":["testPart"]}
|