@citolab/qti-components 3.0.49 → 3.0.51
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/index.css +2540 -15766
- package/index.d.ts +0 -1
- package/index.js +42 -42
- package/index.umd.css +2539 -15765
- package/index.umd.js +50 -50
- package/lab/qti-item/qti-item.d.ts +2 -2
- package/lab/qti-test/qti-test.d.ts +2 -1
- package/lib/qti-base/qti-assessment-item/qti-assessment-item.d.ts +3 -2
- package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts +2 -17
- package/lib/qti-utilities/EventStrings.d.ts +1 -0
- package/package.json +3 -2
- package/lab/qti-transform/qti-transform.d.ts +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputResponseFormat, QtiVariableJSON } from '../../lib/qti-utilities/ExpressionResult';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
|
-
import '
|
|
3
|
+
import { QtiAssessmentItem } from '../../lib/qti-base/qti-assessment-item/qti-assessment-item';
|
|
4
4
|
declare const QtiItem_base: (new (...args: any[]) => import("../../lib/utilities/scale-to-fit/scale-to-fit.mixin").ScaleToFitInterface) & typeof LitElement;
|
|
5
5
|
export declare class QtiItem extends QtiItem_base {
|
|
6
6
|
disabled: boolean;
|
|
@@ -9,7 +9,7 @@ export declare class QtiItem extends QtiItem_base {
|
|
|
9
9
|
handleReadonlyChange(old: any, readonly: boolean): void;
|
|
10
10
|
responses: InputResponseFormat<QtiVariableJSON>;
|
|
11
11
|
handleResponsesChange(old: any, responses: InputResponseFormat<QtiVariableJSON>): void;
|
|
12
|
-
|
|
12
|
+
_item: QtiAssessmentItem;
|
|
13
13
|
static styles: import("lit").CSSResult;
|
|
14
14
|
processResponse: () => boolean;
|
|
15
15
|
validateResponses: () => boolean;
|
|
@@ -39,12 +39,13 @@ export declare class QtiTest extends LitElement {
|
|
|
39
39
|
readonly itemIndex = 0;
|
|
40
40
|
handleItemIndexChange(old: any, itemIndex: Number): void;
|
|
41
41
|
private _itemRef;
|
|
42
|
-
private provider;
|
|
43
42
|
set qtiContext(context: {
|
|
44
43
|
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
45
44
|
});
|
|
46
45
|
set itemXML(xml: string);
|
|
46
|
+
set manualOutcomeValue(value: any);
|
|
47
47
|
set itemResponse(val: InputResponseFormat<QtiVariableJSON>);
|
|
48
|
+
private provider;
|
|
48
49
|
private _onCheckItem;
|
|
49
50
|
private _onScoreItem;
|
|
50
51
|
private _onPrevItem;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ResponseType, QtiVariableJSON, InputResponseFormat } from '../../qti-utilities/ExpressionResult';
|
|
2
2
|
import { ResponseVariable } from '../../qti-utilities/ResponseVariable';
|
|
3
3
|
import { OutcomeVariable } from '../../qti-utilities/OutcomeVariable';
|
|
4
|
-
import { VariableDeclaration } from '../../qti-utilities/VariableDeclaration';
|
|
5
4
|
import QtiElement from '../../utilities/element/qti-element';
|
|
6
5
|
export declare class QtiAssessmentItem extends QtiElement {
|
|
7
6
|
disabled: boolean;
|
|
8
7
|
readonly: boolean;
|
|
9
|
-
variables
|
|
8
|
+
private variables;
|
|
10
9
|
private feedbackElements;
|
|
11
10
|
private interactionElements;
|
|
12
11
|
static get properties(): {
|
|
@@ -28,6 +27,8 @@ export declare class QtiAssessmentItem extends QtiElement {
|
|
|
28
27
|
updated(changedProperties: any): void;
|
|
29
28
|
constructor();
|
|
30
29
|
disconnectedCallback(): void;
|
|
30
|
+
private _registerVariable;
|
|
31
|
+
showCorrectResponse(): void;
|
|
31
32
|
processResponse(): boolean;
|
|
32
33
|
set responses(myResponses: InputResponseFormat<QtiVariableJSON>);
|
|
33
34
|
resetInteractions(): void;
|
package/lib/qti-base/qti-variabledeclaration/qti-responsedeclaration/qti-responsedeclaration.d.ts
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import { QtiVariableDeclaration } from '../qti-variabledeclaration';
|
|
2
|
-
import { BaseType, Cardinality } from '../../../qti-utilities/ExpressionResult';
|
|
3
2
|
export declare class QtiResponseDeclaration extends QtiVariableDeclaration {
|
|
4
|
-
baseType:
|
|
3
|
+
baseType: string;
|
|
5
4
|
identifier: string;
|
|
6
|
-
cardinality:
|
|
7
|
-
static get properties(): {
|
|
8
|
-
baseType: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
attribute: string;
|
|
11
|
-
};
|
|
12
|
-
identifier: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
attribute: string;
|
|
15
|
-
};
|
|
16
|
-
cardinality: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
attribute: string;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
5
|
+
cardinality: string;
|
|
21
6
|
connectedCallback(): void;
|
|
22
7
|
private get correctResponse();
|
|
23
8
|
private get mapping();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.51",
|
|
4
4
|
"repository": "@citolab/qti-components",
|
|
5
5
|
"author": "Patrick de Klein",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"types": "./index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@lit-labs/context": "0.1.3",
|
|
13
14
|
"lit": "2.4.1",
|
|
14
15
|
"@storybook/addon-actions": "6.5.13",
|
|
15
16
|
"lit-html": "2.4.0",
|
|
16
|
-
"@
|
|
17
|
+
"@citolab/qti-transform": "0.0.6"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {}
|
|
19
20
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const qtiTransform: (xmlValue: string) => {
|
|
2
|
-
mathml(): any;
|
|
3
|
-
removeNamesSpaces(): any;
|
|
4
|
-
pciHooks(uri: string): any;
|
|
5
|
-
assetsLocation(uri: string, attributes?: string[]): any;
|
|
6
|
-
customTypes(): any;
|
|
7
|
-
suffix(elements: string[], suffix: string): any;
|
|
8
|
-
prefix(elements: string[], prefix: string): any;
|
|
9
|
-
fn(fn: (xmlString: string) => string): any;
|
|
10
|
-
elementNameAttributes(elements: string[]): any;
|
|
11
|
-
print(): any;
|
|
12
|
-
xml(): string;
|
|
13
|
-
};
|
|
14
|
-
export declare const fixSelfClosingTags: (xml: string) => string;
|