@webwriter/quiz 1.0.10 → 1.1.2
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/LICENSE +6 -6
- package/custom.d.ts +175 -175
- package/dist/widgets/webwriter-choice-item.js +10 -7
- package/dist/widgets/webwriter-choice.js +36 -6
- package/dist/widgets/webwriter-order-item.js +14 -12
- package/dist/widgets/webwriter-order.js +28 -4
- package/dist/widgets/webwriter-quiz.js +1 -1
- package/dist/widgets/webwriter-task.js +0 -1
- package/dist/widgets/webwriter-text.js +26 -9
- package/lit-localize.json +14 -14
- package/localization/bg.xlf +69 -69
- package/localization/cs.xlf +69 -69
- package/localization/da.xlf +69 -69
- package/localization/de.xlf +74 -74
- package/localization/el.xlf +69 -69
- package/localization/es.xlf +69 -69
- package/localization/et.xlf +69 -69
- package/localization/fi.xlf +69 -69
- package/localization/fr.xlf +69 -69
- package/localization/generated/bg.ts +29 -29
- package/localization/generated/cs.ts +29 -29
- package/localization/generated/da.ts +29 -29
- package/localization/generated/de.ts +29 -29
- package/localization/generated/el.ts +29 -29
- package/localization/generated/es.ts +29 -29
- package/localization/generated/et.ts +29 -29
- package/localization/generated/fi.ts +29 -29
- package/localization/generated/fr.ts +29 -29
- package/localization/generated/hu.ts +29 -29
- package/localization/generated/id.ts +29 -29
- package/localization/generated/index.js +2 -2
- package/localization/generated/it.ts +29 -29
- package/localization/generated/ja.ts +29 -29
- package/localization/generated/ko.ts +29 -29
- package/localization/generated/locale-codes.js +79 -79
- package/localization/generated/lt.ts +29 -29
- package/localization/generated/lv.ts +29 -29
- package/localization/generated/nb.ts +29 -29
- package/localization/generated/nl.ts +29 -29
- package/localization/generated/pl.ts +29 -29
- package/localization/generated/pt-BR.ts +29 -29
- package/localization/generated/pt-PT.ts +29 -29
- package/localization/generated/ro.ts +29 -29
- package/localization/generated/ru.ts +29 -29
- package/localization/generated/sk.ts +29 -29
- package/localization/generated/sl.ts +29 -29
- package/localization/generated/sv.ts +29 -29
- package/localization/generated/tr.ts +29 -29
- package/localization/generated/uk.ts +29 -29
- package/localization/generated/zh-hans.ts +29 -29
- package/localization/hu.xlf +69 -69
- package/localization/id.xlf +69 -69
- package/localization/it.xlf +69 -69
- package/localization/ja.xlf +69 -69
- package/localization/ko.xlf +69 -69
- package/localization/lt.xlf +69 -69
- package/localization/lv.xlf +69 -69
- package/localization/nb.xlf +69 -69
- package/localization/nl.xlf +69 -69
- package/localization/pl.xlf +69 -69
- package/localization/pt-BR.xlf +69 -69
- package/localization/pt-PT.xlf +69 -69
- package/localization/ro.xlf +69 -69
- package/localization/ru.xlf +69 -69
- package/localization/sk.xlf +69 -69
- package/localization/sl.xlf +69 -69
- package/localization/sv.xlf +69 -69
- package/localization/tr.xlf +69 -69
- package/localization/uk.xlf +69 -69
- package/localization/zh-hans.xlf +69 -69
- package/package.json +7 -2
- package/src/lib/combobox.ts +455 -455
- package/src/lib/highlighter-fill.svg +5 -5
- package/src/snippets/Beispiel-Choice.html +57 -57
- package/src/snippets/Beispiel-Mark.html +13 -13
- package/src/snippets/Beispiel-Order.html +52 -52
- package/src/snippets/Beispiel-Text.html +20 -20
- package/src/snippets/blank.html +1 -0
- package/src/snippets/choice.html +7 -7
- package/src/snippets/cloze.html +3 -3
- package/src/snippets/mark.html +3 -3
- package/src/snippets/order.html +7 -7
- package/src/snippets/pairing.html +9 -9
- package/src/snippets/speech.html +3 -3
- package/src/snippets/text.html +3 -3
- package/src/snippets/wordsearch.html +3 -3
- package/src/widgets/webwriter-choice-item.ts +253 -250
- package/src/widgets/webwriter-choice.ts +336 -314
- package/src/widgets/webwriter-cloze-gap.ts +215 -215
- package/src/widgets/webwriter-cloze.ts +135 -135
- package/src/widgets/webwriter-mark.ts +431 -431
- package/src/widgets/webwriter-order-item.ts +440 -437
- package/src/widgets/webwriter-order.ts +309 -284
- package/src/widgets/webwriter-pairing-item.ts +160 -160
- package/src/widgets/webwriter-pairing.ts +192 -192
- package/src/widgets/webwriter-quiz.ts +281 -281
- package/src/widgets/webwriter-speech.ts +272 -272
- package/src/widgets/webwriter-task-explainer.ts +42 -42
- package/src/widgets/webwriter-task-hint.ts +22 -22
- package/src/widgets/webwriter-task-prompt.ts +23 -23
- package/src/widgets/webwriter-task.ts +546 -546
- package/src/widgets/webwriter-text.ts +155 -135
- package/tsconfig.json +6 -6
- package/.env +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {html} from "lit"
|
|
2
|
-
import {LitElementWw} from "@webwriter/lit"
|
|
3
|
-
import {customElement} from "lit/decorators.js"
|
|
4
|
-
import "@shoelace-style/shoelace/dist/themes/light.css"
|
|
5
|
-
import { styleMap } from "lit/directives/style-map.js"
|
|
6
|
-
|
|
7
|
-
import LOCALIZE from "../../localization/generated"
|
|
8
|
-
import {msg} from "@lit/localize"
|
|
9
|
-
|
|
10
|
-
declare global {interface HTMLElementTagNameMap {
|
|
11
|
-
"webwriter-task-prompt": WebwriterTaskPrompt;
|
|
12
|
-
}}
|
|
13
|
-
|
|
14
|
-
@customElement("webwriter-task-prompt")
|
|
15
|
-
export class WebwriterTaskPrompt extends LitElementWw {
|
|
16
|
-
|
|
17
|
-
localize = LOCALIZE
|
|
18
|
-
|
|
19
|
-
render() {
|
|
20
|
-
return html`<slot style=${styleMap({"--ww-placeholder": `"${msg("Prompt")}"`})}>
|
|
21
|
-
|
|
22
|
-
</slot>`
|
|
23
|
-
}
|
|
1
|
+
import {html} from "lit"
|
|
2
|
+
import {LitElementWw} from "@webwriter/lit"
|
|
3
|
+
import {customElement} from "lit/decorators.js"
|
|
4
|
+
import "@shoelace-style/shoelace/dist/themes/light.css"
|
|
5
|
+
import { styleMap } from "lit/directives/style-map.js"
|
|
6
|
+
|
|
7
|
+
import LOCALIZE from "../../localization/generated"
|
|
8
|
+
import {msg} from "@lit/localize"
|
|
9
|
+
|
|
10
|
+
declare global {interface HTMLElementTagNameMap {
|
|
11
|
+
"webwriter-task-prompt": WebwriterTaskPrompt;
|
|
12
|
+
}}
|
|
13
|
+
|
|
14
|
+
@customElement("webwriter-task-prompt")
|
|
15
|
+
export class WebwriterTaskPrompt extends LitElementWw {
|
|
16
|
+
|
|
17
|
+
localize = LOCALIZE
|
|
18
|
+
|
|
19
|
+
render() {
|
|
20
|
+
return html`<slot style=${styleMap({"--ww-placeholder": `"${msg("Prompt")}"`})}>
|
|
21
|
+
|
|
22
|
+
</slot>`
|
|
23
|
+
}
|
|
24
24
|
}
|