@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/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
- ::host{
1933
- height: 100vh;
1934
- width: 100vw;
1935
- --tw-bg-opacity: 1;
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
- qti-assessment-test{
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 TestManualScoring extends LitElement {
1223
+ declare class TestScoringInput extends LitElement {
1224
+ _testContext?: TestContext;
1224
1225
  disabled: boolean;
1225
- readonly: boolean;
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, TestManualScoring, TestNext, TestPagingButtons, TestPagingRadio, TestPrev, TestPrintScore, TestPrintVariables, TestProgress, TestScript, TestShowCorrect, TestShowIndex, TestSlider, TestToggleScoring, VariableDeclaration, directedPair, fetchManifestData, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, requestItem, testContext };
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 TestManualScoring extends LitElement {
1223
+ declare class TestScoringInput extends LitElement {
1224
+ _testContext?: TestContext;
1224
1225
  disabled: boolean;
1225
- readonly: boolean;
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, TestManualScoring, TestNext, TestPagingButtons, TestPagingRadio, TestPrev, TestPrintScore, TestPrintVariables, TestProgress, TestScript, TestShowCorrect, TestShowIndex, TestSlider, TestToggleScoring, VariableDeclaration, directedPair, fetchManifestData, float, integer, itemContext, qtiContentBody, qtiRubricBlock, qtiTransform, requestItem, testContext };
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 };