@citolab/qti-components 6.5.2 → 6.5.4
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/custom-elements.json +1350 -1350
- package/dist/index.cjs +87 -48
- package/dist/index.d.cts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.js +86 -47
- package/dist/qti-components/index.cjs +23 -19
- package/dist/qti-components/index.d.cts +3 -2
- package/dist/qti-components/index.d.ts +3 -2
- package/dist/qti-components/index.js +50 -46
- package/dist/styles.bundled.css +3 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -98,8 +98,8 @@ interface VariableValue<T> {
|
|
|
98
98
|
type: 'outcome' | 'response';
|
|
99
99
|
}
|
|
100
100
|
interface VariableDeclaration<T> extends VariableValue<T> {
|
|
101
|
-
cardinality
|
|
102
|
-
baseType
|
|
101
|
+
cardinality?: Cardinality;
|
|
102
|
+
baseType?: BaseType;
|
|
103
103
|
}
|
|
104
104
|
interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
|
|
105
105
|
interpolationTable?: Map<number, number>;
|
|
@@ -464,6 +464,7 @@ declare global {
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
declare class QtiResponseProcessing extends LitElement {
|
|
467
|
+
static styles: lit.CSSResult[];
|
|
467
468
|
render(): lit_html.TemplateResult<1>;
|
|
468
469
|
static get observedAttributes(): string[];
|
|
469
470
|
process(): void;
|
|
@@ -982,4 +983,48 @@ declare global {
|
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
985
|
|
|
985
|
-
|
|
986
|
+
/**
|
|
987
|
+
* Returns an object with methods to load, parse, transform and serialize QTI XML items.
|
|
988
|
+
* @returns An object with methods to load, parse, transform and serialize QTI XML items.
|
|
989
|
+
* @example
|
|
990
|
+
* const qtiTransformer = qtiTransformItem();
|
|
991
|
+
* await qtiTransformer.load('path/to/xml/file.xml');
|
|
992
|
+
* qtiTransformer.path('/assessmentItem/itemBody');
|
|
993
|
+
* const html = qtiTransformer.html();
|
|
994
|
+
* const xml = qtiTransformer.xml();
|
|
995
|
+
*
|
|
996
|
+
* qtiTransformItem().parse(storyXML).html()
|
|
997
|
+
*/
|
|
998
|
+
/**
|
|
999
|
+
* This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.
|
|
1000
|
+
* @returns An object with methods to load, parse, transform and serialize QTI XML items.
|
|
1001
|
+
*/
|
|
1002
|
+
declare const qtiTransformItem: () => {
|
|
1003
|
+
load(uri: any): Promise<any>;
|
|
1004
|
+
parse(xmlString: any): any;
|
|
1005
|
+
path: (location: string) => any;
|
|
1006
|
+
html(): string;
|
|
1007
|
+
xml(): string;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Returns an object with methods to load, parse and transform QTI tests.
|
|
1011
|
+
* @returns An object with methods to load, parse and transform QTI tests.
|
|
1012
|
+
* @example
|
|
1013
|
+
* const qtiTransformer = qtiTransformTest();
|
|
1014
|
+
* await qtiTransformer.load('https://example.com/test.xml');
|
|
1015
|
+
* const items = qtiTransformer.items();
|
|
1016
|
+
* const html = qtiTransformer.html();
|
|
1017
|
+
* const xml = qtiTransformer.xml();
|
|
1018
|
+
*/
|
|
1019
|
+
declare const qtiTransformTest: () => {
|
|
1020
|
+
load(uri: any): Promise<any>;
|
|
1021
|
+
items(): {
|
|
1022
|
+
identifier: string;
|
|
1023
|
+
href: string;
|
|
1024
|
+
category: string;
|
|
1025
|
+
}[];
|
|
1026
|
+
html(): string;
|
|
1027
|
+
xml(): string;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
export { BaseType, Calculate, Cardinality, Interaction, InteractionChangedDetails, ItemContext, MockQtiExpression, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, VariableDeclaration, VariableValue, directedPair, float, integer, itemContext, qtiAndMixin, qtiContentBody, qtiRubricBlock, qtiTransformItem, qtiTransformTest };
|
package/dist/index.d.ts
CHANGED
|
@@ -98,8 +98,8 @@ interface VariableValue<T> {
|
|
|
98
98
|
type: 'outcome' | 'response';
|
|
99
99
|
}
|
|
100
100
|
interface VariableDeclaration<T> extends VariableValue<T> {
|
|
101
|
-
cardinality
|
|
102
|
-
baseType
|
|
101
|
+
cardinality?: Cardinality;
|
|
102
|
+
baseType?: BaseType;
|
|
103
103
|
}
|
|
104
104
|
interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
|
|
105
105
|
interpolationTable?: Map<number, number>;
|
|
@@ -464,6 +464,7 @@ declare global {
|
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
declare class QtiResponseProcessing extends LitElement {
|
|
467
|
+
static styles: lit.CSSResult[];
|
|
467
468
|
render(): lit_html.TemplateResult<1>;
|
|
468
469
|
static get observedAttributes(): string[];
|
|
469
470
|
process(): void;
|
|
@@ -982,4 +983,48 @@ declare global {
|
|
|
982
983
|
}
|
|
983
984
|
}
|
|
984
985
|
|
|
985
|
-
|
|
986
|
+
/**
|
|
987
|
+
* Returns an object with methods to load, parse, transform and serialize QTI XML items.
|
|
988
|
+
* @returns An object with methods to load, parse, transform and serialize QTI XML items.
|
|
989
|
+
* @example
|
|
990
|
+
* const qtiTransformer = qtiTransformItem();
|
|
991
|
+
* await qtiTransformer.load('path/to/xml/file.xml');
|
|
992
|
+
* qtiTransformer.path('/assessmentItem/itemBody');
|
|
993
|
+
* const html = qtiTransformer.html();
|
|
994
|
+
* const xml = qtiTransformer.xml();
|
|
995
|
+
*
|
|
996
|
+
* qtiTransformItem().parse(storyXML).html()
|
|
997
|
+
*/
|
|
998
|
+
/**
|
|
999
|
+
* This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.
|
|
1000
|
+
* @returns An object with methods to load, parse, transform and serialize QTI XML items.
|
|
1001
|
+
*/
|
|
1002
|
+
declare const qtiTransformItem: () => {
|
|
1003
|
+
load(uri: any): Promise<any>;
|
|
1004
|
+
parse(xmlString: any): any;
|
|
1005
|
+
path: (location: string) => any;
|
|
1006
|
+
html(): string;
|
|
1007
|
+
xml(): string;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* Returns an object with methods to load, parse and transform QTI tests.
|
|
1011
|
+
* @returns An object with methods to load, parse and transform QTI tests.
|
|
1012
|
+
* @example
|
|
1013
|
+
* const qtiTransformer = qtiTransformTest();
|
|
1014
|
+
* await qtiTransformer.load('https://example.com/test.xml');
|
|
1015
|
+
* const items = qtiTransformer.items();
|
|
1016
|
+
* const html = qtiTransformer.html();
|
|
1017
|
+
* const xml = qtiTransformer.xml();
|
|
1018
|
+
*/
|
|
1019
|
+
declare const qtiTransformTest: () => {
|
|
1020
|
+
load(uri: any): Promise<any>;
|
|
1021
|
+
items(): {
|
|
1022
|
+
identifier: string;
|
|
1023
|
+
href: string;
|
|
1024
|
+
category: string;
|
|
1025
|
+
}[];
|
|
1026
|
+
html(): string;
|
|
1027
|
+
xml(): string;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
export { BaseType, Calculate, Cardinality, Interaction, InteractionChangedDetails, ItemContext, MockQtiExpression, Multiple, Ordered, OutcomeChangedDetails, OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiCorrect, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, ResponseInteraction, ResponseVariable, VariableDeclaration, VariableValue, directedPair, float, integer, itemContext, qtiAndMixin, qtiContentBody, qtiRubricBlock, qtiTransformItem, qtiTransformTest };
|