@citolab/qti-components 6.4.2 → 6.4.5
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/{chunk-O4MG75IZ.js → chunk-67E36LYB.js} +16 -10
- package/dist/{chunk-7FZSQALE.cjs → chunk-BD6FQ6G6.cjs} +16 -10
- package/dist/{chunk-JRSNRE2R.js → chunk-N4M5S3KO.js} +83 -50
- package/dist/{chunk-PBNEJ254.cjs → chunk-ULLHUYN2.cjs} +75 -42
- package/dist/custom-elements.json +195 -189
- package/dist/index.bundled.css +2002 -2
- package/dist/index.cjs +146 -107
- package/dist/index.css +16 -10
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +148 -109
- package/dist/qti-components/index.cjs +10 -10
- package/dist/qti-components/index.js +35 -35
- package/dist/qti-item/index.cjs +1 -1
- package/dist/qti-item/index.js +1 -1
- package/dist/qti-item-react/index.cjs +1 -1
- package/dist/qti-item-react/index.js +1 -1
- package/dist/qti-test/index.cjs +1 -1
- package/dist/qti-test/index.d.cts +11 -8
- package/dist/qti-test/index.d.ts +11 -8
- package/dist/qti-test/index.js +1 -1
- package/dist/qti-test-react/index.cjs +1 -1
- package/dist/qti-test-react/index.js +1 -1
- package/package.json +4 -3
package/dist/index.css
CHANGED
|
@@ -1929,14 +1929,24 @@ qti-choice-interaction.qti-orientation-horizontal {
|
|
|
1929
1929
|
qti-choice-interaction[orientation='horizontal'] {
|
|
1930
1930
|
flex-direction: row;
|
|
1931
1931
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
background-color: rgb(248 250 252 / var(--tw-bg-opacity));
|
|
1932
|
+
/* only applied in qti-test, if present */
|
|
1933
|
+
/*
|
|
1934
|
+
::host {
|
|
1935
|
+
@apply h-screen w-screen bg-slate-50;
|
|
1937
1936
|
}
|
|
1938
|
-
|
|
1937
|
+
*/
|
|
1938
|
+
/* qti-assessment-test {
|
|
1939
|
+
@apply grid h-full w-full grid-cols-3;
|
|
1940
|
+
qti-test-part {
|
|
1941
|
+
@apply container col-span-3 mx-auto aspect-[4/3];
|
|
1942
|
+
}
|
|
1943
|
+
} */
|
|
1944
|
+
qti-assessment-test qti-test-part qti-assessment-section{
|
|
1939
1945
|
display: block;
|
|
1946
|
+
overflow-y: auto;
|
|
1947
|
+
border-radius: 0.125rem;
|
|
1948
|
+
--tw-bg-opacity: 1;
|
|
1949
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1940
1950
|
padding: 2rem;
|
|
1941
1951
|
}
|
|
1942
1952
|
qti-assessment-test .nav{
|
|
@@ -2086,7 +2096,3 @@ qti-assessment-test test-paging-buttons > button[data-active-item='true']:focus-
|
|
|
2086
2096
|
outline-offset: 2px;
|
|
2087
2097
|
outline-color: #4f46e5;
|
|
2088
2098
|
}
|
|
2089
|
-
qti-assessment-test qti-test-part qti-assessment-section{
|
|
2090
|
-
aspect-ratio: 16 / 9;
|
|
2091
|
-
width: 100%;
|
|
2092
|
-
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
|
-
import { LitElement, PropertyValueMap, CSSResultGroup } from 'lit';
|
|
2
|
+
import { LitElement, PropertyValueMap, CSSResultGroup, nothing } from 'lit';
|
|
3
3
|
import * as lit_html from 'lit-html';
|
|
4
4
|
import * as lit_html_directives_ref from 'lit-html/directives/ref';
|
|
5
5
|
import * as cheerio from 'cheerio';
|
|
@@ -1220,13 +1220,10 @@ declare class TestPrintScore extends LitElement {
|
|
|
1220
1220
|
render(): lit_html.TemplateResult<1>;
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
declare class
|
|
1223
|
+
declare class TestScoringInput extends LitElement {
|
|
1224
|
+
_testContext?: TestContext;
|
|
1224
1225
|
disabled: boolean;
|
|
1225
|
-
|
|
1226
|
-
value: number;
|
|
1227
|
-
min: number;
|
|
1228
|
-
max: number;
|
|
1229
|
-
protected textChanged(event: Event): void;
|
|
1226
|
+
_changeOutcomeScore(value: number): void;
|
|
1230
1227
|
render(): lit_html.TemplateResult<1>;
|
|
1231
1228
|
}
|
|
1232
1229
|
|
|
@@ -1239,6 +1236,12 @@ declare class TestItemId extends LitElement {
|
|
|
1239
1236
|
render(): lit_html.TemplateResult<1>;
|
|
1240
1237
|
}
|
|
1241
1238
|
|
|
1239
|
+
declare class TestScoringButtons extends LitElement {
|
|
1240
|
+
_testContext?: TestContext;
|
|
1241
|
+
_changeOutcomeScore(value: number): void;
|
|
1242
|
+
render(): lit_html.TemplateResult<1> | typeof nothing;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1242
1245
|
/**
|
|
1243
1246
|
* Requests an XML item from the specified URL.
|
|
1244
1247
|
* @param href - The URL of the XML item to request.
|
|
@@ -1261,4 +1264,4 @@ type ManifestData = {
|
|
|
1261
1264
|
*/
|
|
1262
1265
|
declare const fetchManifestData: (packageUri: string) => Promise<ManifestData>;
|
|
1263
1266
|
|
|
1264
|
-
export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, ManifestData, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPart, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestItemId,
|
|
1267
|
+
export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, ManifestData, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPart, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestItemId, TestNext, TestPagingButtons, TestPagingRadio, TestPrev, TestPrintScore, TestPrintVariables, TestProgress, TestScoringButtons, TestScoringInput, TestScript, TestShowCorrect, TestShowIndex, TestSlider, TestToggleScoring, VariableDeclaration, directedPair, fetchManifestData, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, requestItem, testContext };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
|
-
import { LitElement, PropertyValueMap, CSSResultGroup } from 'lit';
|
|
2
|
+
import { LitElement, PropertyValueMap, CSSResultGroup, nothing } from 'lit';
|
|
3
3
|
import * as lit_html from 'lit-html';
|
|
4
4
|
import * as lit_html_directives_ref from 'lit-html/directives/ref';
|
|
5
5
|
import * as cheerio from 'cheerio';
|
|
@@ -1220,13 +1220,10 @@ declare class TestPrintScore extends LitElement {
|
|
|
1220
1220
|
render(): lit_html.TemplateResult<1>;
|
|
1221
1221
|
}
|
|
1222
1222
|
|
|
1223
|
-
declare class
|
|
1223
|
+
declare class TestScoringInput extends LitElement {
|
|
1224
|
+
_testContext?: TestContext;
|
|
1224
1225
|
disabled: boolean;
|
|
1225
|
-
|
|
1226
|
-
value: number;
|
|
1227
|
-
min: number;
|
|
1228
|
-
max: number;
|
|
1229
|
-
protected textChanged(event: Event): void;
|
|
1226
|
+
_changeOutcomeScore(value: number): void;
|
|
1230
1227
|
render(): lit_html.TemplateResult<1>;
|
|
1231
1228
|
}
|
|
1232
1229
|
|
|
@@ -1239,6 +1236,12 @@ declare class TestItemId extends LitElement {
|
|
|
1239
1236
|
render(): lit_html.TemplateResult<1>;
|
|
1240
1237
|
}
|
|
1241
1238
|
|
|
1239
|
+
declare class TestScoringButtons extends LitElement {
|
|
1240
|
+
_testContext?: TestContext;
|
|
1241
|
+
_changeOutcomeScore(value: number): void;
|
|
1242
|
+
render(): lit_html.TemplateResult<1> | typeof nothing;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1242
1245
|
/**
|
|
1243
1246
|
* Requests an XML item from the specified URL.
|
|
1244
1247
|
* @param href - The URL of the XML item to request.
|
|
@@ -1261,4 +1264,4 @@ type ManifestData = {
|
|
|
1261
1264
|
*/
|
|
1262
1265
|
declare const fetchManifestData: (packageUri: string) => Promise<ManifestData>;
|
|
1263
1266
|
|
|
1264
|
-
export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, ManifestData, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPart, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestItemId,
|
|
1267
|
+
export { BaseType, Calculate, Cardinality, Events, Interaction, InteractionChangedDetails, ItemContext, ManifestData, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssessmentItemRef, QtiAssessmentTest, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, qtiChoiceElementSelected as QtiChoiceElementSelected, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, qtiInteractionChanged as QtiInteractionChanged, qtiInteractionResponse as QtiInteractionResponse, QtiIsNull, QtiItem, qtiLooseChoice as QtiLooseChoice, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, qtiOutcomeChanged as QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, qtiRegisterChoice as QtiRegisterChoice, qtiRegisterHotspot as QtiRegisterHotspot, qtiRegisterInteraction as QtiRegisterInteraction, qtiRegisterVariable as QtiRegisterVariable, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTest, QtiTestPart, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, TestContext, TestItemId, TestNext, TestPagingButtons, TestPagingRadio, TestPrev, TestPrintScore, TestPrintVariables, TestProgress, TestScoringButtons, TestScoringInput, TestScript, TestShowCorrect, TestShowIndex, TestSlider, TestToggleScoring, VariableDeclaration, directedPair, fetchManifestData, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, requestItem, testContext };
|