@qti-components/elements 1.6.2 → 1.6.4
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/dist/components/qti-assessment-item/qti-assessment-item.d.ts +13 -10
- package/dist/components/qti-assessment-item/qti-assessment-item.js +107 -49
- package/dist/components/qti-assessment-item/qti-assessment-item.js.map +1 -1
- package/dist/components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.js +3 -7
- package/dist/components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref.js.map +1 -1
- package/dist/components/qti-companion-materials-info/qti-companion-materials-info.js +2 -13
- package/dist/components/qti-companion-materials-info/qti-companion-materials-info.js.map +1 -1
- package/dist/components/qti-content-body/qti-content-body.d.ts +5 -0
- package/dist/components/qti-content-body/qti-content-body.js +58 -8
- package/dist/components/qti-content-body/qti-content-body.js.map +1 -1
- package/dist/components/qti-context-declaration/qti-context-declaration.js +3 -7
- package/dist/components/qti-context-declaration/qti-context-declaration.js.map +1 -1
- package/dist/components/qti-custom-operator/qti-custom-operator.js +3 -7
- package/dist/components/qti-custom-operator/qti-custom-operator.js.map +1 -1
- package/dist/components/qti-feedback-block/qti-feedback-block.js +2 -13
- package/dist/components/qti-feedback-block/qti-feedback-block.js.map +1 -1
- package/dist/components/qti-feedback-inline/qti-feedback-inline.js +2 -13
- package/dist/components/qti-feedback-inline/qti-feedback-inline.js.map +1 -1
- package/dist/components/qti-item-body/qti-item-body.js +2 -13
- package/dist/components/qti-item-body/qti-item-body.js.map +1 -1
- package/dist/components/qti-modal-feedback/qti-modal-feedback.js +12 -24
- package/dist/components/qti-modal-feedback/qti-modal-feedback.js.map +1 -1
- package/dist/components/qti-outcome-declaration/qti-outcome-declaration.js +3 -7
- package/dist/components/qti-outcome-declaration/qti-outcome-declaration.js.map +1 -1
- package/dist/components/qti-response-declaration/qti-response-declaration.js +3 -7
- package/dist/components/qti-response-declaration/qti-response-declaration.js.map +1 -1
- package/dist/components/qti-response-processing/qti-response-processing.js +2 -13
- package/dist/components/qti-response-processing/qti-response-processing.js.map +1 -1
- package/dist/components/qti-rubric-block/qti-rubric-block.js +3 -7
- package/dist/components/qti-rubric-block/qti-rubric-block.js.map +1 -1
- package/dist/components/qti-stylesheet/qti-stylesheet.js +2 -13
- package/dist/components/qti-stylesheet/qti-stylesheet.js.map +1 -1
- package/dist/components/qti-template-constraint/qti-template-constraint.js +2 -13
- package/dist/components/qti-template-constraint/qti-template-constraint.js.map +1 -1
- package/dist/components/qti-template-declaration/qti-template-declaration.js +3 -7
- package/dist/components/qti-template-declaration/qti-template-declaration.js.map +1 -1
- package/dist/components/qti-template-processing/qti-template-processing.js +2 -13
- package/dist/components/qti-template-processing/qti-template-processing.js.map +1 -1
- package/dist/elements.d.ts +74 -0
- package/dist/elements.js +40 -0
- package/dist/elements.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/register.d.ts +1 -0
- package/dist/register.js +7 -0
- package/dist/register.js.map +1 -0
- package/package.json +22 -5
|
@@ -5,9 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { LitElement, css, html } from 'lit';
|
|
8
|
-
import {
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
9
|
import { watch } from '@qti-components/utilities';
|
|
10
|
-
|
|
10
|
+
export class QtiRubricBlock extends LitElement {
|
|
11
11
|
handleclassNamesChange() {
|
|
12
12
|
const classNames = this.classNames.split(' ');
|
|
13
13
|
classNames.forEach((className) => {
|
|
@@ -42,7 +42,7 @@ let QtiRubricBlock = class QtiRubricBlock extends LitElement {
|
|
|
42
42
|
render() {
|
|
43
43
|
return html `<slot></slot>`;
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|
|
46
46
|
__decorate([
|
|
47
47
|
property({ type: String })
|
|
48
48
|
], QtiRubricBlock.prototype, "id", void 0);
|
|
@@ -58,8 +58,4 @@ __decorate([
|
|
|
58
58
|
__decorate([
|
|
59
59
|
watch('classNames', { waitUntilFirstUpdate: true })
|
|
60
60
|
], QtiRubricBlock.prototype, "handleclassNamesChange", null);
|
|
61
|
-
QtiRubricBlock = __decorate([
|
|
62
|
-
customElement('qti-rubric-block')
|
|
63
|
-
], QtiRubricBlock);
|
|
64
|
-
export { QtiRubricBlock };
|
|
65
61
|
//# sourceMappingURL=qti-rubric-block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qti-rubric-block.js","sourceRoot":"","sources":["../../../src/components/qti-rubric-block/qti-rubric-block.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"qti-rubric-block.js","sourceRoot":"","sources":["../../../src/components/qti-rubric-block/qti-rubric-block.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,MAAM,OAAO,cAAe,SAAQ,UAAU;IAS5C,sBAAsB;QACpB,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9C,UAAU,CAAC,OAAO,CAAC,CAAC,SAAiB,EAAE,EAAE;YACvC,QAAQ,SAAS,EAAE,CAAC;gBAClB,KAAK,oCAAoC;oBACvC,CAAC;wBACC,MAAM,KAAK,GAAG,IAAI,WAAW,CAAC,oCAAoC,EAAE;4BAClE,MAAM,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE;4BACpC,OAAO,EAAE,IAAI;4BACb,QAAQ,EAAE,IAAI;4BACd,UAAU,EAAE,IAAI;yBACjB,CAAC,CAAC;wBACH,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;wBAC/C,IAAI,CAAC,YAAY;4BAAE,OAAO;wBAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;oBAChD,CAAC;oBACD,MAAM;gBACR,KAAK,mBAAmB;oBACtB,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;oBAC9B,MAAM;gBACR;oBACE,MAAM;YACV,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;aAEe,WAAM,GAAG,GAAG,CAAA;;;;GAI3B,CAAC;IAEO,MAAM;QACb,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;;AA1CoC;IAApC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAAqB;AAEpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAAgD;AAE/C;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAmF;AAE9D;IAA/C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;kDAAoB;AAEnE;IADC,KAAK,CAAC,YAAY,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;4DAyBnD","sourcesContent":["import { LitElement, css, html } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport { watch } from '@qti-components/utilities';\n\nexport class QtiRubricBlock extends LitElement {\n @property({ type: String }) override id: string; // =\"qtiAspectInhoudRubricBlock\"\n\n @property({ type: String }) use: 'instructions' | 'scoring' | 'navigation'; // = \"scoring\"\n\n @property({ type: String }) view: 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor';\n\n @property({ type: String, attribute: 'class' }) classNames: string;\n @watch('classNames', { waitUntilFirstUpdate: true })\n handleclassNamesChange() {\n const classNames = this.classNames.split(' ');\n classNames.forEach((className: string) => {\n switch (className) {\n case 'qti-rubric-discretionary-placement':\n {\n const event = new CustomEvent('qti-rubric:discretionary-placement', {\n detail: { className, element: this },\n bubbles: true,\n composed: true,\n cancelable: true\n });\n const notCancelled = this.dispatchEvent(event);\n if (!notCancelled) return;\n this.setAttribute('slot', 'qti-rubric-block');\n }\n break;\n case 'qti-rubric-inline':\n this.setAttribute('slot', '');\n break;\n default:\n break;\n }\n });\n }\n\n static override styles = css`\n :host {\n display: block;\n }\n `;\n\n override render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-rubric-block': QtiRubricBlock;\n }\n}\n"]}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
1
|
import { LitElement } from 'lit';
|
|
8
|
-
|
|
9
|
-
let QtiStylesheet = class QtiStylesheet extends LitElement {
|
|
2
|
+
export class QtiStylesheet extends LitElement {
|
|
10
3
|
#styleElement = null;
|
|
11
4
|
firstUpdated(_changedProperties) {
|
|
12
5
|
super.firstUpdated(_changedProperties);
|
|
@@ -69,9 +62,5 @@ let QtiStylesheet = class QtiStylesheet extends LitElement {
|
|
|
69
62
|
}
|
|
70
63
|
super.disconnectedCallback();
|
|
71
64
|
}
|
|
72
|
-
}
|
|
73
|
-
QtiStylesheet = __decorate([
|
|
74
|
-
customElement('qti-stylesheet')
|
|
75
|
-
], QtiStylesheet);
|
|
76
|
-
export { QtiStylesheet };
|
|
65
|
+
}
|
|
77
66
|
//# sourceMappingURL=qti-stylesheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qti-stylesheet.js","sourceRoot":"","sources":["../../../src/components/qti-stylesheet/qti-stylesheet.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qti-stylesheet.js","sourceRoot":"","sources":["../../../src/components/qti-stylesheet/qti-stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,MAAM,OAAO,aAAc,SAAQ,UAAU;IAC3C,aAAa,GAA4B,IAAI,CAAC;IAE3B,YAAY,CAAC,kBAAqE;QACnG,KAAK,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAEvC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;YAClB,+BAA+B;YAC/B,KAAK,CAAC,IAAI,CAAC;iBACR,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;iBACjC,IAAI,CAAC,UAAU,CAAC,EAAE;gBACjB,6DAA6D;gBAC7D,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;gBAEhD,oEAAoE;gBACpE,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;gBACrD,IAAI,CAAC,aAAa,CAAC,KAAK,GAAG,QAAQ,CAAC;gBACpC,IAAI,CAAC,aAAa,CAAC,WAAW,GAAG,WAAW,WAAW,GAAG,CAAC;gBAE3D,mEAAmE;gBACnE,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;oBACvB,IAAI,CAAC,aAAa,CAAC,W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QAC3B,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,IAAI,CAAC;gBACH,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YAC9B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;QACD,KAAK,CAAC,oBAAoB,EAAE,CAAC;IAC/B,CAAC;CACF","sourcesContent":["import { LitElement } from 'lit';\n\nimport type { PropertyValueMap } from 'lit';\n\nexport class QtiStylesheet extends LitElement {\n #styleElement: HTMLStyleElement | null = null;\n\n protected override firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {\n super.firstUpdated(_changedProperties);\n\n const link = this.getAttribute('href');\n\n if (link !== null) {\n // Fetch the stylesheet content\n fetch(link)\n .then(response => response.text())\n .then(cssContent => {\n // Minify the CSS content by removing whitespace and comments\n const minifiedCss = this.#minifyCss(cssContent);\n\n // Create a <style> element with @scope surrounding the minified CSS\n this.#styleElement = document.createElement('style');\n this.#styleElement.media = 'screen';\n this.#styleElement.textContent = `@scope {${minifiedCss}}`;\n\n // Append the style element to the parent element of this component\n if (this.parentElement) {\n this.parentElement.appendChild(this.#styleElement);\n } else {\n console.warn('No parent element to append the scoped stylesheet to.');\n }\n })\n .catch(error => {\n console.error('Failed to load stylesheet:', error);\n });\n }\n\n if (this.textContent !== null && this.textContent.trim() !== '') {\n // Minify the inline CSS content\n const minifiedCss = this.#minifyCss(this.textContent);\n\n // Directly create a <style> element with the @scope surrounding the minified inline styles\n this.#styleElement = document.createElement('style');\n this.#styleElement.media = 'screen';\n this.#styleElement.textContent = `@scope {${minifiedCss}}`;\n\n // Append the style element to the parent element of this component\n if (this.parentElement) {\n this.parentElement.appendChild(this.#styleElement);\n } else {\n console.warn('No parent element to append the scoped stylesheet to.');\n }\n }\n }\n\n #minifyCss(cssContent: string): string {\n // Remove comments, whitespace, and newline characters\n return cssContent\n .replace(/\\/\\*[\\s\\S]*?\\*\\//g, '') // Remove comments\n .replace(/\\s+/g, ' ') // Collapse whitespace\n .replace(/\\s*([{}:;])\\s*/g, '$1') // Remove spaces around {}, :, ;\n .trim(); // Trim leading/trailing whitespace\n }\n\n override disconnectedCallback() {\n if (this.#styleElement) {\n try {\n this.#styleElement.remove();\n } catch (error) {\n console.error('Could not remove stylesheet:', error);\n }\n }\n super.disconnectedCallback();\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-stylesheet': QtiStylesheet;\n }\n}\n"]}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
1
|
import { LitElement, html } from 'lit';
|
|
8
|
-
import { customElement } from 'lit/decorators.js';
|
|
9
2
|
/**
|
|
10
3
|
* @summary The qti-template-constraint element is a processing rule available only in Template Processing.
|
|
11
4
|
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-constraint
|
|
@@ -15,7 +8,7 @@ import { customElement } from 'lit/decorators.js';
|
|
|
15
8
|
* the Template Processing with different randomly-generated values until a predetermined
|
|
16
9
|
* condition is satisfied.
|
|
17
10
|
*/
|
|
18
|
-
|
|
11
|
+
export class QtiTemplateConstraint extends LitElement {
|
|
19
12
|
render() {
|
|
20
13
|
return html `<slot></slot>`;
|
|
21
14
|
}
|
|
@@ -55,9 +48,5 @@ let QtiTemplateConstraint = class QtiTemplateConstraint extends LitElement {
|
|
|
55
48
|
}
|
|
56
49
|
return constraintSatisfied;
|
|
57
50
|
}
|
|
58
|
-
}
|
|
59
|
-
QtiTemplateConstraint = __decorate([
|
|
60
|
-
customElement('qti-template-constraint')
|
|
61
|
-
], QtiTemplateConstraint);
|
|
62
|
-
export { QtiTemplateConstraint };
|
|
51
|
+
}
|
|
63
52
|
//# sourceMappingURL=qti-template-constraint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qti-template-constraint.js","sourceRoot":"","sources":["../../../src/components/qti-template-constraint/qti-template-constraint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qti-template-constraint.js","sourceRoot":"","sources":["../../../src/components/qti-template-constraint/qti-template-constraint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAKvC;;;;;;;;GAQG;AAEH,MAAM,OAAO,qBAAsB,SAAQ,UAAU;IAC1C,MAAM;QACb,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,SAAS;QACd,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,CAA6B,CAAC;QAEnE,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7B,OAAO,CAAC,KAAK,CAAC,gEAAgE,CAAC,CAAC;YAChF,OAAO,IAAI,CAAC,CAAC,yBAAyB;QACxC,CAAC;QAED,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC;YAC9D,OAAO,IAAI,CAAC,CAAC,yBAAyB;QACxC,CAAC;IACH,CAAC;IAED;;OAEG;IACI,WAAW;QAChB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;OAGG;IACI,OAAO;QACZ,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAE7C,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,OAAO,CAAC,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACrF,CAAC;QAED,OAAO,mBAAmB,CAAC;IAC7B,CAAC;CACF","sourcesContent":["import { LitElement, html } from 'lit';\n\nimport type { QtiExpression } from '@qti-components/base';\nimport type { QtiRuleBase } from '@qti-components/base';\n\n/**\n * @summary The qti-template-constraint element is a processing rule available only in Template Processing.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-constraint\n *\n * It terminates Template Processing and re-runs it from the beginning if the condition\n * specified in the template constraint is not satisfied. This can be used to iterate\n * the Template Processing with different randomly-generated values until a predetermined\n * condition is satisfied.\n */\n\nexport class QtiTemplateConstraint extends LitElement implements QtiRuleBase {\n override render() {\n return html`<slot></slot>`;\n }\n\n /**\n * Evaluates the constraint condition\n * @returns true if constraint is satisfied, false if template processing should restart\n */\n public calculate(): boolean {\n const expressions = [...this.children] as QtiExpression<boolean>[];\n\n if (expressions.length !== 1) {\n console.error('qti-template-constraint must have exactly one child expression');\n return true; // Don't restart on error\n }\n\n try {\n const result = expressions[0].calculate();\n return Boolean(result);\n } catch (error) {\n console.error('Error evaluating template constraint:', error);\n return true; // Don't restart on error\n }\n }\n\n /**\n * Template constraints don't have sub-rules like conditions\n */\n public getSubRules(): QtiRuleBase[] {\n return [];\n }\n\n /**\n * Process the template constraint\n * @returns true if constraint is satisfied, false if template processing should restart\n */\n public process(): boolean {\n const constraintSatisfied = this.calculate();\n\n if (!constraintSatisfied) {\n console.debug('Template constraint not satisfied, restarting template processing');\n }\n\n return constraintSatisfied;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-template-constraint': QtiTemplateConstraint;\n }\n}\n"]}
|
|
@@ -5,12 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { css, LitElement, html } from 'lit';
|
|
8
|
-
import {
|
|
8
|
+
import { property } from 'lit/decorators.js';
|
|
9
9
|
/**
|
|
10
10
|
* @summary The qti-template-declaration element declares template variables for item cloning.
|
|
11
11
|
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-declaration
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
export class QtiTemplateDeclaration extends LitElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.identifier = '';
|
|
@@ -106,7 +106,7 @@ let QtiTemplateDeclaration = class QtiTemplateDeclaration extends LitElement {
|
|
|
106
106
|
paramVariable: this.paramVariable
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
110
|
__decorate([
|
|
111
111
|
property({ type: String })
|
|
112
112
|
], QtiTemplateDeclaration.prototype, "identifier", void 0);
|
|
@@ -122,8 +122,4 @@ __decorate([
|
|
|
122
122
|
__decorate([
|
|
123
123
|
property({ type: Boolean, attribute: 'param-variable' })
|
|
124
124
|
], QtiTemplateDeclaration.prototype, "paramVariable", void 0);
|
|
125
|
-
QtiTemplateDeclaration = __decorate([
|
|
126
|
-
customElement('qti-template-declaration')
|
|
127
|
-
], QtiTemplateDeclaration);
|
|
128
|
-
export { QtiTemplateDeclaration };
|
|
129
125
|
//# sourceMappingURL=qti-template-declaration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qti-template-declaration.js","sourceRoot":"","sources":["../../../src/components/qti-template-declaration/qti-template-declaration.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"qti-template-decla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E,IAAI,CAAC,aAAa;YACzB,IAAI,EAAE,UAAU;YAChB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,aAAa,EAAE,IAAI,CAAC,aAAa;SAClC,CAAC;IACJ,CAAC;;AAvG2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DAAyB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DAAsE;AAC7C;IAAnD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;wDAA+B;AACzB;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;4DAA+B;AAC7B;IAAzD,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;6DAAgC","sourcesContent":["import { css, LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\n\nimport type { TemplateVariable } from '@qti-components/base';\nimport type { BaseType } from '@qti-components/base';\n\n/**\n * @summary The qti-template-declaration element declares template variables for item cloning.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-declaration\n */\n\nexport class QtiTemplateDeclaration extends LitElement {\n @property({ type: String }) identifier: string = '';\n @property({ type: String }) cardinality: 'single' | 'multiple' | 'ordered' | 'record' = 'single';\n @property({ type: String, attribute: 'base-type' }) baseType: BaseType = 'string';\n @property({ type: Boolean, attribute: 'math-variable' }) mathVariable: boolean = false;\n @property({ type: Boolean, attribute: 'param-variable' }) paramVariable: boolean = false;\n\n #defaultValue: any = null;\n\n static override styles = [\n css`\n :host {\n display: none;\n }\n `\n ];\n\n override render() {\n return html`<slot></slot>`;\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.updateComplete.then(() => {\n this.#processDefaultValue();\n this.#registerTemplateVariable();\n });\n }\n\n /**\n * Process qti-default-value to extract the default value\n */\n #processDefaultValue(): void {\n const defaultValueElement = this.querySelector('qti-default-value');\n if (!defaultValueElement) {\n return;\n }\n\n // For now, just get the text content - this could be enhanced to handle expressions\n const textContent = defaultValueElement.textContent?.trim() || '';\n this.#defaultValue = this.#convertValue(textContent);\n }\n\n /**\n * Convert string value based on base-type\n */\n #convertValue(value: string): any {\n if (!value) return null;\n\n switch (this.baseType) {\n case 'integer':\n return parseInt(value, 10);\n case 'float':\n case 'duration':\n return parseFloat(value);\n case 'boolean':\n return value.toLowerCase() === 'true';\n case 'string':\n default:\n return value;\n }\n }\n\n /**\n * Register this template variable with the assessment item\n */\n #registerTemplateVariable(): void {\n const templateVariable: TemplateVariable = {\n identifier: this.identifier,\n cardinality: this.cardinality,\n baseType: this.baseType,\n defaultValue: this.#defaultValue,\n value: this.#defaultValue,\n type: 'template',\n mathVariable: this.mathVariable,\n paramVariable: this.paramVariable\n };\n\n // Dispatch event to register the variable\n\n // value must string or string[]\n const variable = { ...templateVariable, value: this.#defaultValue?.toString() || '' };\n this.dispatchEvent(\n new CustomEvent('qti-register-variable', {\n bubbles: true,\n composed: true,\n detail: { variable }\n })\n );\n }\n\n /**\n * Get the template variable definition\n */\n public getTemplateVariable(): TemplateVariable {\n return {\n identifier: this.identifier,\n cardinality: this.cardinality,\n baseType: this.baseType,\n value: this.#defaultValue,\n type: 'template',\n mathVariable: this.mathVariable,\n paramVariable: this.paramVariable\n };\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-template-declaration': QtiTemplateDeclaration;\n }\n}\n"]}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
1
|
import { css, html, LitElement } from 'lit';
|
|
8
|
-
import { customElement } from 'lit/decorators.js';
|
|
9
2
|
/**
|
|
10
3
|
* @summary The qti-template-processing element contains template processing rules.
|
|
11
4
|
* @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-processing
|
|
12
5
|
*/
|
|
13
|
-
|
|
6
|
+
export class QtiTemplateProcessing extends LitElement {
|
|
14
7
|
static { this.styles = [
|
|
15
8
|
css `
|
|
16
9
|
:host {
|
|
@@ -76,9 +69,5 @@ let QtiTemplateProcessing = class QtiTemplateProcessing extends LitElement {
|
|
|
76
69
|
console.info('Template processing with external template not yet implemented');
|
|
77
70
|
}
|
|
78
71
|
}
|
|
79
|
-
}
|
|
80
|
-
QtiTemplateProcessing = __decorate([
|
|
81
|
-
customElement('qti-template-processing')
|
|
82
|
-
], QtiTemplateProcessing);
|
|
83
|
-
export { QtiTemplateProcessing };
|
|
72
|
+
}
|
|
84
73
|
//# sourceMappingURL=qti-template-processing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qti-template-processing.js","sourceRoot":"","sources":["../../../src/components/qti-template-processing/qti-template-processing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"qti-template-processing.js","sourceRoot":"","sources":["../../../src/components/qti-template-processing/qti-template-processing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C;;;GAGG;AAEH,MAAM,OAAO,qBAAsB,SAAQ,UAAU;aACnC,WAAM,GAAG;QACvB,GAAG,CAAA;;;;KAIF;KACF,CAAC;IAEF,cAAc,GAAG,GAAG,CAAC,CAAC,iDAAiD;IAE9D,MAAM;QACb,OAAO,IAAI,CAAA,eAAe,C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AAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,EAAE,UAAU,EAAE;SACvB,CAAC,CACH,CAAC;IACJ,CAAC;IAEe,YAAY,CAAC,kBAAqE;QAChG,wFAAwF;QACxF,kFAAkF;QAClF,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;YAClC,OAAO,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;QACjF,CAAC;IACH,CAAC","sourcesContent":["import { css, html, LitElement } from 'lit';\n\nimport type { QtiRuleBase } from '@qti-components/base';\nimport type { QtiTemplateConstraint } from '../qti-template-constraint/qti-template-constraint';\nimport type { PropertyValueMap } from 'lit';\n\n/**\n * @summary The qti-template-processing element contains template processing rules.\n * @documentation https://www.imsglobal.org/spec/qti/v3p0/impl#h.template-processing\n */\n\nexport class QtiTemplateProcessing extends LitElement {\n static override styles = [\n css`\n :host {\n display: none;\n }\n `\n ];\n\n #maxIterations = 100; // Prevent infinite loops in template constraints\n\n override render() {\n return html`<slot></slot>`;\n }\n\n /**\n * Process template rules to set template variable values\n */\n public process(): void {\n const assessmentItem = this.closest('qti-assessment-item');\n if (!assessmentItem) {\n console.warn('qti-template-processing must be inside qti-assessment-item');\n return;\n }\n\n let iterations = 0;\n let shouldReprocess = false;\n\n do {\n shouldReprocess = false;\n iterations++;\n\n if (iterations > this.#maxIterations) {\n console.error('Template processing exceeded maximum iterations. Possible infinite loop.');\n break;\n }\n\n try {\n const rules = [...this.children] as unknown as (Element & QtiRuleBase)[];\n for (const rule of rules) {\n // Check if this is a template constraint that failed\n if (rule.tagName.toLowerCase() === 'qti-template-constraint') {\n const constraintResult = (rule as QtiTemplateConstraint).calculate();\n if (constraintResult === false) {\n // Template constraint failed, restart processing\n shouldReprocess = true;\n break;\n }\n } else {\n rule.process();\n }\n }\n } catch (error) {\n console.error('Error during template processing:', error);\n break;\n }\n } while (shouldReprocess);\n\n // Dispatch event that template processing is complete\n this.dispatchEvent(\n new CustomEvent('qti-template-processing-complete', {\n bubbles: true,\n composed: true,\n detail: { iterations }\n })\n );\n }\n\n public override firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {\n // Template processing doesn't typically use external templates like response processing\n // But we could add support for common template processing patterns here if needed\n if (this.getAttribute('template')) {\n console.info('Template processing with external template not yet implemented');\n }\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'qti-template-processing': QtiTemplateProcessing;\n }\n}\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { QtiAssessmentItem } from './components/qti-assessment-item/qti-assessment-item';
|
|
2
|
+
import { QtiAssessmentStimulusRef } from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';
|
|
3
|
+
import { QtiCompanionMaterialsInfo } from './components/qti-companion-materials-info/qti-companion-materials-info';
|
|
4
|
+
import { QtiContentBody } from './components/qti-content-body/qti-content-body';
|
|
5
|
+
import { QtiContextDeclaration } from './components/qti-context-declaration/qti-context-declaration';
|
|
6
|
+
import { QtiCustomOperator } from './components/qti-custom-operator/qti-custom-operator';
|
|
7
|
+
import { QtiFeedbackBlock } from './components/qti-feedback-block/qti-feedback-block';
|
|
8
|
+
import { QtiFeedbackInline } from './components/qti-feedback-inline/qti-feedback-inline';
|
|
9
|
+
import { QtiItemBody } from './components/qti-item-body/qti-item-body';
|
|
10
|
+
import { QtiModalFeedback } from './components/qti-modal-feedback/qti-modal-feedback';
|
|
11
|
+
import { QtiOutcomeDeclaration } from './components/qti-outcome-declaration/qti-outcome-declaration';
|
|
12
|
+
import { QtiResponseDeclaration } from './components/qti-response-declaration/qti-response-declaration';
|
|
13
|
+
import { QtiResponseProcessing } from './components/qti-response-processing/qti-response-processing';
|
|
14
|
+
import { QtiRubricBlock } from './components/qti-rubric-block/qti-rubric-block';
|
|
15
|
+
import { QtiStylesheet } from './components/qti-stylesheet/qti-stylesheet';
|
|
16
|
+
import { QtiTemplateConstraint } from './components/qti-template-constraint/qti-template-constraint';
|
|
17
|
+
import { QtiTemplateDeclaration } from './components/qti-template-declaration/qti-template-declaration';
|
|
18
|
+
import { QtiTemplateProcessing } from './components/qti-template-processing/qti-template-processing';
|
|
19
|
+
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
|
|
20
|
+
export declare const qtiContentElements: readonly [{
|
|
21
|
+
readonly tag: "qti-assessment-item";
|
|
22
|
+
readonly ctor: typeof QtiAssessmentItem;
|
|
23
|
+
}, {
|
|
24
|
+
readonly tag: "qti-assessment-stimulus-ref";
|
|
25
|
+
readonly ctor: typeof QtiAssessmentStimulusRef;
|
|
26
|
+
}, {
|
|
27
|
+
readonly tag: "qti-companion-materials-info";
|
|
28
|
+
readonly ctor: typeof QtiCompanionMaterialsInfo;
|
|
29
|
+
}, {
|
|
30
|
+
readonly tag: "qti-content-body";
|
|
31
|
+
readonly ctor: typeof QtiContentBody;
|
|
32
|
+
}, {
|
|
33
|
+
readonly tag: "qti-context-declaration";
|
|
34
|
+
readonly ctor: typeof QtiContextDeclaration;
|
|
35
|
+
}, {
|
|
36
|
+
readonly tag: "qti-custom-operator";
|
|
37
|
+
readonly ctor: typeof QtiCustomOperator;
|
|
38
|
+
}, {
|
|
39
|
+
readonly tag: "qti-feedback-block";
|
|
40
|
+
readonly ctor: typeof QtiFeedbackBlock;
|
|
41
|
+
}, {
|
|
42
|
+
readonly tag: "qti-feedback-inline";
|
|
43
|
+
readonly ctor: typeof QtiFeedbackInline;
|
|
44
|
+
}, {
|
|
45
|
+
readonly tag: "qti-item-body";
|
|
46
|
+
readonly ctor: typeof QtiItemBody;
|
|
47
|
+
}, {
|
|
48
|
+
readonly tag: "qti-modal-feedback";
|
|
49
|
+
readonly ctor: typeof QtiModalFeedback;
|
|
50
|
+
}, {
|
|
51
|
+
readonly tag: "qti-outcome-declaration";
|
|
52
|
+
readonly ctor: typeof QtiOutcomeDeclaration;
|
|
53
|
+
}, {
|
|
54
|
+
readonly tag: "qti-response-declaration";
|
|
55
|
+
readonly ctor: typeof QtiResponseDeclaration;
|
|
56
|
+
}, {
|
|
57
|
+
readonly tag: "qti-response-processing";
|
|
58
|
+
readonly ctor: typeof QtiResponseProcessing;
|
|
59
|
+
}, {
|
|
60
|
+
readonly tag: "qti-rubric-block";
|
|
61
|
+
readonly ctor: typeof QtiRubricBlock;
|
|
62
|
+
}, {
|
|
63
|
+
readonly tag: "qti-stylesheet";
|
|
64
|
+
readonly ctor: typeof QtiStylesheet;
|
|
65
|
+
}, {
|
|
66
|
+
readonly tag: "qti-template-constraint";
|
|
67
|
+
readonly ctor: typeof QtiTemplateConstraint;
|
|
68
|
+
}, {
|
|
69
|
+
readonly tag: "qti-template-declaration";
|
|
70
|
+
readonly ctor: typeof QtiTemplateDeclaration;
|
|
71
|
+
}, {
|
|
72
|
+
readonly tag: "qti-template-processing";
|
|
73
|
+
readonly ctor: typeof QtiTemplateProcessing;
|
|
74
|
+
}];
|
package/dist/elements.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { QtiAssessmentItem } from './components/qti-assessment-item/qti-assessment-item';
|
|
2
|
+
import { QtiAssessmentStimulusRef } from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';
|
|
3
|
+
import { QtiCompanionMaterialsInfo } from './components/qti-companion-materials-info/qti-companion-materials-info';
|
|
4
|
+
import { QtiContentBody } from './components/qti-content-body/qti-content-body';
|
|
5
|
+
import { QtiContextDeclaration } from './components/qti-context-declaration/qti-context-declaration';
|
|
6
|
+
import { QtiCustomOperator } from './components/qti-custom-operator/qti-custom-operator';
|
|
7
|
+
import { QtiFeedbackBlock } from './components/qti-feedback-block/qti-feedback-block';
|
|
8
|
+
import { QtiFeedbackInline } from './components/qti-feedback-inline/qti-feedback-inline';
|
|
9
|
+
import { QtiItemBody } from './components/qti-item-body/qti-item-body';
|
|
10
|
+
import { QtiModalFeedback } from './components/qti-modal-feedback/qti-modal-feedback';
|
|
11
|
+
import { QtiOutcomeDeclaration } from './components/qti-outcome-declaration/qti-outcome-declaration';
|
|
12
|
+
import { QtiResponseDeclaration } from './components/qti-response-declaration/qti-response-declaration';
|
|
13
|
+
import { QtiResponseProcessing } from './components/qti-response-processing/qti-response-processing';
|
|
14
|
+
import { QtiRubricBlock } from './components/qti-rubric-block/qti-rubric-block';
|
|
15
|
+
import { QtiStylesheet } from './components/qti-stylesheet/qti-stylesheet';
|
|
16
|
+
import { QtiTemplateConstraint } from './components/qti-template-constraint/qti-template-constraint';
|
|
17
|
+
import { QtiTemplateDeclaration } from './components/qti-template-declaration/qti-template-declaration';
|
|
18
|
+
import { QtiTemplateProcessing } from './components/qti-template-processing/qti-template-processing';
|
|
19
|
+
export { QtiAssessmentItem, QtiAssessmentStimulusRef, QtiCompanionMaterialsInfo, QtiContentBody, QtiContextDeclaration, QtiCustomOperator, QtiFeedbackBlock, QtiFeedbackInline, QtiItemBody, QtiModalFeedback, QtiOutcomeDeclaration, QtiResponseDeclaration, QtiResponseProcessing, QtiRubricBlock, QtiStylesheet, QtiTemplateConstraint, QtiTemplateDeclaration, QtiTemplateProcessing };
|
|
20
|
+
export const qtiContentElements = [
|
|
21
|
+
{ tag: 'qti-assessment-item', ctor: QtiAssessmentItem },
|
|
22
|
+
{ tag: 'qti-assessment-stimulus-ref', ctor: QtiAssessmentStimulusRef },
|
|
23
|
+
{ tag: 'qti-companion-materials-info', ctor: QtiCompanionMaterialsInfo },
|
|
24
|
+
{ tag: 'qti-content-body', ctor: QtiContentBody },
|
|
25
|
+
{ tag: 'qti-context-declaration', ctor: QtiContextDeclaration },
|
|
26
|
+
{ tag: 'qti-custom-operator', ctor: QtiCustomOperator },
|
|
27
|
+
{ tag: 'qti-feedback-block', ctor: QtiFeedbackBlock },
|
|
28
|
+
{ tag: 'qti-feedback-inline', ctor: QtiFeedbackInline },
|
|
29
|
+
{ tag: 'qti-item-body', ctor: QtiItemBody },
|
|
30
|
+
{ tag: 'qti-modal-feedback', ctor: QtiModalFeedback },
|
|
31
|
+
{ tag: 'qti-outcome-declaration', ctor: QtiOutcomeDeclaration },
|
|
32
|
+
{ tag: 'qti-response-declaration', ctor: QtiResponseDeclaration },
|
|
33
|
+
{ tag: 'qti-response-processing', ctor: QtiResponseProcessing },
|
|
34
|
+
{ tag: 'qti-rubric-block', ctor: QtiRubricBlock },
|
|
35
|
+
{ tag: 'qti-stylesheet', ctor: QtiStylesheet },
|
|
36
|
+
{ tag: 'qti-template-constraint', ctor: QtiTemplateConstraint },
|
|
37
|
+
{ tag: 'qti-template-declaration', ctor: QtiTemplateDeclaration },
|
|
38
|
+
{ tag: 'qti-template-processing', ctor: QtiTemplateProcessing }
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=elements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elements.js","sourceRoot":"","sources":["../src/elements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,sEAAsE,CAAC;AAChH,OAAO,EAAE,yBAAyB,EAAE,MAAM,wEAAwE,CAAC;AACnH,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oDAAoD,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAE,gBAAgB,EA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AqB,EAAE,IAAI,EAAE,iBAAiB,EAAE;IACvD,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,EAAE;IAC3C,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACrD,EAAE,GAAG,EAAE,yBAAyB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC/D,EAAE,GAAG,EAAE,0BAA0B,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACjE,EAAE,GAAG,EAAE,yBAAyB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC/D,EAAE,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,cAAc,EAAE;IACjD,EAAE,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAE;IAC9C,EAAE,GAAG,EAAE,yBAAyB,EAAE,IAAI,EAAE,qBAAqB,EAAE;IAC/D,EAAE,GAAG,EAAE,0BAA0B,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACjE,EAAE,GAAG,EAAE,yBAAyB,EAAE,IAAI,EAAE,qBAAqB,EAAE;CACvD,CAAC","sourcesContent":["import { QtiAssessmentItem } from './components/qti-assessment-item/qti-assessment-item';\nimport { QtiAssessmentStimulusRef } from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';\nimport { QtiCompanionMaterialsInfo } from './components/qti-companion-materials-info/qti-companion-materials-info';\nimport { QtiContentBody } from './components/qti-content-body/qti-content-body';\nimport { QtiContextDeclaration } from './components/qti-context-declaration/qti-context-declaration';\nimport { QtiCustomOperator } from './components/qti-custom-operator/qti-custom-operator';\nimport { QtiFeedbackBlock } from './components/qti-feedback-block/qti-feedback-block';\nimport { QtiFeedbackInline } from './components/qti-feedback-inline/qti-feedback-inline';\nimport { QtiItemBody } from './components/qti-item-body/qti-item-body';\nimport { QtiModalFeedback } from './components/qti-modal-feedback/qti-modal-feedback';\nimport { QtiOutcomeDeclaration } from './components/qti-outcome-declaration/qti-outcome-declaration';\nimport { QtiResponseDeclaration } from './components/qti-response-declaration/qti-response-declaration';\nimport { QtiResponseProcessing } from './components/qti-response-processing/qti-response-processing';\nimport { QtiRubricBlock } from './components/qti-rubric-block/qti-rubric-block';\nimport { QtiStylesheet } from './components/qti-stylesheet/qti-stylesheet';\nimport { QtiTemplateConstraint } from './components/qti-template-constraint/qti-template-constraint';\nimport { QtiTemplateDeclaration } from './components/qti-template-declaration/qti-template-declaration';\nimport { QtiTemplateProcessing } from './components/qti-template-processing/qti-template-processing';\n\nexport {\n QtiAssessmentItem,\n QtiAssessmentStimulusRef,\n QtiCompanionMaterialsInfo,\n QtiContentBody,\n QtiContextDeclaration,\n QtiCustomOperator,\n QtiFeedbackBlock,\n QtiFeedbackInline,\n QtiItemBody,\n QtiModalFeedback,\n QtiOutcomeDeclaration,\n QtiResponseDeclaration,\n QtiResponseProcessing,\n QtiRubricBlock,\n QtiStylesheet,\n QtiTemplateConstraint,\n QtiTemplateDeclaration,\n QtiTemplateProcessing\n};\n\nexport const qtiContentElements = [\n { tag: 'qti-assessment-item', ctor: QtiAssessmentItem },\n { tag: 'qti-assessment-stimulus-ref', ctor: QtiAssessmentStimulusRef },\n { tag: 'qti-companion-materials-info', ctor: QtiCompanionMaterialsInfo },\n { tag: 'qti-content-body', ctor: QtiContentBody },\n { tag: 'qti-context-declaration', ctor: QtiContextDeclaration },\n { tag: 'qti-custom-operator', ctor: QtiCustomOperator },\n { tag: 'qti-feedback-block', ctor: QtiFeedbackBlock },\n { tag: 'qti-feedback-inline', ctor: QtiFeedbackInline },\n { tag: 'qti-item-body', ctor: QtiItemBody },\n { tag: 'qti-modal-feedback', ctor: QtiModalFeedback },\n { tag: 'qti-outcome-declaration', ctor: QtiOutcomeDeclaration },\n { tag: 'qti-response-declaration', ctor: QtiResponseDeclaration },\n { tag: 'qti-response-processing', ctor: QtiResponseProcessing },\n { tag: 'qti-rubric-block', ctor: QtiRubricBlock },\n { tag: 'qti-stylesheet', ctor: QtiStylesheet },\n { tag: 'qti-template-constraint', ctor: QtiTemplateConstraint },\n { tag: 'qti-template-declaration', ctor: QtiTemplateDeclaration },\n { tag: 'qti-template-processing', ctor: QtiTemplateProcessing }\n] as const;\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './register';
|
|
1
2
|
export * from './components/qti-assessment-item/qti-assessment-item';
|
|
2
3
|
export * from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';
|
|
3
4
|
export * from './components/qti-companion-materials-info/qti-companion-materials-info';
|
|
@@ -13,4 +14,6 @@ export * from './components/qti-response-declaration/qti-response-declaration';
|
|
|
13
14
|
export * from './components/qti-outcome-declaration/qti-outcome-declaration';
|
|
14
15
|
export * from './components/qti-response-processing/qti-response-processing';
|
|
15
16
|
export * from './components/qti-template-declaration/qti-template-declaration';
|
|
17
|
+
export * from './components/qti-template-processing/qti-template-processing';
|
|
18
|
+
export * from './components/qti-template-constraint/qti-template-constraint';
|
|
16
19
|
export * from './components/qti-context-declaration/qti-context-declaration';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './register';
|
|
1
2
|
export * from './components/qti-assessment-item/qti-assessment-item';
|
|
2
3
|
export * from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';
|
|
3
4
|
export * from './components/qti-companion-materials-info/qti-companion-materials-info';
|
|
@@ -13,5 +14,7 @@ export * from './components/qti-response-declaration/qti-response-declaration';
|
|
|
13
14
|
export * from './components/qti-outcome-declaration/qti-outcome-declaration';
|
|
14
15
|
export * from './components/qti-response-processing/qti-response-processing';
|
|
15
16
|
export * from './components/qti-template-declaration/qti-template-declaration';
|
|
17
|
+
export * from './components/qti-template-processing/qti-template-processing';
|
|
18
|
+
export * from './components/qti-template-constraint/qti-template-constraint';
|
|
16
19
|
export * from './components/qti-context-declaration/qti-context-declaration';
|
|
17
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,sEAAsE,CAAC;AACrF,cAAc,wEAAwE,CAAC;AACvF,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gEAAgE,CAAC;AAC/E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,8DAA8D,CAAC","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,CAAC;AAEpB,cAAc,sDAAsD,CAAC;AACrE,cAAc,sEAAsE,CAAC;AACrF,cAAc,wEAAwE,CAAC;AACvF,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gEAAgE,CAAC;AAC/E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC","sourcesContent":["import './register';\n\nexport * from './components/qti-assessment-item/qti-assessment-item';\nexport * from './components/qti-assessment-stimulus-ref/qti-assessment-stimulus-ref';\nexport * from './components/qti-companion-materials-info/qti-companion-materials-info';\nexport * from './components/qti-custom-operator/qti-custom-operator';\nexport * from './components/qti-feedback-block/qti-feedback-block';\nexport * from './components/qti-feedback-inline/qti-feedback-inline';\nexport * from './components/qti-modal-feedback/qti-modal-feedback';\nexport * from './components/qti-item-body/qti-item-body';\nexport * from './components/qti-content-body/qti-content-body';\nexport * from './components/qti-rubric-block/qti-rubric-block';\nexport * from './components/qti-stylesheet/qti-stylesheet';\nexport * from './components/qti-response-declaration/qti-response-declaration';\nexport * from './components/qti-outcome-declaration/qti-outcome-declaration';\nexport * from './components/qti-response-processing/qti-response-processing';\nexport * from './components/qti-template-declaration/qti-template-declaration';\nexport * from './components/qti-template-processing/qti-template-processing';\nexport * from './components/qti-template-constraint/qti-template-constraint';\nexport * from './components/qti-context-declaration/qti-context-declaration';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/register.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,KAAK,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,kBAAkB,EAAE,CAAC;IAC/C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;QAC7B,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;AACH,CAAC","sourcesContent":["import { qtiContentElements } from './elements';\n\nfor (const { tag, ctor } of qtiContentElements) {\n if (!customElements.get(tag)) {\n customElements.define(tag, ctor);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qti-components/elements",
|
|
3
3
|
"description": "QTI elements utilities",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.4",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@qti-components/base": "^
|
|
8
|
-
"@qti-components/
|
|
9
|
-
"@qti-components/
|
|
7
|
+
"@qti-components/base": "^2.0.0",
|
|
8
|
+
"@qti-components/transformers": "^1.7.1",
|
|
9
|
+
"@qti-components/utilities": "^1.3.3"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@lit/context": "^1.1.6",
|
|
@@ -18,6 +18,21 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "GPL-3.0-only",
|
|
20
20
|
"main": "dist/index.js",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./elements": {
|
|
27
|
+
"types": "./dist/elements.d.ts",
|
|
28
|
+
"import": "./dist/elements.js"
|
|
29
|
+
},
|
|
30
|
+
"./register": {
|
|
31
|
+
"types": "./dist/register.d.ts",
|
|
32
|
+
"import": "./dist/register.js"
|
|
33
|
+
},
|
|
34
|
+
"./*": "./dist/*"
|
|
35
|
+
},
|
|
21
36
|
"peerDependencies": {
|
|
22
37
|
"@lit/context": "^1.1.6",
|
|
23
38
|
"lit": "^3.3.1"
|
|
@@ -39,6 +54,8 @@
|
|
|
39
54
|
"scripts": {
|
|
40
55
|
"attw": "attw --profile esm-only --pack",
|
|
41
56
|
"build": "tsc --paths null",
|
|
42
|
-
"clean": "rm -rf dist"
|
|
57
|
+
"clean": "rm -rf dist",
|
|
58
|
+
"yalc": "yalc publish",
|
|
59
|
+
"yalc:push": "yalc push"
|
|
43
60
|
}
|
|
44
61
|
}
|