@citolab/qti-components 7.28.1 → 8.0.0
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 +6205 -2973
- package/dist/base.d.ts +9 -50
- package/dist/base.js +27 -6
- package/dist/chunk-5QYII4OZ.js +1374 -0
- package/dist/chunk-5QYII4OZ.js.map +1 -0
- package/dist/{chunk-MPC7LIPC.js → chunk-5SJS36BI.js} +4264 -3647
- package/dist/chunk-5SJS36BI.js.map +1 -0
- package/dist/chunk-64XSIBGO.js +241 -0
- package/dist/chunk-64XSIBGO.js.map +1 -0
- package/dist/{chunk-SP6S2WMG.js → chunk-7V4HJFHW.js} +3 -3
- package/dist/{chunk-SP6S2WMG.js.map → chunk-7V4HJFHW.js.map} +1 -1
- package/dist/{chunk-3XV26R5M.js → chunk-H3J7LFRO.js} +829 -1005
- package/dist/chunk-H3J7LFRO.js.map +1 -0
- package/dist/{chunk-3WBG257S.js → chunk-IJD53WY6.js} +96 -74
- package/dist/chunk-IJD53WY6.js.map +1 -0
- package/dist/chunk-KYEZRYO6.js +1608 -0
- package/dist/chunk-KYEZRYO6.js.map +1 -0
- package/dist/{chunk-HFCZFWSH.js → chunk-LZJHHZQ2.js} +1954 -1729
- package/dist/chunk-LZJHHZQ2.js.map +1 -0
- package/dist/chunk-MGF5F3S2.js +11 -0
- package/dist/chunk-MGF5F3S2.js.map +1 -0
- package/dist/chunk-MJVPNN7W.js +11 -0
- package/dist/chunk-MJVPNN7W.js.map +1 -0
- package/dist/{chunk-REI3AMCZ.js → chunk-NA2N2WSG.js} +1303 -1193
- package/dist/chunk-NA2N2WSG.js.map +1 -0
- package/dist/chunk-V5G7X53Y.js +11 -0
- package/dist/chunk-V5G7X53Y.js.map +1 -0
- package/dist/chunk-W4QZPCNC.js +294 -0
- package/dist/chunk-W4QZPCNC.js.map +1 -0
- package/dist/chunk-WCQ26LV7.js +102 -0
- package/dist/chunk-WCQ26LV7.js.map +1 -0
- package/dist/{chunk-WDO2TRFM.js → chunk-WVVMNF74.js} +851 -925
- package/dist/chunk-WVVMNF74.js.map +1 -0
- package/dist/{chunk-FLJAKWXL.js → chunk-X3E5HXG2.js} +2 -2
- package/dist/corrections.d.ts +1 -0
- package/dist/corrections.js +84 -0
- package/dist/elements.d.ts +1 -399
- package/dist/elements.js +6 -5
- package/dist/index.d.ts +9 -23
- package/dist/index.js +185 -76
- package/dist/interactions.d.ts +1 -915
- package/dist/interactions.js +19 -15
- package/dist/item.css +4118 -1920
- package/dist/item.d.ts +1 -134
- package/dist/item.js +6 -11
- package/dist/loader.d.ts +1 -22
- package/dist/loader.js +2 -3
- package/dist/processing.d.ts +1 -731
- package/dist/processing.js +2 -3
- package/dist/qti-components-jsx.d.ts +5220 -2571
- package/dist/test.d.ts +1 -539
- package/dist/test.js +26 -11
- package/dist/transformers.d.ts +1 -18
- package/dist/transformers.js +1 -2
- package/package.json +19 -15
- package/custom-elements.json +0 -43251
- package/dist/chunk-3WBG257S.js.map +0 -1
- package/dist/chunk-3XV26R5M.js.map +0 -1
- package/dist/chunk-AQ5RJFM6.js +0 -3673
- package/dist/chunk-AQ5RJFM6.js.map +0 -1
- package/dist/chunk-HFCZFWSH.js.map +0 -1
- package/dist/chunk-MPC7LIPC.js.map +0 -1
- package/dist/chunk-QXBXORM3.js +0 -27
- package/dist/chunk-REI3AMCZ.js.map +0 -1
- package/dist/chunk-RLTYVS2I.js +0 -530
- package/dist/chunk-RLTYVS2I.js.map +0 -1
- package/dist/chunk-WDO2TRFM.js.map +0 -1
- package/dist/computed-item.context-DfsW_96S.d.ts +0 -22
- package/dist/computed.context-DHbxad0N.d.ts +0 -45
- package/dist/config.context-BjZ2bZSY.d.ts +0 -42
- package/dist/interaction-Bgzlw7Iu.d.ts +0 -110
- package/dist/item.context-CkUeDcaO.d.ts +0 -15
- package/dist/qti-condition-expression-Dam-RER6.d.ts +0 -26
- package/dist/qti-feedback-ChmXhZuf.d.ts +0 -21
- package/dist/qti-rule-base-ajOnfGXY.d.ts +0 -16
- package/dist/qti-transform-test-DoZaWItm.d.ts +0 -70
- package/dist/qti.context-CejJMlfZ.d.ts +0 -50
- package/dist/test.context-CByZZjkR.d.ts +0 -15
- package/dist/variables-CMYcDbyW.d.ts +0 -70
- /package/dist/{chunk-FLJAKWXL.js.map → chunk-X3E5HXG2.js.map} +0 -0
- /package/dist/{chunk-QXBXORM3.js.map → corrections.js.map} +0 -0
package/dist/elements.d.ts
CHANGED
|
@@ -1,399 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { LitElement, CSSResultGroup, PropertyValueMap } from 'lit';
|
|
3
|
-
import { g as VariableValue, 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 './variables-CMYcDbyW.js';
|
|
4
|
-
import { I as ItemContext } from './item.context-CkUeDcaO.js';
|
|
5
|
-
import { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-ChmXhZuf.js';
|
|
6
|
-
import { Q as QtiRuleBase } from './qti-rule-base-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
|
-
/** @deprecated use variables property instead */
|
|
42
|
-
set responses(myResponses: ResponseInteraction[]);
|
|
43
|
-
render(): lit.TemplateResult<1>;
|
|
44
|
-
connectedCallback(): void;
|
|
45
|
-
disconnectedCallback(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Toggles the display of correct responses for all interactions.
|
|
48
|
-
* @param show - A boolean indicating whether to show or hide correct responses.
|
|
49
|
-
*/
|
|
50
|
-
showCorrectResponse(show: boolean): void;
|
|
51
|
-
/**
|
|
52
|
-
* Toggles the display of the candidate correction for all interactions.
|
|
53
|
-
* @param show - A boolean indicating whether to show or hide candidate correction.
|
|
54
|
-
*/
|
|
55
|
-
showCandidateCorrection(show: boolean): void;
|
|
56
|
-
processResponse(countNumAttempts?: boolean, reportValidityAfterScoring?: boolean): boolean;
|
|
57
|
-
resetResponses(): void;
|
|
58
|
-
protected getResponse(identifier: string): Readonly<ResponseVariable>;
|
|
59
|
-
getOutcome(identifier: string): Readonly<OutcomeVariable>;
|
|
60
|
-
protected getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
|
|
61
|
-
/**
|
|
62
|
-
* Updates the response variable with the specified identifier to the given value.
|
|
63
|
-
*
|
|
64
|
-
* @protected
|
|
65
|
-
*
|
|
66
|
-
* This method is intended for internal use within the class and subclasses.
|
|
67
|
-
* It should not be called externally by third parties.
|
|
68
|
-
*
|
|
69
|
-
* @param identifier - The identifier of the response variable to update.
|
|
70
|
-
* @param value - The new value for the response variable.
|
|
71
|
-
*/
|
|
72
|
-
updateResponseVariable(identifier: string, value: string | string[] | undefined): void;
|
|
73
|
-
/**
|
|
74
|
-
* Updates the template variable with the specified identifier to the given value.
|
|
75
|
-
*/
|
|
76
|
-
updateTemplateVariable(identifier: string, value: string | string[] | undefined): void;
|
|
77
|
-
/**
|
|
78
|
-
* Updates the correct response for the specified response variable.
|
|
79
|
-
*/
|
|
80
|
-
updateCorrectResponse(identifier: string, value: string | string[] | undefined): void;
|
|
81
|
-
setOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
82
|
-
/**
|
|
83
|
-
* Updates the outcome variable with the specified identifier to the given value.
|
|
84
|
-
*
|
|
85
|
-
* @protected
|
|
86
|
-
*
|
|
87
|
-
* This method is intended for internal use within the class and subclasses.
|
|
88
|
-
* It should not be called externally by third parties.
|
|
89
|
-
*
|
|
90
|
-
* @param identifier - The identifier of the response variable to update.
|
|
91
|
-
* @param value - The new value for the response variable.
|
|
92
|
-
*/
|
|
93
|
-
updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
|
|
94
|
-
validate(reportValidity?: boolean): boolean;
|
|
95
|
-
reportValidity(): void;
|
|
96
|
-
}
|
|
97
|
-
declare global {
|
|
98
|
-
interface HTMLElementTagNameMap {
|
|
99
|
-
'qti-assessment-item': QtiAssessmentItem;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare class QtiAssessmentStimulusRefConnectedEvent extends Event {
|
|
104
|
-
element: QtiAssessmentStimulusRef;
|
|
105
|
-
item: QtiAssessmentItem;
|
|
106
|
-
static eventName: string;
|
|
107
|
-
constructor(element: QtiAssessmentStimulusRef, item: QtiAssessmentItem);
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Represents a custom element for referencing an assessment stimulus.
|
|
111
|
-
*/
|
|
112
|
-
declare class QtiAssessmentStimulusRef extends LitElement {
|
|
113
|
-
identifier: string;
|
|
114
|
-
href: string;
|
|
115
|
-
/**
|
|
116
|
-
* Lifecycle method called when the element is connected to the DOM.
|
|
117
|
-
* First checks if there's a data-stimulus-idref element. If found, loads the stimulus directly.
|
|
118
|
-
* If not found, delegates to the delivery platform via an event.
|
|
119
|
-
*/
|
|
120
|
-
connectedCallback(): Promise<void>;
|
|
121
|
-
/**
|
|
122
|
-
* Loads and appends the stimulus to the specified element.
|
|
123
|
-
* @param stimulusRef - The element to which the stimulus will be appended.
|
|
124
|
-
*/
|
|
125
|
-
updateStimulusRef(stimulusRef: Element): Promise<void>;
|
|
126
|
-
}
|
|
127
|
-
declare global {
|
|
128
|
-
interface HTMLElementTagNameMap {
|
|
129
|
-
'qti-assessment-stimulus-ref': QtiAssessmentStimulusRef;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
declare class QtiCompanionMaterialsInfo extends LitElement {
|
|
134
|
-
}
|
|
135
|
-
declare global {
|
|
136
|
-
interface HTMLElementTagNameMap {
|
|
137
|
-
'qti-companion-materials-info': QtiCompanionMaterialsInfo;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* https://www.imsglobal.org/spec/qti/v3p0/impl#h.fi29q8dubjgw
|
|
143
|
-
* <qti-custom-operator class="js.org">
|
|
144
|
-
<qti-base-value base-type="string"><![CDATA[
|
|
145
|
-
console.log(context.variables);
|
|
146
|
-
return 'B'
|
|
147
|
-
document.querySelector('qti-end-attempt-interaction').disabled = true;
|
|
148
|
-
]]></qti-base-value>
|
|
149
|
-
</qti-custom-operator>
|
|
150
|
-
</qti-set-outcome-value>
|
|
151
|
-
*/
|
|
152
|
-
declare class QtiCustomOperator extends LitElement implements Calculate {
|
|
153
|
-
#private;
|
|
154
|
-
private _context?;
|
|
155
|
-
render(): lit.TemplateResult<1>;
|
|
156
|
-
handleSlotChange(): void;
|
|
157
|
-
calculate(): any;
|
|
158
|
-
}
|
|
159
|
-
declare global {
|
|
160
|
-
interface HTMLElementTagNameMap {
|
|
161
|
-
'qti-custom-operator': QtiCustomOperator;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
declare class QtiFeedbackBlock extends QtiFeedback {
|
|
166
|
-
static styles: lit.CSSResult;
|
|
167
|
-
render(): lit.TemplateResult<1>;
|
|
168
|
-
connectedCallback(): void;
|
|
169
|
-
}
|
|
170
|
-
declare global {
|
|
171
|
-
interface HTMLElementTagNameMap {
|
|
172
|
-
'qti-feedback-block': QtiFeedbackBlock;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
declare class QtiFeedbackInline extends QtiFeedback {
|
|
177
|
-
static styles: lit.CSSResult;
|
|
178
|
-
render: () => lit.TemplateResult<1>;
|
|
179
|
-
connectedCallback(): void;
|
|
180
|
-
}
|
|
181
|
-
declare global {
|
|
182
|
-
interface HTMLElementTagNameMap {
|
|
183
|
-
'qti-feedback-inline': QtiFeedbackInline;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
declare class QtiModalFeedback extends QtiFeedback {
|
|
188
|
-
static styles: lit.CSSResult;
|
|
189
|
-
render(): lit.TemplateResult<1>;
|
|
190
|
-
openFeedback(): void;
|
|
191
|
-
closeFeedback(): void;
|
|
192
|
-
connectedCallback(): void;
|
|
193
|
-
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
194
|
-
}
|
|
195
|
-
declare global {
|
|
196
|
-
interface HTMLElementTagNameMap {
|
|
197
|
-
'qti-modal-feedback': QtiModalFeedback;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @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.
|
|
203
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.sphpo6lu6zqi
|
|
204
|
-
* @status stable
|
|
205
|
-
* @since 4.0
|
|
206
|
-
*
|
|
207
|
-
* @slot - item body content.
|
|
208
|
-
* @slot qti-rubric-block - the qti rubric block is placed above the item
|
|
209
|
-
* @part qti-rubric-block - the qti rubric block part
|
|
210
|
-
*/
|
|
211
|
-
declare class QtiItemBody extends LitElement {
|
|
212
|
-
static styles: CSSResultGroup;
|
|
213
|
-
render(): lit.TemplateResult<1>;
|
|
214
|
-
}
|
|
215
|
-
declare global {
|
|
216
|
-
interface HTMLElementTagNameMap {
|
|
217
|
-
'qti-item-body': QtiItemBody;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare class QtiContentBody extends LitElement {
|
|
222
|
-
#private;
|
|
223
|
-
protected context?: ItemContext;
|
|
224
|
-
render(): lit.TemplateResult<1>;
|
|
225
|
-
connectedCallback(): void;
|
|
226
|
-
protected updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
227
|
-
}
|
|
228
|
-
declare global {
|
|
229
|
-
interface HTMLElementTagNameMap {
|
|
230
|
-
'qti-content-body': QtiContentBody;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
declare class QtiRubricBlock extends LitElement {
|
|
235
|
-
id: string;
|
|
236
|
-
use: 'instructions' | 'scoring' | 'navigation';
|
|
237
|
-
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
238
|
-
classNames: string;
|
|
239
|
-
handleclassNamesChange(): void;
|
|
240
|
-
static styles: lit.CSSResult;
|
|
241
|
-
render(): lit.TemplateResult<1>;
|
|
242
|
-
}
|
|
243
|
-
declare global {
|
|
244
|
-
interface HTMLElementTagNameMap {
|
|
245
|
-
'qti-rubric-block': QtiRubricBlock;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
declare class QtiStylesheet extends LitElement {
|
|
250
|
-
#private;
|
|
251
|
-
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
252
|
-
disconnectedCallback(): void;
|
|
253
|
-
}
|
|
254
|
-
declare global {
|
|
255
|
-
interface HTMLElementTagNameMap {
|
|
256
|
-
'qti-stylesheet': QtiStylesheet;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
261
|
-
#private;
|
|
262
|
-
baseType: BaseType;
|
|
263
|
-
identifier: string;
|
|
264
|
-
cardinality: Cardinality;
|
|
265
|
-
itemContext?: ItemContext;
|
|
266
|
-
static styles: lit.CSSResult[];
|
|
267
|
-
render(): lit.TemplateResult<1>;
|
|
268
|
-
connectedCallback(): void;
|
|
269
|
-
}
|
|
270
|
-
declare global {
|
|
271
|
-
interface HTMLElementTagNameMap {
|
|
272
|
-
'qti-response-declaration': QtiResponseDeclaration;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
declare class QtiOutcomeDeclaration extends QtiVariableDeclaration {
|
|
277
|
-
baseType: BaseType;
|
|
278
|
-
externalScored: 'human' | 'externalMachine' | null;
|
|
279
|
-
identifier: string;
|
|
280
|
-
cardinality: Cardinality;
|
|
281
|
-
itemContext?: ItemContext;
|
|
282
|
-
static styles: lit.CSSResult[];
|
|
283
|
-
render(): lit.TemplateResult<1>;
|
|
284
|
-
get interpolationTable(): Map<number, number> | null;
|
|
285
|
-
connectedCallback(): void;
|
|
286
|
-
}
|
|
287
|
-
declare global {
|
|
288
|
-
interface HTMLElementTagNameMap {
|
|
289
|
-
'qti-outcome-declaration': QtiOutcomeDeclaration;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare class QtiResponseProcessing extends LitElement {
|
|
294
|
-
#private;
|
|
295
|
-
static styles: lit.CSSResult[];
|
|
296
|
-
render(): lit.TemplateResult<1>;
|
|
297
|
-
process(): void;
|
|
298
|
-
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
299
|
-
}
|
|
300
|
-
declare global {
|
|
301
|
-
interface HTMLElementTagNameMap {
|
|
302
|
-
'qti-response-processing': QtiResponseProcessing;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @summary The qti-template-declaration element declares template variables for item cloning.
|
|
308
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-declaration
|
|
309
|
-
*/
|
|
310
|
-
declare class QtiTemplateDeclaration extends LitElement {
|
|
311
|
-
#private;
|
|
312
|
-
identifier: string;
|
|
313
|
-
cardinality: 'single' | 'multiple' | 'ordered' | 'record';
|
|
314
|
-
baseType: BaseType;
|
|
315
|
-
mathVariable: boolean;
|
|
316
|
-
paramVariable: boolean;
|
|
317
|
-
static styles: lit.CSSResult[];
|
|
318
|
-
render(): lit.TemplateResult<1>;
|
|
319
|
-
connectedCallback(): void;
|
|
320
|
-
/**
|
|
321
|
-
* Get the template variable definition
|
|
322
|
-
*/
|
|
323
|
-
getTemplateVariable(): TemplateVariable;
|
|
324
|
-
}
|
|
325
|
-
declare global {
|
|
326
|
-
interface HTMLElementTagNameMap {
|
|
327
|
-
'qti-template-declaration': QtiTemplateDeclaration;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @summary The qti-template-processing element contains template processing rules.
|
|
333
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-processing
|
|
334
|
-
*/
|
|
335
|
-
declare class QtiTemplateProcessing extends LitElement {
|
|
336
|
-
#private;
|
|
337
|
-
static styles: lit.CSSResult[];
|
|
338
|
-
render(): lit.TemplateResult<1>;
|
|
339
|
-
/**
|
|
340
|
-
* Process template rules to set template variable values
|
|
341
|
-
*/
|
|
342
|
-
process(): void;
|
|
343
|
-
firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
344
|
-
}
|
|
345
|
-
declare global {
|
|
346
|
-
interface HTMLElementTagNameMap {
|
|
347
|
-
'qti-template-processing': QtiTemplateProcessing;
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* @summary The qti-template-constraint element is a processing rule available only in Template Processing.
|
|
353
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-constraint
|
|
354
|
-
*
|
|
355
|
-
* It terminates Template Processing and re-runs it from the beginning if the condition
|
|
356
|
-
* specified in the template constraint is not satisfied. This can be used to iterate
|
|
357
|
-
* the Template Processing with different randomly-generated values until a predetermined
|
|
358
|
-
* condition is satisfied.
|
|
359
|
-
*/
|
|
360
|
-
declare class QtiTemplateConstraint extends LitElement implements QtiRuleBase {
|
|
361
|
-
render(): lit.TemplateResult<1>;
|
|
362
|
-
/**
|
|
363
|
-
* Evaluates the constraint condition
|
|
364
|
-
* @returns true if constraint is satisfied, false if template processing should restart
|
|
365
|
-
*/
|
|
366
|
-
calculate(): boolean;
|
|
367
|
-
/**
|
|
368
|
-
* Template constraints don't have sub-rules like conditions
|
|
369
|
-
*/
|
|
370
|
-
getSubRules(): QtiRuleBase[];
|
|
371
|
-
/**
|
|
372
|
-
* Process the template constraint
|
|
373
|
-
* @returns true if constraint is satisfied, false if template processing should restart
|
|
374
|
-
*/
|
|
375
|
-
process(): boolean;
|
|
376
|
-
}
|
|
377
|
-
declare global {
|
|
378
|
-
interface HTMLElementTagNameMap {
|
|
379
|
-
'qti-template-constraint': QtiTemplateConstraint;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* @summary The qti-context-declaration element declares context variables for an item.
|
|
385
|
-
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.qti-context-declaration
|
|
386
|
-
*/
|
|
387
|
-
declare class QtiContextDeclaration extends LitElement {
|
|
388
|
-
identifier: string;
|
|
389
|
-
cardinality: 'single' | 'multiple' | 'ordered' | 'record';
|
|
390
|
-
static styles: lit.CSSResult[];
|
|
391
|
-
render(): lit.TemplateResult<1>;
|
|
392
|
-
}
|
|
393
|
-
declare global {
|
|
394
|
-
interface HTMLElementTagNameMap {
|
|
395
|
-
'qti-context-declaration': QtiContextDeclaration;
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiAssessmentStimulusRefConnectedEvent, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
|
|
1
|
+
export * from '@qti-components/elements';
|
package/dist/elements.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-V5G7X53Y.js";
|
|
1
2
|
import {
|
|
2
3
|
QtiAssessmentItem,
|
|
3
4
|
QtiAssessmentStimulusRef,
|
|
@@ -18,11 +19,11 @@ import {
|
|
|
18
19
|
QtiTemplateConstraint,
|
|
19
20
|
QtiTemplateDeclaration,
|
|
20
21
|
QtiTemplateProcessing
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-WVVMNF74.js";
|
|
23
|
+
import "./chunk-X3E5HXG2.js";
|
|
24
|
+
import "./chunk-64XSIBGO.js";
|
|
25
|
+
import "./chunk-IJD53WY6.js";
|
|
26
|
+
import "./chunk-H3J7LFRO.js";
|
|
26
27
|
export {
|
|
27
28
|
QtiAssessmentItem,
|
|
28
29
|
QtiAssessmentStimulusRef,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export { C as ConfigContext, a as CorrectResponseMode, c as configContext } from './config.context-BjZ2bZSY.js';
|
|
11
|
-
export { I as ItemContext, i as itemContextVariables } from './item.context-CkUeDcaO.js';
|
|
12
|
-
export { IsNullOrUndefined, ScoringHelper, convertNumberToUniversalFormat, decimalSeparator, itemContext, removeDoubleSlashes } from './base.js';
|
|
13
|
-
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context-CejJMlfZ.js';
|
|
14
|
-
export { I as INITIAL_TEST_CONTEXT, T as TestContext, t as testContext } from './test.context-CByZZjkR.js';
|
|
15
|
-
export { C as Correctness, I as IInteraction, a as Interaction } from './interaction-Bgzlw7Iu.js';
|
|
16
|
-
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-ChmXhZuf.js';
|
|
17
|
-
export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-Dam-RER6.js';
|
|
18
|
-
export { B as BaseType, C as Calculate, a as Cardinality, 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 } from './variables-CMYcDbyW.js';
|
|
19
|
-
export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base-ajOnfGXY.js';
|
|
20
|
-
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';
|
|
21
|
-
import 'lit';
|
|
22
|
-
import '@heximal/templates';
|
|
23
|
-
import 'lit/directives/ref.js';
|
|
1
|
+
export * from '@qti-components/test';
|
|
2
|
+
export * from '@qti-components/item';
|
|
3
|
+
export * from '@qti-components/elements';
|
|
4
|
+
export * from '@qti-components/interactions';
|
|
5
|
+
export * from '@qti-components/transformers';
|
|
6
|
+
export * from '@qti-components/loader';
|
|
7
|
+
export * from '@qti-components/base';
|
|
8
|
+
export * from '@qti-components/processing';
|
|
9
|
+
export * from '@qti-components/corrections';
|