@citolab/qti-components 8.0.0 → 8.0.2
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/index.global.js +1 -1
- package/cdn/index.js +690 -316
- package/dist/base.d.ts +135 -9
- package/dist/base.js +1 -1
- package/dist/chunk-4DB4SC5K.js +100 -0
- package/dist/chunk-4DB4SC5K.js.map +1 -0
- package/dist/{chunk-WVVMNF74.js → chunk-7AVWRQIS.js} +188 -160
- package/dist/{chunk-WVVMNF74.js.map → chunk-7AVWRQIS.js.map} +1 -1
- package/dist/{chunk-MGF5F3S2.js → chunk-BQFWCZFH.js} +2 -2
- package/dist/{chunk-5QYII4OZ.js → chunk-CK7AV2UJ.js} +147 -101
- package/dist/chunk-CK7AV2UJ.js.map +1 -0
- package/dist/chunk-G6GFQDVN.js +7 -0
- package/dist/chunk-G6GFQDVN.js.map +1 -0
- package/dist/{chunk-LZJHHZQ2.js → chunk-HBSWJC3B.js} +643 -553
- package/dist/chunk-HBSWJC3B.js.map +1 -0
- package/dist/chunk-HQESINXH.js +834 -0
- package/dist/chunk-HQESINXH.js.map +1 -0
- package/dist/{chunk-KYEZRYO6.js → chunk-J5SQLKNP.js} +145 -119
- package/dist/{chunk-KYEZRYO6.js.map → chunk-J5SQLKNP.js.map} +1 -1
- package/dist/{chunk-V5G7X53Y.js → chunk-NJQHUUTN.js} +2 -2
- package/dist/{chunk-W4QZPCNC.js → chunk-RSVRS5AK.js} +59 -58
- package/dist/chunk-RSVRS5AK.js.map +1 -0
- package/dist/{chunk-5SJS36BI.js → chunk-TWPXES3S.js} +642 -673
- package/dist/chunk-TWPXES3S.js.map +1 -0
- package/dist/{chunk-NA2N2WSG.js → chunk-VAE6HBKR.js} +176 -152
- package/dist/{chunk-NA2N2WSG.js.map → chunk-VAE6HBKR.js.map} +1 -1
- package/dist/{chunk-MJVPNN7W.js → chunk-ZII6M3SN.js} +2 -2
- package/dist/computed-item.types.d-BKZdSLLJ.d.ts +19 -0
- package/dist/computed.types.d-DpKIYO6e.d.ts +44 -0
- package/dist/config.context.d-BvU9r-Mg.d.ts +91 -0
- package/dist/corrections.d.ts +415 -1
- package/dist/corrections.js +8 -9
- package/dist/elements.d.ts +393 -1
- package/dist/elements.js +4 -5
- package/dist/index.d.ts +27 -9
- package/dist/index.js +21 -14
- package/dist/interaction.d-CJiMv8H7.d.ts +126 -0
- package/dist/interaction.interface.d-CvjHM2bi.d.ts +46 -0
- package/dist/interactions.d.ts +281 -1
- package/dist/interactions.js +4 -5
- package/dist/item.css +588 -214
- package/dist/item.d.ts +92 -1
- package/dist/item.js +5 -5
- package/dist/item.types.d-QU7LljEK.d.ts +82 -0
- package/dist/loader.d.ts +22 -1
- package/dist/processing.d.ts +730 -1
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +854 -844
- package/dist/qti-components-jsx.js +1 -0
- package/dist/qti-condition-expression.d-aMvBvpc6.d.ts +8 -0
- package/dist/qti-expression.d-BietT_8b.d.ts +31 -0
- package/dist/qti-feedback.d-DZbad0RN.d.ts +21 -0
- package/dist/qti-rule-base.d-ajOnfGXY.d.ts +16 -0
- package/dist/qti-test.d-_YAlhDbt.d.ts +702 -0
- package/dist/qti-text-entry-interaction.d-BGdfV9qG.d.ts +1567 -0
- package/dist/qti-transform-test.d-BL7GGFJj.d.ts +70 -0
- package/dist/qti.context.d-CejJMlfZ.d.ts +50 -0
- package/dist/response.d-_8y4kjGP.d.ts +106 -0
- package/dist/test.d.ts +32 -1
- package/dist/test.js +14 -7
- package/dist/transformers.d.ts +18 -1
- package/package.json +15 -11
- package/dist/chunk-5QYII4OZ.js.map +0 -1
- package/dist/chunk-5SJS36BI.js.map +0 -1
- package/dist/chunk-64XSIBGO.js +0 -241
- package/dist/chunk-64XSIBGO.js.map +0 -1
- package/dist/chunk-H3J7LFRO.js +0 -2243
- package/dist/chunk-H3J7LFRO.js.map +0 -1
- package/dist/chunk-LZJHHZQ2.js.map +0 -1
- package/dist/chunk-W4QZPCNC.js.map +0 -1
- package/dist/chunk-WCQ26LV7.js +0 -102
- package/dist/chunk-WCQ26LV7.js.map +0 -1
- package/dist/chunk-X3E5HXG2.js +0 -20
- package/dist/chunk-X3E5HXG2.js.map +0 -1
- /package/dist/{chunk-MGF5F3S2.js.map → chunk-BQFWCZFH.js.map} +0 -0
- /package/dist/{chunk-V5G7X53Y.js.map → chunk-NJQHUUTN.js.map} +0 -0
- /package/dist/{chunk-MJVPNN7W.js.map → chunk-ZII6M3SN.js.map} +0 -0
package/dist/elements.d.ts
CHANGED
|
@@ -1 +1,393 @@
|
|
|
1
|
-
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
+
import { g as VariableValue, I as ItemContext, R as ResponseInteraction, f as ResponseVariable, b as OutcomeVariable, V as VariableDeclaration, C as Calculate, B as BaseType, a as Cardinality, T as TemplateVariable } from './item.types.d-QU7LljEK.js';
|
|
4
|
+
import { a as RegisteredInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
5
|
+
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-DZbad0RN.js';
|
|
6
|
+
import { Q as QtiRuleBase } from './qti-rule-base.d-ajOnfGXY.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @summary The qti-assessment-item element contains all the other QTI 3 item structures.
|
|
10
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.dltnnj87l0yj
|
|
11
|
+
*
|
|
12
|
+
* @dependency qti-feedback
|
|
13
|
+
* @dependency qti-responseprocessing
|
|
14
|
+
*
|
|
15
|
+
* @event qti-item-context-updated - Emitted when through a user action the itemContext is updated,
|
|
16
|
+
* typically on interaction with the interactions, or calling response processing.
|
|
17
|
+
*/
|
|
18
|
+
declare class QtiAssessmentItem extends LitElement {
|
|
19
|
+
#private;
|
|
20
|
+
identifier: string;
|
|
21
|
+
adaptive: 'true' | 'false';
|
|
22
|
+
timeDependent: 'true' | 'false' | null;
|
|
23
|
+
get title(): string;
|
|
24
|
+
set title(value: string);
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
protected _handleDisabledChange: (_: boolean, disabled: boolean) => void;
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
protected _handleReadonlyChange: (_: boolean, readonly: boolean) => void;
|
|
29
|
+
private _context;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the identifier for the assessment item reference if this item is in a test.
|
|
32
|
+
*
|
|
33
|
+
* @param identifier - The identifier for the assessment item reference.
|
|
34
|
+
*/
|
|
35
|
+
set assessmentItemRefId(identifier: string);
|
|
36
|
+
get assessmentItemRefId(): string;
|
|
37
|
+
get variables(): VariableValue<string | string[] | null>[];
|
|
38
|
+
set variables(value: VariableValue<string | string[] | null>[]);
|
|
39
|
+
get state(): ItemContext['state'];
|
|
40
|
+
set state(value: ItemContext['state']);
|
|
41
|
+
/** Registered candidate-input interactions. Correction packages may extend their presentation behavior. */
|
|
42
|
+
protected interactionElements: RegisteredInteraction[];
|
|
43
|
+
/** @deprecated use variables property instead */
|
|
44
|
+
set responses(myResponses: ResponseInteraction[]);
|
|
45
|
+
render(): lit.TemplateResult<1>;
|
|
46
|
+
connectedCallback(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
48
|
+
processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
|
|
49
|
+
resetResponses(): void;
|
|
50
|
+
protected getResponse(identifier: string): Readonly<ResponseVariable>;
|
|
51
|
+
getOutcome(identifier: string): Readonly<OutcomeVariable>;
|
|
52
|
+
protected getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
|
|
53
|
+
/** Extension point for presentation packages reacting to a candidate response change. */
|
|
54
|
+
protected afterResponseVariableUpdated(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Updates the response variable with the specified identifier to the given value.
|
|
57
|
+
*
|
|
58
|
+
* @protected
|
|
59
|
+
*
|
|
60
|
+
* This method is intended for internal use within the class and subclasses.
|
|
61
|
+
* It should not be called externally by third parties.
|
|
62
|
+
*
|
|
63
|
+
* @param identifier - The identifier of the response variable to update.
|
|
64
|
+
* @param value - The new value for the response variable.
|
|
65
|
+
*/
|
|
66
|
+
updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
|
|
67
|
+
/**
|
|
68
|
+
* Updates the template variable with the specified identifier to the given value.
|
|
69
|
+
*/
|
|
70
|
+
updateTemplateVariable(identifier: string, value: string | string[] | undefined): void;
|
|
71
|
+
/**
|
|
72
|
+
* Updates the correct response for the specified response variable.
|
|
73
|
+
*/
|
|
74
|
+
updateCorrectResponse(identifier: string, value: string | string[] | undefined): void;
|
|
75
|
+
setOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
76
|
+
/**
|
|
77
|
+
* Updates the outcome variable with the specified identifier to the given value.
|
|
78
|
+
*
|
|
79
|
+
* @protected
|
|
80
|
+
*
|
|
81
|
+
* This method is intended for internal use within the class and subclasses.
|
|
82
|
+
* It should not be called externally by third parties.
|
|
83
|
+
*
|
|
84
|
+
* @param identifier - The identifier of the response variable to update.
|
|
85
|
+
* @param value - The new value for the response variable.
|
|
86
|
+
*/
|
|
87
|
+
updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
88
|
+
validate(reportValidity?: boolean): boolean;
|
|
89
|
+
reportValidity(): void;
|
|
90
|
+
}
|
|
91
|
+
declare global {
|
|
92
|
+
interface HTMLElementTagNameMap {
|
|
93
|
+
'qti-assessment-item': QtiAssessmentItem;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
declare class QtiAssessmentStimulusRefConnectedEvent extends Event {
|
|
98
|
+
element: QtiAssessmentStimulusRef;
|
|
99
|
+
item: QtiAssessmentItem;
|
|
100
|
+
static eventName: string;
|
|
101
|
+
constructor(element: QtiAssessmentStimulusRef, item: QtiAssessmentItem);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Represents a custom element for referencing an assessment stimulus.
|
|
105
|
+
*/
|
|
106
|
+
declare class QtiAssessmentStimulusRef extends LitElement {
|
|
107
|
+
identifier: string;
|
|
108
|
+
href: string;
|
|
109
|
+
/**
|
|
110
|
+
* Lifecycle method called when the element is connected to the DOM.
|
|
111
|
+
* First checks if there's a data-stimulus-idref element. If found, loads the stimulus directly.
|
|
112
|
+
* If not found, delegates to the delivery platform via an event.
|
|
113
|
+
*/
|
|
114
|
+
connectedCallback(): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Loads and appends the stimulus to the specified element.
|
|
117
|
+
* @param stimulusRef - The element to which the stimulus will be appended.
|
|
118
|
+
*/
|
|
119
|
+
updateStimulusRef(stimulusRef: Element): Promise<void>;
|
|
120
|
+
}
|
|
121
|
+
declare global {
|
|
122
|
+
interface HTMLElementTagNameMap {
|
|
123
|
+
'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
128
|
+
}
|
|
129
|
+
declare global {
|
|
130
|
+
interface HTMLElementTagNameMap {
|
|
131
|
+
'qti-companion-materials-info': QtiCompanionMaterialsInfo;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
declare class QtiContentBody extends LitElement {
|
|
136
|
+
#private;
|
|
137
|
+
protected context?: ItemContext;
|
|
138
|
+
render(): lit.TemplateResult<1>;
|
|
139
|
+
connectedCallback(): void;
|
|
140
|
+
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
141
|
+
}
|
|
142
|
+
declare global {
|
|
143
|
+
interface HTMLElementTagNameMap {
|
|
144
|
+
'qti-content-body': QtiContentBody;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @summary The qti-context-declaration element declares context variables for an item.
|
|
150
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.qti-context-declaration
|
|
151
|
+
*/
|
|
152
|
+
declare class QtiContextDeclaration extends LitElement {
|
|
153
|
+
identifier: string;
|
|
154
|
+
cardinality: 'single' | 'multiple' | 'ordered' | 'record';
|
|
155
|
+
static styles: lit.CSSResult[];
|
|
156
|
+
render(): lit.TemplateResult<1>;
|
|
157
|
+
}
|
|
158
|
+
declare global {
|
|
159
|
+
interface HTMLElementTagNameMap {
|
|
160
|
+
'qti-context-declaration': QtiContextDeclaration;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
166
|
+
* <qti-custom-operator class="js.org">
|
|
167
|
+
<qti-base-value base-type="string"><![CDATA[
|
|
168
|
+
console.log(context.variables);
|
|
169
|
+
return 'B'
|
|
170
|
+
document.querySelector('qti-end-attempt-interaction').disabled = true;
|
|
171
|
+
]]></qti-base-value>
|
|
172
|
+
</qti-custom-operator>
|
|
173
|
+
</qti-set-outcome-value>
|
|
174
|
+
*/
|
|
175
|
+
declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
176
|
+
#private;
|
|
177
|
+
private _context?;
|
|
178
|
+
render(): lit.TemplateResult<1>;
|
|
179
|
+
handleSlotChange(): void;
|
|
180
|
+
calculate(): any;
|
|
181
|
+
}
|
|
182
|
+
declare global {
|
|
183
|
+
interface HTMLElementTagNameMap {
|
|
184
|
+
'qti-custom-operator': QtiCustomOperator;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
189
|
+
static styles: lit.CSSResult;
|
|
190
|
+
render(): lit.TemplateResult<1>;
|
|
191
|
+
connectedCallback(): void;
|
|
192
|
+
}
|
|
193
|
+
declare global {
|
|
194
|
+
interface HTMLElementTagNameMap {
|
|
195
|
+
'qti-feedback-block': QtiFeedbackBlock;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare class QtiFeedbackInline extends QtiFeedback {
|
|
200
|
+
static styles: lit.CSSResult;
|
|
201
|
+
render: () => lit.TemplateResult<1>;
|
|
202
|
+
connectedCallback(): void;
|
|
203
|
+
}
|
|
204
|
+
declare global {
|
|
205
|
+
interface HTMLElementTagNameMap {
|
|
206
|
+
'qti-feedback-inline': QtiFeedbackInline;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @summary The qti-item-body node contains the text, graphics, media objects and interactions that describe the item's content and information about how it is structured.
|
|
212
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
|
|
213
|
+
* @status stable
|
|
214
|
+
* @since 4.0
|
|
215
|
+
*
|
|
216
|
+
* @slot - item body content.
|
|
217
|
+
* @slot qti-rubric-block - the qti rubric block is placed above the item
|
|
218
|
+
* @part qti-rubric-block - the qti rubric block part
|
|
219
|
+
*/
|
|
220
|
+
declare class QtiItemBody extends LitElement {
|
|
221
|
+
static styles: CSSResultGroup;
|
|
222
|
+
render(): lit.TemplateResult<1>;
|
|
223
|
+
}
|
|
224
|
+
declare global {
|
|
225
|
+
interface HTMLElementTagNameMap {
|
|
226
|
+
'qti-item-body': QtiItemBody;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class QtiModalFeedback extends QtiFeedback {
|
|
231
|
+
static styles: lit.CSSResult;
|
|
232
|
+
render(): lit.TemplateResult<1>;
|
|
233
|
+
openFeedback(): void;
|
|
234
|
+
closeFeedback(): void;
|
|
235
|
+
connectedCallback(): void;
|
|
236
|
+
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
237
|
+
}
|
|
238
|
+
declare global {
|
|
239
|
+
interface HTMLElementTagNameMap {
|
|
240
|
+
'qti-modal-feedback': QtiModalFeedback;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
245
|
+
baseType: BaseType;
|
|
246
|
+
externalScored: 'human' | 'externalMachine' | null;
|
|
247
|
+
identifier: string;
|
|
248
|
+
cardinality: Cardinality;
|
|
249
|
+
itemContext?: ItemContext;
|
|
250
|
+
static styles: lit.CSSResult[];
|
|
251
|
+
render(): lit.TemplateResult<1>;
|
|
252
|
+
get interpolationTable(): Map<number, number> | null;
|
|
253
|
+
connectedCallback(): void;
|
|
254
|
+
}
|
|
255
|
+
declare global {
|
|
256
|
+
interface HTMLElementTagNameMap {
|
|
257
|
+
'qti-outcome-declaration': QtiOutcomeDeclaration;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
262
|
+
#private;
|
|
263
|
+
baseType: BaseType;
|
|
264
|
+
identifier: string;
|
|
265
|
+
cardinality: Cardinality;
|
|
266
|
+
itemContext?: ItemContext;
|
|
267
|
+
static styles: lit.CSSResult[];
|
|
268
|
+
render(): lit.TemplateResult<1>;
|
|
269
|
+
connectedCallback(): void;
|
|
270
|
+
}
|
|
271
|
+
declare global {
|
|
272
|
+
interface HTMLElementTagNameMap {
|
|
273
|
+
'qti-response-declaration': QtiResponseDeclaration;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare class QtiResponseProcessing extends LitElement {
|
|
278
|
+
#private;
|
|
279
|
+
static styles: lit.CSSResult[];
|
|
280
|
+
render(): lit.TemplateResult<1>;
|
|
281
|
+
process(): void;
|
|
282
|
+
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
283
|
+
}
|
|
284
|
+
declare global {
|
|
285
|
+
interface HTMLElementTagNameMap {
|
|
286
|
+
'qti-response-processing': QtiResponseProcessing;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
declare class QtiRubricBlock extends LitElement {
|
|
291
|
+
id: string;
|
|
292
|
+
use: 'instructions' | 'scoring' | 'navigation';
|
|
293
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
294
|
+
classNames: string;
|
|
295
|
+
handleclassNamesChange(): void;
|
|
296
|
+
static styles: lit.CSSResult;
|
|
297
|
+
render(): lit.TemplateResult<1>;
|
|
298
|
+
}
|
|
299
|
+
declare global {
|
|
300
|
+
interface HTMLElementTagNameMap {
|
|
301
|
+
'qti-rubric-block': QtiRubricBlock;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare class QtiStylesheet extends LitElement {
|
|
306
|
+
#private;
|
|
307
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
308
|
+
disconnectedCallback(): void;
|
|
309
|
+
}
|
|
310
|
+
declare global {
|
|
311
|
+
interface HTMLElementTagNameMap {
|
|
312
|
+
'qti-stylesheet': QtiStylesheet;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* @summary The qti-template-constraint element is a processing rule available only in Template Processing.
|
|
318
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-constraint
|
|
319
|
+
*
|
|
320
|
+
* It terminates Template Processing and re-runs it from the beginning if the condition
|
|
321
|
+
* specified in the template constraint is not satisfied. This can be used to iterate
|
|
322
|
+
* the Template Processing with different randomly-generated values until a predetermined
|
|
323
|
+
* condition is satisfied.
|
|
324
|
+
*/
|
|
325
|
+
declare class QtiTemplateConstraint extends LitElement implements QtiRuleBase {
|
|
326
|
+
render(): lit.TemplateResult<1>;
|
|
327
|
+
/**
|
|
328
|
+
* Evaluates the constraint condition
|
|
329
|
+
* @returns true if constraint is satisfied, false if template processing should restart
|
|
330
|
+
*/
|
|
331
|
+
calculate(): boolean;
|
|
332
|
+
/**
|
|
333
|
+
* Template constraints don't have sub-rules like conditions
|
|
334
|
+
*/
|
|
335
|
+
getSubRules(): QtiRuleBase[];
|
|
336
|
+
/**
|
|
337
|
+
* Process the template constraint
|
|
338
|
+
* @returns true if constraint is satisfied, false if template processing should restart
|
|
339
|
+
*/
|
|
340
|
+
process(): boolean;
|
|
341
|
+
}
|
|
342
|
+
declare global {
|
|
343
|
+
interface HTMLElementTagNameMap {
|
|
344
|
+
'qti-template-constraint': QtiTemplateConstraint;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @summary The qti-template-declaration element declares template variables for item cloning.
|
|
350
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-declaration
|
|
351
|
+
*/
|
|
352
|
+
declare class QtiTemplateDeclaration extends LitElement {
|
|
353
|
+
#private;
|
|
354
|
+
identifier: string;
|
|
355
|
+
cardinality: 'single' | 'multiple' | 'ordered' | 'record';
|
|
356
|
+
baseType: BaseType;
|
|
357
|
+
mathVariable: boolean;
|
|
358
|
+
paramVariable: boolean;
|
|
359
|
+
static styles: lit.CSSResult[];
|
|
360
|
+
render(): lit.TemplateResult<1>;
|
|
361
|
+
connectedCallback(): void;
|
|
362
|
+
/**
|
|
363
|
+
* Get the template variable definition
|
|
364
|
+
*/
|
|
365
|
+
getTemplateVariable(): TemplateVariable;
|
|
366
|
+
}
|
|
367
|
+
declare global {
|
|
368
|
+
interface HTMLElementTagNameMap {
|
|
369
|
+
'qti-template-declaration': QtiTemplateDeclaration;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* @summary The qti-template-processing element contains template processing rules.
|
|
375
|
+
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-processing
|
|
376
|
+
*/
|
|
377
|
+
declare class QtiTemplateProcessing extends LitElement {
|
|
378
|
+
#private;
|
|
379
|
+
static styles: lit.CSSResult[];
|
|
380
|
+
render(): lit.TemplateResult<1>;
|
|
381
|
+
/**
|
|
382
|
+
* Process template rules to set template variable values
|
|
383
|
+
*/
|
|
384
|
+
process(): void;
|
|
385
|
+
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
386
|
+
}
|
|
387
|
+
declare global {
|
|
388
|
+
interface HTMLElementTagNameMap {
|
|
389
|
+
'qti-template-processing': QtiTemplateProcessing;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
|
package/dist/elements.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-NJQHUUTN.js";
|
|
2
2
|
import {
|
|
3
3
|
QtiAssessmentItem,
|
|
4
4
|
QtiAssessmentStimulusRef,
|
|
@@ -19,11 +19,10 @@ import {
|
|
|
19
19
|
QtiTemplateConstraint,
|
|
20
20
|
QtiTemplateDeclaration,
|
|
21
21
|
QtiTemplateProcessing
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-64XSIBGO.js";
|
|
22
|
+
} from "./chunk-7AVWRQIS.js";
|
|
23
|
+
import "./chunk-4DB4SC5K.js";
|
|
25
24
|
import "./chunk-IJD53WY6.js";
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-HQESINXH.js";
|
|
27
26
|
export {
|
|
28
27
|
QtiAssessmentItem,
|
|
29
28
|
QtiAssessmentStimulusRef,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
1
|
+
export { I as ITestNavigationMixin, Q as QtiAssessmentItemRef, a as QtiAssessmentSection, b as QtiAssessmentTest, c as QtiOutcomeProcessing, d as QtiOutcomeProcessingProcessor, e as QtiTest, f as QtiTestFeedback, g as QtiTestPart, h as QtiTestVariables, i as QtiTestVariablesExpression, S as SpeechState, T as TestCheckItem, j as TestContainer, k as TestEndAttempt, l as TestItemLink, m as TestItemToSpeech, n as TestNavigation, o as TestNext, p as TestPagingButtonsStamp, q as TestPrev, r as TestPrintContext, s as TestPrintVariables, t as TestScoringButtons, u as TestScoringFeedback, v as TestSectionButtonsStamp, w as TestSectionLink, x as TestStamp, y as TestTtsNext, z as TestTtsPause, A as TestTtsPlay, B as TestTtsPrev, C as TestTtsResume, D as TestTtsStop, E as TestView, F as TestViewToggle, G as TtsContext, H as ttsContext } from './qti-test.d-_YAlhDbt.js';
|
|
2
|
+
export { IMyQtiTest, IQtiTest, ITestProcessingMixin } from './test.js';
|
|
3
|
+
export { ItemContainer, ItemPrintVariables, QtiItem } from './item.js';
|
|
4
|
+
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing } from './elements.js';
|
|
5
|
+
export { QtiCustomInteraction, QtiEndAttemptInteraction, QtiMediaInteraction, QtiPositionObjectInteraction, QtiPositionObjectStage, QtiUploadInteraction, qtiInteractionElements } from './interactions.js';
|
|
6
|
+
export { O as Orientation, Q as QtiAssociableHotspot, a as QtiAssociateInteraction, b as QtiChoiceInteraction, c as QtiExtendedTextInteraction, d as QtiGap, e as QtiGapImg, f as QtiGapMatchInteraction, g as QtiGapText, h as QtiGraphicAssociateInteraction, i as QtiGraphicGapMatchInteraction, j as QtiGraphicOrderInteraction, k as QtiHotspotChoice, l as QtiHotspotInteraction, m as QtiHottext, n as QtiHottextInteraction, o as QtiInlineChoice, p as QtiInlineChoiceInteraction, q as QtiMatchInteraction, r as QtiOrderInteraction, s as QtiPortableCustomInteraction, t as QtiPrompt, u as QtiSelectPointInteraction, v as QtiSimpleAssociableChoice, w as QtiSimpleChoice, x as QtiSliderInteraction, y as QtiTextEntryInteraction } from './qti-text-entry-interaction.d-BGdfV9qG.js';
|
|
7
|
+
export { M as ModuleResolutionConfig, q as qtiTransformItem, a as qtiTransformTest, t as transformItemApi, b as transformTestApi } from './qti-transform-test.d-BL7GGFJj.js';
|
|
8
|
+
export { qtiTransformManifest } from './transformers.js';
|
|
9
|
+
export { ManifestInfo, getItemByUri, getManifestInfo } from './loader.js';
|
|
10
|
+
export { IsNullOrUndefined, ScoringHelper, boxSizing, computedContext, computedItemContext, convertNumberToUniversalFormat, decimalSeparator, dropRegion, itemContext, removeDoubleSlashes, validationMessage } from './base.js';
|
|
11
|
+
export { C as ComputedItemContext } from './computed-item.types.d-BKZdSLLJ.js';
|
|
12
|
+
export { C as ComputedContext, a as ComputedItem, I as INITIAL_SESSION_CONTEXT, S as SessionContext, V as View, s as sessionContext } from './computed.types.d-DpKIYO6e.js';
|
|
13
|
+
export { C as ConfigContext, V as ValidationDisplayMode, c as configContext } from './config.context.d-BvU9r-Mg.js';
|
|
14
|
+
export { C as ChoiceRole, I as Interaction, a as InteractionContext, i as interactionContext } from './interaction.d-CJiMv8H7.js';
|
|
15
|
+
export { B as BaseType, C as Calculate, a as Cardinality, I as ItemContext, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer, l as itemContextVariables } from './item.types.d-QU7LljEK.js';
|
|
16
|
+
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context.d-CejJMlfZ.js';
|
|
17
|
+
export { I as INITIAL_TEST_CONTEXT, Q as QtiExpression, a as QtiExpressionBase, T as TestContext, t as testContext } from './qti-expression.d-BietT_8b.js';
|
|
18
|
+
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback.d-DZbad0RN.js';
|
|
19
|
+
export { Q as QtiConditionExpression } from './qti-condition-expression.d-aMvBvpc6.js';
|
|
20
|
+
export { D as DirectedPair, I as Identifier, P as Point, R as ResponseValue, i as iterResponseValues, p as parsePair, a as parsePoint, b as parseResponseAttribute, r as responseAttributeConverter, s as serializePair, c as serializePoint, d as serializeResponseAttribute } from './response.d-_8y4kjGP.js';
|
|
21
|
+
export { F as FormAssociatedInteraction, I as IInteraction, R as ReadonlyInteraction, a as RegisteredInteraction, b as ResettableInteraction, c as ResponseIdentifiedInteraction, d as ResponseInteractionElement, V as ValidatableInteraction } from './interaction.interface.d-CvjHM2bi.js';
|
|
22
|
+
export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base.d-ajOnfGXY.js';
|
|
23
|
+
export { QtiAnd, QtiAnyN, QtiBaseValue, QtiContainerSize, QtiContains, QtiCorrect, QtiDefault, QtiDelete, QtiDivide, QtiDurationGte, QtiDurationLt, QtiEqual, QtiEqualRounded, QtiFieldValue, QtiGcd, QtiGt, QtiGte, QtiIndex, QtiInside, QtiIntegerDivide, QtiIntegerModulus, QtiIntegerToFloat, QtiIsNull, QtiLcm, QtiLookupOutcomeValue, QtiLt, QtiLte, QtiMapResponse, QtiMapResponsePoint, QtiMatch, QtiMathOperator, QtiMax, QtiMember, QtiMin, QtiMultiple, QtiNot, QtiNull, QtiOr, QtiOrdered, QtiPatternMatch, QtiPower, QtiPrintedVariable, QtiProduct, QtiRandom, QtiRandomInteger, QtiRepeat, QtiResponseCondition, QtiResponseElse, QtiResponseElseIf, QtiResponseIf, QtiRound, QtiRoundTo, QtiSetCorrectResponse, QtiSetCorrectResponseRule, QtiSetOutcomeValue, QtiSetOutcomeValueRule, QtiSetTemplateValue, QtiSetTemplateValueRule, QtiStatsOperator, QtiStringMatch, QtiSubstring, QtiSubtract, QtiSum, QtiSumExpression, QtiTruncate, QtiVariable, qtiAndMixin, qtiSubtractMixin } from './processing.js';
|
|
24
|
+
export { CandidateCorrectionMixin, ChoiceCorrectionMixin, CorrectResponseInterface, CorrectResponseMixin, CorrectResponseMode, CorrectionConfig, Correctness, ItemCorrectResponseMode, ItemShowCandidateCorrection, ItemShowCorrectResponse, QtiAssessmentItemCorrection, QtiAssociateInteractionCorrection, QtiChoiceInteractionCorrection, QtiExtendedTextInteractionCorrection, QtiGapMatchInteractionCorrection, QtiGapTextCorrection, QtiGraphicAssociateInteractionCorrection, QtiGraphicGapMatchInteractionCorrection, QtiGraphicOrderInteractionCorrection, QtiHotspotChoiceCorrection, QtiHotspotInteractionCorrection, QtiHottextCorrection, QtiHottextInteractionCorrection, QtiInlineChoiceInteractionCorrection, QtiItemCorrection, QtiMatchInteractionCorrection, QtiOrderInteractionCorrection, QtiPortableCustomInteractionCorrection, QtiSelectPointInteractionCorrection, QtiSimpleAssociableChoiceCorrection, QtiSimpleChoiceCorrection, QtiSliderInteractionCorrection, QtiTestCorrection, QtiTextEntryInteractionCorrection, TestCheckItemCorrection, TestNavigationCorrection, TestShowCorrectResponse, correctionPart } from './corrections.js';
|
|
25
|
+
import 'lit';
|
|
26
|
+
import '@heximal/templates';
|
|
27
|
+
import 'lit/directives/ref.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-BQFWCZFH.js";
|
|
2
2
|
import {
|
|
3
3
|
CandidateCorrectionMixin,
|
|
4
4
|
ChoiceCorrectionMixin,
|
|
@@ -35,14 +35,18 @@ import {
|
|
|
35
35
|
TestNavigationCorrection,
|
|
36
36
|
TestShowCorrectResponse,
|
|
37
37
|
correctionPart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-J5SQLKNP.js";
|
|
39
39
|
import {
|
|
40
40
|
QtiAssessmentItemRef,
|
|
41
41
|
QtiAssessmentSection,
|
|
42
42
|
QtiAssessmentTest,
|
|
43
|
+
QtiOutcomeProcessing,
|
|
44
|
+
QtiOutcomeProcessingProcessor,
|
|
43
45
|
QtiTest,
|
|
44
46
|
QtiTestFeedback,
|
|
45
47
|
QtiTestPart,
|
|
48
|
+
QtiTestVariables,
|
|
49
|
+
QtiTestVariablesExpression,
|
|
46
50
|
TestCheckItem,
|
|
47
51
|
TestContainer,
|
|
48
52
|
TestEndAttempt,
|
|
@@ -68,8 +72,8 @@ import {
|
|
|
68
72
|
TestView,
|
|
69
73
|
TestViewToggle,
|
|
70
74
|
ttsContext
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import "./chunk-
|
|
75
|
+
} from "./chunk-HBSWJC3B.js";
|
|
76
|
+
import "./chunk-NJQHUUTN.js";
|
|
73
77
|
import {
|
|
74
78
|
QtiAssessmentItem,
|
|
75
79
|
QtiAssessmentStimulusRef,
|
|
@@ -90,7 +94,7 @@ import {
|
|
|
90
94
|
QtiTemplateConstraint,
|
|
91
95
|
QtiTemplateDeclaration,
|
|
92
96
|
QtiTemplateProcessing
|
|
93
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-7AVWRQIS.js";
|
|
94
98
|
import {
|
|
95
99
|
QtiAssociableHotspot,
|
|
96
100
|
QtiCustomInteraction,
|
|
@@ -104,7 +108,7 @@ import {
|
|
|
104
108
|
QtiPrompt,
|
|
105
109
|
QtiUploadInteraction,
|
|
106
110
|
qtiInteractionElements
|
|
107
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-CK7AV2UJ.js";
|
|
108
112
|
import {
|
|
109
113
|
QtiAssociateInteraction,
|
|
110
114
|
QtiChoiceInteraction,
|
|
@@ -127,16 +131,15 @@ import {
|
|
|
127
131
|
QtiSimpleChoice,
|
|
128
132
|
QtiSliderInteraction,
|
|
129
133
|
QtiTextEntryInteraction
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import "./chunk-
|
|
132
|
-
import "./chunk-MJVPNN7W.js";
|
|
134
|
+
} from "./chunk-TWPXES3S.js";
|
|
135
|
+
import "./chunk-ZII6M3SN.js";
|
|
133
136
|
import {
|
|
134
137
|
ItemContainer,
|
|
135
138
|
ItemPrintVariables,
|
|
136
139
|
QtiItem
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-
|
|
140
|
+
} from "./chunk-RSVRS5AK.js";
|
|
141
|
+
import "./chunk-G6GFQDVN.js";
|
|
142
|
+
import "./chunk-4DB4SC5K.js";
|
|
140
143
|
import {
|
|
141
144
|
getItemByUri,
|
|
142
145
|
getManifestInfo
|
|
@@ -215,7 +218,7 @@ import {
|
|
|
215
218
|
QtiVariable,
|
|
216
219
|
qtiAndMixin,
|
|
217
220
|
qtiSubtractMixin
|
|
218
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-VAE6HBKR.js";
|
|
219
222
|
import {
|
|
220
223
|
INITIAL_SESSION_CONTEXT,
|
|
221
224
|
INITIAL_TEST_CONTEXT,
|
|
@@ -252,7 +255,7 @@ import {
|
|
|
252
255
|
sessionContext,
|
|
253
256
|
testContext,
|
|
254
257
|
validationMessage
|
|
255
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-HQESINXH.js";
|
|
256
259
|
export {
|
|
257
260
|
CandidateCorrectionMixin,
|
|
258
261
|
ChoiceCorrectionMixin,
|
|
@@ -364,6 +367,8 @@ export {
|
|
|
364
367
|
QtiOrderInteractionCorrection,
|
|
365
368
|
QtiOrdered,
|
|
366
369
|
QtiOutcomeDeclaration,
|
|
370
|
+
QtiOutcomeProcessing,
|
|
371
|
+
QtiOutcomeProcessingProcessor,
|
|
367
372
|
QtiPatternMatch,
|
|
368
373
|
QtiPortableCustomInteraction,
|
|
369
374
|
QtiPortableCustomInteractionCorrection,
|
|
@@ -414,6 +419,8 @@ export {
|
|
|
414
419
|
QtiTestCorrection,
|
|
415
420
|
QtiTestFeedback,
|
|
416
421
|
QtiTestPart,
|
|
422
|
+
QtiTestVariables,
|
|
423
|
+
QtiTestVariablesExpression,
|
|
417
424
|
QtiTextEntryInteraction,
|
|
418
425
|
QtiTextEntryInteractionCorrection,
|
|
419
426
|
QtiTruncate,
|