@citolab/qti-components 6.9.1-beta.8 → 6.9.1-beta.9

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.
@@ -96,6 +96,48 @@
96
96
  }
97
97
  ]
98
98
  },
99
+ {
100
+ "kind": "javascript-module",
101
+ "path": "src/lib/qti-item/index.ts",
102
+ "declarations": [],
103
+ "exports": [
104
+ {
105
+ "kind": "js",
106
+ "name": "*",
107
+ "declaration": {
108
+ "name": "*",
109
+ "package": "./qti-item"
110
+ }
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "kind": "javascript-module",
116
+ "path": "src/lib/qti-item/qti-item.ts",
117
+ "declarations": [
118
+ {
119
+ "kind": "class",
120
+ "description": "",
121
+ "name": "QtiItem",
122
+ "members": [],
123
+ "superclass": {
124
+ "name": "HTMLElement"
125
+ },
126
+ "tagName": "qti-item",
127
+ "customElement": true
128
+ }
129
+ ],
130
+ "exports": [
131
+ {
132
+ "kind": "custom-element-definition",
133
+ "name": "qti-item",
134
+ "declaration": {
135
+ "name": "QtiItem",
136
+ "module": "src/lib/qti-item/qti-item.ts"
137
+ }
138
+ }
139
+ ]
140
+ },
99
141
  {
100
142
  "kind": "javascript-module",
101
143
  "path": "src/lib/qti-components/index.ts",
@@ -527,48 +569,6 @@
527
569
  }
528
570
  ]
529
571
  },
530
- {
531
- "kind": "javascript-module",
532
- "path": "src/lib/qti-item/index.ts",
533
- "declarations": [],
534
- "exports": [
535
- {
536
- "kind": "js",
537
- "name": "*",
538
- "declaration": {
539
- "name": "*",
540
- "package": "./qti-item"
541
- }
542
- }
543
- ]
544
- },
545
- {
546
- "kind": "javascript-module",
547
- "path": "src/lib/qti-item/qti-item.ts",
548
- "declarations": [
549
- {
550
- "kind": "class",
551
- "description": "",
552
- "name": "QtiItem",
553
- "members": [],
554
- "superclass": {
555
- "name": "HTMLElement"
556
- },
557
- "tagName": "qti-item",
558
- "customElement": true
559
- }
560
- ],
561
- "exports": [
562
- {
563
- "kind": "custom-element-definition",
564
- "name": "qti-item",
565
- "declaration": {
566
- "name": "QtiItem",
567
- "module": "src/lib/qti-item/qti-item.ts"
568
- }
569
- }
570
- ]
571
- },
572
572
  {
573
573
  "kind": "javascript-module",
574
574
  "path": "src/lib/qti-loader/index.ts",
package/dist/index.js CHANGED
@@ -411,25 +411,28 @@ var jr=Object.defineProperty,Xi=Object.defineProperties,Yi=Object.getOwnProperty
411
411
  </td>`})}
412
412
  </tr>`)}
413
413
  </table>
414
- `:u`<slot name="prompt"></slot> <slot></slot>`}};he.styles=[b`
415
- :host {
414
+ `:u`<slot name="prompt"></slot> <slot class=".match"></slot>`}};he.styles=[b`
415
+ .match {
416
416
  display: flex;
417
417
  flex-direction: column;
418
418
  gap: 0.5rem;
419
419
  }
420
420
 
421
- /* :host(.qti-choices-top) {
421
+ :host(.qti-choices-top) .match {
422
422
  flex-direction: column;
423
- } */
424
- :host(.qti-choices-bottom) {
423
+ }
424
+ :host(.qti-choices-bottom) .match {
425
425
  flex-direction: column-reverse;
426
426
  }
427
- :host(.qti-choices-left) {
427
+ :host(.qti-choices-left) .match {
428
428
  flex-direction: row;
429
429
  }
430
- :host(.qti-choices-right) {
430
+ :host(.qti-choices-right) .match {
431
431
  flex-direction: row-reverse;
432
432
  }
433
+ slot[name='prompt'] {
434
+ display: block;
435
+ }
433
436
  `],l([q()],he.prototype,"response",2),l([q()],he.prototype,"correctOptions",2),l([d({type:String,attribute:"response-identifier"})],he.prototype,"responseIdentifier",2),he=l([m("qti-match-interaction")],he);var ut=class extends k{constructor(){super();this.value=0}reset(){}validate(){return!0}set response(e){}static get properties(){return S(C({},k.properties),{step:{type:Number,attribute:"step",default:10}})}render(){return u` <slot name="prompt"></slot>
434
437
  <slot></slot>`}connectedCallback(){super.connectedCallback();let e=this.querySelector("audio")||this.querySelector("video")||this.querySelector("object");e&&e.addEventListener("ended",()=>{this.value++,this.saveResponse(this.value.toString())})}};ut.styles=[b``],ut=l([m("qti-media-interaction")],ut);var re=class extends Ft(W(f,"qti-simple-choice",!0,"drop-list"),"qti-simple-choice"){constructor(){super(...arguments);this.nrChoices=0;this.correctResponses=[];this.showCorrectResponses=!1}render(){let e=Array.from(this.querySelectorAll("qti-simple-choice"));return this.nrChoices<e.length&&(this.nrChoices=e.length),u` <slot name="prompt"> </slot>
435
438
  <div part="container">