@citolab/qti-components 3.0.41 → 3.0.42
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.cjs +60 -48
- package/index.css +14 -0
- package/index.d.ts +2 -1
- package/index.js +60 -48
- package/lab/qti-context/qti-context.d.ts +7 -0
- package/lab/qti-item/qti-item.d.ts +4 -14
- package/lab/qti-manual-scoring/qti-manual-scoring.d.ts +8 -0
- package/lab/qti-test/index.d.ts +2 -0
- package/lab/qti-test/qti-test.d.ts +5 -0
- package/lab/qti-transform/qti-transform.d.ts +1 -0
- package/lib/qti-base/qti-companion-materials-info/qti-companion-materials-info.d.ts +1 -1
- package/lib/qti-base/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.d.ts +5 -27
- package/lib/qti-base/qti-item-body/qti-item-body.d.ts +1 -0
- package/lib/qti-base/qti-preview/qti-media-interaction/qti-media-interaction.d.ts +1 -1
- package/lib/qti-base/qti-rubric-block/qti-content-body.d.ts +2 -0
- package/lib/qti-base/qti-rubric-block/qti-rubric-block.d.ts +13 -0
- package/package.json +3 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import QtiElement from '../../lib/utilities/element/qti-element';
|
|
2
|
+
export declare class QtiManualScoring extends QtiElement {
|
|
3
|
+
disabled: any;
|
|
4
|
+
readonly: any;
|
|
5
|
+
value: string;
|
|
6
|
+
protected textChanged(event: Event): void;
|
|
7
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
8
|
+
}
|
|
@@ -36,7 +36,12 @@ export declare class QtiTest extends LitElement {
|
|
|
36
36
|
/** ITEM CHANGES */
|
|
37
37
|
/** The item index, set from outside */
|
|
38
38
|
readonly itemIndex = 0;
|
|
39
|
+
handleItemIndexChange(old: any, itemIndex: Number): void;
|
|
39
40
|
private _itemRef;
|
|
41
|
+
private provider;
|
|
42
|
+
set qtiContext(context: {
|
|
43
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
44
|
+
});
|
|
40
45
|
set itemXML(xml: string);
|
|
41
46
|
set itemResponse(val: InputResponseFormat<QtiVariableJSON>);
|
|
42
47
|
private _onCheckItem;
|
|
@@ -2,35 +2,13 @@ import { Interaction } from '../../../utilities/interaction/interaction';
|
|
|
2
2
|
import './qti-extended-text-interaction.scss';
|
|
3
3
|
export declare class QtiExtendedTextInteraction extends Interaction {
|
|
4
4
|
static rowHeightClass: string[];
|
|
5
|
-
|
|
5
|
+
textareaRef: import("lit-html/directives/ref").Ref<HTMLTextAreaElement>;
|
|
6
6
|
expectedLength: any;
|
|
7
|
-
placeholderText: any;
|
|
8
7
|
patternMask: any;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: NumberConstructor;
|
|
14
|
-
attribute: string;
|
|
15
|
-
};
|
|
16
|
-
patternMask: {
|
|
17
|
-
type: StringConstructor;
|
|
18
|
-
attribute: string;
|
|
19
|
-
};
|
|
20
|
-
placeholderText: {
|
|
21
|
-
type: StringConstructor;
|
|
22
|
-
attribute: string;
|
|
23
|
-
};
|
|
24
|
-
value: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
};
|
|
27
|
-
classNames: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
attribute: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
updated(changedProperties: Map<string, unknown>): void;
|
|
33
|
-
changeRowsOnClassChange(): void;
|
|
8
|
+
placeholderText: any;
|
|
9
|
+
value: string;
|
|
10
|
+
classNames: any;
|
|
11
|
+
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
34
12
|
set response(value: string);
|
|
35
13
|
validate(): boolean;
|
|
36
14
|
static get styles(): import("lit").CSSResult[];
|
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
import QtiElement from '../../utilities/element/qti-element';
|
|
2
|
+
import { ContextConsumer } from '@lit-labs/context';
|
|
3
|
+
import './qti-rubric-block.scss';
|
|
2
4
|
export declare class qtiRubricBlock extends QtiElement {
|
|
5
|
+
id: any;
|
|
6
|
+
use: 'instructions' | 'scoring' | 'navigation';
|
|
7
|
+
view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';
|
|
8
|
+
classNames: any;
|
|
9
|
+
handleclassNamesChange(old: any, disabled: boolean): void;
|
|
10
|
+
static styles: import("lit").CSSResult;
|
|
11
|
+
logger: ContextConsumer<{
|
|
12
|
+
__context__: import("../../../lab/qti-context/qti-context").Logger;
|
|
13
|
+
}, this>;
|
|
14
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
+
connectedCallback(): void;
|
|
3
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.42",
|
|
4
4
|
"repository": "@citolab/qti-components",
|
|
5
5
|
"author": "Patrick de Klein",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"lit": "2.4.1",
|
|
14
14
|
"@storybook/addon-actions": "6.5.13",
|
|
15
|
-
"lit-html": "2.4.0"
|
|
15
|
+
"lit-html": "2.4.0",
|
|
16
|
+
"@lit-labs/context": "0.1.3"
|
|
16
17
|
},
|
|
17
18
|
"peerDependencies": {}
|
|
18
19
|
}
|