@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.
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './qti-test-buttons';
2
+ export * from './qti-test';
@@ -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;
@@ -1,5 +1,6 @@
1
1
  export declare const qtiTransform: (xmlValue: string) => {
2
2
  mathml(): any;
3
+ removeNamesSpaces(): any;
3
4
  pciHooks(uri: string): any;
4
5
  assetsLocation(uri: string, attributes?: string[]): any;
5
6
  customTypes(): any;
@@ -1,3 +1,3 @@
1
1
  import QtiElement from '../../utilities/element/qti-element';
2
- export declare class qtiCompanionMaterialsInfo extends QtiElement {
2
+ export declare class QtiCompanionMaterialsInfo extends QtiElement {
3
3
  }
@@ -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
- value: string;
5
+ textareaRef: import("lit-html/directives/ref").Ref<HTMLTextAreaElement>;
6
6
  expectedLength: any;
7
- placeholderText: any;
8
7
  patternMask: any;
9
- private classNames;
10
- textareaRef: import("lit-html/directives/ref").Ref<HTMLTextAreaElement>;
11
- static get properties(): {
12
- expectedLength: {
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,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
2
  export declare class QtiItemBody extends LitElement {
3
+ static styles: import("lit").CSSResult;
3
4
  render(): import("lit-html").TemplateResult<1>;
4
5
  }
@@ -1,5 +1,5 @@
1
1
  import { Interaction } from '../../../utilities/interaction/interaction';
2
- import './qti-media-interaction';
2
+ import './qti-media-interaction.scss';
3
3
  export declare class QtiMediaInteraction extends Interaction {
4
4
  value: number;
5
5
  reset(): void;
@@ -1,3 +1,5 @@
1
1
  import QtiElement from '../../utilities/element/qti-element';
2
+ import './qti-content-body.scss';
2
3
  export declare class qtiContentBody extends QtiElement {
4
+ render(): import("lit-html").TemplateResult<1>;
3
5
  }
@@ -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.41",
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
  }