@citolab/qti-components 6.6.1-15 → 6.6.1-19
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 +80 -59
- package/dist/debug/chunk-CJR2I3AV.js +35 -0
- package/dist/{qti-components/index.d.cts → debug/qti-components/index.d.ts} +6 -3
- package/dist/debug/qti-components/index.js +6143 -0
- package/dist/debug/qti-transformers/index.js +153 -0
- package/dist/index.js +31 -31
- package/dist/item.css +8 -4
- package/dist/qti-components/index.d.ts +6 -3
- package/dist/qti-components/index.js +307 -83
- package/package.json +8 -10
- package/dist/chunk-KRFEDZFG.cjs +0 -1
- package/dist/index.cjs +0 -720
- package/dist/qti-components/index.cjs +0 -461
- package/dist/qti-transformers/index.cjs +0 -36
- /package/dist/{qti-transformers/index.d.cts → debug/qti-transformers/index.d.ts} +0 -0
|
@@ -96,6 +96,65 @@
|
|
|
96
96
|
}
|
|
97
97
|
]
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"kind": "javascript-module",
|
|
101
|
+
"path": "src/lib/qti-transformers/index.ts",
|
|
102
|
+
"declarations": [],
|
|
103
|
+
"exports": [
|
|
104
|
+
{
|
|
105
|
+
"kind": "js",
|
|
106
|
+
"name": "*",
|
|
107
|
+
"declaration": {
|
|
108
|
+
"name": "*",
|
|
109
|
+
"package": "./qti-transformers"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"kind": "javascript-module",
|
|
116
|
+
"path": "src/lib/qti-transformers/qti-transformers.ts",
|
|
117
|
+
"declarations": [
|
|
118
|
+
{
|
|
119
|
+
"kind": "function",
|
|
120
|
+
"name": "qtiTransformItem",
|
|
121
|
+
"description": "This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.",
|
|
122
|
+
"return": {
|
|
123
|
+
"type": {
|
|
124
|
+
"text": ""
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"kind": "function",
|
|
130
|
+
"name": "qtiTransformTest",
|
|
131
|
+
"description": "Returns an object with methods to load, parse and transform QTI tests.",
|
|
132
|
+
"return": {
|
|
133
|
+
"type": {
|
|
134
|
+
"text": ""
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"exports": [
|
|
140
|
+
{
|
|
141
|
+
"kind": "js",
|
|
142
|
+
"name": "qtiTransformItem",
|
|
143
|
+
"declaration": {
|
|
144
|
+
"name": "qtiTransformItem",
|
|
145
|
+
"module": "src/lib/qti-transformers/qti-transformers.ts"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "js",
|
|
150
|
+
"name": "qtiTransformTest",
|
|
151
|
+
"declaration": {
|
|
152
|
+
"name": "qtiTransformTest",
|
|
153
|
+
"module": "src/lib/qti-transformers/qti-transformers.ts"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
99
158
|
{
|
|
100
159
|
"kind": "javascript-module",
|
|
101
160
|
"path": "src/lib/qti-components/index.ts",
|
|
@@ -503,65 +562,6 @@
|
|
|
503
562
|
}
|
|
504
563
|
]
|
|
505
564
|
},
|
|
506
|
-
{
|
|
507
|
-
"kind": "javascript-module",
|
|
508
|
-
"path": "src/lib/qti-transformers/index.ts",
|
|
509
|
-
"declarations": [],
|
|
510
|
-
"exports": [
|
|
511
|
-
{
|
|
512
|
-
"kind": "js",
|
|
513
|
-
"name": "*",
|
|
514
|
-
"declaration": {
|
|
515
|
-
"name": "*",
|
|
516
|
-
"package": "./qti-transformers"
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
]
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"kind": "javascript-module",
|
|
523
|
-
"path": "src/lib/qti-transformers/qti-transformers.ts",
|
|
524
|
-
"declarations": [
|
|
525
|
-
{
|
|
526
|
-
"kind": "function",
|
|
527
|
-
"name": "qtiTransformItem",
|
|
528
|
-
"description": "This module exports a function that returns an object with methods to load, parse, transform and serialize QTI XML items.",
|
|
529
|
-
"return": {
|
|
530
|
-
"type": {
|
|
531
|
-
"text": ""
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"kind": "function",
|
|
537
|
-
"name": "qtiTransformTest",
|
|
538
|
-
"description": "Returns an object with methods to load, parse and transform QTI tests.",
|
|
539
|
-
"return": {
|
|
540
|
-
"type": {
|
|
541
|
-
"text": ""
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
],
|
|
546
|
-
"exports": [
|
|
547
|
-
{
|
|
548
|
-
"kind": "js",
|
|
549
|
-
"name": "qtiTransformItem",
|
|
550
|
-
"declaration": {
|
|
551
|
-
"name": "qtiTransformItem",
|
|
552
|
-
"module": "src/lib/qti-transformers/qti-transformers.ts"
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"kind": "js",
|
|
557
|
-
"name": "qtiTransformTest",
|
|
558
|
-
"declaration": {
|
|
559
|
-
"name": "qtiTransformTest",
|
|
560
|
-
"module": "src/lib/qti-transformers/qti-transformers.ts"
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
]
|
|
564
|
-
},
|
|
565
565
|
{
|
|
566
566
|
"kind": "javascript-module",
|
|
567
567
|
"path": "src/lib/qti-components/internal/event-types.ts",
|
|
@@ -727,12 +727,25 @@
|
|
|
727
727
|
"kind": "javascript-module",
|
|
728
728
|
"path": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts",
|
|
729
729
|
"declarations": [
|
|
730
|
+
{
|
|
731
|
+
"kind": "variable",
|
|
732
|
+
"name": "itemContextVariables",
|
|
733
|
+
"default": "[\n {\n identifier: 'completionStatus',\n cardinality: 'single',\n baseType: 'string',\n value: 'unknown',\n type: 'outcome'\n },\n {\n identifier: 'numAttempts',\n cardinality: 'single',\n baseType: 'integer',\n value: '0',\n type: 'response'\n }\n]"
|
|
734
|
+
},
|
|
730
735
|
{
|
|
731
736
|
"kind": "variable",
|
|
732
737
|
"name": "itemContext"
|
|
733
738
|
}
|
|
734
739
|
],
|
|
735
740
|
"exports": [
|
|
741
|
+
{
|
|
742
|
+
"kind": "js",
|
|
743
|
+
"name": "itemContextVariables",
|
|
744
|
+
"declaration": {
|
|
745
|
+
"name": "itemContextVariables",
|
|
746
|
+
"module": "src/lib/qti-components/qti-assessment-item/qti-assessment-item.context.ts"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
736
749
|
{
|
|
737
750
|
"kind": "js",
|
|
738
751
|
"name": "itemContext",
|
|
@@ -823,6 +836,14 @@
|
|
|
823
836
|
"text": "boolean"
|
|
824
837
|
},
|
|
825
838
|
"fieldName": "readonly"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "state",
|
|
842
|
+
"type": {
|
|
843
|
+
"text": "| 'item-created' // <-- pk: this is the state when the item is created\n | 'item-connected' // <-- pk: this is the state when the item is connected\n | 'variables-restored' // <-- pk: this is the state when the variables are restored\n | 'first-updated' // <-- pk: this is the state when the first-updated event is fired\n | 'item-connected'"
|
|
844
|
+
},
|
|
845
|
+
"default": "'item-created'",
|
|
846
|
+
"fieldName": "_state"
|
|
826
847
|
}
|
|
827
848
|
],
|
|
828
849
|
"superclass": {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
22
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
23
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
24
|
+
if (decorator = decorators[i])
|
|
25
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
26
|
+
if (kind && result)
|
|
27
|
+
__defProp(target, key, result);
|
|
28
|
+
return result;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
__spreadValues,
|
|
33
|
+
__spreadProps,
|
|
34
|
+
__decorateClass
|
|
35
|
+
};
|
|
@@ -152,14 +152,16 @@ declare class QtiAssessmentItem extends LitElement {
|
|
|
152
152
|
readonly: boolean;
|
|
153
153
|
_handleReadonlyChange: (_: boolean, readonly: boolean) => void;
|
|
154
154
|
private _context;
|
|
155
|
+
_state: 'item-created' | 'item-connected' | 'variables-restored' | 'first-updated' | 'item-connected';
|
|
156
|
+
private set state(value);
|
|
155
157
|
get variables(): VariableValue<string | string[] | null>[];
|
|
156
158
|
set variables(value: VariableValue<string | string[] | null>[]);
|
|
157
159
|
private _initialContext;
|
|
158
160
|
private _feedbackElements;
|
|
159
161
|
private _interactionElements;
|
|
160
162
|
firstUpdated(val: any): void;
|
|
161
|
-
|
|
162
|
-
/** @deprecated use
|
|
163
|
+
connectedCallback(): void;
|
|
164
|
+
/** @deprecated use variables property instead */
|
|
163
165
|
set responses(myResponses: ResponseInteraction[]);
|
|
164
166
|
render(): lit_html.TemplateResult<1>;
|
|
165
167
|
constructor();
|
|
@@ -252,6 +254,7 @@ interface ItemContext {
|
|
|
252
254
|
identifier: string;
|
|
253
255
|
variables: ReadonlyArray<VariableDeclaration<string | string[]>>;
|
|
254
256
|
}
|
|
257
|
+
declare const itemContextVariables: VariableDeclaration<string | string[]>[];
|
|
255
258
|
declare const itemContext: {
|
|
256
259
|
__context__: ItemContext;
|
|
257
260
|
};
|
|
@@ -1004,4 +1007,4 @@ declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
|
1004
1007
|
calculate(): any;
|
|
1005
1008
|
}
|
|
1006
1009
|
|
|
1007
|
-
export { type BaseType, type Calculate, type Cardinality, Interaction, type InteractionChangedDetails, type ItemContext, type MockQtiExpression, type Multiple, type Ordered, type OutcomeChangedDetails, type OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, type QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, type QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, qtiAndMixin };
|
|
1010
|
+
export { type BaseType, type Calculate, type Cardinality, Interaction, type InteractionChangedDetails, type ItemContext, type MockQtiExpression, type Multiple, type Ordered, type OutcomeChangedDetails, type OutcomeVariable, QtPrintedVariable, QtiAnd, QtiAssessmentItem, QtiAssociableHotspot, QtiAssociateInteraction, QtiBaseValue, QtiChoice, QtiChoiceInteraction, QtiCompanionMaterialsInfo, QtiConditionExpression, QtiContains, QtiContentBody, QtiCorrect, QtiCustomOperator, QtiEndAttemptInteraction, QtiEqual, QtiEqualRounded, QtiExpression, QtiExtendedTextInteraction, QtiFeedbackBlock, QtiFeedbackInline, QtiGap, QtiGapImg, QtiGapMatchInteraction, QtiGapText, QtiGraphicAssociateInteraction, QtiGraphicGapMatchInteraction, QtiGraphicOrderInteraction, QtiGt, QtiGte, QtiHotspotChoice, QtiHotspotInteraction, QtiHottext, QtiHottextInteraction, QtiInlineChoice, QtiInlineChoiceInteraction, type QtiInteractionChanged, QtiIsNull, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapping, QtiMatch, QtiMatchInteraction, QtiMediaInteraction, QtiMember, QtiModalFeedback, QtiMultiple, QtiNot, QtiOr, QtiOrderInteraction, QtiOrdered, type QtiOutcomeChanged, QtiOutcomeDeclaration, QtiPortableCustomInteraction, QtiPositionObjectStage, QtiProduct, QtiPrompt, QtiResponseCondition, QtiResponseDeclaration, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiResponseProcessing, QtiRubricBlock, QtiRule, QtiSPositionObjectInteraction, QtiSelectPointInteraction, QtiSetOutcomeValue, QtiSimpleAssociableChoice, QtiSimpleChoice, QtiSliderInteraction, QtiStringMatch, QtiStylesheet, QtiSum, QtiTextEntryInteraction, QtiVariable, type ResponseInteraction, type ResponseVariable, type VariableDeclaration, type VariableValue, type directedPair, type float, type integer, itemContext, itemContextVariables, qtiAndMixin };
|