@pie-element/mc-populated-blank 0.3.0-next.25 → 0.3.0-next.28
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/README.md +31 -1
- package/dist/browser/McPopulatedBlank-yvmy2-rw.js +2549 -0
- package/dist/browser/{McPopulatedBlank-ibnDvM6c.js.map → McPopulatedBlank-yvmy2-rw.js.map} +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/print/index.js +1 -1
- package/dist/delivery/index.js +11 -11
- package/dist/delivery/index.js.map +1 -1
- package/dist/index.iife.js +264 -1603
- package/dist/print/index.js +11 -11
- package/dist/print/index.js.map +1 -1
- package/module/print.js +8 -8
- package/module/print.js.map +1 -1
- package/package.json +1 -1
- package/dist/browser/McPopulatedBlank-ibnDvM6c.js +0 -2549
package/README.md
CHANGED
|
@@ -46,6 +46,36 @@ Notes:
|
|
|
46
46
|
- `correctChoiceId` should always map from Learnosity `valid_response.name` to canonical `distractor_n`.
|
|
47
47
|
- Layout defaults are tuned from original CQT visual baselines, but they are not fixed: override through `model.layoutLimits` when host/theme requirements differ.
|
|
48
48
|
|
|
49
|
+
## Layouts
|
|
50
|
+
|
|
51
|
+
`layoutProfile` selects the arrangement and lands on the root as `layout-<layoutProfile>`; the variant sheet for `customType` tunes sizes on top of it (see [Bundled CQT variant CSS](#bundled-cqt-variant-css)). `choiceLayout` sets the choice direction; unset, choices are horizontal when the template is only `{{blank}}` or `interactionMode` is `audio_mc_only`, and vertical otherwise. `audio_blank_only`, `stimulus_image_blank` and `token_sequence` replace the native audio controls with the listen button; `useFeatureButtonAudio` overrides that either way.
|
|
52
|
+
|
|
53
|
+
| `layoutProfile` | Arrangement | `customType` in the samples |
|
|
54
|
+
| --- | --- | --- |
|
|
55
|
+
| unset | block flow in DOM order | — |
|
|
56
|
+
| `inline_sentence` | block flow; a two-column grid when `hasAudio` | `sr-vic`, `sel_vic` |
|
|
57
|
+
| `audio_blank_only` | centred block flow around a large blank | `sel_r1-_plusggg`, `sel_r1-_gplusggg` |
|
|
58
|
+
| `token_sequence` | grid: listen row, then a row of token boxes | `sel_r1-g_plusggg`, `sel_r1-gg_plusggg`, `sel_r1-_ggplusggg` |
|
|
59
|
+
| `stimulus_image_blank` | grid: stimulus, blank and listen button in one row | `sel_r1-s3_plusggg` |
|
|
60
|
+
|
|
61
|
+
The figures are wireframes: colour marks a region, a dashed region renders only when its content is present, and a labelled size is what renders without a `layoutLimits` override.
|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
69
|
+

|
|
70
|
+
|
|
71
|
+

|
|
72
|
+
|
|
73
|
+

|
|
74
|
+
|
|
75
|
+

|
|
76
|
+
|
|
77
|
+

|
|
78
|
+
|
|
49
79
|
## Authoring model
|
|
50
80
|
|
|
51
81
|
- **`prompt`** (optional) and **`promptEnabled`**
|
|
@@ -125,7 +155,7 @@ Delivery now exposes stable `pie-*` classes so hosts can theme this element with
|
|
|
125
155
|
|
|
126
156
|
- Root/container: `pie-element`, `pie-element-mc-populated-blank`, `pie-delivery-root`
|
|
127
157
|
- Header, holding teacher instructions, the prompt and the show-correct-answer toggle ahead of the stem: `pie-header`
|
|
128
|
-
- Prompt/audio/template: `pie-prompt`, `pie-audio-container`, `pie-audio-player`, `pie-
|
|
158
|
+
- Prompt/audio/template: `pie-prompt`, `pie-audio-container`, `pie-audio-player`, `pie-template-line`, `pie-sentence-line`
|
|
129
159
|
- Blank display: `pie-blank-slot`, `pie-blank-slot-standalone`, `pie-blank-value`, `pie-blank-image`
|
|
130
160
|
- Choice group: `pie-choices-fieldset`, `pie-choices-legend`, `pie-choices`
|
|
131
161
|
- Choice rows/items: `pie-choice`, `pie-choice-horizontal`, `pie-choice-selected`, `pie-choice-label`, `pie-choice-image`
|