@astl/components 0.0.0-stage → 0.1.0
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/CHANGELOG.md +71 -0
- package/LICENSE +202 -0
- package/README.md +38 -2
- package/dist/audio/definition.d.ts +4 -0
- package/dist/audio/definition.d.ts.map +1 -0
- package/dist/audio/definition.js +33 -0
- package/dist/audio/definition.js.map +1 -0
- package/dist/audio/editor.d.ts +4 -0
- package/dist/audio/editor.d.ts.map +1 -0
- package/dist/audio/editor.js +25 -0
- package/dist/audio/editor.js.map +1 -0
- package/dist/audio/element.d.ts +21 -0
- package/dist/audio/element.d.ts.map +1 -0
- package/dist/audio/element.js +93 -0
- package/dist/audio/element.js.map +1 -0
- package/dist/audio/manifest.d.ts +8 -0
- package/dist/audio/manifest.d.ts.map +1 -0
- package/dist/audio/manifest.js +32 -0
- package/dist/audio/manifest.js.map +1 -0
- package/dist/audio/menu-messages.d.ts +7 -0
- package/dist/audio/menu-messages.d.ts.map +1 -0
- package/dist/audio/menu-messages.js +12 -0
- package/dist/audio/menu-messages.js.map +1 -0
- package/dist/audio/messages/en.json +12 -0
- package/dist/audio/messages/menu/en.json +3 -0
- package/dist/audio/messages/menu/pl.json +3 -0
- package/dist/audio/messages/pl.json +12 -0
- package/dist/audio/messages/ui/en.json +3 -0
- package/dist/audio/messages/ui/pl.json +3 -0
- package/dist/audio/messages.d.ts +7 -0
- package/dist/audio/messages.d.ts.map +1 -0
- package/dist/audio/messages.js +14 -0
- package/dist/audio/messages.js.map +1 -0
- package/dist/audio/ui-messages.d.ts +7 -0
- package/dist/audio/ui-messages.d.ts.map +1 -0
- package/dist/audio/ui-messages.js +12 -0
- package/dist/audio/ui-messages.js.map +1 -0
- package/dist/block-styles.d.ts +3 -0
- package/dist/block-styles.d.ts.map +1 -0
- package/dist/block-styles.js +96 -0
- package/dist/block-styles.js.map +1 -0
- package/dist/callout/definition.d.ts +4 -0
- package/dist/callout/definition.d.ts.map +1 -0
- package/dist/callout/definition.js +16 -0
- package/dist/callout/definition.js.map +1 -0
- package/dist/callout/editor.d.ts +3 -0
- package/dist/callout/editor.d.ts.map +1 -0
- package/dist/callout/editor.js +13 -0
- package/dist/callout/editor.js.map +1 -0
- package/dist/callout/element.d.ts +21 -0
- package/dist/callout/element.d.ts.map +1 -0
- package/dist/callout/element.js +96 -0
- package/dist/callout/element.js.map +1 -0
- package/dist/callout/manifest.d.ts +7 -0
- package/dist/callout/manifest.d.ts.map +1 -0
- package/dist/callout/manifest.js +27 -0
- package/dist/callout/manifest.js.map +1 -0
- package/dist/callout/menu-messages.d.ts +7 -0
- package/dist/callout/menu-messages.d.ts.map +1 -0
- package/dist/callout/menu-messages.js +12 -0
- package/dist/callout/menu-messages.js.map +1 -0
- package/dist/callout/messages/en.json +9 -0
- package/dist/callout/messages/menu/en.json +3 -0
- package/dist/callout/messages/menu/pl.json +3 -0
- package/dist/callout/messages/pl.json +9 -0
- package/dist/callout/messages/ui/en.json +5 -0
- package/dist/callout/messages/ui/pl.json +5 -0
- package/dist/callout/messages.d.ts +4 -0
- package/dist/callout/messages.d.ts.map +1 -0
- package/dist/callout/messages.js +11 -0
- package/dist/callout/messages.js.map +1 -0
- package/dist/callout/ui-messages.d.ts +4 -0
- package/dist/callout/ui-messages.d.ts.map +1 -0
- package/dist/callout/ui-messages.js +9 -0
- package/dist/callout/ui-messages.js.map +1 -0
- package/dist/categorise/definition.d.ts +3 -0
- package/dist/categorise/definition.d.ts.map +1 -0
- package/dist/categorise/definition.js +108 -0
- package/dist/categorise/definition.js.map +1 -0
- package/dist/categorise/editor.d.ts +3 -0
- package/dist/categorise/editor.d.ts.map +1 -0
- package/dist/categorise/editor.js +53 -0
- package/dist/categorise/editor.js.map +1 -0
- package/dist/categorise/element.d.ts +40 -0
- package/dist/categorise/element.d.ts.map +1 -0
- package/dist/categorise/element.js +488 -0
- package/dist/categorise/element.js.map +1 -0
- package/dist/categorise/manifest.d.ts +9 -0
- package/dist/categorise/manifest.d.ts.map +1 -0
- package/dist/categorise/manifest.js +67 -0
- package/dist/categorise/manifest.js.map +1 -0
- package/dist/categorise/menu-messages.d.ts +7 -0
- package/dist/categorise/menu-messages.d.ts.map +1 -0
- package/dist/categorise/menu-messages.js +12 -0
- package/dist/categorise/menu-messages.js.map +1 -0
- package/dist/categorise/messages/en.json +40 -0
- package/dist/categorise/messages/menu/en.json +4 -0
- package/dist/categorise/messages/menu/pl.json +4 -0
- package/dist/categorise/messages/pl.json +40 -0
- package/dist/categorise/messages/ui/en.json +15 -0
- package/dist/categorise/messages/ui/pl.json +15 -0
- package/dist/categorise/messages.d.ts +7 -0
- package/dist/categorise/messages.d.ts.map +1 -0
- package/dist/categorise/messages.js +14 -0
- package/dist/categorise/messages.js.map +1 -0
- package/dist/categorise/ui-messages.d.ts +7 -0
- package/dist/categorise/ui-messages.d.ts.map +1 -0
- package/dist/categorise/ui-messages.js +12 -0
- package/dist/categorise/ui-messages.js.map +1 -0
- package/dist/chip-styles.d.ts +9 -0
- package/dist/chip-styles.d.ts.map +1 -0
- package/dist/chip-styles.js +88 -0
- package/dist/chip-styles.js.map +1 -0
- package/dist/choice/definition.d.ts +3 -0
- package/dist/choice/definition.d.ts.map +1 -0
- package/dist/choice/definition.js +83 -0
- package/dist/choice/definition.js.map +1 -0
- package/dist/choice/editor.d.ts +3 -0
- package/dist/choice/editor.d.ts.map +1 -0
- package/dist/choice/editor.js +34 -0
- package/dist/choice/editor.js.map +1 -0
- package/dist/choice/element.d.ts +30 -0
- package/dist/choice/element.d.ts.map +1 -0
- package/dist/choice/element.js +286 -0
- package/dist/choice/element.js.map +1 -0
- package/dist/choice/manifest.d.ts +7 -0
- package/dist/choice/manifest.d.ts.map +1 -0
- package/dist/choice/manifest.js +49 -0
- package/dist/choice/manifest.js.map +1 -0
- package/dist/choice/menu-messages.d.ts +7 -0
- package/dist/choice/menu-messages.d.ts.map +1 -0
- package/dist/choice/menu-messages.js +12 -0
- package/dist/choice/menu-messages.js.map +1 -0
- package/dist/choice/messages/en.json +32 -0
- package/dist/choice/messages/menu/en.json +4 -0
- package/dist/choice/messages/menu/pl.json +4 -0
- package/dist/choice/messages/pl.json +32 -0
- package/dist/choice/messages/ui/en.json +5 -0
- package/dist/choice/messages/ui/pl.json +5 -0
- package/dist/choice/messages.d.ts +7 -0
- package/dist/choice/messages.d.ts.map +1 -0
- package/dist/choice/messages.js +14 -0
- package/dist/choice/messages.js.map +1 -0
- package/dist/choice/ui-messages.d.ts +7 -0
- package/dist/choice/ui-messages.d.ts.map +1 -0
- package/dist/choice/ui-messages.js +12 -0
- package/dist/choice/ui-messages.js.map +1 -0
- package/dist/crossword/definition.d.ts +3 -0
- package/dist/crossword/definition.d.ts.map +1 -0
- package/dist/crossword/definition.js +163 -0
- package/dist/crossword/definition.js.map +1 -0
- package/dist/crossword/editor.d.ts +3 -0
- package/dist/crossword/editor.d.ts.map +1 -0
- package/dist/crossword/editor.js +44 -0
- package/dist/crossword/editor.js.map +1 -0
- package/dist/crossword/element.d.ts +38 -0
- package/dist/crossword/element.d.ts.map +1 -0
- package/dist/crossword/element.js +691 -0
- package/dist/crossword/element.js.map +1 -0
- package/dist/crossword/grid.d.ts +13 -0
- package/dist/crossword/grid.d.ts.map +1 -0
- package/dist/crossword/grid.js +8 -0
- package/dist/crossword/grid.js.map +1 -0
- package/dist/crossword/manifest.d.ts +9 -0
- package/dist/crossword/manifest.d.ts.map +1 -0
- package/dist/crossword/manifest.js +85 -0
- package/dist/crossword/manifest.js.map +1 -0
- package/dist/crossword/menu-messages.d.ts +7 -0
- package/dist/crossword/menu-messages.d.ts.map +1 -0
- package/dist/crossword/menu-messages.js +12 -0
- package/dist/crossword/menu-messages.js.map +1 -0
- package/dist/crossword/messages/en.json +33 -0
- package/dist/crossword/messages/menu/en.json +4 -0
- package/dist/crossword/messages/menu/pl.json +4 -0
- package/dist/crossword/messages/pl.json +33 -0
- package/dist/crossword/messages/ui/en.json +13 -0
- package/dist/crossword/messages/ui/pl.json +13 -0
- package/dist/crossword/messages.d.ts +7 -0
- package/dist/crossword/messages.d.ts.map +1 -0
- package/dist/crossword/messages.js +14 -0
- package/dist/crossword/messages.js.map +1 -0
- package/dist/crossword/ui-messages.d.ts +7 -0
- package/dist/crossword/ui-messages.d.ts.map +1 -0
- package/dist/crossword/ui-messages.js +12 -0
- package/dist/crossword/ui-messages.js.map +1 -0
- package/dist/definitions.d.ts +8 -0
- package/dist/definitions.d.ts.map +1 -0
- package/dist/definitions.js +45 -0
- package/dist/definitions.js.map +1 -0
- package/dist/drop/definition.d.ts +3 -0
- package/dist/drop/definition.d.ts.map +1 -0
- package/dist/drop/definition.js +47 -0
- package/dist/drop/definition.js.map +1 -0
- package/dist/drop/editor.d.ts +3 -0
- package/dist/drop/editor.d.ts.map +1 -0
- package/dist/drop/editor.js +25 -0
- package/dist/drop/editor.js.map +1 -0
- package/dist/drop/element.d.ts +46 -0
- package/dist/drop/element.d.ts.map +1 -0
- package/dist/drop/element.js +189 -0
- package/dist/drop/element.js.map +1 -0
- package/dist/drop/manifest.d.ts +8 -0
- package/dist/drop/manifest.d.ts.map +1 -0
- package/dist/drop/manifest.js +40 -0
- package/dist/drop/manifest.js.map +1 -0
- package/dist/drop/menu-messages.d.ts +7 -0
- package/dist/drop/menu-messages.d.ts.map +1 -0
- package/dist/drop/menu-messages.js +12 -0
- package/dist/drop/menu-messages.js.map +1 -0
- package/dist/drop/messages/en.json +11 -0
- package/dist/drop/messages/menu/en.json +3 -0
- package/dist/drop/messages/menu/pl.json +3 -0
- package/dist/drop/messages/pl.json +11 -0
- package/dist/drop/messages/ui/en.json +7 -0
- package/dist/drop/messages/ui/pl.json +7 -0
- package/dist/drop/messages.d.ts +7 -0
- package/dist/drop/messages.d.ts.map +1 -0
- package/dist/drop/messages.js +14 -0
- package/dist/drop/messages.js.map +1 -0
- package/dist/drop/ui-messages.d.ts +7 -0
- package/dist/drop/ui-messages.d.ts.map +1 -0
- package/dist/drop/ui-messages.js +12 -0
- package/dist/drop/ui-messages.js.map +1 -0
- package/dist/editors.d.ts +4 -0
- package/dist/editors.d.ts.map +1 -0
- package/dist/editors.js +45 -0
- package/dist/editors.js.map +1 -0
- package/dist/elements.d.ts +9 -0
- package/dist/elements.d.ts.map +1 -0
- package/dist/elements.js +24 -0
- package/dist/elements.js.map +1 -0
- package/dist/flash-cards/definition.d.ts +4 -0
- package/dist/flash-cards/definition.d.ts.map +1 -0
- package/dist/flash-cards/definition.js +34 -0
- package/dist/flash-cards/definition.js.map +1 -0
- package/dist/flash-cards/editor.d.ts +3 -0
- package/dist/flash-cards/editor.d.ts.map +1 -0
- package/dist/flash-cards/editor.js +31 -0
- package/dist/flash-cards/editor.js.map +1 -0
- package/dist/flash-cards/element.d.ts +29 -0
- package/dist/flash-cards/element.d.ts.map +1 -0
- package/dist/flash-cards/element.js +194 -0
- package/dist/flash-cards/element.js.map +1 -0
- package/dist/flash-cards/manifest.d.ts +7 -0
- package/dist/flash-cards/manifest.d.ts.map +1 -0
- package/dist/flash-cards/manifest.js +33 -0
- package/dist/flash-cards/manifest.js.map +1 -0
- package/dist/flash-cards/menu-messages.d.ts +7 -0
- package/dist/flash-cards/menu-messages.d.ts.map +1 -0
- package/dist/flash-cards/menu-messages.js +12 -0
- package/dist/flash-cards/menu-messages.js.map +1 -0
- package/dist/flash-cards/messages/en.json +22 -0
- package/dist/flash-cards/messages/menu/en.json +4 -0
- package/dist/flash-cards/messages/menu/pl.json +4 -0
- package/dist/flash-cards/messages/pl.json +22 -0
- package/dist/flash-cards/messages/ui/en.json +7 -0
- package/dist/flash-cards/messages/ui/pl.json +7 -0
- package/dist/flash-cards/messages.d.ts +7 -0
- package/dist/flash-cards/messages.d.ts.map +1 -0
- package/dist/flash-cards/messages.js +14 -0
- package/dist/flash-cards/messages.js.map +1 -0
- package/dist/flash-cards/ui-messages.d.ts +7 -0
- package/dist/flash-cards/ui-messages.d.ts.map +1 -0
- package/dist/flash-cards/ui-messages.js +12 -0
- package/dist/flash-cards/ui-messages.js.map +1 -0
- package/dist/gap/definition.d.ts +3 -0
- package/dist/gap/definition.d.ts.map +1 -0
- package/dist/gap/definition.js +100 -0
- package/dist/gap/definition.js.map +1 -0
- package/dist/gap/editor.d.ts +3 -0
- package/dist/gap/editor.d.ts.map +1 -0
- package/dist/gap/editor.js +33 -0
- package/dist/gap/editor.js.map +1 -0
- package/dist/gap/element.d.ts +17 -0
- package/dist/gap/element.d.ts.map +1 -0
- package/dist/gap/element.js +147 -0
- package/dist/gap/element.js.map +1 -0
- package/dist/gap/manifest.d.ts +4 -0
- package/dist/gap/manifest.d.ts.map +1 -0
- package/dist/gap/manifest.js +49 -0
- package/dist/gap/manifest.js.map +1 -0
- package/dist/gap/menu-messages.d.ts +7 -0
- package/dist/gap/menu-messages.d.ts.map +1 -0
- package/dist/gap/menu-messages.js +12 -0
- package/dist/gap/menu-messages.js.map +1 -0
- package/dist/gap/messages/en.json +36 -0
- package/dist/gap/messages/menu/en.json +4 -0
- package/dist/gap/messages/menu/pl.json +4 -0
- package/dist/gap/messages/pl.json +36 -0
- package/dist/gap/messages/ui/en.json +5 -0
- package/dist/gap/messages/ui/pl.json +5 -0
- package/dist/gap/messages.d.ts +7 -0
- package/dist/gap/messages.d.ts.map +1 -0
- package/dist/gap/messages.js +14 -0
- package/dist/gap/messages.js.map +1 -0
- package/dist/gap/ui-messages.d.ts +7 -0
- package/dist/gap/ui-messages.d.ts.map +1 -0
- package/dist/gap/ui-messages.js +12 -0
- package/dist/gap/ui-messages.js.map +1 -0
- package/dist/hotspot/definition.d.ts +3 -0
- package/dist/hotspot/definition.d.ts.map +1 -0
- package/dist/hotspot/definition.js +72 -0
- package/dist/hotspot/definition.js.map +1 -0
- package/dist/hotspot/editor.d.ts +4 -0
- package/dist/hotspot/editor.d.ts.map +1 -0
- package/dist/hotspot/editor.js +52 -0
- package/dist/hotspot/editor.js.map +1 -0
- package/dist/hotspot/element.d.ts +34 -0
- package/dist/hotspot/element.d.ts.map +1 -0
- package/dist/hotspot/element.js +344 -0
- package/dist/hotspot/element.js.map +1 -0
- package/dist/hotspot/manifest.d.ts +8 -0
- package/dist/hotspot/manifest.d.ts.map +1 -0
- package/dist/hotspot/manifest.js +80 -0
- package/dist/hotspot/manifest.js.map +1 -0
- package/dist/hotspot/menu-messages.d.ts +7 -0
- package/dist/hotspot/menu-messages.d.ts.map +1 -0
- package/dist/hotspot/menu-messages.js +12 -0
- package/dist/hotspot/menu-messages.js.map +1 -0
- package/dist/hotspot/messages/en.json +37 -0
- package/dist/hotspot/messages/menu/en.json +4 -0
- package/dist/hotspot/messages/menu/pl.json +4 -0
- package/dist/hotspot/messages/pl.json +37 -0
- package/dist/hotspot/messages/ui/en.json +8 -0
- package/dist/hotspot/messages/ui/pl.json +8 -0
- package/dist/hotspot/messages.d.ts +7 -0
- package/dist/hotspot/messages.d.ts.map +1 -0
- package/dist/hotspot/messages.js +14 -0
- package/dist/hotspot/messages.js.map +1 -0
- package/dist/hotspot/ui-messages.d.ts +7 -0
- package/dist/hotspot/ui-messages.d.ts.map +1 -0
- package/dist/hotspot/ui-messages.js +12 -0
- package/dist/hotspot/ui-messages.js.map +1 -0
- package/dist/image-drop/definition.d.ts +3 -0
- package/dist/image-drop/definition.d.ts.map +1 -0
- package/dist/image-drop/definition.js +94 -0
- package/dist/image-drop/definition.js.map +1 -0
- package/dist/image-drop/editor.d.ts +4 -0
- package/dist/image-drop/editor.d.ts.map +1 -0
- package/dist/image-drop/editor.js +53 -0
- package/dist/image-drop/editor.js.map +1 -0
- package/dist/image-drop/element.d.ts +43 -0
- package/dist/image-drop/element.d.ts.map +1 -0
- package/dist/image-drop/element.js +692 -0
- package/dist/image-drop/element.js.map +1 -0
- package/dist/image-drop/manifest.d.ts +9 -0
- package/dist/image-drop/manifest.d.ts.map +1 -0
- package/dist/image-drop/manifest.js +93 -0
- package/dist/image-drop/manifest.js.map +1 -0
- package/dist/image-drop/menu-messages.d.ts +7 -0
- package/dist/image-drop/menu-messages.d.ts.map +1 -0
- package/dist/image-drop/menu-messages.js +12 -0
- package/dist/image-drop/menu-messages.js.map +1 -0
- package/dist/image-drop/messages/en.json +36 -0
- package/dist/image-drop/messages/menu/en.json +4 -0
- package/dist/image-drop/messages/menu/pl.json +4 -0
- package/dist/image-drop/messages/pl.json +36 -0
- package/dist/image-drop/messages/ui/en.json +23 -0
- package/dist/image-drop/messages/ui/pl.json +23 -0
- package/dist/image-drop/messages.d.ts +7 -0
- package/dist/image-drop/messages.d.ts.map +1 -0
- package/dist/image-drop/messages.js +14 -0
- package/dist/image-drop/messages.js.map +1 -0
- package/dist/image-drop/ui-messages.d.ts +7 -0
- package/dist/image-drop/ui-messages.d.ts.map +1 -0
- package/dist/image-drop/ui-messages.js +12 -0
- package/dist/image-drop/ui-messages.js.map +1 -0
- package/dist/image-label/definition.d.ts +3 -0
- package/dist/image-label/definition.d.ts.map +1 -0
- package/dist/image-label/definition.js +73 -0
- package/dist/image-label/definition.js.map +1 -0
- package/dist/image-label/editor.d.ts +4 -0
- package/dist/image-label/editor.d.ts.map +1 -0
- package/dist/image-label/editor.js +49 -0
- package/dist/image-label/editor.js.map +1 -0
- package/dist/image-label/element.d.ts +33 -0
- package/dist/image-label/element.d.ts.map +1 -0
- package/dist/image-label/element.js +291 -0
- package/dist/image-label/element.js.map +1 -0
- package/dist/image-label/manifest.d.ts +8 -0
- package/dist/image-label/manifest.d.ts.map +1 -0
- package/dist/image-label/manifest.js +68 -0
- package/dist/image-label/manifest.js.map +1 -0
- package/dist/image-label/menu-messages.d.ts +7 -0
- package/dist/image-label/menu-messages.d.ts.map +1 -0
- package/dist/image-label/menu-messages.js +12 -0
- package/dist/image-label/menu-messages.js.map +1 -0
- package/dist/image-label/messages/en.json +33 -0
- package/dist/image-label/messages/menu/en.json +4 -0
- package/dist/image-label/messages/menu/pl.json +4 -0
- package/dist/image-label/messages/pl.json +33 -0
- package/dist/image-label/messages/ui/en.json +5 -0
- package/dist/image-label/messages/ui/pl.json +5 -0
- package/dist/image-label/messages.d.ts +7 -0
- package/dist/image-label/messages.d.ts.map +1 -0
- package/dist/image-label/messages.js +14 -0
- package/dist/image-label/messages.js.map +1 -0
- package/dist/image-label/ui-messages.d.ts +7 -0
- package/dist/image-label/ui-messages.d.ts.map +1 -0
- package/dist/image-label/ui-messages.js +12 -0
- package/dist/image-label/ui-messages.js.map +1 -0
- package/dist/inline-styles.d.ts +3 -0
- package/dist/inline-styles.d.ts.map +1 -0
- package/dist/inline-styles.js +111 -0
- package/dist/inline-styles.js.map +1 -0
- package/dist/long-answer/definition.d.ts +4 -0
- package/dist/long-answer/definition.d.ts.map +1 -0
- package/dist/long-answer/definition.js +28 -0
- package/dist/long-answer/definition.js.map +1 -0
- package/dist/long-answer/editor.d.ts +3 -0
- package/dist/long-answer/editor.d.ts.map +1 -0
- package/dist/long-answer/editor.js +28 -0
- package/dist/long-answer/editor.js.map +1 -0
- package/dist/long-answer/element.d.ts +19 -0
- package/dist/long-answer/element.d.ts.map +1 -0
- package/dist/long-answer/element.js +142 -0
- package/dist/long-answer/element.js.map +1 -0
- package/dist/long-answer/manifest.d.ts +8 -0
- package/dist/long-answer/manifest.d.ts.map +1 -0
- package/dist/long-answer/manifest.js +36 -0
- package/dist/long-answer/manifest.js.map +1 -0
- package/dist/long-answer/menu-messages.d.ts +7 -0
- package/dist/long-answer/menu-messages.d.ts.map +1 -0
- package/dist/long-answer/menu-messages.js +12 -0
- package/dist/long-answer/menu-messages.js.map +1 -0
- package/dist/long-answer/messages/en.json +18 -0
- package/dist/long-answer/messages/menu/en.json +4 -0
- package/dist/long-answer/messages/menu/pl.json +4 -0
- package/dist/long-answer/messages/pl.json +18 -0
- package/dist/long-answer/messages/ui/en.json +5 -0
- package/dist/long-answer/messages/ui/pl.json +5 -0
- package/dist/long-answer/messages.d.ts +7 -0
- package/dist/long-answer/messages.d.ts.map +1 -0
- package/dist/long-answer/messages.js +14 -0
- package/dist/long-answer/messages.js.map +1 -0
- package/dist/long-answer/ui-messages.d.ts +7 -0
- package/dist/long-answer/ui-messages.d.ts.map +1 -0
- package/dist/long-answer/ui-messages.js +12 -0
- package/dist/long-answer/ui-messages.js.map +1 -0
- package/dist/manifests.d.ts +4 -0
- package/dist/manifests.d.ts.map +1 -0
- package/dist/manifests.js +45 -0
- package/dist/manifests.js.map +1 -0
- package/dist/mark-words/definition.d.ts +3 -0
- package/dist/mark-words/definition.d.ts.map +1 -0
- package/dist/mark-words/definition.js +34 -0
- package/dist/mark-words/definition.js.map +1 -0
- package/dist/mark-words/editor.d.ts +3 -0
- package/dist/mark-words/editor.d.ts.map +1 -0
- package/dist/mark-words/editor.js +47 -0
- package/dist/mark-words/editor.js.map +1 -0
- package/dist/mark-words/element.d.ts +32 -0
- package/dist/mark-words/element.d.ts.map +1 -0
- package/dist/mark-words/element.js +289 -0
- package/dist/mark-words/element.js.map +1 -0
- package/dist/mark-words/manifest.d.ts +8 -0
- package/dist/mark-words/manifest.d.ts.map +1 -0
- package/dist/mark-words/manifest.js +57 -0
- package/dist/mark-words/manifest.js.map +1 -0
- package/dist/mark-words/menu-messages.d.ts +7 -0
- package/dist/mark-words/menu-messages.d.ts.map +1 -0
- package/dist/mark-words/menu-messages.js +12 -0
- package/dist/mark-words/menu-messages.js.map +1 -0
- package/dist/mark-words/messages/en.json +47 -0
- package/dist/mark-words/messages/menu/en.json +5 -0
- package/dist/mark-words/messages/menu/pl.json +5 -0
- package/dist/mark-words/messages/pl.json +47 -0
- package/dist/mark-words/messages/ui/en.json +6 -0
- package/dist/mark-words/messages/ui/pl.json +6 -0
- package/dist/mark-words/messages.d.ts +4 -0
- package/dist/mark-words/messages.d.ts.map +1 -0
- package/dist/mark-words/messages.js +11 -0
- package/dist/mark-words/messages.js.map +1 -0
- package/dist/mark-words/ui-messages.d.ts +4 -0
- package/dist/mark-words/ui-messages.d.ts.map +1 -0
- package/dist/mark-words/ui-messages.js +9 -0
- package/dist/mark-words/ui-messages.js.map +1 -0
- package/dist/match/definition.d.ts +3 -0
- package/dist/match/definition.d.ts.map +1 -0
- package/dist/match/definition.js +94 -0
- package/dist/match/definition.js.map +1 -0
- package/dist/match/editor.d.ts +3 -0
- package/dist/match/editor.d.ts.map +1 -0
- package/dist/match/editor.js +53 -0
- package/dist/match/editor.js.map +1 -0
- package/dist/match/element.d.ts +40 -0
- package/dist/match/element.d.ts.map +1 -0
- package/dist/match/element.js +708 -0
- package/dist/match/element.js.map +1 -0
- package/dist/match/manifest.d.ts +9 -0
- package/dist/match/manifest.d.ts.map +1 -0
- package/dist/match/manifest.js +86 -0
- package/dist/match/manifest.js.map +1 -0
- package/dist/match/menu-messages.d.ts +7 -0
- package/dist/match/menu-messages.d.ts.map +1 -0
- package/dist/match/menu-messages.js +12 -0
- package/dist/match/menu-messages.js.map +1 -0
- package/dist/match/messages/en.json +38 -0
- package/dist/match/messages/menu/en.json +5 -0
- package/dist/match/messages/menu/pl.json +5 -0
- package/dist/match/messages/pl.json +38 -0
- package/dist/match/messages/ui/en.json +17 -0
- package/dist/match/messages/ui/pl.json +17 -0
- package/dist/match/messages.d.ts +7 -0
- package/dist/match/messages.d.ts.map +1 -0
- package/dist/match/messages.js +14 -0
- package/dist/match/messages.js.map +1 -0
- package/dist/match/ui-messages.d.ts +7 -0
- package/dist/match/ui-messages.d.ts.map +1 -0
- package/dist/match/ui-messages.js +12 -0
- package/dist/match/ui-messages.js.map +1 -0
- package/dist/memory/definition.d.ts +3 -0
- package/dist/memory/definition.d.ts.map +1 -0
- package/dist/memory/definition.js +91 -0
- package/dist/memory/definition.js.map +1 -0
- package/dist/memory/editor.d.ts +3 -0
- package/dist/memory/editor.d.ts.map +1 -0
- package/dist/memory/editor.js +39 -0
- package/dist/memory/editor.js.map +1 -0
- package/dist/memory/element.d.ts +44 -0
- package/dist/memory/element.d.ts.map +1 -0
- package/dist/memory/element.js +392 -0
- package/dist/memory/element.js.map +1 -0
- package/dist/memory/manifest.d.ts +9 -0
- package/dist/memory/manifest.d.ts.map +1 -0
- package/dist/memory/manifest.js +72 -0
- package/dist/memory/manifest.js.map +1 -0
- package/dist/memory/menu-messages.d.ts +7 -0
- package/dist/memory/menu-messages.d.ts.map +1 -0
- package/dist/memory/menu-messages.js +12 -0
- package/dist/memory/menu-messages.js.map +1 -0
- package/dist/memory/messages/en.json +25 -0
- package/dist/memory/messages/menu/en.json +4 -0
- package/dist/memory/messages/menu/pl.json +4 -0
- package/dist/memory/messages/pl.json +25 -0
- package/dist/memory/messages/ui/en.json +18 -0
- package/dist/memory/messages/ui/pl.json +18 -0
- package/dist/memory/messages.d.ts +7 -0
- package/dist/memory/messages.d.ts.map +1 -0
- package/dist/memory/messages.js +14 -0
- package/dist/memory/messages.js.map +1 -0
- package/dist/memory/ui-messages.d.ts +7 -0
- package/dist/memory/ui-messages.d.ts.map +1 -0
- package/dist/memory/ui-messages.js +12 -0
- package/dist/memory/ui-messages.js.map +1 -0
- package/dist/menu-messages.d.ts +8 -0
- package/dist/menu-messages.d.ts.map +1 -0
- package/dist/menu-messages.js +45 -0
- package/dist/menu-messages.js.map +1 -0
- package/dist/option-styles.d.ts +8 -0
- package/dist/option-styles.d.ts.map +1 -0
- package/dist/option-styles.js +60 -0
- package/dist/option-styles.js.map +1 -0
- package/dist/order/definition.d.ts +3 -0
- package/dist/order/definition.d.ts.map +1 -0
- package/dist/order/definition.js +68 -0
- package/dist/order/definition.js.map +1 -0
- package/dist/order/editor.d.ts +4 -0
- package/dist/order/editor.d.ts.map +1 -0
- package/dist/order/editor.js +35 -0
- package/dist/order/editor.js.map +1 -0
- package/dist/order/element.d.ts +39 -0
- package/dist/order/element.d.ts.map +1 -0
- package/dist/order/element.js +484 -0
- package/dist/order/element.js.map +1 -0
- package/dist/order/manifest.d.ts +8 -0
- package/dist/order/manifest.d.ts.map +1 -0
- package/dist/order/manifest.js +52 -0
- package/dist/order/manifest.js.map +1 -0
- package/dist/order/menu-messages.d.ts +7 -0
- package/dist/order/menu-messages.d.ts.map +1 -0
- package/dist/order/menu-messages.js +12 -0
- package/dist/order/menu-messages.js.map +1 -0
- package/dist/order/messages/en.json +27 -0
- package/dist/order/messages/menu/en.json +4 -0
- package/dist/order/messages/menu/pl.json +4 -0
- package/dist/order/messages/pl.json +27 -0
- package/dist/order/messages/ui/en.json +11 -0
- package/dist/order/messages/ui/pl.json +11 -0
- package/dist/order/messages.d.ts +7 -0
- package/dist/order/messages.d.ts.map +1 -0
- package/dist/order/messages.js +14 -0
- package/dist/order/messages.js.map +1 -0
- package/dist/order/ui-messages.d.ts +7 -0
- package/dist/order/ui-messages.d.ts.map +1 -0
- package/dist/order/ui-messages.js +12 -0
- package/dist/order/ui-messages.js.map +1 -0
- package/dist/picture-view.d.ts +33 -0
- package/dist/picture-view.d.ts.map +1 -0
- package/dist/picture-view.js +169 -0
- package/dist/picture-view.js.map +1 -0
- package/dist/picture.d.ts +55 -0
- package/dist/picture.d.ts.map +1 -0
- package/dist/picture.js +126 -0
- package/dist/picture.js.map +1 -0
- package/dist/select/definition.d.ts +3 -0
- package/dist/select/definition.d.ts.map +1 -0
- package/dist/select/definition.js +63 -0
- package/dist/select/definition.js.map +1 -0
- package/dist/select/editor.d.ts +4 -0
- package/dist/select/editor.d.ts.map +1 -0
- package/dist/select/editor.js +60 -0
- package/dist/select/editor.js.map +1 -0
- package/dist/select/element.d.ts +56 -0
- package/dist/select/element.d.ts.map +1 -0
- package/dist/select/element.js +839 -0
- package/dist/select/element.js.map +1 -0
- package/dist/select/manifest.d.ts +12 -0
- package/dist/select/manifest.d.ts.map +1 -0
- package/dist/select/manifest.js +77 -0
- package/dist/select/manifest.js.map +1 -0
- package/dist/select/menu-messages.d.ts +7 -0
- package/dist/select/menu-messages.d.ts.map +1 -0
- package/dist/select/menu-messages.js +12 -0
- package/dist/select/menu-messages.js.map +1 -0
- package/dist/select/messages/en.json +39 -0
- package/dist/select/messages/menu/en.json +5 -0
- package/dist/select/messages/menu/pl.json +5 -0
- package/dist/select/messages/pl.json +39 -0
- package/dist/select/messages/ui/en.json +7 -0
- package/dist/select/messages/ui/pl.json +7 -0
- package/dist/select/messages.d.ts +7 -0
- package/dist/select/messages.d.ts.map +1 -0
- package/dist/select/messages.js +14 -0
- package/dist/select/messages.js.map +1 -0
- package/dist/select/ui-messages.d.ts +7 -0
- package/dist/select/ui-messages.d.ts.map +1 -0
- package/dist/select/ui-messages.js +12 -0
- package/dist/select/ui-messages.js.map +1 -0
- package/dist/true-false/definition.d.ts +3 -0
- package/dist/true-false/definition.d.ts.map +1 -0
- package/dist/true-false/definition.js +67 -0
- package/dist/true-false/definition.js.map +1 -0
- package/dist/true-false/editor.d.ts +3 -0
- package/dist/true-false/editor.d.ts.map +1 -0
- package/dist/true-false/editor.js +32 -0
- package/dist/true-false/editor.js.map +1 -0
- package/dist/true-false/element.d.ts +35 -0
- package/dist/true-false/element.d.ts.map +1 -0
- package/dist/true-false/element.js +298 -0
- package/dist/true-false/element.js.map +1 -0
- package/dist/true-false/manifest.d.ts +8 -0
- package/dist/true-false/manifest.d.ts.map +1 -0
- package/dist/true-false/manifest.js +54 -0
- package/dist/true-false/manifest.js.map +1 -0
- package/dist/true-false/menu-messages.d.ts +7 -0
- package/dist/true-false/menu-messages.d.ts.map +1 -0
- package/dist/true-false/menu-messages.js +12 -0
- package/dist/true-false/menu-messages.js.map +1 -0
- package/dist/true-false/messages/en.json +28 -0
- package/dist/true-false/messages/menu/en.json +4 -0
- package/dist/true-false/messages/menu/pl.json +4 -0
- package/dist/true-false/messages/pl.json +28 -0
- package/dist/true-false/messages/ui/en.json +7 -0
- package/dist/true-false/messages/ui/pl.json +7 -0
- package/dist/true-false/messages.d.ts +7 -0
- package/dist/true-false/messages.d.ts.map +1 -0
- package/dist/true-false/messages.js +14 -0
- package/dist/true-false/messages.js.map +1 -0
- package/dist/true-false/ui-messages.d.ts +7 -0
- package/dist/true-false/ui-messages.d.ts.map +1 -0
- package/dist/true-false/ui-messages.js +12 -0
- package/dist/true-false/ui-messages.js.map +1 -0
- package/dist/video/definition.d.ts +12 -0
- package/dist/video/definition.d.ts.map +1 -0
- package/dist/video/definition.js +119 -0
- package/dist/video/definition.js.map +1 -0
- package/dist/video/editor.d.ts +7 -0
- package/dist/video/editor.d.ts.map +1 -0
- package/dist/video/editor.js +61 -0
- package/dist/video/editor.js.map +1 -0
- package/dist/video/element.d.ts +26 -0
- package/dist/video/element.d.ts.map +1 -0
- package/dist/video/element.js +183 -0
- package/dist/video/element.js.map +1 -0
- package/dist/video/manifest.d.ts +10 -0
- package/dist/video/manifest.d.ts.map +1 -0
- package/dist/video/manifest.js +58 -0
- package/dist/video/manifest.js.map +1 -0
- package/dist/video/menu-messages.d.ts +7 -0
- package/dist/video/menu-messages.d.ts.map +1 -0
- package/dist/video/menu-messages.js +12 -0
- package/dist/video/menu-messages.js.map +1 -0
- package/dist/video/messages/en.json +32 -0
- package/dist/video/messages/menu/en.json +4 -0
- package/dist/video/messages/menu/pl.json +4 -0
- package/dist/video/messages/pl.json +32 -0
- package/dist/video/messages/ui/en.json +4 -0
- package/dist/video/messages/ui/pl.json +4 -0
- package/dist/video/messages.d.ts +7 -0
- package/dist/video/messages.d.ts.map +1 -0
- package/dist/video/messages.js +14 -0
- package/dist/video/messages.js.map +1 -0
- package/dist/video/ui-messages.d.ts +7 -0
- package/dist/video/ui-messages.d.ts.map +1 -0
- package/dist/video/ui-messages.js +12 -0
- package/dist/video/ui-messages.js.map +1 -0
- package/dist/word-bank/definition.d.ts +3 -0
- package/dist/word-bank/definition.d.ts.map +1 -0
- package/dist/word-bank/definition.js +41 -0
- package/dist/word-bank/definition.js.map +1 -0
- package/dist/word-bank/editor.d.ts +4 -0
- package/dist/word-bank/editor.d.ts.map +1 -0
- package/dist/word-bank/editor.js +39 -0
- package/dist/word-bank/editor.js.map +1 -0
- package/dist/word-bank/element.d.ts +50 -0
- package/dist/word-bank/element.d.ts.map +1 -0
- package/dist/word-bank/element.js +320 -0
- package/dist/word-bank/element.js.map +1 -0
- package/dist/word-bank/manifest.d.ts +9 -0
- package/dist/word-bank/manifest.d.ts.map +1 -0
- package/dist/word-bank/manifest.js +55 -0
- package/dist/word-bank/manifest.js.map +1 -0
- package/dist/word-bank/menu-messages.d.ts +7 -0
- package/dist/word-bank/menu-messages.d.ts.map +1 -0
- package/dist/word-bank/menu-messages.js +12 -0
- package/dist/word-bank/menu-messages.js.map +1 -0
- package/dist/word-bank/messages/en.json +22 -0
- package/dist/word-bank/messages/menu/en.json +4 -0
- package/dist/word-bank/messages/menu/pl.json +4 -0
- package/dist/word-bank/messages/pl.json +22 -0
- package/dist/word-bank/messages/ui/en.json +20 -0
- package/dist/word-bank/messages/ui/pl.json +20 -0
- package/dist/word-bank/messages.d.ts +7 -0
- package/dist/word-bank/messages.d.ts.map +1 -0
- package/dist/word-bank/messages.js +14 -0
- package/dist/word-bank/messages.js.map +1 -0
- package/dist/word-bank/ui-messages.d.ts +7 -0
- package/dist/word-bank/ui-messages.d.ts.map +1 -0
- package/dist/word-bank/ui-messages.js +12 -0
- package/dist/word-bank/ui-messages.js.map +1 -0
- package/dist/word-search/definition.d.ts +3 -0
- package/dist/word-search/definition.d.ts.map +1 -0
- package/dist/word-search/definition.js +288 -0
- package/dist/word-search/definition.js.map +1 -0
- package/dist/word-search/editor.d.ts +3 -0
- package/dist/word-search/editor.d.ts.map +1 -0
- package/dist/word-search/editor.js +44 -0
- package/dist/word-search/editor.js.map +1 -0
- package/dist/word-search/element.d.ts +40 -0
- package/dist/word-search/element.d.ts.map +1 -0
- package/dist/word-search/element.js +706 -0
- package/dist/word-search/element.js.map +1 -0
- package/dist/word-search/manifest.d.ts +9 -0
- package/dist/word-search/manifest.d.ts.map +1 -0
- package/dist/word-search/manifest.js +96 -0
- package/dist/word-search/manifest.js.map +1 -0
- package/dist/word-search/menu-messages.d.ts +7 -0
- package/dist/word-search/menu-messages.d.ts.map +1 -0
- package/dist/word-search/menu-messages.js +12 -0
- package/dist/word-search/menu-messages.js.map +1 -0
- package/dist/word-search/messages/en.json +35 -0
- package/dist/word-search/messages/menu/en.json +4 -0
- package/dist/word-search/messages/menu/pl.json +4 -0
- package/dist/word-search/messages/pl.json +35 -0
- package/dist/word-search/messages/ui/en.json +24 -0
- package/dist/word-search/messages/ui/pl.json +24 -0
- package/dist/word-search/messages.d.ts +7 -0
- package/dist/word-search/messages.d.ts.map +1 -0
- package/dist/word-search/messages.js +14 -0
- package/dist/word-search/messages.js.map +1 -0
- package/dist/word-search/span.d.ts +17 -0
- package/dist/word-search/span.d.ts.map +1 -0
- package/dist/word-search/span.js +35 -0
- package/dist/word-search/span.js.map +1 -0
- package/dist/word-search/ui-messages.d.ts +7 -0
- package/dist/word-search/ui-messages.d.ts.map +1 -0
- package/dist/word-search/ui-messages.js +12 -0
- package/dist/word-search/ui-messages.js.map +1 -0
- package/package.json +41 -3
- package/src/audio/definition.ts +39 -0
- package/src/audio/editor.ts +27 -0
- package/src/audio/element.ts +103 -0
- package/src/audio/fixtures/audio-basic/bakery.mp3 +0 -0
- package/src/audio/fixtures/audio-basic/issues.json +1 -0
- package/src/audio/fixtures/audio-basic/key.json +8 -0
- package/src/audio/fixtures/audio-basic/meta.json +23 -0
- package/src/audio/fixtures/audio-basic/source.html +11 -0
- package/src/audio/fixtures/audio-basic/view.html +7 -0
- package/src/audio/fixtures/audio-invalid-transcript-empty/issues.json +7 -0
- package/src/audio/fixtures/audio-invalid-transcript-empty/source.html +5 -0
- package/src/audio/fixtures/audio-long-transcript/issues.json +1 -0
- package/src/audio/fixtures/audio-long-transcript/key.json +8 -0
- package/src/audio/fixtures/audio-long-transcript/meta.json +23 -0
- package/src/audio/fixtures/audio-long-transcript/source.html +17 -0
- package/src/audio/fixtures/audio-long-transcript/view.html +13 -0
- package/src/audio/fixtures/audio-minimal/issues.json +1 -0
- package/src/audio/fixtures/audio-minimal/key.json +8 -0
- package/src/audio/fixtures/audio-minimal/meta.json +23 -0
- package/src/audio/fixtures/audio-minimal/source.html +1 -0
- package/src/audio/fixtures/audio-minimal/view.html +1 -0
- package/src/audio/fixtures/audio-mixed/grading.json +79 -0
- package/src/audio/fixtures/audio-mixed/issues.json +1 -0
- package/src/audio/fixtures/audio-mixed/key.json +58 -0
- package/src/audio/fixtures/audio-mixed/meta.json +24 -0
- package/src/audio/fixtures/audio-mixed/source.html +11 -0
- package/src/audio/fixtures/audio-mixed/view.html +9 -0
- package/src/audio/fixtures/audio-polish/issues.json +1 -0
- package/src/audio/fixtures/audio-polish/key.json +8 -0
- package/src/audio/fixtures/audio-polish/meta.json +23 -0
- package/src/audio/fixtures/audio-polish/pogoda.mp3 +0 -0
- package/src/audio/fixtures/audio-polish/source.html +7 -0
- package/src/audio/fixtures/audio-polish/view.html +7 -0
- package/src/audio/fixtures/audio-style-templates/issues.json +1 -0
- package/src/audio/fixtures/audio-style-templates/key.json +8 -0
- package/src/audio/fixtures/audio-style-templates/meta.json +23 -0
- package/src/audio/fixtures/audio-style-templates/source.html +7 -0
- package/src/audio/fixtures/audio-style-templates/view.html +7 -0
- package/src/audio/manifest.ts +34 -0
- package/src/audio/menu-messages.ts +14 -0
- package/src/audio/messages/en.json +12 -0
- package/src/audio/messages/menu/en.json +3 -0
- package/src/audio/messages/menu/pl.json +3 -0
- package/src/audio/messages/pl.json +12 -0
- package/src/audio/messages/ui/en.json +3 -0
- package/src/audio/messages/ui/pl.json +3 -0
- package/src/audio/messages.ts +16 -0
- package/src/audio/ui-messages.ts +14 -0
- package/src/block-styles.ts +96 -0
- package/src/callout/definition.ts +17 -0
- package/src/callout/editor.ts +14 -0
- package/src/callout/element.ts +105 -0
- package/src/callout/fixtures/callout-empty/issues.json +7 -0
- package/src/callout/fixtures/callout-empty/key.json +8 -0
- package/src/callout/fixtures/callout-empty/meta.json +23 -0
- package/src/callout/fixtures/callout-empty/source.html +4 -0
- package/src/callout/fixtures/callout-empty/view.html +4 -0
- package/src/callout/fixtures/callout-figure/issues.json +1 -0
- package/src/callout/fixtures/callout-figure/key.json +8 -0
- package/src/callout/fixtures/callout-figure/meta.json +23 -0
- package/src/callout/fixtures/callout-figure/river.svg +7 -0
- package/src/callout/fixtures/callout-figure/source.html +9 -0
- package/src/callout/fixtures/callout-figure/view.html +9 -0
- package/src/callout/fixtures/callout-help-ungraded/issues.json +12 -0
- package/src/callout/fixtures/callout-help-ungraded/key.json +8 -0
- package/src/callout/fixtures/callout-help-ungraded/meta.json +23 -0
- package/src/callout/fixtures/callout-help-ungraded/source.html +7 -0
- package/src/callout/fixtures/callout-help-ungraded/view.html +7 -0
- package/src/callout/fixtures/callout-in-columns/issues.json +1 -0
- package/src/callout/fixtures/callout-in-columns/key.json +8 -0
- package/src/callout/fixtures/callout-in-columns/meta.json +23 -0
- package/src/callout/fixtures/callout-in-columns/source.html +10 -0
- package/src/callout/fixtures/callout-in-columns/view.html +7 -0
- package/src/callout/fixtures/callout-info/issues.json +1 -0
- package/src/callout/fixtures/callout-info/key.json +8 -0
- package/src/callout/fixtures/callout-info/meta.json +23 -0
- package/src/callout/fixtures/callout-info/source.html +6 -0
- package/src/callout/fixtures/callout-info/view.html +6 -0
- package/src/callout/fixtures/callout-invalid-columns-inside/issues.json +7 -0
- package/src/callout/fixtures/callout-invalid-columns-inside/source.html +8 -0
- package/src/callout/fixtures/callout-invalid-component-inside/issues.json +7 -0
- package/src/callout/fixtures/callout-invalid-component-inside/source.html +5 -0
- package/src/callout/fixtures/callout-invalid-kind/issues.json +7 -0
- package/src/callout/fixtures/callout-invalid-kind/source.html +5 -0
- package/src/callout/fixtures/callout-invalid-page-inside/issues.json +7 -0
- package/src/callout/fixtures/callout-invalid-page-inside/source.html +10 -0
- package/src/callout/fixtures/callout-long-texts/issues.json +1 -0
- package/src/callout/fixtures/callout-long-texts/key.json +8 -0
- package/src/callout/fixtures/callout-long-texts/meta.json +23 -0
- package/src/callout/fixtures/callout-long-texts/source.html +6 -0
- package/src/callout/fixtures/callout-long-texts/view.html +6 -0
- package/src/callout/fixtures/callout-mixed/grading.json +22 -0
- package/src/callout/fixtures/callout-mixed/issues.json +1 -0
- package/src/callout/fixtures/callout-mixed/key.json +27 -0
- package/src/callout/fixtures/callout-mixed/meta.json +24 -0
- package/src/callout/fixtures/callout-mixed/source.html +13 -0
- package/src/callout/fixtures/callout-mixed/view.html +13 -0
- package/src/callout/fixtures/callout-style-templates/issues.json +1 -0
- package/src/callout/fixtures/callout-style-templates/key.json +8 -0
- package/src/callout/fixtures/callout-style-templates/meta.json +23 -0
- package/src/callout/fixtures/callout-style-templates/source.html +9 -0
- package/src/callout/fixtures/callout-style-templates/view.html +9 -0
- package/src/callout/fixtures/callout-tip/issues.json +1 -0
- package/src/callout/fixtures/callout-tip/key.json +8 -0
- package/src/callout/fixtures/callout-tip/meta.json +23 -0
- package/src/callout/fixtures/callout-tip/source.html +11 -0
- package/src/callout/fixtures/callout-tip/view.html +11 -0
- package/src/callout/fixtures/callout-warning/flame.svg +5 -0
- package/src/callout/fixtures/callout-warning/issues.json +1 -0
- package/src/callout/fixtures/callout-warning/key.json +8 -0
- package/src/callout/fixtures/callout-warning/meta.json +23 -0
- package/src/callout/fixtures/callout-warning/source.html +9 -0
- package/src/callout/fixtures/callout-warning/view.html +9 -0
- package/src/callout/manifest.ts +29 -0
- package/src/callout/menu-messages.ts +14 -0
- package/src/callout/messages/en.json +9 -0
- package/src/callout/messages/menu/en.json +3 -0
- package/src/callout/messages/menu/pl.json +3 -0
- package/src/callout/messages/pl.json +9 -0
- package/src/callout/messages/ui/en.json +5 -0
- package/src/callout/messages/ui/pl.json +5 -0
- package/src/callout/messages.ts +13 -0
- package/src/callout/ui-messages.ts +11 -0
- package/src/categorise/definition.ts +125 -0
- package/src/categorise/editor.ts +56 -0
- package/src/categorise/element.ts +552 -0
- package/src/categorise/fixtures/categorise-animals/grading.json +134 -0
- package/src/categorise/fixtures/categorise-animals/issues.json +1 -0
- package/src/categorise/fixtures/categorise-animals/key.json +72 -0
- package/src/categorise/fixtures/categorise-animals/meta.json +23 -0
- package/src/categorise/fixtures/categorise-animals/source.html +14 -0
- package/src/categorise/fixtures/categorise-animals/view.html +3 -0
- package/src/categorise/fixtures/categorise-duplicate-card/grading.json +94 -0
- package/src/categorise/fixtures/categorise-duplicate-card/issues.json +7 -0
- package/src/categorise/fixtures/categorise-duplicate-card/key.json +63 -0
- package/src/categorise/fixtures/categorise-duplicate-card/meta.json +23 -0
- package/src/categorise/fixtures/categorise-duplicate-card/source.html +12 -0
- package/src/categorise/fixtures/categorise-duplicate-card/view.html +3 -0
- package/src/categorise/fixtures/categorise-empty-prompt/grading.json +92 -0
- package/src/categorise/fixtures/categorise-empty-prompt/issues.json +7 -0
- package/src/categorise/fixtures/categorise-empty-prompt/key.json +49 -0
- package/src/categorise/fixtures/categorise-empty-prompt/meta.json +23 -0
- package/src/categorise/fixtures/categorise-empty-prompt/source.html +12 -0
- package/src/categorise/fixtures/categorise-empty-prompt/view.html +4 -0
- package/src/categorise/fixtures/categorise-four-groups/grading.json +137 -0
- package/src/categorise/fixtures/categorise-four-groups/issues.json +1 -0
- package/src/categorise/fixtures/categorise-four-groups/key.json +126 -0
- package/src/categorise/fixtures/categorise-four-groups/meta.json +23 -0
- package/src/categorise/fixtures/categorise-four-groups/source.html +21 -0
- package/src/categorise/fixtures/categorise-four-groups/view.html +3 -0
- package/src/categorise/fixtures/categorise-invalid-ambiguous-card/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-ambiguous-card/source.html +11 -0
- package/src/categorise/fixtures/categorise-invalid-card-without-group/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-card-without-group/source.html +9 -0
- package/src/categorise/fixtures/categorise-invalid-duplicate-group/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-duplicate-group/source.html +8 -0
- package/src/categorise/fixtures/categorise-invalid-empty-card/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-empty-card/source.html +9 -0
- package/src/categorise/fixtures/categorise-invalid-empty-group-name/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-empty-group-name/source.html +8 -0
- package/src/categorise/fixtures/categorise-invalid-link-in-card/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-link-in-card/source.html +8 -0
- package/src/categorise/fixtures/categorise-invalid-one-group/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-one-group/source.html +7 -0
- package/src/categorise/fixtures/categorise-invalid-palette/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-palette/source.html +8 -0
- package/src/categorise/fixtures/categorise-invalid-picture-alt-empty/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-picture-alt-empty/source.html +8 -0
- package/src/categorise/fixtures/categorise-invalid-too-many-cards/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-too-many-cards/source.html +31 -0
- package/src/categorise/fixtures/categorise-invalid-unknown-group/issues.json +7 -0
- package/src/categorise/fixtures/categorise-invalid-unknown-group/source.html +9 -0
- package/src/categorise/fixtures/categorise-long-texts/grading.json +97 -0
- package/src/categorise/fixtures/categorise-long-texts/issues.json +1 -0
- package/src/categorise/fixtures/categorise-long-texts/key.json +63 -0
- package/src/categorise/fixtures/categorise-long-texts/meta.json +23 -0
- package/src/categorise/fixtures/categorise-long-texts/source.html +12 -0
- package/src/categorise/fixtures/categorise-long-texts/view.html +3 -0
- package/src/categorise/fixtures/categorise-palette/grading.json +42 -0
- package/src/categorise/fixtures/categorise-palette/issues.json +1 -0
- package/src/categorise/fixtures/categorise-palette/key.json +49 -0
- package/src/categorise/fixtures/categorise-palette/meta.json +23 -0
- package/src/categorise/fixtures/categorise-palette/source.html +11 -0
- package/src/categorise/fixtures/categorise-palette/view.html +3 -0
- package/src/categorise/fixtures/categorise-palette-six/grading.json +48 -0
- package/src/categorise/fixtures/categorise-palette-six/issues.json +1 -0
- package/src/categorise/fixtures/categorise-palette-six/key.json +72 -0
- package/src/categorise/fixtures/categorise-palette-six/meta.json +23 -0
- package/src/categorise/fixtures/categorise-palette-six/source.html +17 -0
- package/src/categorise/fixtures/categorise-palette-six/view.html +3 -0
- package/src/categorise/fixtures/categorise-picture-only/grading.json +37 -0
- package/src/categorise/fixtures/categorise-picture-only/issues.json +1 -0
- package/src/categorise/fixtures/categorise-picture-only/key.json +49 -0
- package/src/categorise/fixtures/categorise-picture-only/meta.json +23 -0
- package/src/categorise/fixtures/categorise-picture-only/orzel.svg +7 -0
- package/src/categorise/fixtures/categorise-picture-only/source.html +11 -0
- package/src/categorise/fixtures/categorise-picture-only/szczupak.svg +8 -0
- package/src/categorise/fixtures/categorise-picture-only/view.html +3 -0
- package/src/categorise/fixtures/categorise-picture-only/wrobel.svg +9 -0
- package/src/categorise/fixtures/categorise-pictures/circle.svg +5 -0
- package/src/categorise/fixtures/categorise-pictures/grading.json +82 -0
- package/src/categorise/fixtures/categorise-pictures/hexagon.svg +5 -0
- package/src/categorise/fixtures/categorise-pictures/issues.json +1 -0
- package/src/categorise/fixtures/categorise-pictures/key.json +63 -0
- package/src/categorise/fixtures/categorise-pictures/meta.json +23 -0
- package/src/categorise/fixtures/categorise-pictures/oval.svg +5 -0
- package/src/categorise/fixtures/categorise-pictures/source.html +12 -0
- package/src/categorise/fixtures/categorise-pictures/square.svg +5 -0
- package/src/categorise/fixtures/categorise-pictures/triangle.svg +5 -0
- package/src/categorise/fixtures/categorise-pictures/view.html +3 -0
- package/src/categorise/fixtures/categorise-pictures-polish/grading.json +63 -0
- package/src/categorise/fixtures/categorise-pictures-polish/issues.json +1 -0
- package/src/categorise/fixtures/categorise-pictures-polish/key.json +49 -0
- package/src/categorise/fixtures/categorise-pictures-polish/meta.json +23 -0
- package/src/categorise/fixtures/categorise-pictures-polish/ognisko.svg +7 -0
- package/src/categorise/fixtures/categorise-pictures-polish/slonce.svg +6 -0
- package/src/categorise/fixtures/categorise-pictures-polish/snieg.svg +8 -0
- package/src/categorise/fixtures/categorise-pictures-polish/sopel.svg +6 -0
- package/src/categorise/fixtures/categorise-pictures-polish/source.html +11 -0
- package/src/categorise/fixtures/categorise-pictures-polish/view.html +3 -0
- package/src/categorise/fixtures/categorise-polish/grading.json +115 -0
- package/src/categorise/fixtures/categorise-polish/issues.json +1 -0
- package/src/categorise/fixtures/categorise-polish/key.json +72 -0
- package/src/categorise/fixtures/categorise-polish/meta.json +23 -0
- package/src/categorise/fixtures/categorise-polish/source.html +14 -0
- package/src/categorise/fixtures/categorise-polish/view.html +3 -0
- package/src/categorise/fixtures/categorise-two-groups/grading.json +108 -0
- package/src/categorise/fixtures/categorise-two-groups/issues.json +1 -0
- package/src/categorise/fixtures/categorise-two-groups/key.json +49 -0
- package/src/categorise/fixtures/categorise-two-groups/meta.json +23 -0
- package/src/categorise/fixtures/categorise-two-groups/source.html +11 -0
- package/src/categorise/fixtures/categorise-two-groups/view.html +4 -0
- package/src/categorise/fixtures/categorise-unused-group/grading.json +94 -0
- package/src/categorise/fixtures/categorise-unused-group/issues.json +7 -0
- package/src/categorise/fixtures/categorise-unused-group/key.json +49 -0
- package/src/categorise/fixtures/categorise-unused-group/meta.json +23 -0
- package/src/categorise/fixtures/categorise-unused-group/source.html +12 -0
- package/src/categorise/fixtures/categorise-unused-group/view.html +3 -0
- package/src/categorise/manifest.ts +69 -0
- package/src/categorise/menu-messages.ts +14 -0
- package/src/categorise/messages/en.json +40 -0
- package/src/categorise/messages/menu/en.json +4 -0
- package/src/categorise/messages/menu/pl.json +4 -0
- package/src/categorise/messages/pl.json +40 -0
- package/src/categorise/messages/ui/en.json +15 -0
- package/src/categorise/messages/ui/pl.json +15 -0
- package/src/categorise/messages.ts +16 -0
- package/src/categorise/ui-messages.ts +14 -0
- package/src/chip-styles.ts +88 -0
- package/src/choice/definition.ts +95 -0
- package/src/choice/editor.ts +37 -0
- package/src/choice/element.ts +312 -0
- package/src/choice/fixtures/choice-formatting/grading.json +81 -0
- package/src/choice/fixtures/choice-formatting/issues.json +1 -0
- package/src/choice/fixtures/choice-formatting/key.json +64 -0
- package/src/choice/fixtures/choice-formatting/meta.json +23 -0
- package/src/choice/fixtures/choice-formatting/source.html +15 -0
- package/src/choice/fixtures/choice-formatting/view.html +4 -0
- package/src/choice/fixtures/choice-help/grading.json +52 -0
- package/src/choice/fixtures/choice-help/issues.json +1 -0
- package/src/choice/fixtures/choice-help/key.json +45 -0
- package/src/choice/fixtures/choice-help/meta.json +23 -0
- package/src/choice/fixtures/choice-help/source.html +14 -0
- package/src/choice/fixtures/choice-help/view.html +3 -0
- package/src/choice/fixtures/choice-in-columns/grading.json +56 -0
- package/src/choice/fixtures/choice-in-columns/issues.json +1 -0
- package/src/choice/fixtures/choice-in-columns/key.json +25 -0
- package/src/choice/fixtures/choice-in-columns/meta.json +23 -0
- package/src/choice/fixtures/choice-in-columns/source.html +21 -0
- package/src/choice/fixtures/choice-in-columns/tree.svg +17 -0
- package/src/choice/fixtures/choice-in-columns/view.html +13 -0
- package/src/choice/fixtures/choice-invalid-columns-inside/issues.json +12 -0
- package/src/choice/fixtures/choice-invalid-columns-inside/source.html +12 -0
- package/src/choice/fixtures/choice-invalid-help/issues.json +62 -0
- package/src/choice/fixtures/choice-invalid-help/source.html +19 -0
- package/src/choice/fixtures/choice-invalid-no-correct/issues.json +7 -0
- package/src/choice/fixtures/choice-invalid-no-correct/source.html +7 -0
- package/src/choice/fixtures/choice-invalid-picture-alt-empty/issues.json +7 -0
- package/src/choice/fixtures/choice-invalid-picture-alt-empty/source.html +7 -0
- package/src/choice/fixtures/choice-invalid-picture-blocked/issues.json +7 -0
- package/src/choice/fixtures/choice-invalid-picture-blocked/source.html +7 -0
- package/src/choice/fixtures/choice-invalid-single-two-correct/issues.json +7 -0
- package/src/choice/fixtures/choice-invalid-single-two-correct/source.html +8 -0
- package/src/choice/fixtures/choice-invalid-variant/issues.json +7 -0
- package/src/choice/fixtures/choice-invalid-variant/source.html +7 -0
- package/src/choice/fixtures/choice-long-options/grading.json +58 -0
- package/src/choice/fixtures/choice-long-options/issues.json +1 -0
- package/src/choice/fixtures/choice-long-options/key.json +25 -0
- package/src/choice/fixtures/choice-long-options/meta.json +23 -0
- package/src/choice/fixtures/choice-long-options/source.html +8 -0
- package/src/choice/fixtures/choice-long-options/view.html +3 -0
- package/src/choice/fixtures/choice-multiple-all/grading.json +123 -0
- package/src/choice/fixtures/choice-multiple-all/issues.json +1 -0
- package/src/choice/fixtures/choice-multiple-all/key.json +80 -0
- package/src/choice/fixtures/choice-multiple-all/meta.json +23 -0
- package/src/choice/fixtures/choice-multiple-all/source.html +15 -0
- package/src/choice/fixtures/choice-multiple-all/view.html +4 -0
- package/src/choice/fixtures/choice-multiple-per-option/grading.json +100 -0
- package/src/choice/fixtures/choice-multiple-per-option/issues.json +1 -0
- package/src/choice/fixtures/choice-multiple-per-option/key.json +80 -0
- package/src/choice/fixtures/choice-multiple-per-option/meta.json +23 -0
- package/src/choice/fixtures/choice-multiple-per-option/source.html +15 -0
- package/src/choice/fixtures/choice-multiple-per-option/view.html +4 -0
- package/src/choice/fixtures/choice-no-prompt/grading.json +80 -0
- package/src/choice/fixtures/choice-no-prompt/issues.json +1 -0
- package/src/choice/fixtures/choice-no-prompt/key.json +56 -0
- package/src/choice/fixtures/choice-no-prompt/meta.json +23 -0
- package/src/choice/fixtures/choice-no-prompt/source.html +13 -0
- package/src/choice/fixtures/choice-no-prompt/view.html +6 -0
- package/src/choice/fixtures/choice-picture-only/grading.json +37 -0
- package/src/choice/fixtures/choice-picture-only/issues.json +1 -0
- package/src/choice/fixtures/choice-picture-only/key.json +56 -0
- package/src/choice/fixtures/choice-picture-only/kot.svg +10 -0
- package/src/choice/fixtures/choice-picture-only/meta.json +23 -0
- package/src/choice/fixtures/choice-picture-only/motyl.svg +9 -0
- package/src/choice/fixtures/choice-picture-only/pies.svg +11 -0
- package/src/choice/fixtures/choice-picture-only/ryba.svg +8 -0
- package/src/choice/fixtures/choice-picture-only/source.html +14 -0
- package/src/choice/fixtures/choice-picture-only/view.html +4 -0
- package/src/choice/fixtures/choice-pictures/cloud.svg +9 -0
- package/src/choice/fixtures/choice-pictures/grading.json +81 -0
- package/src/choice/fixtures/choice-pictures/issues.json +1 -0
- package/src/choice/fixtures/choice-pictures/key.json +64 -0
- package/src/choice/fixtures/choice-pictures/meta.json +23 -0
- package/src/choice/fixtures/choice-pictures/moon.svg +5 -0
- package/src/choice/fixtures/choice-pictures/rainbow.svg +11 -0
- package/src/choice/fixtures/choice-pictures/source.html +15 -0
- package/src/choice/fixtures/choice-pictures/stars.svg +8 -0
- package/src/choice/fixtures/choice-pictures/sun.svg +8 -0
- package/src/choice/fixtures/choice-pictures/view.html +4 -0
- package/src/choice/fixtures/choice-pictures-polish/grading.json +82 -0
- package/src/choice/fixtures/choice-pictures-polish/issues.json +1 -0
- package/src/choice/fixtures/choice-pictures-polish/key.json +64 -0
- package/src/choice/fixtures/choice-pictures-polish/kolo.svg +5 -0
- package/src/choice/fixtures/choice-pictures-polish/kwadrat.svg +5 -0
- package/src/choice/fixtures/choice-pictures-polish/meta.json +23 -0
- package/src/choice/fixtures/choice-pictures-polish/prostokat.svg +5 -0
- package/src/choice/fixtures/choice-pictures-polish/source.html +15 -0
- package/src/choice/fixtures/choice-pictures-polish/trojkat.svg +5 -0
- package/src/choice/fixtures/choice-pictures-polish/view.html +4 -0
- package/src/choice/fixtures/choice-polish/grading.json +81 -0
- package/src/choice/fixtures/choice-polish/issues.json +1 -0
- package/src/choice/fixtures/choice-polish/key.json +64 -0
- package/src/choice/fixtures/choice-polish/meta.json +23 -0
- package/src/choice/fixtures/choice-polish/source.html +15 -0
- package/src/choice/fixtures/choice-polish/view.html +4 -0
- package/src/choice/fixtures/choice-shuffle/grading.json +83 -0
- package/src/choice/fixtures/choice-shuffle/issues.json +1 -0
- package/src/choice/fixtures/choice-shuffle/key.json +64 -0
- package/src/choice/fixtures/choice-shuffle/meta.json +23 -0
- package/src/choice/fixtures/choice-shuffle/source.html +16 -0
- package/src/choice/fixtures/choice-shuffle/view.html +4 -0
- package/src/choice/fixtures/choice-single/grading.json +84 -0
- package/src/choice/fixtures/choice-single/issues.json +1 -0
- package/src/choice/fixtures/choice-single/key.json +25 -0
- package/src/choice/fixtures/choice-single/meta.json +23 -0
- package/src/choice/fixtures/choice-single/source.html +8 -0
- package/src/choice/fixtures/choice-single/view.html +3 -0
- package/src/choice/fixtures/choice-style-templates/grading.json +90 -0
- package/src/choice/fixtures/choice-style-templates/issues.json +1 -0
- package/src/choice/fixtures/choice-style-templates/key.json +71 -0
- package/src/choice/fixtures/choice-style-templates/meta.json +23 -0
- package/src/choice/fixtures/choice-style-templates/source.html +21 -0
- package/src/choice/fixtures/choice-style-templates/view.html +7 -0
- package/src/choice/fixtures/choice-twelve-options/grading.json +91 -0
- package/src/choice/fixtures/choice-twelve-options/issues.json +1 -0
- package/src/choice/fixtures/choice-twelve-options/key.json +141 -0
- package/src/choice/fixtures/choice-twelve-options/meta.json +23 -0
- package/src/choice/fixtures/choice-twelve-options/source.html +32 -0
- package/src/choice/fixtures/choice-twelve-options/view.html +4 -0
- package/src/choice/fixtures/choice-two-options/grading.json +79 -0
- package/src/choice/fixtures/choice-two-options/issues.json +1 -0
- package/src/choice/fixtures/choice-two-options/key.json +40 -0
- package/src/choice/fixtures/choice-two-options/meta.json +23 -0
- package/src/choice/fixtures/choice-two-options/source.html +12 -0
- package/src/choice/fixtures/choice-two-options/view.html +4 -0
- package/src/choice/fixtures/choice-variant-cards/grading.json +82 -0
- package/src/choice/fixtures/choice-variant-cards/issues.json +1 -0
- package/src/choice/fixtures/choice-variant-cards/key.json +87 -0
- package/src/choice/fixtures/choice-variant-cards/meta.json +23 -0
- package/src/choice/fixtures/choice-variant-cards/source.html +18 -0
- package/src/choice/fixtures/choice-variant-cards/view.html +4 -0
- package/src/choice/fixtures/choice-variant-cards-polish/grading.json +73 -0
- package/src/choice/fixtures/choice-variant-cards-polish/issues.json +1 -0
- package/src/choice/fixtures/choice-variant-cards-polish/key.json +49 -0
- package/src/choice/fixtures/choice-variant-cards-polish/meta.json +23 -0
- package/src/choice/fixtures/choice-variant-cards-polish/source.html +9 -0
- package/src/choice/fixtures/choice-variant-cards-polish/view.html +3 -0
- package/src/choice/fixtures/choice-variant-list/grading.json +56 -0
- package/src/choice/fixtures/choice-variant-list/issues.json +1 -0
- package/src/choice/fixtures/choice-variant-list/key.json +25 -0
- package/src/choice/fixtures/choice-variant-list/meta.json +23 -0
- package/src/choice/fixtures/choice-variant-list/source.html +8 -0
- package/src/choice/fixtures/choice-variant-list/view.html +3 -0
- package/src/choice/manifest.ts +50 -0
- package/src/choice/menu-messages.ts +14 -0
- package/src/choice/messages/en.json +32 -0
- package/src/choice/messages/menu/en.json +4 -0
- package/src/choice/messages/menu/pl.json +4 -0
- package/src/choice/messages/pl.json +32 -0
- package/src/choice/messages/ui/en.json +5 -0
- package/src/choice/messages/ui/pl.json +5 -0
- package/src/choice/messages.ts +16 -0
- package/src/choice/ui-messages.ts +14 -0
- package/src/crossword/definition.ts +194 -0
- package/src/crossword/editor.ts +47 -0
- package/src/crossword/element.ts +741 -0
- package/src/crossword/fixtures/crossword-animals/grading.json +144 -0
- package/src/crossword/fixtures/crossword-animals/issues.json +1 -0
- package/src/crossword/fixtures/crossword-animals/key.json +161 -0
- package/src/crossword/fixtures/crossword-animals/meta.json +23 -0
- package/src/crossword/fixtures/crossword-animals/source.html +10 -0
- package/src/crossword/fixtures/crossword-animals/view.html +4 -0
- package/src/crossword/fixtures/crossword-empty-prompt/grading.json +88 -0
- package/src/crossword/fixtures/crossword-empty-prompt/issues.json +7 -0
- package/src/crossword/fixtures/crossword-empty-prompt/key.json +69 -0
- package/src/crossword/fixtures/crossword-empty-prompt/meta.json +23 -0
- package/src/crossword/fixtures/crossword-empty-prompt/source.html +7 -0
- package/src/crossword/fixtures/crossword-empty-prompt/view.html +3 -0
- package/src/crossword/fixtures/crossword-invalid-clue-empty/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-clue-empty/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-clue-link/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-clue-link/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-crossing/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-crossing/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-letters/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-letters/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-outside/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-outside/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-overlap/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-overlap/source.html +6 -0
- package/src/crossword/fixtures/crossword-invalid-short/issues.json +7 -0
- package/src/crossword/fixtures/crossword-invalid-short/source.html +6 -0
- package/src/crossword/fixtures/crossword-largest/grading.json +313 -0
- package/src/crossword/fixtures/crossword-largest/issues.json +1 -0
- package/src/crossword/fixtures/crossword-largest/key.json +788 -0
- package/src/crossword/fixtures/crossword-largest/meta.json +23 -0
- package/src/crossword/fixtures/crossword-largest/source.html +16 -0
- package/src/crossword/fixtures/crossword-largest/view.html +3 -0
- package/src/crossword/fixtures/crossword-long-texts/grading.json +160 -0
- package/src/crossword/fixtures/crossword-long-texts/issues.json +1 -0
- package/src/crossword/fixtures/crossword-long-texts/key.json +336 -0
- package/src/crossword/fixtures/crossword-long-texts/meta.json +23 -0
- package/src/crossword/fixtures/crossword-long-texts/source.html +8 -0
- package/src/crossword/fixtures/crossword-long-texts/view.html +3 -0
- package/src/crossword/fixtures/crossword-pictures/dom.svg +7 -0
- package/src/crossword/fixtures/crossword-pictures/drzewo.svg +6 -0
- package/src/crossword/fixtures/crossword-pictures/grading.json +110 -0
- package/src/crossword/fixtures/crossword-pictures/issues.json +1 -0
- package/src/crossword/fixtures/crossword-pictures/key.json +137 -0
- package/src/crossword/fixtures/crossword-pictures/meta.json +23 -0
- package/src/crossword/fixtures/crossword-pictures/okno.svg +6 -0
- package/src/crossword/fixtures/crossword-pictures/source.html +8 -0
- package/src/crossword/fixtures/crossword-pictures/view.html +3 -0
- package/src/crossword/fixtures/crossword-polish/grading.json +154 -0
- package/src/crossword/fixtures/crossword-polish/issues.json +1 -0
- package/src/crossword/fixtures/crossword-polish/key.json +158 -0
- package/src/crossword/fixtures/crossword-polish/meta.json +23 -0
- package/src/crossword/fixtures/crossword-polish/source.html +9 -0
- package/src/crossword/fixtures/crossword-polish/view.html +3 -0
- package/src/crossword/fixtures/crossword-smallest/grading.json +117 -0
- package/src/crossword/fixtures/crossword-smallest/issues.json +1 -0
- package/src/crossword/fixtures/crossword-smallest/key.json +51 -0
- package/src/crossword/fixtures/crossword-smallest/meta.json +23 -0
- package/src/crossword/fixtures/crossword-smallest/source.html +6 -0
- package/src/crossword/fixtures/crossword-smallest/view.html +3 -0
- package/src/crossword/fixtures/crossword-two-pages/grading.json +142 -0
- package/src/crossword/fixtures/crossword-two-pages/issues.json +1 -0
- package/src/crossword/fixtures/crossword-two-pages/key.json +180 -0
- package/src/crossword/fixtures/crossword-two-pages/meta.json +29 -0
- package/src/crossword/fixtures/crossword-two-pages/source.html +16 -0
- package/src/crossword/fixtures/crossword-two-pages/view.html +8 -0
- package/src/crossword/fixtures/crossword-whole/grading.json +115 -0
- package/src/crossword/fixtures/crossword-whole/issues.json +1 -0
- package/src/crossword/fixtures/crossword-whole/key.json +108 -0
- package/src/crossword/fixtures/crossword-whole/meta.json +23 -0
- package/src/crossword/fixtures/crossword-whole/source.html +8 -0
- package/src/crossword/fixtures/crossword-whole/view.html +3 -0
- package/src/crossword/grid.ts +20 -0
- package/src/crossword/manifest.ts +87 -0
- package/src/crossword/menu-messages.ts +14 -0
- package/src/crossword/messages/en.json +33 -0
- package/src/crossword/messages/menu/en.json +4 -0
- package/src/crossword/messages/menu/pl.json +4 -0
- package/src/crossword/messages/pl.json +33 -0
- package/src/crossword/messages/ui/en.json +13 -0
- package/src/crossword/messages/ui/pl.json +13 -0
- package/src/crossword/messages.ts +16 -0
- package/src/crossword/ui-messages.ts +14 -0
- package/src/definitions.ts +51 -0
- package/src/drop/definition.ts +52 -0
- package/src/drop/editor.ts +26 -0
- package/src/drop/element.ts +228 -0
- package/src/drop/fixtures/drop-basic/grading.json +111 -0
- package/src/drop/fixtures/drop-basic/issues.json +1 -0
- package/src/drop/fixtures/drop-basic/key.json +40 -0
- package/src/drop/fixtures/drop-basic/meta.json +24 -0
- package/src/drop/fixtures/drop-basic/source.html +12 -0
- package/src/drop/fixtures/drop-basic/view.html +8 -0
- package/src/drop/fixtures/drop-distractor-answer/grading.json +80 -0
- package/src/drop/fixtures/drop-distractor-answer/issues.json +7 -0
- package/src/drop/fixtures/drop-distractor-answer/key.json +40 -0
- package/src/drop/fixtures/drop-distractor-answer/meta.json +24 -0
- package/src/drop/fixtures/drop-distractor-answer/source.html +11 -0
- package/src/drop/fixtures/drop-distractor-answer/view.html +7 -0
- package/src/drop/fixtures/drop-invalid-unknown-answer/issues.json +7 -0
- package/src/drop/fixtures/drop-invalid-unknown-answer/source.html +7 -0
- package/src/drop/fixtures/drop-invalid-unknown-bank/issues.json +7 -0
- package/src/drop/fixtures/drop-invalid-unknown-bank/source.html +10 -0
- package/src/drop/fixtures/drop-pages-two/grading.json +100 -0
- package/src/drop/fixtures/drop-pages-two/issues.json +1 -0
- package/src/drop/fixtures/drop-pages-two/key.json +85 -0
- package/src/drop/fixtures/drop-pages-two/meta.json +30 -0
- package/src/drop/fixtures/drop-pages-two/source.html +24 -0
- package/src/drop/fixtures/drop-pages-two/view.html +17 -0
- package/src/drop/fixtures/drop-with-gaps/grading.json +95 -0
- package/src/drop/fixtures/drop-with-gaps/issues.json +1 -0
- package/src/drop/fixtures/drop-with-gaps/key.json +79 -0
- package/src/drop/fixtures/drop-with-gaps/meta.json +26 -0
- package/src/drop/fixtures/drop-with-gaps/source.html +13 -0
- package/src/drop/fixtures/drop-with-gaps/view.html +9 -0
- package/src/drop/manifest.ts +42 -0
- package/src/drop/menu-messages.ts +14 -0
- package/src/drop/messages/en.json +11 -0
- package/src/drop/messages/menu/en.json +3 -0
- package/src/drop/messages/menu/pl.json +3 -0
- package/src/drop/messages/pl.json +11 -0
- package/src/drop/messages/ui/en.json +7 -0
- package/src/drop/messages/ui/pl.json +7 -0
- package/src/drop/messages.ts +16 -0
- package/src/drop/ui-messages.ts +14 -0
- package/src/editors.ts +47 -0
- package/src/elements.ts +31 -0
- package/src/flash-cards/definition.ts +40 -0
- package/src/flash-cards/editor.ts +38 -0
- package/src/flash-cards/element.ts +234 -0
- package/src/flash-cards/fixtures/flash-cards-basic/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-basic/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-basic/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-basic/source.html +14 -0
- package/src/flash-cards/fixtures/flash-cards-basic/view.html +5 -0
- package/src/flash-cards/fixtures/flash-cards-fifty/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-fifty/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-fifty/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-fifty/source.html +105 -0
- package/src/flash-cards/fixtures/flash-cards-fifty/view.html +4 -0
- package/src/flash-cards/fixtures/flash-cards-grouped/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-grouped/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-grouped/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-grouped/source.html +12 -0
- package/src/flash-cards/fixtures/flash-cards-grouped/view.html +5 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-back-empty/issues.json +7 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-back-empty/source.html +8 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-front-empty/issues.json +7 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-front-empty/source.html +6 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-link/issues.json +7 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-link/source.html +9 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-too-many/issues.json +12 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-too-many/source.html +106 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-unpaired/issues.json +7 -0
- package/src/flash-cards/fixtures/flash-cards-invalid-unpaired/source.html +9 -0
- package/src/flash-cards/fixtures/flash-cards-long-texts/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-long-texts/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-long-texts/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-long-texts/source.html +13 -0
- package/src/flash-cards/fixtures/flash-cards-long-texts/view.html +4 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/grading.json +79 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/key.json +58 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/meta.json +30 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/source.html +17 -0
- package/src/flash-cards/fixtures/flash-cards-mixed/view.html +10 -0
- package/src/flash-cards/fixtures/flash-cards-one/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-one/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-one/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-one/source.html +3 -0
- package/src/flash-cards/fixtures/flash-cards-one/view.html +3 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/circle.svg +5 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/source.html +13 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/square.svg +5 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/triangle.svg +5 -0
- package/src/flash-cards/fixtures/flash-cards-pictures/view.html +4 -0
- package/src/flash-cards/fixtures/flash-cards-polish/apple.svg +7 -0
- package/src/flash-cards/fixtures/flash-cards-polish/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-polish/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-polish/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-polish/source.html +16 -0
- package/src/flash-cards/fixtures/flash-cards-polish/view.html +5 -0
- package/src/flash-cards/fixtures/flash-cards-style-templates/issues.json +1 -0
- package/src/flash-cards/fixtures/flash-cards-style-templates/key.json +8 -0
- package/src/flash-cards/fixtures/flash-cards-style-templates/meta.json +23 -0
- package/src/flash-cards/fixtures/flash-cards-style-templates/source.html +16 -0
- package/src/flash-cards/fixtures/flash-cards-style-templates/view.html +6 -0
- package/src/flash-cards/manifest.ts +35 -0
- package/src/flash-cards/menu-messages.ts +14 -0
- package/src/flash-cards/messages/en.json +22 -0
- package/src/flash-cards/messages/menu/en.json +4 -0
- package/src/flash-cards/messages/menu/pl.json +4 -0
- package/src/flash-cards/messages/pl.json +22 -0
- package/src/flash-cards/messages/ui/en.json +7 -0
- package/src/flash-cards/messages/ui/pl.json +7 -0
- package/src/flash-cards/messages.ts +16 -0
- package/src/flash-cards/ui-messages.ts +14 -0
- package/src/gap/definition.ts +110 -0
- package/src/gap/editor.ts +35 -0
- package/src/gap/element.ts +163 -0
- package/src/gap/fixtures/gap-basic/grading.json +129 -0
- package/src/gap/fixtures/gap-basic/issues.json +1 -0
- package/src/gap/fixtures/gap-basic/key.json +106 -0
- package/src/gap/fixtures/gap-basic/meta.json +23 -0
- package/src/gap/fixtures/gap-basic/source.html +7 -0
- package/src/gap/fixtures/gap-basic/view.html +7 -0
- package/src/gap/fixtures/gap-columns-pages/grading.json +77 -0
- package/src/gap/fixtures/gap-columns-pages/issues.json +1 -0
- package/src/gap/fixtures/gap-columns-pages/key.json +106 -0
- package/src/gap/fixtures/gap-columns-pages/meta.json +35 -0
- package/src/gap/fixtures/gap-columns-pages/source.html +24 -0
- package/src/gap/fixtures/gap-columns-pages/view.html +12 -0
- package/src/gap/fixtures/gap-diacritics/grading.json +79 -0
- package/src/gap/fixtures/gap-diacritics/issues.json +1 -0
- package/src/gap/fixtures/gap-diacritics/key.json +58 -0
- package/src/gap/fixtures/gap-diacritics/meta.json +23 -0
- package/src/gap/fixtures/gap-diacritics/source.html +4 -0
- package/src/gap/fixtures/gap-diacritics/view.html +4 -0
- package/src/gap/fixtures/gap-german-case/grading.json +104 -0
- package/src/gap/fixtures/gap-german-case/issues.json +1 -0
- package/src/gap/fixtures/gap-german-case/key.json +82 -0
- package/src/gap/fixtures/gap-german-case/meta.json +23 -0
- package/src/gap/fixtures/gap-german-case/source.html +5 -0
- package/src/gap/fixtures/gap-german-case/view.html +5 -0
- package/src/gap/fixtures/gap-help-polish/grading.json +87 -0
- package/src/gap/fixtures/gap-help-polish/issues.json +1 -0
- package/src/gap/fixtures/gap-help-polish/key.json +121 -0
- package/src/gap/fixtures/gap-help-polish/meta.json +29 -0
- package/src/gap/fixtures/gap-help-polish/source.html +15 -0
- package/src/gap/fixtures/gap-help-polish/view.html +15 -0
- package/src/gap/fixtures/gap-in-formatting/grading.json +97 -0
- package/src/gap/fixtures/gap-in-formatting/issues.json +1 -0
- package/src/gap/fixtures/gap-in-formatting/key.json +123 -0
- package/src/gap/fixtures/gap-in-formatting/meta.json +23 -0
- package/src/gap/fixtures/gap-in-formatting/source.html +9 -0
- package/src/gap/fixtures/gap-in-formatting/view.html +9 -0
- package/src/gap/fixtures/gap-invalid-column-alone/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-column-alone/source.html +3 -0
- package/src/gap/fixtures/gap-invalid-column-inline-component/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-column-inline-component/source.html +6 -0
- package/src/gap/fixtures/gap-invalid-columns-five/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-columns-five/source.html +9 -0
- package/src/gap/fixtures/gap-invalid-columns-in-block/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-columns-in-block/source.html +8 -0
- package/src/gap/fixtures/gap-invalid-columns-nested/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-columns-nested/source.html +11 -0
- package/src/gap/fixtures/gap-invalid-columns-one/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-columns-one/source.html +5 -0
- package/src/gap/fixtures/gap-invalid-columns-stray/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-columns-stray/source.html +8 -0
- package/src/gap/fixtures/gap-invalid-figure-two-pictures/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-figure-two-pictures/source.html +8 -0
- package/src/gap/fixtures/gap-invalid-in-page/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-in-page/source.html +5 -0
- package/src/gap/fixtures/gap-invalid-missing-answer/issues.json +17 -0
- package/src/gap/fixtures/gap-invalid-missing-answer/source.html +5 -0
- package/src/gap/fixtures/gap-invalid-mixed-pages/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-mixed-pages/source.html +6 -0
- package/src/gap/fixtures/gap-invalid-picture-no-alt/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-picture-no-alt/source.html +3 -0
- package/src/gap/fixtures/gap-invalid-style-late/issues.json +12 -0
- package/src/gap/fixtures/gap-invalid-style-late/source.html +5 -0
- package/src/gap/fixtures/gap-invalid-style-name/issues.json +57 -0
- package/src/gap/fixtures/gap-invalid-style-name/source.html +16 -0
- package/src/gap/fixtures/gap-invalid-style-self-closed/issues.json +12 -0
- package/src/gap/fixtures/gap-invalid-style-self-closed/source.html +4 -0
- package/src/gap/fixtures/gap-invalid-unknown-element/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-unknown-element/source.html +4 -0
- package/src/gap/fixtures/gap-invalid-variant/issues.json +7 -0
- package/src/gap/fixtures/gap-invalid-variant/source.html +3 -0
- package/src/gap/fixtures/gap-language-switch/grading.json +99 -0
- package/src/gap/fixtures/gap-language-switch/issues.json +1 -0
- package/src/gap/fixtures/gap-language-switch/key.json +106 -0
- package/src/gap/fixtures/gap-language-switch/meta.json +23 -0
- package/src/gap/fixtures/gap-language-switch/source.html +6 -0
- package/src/gap/fixtures/gap-language-switch/view.html +6 -0
- package/src/gap/fixtures/gap-long-answer/grading.json +84 -0
- package/src/gap/fixtures/gap-long-answer/issues.json +1 -0
- package/src/gap/fixtures/gap-long-answer/key.json +82 -0
- package/src/gap/fixtures/gap-long-answer/meta.json +23 -0
- package/src/gap/fixtures/gap-long-answer/source.html +5 -0
- package/src/gap/fixtures/gap-long-answer/view.html +5 -0
- package/src/gap/fixtures/gap-number-pl/grading.json +129 -0
- package/src/gap/fixtures/gap-number-pl/issues.json +1 -0
- package/src/gap/fixtures/gap-number-pl/key.json +61 -0
- package/src/gap/fixtures/gap-number-pl/meta.json +23 -0
- package/src/gap/fixtures/gap-number-pl/source.html +5 -0
- package/src/gap/fixtures/gap-number-pl/view.html +5 -0
- package/src/gap/fixtures/gap-number-pl-signed/grading.json +105 -0
- package/src/gap/fixtures/gap-number-pl-signed/issues.json +1 -0
- package/src/gap/fixtures/gap-number-pl-signed/key.json +61 -0
- package/src/gap/fixtures/gap-number-pl-signed/meta.json +23 -0
- package/src/gap/fixtures/gap-number-pl-signed/source.html +5 -0
- package/src/gap/fixtures/gap-number-pl-signed/view.html +5 -0
- package/src/gap/fixtures/gap-number-tolerance/grading.json +122 -0
- package/src/gap/fixtures/gap-number-tolerance/issues.json +1 -0
- package/src/gap/fixtures/gap-number-tolerance/key.json +61 -0
- package/src/gap/fixtures/gap-number-tolerance/meta.json +23 -0
- package/src/gap/fixtures/gap-number-tolerance/source.html +5 -0
- package/src/gap/fixtures/gap-number-tolerance/view.html +5 -0
- package/src/gap/fixtures/gap-pages-two/grading.json +135 -0
- package/src/gap/fixtures/gap-pages-two/issues.json +1 -0
- package/src/gap/fixtures/gap-pages-two/key.json +66 -0
- package/src/gap/fixtures/gap-pages-two/meta.json +30 -0
- package/src/gap/fixtures/gap-pages-two/source.html +13 -0
- package/src/gap/fixtures/gap-pages-two/view.html +9 -0
- package/src/gap/fixtures/gap-picture/grading.json +87 -0
- package/src/gap/fixtures/gap-picture/issues.json +1 -0
- package/src/gap/fixtures/gap-picture/key.json +82 -0
- package/src/gap/fixtures/gap-picture/meta.json +23 -0
- package/src/gap/fixtures/gap-picture/robin.svg +11 -0
- package/src/gap/fixtures/gap-picture/source.html +10 -0
- package/src/gap/fixtures/gap-picture/spider.svg +8 -0
- package/src/gap/fixtures/gap-picture/tree.svg +17 -0
- package/src/gap/fixtures/gap-picture/view.html +10 -0
- package/src/gap/fixtures/gap-picture-polish/grading.json +86 -0
- package/src/gap/fixtures/gap-picture-polish/issues.json +1 -0
- package/src/gap/fixtures/gap-picture-polish/key.json +82 -0
- package/src/gap/fixtures/gap-picture-polish/liscie.svg +8 -0
- package/src/gap/fixtures/gap-picture-polish/meta.json +23 -0
- package/src/gap/fixtures/gap-picture-polish/source.html +9 -0
- package/src/gap/fixtures/gap-picture-polish/view.html +9 -0
- package/src/gap/fixtures/gap-picture-polish/zima.svg +15 -0
- package/src/gap/fixtures/gap-sanitised/grading.json +70 -0
- package/src/gap/fixtures/gap-sanitised/issues.json +17 -0
- package/src/gap/fixtures/gap-sanitised/key.json +34 -0
- package/src/gap/fixtures/gap-sanitised/meta.json +23 -0
- package/src/gap/fixtures/gap-sanitised/source.html +4 -0
- package/src/gap/fixtures/gap-sanitised/view.html +4 -0
- package/src/gap/fixtures/gap-sentence-edges/grading.json +87 -0
- package/src/gap/fixtures/gap-sentence-edges/issues.json +1 -0
- package/src/gap/fixtures/gap-sentence-edges/key.json +82 -0
- package/src/gap/fixtures/gap-sentence-edges/meta.json +23 -0
- package/src/gap/fixtures/gap-sentence-edges/source.html +5 -0
- package/src/gap/fixtures/gap-sentence-edges/view.html +5 -0
- package/src/gap/fixtures/gap-several-in-paragraph/grading.json +95 -0
- package/src/gap/fixtures/gap-several-in-paragraph/issues.json +1 -0
- package/src/gap/fixtures/gap-several-in-paragraph/key.json +106 -0
- package/src/gap/fixtures/gap-several-in-paragraph/meta.json +23 -0
- package/src/gap/fixtures/gap-several-in-paragraph/source.html +3 -0
- package/src/gap/fixtures/gap-several-in-paragraph/view.html +3 -0
- package/src/gap/fixtures/gap-style-rules/grading.json +63 -0
- package/src/gap/fixtures/gap-style-rules/issues.json +12 -0
- package/src/gap/fixtures/gap-style-rules/key.json +58 -0
- package/src/gap/fixtures/gap-style-rules/meta.json +23 -0
- package/src/gap/fixtures/gap-style-rules/source.html +11 -0
- package/src/gap/fixtures/gap-style-rules/view.html +5 -0
- package/src/gap/fixtures/gap-style-rules-pages/grading.json +63 -0
- package/src/gap/fixtures/gap-style-rules-pages/issues.json +1 -0
- package/src/gap/fixtures/gap-style-rules-pages/key.json +58 -0
- package/src/gap/fixtures/gap-style-rules-pages/meta.json +29 -0
- package/src/gap/fixtures/gap-style-rules-pages/source.html +10 -0
- package/src/gap/fixtures/gap-style-rules-pages/view.html +8 -0
- package/src/gap/fixtures/gap-style-templates/grading.json +80 -0
- package/src/gap/fixtures/gap-style-templates/issues.json +7 -0
- package/src/gap/fixtures/gap-style-templates/key.json +58 -0
- package/src/gap/fixtures/gap-style-templates/meta.json +23 -0
- package/src/gap/fixtures/gap-style-templates/source.html +4 -0
- package/src/gap/fixtures/gap-style-templates/view.html +4 -0
- package/src/gap/fixtures/gap-styled/grading.json +70 -0
- package/src/gap/fixtures/gap-styled/issues.json +17 -0
- package/src/gap/fixtures/gap-styled/key.json +82 -0
- package/src/gap/fixtures/gap-styled/meta.json +23 -0
- package/src/gap/fixtures/gap-styled/source.html +13 -0
- package/src/gap/fixtures/gap-styled/tree.svg +17 -0
- package/src/gap/fixtures/gap-styled/view.html +13 -0
- package/src/gap/fixtures/gap-turkish/grading.json +103 -0
- package/src/gap/fixtures/gap-turkish/issues.json +1 -0
- package/src/gap/fixtures/gap-turkish/key.json +82 -0
- package/src/gap/fixtures/gap-turkish/meta.json +23 -0
- package/src/gap/fixtures/gap-turkish/source.html +5 -0
- package/src/gap/fixtures/gap-turkish/view.html +5 -0
- package/src/gap/fixtures/gap-ukrainian/grading.json +87 -0
- package/src/gap/fixtures/gap-ukrainian/issues.json +1 -0
- package/src/gap/fixtures/gap-ukrainian/key.json +82 -0
- package/src/gap/fixtures/gap-ukrainian/meta.json +23 -0
- package/src/gap/fixtures/gap-ukrainian/source.html +5 -0
- package/src/gap/fixtures/gap-ukrainian/view.html +5 -0
- package/src/gap/fixtures/gap-variant-inline/grading.json +79 -0
- package/src/gap/fixtures/gap-variant-inline/issues.json +1 -0
- package/src/gap/fixtures/gap-variant-inline/key.json +51 -0
- package/src/gap/fixtures/gap-variant-inline/meta.json +23 -0
- package/src/gap/fixtures/gap-variant-inline/source.html +4 -0
- package/src/gap/fixtures/gap-variant-inline/view.html +4 -0
- package/src/gap/fixtures/gap-variant-resizable/grading.json +93 -0
- package/src/gap/fixtures/gap-variant-resizable/issues.json +1 -0
- package/src/gap/fixtures/gap-variant-resizable/key.json +106 -0
- package/src/gap/fixtures/gap-variant-resizable/meta.json +23 -0
- package/src/gap/fixtures/gap-variant-resizable/source.html +7 -0
- package/src/gap/fixtures/gap-variant-resizable/view.html +7 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/grading.json +103 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/issues.json +1 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/key.json +75 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/meta.json +29 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/source.html +9 -0
- package/src/gap/fixtures/gap-variant-resizable-polish/view.html +9 -0
- package/src/gap/manifest.ts +50 -0
- package/src/gap/menu-messages.ts +14 -0
- package/src/gap/messages/en.json +36 -0
- package/src/gap/messages/menu/en.json +4 -0
- package/src/gap/messages/menu/pl.json +4 -0
- package/src/gap/messages/pl.json +36 -0
- package/src/gap/messages/ui/en.json +5 -0
- package/src/gap/messages/ui/pl.json +5 -0
- package/src/gap/messages.ts +16 -0
- package/src/gap/ui-messages.ts +14 -0
- package/src/hotspot/definition.ts +81 -0
- package/src/hotspot/editor.ts +55 -0
- package/src/hotspot/element.ts +387 -0
- package/src/hotspot/fixtures/hotspot-grid/board.svg +39 -0
- package/src/hotspot/fixtures/hotspot-grid/grading.json +65 -0
- package/src/hotspot/fixtures/hotspot-grid/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-grid/key.json +288 -0
- package/src/hotspot/fixtures/hotspot-grid/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-grid/source.html +37 -0
- package/src/hotspot/fixtures/hotspot-grid/view.html +5 -0
- package/src/hotspot/fixtures/hotspot-invalid-alt-empty/issues.json +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-alt-empty/source.html +6 -0
- package/src/hotspot/fixtures/hotspot-invalid-no-correct/issues.json +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-no-correct/source.html +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-one-region/issues.json +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-one-region/source.html +5 -0
- package/src/hotspot/fixtures/hotspot-invalid-picture-missing/issues.json +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-picture-missing/source.html +6 -0
- package/src/hotspot/fixtures/hotspot-invalid-polygon-points/issues.json +12 -0
- package/src/hotspot/fixtures/hotspot-invalid-polygon-points/source.html +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-empty/issues.json +17 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-empty/source.html +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-incomplete/issues.json +12 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-incomplete/source.html +6 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-outside/issues.json +12 -0
- package/src/hotspot/fixtures/hotspot-invalid-region-outside/source.html +6 -0
- package/src/hotspot/fixtures/hotspot-invalid-single-two-correct/issues.json +7 -0
- package/src/hotspot/fixtures/hotspot-invalid-single-two-correct/source.html +8 -0
- package/src/hotspot/fixtures/hotspot-multiple/grading.json +27 -0
- package/src/hotspot/fixtures/hotspot-multiple/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-multiple/key.json +63 -0
- package/src/hotspot/fixtures/hotspot-multiple/kitchen.svg +15 -0
- package/src/hotspot/fixtures/hotspot-multiple/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-multiple/source.html +10 -0
- package/src/hotspot/fixtures/hotspot-multiple/view.html +3 -0
- package/src/hotspot/fixtures/hotspot-nested/grading.json +27 -0
- package/src/hotspot/fixtures/hotspot-nested/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-nested/key.json +41 -0
- package/src/hotspot/fixtures/hotspot-nested/lake.svg +11 -0
- package/src/hotspot/fixtures/hotspot-nested/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-nested/source.html +8 -0
- package/src/hotspot/fixtures/hotspot-nested/view.html +3 -0
- package/src/hotspot/fixtures/hotspot-polish/grading.json +27 -0
- package/src/hotspot/fixtures/hotspot-polish/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-polish/key.json +49 -0
- package/src/hotspot/fixtures/hotspot-polish/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-polish/shapes.svg +8 -0
- package/src/hotspot/fixtures/hotspot-polish/source.html +9 -0
- package/src/hotspot/fixtures/hotspot-polish/view.html +3 -0
- package/src/hotspot/fixtures/hotspot-single/garden.svg +12 -0
- package/src/hotspot/fixtures/hotspot-single/grading.json +27 -0
- package/src/hotspot/fixtures/hotspot-single/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-single/key.json +41 -0
- package/src/hotspot/fixtures/hotspot-single/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-single/source.html +8 -0
- package/src/hotspot/fixtures/hotspot-single/view.html +3 -0
- package/src/hotspot/fixtures/hotspot-two-places/grading.json +56 -0
- package/src/hotspot/fixtures/hotspot-two-places/issues.json +1 -0
- package/src/hotspot/fixtures/hotspot-two-places/key.json +33 -0
- package/src/hotspot/fixtures/hotspot-two-places/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-two-places/sky.svg +7 -0
- package/src/hotspot/fixtures/hotspot-two-places/source.html +7 -0
- package/src/hotspot/fixtures/hotspot-two-places/view.html +4 -0
- package/src/hotspot/fixtures/hotspot-warnings/flags.svg +10 -0
- package/src/hotspot/fixtures/hotspot-warnings/grading.json +22 -0
- package/src/hotspot/fixtures/hotspot-warnings/issues.json +12 -0
- package/src/hotspot/fixtures/hotspot-warnings/key.json +33 -0
- package/src/hotspot/fixtures/hotspot-warnings/meta.json +23 -0
- package/src/hotspot/fixtures/hotspot-warnings/source.html +8 -0
- package/src/hotspot/fixtures/hotspot-warnings/view.html +4 -0
- package/src/hotspot/manifest.ts +82 -0
- package/src/hotspot/menu-messages.ts +14 -0
- package/src/hotspot/messages/en.json +37 -0
- package/src/hotspot/messages/menu/en.json +4 -0
- package/src/hotspot/messages/menu/pl.json +4 -0
- package/src/hotspot/messages/pl.json +37 -0
- package/src/hotspot/messages/ui/en.json +8 -0
- package/src/hotspot/messages/ui/pl.json +8 -0
- package/src/hotspot/messages.ts +16 -0
- package/src/hotspot/ui-messages.ts +14 -0
- package/src/image-drop/definition.ts +100 -0
- package/src/image-drop/editor.ts +56 -0
- package/src/image-drop/element.ts +746 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/grading.json +58 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/key.json +33 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/moon.svg +6 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/source.html +10 -0
- package/src/image-drop/fixtures/image-drop-empty-prompt/view.html +4 -0
- package/src/image-drop/fixtures/image-drop-invalid-alt-empty/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-alt-empty/source.html +8 -0
- package/src/image-drop/fixtures/image-drop-invalid-answer-unknown/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-answer-unknown/source.html +6 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-alt-empty/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-alt-empty/source.html +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-duplicate/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-duplicate/source.html +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-empty/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-empty/source.html +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-link/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-link/source.html +6 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-twice/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-label-twice/source.html +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-no-zone/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-no-zone/source.html +5 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-empty/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-empty/source.html +6 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-incomplete/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-incomplete/source.html +6 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-outside/issues.json +7 -0
- package/src/image-drop/fixtures/image-drop-invalid-zone-outside/source.html +6 -0
- package/src/image-drop/fixtures/image-drop-letters/grading.json +112 -0
- package/src/image-drop/fixtures/image-drop-letters/issues.json +1 -0
- package/src/image-drop/fixtures/image-drop-letters/key.json +198 -0
- package/src/image-drop/fixtures/image-drop-letters/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-letters/plansza.svg +13 -0
- package/src/image-drop/fixtures/image-drop-letters/source.html +55 -0
- package/src/image-drop/fixtures/image-drop-letters/view.html +3 -0
- package/src/image-drop/fixtures/image-drop-one-zone/grading.json +70 -0
- package/src/image-drop/fixtures/image-drop-one-zone/issues.json +1 -0
- package/src/image-drop/fixtures/image-drop-one-zone/key.json +25 -0
- package/src/image-drop/fixtures/image-drop-one-zone/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-one-zone/source.html +7 -0
- package/src/image-drop/fixtures/image-drop-one-zone/sun.svg +6 -0
- package/src/image-drop/fixtures/image-drop-one-zone/view.html +4 -0
- package/src/image-drop/fixtures/image-drop-parts/grading.json +78 -0
- package/src/image-drop/fixtures/image-drop-parts/issues.json +1 -0
- package/src/image-drop/fixtures/image-drop-parts/key.json +49 -0
- package/src/image-drop/fixtures/image-drop-parts/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-parts/plant.svg +17 -0
- package/src/image-drop/fixtures/image-drop-parts/source.html +13 -0
- package/src/image-drop/fixtures/image-drop-parts/view.html +3 -0
- package/src/image-drop/fixtures/image-drop-pictures/duck.svg +7 -0
- package/src/image-drop/fixtures/image-drop-pictures/farm.svg +9 -0
- package/src/image-drop/fixtures/image-drop-pictures/grading.json +75 -0
- package/src/image-drop/fixtures/image-drop-pictures/issues.json +1 -0
- package/src/image-drop/fixtures/image-drop-pictures/key.json +33 -0
- package/src/image-drop/fixtures/image-drop-pictures/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-pictures/owl.svg +9 -0
- package/src/image-drop/fixtures/image-drop-pictures/source.html +10 -0
- package/src/image-drop/fixtures/image-drop-pictures/view.html +3 -0
- package/src/image-drop/fixtures/image-drop-polish/grading.json +90 -0
- package/src/image-drop/fixtures/image-drop-polish/issues.json +1 -0
- package/src/image-drop/fixtures/image-drop-polish/key.json +41 -0
- package/src/image-drop/fixtures/image-drop-polish/mapa.svg +10 -0
- package/src/image-drop/fixtures/image-drop-polish/meta.json +23 -0
- package/src/image-drop/fixtures/image-drop-polish/source.html +12 -0
- package/src/image-drop/fixtures/image-drop-polish/view.html +3 -0
- package/src/image-drop/manifest.ts +95 -0
- package/src/image-drop/menu-messages.ts +14 -0
- package/src/image-drop/messages/en.json +36 -0
- package/src/image-drop/messages/menu/en.json +4 -0
- package/src/image-drop/messages/menu/pl.json +4 -0
- package/src/image-drop/messages/pl.json +36 -0
- package/src/image-drop/messages/ui/en.json +23 -0
- package/src/image-drop/messages/ui/pl.json +23 -0
- package/src/image-drop/messages.ts +16 -0
- package/src/image-drop/ui-messages.ts +14 -0
- package/src/image-label/definition.ts +92 -0
- package/src/image-label/editor.ts +52 -0
- package/src/image-label/element.ts +329 -0
- package/src/image-label/fixtures/image-label-colours/grading.json +150 -0
- package/src/image-label/fixtures/image-label-colours/issues.json +1 -0
- package/src/image-label/fixtures/image-label-colours/key.json +378 -0
- package/src/image-label/fixtures/image-label-colours/meta.json +23 -0
- package/src/image-label/fixtures/image-label-colours/plansza.svg +7 -0
- package/src/image-label/fixtures/image-label-colours/source.html +25 -0
- package/src/image-label/fixtures/image-label-colours/view.html +3 -0
- package/src/image-label/fixtures/image-label-compass/compass.svg +8 -0
- package/src/image-label/fixtures/image-label-compass/grading.json +79 -0
- package/src/image-label/fixtures/image-label-compass/issues.json +1 -0
- package/src/image-label/fixtures/image-label-compass/key.json +85 -0
- package/src/image-label/fixtures/image-label-compass/meta.json +23 -0
- package/src/image-label/fixtures/image-label-compass/source.html +9 -0
- package/src/image-label/fixtures/image-label-compass/view.html +3 -0
- package/src/image-label/fixtures/image-label-invalid-alt-empty/issues.json +7 -0
- package/src/image-label/fixtures/image-label-invalid-alt-empty/source.html +5 -0
- package/src/image-label/fixtures/image-label-invalid-answer-empty/issues.json +7 -0
- package/src/image-label/fixtures/image-label-invalid-answer-empty/source.html +6 -0
- package/src/image-label/fixtures/image-label-invalid-answer-too-long/issues.json +7 -0
- package/src/image-label/fixtures/image-label-invalid-answer-too-long/source.html +5 -0
- package/src/image-label/fixtures/image-label-invalid-no-pin/issues.json +7 -0
- package/src/image-label/fixtures/image-label-invalid-no-pin/source.html +5 -0
- package/src/image-label/fixtures/image-label-one-pin/grading.json +70 -0
- package/src/image-label/fixtures/image-label-one-pin/issues.json +1 -0
- package/src/image-label/fixtures/image-label-one-pin/key.json +34 -0
- package/src/image-label/fixtures/image-label-one-pin/meta.json +23 -0
- package/src/image-label/fixtures/image-label-one-pin/sky.svg +6 -0
- package/src/image-label/fixtures/image-label-one-pin/source.html +6 -0
- package/src/image-label/fixtures/image-label-one-pin/view.html +4 -0
- package/src/image-label/fixtures/image-label-polish/grading.json +75 -0
- package/src/image-label/fixtures/image-label-polish/issues.json +1 -0
- package/src/image-label/fixtures/image-label-polish/key.json +68 -0
- package/src/image-label/fixtures/image-label-polish/mapa.svg +9 -0
- package/src/image-label/fixtures/image-label-polish/meta.json +23 -0
- package/src/image-label/fixtures/image-label-polish/source.html +8 -0
- package/src/image-label/fixtures/image-label-polish/view.html +3 -0
- package/src/image-label/fixtures/image-label-volcano/grading.json +78 -0
- package/src/image-label/fixtures/image-label-volcano/issues.json +1 -0
- package/src/image-label/fixtures/image-label-volcano/key.json +85 -0
- package/src/image-label/fixtures/image-label-volcano/meta.json +23 -0
- package/src/image-label/fixtures/image-label-volcano/source.html +9 -0
- package/src/image-label/fixtures/image-label-volcano/view.html +3 -0
- package/src/image-label/fixtures/image-label-volcano/volcano.svg +14 -0
- package/src/image-label/fixtures/image-label-warnings/grading.json +58 -0
- package/src/image-label/fixtures/image-label-warnings/issues.json +12 -0
- package/src/image-label/fixtures/image-label-warnings/key.json +51 -0
- package/src/image-label/fixtures/image-label-warnings/kite.svg +6 -0
- package/src/image-label/fixtures/image-label-warnings/meta.json +23 -0
- package/src/image-label/fixtures/image-label-warnings/source.html +8 -0
- package/src/image-label/fixtures/image-label-warnings/view.html +4 -0
- package/src/image-label/manifest.ts +70 -0
- package/src/image-label/menu-messages.ts +14 -0
- package/src/image-label/messages/en.json +33 -0
- package/src/image-label/messages/menu/en.json +4 -0
- package/src/image-label/messages/menu/pl.json +4 -0
- package/src/image-label/messages/pl.json +33 -0
- package/src/image-label/messages/ui/en.json +5 -0
- package/src/image-label/messages/ui/pl.json +5 -0
- package/src/image-label/messages.ts +16 -0
- package/src/image-label/ui-messages.ts +14 -0
- package/src/inline-styles.ts +111 -0
- package/src/long-answer/definition.ts +36 -0
- package/src/long-answer/editor.ts +31 -0
- package/src/long-answer/element.ts +150 -0
- package/src/long-answer/fixtures/long-answer-basic/grading.json +55 -0
- package/src/long-answer/fixtures/long-answer-basic/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-basic/key.json +15 -0
- package/src/long-answer/fixtures/long-answer-basic/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-basic/source.html +5 -0
- package/src/long-answer/fixtures/long-answer-basic/view.html +5 -0
- package/src/long-answer/fixtures/long-answer-invalid-limits/issues.json +7 -0
- package/src/long-answer/fixtures/long-answer-invalid-limits/source.html +3 -0
- package/src/long-answer/fixtures/long-answer-invalid-no-prompt/issues.json +7 -0
- package/src/long-answer/fixtures/long-answer-invalid-no-prompt/source.html +4 -0
- package/src/long-answer/fixtures/long-answer-invalid-prompt-empty/issues.json +7 -0
- package/src/long-answer/fixtures/long-answer-invalid-prompt-empty/source.html +3 -0
- package/src/long-answer/fixtures/long-answer-invalid-rows/issues.json +7 -0
- package/src/long-answer/fixtures/long-answer-invalid-rows/source.html +3 -0
- package/src/long-answer/fixtures/long-answer-largest/grading.json +33 -0
- package/src/long-answer/fixtures/long-answer-largest/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-largest/key.json +15 -0
- package/src/long-answer/fixtures/long-answer-largest/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-largest/source.html +3 -0
- package/src/long-answer/fixtures/long-answer-largest/view.html +3 -0
- package/src/long-answer/fixtures/long-answer-limit/grading.json +46 -0
- package/src/long-answer/fixtures/long-answer-limit/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-limit/key.json +15 -0
- package/src/long-answer/fixtures/long-answer-limit/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-limit/source.html +4 -0
- package/src/long-answer/fixtures/long-answer-limit/view.html +4 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/grading.json +73 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/key.json +40 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/meta.json +24 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/source.html +4 -0
- package/src/long-answer/fixtures/long-answer-mixed-polish/view.html +4 -0
- package/src/long-answer/fixtures/long-answer-pages/grading.json +46 -0
- package/src/long-answer/fixtures/long-answer-pages/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-pages/key.json +21 -0
- package/src/long-answer/fixtures/long-answer-pages/meta.json +29 -0
- package/src/long-answer/fixtures/long-answer-pages/source.html +9 -0
- package/src/long-answer/fixtures/long-answer-pages/view.html +9 -0
- package/src/long-answer/fixtures/long-answer-picture/grading.json +33 -0
- package/src/long-answer/fixtures/long-answer-picture/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-picture/key.json +15 -0
- package/src/long-answer/fixtures/long-answer-picture/lamp.svg +6 -0
- package/src/long-answer/fixtures/long-answer-picture/lighthouse.svg +13 -0
- package/src/long-answer/fixtures/long-answer-picture/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-picture/source.html +4 -0
- package/src/long-answer/fixtures/long-answer-picture/view.html +4 -0
- package/src/long-answer/fixtures/long-answer-polish/grading.json +55 -0
- package/src/long-answer/fixtures/long-answer-polish/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-polish/key.json +15 -0
- package/src/long-answer/fixtures/long-answer-polish/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-polish/source.html +6 -0
- package/src/long-answer/fixtures/long-answer-polish/view.html +4 -0
- package/src/long-answer/fixtures/long-answer-single-line/grading.json +46 -0
- package/src/long-answer/fixtures/long-answer-single-line/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-single-line/key.json +21 -0
- package/src/long-answer/fixtures/long-answer-single-line/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-single-line/source.html +5 -0
- package/src/long-answer/fixtures/long-answer-single-line/view.html +5 -0
- package/src/long-answer/fixtures/long-answer-style-templates/grading.json +34 -0
- package/src/long-answer/fixtures/long-answer-style-templates/issues.json +1 -0
- package/src/long-answer/fixtures/long-answer-style-templates/key.json +21 -0
- package/src/long-answer/fixtures/long-answer-style-templates/meta.json +23 -0
- package/src/long-answer/fixtures/long-answer-style-templates/source.html +6 -0
- package/src/long-answer/fixtures/long-answer-style-templates/view.html +6 -0
- package/src/long-answer/manifest.ts +37 -0
- package/src/long-answer/menu-messages.ts +14 -0
- package/src/long-answer/messages/en.json +18 -0
- package/src/long-answer/messages/menu/en.json +4 -0
- package/src/long-answer/messages/menu/pl.json +4 -0
- package/src/long-answer/messages/pl.json +18 -0
- package/src/long-answer/messages/ui/en.json +5 -0
- package/src/long-answer/messages/ui/pl.json +5 -0
- package/src/long-answer/messages.ts +16 -0
- package/src/long-answer/ui-messages.ts +14 -0
- package/src/manifests.ts +47 -0
- package/src/mark-words/definition.ts +35 -0
- package/src/mark-words/editor.ts +53 -0
- package/src/mark-words/element.ts +322 -0
- package/src/mark-words/fixtures/mark-words-all-correct/grading.json +22 -0
- package/src/mark-words/fixtures/mark-words-all-correct/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-all-correct/key.json +33 -0
- package/src/mark-words/fixtures/mark-words-all-correct/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-all-correct/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-all-correct/view.html +5 -0
- package/src/mark-words/fixtures/mark-words-basic/grading.json +32 -0
- package/src/mark-words/fixtures/mark-words-basic/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-basic/key.json +49 -0
- package/src/mark-words/fixtures/mark-words-basic/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-basic/source.html +7 -0
- package/src/mark-words/fixtures/mark-words-basic/view.html +7 -0
- package/src/mark-words/fixtures/mark-words-formatting/grading.json +32 -0
- package/src/mark-words/fixtures/mark-words-formatting/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-formatting/key.json +90 -0
- package/src/mark-words/fixtures/mark-words-formatting/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-formatting/source.html +15 -0
- package/src/mark-words/fixtures/mark-words-formatting/view.html +15 -0
- package/src/mark-words/fixtures/mark-words-help/grading.json +27 -0
- package/src/mark-words/fixtures/mark-words-help/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-help/key.json +61 -0
- package/src/mark-words/fixtures/mark-words-help/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-help/source.html +10 -0
- package/src/mark-words/fixtures/mark-words-help/view.html +10 -0
- package/src/mark-words/fixtures/mark-words-hundred/grading.json +178 -0
- package/src/mark-words/fixtures/mark-words-hundred/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-hundred/key.json +918 -0
- package/src/mark-words/fixtures/mark-words-hundred/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-hundred/source.html +16 -0
- package/src/mark-words/fixtures/mark-words-hundred/view.html +16 -0
- package/src/mark-words/fixtures/mark-words-invalid-duplicate-id/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-duplicate-id/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-no-correct/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-no-correct/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-no-words/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-no-words/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-variant/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-variant/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-empty/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-empty/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-link/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-link/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-nested/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-nested/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-outside/issues.json +7 -0
- package/src/mark-words/fixtures/mark-words-invalid-word-outside/source.html +6 -0
- package/src/mark-words/fixtures/mark-words-long-texts/grading.json +27 -0
- package/src/mark-words/fixtures/mark-words-long-texts/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-long-texts/key.json +81 -0
- package/src/mark-words/fixtures/mark-words-long-texts/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-long-texts/source.html +8 -0
- package/src/mark-words/fixtures/mark-words-long-texts/view.html +8 -0
- package/src/mark-words/fixtures/mark-words-odd-word/grading.json +40 -0
- package/src/mark-words/fixtures/mark-words-odd-word/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-odd-word/key.json +126 -0
- package/src/mark-words/fixtures/mark-words-odd-word/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-odd-word/source.html +9 -0
- package/src/mark-words/fixtures/mark-words-odd-word/view.html +9 -0
- package/src/mark-words/fixtures/mark-words-pictures/frog.svg +12 -0
- package/src/mark-words/fixtures/mark-words-pictures/grading.json +27 -0
- package/src/mark-words/fixtures/mark-words-pictures/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-pictures/key.json +49 -0
- package/src/mark-words/fixtures/mark-words-pictures/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-pictures/pond.svg +18 -0
- package/src/mark-words/fixtures/mark-words-pictures/source.html +11 -0
- package/src/mark-words/fixtures/mark-words-pictures/view.html +11 -0
- package/src/mark-words/fixtures/mark-words-style-templates/grading.json +52 -0
- package/src/mark-words/fixtures/mark-words-style-templates/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-style-templates/key.json +80 -0
- package/src/mark-words/fixtures/mark-words-style-templates/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-style-templates/source.html +10 -0
- package/src/mark-words/fixtures/mark-words-style-templates/view.html +10 -0
- package/src/mark-words/fixtures/mark-words-styled/grading.json +88 -0
- package/src/mark-words/fixtures/mark-words-styled/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-styled/key.json +41 -0
- package/src/mark-words/fixtures/mark-words-styled/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-styled/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-styled/view.html +5 -0
- package/src/mark-words/fixtures/mark-words-two-words/grading.json +27 -0
- package/src/mark-words/fixtures/mark-words-two-words/issues.json +1 -0
- package/src/mark-words/fixtures/mark-words-two-words/key.json +33 -0
- package/src/mark-words/fixtures/mark-words-two-words/meta.json +23 -0
- package/src/mark-words/fixtures/mark-words-two-words/source.html +5 -0
- package/src/mark-words/fixtures/mark-words-two-words/view.html +5 -0
- package/src/mark-words/manifest.ts +59 -0
- package/src/mark-words/menu-messages.ts +14 -0
- package/src/mark-words/messages/en.json +47 -0
- package/src/mark-words/messages/menu/en.json +5 -0
- package/src/mark-words/messages/menu/pl.json +5 -0
- package/src/mark-words/messages/pl.json +47 -0
- package/src/mark-words/messages/ui/en.json +6 -0
- package/src/mark-words/messages/ui/pl.json +6 -0
- package/src/mark-words/messages.ts +13 -0
- package/src/mark-words/ui-messages.ts +11 -0
- package/src/match/definition.ts +109 -0
- package/src/match/editor.ts +58 -0
- package/src/match/element.ts +781 -0
- package/src/match/fixtures/match-capitals/grading.json +58 -0
- package/src/match/fixtures/match-capitals/issues.json +1 -0
- package/src/match/fixtures/match-capitals/key.json +63 -0
- package/src/match/fixtures/match-capitals/meta.json +23 -0
- package/src/match/fixtures/match-capitals/source.html +13 -0
- package/src/match/fixtures/match-capitals/view.html +3 -0
- package/src/match/fixtures/match-duplicate-row/grading.json +35 -0
- package/src/match/fixtures/match-duplicate-row/issues.json +7 -0
- package/src/match/fixtures/match-duplicate-row/key.json +41 -0
- package/src/match/fixtures/match-duplicate-row/meta.json +23 -0
- package/src/match/fixtures/match-duplicate-row/source.html +10 -0
- package/src/match/fixtures/match-duplicate-row/view.html +3 -0
- package/src/match/fixtures/match-empty-prompt/grading.json +35 -0
- package/src/match/fixtures/match-empty-prompt/issues.json +7 -0
- package/src/match/fixtures/match-empty-prompt/key.json +41 -0
- package/src/match/fixtures/match-empty-prompt/meta.json +23 -0
- package/src/match/fixtures/match-empty-prompt/source.html +12 -0
- package/src/match/fixtures/match-empty-prompt/view.html +4 -0
- package/src/match/fixtures/match-formatting/grading.json +42 -0
- package/src/match/fixtures/match-formatting/issues.json +1 -0
- package/src/match/fixtures/match-formatting/key.json +49 -0
- package/src/match/fixtures/match-formatting/meta.json +23 -0
- package/src/match/fixtures/match-formatting/source.html +13 -0
- package/src/match/fixtures/match-formatting/view.html +3 -0
- package/src/match/fixtures/match-invalid-column-duplicate/issues.json +7 -0
- package/src/match/fixtures/match-invalid-column-duplicate/source.html +8 -0
- package/src/match/fixtures/match-invalid-column-empty/issues.json +7 -0
- package/src/match/fixtures/match-invalid-column-empty/source.html +8 -0
- package/src/match/fixtures/match-invalid-link/issues.json +7 -0
- package/src/match/fixtures/match-invalid-link/source.html +8 -0
- package/src/match/fixtures/match-invalid-one-column/issues.json +7 -0
- package/src/match/fixtures/match-invalid-one-column/source.html +7 -0
- package/src/match/fixtures/match-invalid-row-ambiguous/issues.json +7 -0
- package/src/match/fixtures/match-invalid-row-ambiguous/source.html +10 -0
- package/src/match/fixtures/match-invalid-row-column-unknown/issues.json +7 -0
- package/src/match/fixtures/match-invalid-row-column-unknown/source.html +8 -0
- package/src/match/fixtures/match-invalid-row-empty/issues.json +7 -0
- package/src/match/fixtures/match-invalid-row-empty/source.html +8 -0
- package/src/match/fixtures/match-invalid-row-without-column/issues.json +7 -0
- package/src/match/fixtures/match-invalid-row-without-column/source.html +8 -0
- package/src/match/fixtures/match-invalid-variant/issues.json +7 -0
- package/src/match/fixtures/match-invalid-variant/source.html +8 -0
- package/src/match/fixtures/match-one-row/grading.json +56 -0
- package/src/match/fixtures/match-one-row/issues.json +1 -0
- package/src/match/fixtures/match-one-row/key.json +25 -0
- package/src/match/fixtures/match-one-row/meta.json +23 -0
- package/src/match/fixtures/match-one-row/source.html +8 -0
- package/src/match/fixtures/match-one-row/view.html +4 -0
- package/src/match/fixtures/match-opposites/grading.json +51 -0
- package/src/match/fixtures/match-opposites/issues.json +1 -0
- package/src/match/fixtures/match-opposites/key.json +41 -0
- package/src/match/fixtures/match-opposites/meta.json +23 -0
- package/src/match/fixtures/match-opposites/source.html +12 -0
- package/src/match/fixtures/match-opposites/view.html +3 -0
- package/src/match/fixtures/match-planets/grading.json +75 -0
- package/src/match/fixtures/match-planets/issues.json +1 -0
- package/src/match/fixtures/match-planets/key.json +126 -0
- package/src/match/fixtures/match-planets/meta.json +23 -0
- package/src/match/fixtures/match-planets/source.html +26 -0
- package/src/match/fixtures/match-planets/view.html +4 -0
- package/src/match/fixtures/match-polish/grading.json +52 -0
- package/src/match/fixtures/match-polish/issues.json +1 -0
- package/src/match/fixtures/match-polish/key.json +41 -0
- package/src/match/fixtures/match-polish/meta.json +23 -0
- package/src/match/fixtures/match-polish/source.html +11 -0
- package/src/match/fixtures/match-polish/view.html +3 -0
- package/src/match/fixtures/match-proverbs/grading.json +45 -0
- package/src/match/fixtures/match-proverbs/issues.json +1 -0
- package/src/match/fixtures/match-proverbs/key.json +63 -0
- package/src/match/fixtures/match-proverbs/meta.json +23 -0
- package/src/match/fixtures/match-proverbs/source.html +15 -0
- package/src/match/fixtures/match-proverbs/view.html +3 -0
- package/src/match/manifest.ts +88 -0
- package/src/match/menu-messages.ts +14 -0
- package/src/match/messages/en.json +38 -0
- package/src/match/messages/menu/en.json +5 -0
- package/src/match/messages/menu/pl.json +5 -0
- package/src/match/messages/pl.json +38 -0
- package/src/match/messages/ui/en.json +17 -0
- package/src/match/messages/ui/pl.json +17 -0
- package/src/match/messages.ts +16 -0
- package/src/match/ui-messages.ts +14 -0
- package/src/memory/definition.ts +105 -0
- package/src/memory/editor.ts +45 -0
- package/src/memory/element.ts +451 -0
- package/src/memory/fixtures/memory-animal-sounds/grading.json +57 -0
- package/src/memory/fixtures/memory-animal-sounds/issues.json +1 -0
- package/src/memory/fixtures/memory-animal-sounds/key.json +49 -0
- package/src/memory/fixtures/memory-animal-sounds/meta.json +23 -0
- package/src/memory/fixtures/memory-animal-sounds/source.html +13 -0
- package/src/memory/fixtures/memory-animal-sounds/view.html +3 -0
- package/src/memory/fixtures/memory-empty-prompt/grading.json +22 -0
- package/src/memory/fixtures/memory-empty-prompt/issues.json +7 -0
- package/src/memory/fixtures/memory-empty-prompt/key.json +33 -0
- package/src/memory/fixtures/memory-empty-prompt/meta.json +23 -0
- package/src/memory/fixtures/memory-empty-prompt/source.html +10 -0
- package/src/memory/fixtures/memory-empty-prompt/view.html +4 -0
- package/src/memory/fixtures/memory-fifteen-pairs/grading.json +77 -0
- package/src/memory/fixtures/memory-fifteen-pairs/issues.json +1 -0
- package/src/memory/fixtures/memory-fifteen-pairs/key.json +153 -0
- package/src/memory/fixtures/memory-fifteen-pairs/meta.json +23 -0
- package/src/memory/fixtures/memory-fifteen-pairs/source.html +35 -0
- package/src/memory/fixtures/memory-fifteen-pairs/view.html +3 -0
- package/src/memory/fixtures/memory-formatting/grading.json +46 -0
- package/src/memory/fixtures/memory-formatting/issues.json +1 -0
- package/src/memory/fixtures/memory-formatting/key.json +49 -0
- package/src/memory/fixtures/memory-formatting/meta.json +23 -0
- package/src/memory/fixtures/memory-formatting/source.html +13 -0
- package/src/memory/fixtures/memory-formatting/view.html +3 -0
- package/src/memory/fixtures/memory-invalid-card-duplicate/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-card-duplicate/source.html +8 -0
- package/src/memory/fixtures/memory-invalid-card-empty/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-card-empty/source.html +9 -0
- package/src/memory/fixtures/memory-invalid-card-link/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-card-link/source.html +8 -0
- package/src/memory/fixtures/memory-invalid-one-pair/issues.json +12 -0
- package/src/memory/fixtures/memory-invalid-one-pair/source.html +7 -0
- package/src/memory/fixtures/memory-invalid-pair-missing/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-pair-missing/source.html +9 -0
- package/src/memory/fixtures/memory-invalid-pair-taken/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-pair-taken/source.html +9 -0
- package/src/memory/fixtures/memory-invalid-pair-unknown/issues.json +7 -0
- package/src/memory/fixtures/memory-invalid-pair-unknown/source.html +9 -0
- package/src/memory/fixtures/memory-long-texts/grading.json +42 -0
- package/src/memory/fixtures/memory-long-texts/issues.json +1 -0
- package/src/memory/fixtures/memory-long-texts/key.json +41 -0
- package/src/memory/fixtures/memory-long-texts/meta.json +23 -0
- package/src/memory/fixtures/memory-long-texts/source.html +11 -0
- package/src/memory/fixtures/memory-long-texts/view.html +3 -0
- package/src/memory/fixtures/memory-pictures/apple.svg +7 -0
- package/src/memory/fixtures/memory-pictures/grading.json +39 -0
- package/src/memory/fixtures/memory-pictures/issues.json +1 -0
- package/src/memory/fixtures/memory-pictures/key.json +41 -0
- package/src/memory/fixtures/memory-pictures/lemon.svg +6 -0
- package/src/memory/fixtures/memory-pictures/meta.json +23 -0
- package/src/memory/fixtures/memory-pictures/pear.svg +6 -0
- package/src/memory/fixtures/memory-pictures/source.html +11 -0
- package/src/memory/fixtures/memory-pictures/view.html +3 -0
- package/src/memory/fixtures/memory-pictures-polish/grading.json +42 -0
- package/src/memory/fixtures/memory-pictures-polish/issues.json +1 -0
- package/src/memory/fixtures/memory-pictures-polish/key.json +41 -0
- package/src/memory/fixtures/memory-pictures-polish/kolo.svg +5 -0
- package/src/memory/fixtures/memory-pictures-polish/kwadrat.svg +5 -0
- package/src/memory/fixtures/memory-pictures-polish/meta.json +23 -0
- package/src/memory/fixtures/memory-pictures-polish/source.html +11 -0
- package/src/memory/fixtures/memory-pictures-polish/trojkat.svg +5 -0
- package/src/memory/fixtures/memory-pictures-polish/view.html +3 -0
- package/src/memory/fixtures/memory-polish/grading.json +51 -0
- package/src/memory/fixtures/memory-polish/issues.json +1 -0
- package/src/memory/fixtures/memory-polish/key.json +49 -0
- package/src/memory/fixtures/memory-polish/meta.json +23 -0
- package/src/memory/fixtures/memory-polish/source.html +13 -0
- package/src/memory/fixtures/memory-polish/view.html +3 -0
- package/src/memory/fixtures/memory-two-games/grading.json +80 -0
- package/src/memory/fixtures/memory-two-games/issues.json +1 -0
- package/src/memory/fixtures/memory-two-games/key.json +64 -0
- package/src/memory/fixtures/memory-two-games/meta.json +23 -0
- package/src/memory/fixtures/memory-two-games/source.html +19 -0
- package/src/memory/fixtures/memory-two-games/view.html +5 -0
- package/src/memory/fixtures/memory-two-pairs/grading.json +27 -0
- package/src/memory/fixtures/memory-two-pairs/issues.json +1 -0
- package/src/memory/fixtures/memory-two-pairs/key.json +33 -0
- package/src/memory/fixtures/memory-two-pairs/meta.json +23 -0
- package/src/memory/fixtures/memory-two-pairs/source.html +9 -0
- package/src/memory/fixtures/memory-two-pairs/view.html +3 -0
- package/src/memory/manifest.ts +74 -0
- package/src/memory/menu-messages.ts +14 -0
- package/src/memory/messages/en.json +25 -0
- package/src/memory/messages/menu/en.json +4 -0
- package/src/memory/messages/menu/pl.json +4 -0
- package/src/memory/messages/pl.json +25 -0
- package/src/memory/messages/ui/en.json +18 -0
- package/src/memory/messages/ui/pl.json +18 -0
- package/src/memory/messages.ts +16 -0
- package/src/memory/ui-messages.ts +14 -0
- package/src/menu-messages.ts +51 -0
- package/src/option-styles.ts +60 -0
- package/src/order/definition.ts +84 -0
- package/src/order/editor.ts +38 -0
- package/src/order/element.ts +524 -0
- package/src/order/fixtures/order-basic/grading.json +173 -0
- package/src/order/fixtures/order-basic/issues.json +1 -0
- package/src/order/fixtures/order-basic/key.json +73 -0
- package/src/order/fixtures/order-basic/meta.json +23 -0
- package/src/order/fixtures/order-basic/source.html +10 -0
- package/src/order/fixtures/order-basic/view.html +3 -0
- package/src/order/fixtures/order-formatting/grading.json +86 -0
- package/src/order/fixtures/order-formatting/issues.json +1 -0
- package/src/order/fixtures/order-formatting/key.json +73 -0
- package/src/order/fixtures/order-formatting/meta.json +23 -0
- package/src/order/fixtures/order-formatting/source.html +10 -0
- package/src/order/fixtures/order-formatting/view.html +3 -0
- package/src/order/fixtures/order-help/grading.json +22 -0
- package/src/order/fixtures/order-help/issues.json +1 -0
- package/src/order/fixtures/order-help/key.json +56 -0
- package/src/order/fixtures/order-help/meta.json +23 -0
- package/src/order/fixtures/order-help/source.html +13 -0
- package/src/order/fixtures/order-help/view.html +3 -0
- package/src/order/fixtures/order-invalid-duplicate/issues.json +7 -0
- package/src/order/fixtures/order-invalid-duplicate/source.html +10 -0
- package/src/order/fixtures/order-invalid-empty-item/issues.json +7 -0
- package/src/order/fixtures/order-invalid-empty-item/source.html +8 -0
- package/src/order/fixtures/order-invalid-link/issues.json +7 -0
- package/src/order/fixtures/order-invalid-link/source.html +8 -0
- package/src/order/fixtures/order-invalid-too-many/issues.json +7 -0
- package/src/order/fixtures/order-invalid-too-many/source.html +26 -0
- package/src/order/fixtures/order-invalid-two-items/issues.json +7 -0
- package/src/order/fixtures/order-invalid-two-items/source.html +7 -0
- package/src/order/fixtures/order-long-items/grading.json +82 -0
- package/src/order/fixtures/order-long-items/issues.json +1 -0
- package/src/order/fixtures/order-long-items/key.json +57 -0
- package/src/order/fixtures/order-long-items/meta.json +23 -0
- package/src/order/fixtures/order-long-items/source.html +9 -0
- package/src/order/fixtures/order-long-items/view.html +3 -0
- package/src/order/fixtures/order-pages-two/grading.json +123 -0
- package/src/order/fixtures/order-pages-two/issues.json +1 -0
- package/src/order/fixtures/order-pages-two/key.json +120 -0
- package/src/order/fixtures/order-pages-two/meta.json +29 -0
- package/src/order/fixtures/order-pages-two/source.html +21 -0
- package/src/order/fixtures/order-pages-two/view.html +8 -0
- package/src/order/fixtures/order-polish/grading.json +83 -0
- package/src/order/fixtures/order-polish/issues.json +1 -0
- package/src/order/fixtures/order-polish/key.json +73 -0
- package/src/order/fixtures/order-polish/meta.json +23 -0
- package/src/order/fixtures/order-polish/source.html +10 -0
- package/src/order/fixtures/order-polish/view.html +3 -0
- package/src/order/fixtures/order-polish-words/grading.json +90 -0
- package/src/order/fixtures/order-polish-words/issues.json +1 -0
- package/src/order/fixtures/order-polish-words/key.json +84 -0
- package/src/order/fixtures/order-polish-words/meta.json +23 -0
- package/src/order/fixtures/order-polish-words/source.html +11 -0
- package/src/order/fixtures/order-polish-words/view.html +3 -0
- package/src/order/fixtures/order-sentence-words/grading.json +112 -0
- package/src/order/fixtures/order-sentence-words/issues.json +1 -0
- package/src/order/fixtures/order-sentence-words/key.json +106 -0
- package/src/order/fixtures/order-sentence-words/meta.json +23 -0
- package/src/order/fixtures/order-sentence-words/source.html +13 -0
- package/src/order/fixtures/order-sentence-words/view.html +3 -0
- package/src/order/fixtures/order-ten-items/grading.json +106 -0
- package/src/order/fixtures/order-ten-items/issues.json +1 -0
- package/src/order/fixtures/order-ten-items/key.json +128 -0
- package/src/order/fixtures/order-ten-items/meta.json +23 -0
- package/src/order/fixtures/order-ten-items/source.html +15 -0
- package/src/order/fixtures/order-ten-items/view.html +4 -0
- package/src/order/fixtures/order-three-items/grading.json +96 -0
- package/src/order/fixtures/order-three-items/issues.json +1 -0
- package/src/order/fixtures/order-three-items/key.json +47 -0
- package/src/order/fixtures/order-three-items/meta.json +23 -0
- package/src/order/fixtures/order-three-items/source.html +8 -0
- package/src/order/fixtures/order-three-items/view.html +3 -0
- package/src/order/manifest.ts +53 -0
- package/src/order/menu-messages.ts +14 -0
- package/src/order/messages/en.json +27 -0
- package/src/order/messages/menu/en.json +4 -0
- package/src/order/messages/menu/pl.json +4 -0
- package/src/order/messages/pl.json +27 -0
- package/src/order/messages/ui/en.json +11 -0
- package/src/order/messages/ui/pl.json +11 -0
- package/src/order/messages.ts +16 -0
- package/src/order/ui-messages.ts +14 -0
- package/src/picture-view.ts +195 -0
- package/src/picture.ts +154 -0
- package/src/select/definition.ts +74 -0
- package/src/select/editor.ts +64 -0
- package/src/select/element.ts +906 -0
- package/src/select/fixtures/select-basic/grading.json +59 -0
- package/src/select/fixtures/select-basic/issues.json +1 -0
- package/src/select/fixtures/select-basic/key.json +40 -0
- package/src/select/fixtures/select-basic/meta.json +23 -0
- package/src/select/fixtures/select-basic/source.html +15 -0
- package/src/select/fixtures/select-basic/view.html +7 -0
- package/src/select/fixtures/select-buttons/grading.json +96 -0
- package/src/select/fixtures/select-buttons/issues.json +1 -0
- package/src/select/fixtures/select-buttons/key.json +40 -0
- package/src/select/fixtures/select-buttons/meta.json +23 -0
- package/src/select/fixtures/select-buttons/source.html +17 -0
- package/src/select/fixtures/select-buttons/view.html +10 -0
- package/src/select/fixtures/select-buttons-edges/grading.json +94 -0
- package/src/select/fixtures/select-buttons-edges/issues.json +1 -0
- package/src/select/fixtures/select-buttons-edges/key.json +70 -0
- package/src/select/fixtures/select-buttons-edges/meta.json +23 -0
- package/src/select/fixtures/select-buttons-edges/source.html +34 -0
- package/src/select/fixtures/select-buttons-edges/view.html +20 -0
- package/src/select/fixtures/select-buttons-long/grading.json +79 -0
- package/src/select/fixtures/select-buttons-long/issues.json +1 -0
- package/src/select/fixtures/select-buttons-long/key.json +40 -0
- package/src/select/fixtures/select-buttons-long/meta.json +23 -0
- package/src/select/fixtures/select-buttons-long/source.html +14 -0
- package/src/select/fixtures/select-buttons-long/view.html +7 -0
- package/src/select/fixtures/select-buttons-looks/grading.json +63 -0
- package/src/select/fixtures/select-buttons-looks/issues.json +1 -0
- package/src/select/fixtures/select-buttons-looks/key.json +40 -0
- package/src/select/fixtures/select-buttons-looks/meta.json +23 -0
- package/src/select/fixtures/select-buttons-looks/source.html +18 -0
- package/src/select/fixtures/select-buttons-looks/view.html +11 -0
- package/src/select/fixtures/select-buttons-polish/grading.json +113 -0
- package/src/select/fixtures/select-buttons-polish/issues.json +1 -0
- package/src/select/fixtures/select-buttons-polish/key.json +70 -0
- package/src/select/fixtures/select-buttons-polish/meta.json +23 -0
- package/src/select/fixtures/select-buttons-polish/source.html +28 -0
- package/src/select/fixtures/select-buttons-polish/view.html +13 -0
- package/src/select/fixtures/select-buttons-twelve/grading.json +72 -0
- package/src/select/fixtures/select-buttons-twelve/issues.json +1 -0
- package/src/select/fixtures/select-buttons-twelve/key.json +25 -0
- package/src/select/fixtures/select-buttons-twelve/meta.json +23 -0
- package/src/select/fixtures/select-buttons-twelve/source.html +19 -0
- package/src/select/fixtures/select-buttons-twelve/view.html +6 -0
- package/src/select/fixtures/select-edges/grading.json +64 -0
- package/src/select/fixtures/select-edges/issues.json +1 -0
- package/src/select/fixtures/select-edges/key.json +55 -0
- package/src/select/fixtures/select-edges/meta.json +23 -0
- package/src/select/fixtures/select-edges/source.html +27 -0
- package/src/select/fixtures/select-edges/view.html +16 -0
- package/src/select/fixtures/select-invalid-duplicate/issues.json +7 -0
- package/src/select/fixtures/select-invalid-duplicate/source.html +10 -0
- package/src/select/fixtures/select-invalid-empty-option/issues.json +7 -0
- package/src/select/fixtures/select-invalid-empty-option/source.html +10 -0
- package/src/select/fixtures/select-invalid-no-correct/issues.json +7 -0
- package/src/select/fixtures/select-invalid-no-correct/source.html +9 -0
- package/src/select/fixtures/select-invalid-one-option/issues.json +7 -0
- package/src/select/fixtures/select-invalid-one-option/source.html +8 -0
- package/src/select/fixtures/select-invalid-two-correct/issues.json +7 -0
- package/src/select/fixtures/select-invalid-two-correct/source.html +10 -0
- package/src/select/fixtures/select-invalid-unknown-variant/issues.json +7 -0
- package/src/select/fixtures/select-invalid-unknown-variant/source.html +9 -0
- package/src/select/fixtures/select-long-options/grading.json +49 -0
- package/src/select/fixtures/select-long-options/issues.json +1 -0
- package/src/select/fixtures/select-long-options/key.json +40 -0
- package/src/select/fixtures/select-long-options/meta.json +23 -0
- package/src/select/fixtures/select-long-options/source.html +18 -0
- package/src/select/fixtures/select-long-options/view.html +10 -0
- package/src/select/fixtures/select-looks/grading.json +27 -0
- package/src/select/fixtures/select-looks/issues.json +1 -0
- package/src/select/fixtures/select-looks/key.json +40 -0
- package/src/select/fixtures/select-looks/meta.json +23 -0
- package/src/select/fixtures/select-looks/source.html +20 -0
- package/src/select/fixtures/select-looks/view.html +12 -0
- package/src/select/fixtures/select-native/grading.json +52 -0
- package/src/select/fixtures/select-native/issues.json +1 -0
- package/src/select/fixtures/select-native/key.json +55 -0
- package/src/select/fixtures/select-native/meta.json +23 -0
- package/src/select/fixtures/select-native/source.html +27 -0
- package/src/select/fixtures/select-native/view.html +13 -0
- package/src/select/fixtures/select-polish/grading.json +74 -0
- package/src/select/fixtures/select-polish/issues.json +1 -0
- package/src/select/fixtures/select-polish/key.json +55 -0
- package/src/select/fixtures/select-polish/meta.json +23 -0
- package/src/select/fixtures/select-polish/source.html +28 -0
- package/src/select/fixtures/select-polish/view.html +12 -0
- package/src/select/fixtures/select-shuffle/grading.json +44 -0
- package/src/select/fixtures/select-shuffle/issues.json +1 -0
- package/src/select/fixtures/select-shuffle/key.json +40 -0
- package/src/select/fixtures/select-shuffle/meta.json +23 -0
- package/src/select/fixtures/select-shuffle/source.html +17 -0
- package/src/select/fixtures/select-shuffle/view.html +7 -0
- package/src/select/fixtures/select-twelve/grading.json +39 -0
- package/src/select/fixtures/select-twelve/issues.json +1 -0
- package/src/select/fixtures/select-twelve/key.json +40 -0
- package/src/select/fixtures/select-twelve/meta.json +23 -0
- package/src/select/fixtures/select-twelve/source.html +36 -0
- package/src/select/fixtures/select-twelve/view.html +10 -0
- package/src/select/manifest.ts +79 -0
- package/src/select/menu-messages.ts +14 -0
- package/src/select/messages/en.json +39 -0
- package/src/select/messages/menu/en.json +5 -0
- package/src/select/messages/menu/pl.json +5 -0
- package/src/select/messages/pl.json +39 -0
- package/src/select/messages/ui/en.json +7 -0
- package/src/select/messages/ui/pl.json +7 -0
- package/src/select/messages.ts +16 -0
- package/src/select/ui-messages.ts +14 -0
- package/src/true-false/definition.ts +74 -0
- package/src/true-false/editor.ts +35 -0
- package/src/true-false/element.ts +337 -0
- package/src/true-false/fixtures/true-false-basic/grading.json +37 -0
- package/src/true-false/fixtures/true-false-basic/issues.json +1 -0
- package/src/true-false/fixtures/true-false-basic/key.json +41 -0
- package/src/true-false/fixtures/true-false-basic/meta.json +23 -0
- package/src/true-false/fixtures/true-false-basic/source.html +8 -0
- package/src/true-false/fixtures/true-false-basic/view.html +3 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/grading.json +27 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/issues.json +7 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/key.json +41 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/meta.json +23 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/source.html +8 -0
- package/src/true-false/fixtures/true-false-duplicate-statement/view.html +3 -0
- package/src/true-false/fixtures/true-false-eight-statements/grading.json +64 -0
- package/src/true-false/fixtures/true-false-eight-statements/issues.json +1 -0
- package/src/true-false/fixtures/true-false-eight-statements/key.json +90 -0
- package/src/true-false/fixtures/true-false-eight-statements/meta.json +23 -0
- package/src/true-false/fixtures/true-false-eight-statements/source.html +13 -0
- package/src/true-false/fixtures/true-false-eight-statements/view.html +3 -0
- package/src/true-false/fixtures/true-false-invalid-answer-missing/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-answer-missing/source.html +6 -0
- package/src/true-false/fixtures/true-false-invalid-answer-value/issues.json +17 -0
- package/src/true-false/fixtures/true-false-invalid-answer-value/source.html +7 -0
- package/src/true-false/fixtures/true-false-invalid-label-alone/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-label-alone/source.html +6 -0
- package/src/true-false/fixtures/true-false-invalid-label-empty/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-label-empty/source.html +6 -0
- package/src/true-false/fixtures/true-false-invalid-label-same/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-label-same/source.html +5 -0
- package/src/true-false/fixtures/true-false-invalid-label-too-long/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-label-too-long/source.html +9 -0
- package/src/true-false/fixtures/true-false-invalid-no-statements/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-no-statements/source.html +5 -0
- package/src/true-false/fixtures/true-false-invalid-statement-empty/issues.json +12 -0
- package/src/true-false/fixtures/true-false-invalid-statement-empty/source.html +8 -0
- package/src/true-false/fixtures/true-false-invalid-too-many-statements/issues.json +7 -0
- package/src/true-false/fixtures/true-false-invalid-too-many-statements/source.html +18 -0
- package/src/true-false/fixtures/true-false-labels/grading.json +27 -0
- package/src/true-false/fixtures/true-false-labels/issues.json +1 -0
- package/src/true-false/fixtures/true-false-labels/key.json +41 -0
- package/src/true-false/fixtures/true-false-labels/meta.json +23 -0
- package/src/true-false/fixtures/true-false-labels/source.html +8 -0
- package/src/true-false/fixtures/true-false-labels/view.html +3 -0
- package/src/true-false/fixtures/true-false-labels-english/grading.json +42 -0
- package/src/true-false/fixtures/true-false-labels-english/issues.json +1 -0
- package/src/true-false/fixtures/true-false-labels-english/key.json +49 -0
- package/src/true-false/fixtures/true-false-labels-english/meta.json +23 -0
- package/src/true-false/fixtures/true-false-labels-english/source.html +9 -0
- package/src/true-false/fixtures/true-false-labels-english/view.html +3 -0
- package/src/true-false/fixtures/true-false-labels-long/grading.json +22 -0
- package/src/true-false/fixtures/true-false-labels-long/issues.json +1 -0
- package/src/true-false/fixtures/true-false-labels-long/key.json +33 -0
- package/src/true-false/fixtures/true-false-labels-long/meta.json +23 -0
- package/src/true-false/fixtures/true-false-labels-long/source.html +11 -0
- package/src/true-false/fixtures/true-false-labels-long/view.html +3 -0
- package/src/true-false/fixtures/true-false-long-statements/grading.json +27 -0
- package/src/true-false/fixtures/true-false-long-statements/issues.json +1 -0
- package/src/true-false/fixtures/true-false-long-statements/key.json +41 -0
- package/src/true-false/fixtures/true-false-long-statements/meta.json +23 -0
- package/src/true-false/fixtures/true-false-long-statements/source.html +8 -0
- package/src/true-false/fixtures/true-false-long-statements/view.html +4 -0
- package/src/true-false/fixtures/true-false-one-statement/grading.json +29 -0
- package/src/true-false/fixtures/true-false-one-statement/issues.json +1 -0
- package/src/true-false/fixtures/true-false-one-statement/key.json +25 -0
- package/src/true-false/fixtures/true-false-one-statement/meta.json +23 -0
- package/src/true-false/fixtures/true-false-one-statement/source.html +6 -0
- package/src/true-false/fixtures/true-false-one-statement/view.html +4 -0
- package/src/true-false/fixtures/true-false-polish/grading.json +52 -0
- package/src/true-false/fixtures/true-false-polish/issues.json +1 -0
- package/src/true-false/fixtures/true-false-polish/key.json +49 -0
- package/src/true-false/fixtures/true-false-polish/meta.json +23 -0
- package/src/true-false/fixtures/true-false-polish/source.html +9 -0
- package/src/true-false/fixtures/true-false-polish/view.html +3 -0
- package/src/true-false/manifest.ts +55 -0
- package/src/true-false/menu-messages.ts +14 -0
- package/src/true-false/messages/en.json +28 -0
- package/src/true-false/messages/menu/en.json +4 -0
- package/src/true-false/messages/menu/pl.json +4 -0
- package/src/true-false/messages/pl.json +28 -0
- package/src/true-false/messages/ui/en.json +7 -0
- package/src/true-false/messages/ui/pl.json +7 -0
- package/src/true-false/messages.ts +16 -0
- package/src/true-false/ui-messages.ts +14 -0
- package/src/video/definition.ts +124 -0
- package/src/video/editor.ts +64 -0
- package/src/video/element.ts +211 -0
- package/src/video/fixtures/video-file/issues.json +1 -0
- package/src/video/fixtures/video-file/key.json +8 -0
- package/src/video/fixtures/video-file/meta.json +23 -0
- package/src/video/fixtures/video-file/ramp.en.vtt +10 -0
- package/src/video/fixtures/video-file/ramp.svg +8 -0
- package/src/video/fixtures/video-file/ramp.webm +0 -0
- package/src/video/fixtures/video-file/source.html +6 -0
- package/src/video/fixtures/video-file/view.html +6 -0
- package/src/video/fixtures/video-invalid-both/issues.json +7 -0
- package/src/video/fixtures/video-invalid-both/source.html +4 -0
- package/src/video/fixtures/video-invalid-captions-lang/issues.json +7 -0
- package/src/video/fixtures/video-invalid-captions-lang/source.html +4 -0
- package/src/video/fixtures/video-invalid-file-type/issues.json +7 -0
- package/src/video/fixtures/video-invalid-file-type/source.html +4 -0
- package/src/video/fixtures/video-invalid-label/issues.json +7 -0
- package/src/video/fixtures/video-invalid-label/source.html +4 -0
- package/src/video/fixtures/video-invalid-link/issues.json +7 -0
- package/src/video/fixtures/video-invalid-link/source.html +4 -0
- package/src/video/fixtures/video-invalid-no-source/issues.json +7 -0
- package/src/video/fixtures/video-invalid-no-source/source.html +4 -0
- package/src/video/fixtures/video-largest/issues.json +1 -0
- package/src/video/fixtures/video-largest/key.json +8 -0
- package/src/video/fixtures/video-largest/meta.json +23 -0
- package/src/video/fixtures/video-largest/source.html +8 -0
- package/src/video/fixtures/video-largest/view.html +8 -0
- package/src/video/fixtures/video-minimal/issues.json +7 -0
- package/src/video/fixtures/video-minimal/key.json +8 -0
- package/src/video/fixtures/video-minimal/meta.json +23 -0
- package/src/video/fixtures/video-minimal/source.html +1 -0
- package/src/video/fixtures/video-minimal/view.html +1 -0
- package/src/video/fixtures/video-pages/grading.json +70 -0
- package/src/video/fixtures/video-pages/issues.json +1 -0
- package/src/video/fixtures/video-pages/key.json +34 -0
- package/src/video/fixtures/video-pages/meta.json +30 -0
- package/src/video/fixtures/video-pages/source.html +9 -0
- package/src/video/fixtures/video-pages/view.html +9 -0
- package/src/video/fixtures/video-polish/issues.json +1 -0
- package/src/video/fixtures/video-polish/key.json +8 -0
- package/src/video/fixtures/video-polish/meta.json +23 -0
- package/src/video/fixtures/video-polish/rownia.pl.vtt +10 -0
- package/src/video/fixtures/video-polish/rownia.webm +0 -0
- package/src/video/fixtures/video-polish/source.html +7 -0
- package/src/video/fixtures/video-polish/view.html +7 -0
- package/src/video/fixtures/video-providers/issues.json +1 -0
- package/src/video/fixtures/video-providers/key.json +8 -0
- package/src/video/fixtures/video-providers/meta.json +23 -0
- package/src/video/fixtures/video-providers/source.html +6 -0
- package/src/video/fixtures/video-providers/view.html +6 -0
- package/src/video/fixtures/video-style-templates/issues.json +1 -0
- package/src/video/fixtures/video-style-templates/key.json +8 -0
- package/src/video/fixtures/video-style-templates/meta.json +23 -0
- package/src/video/fixtures/video-style-templates/source.html +6 -0
- package/src/video/fixtures/video-style-templates/view.html +6 -0
- package/src/video/manifest.ts +60 -0
- package/src/video/menu-messages.ts +14 -0
- package/src/video/messages/en.json +32 -0
- package/src/video/messages/menu/en.json +4 -0
- package/src/video/messages/menu/pl.json +4 -0
- package/src/video/messages/pl.json +32 -0
- package/src/video/messages/ui/en.json +4 -0
- package/src/video/messages/ui/pl.json +4 -0
- package/src/video/messages.ts +16 -0
- package/src/video/ui-messages.ts +14 -0
- package/src/word-bank/definition.ts +51 -0
- package/src/word-bank/editor.ts +42 -0
- package/src/word-bank/element.ts +356 -0
- package/src/word-bank/fixtures/word-bank-alone/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-alone/key.json +8 -0
- package/src/word-bank/fixtures/word-bank-alone/meta.json +23 -0
- package/src/word-bank/fixtures/word-bank-alone/source.html +8 -0
- package/src/word-bank/fixtures/word-bank-alone/view.html +4 -0
- package/src/word-bank/fixtures/word-bank-basic/grading.json +127 -0
- package/src/word-bank/fixtures/word-bank-basic/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-basic/key.json +40 -0
- package/src/word-bank/fixtures/word-bank-basic/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-basic/source.html +12 -0
- package/src/word-bank/fixtures/word-bank-basic/view.html +8 -0
- package/src/word-bank/fixtures/word-bank-formatting/grading.json +103 -0
- package/src/word-bank/fixtures/word-bank-formatting/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-formatting/key.json +55 -0
- package/src/word-bank/fixtures/word-bank-formatting/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-formatting/source.html +15 -0
- package/src/word-bank/fixtures/word-bank-formatting/view.html +10 -0
- package/src/word-bank/fixtures/word-bank-invalid-duplicate-word/issues.json +7 -0
- package/src/word-bank/fixtures/word-bank-invalid-duplicate-word/source.html +7 -0
- package/src/word-bank/fixtures/word-bank-invalid-empty-word/issues.json +7 -0
- package/src/word-bank/fixtures/word-bank-invalid-empty-word/source.html +7 -0
- package/src/word-bank/fixtures/word-bank-invalid-link-in-word/issues.json +7 -0
- package/src/word-bank/fixtures/word-bank-invalid-link-in-word/source.html +7 -0
- package/src/word-bank/fixtures/word-bank-long-words/grading.json +111 -0
- package/src/word-bank/fixtures/word-bank-long-words/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-long-words/key.json +70 -0
- package/src/word-bank/fixtures/word-bank-long-words/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-long-words/source.html +17 -0
- package/src/word-bank/fixtures/word-bank-long-words/view.html +11 -0
- package/src/word-bank/fixtures/word-bank-one-word/grading.json +70 -0
- package/src/word-bank/fixtures/word-bank-one-word/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-one-word/key.json +25 -0
- package/src/word-bank/fixtures/word-bank-one-word/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-one-word/source.html +6 -0
- package/src/word-bank/fixtures/word-bank-one-word/view.html +4 -0
- package/src/word-bank/fixtures/word-bank-reuse/grading.json +120 -0
- package/src/word-bank/fixtures/word-bank-reuse/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-reuse/key.json +55 -0
- package/src/word-bank/fixtures/word-bank-reuse/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-reuse/source.html +13 -0
- package/src/word-bank/fixtures/word-bank-reuse/view.html +9 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/grading.json +186 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/key.json +160 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/source.html +46 -0
- package/src/word-bank/fixtures/word-bank-thirty-words/view.html +15 -0
- package/src/word-bank/fixtures/word-bank-two-banks/grading.json +118 -0
- package/src/word-bank/fixtures/word-bank-two-banks/issues.json +1 -0
- package/src/word-bank/fixtures/word-bank-two-banks/key.json +85 -0
- package/src/word-bank/fixtures/word-bank-two-banks/meta.json +24 -0
- package/src/word-bank/fixtures/word-bank-two-banks/source.html +24 -0
- package/src/word-bank/fixtures/word-bank-two-banks/view.html +15 -0
- package/src/word-bank/manifest.ts +57 -0
- package/src/word-bank/menu-messages.ts +14 -0
- package/src/word-bank/messages/en.json +22 -0
- package/src/word-bank/messages/menu/en.json +4 -0
- package/src/word-bank/messages/menu/pl.json +4 -0
- package/src/word-bank/messages/pl.json +22 -0
- package/src/word-bank/messages/ui/en.json +20 -0
- package/src/word-bank/messages/ui/pl.json +20 -0
- package/src/word-bank/messages.ts +16 -0
- package/src/word-bank/ui-messages.ts +14 -0
- package/src/word-search/definition.ts +331 -0
- package/src/word-search/editor.ts +46 -0
- package/src/word-search/element.ts +772 -0
- package/src/word-search/fixtures/word-search-animals/grading.json +111 -0
- package/src/word-search/fixtures/word-search-animals/issues.json +1 -0
- package/src/word-search/fixtures/word-search-animals/key.json +85 -0
- package/src/word-search/fixtures/word-search-animals/meta.json +23 -0
- package/src/word-search/fixtures/word-search-animals/source.html +9 -0
- package/src/word-search/fixtures/word-search-animals/view.html +3 -0
- package/src/word-search/fixtures/word-search-clues/grading.json +111 -0
- package/src/word-search/fixtures/word-search-clues/issues.json +1 -0
- package/src/word-search/fixtures/word-search-clues/key.json +85 -0
- package/src/word-search/fixtures/word-search-clues/meta.json +23 -0
- package/src/word-search/fixtures/word-search-clues/source.html +9 -0
- package/src/word-search/fixtures/word-search-clues/view.html +3 -0
- package/src/word-search/fixtures/word-search-directions/grading.json +118 -0
- package/src/word-search/fixtures/word-search-directions/issues.json +1 -0
- package/src/word-search/fixtures/word-search-directions/key.json +126 -0
- package/src/word-search/fixtures/word-search-directions/meta.json +23 -0
- package/src/word-search/fixtures/word-search-directions/source.html +11 -0
- package/src/word-search/fixtures/word-search-directions/view.html +3 -0
- package/src/word-search/fixtures/word-search-invalid-clue-empty/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-clue-empty/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-link/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-link/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-no-fit/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-no-fit/source.html +11 -0
- package/src/word-search/fixtures/word-search-invalid-word-duplicate/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-duplicate/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-empty/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-empty/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-inside/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-inside/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-length/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-length/source.html +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-letters/issues.json +7 -0
- package/src/word-search/fixtures/word-search-invalid-word-letters/source.html +7 -0
- package/src/word-search/fixtures/word-search-largest/grading.json +167 -0
- package/src/word-search/fixtures/word-search-largest/issues.json +1 -0
- package/src/word-search/fixtures/word-search-largest/key.json +378 -0
- package/src/word-search/fixtures/word-search-largest/meta.json +23 -0
- package/src/word-search/fixtures/word-search-largest/source.html +25 -0
- package/src/word-search/fixtures/word-search-largest/view.html +3 -0
- package/src/word-search/fixtures/word-search-long-texts/grading.json +108 -0
- package/src/word-search/fixtures/word-search-long-texts/issues.json +1 -0
- package/src/word-search/fixtures/word-search-long-texts/key.json +68 -0
- package/src/word-search/fixtures/word-search-long-texts/meta.json +23 -0
- package/src/word-search/fixtures/word-search-long-texts/source.html +8 -0
- package/src/word-search/fixtures/word-search-long-texts/view.html +3 -0
- package/src/word-search/fixtures/word-search-mixed/grading.json +111 -0
- package/src/word-search/fixtures/word-search-mixed/issues.json +1 -0
- package/src/word-search/fixtures/word-search-mixed/key.json +85 -0
- package/src/word-search/fixtures/word-search-mixed/meta.json +23 -0
- package/src/word-search/fixtures/word-search-mixed/source.html +9 -0
- package/src/word-search/fixtures/word-search-mixed/view.html +3 -0
- package/src/word-search/fixtures/word-search-pictures/fish.svg +7 -0
- package/src/word-search/fixtures/word-search-pictures/grading.json +108 -0
- package/src/word-search/fixtures/word-search-pictures/issues.json +1 -0
- package/src/word-search/fixtures/word-search-pictures/key.json +68 -0
- package/src/word-search/fixtures/word-search-pictures/meta.json +23 -0
- package/src/word-search/fixtures/word-search-pictures/source.html +8 -0
- package/src/word-search/fixtures/word-search-pictures/sun.svg +7 -0
- package/src/word-search/fixtures/word-search-pictures/tree.svg +7 -0
- package/src/word-search/fixtures/word-search-pictures/view.html +3 -0
- package/src/word-search/fixtures/word-search-polish/grading.json +125 -0
- package/src/word-search/fixtures/word-search-polish/issues.json +1 -0
- package/src/word-search/fixtures/word-search-polish/key.json +162 -0
- package/src/word-search/fixtures/word-search-polish/meta.json +23 -0
- package/src/word-search/fixtures/word-search-polish/source.html +13 -0
- package/src/word-search/fixtures/word-search-polish/view.html +3 -0
- package/src/word-search/fixtures/word-search-smallest/grading.json +98 -0
- package/src/word-search/fixtures/word-search-smallest/issues.json +7 -0
- package/src/word-search/fixtures/word-search-smallest/key.json +34 -0
- package/src/word-search/fixtures/word-search-smallest/meta.json +23 -0
- package/src/word-search/fixtures/word-search-smallest/source.html +6 -0
- package/src/word-search/fixtures/word-search-smallest/view.html +3 -0
- package/src/word-search/manifest.ts +98 -0
- package/src/word-search/menu-messages.ts +14 -0
- package/src/word-search/messages/en.json +35 -0
- package/src/word-search/messages/menu/en.json +4 -0
- package/src/word-search/messages/menu/pl.json +4 -0
- package/src/word-search/messages/pl.json +35 -0
- package/src/word-search/messages/ui/en.json +24 -0
- package/src/word-search/messages/ui/pl.json +24 -0
- package/src/word-search/messages.ts +16 -0
- package/src/word-search/span.ts +42 -0
- package/src/word-search/ui-messages.ts +14 -0
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
import type { Answers, ComponentManifest, GroupVerdict, MessageCatalog } from '@astl/core';
|
|
2
|
+
import { type ElementRegistration, SingleSlotElement, verdictIcon } from '@astl/player';
|
|
3
|
+
import {
|
|
4
|
+
type CSSResultGroup,
|
|
5
|
+
css,
|
|
6
|
+
html,
|
|
7
|
+
LitElement,
|
|
8
|
+
nothing,
|
|
9
|
+
type PropertyDeclarations,
|
|
10
|
+
type PropertyValues,
|
|
11
|
+
svg,
|
|
12
|
+
type TemplateResult,
|
|
13
|
+
} from 'lit';
|
|
14
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
15
|
+
import { live } from 'lit/directives/live.js';
|
|
16
|
+
import { inlineStyles } from '../inline-styles.js';
|
|
17
|
+
import { selectManifest } from './manifest.js';
|
|
18
|
+
import { selectUiMessages } from './ui-messages.js';
|
|
19
|
+
|
|
20
|
+
/** U+2060: keeps the text right after the select (a full stop, a comma) on its line. */
|
|
21
|
+
const WORD_JOINER = String.fromCodePoint(0x2060);
|
|
22
|
+
/** Type-ahead: a key within this many milliseconds of the last one adds to the typed text (as in Chromium). */
|
|
23
|
+
const TYPE_AHEAD_MS = 1000;
|
|
24
|
+
/** PageUp and PageDown move the visual focus this many options (as in the APG example). */
|
|
25
|
+
const PAGE = 10;
|
|
26
|
+
|
|
27
|
+
/** One option as the element shows it. */
|
|
28
|
+
interface Item {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
/** The text with whitespace runs collapsed, as a control shows it. */
|
|
31
|
+
readonly label: string;
|
|
32
|
+
readonly lang: string | undefined;
|
|
33
|
+
readonly dir: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** What every control of the element carries. */
|
|
37
|
+
interface Common {
|
|
38
|
+
readonly label: string;
|
|
39
|
+
readonly verdict: GroupVerdict | null;
|
|
40
|
+
readonly describedBy: string | undefined;
|
|
41
|
+
readonly lang: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const MARKS = /\p{M}/gu;
|
|
45
|
+
/** Letters that NFD does not decompose (after lower-casing), searched as their base letters. */
|
|
46
|
+
const FOLDED: Readonly<Record<string, string>> = {
|
|
47
|
+
ł: 'l',
|
|
48
|
+
ø: 'o',
|
|
49
|
+
đ: 'd',
|
|
50
|
+
ß: 'ss',
|
|
51
|
+
æ: 'ae',
|
|
52
|
+
œ: 'oe',
|
|
53
|
+
ı: 'i',
|
|
54
|
+
};
|
|
55
|
+
const FOLDABLE = /[łøđßæœı]/gu;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The form the search compares: compatibility characters unified (NFKC), lower case in the content language (Turkish
|
|
59
|
+
* İ and I work), diacritics dropped (ż = z, ł = l, é = e), spaces collapsed. Presentation only: grading compares
|
|
60
|
+
* opaque option ids, never text.
|
|
61
|
+
*/
|
|
62
|
+
function searchForm(text: string, lang: string): string {
|
|
63
|
+
let lower: string;
|
|
64
|
+
try {
|
|
65
|
+
lower = text.normalize('NFKC').toLocaleLowerCase(lang === '' ? undefined : lang);
|
|
66
|
+
} catch {
|
|
67
|
+
// A malformed content language must not break the search.
|
|
68
|
+
lower = text.normalize('NFKC').toLowerCase();
|
|
69
|
+
}
|
|
70
|
+
return lower
|
|
71
|
+
.normalize('NFD')
|
|
72
|
+
.replace(MARKS, '')
|
|
73
|
+
.replace(FOLDABLE, (ch) => FOLDED[ch] ?? ch)
|
|
74
|
+
.replace(/\s+/gu, ' ')
|
|
75
|
+
.trim();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** The search form of typed text that keeps a space at its end, so "the " still tells "the end" from "then". */
|
|
79
|
+
const typedForm = (text: string, lang: string): string =>
|
|
80
|
+
searchForm(text, lang) + (/\s$/u.test(text) && text.trim() !== '' ? ' ' : '');
|
|
81
|
+
|
|
82
|
+
const CHEVRON = svg`<path d="M5 8l5 5 5-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>`;
|
|
83
|
+
const MAGNIFIER = svg`<circle cx="8.5" cy="8.5" r="5.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12.5 12.5l4.5 4.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>`;
|
|
84
|
+
const CHECK = svg`<path d="M4 10.5l4 4 8-9" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>`;
|
|
85
|
+
|
|
86
|
+
const icon = (className: string, shape: TemplateResult) =>
|
|
87
|
+
html`<svg class=${className} viewBox="0 0 20 20" aria-hidden="true" focusable="false">${shape}</svg>`;
|
|
88
|
+
|
|
89
|
+
/** Between two buttons: shown only where a look sets `--astl-separator-display` ("mat / hat"). */
|
|
90
|
+
const SEPARATOR = html`<span class="separator" part="separator" aria-hidden="true">/</span>`;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* `<astl-select>`: a choice inside running text. One slot, the element id; the answer is the picked option's id.
|
|
94
|
+
* - `dropdown`: the WAI-ARIA APG select-only combobox, a list in the components' style under the field: the focus
|
|
95
|
+
* stays on the field (the option with visual focus is its active descendant), typing jumps to the option that starts
|
|
96
|
+
* with the typed text (case and diacritics ignored), Enter, Space or a click picks, Escape closes, Tab picks and
|
|
97
|
+
* moves on. With `native`: a native `<select>` (the platform's picker on phones, native screen reader support).
|
|
98
|
+
* - `search`: the WAI-ARIA APG combobox with a listbox popup and list autocomplete: typing filters the options
|
|
99
|
+
* (case and diacritics ignored), the arrows move through them, Enter picks, Escape closes (or clears). The field
|
|
100
|
+
* is one line (a long option ends in an ellipsis while it is edited); after a check, out of focus, the picked option
|
|
101
|
+
* shows whole and wrapped over it.
|
|
102
|
+
* - `buttons`: the options as buttons in a tray (native radios in a radio group): one tab stop (the picked option,
|
|
103
|
+
* else the first), the arrow keys move and pick (wrapping), Home and End go to the ends.
|
|
104
|
+
* - locked (review, handed in): a read-only text field with the picked option, so a long one wraps and shows in full;
|
|
105
|
+
* the buttons stay, disabled.
|
|
106
|
+
* The dropdown and the search list are as wide as the longest option (a hidden sizer in the same grid cell), so the
|
|
107
|
+
* width never tells which option is right; the dropdown's list wraps a long option in the field. The two lists share
|
|
108
|
+
* their options: parts `option` plus `option-active` (visual focus) and `option-picked`. The light-DOM
|
|
109
|
+
* `<astl-option>` children are read, never moved or changed.
|
|
110
|
+
*/
|
|
111
|
+
export class SelectElement extends SingleSlotElement {
|
|
112
|
+
static override manifest: ComponentManifest = selectManifest;
|
|
113
|
+
static override messages: readonly MessageCatalog[] = selectUiMessages;
|
|
114
|
+
static override shadowRootOptions: ShadowRootInit = {
|
|
115
|
+
...LitElement.shadowRootOptions,
|
|
116
|
+
delegatesFocus: true,
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
static override properties: PropertyDeclarations = {
|
|
120
|
+
query: { state: true },
|
|
121
|
+
expanded: { state: true },
|
|
122
|
+
active: { state: true },
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
// Notes on the rules are JS comments between css parts: inside a css literal they would ship to every student.
|
|
126
|
+
static override styles: CSSResultGroup = [
|
|
127
|
+
// The tail is room for the punctuation after the select, so a full-line select keeps its full stop; the indicator
|
|
128
|
+
// is the chevron or magnifier at the inline end, and the end padding keeps text clear of it.
|
|
129
|
+
css`
|
|
130
|
+
:host {
|
|
131
|
+
--astl-select-icon: 0px;
|
|
132
|
+
--astl-select-tail: 1ch;
|
|
133
|
+
--astl-select-indicator: 1em;
|
|
134
|
+
--astl-select-pad-end: calc(2 * var(--astl-space-2) + var(--astl-select-indicator));
|
|
135
|
+
}
|
|
136
|
+
.field.verdict {
|
|
137
|
+
--astl-select-icon: calc(1.1em + var(--astl-space-1));
|
|
138
|
+
}
|
|
139
|
+
`,
|
|
140
|
+
// One grid cell for the control and the sizer: the cell is as wide as the longest option.
|
|
141
|
+
css`
|
|
142
|
+
.box {
|
|
143
|
+
position: relative;
|
|
144
|
+
display: inline-grid;
|
|
145
|
+
max-inline-size: calc(100% - var(--astl-select-icon) - var(--astl-select-tail));
|
|
146
|
+
vertical-align: baseline;
|
|
147
|
+
}
|
|
148
|
+
.box > :not(.listbox) {
|
|
149
|
+
grid-area: 1 / 1;
|
|
150
|
+
}
|
|
151
|
+
`,
|
|
152
|
+
// Every option on its own line, invisible and without height: only its width counts.
|
|
153
|
+
css`
|
|
154
|
+
.sizer {
|
|
155
|
+
block-size: 0;
|
|
156
|
+
padding-inline: var(--astl-space-2) var(--astl-select-pad-end);
|
|
157
|
+
border-inline: var(--astl-outline-width) solid transparent;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
visibility: hidden;
|
|
160
|
+
white-space: normal;
|
|
161
|
+
line-height: 1.4;
|
|
162
|
+
}
|
|
163
|
+
`,
|
|
164
|
+
// The control in the box takes the cell's width and never widens it, so only the sizer counts: no width of its
|
|
165
|
+
// own, at least the whole cell. Not `contain: inline-size`: Chromium still sizes a native select to its widest
|
|
166
|
+
// option, rounded up to a whole pixel, so the dropdown came out up to 1px wider than the search field.
|
|
167
|
+
// By element name (not `.box > .control`), so the locked textarea's own padding below still wins.
|
|
168
|
+
css`
|
|
169
|
+
:is(select, input, textarea, div, .shown).control {
|
|
170
|
+
inline-size: 0;
|
|
171
|
+
min-inline-size: 100%;
|
|
172
|
+
padding-inline: var(--astl-space-2) var(--astl-select-pad-end);
|
|
173
|
+
text-overflow: ellipsis;
|
|
174
|
+
}
|
|
175
|
+
select.control {
|
|
176
|
+
appearance: none;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
}
|
|
179
|
+
.indicator {
|
|
180
|
+
justify-self: end;
|
|
181
|
+
align-self: center;
|
|
182
|
+
inline-size: var(--astl-select-indicator);
|
|
183
|
+
block-size: var(--astl-select-indicator);
|
|
184
|
+
margin-inline-end: calc(var(--astl-space-2) + var(--astl-outline-width));
|
|
185
|
+
color: var(--astl-ink);
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
`,
|
|
189
|
+
// The dropdown's list: the field shows the picked option (else "Choose..." in the muted ink) and wraps a long one,
|
|
190
|
+
// its last line on the sentence's baseline, so the text after it (a full stop) follows that line; one line sits
|
|
191
|
+
// where a native select's text would.
|
|
192
|
+
css`
|
|
193
|
+
div.control {
|
|
194
|
+
display: flex;
|
|
195
|
+
align-items: center;
|
|
196
|
+
align-self: last baseline;
|
|
197
|
+
white-space: normal;
|
|
198
|
+
overflow-wrap: anywhere;
|
|
199
|
+
hyphens: auto;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
.placeholder {
|
|
203
|
+
color: var(--astl-ink-muted);
|
|
204
|
+
}
|
|
205
|
+
`,
|
|
206
|
+
// Search after a check: the picked option shown whole over the field, wrapped as in the dropdown's list, its last
|
|
207
|
+
// line on the sentence's baseline; the field under it keeps the height and hides its one-line copy. While the field
|
|
208
|
+
// has the focus the student types as before (one line, an ellipsis), and the box keeps its height.
|
|
209
|
+
css`
|
|
210
|
+
span.control.shown {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
align-self: last baseline;
|
|
214
|
+
border-color: transparent;
|
|
215
|
+
background: transparent;
|
|
216
|
+
white-space: normal;
|
|
217
|
+
overflow-wrap: anywhere;
|
|
218
|
+
hyphens: auto;
|
|
219
|
+
pointer-events: none;
|
|
220
|
+
}
|
|
221
|
+
.box:has(> .shown) > input.control:not(:focus) {
|
|
222
|
+
color: transparent;
|
|
223
|
+
}
|
|
224
|
+
.box:has(> input.control:focus) > .shown {
|
|
225
|
+
visibility: hidden;
|
|
226
|
+
}
|
|
227
|
+
`,
|
|
228
|
+
// Locked: as tall as its lines (field-sizing), so one line sits on the sentence's baseline and the text after it
|
|
229
|
+
// (a full stop) follows the last line, as after a gap.
|
|
230
|
+
css`
|
|
231
|
+
.box.locked {
|
|
232
|
+
vertical-align: bottom;
|
|
233
|
+
}
|
|
234
|
+
textarea.control {
|
|
235
|
+
padding-inline-end: var(--astl-space-2);
|
|
236
|
+
overflow-y: hidden;
|
|
237
|
+
field-sizing: content;
|
|
238
|
+
}
|
|
239
|
+
`,
|
|
240
|
+
// Both lists: the options under the field.
|
|
241
|
+
css`
|
|
242
|
+
.listbox {
|
|
243
|
+
position: absolute;
|
|
244
|
+
z-index: 2;
|
|
245
|
+
inset-block-start: calc(100% + var(--astl-space-1));
|
|
246
|
+
inset-inline: 0;
|
|
247
|
+
box-sizing: border-box;
|
|
248
|
+
max-block-size: calc(6 * var(--astl-target-min) + 2 * var(--astl-outline-width));
|
|
249
|
+
overflow-y: auto;
|
|
250
|
+
border: var(--astl-outline-width) solid var(--astl-outline);
|
|
251
|
+
border-radius: var(--astl-radius-s);
|
|
252
|
+
background: var(--astl-surface-raised);
|
|
253
|
+
color: var(--astl-ink);
|
|
254
|
+
white-space: normal;
|
|
255
|
+
line-height: 1.4;
|
|
256
|
+
}
|
|
257
|
+
.listbox[hidden] {
|
|
258
|
+
display: none;
|
|
259
|
+
}
|
|
260
|
+
.option {
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: var(--astl-space-1);
|
|
265
|
+
min-block-size: var(--astl-target-min);
|
|
266
|
+
padding-block: var(--astl-space-1);
|
|
267
|
+
padding-inline: var(--astl-space-2);
|
|
268
|
+
overflow-wrap: anywhere;
|
|
269
|
+
hyphens: auto;
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
}
|
|
272
|
+
.option:hover {
|
|
273
|
+
background: var(--astl-accent-soft);
|
|
274
|
+
}
|
|
275
|
+
`,
|
|
276
|
+
// The option with visual focus: a ring (shape) and a fill, never the fill alone. The picked option: the check and
|
|
277
|
+
// bold text, in hc also a bar at the inline start (as a picked button), which forced colours keep too.
|
|
278
|
+
css`
|
|
279
|
+
.option[data-active] {
|
|
280
|
+
outline: var(--astl-focus-width) solid var(--astl-focus);
|
|
281
|
+
outline-offset: calc(-1 * var(--astl-focus-width));
|
|
282
|
+
background: var(--astl-selected-soft);
|
|
283
|
+
}
|
|
284
|
+
.option[data-picked] {
|
|
285
|
+
position: relative;
|
|
286
|
+
font-weight: 600;
|
|
287
|
+
}
|
|
288
|
+
.option[data-picked]::before {
|
|
289
|
+
content: '';
|
|
290
|
+
position: absolute;
|
|
291
|
+
inset-block: 0;
|
|
292
|
+
inset-inline-start: 0;
|
|
293
|
+
inline-size: var(--astl-selected-bar);
|
|
294
|
+
background: var(--astl-selected);
|
|
295
|
+
}
|
|
296
|
+
.check {
|
|
297
|
+
flex: none;
|
|
298
|
+
inline-size: 1em;
|
|
299
|
+
block-size: 1em;
|
|
300
|
+
}
|
|
301
|
+
.option:not([data-picked]) .check {
|
|
302
|
+
visibility: hidden;
|
|
303
|
+
}
|
|
304
|
+
`,
|
|
305
|
+
// Buttons: a tinted tray (the control, so it shows the verdict) of buttons that wrap, at most as wide as the line.
|
|
306
|
+
// Its edge shows only a verdict: a frame around framed buttons would read as a double border. The buttons are
|
|
307
|
+
// labels around visually hidden radios; their text wraps (the field's nowrap stops at the tray).
|
|
308
|
+
css`
|
|
309
|
+
.control.tray {
|
|
310
|
+
display: inline-flex;
|
|
311
|
+
flex-wrap: wrap;
|
|
312
|
+
align-items: center;
|
|
313
|
+
gap: var(--astl-space-1);
|
|
314
|
+
max-inline-size: calc(100% - var(--astl-select-icon) - var(--astl-select-tail));
|
|
315
|
+
padding: var(--astl-space-1);
|
|
316
|
+
border-color: transparent;
|
|
317
|
+
background: var(--astl-canvas);
|
|
318
|
+
white-space: normal;
|
|
319
|
+
}
|
|
320
|
+
.chip {
|
|
321
|
+
position: relative;
|
|
322
|
+
box-sizing: border-box;
|
|
323
|
+
display: inline-flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
min-inline-size: var(--astl-target-min);
|
|
326
|
+
min-block-size: var(--astl-target-min);
|
|
327
|
+
padding-inline: var(--astl-space-3);
|
|
328
|
+
border: var(--astl-outline-width) solid var(--astl-outline);
|
|
329
|
+
border-radius: var(--astl-radius-m);
|
|
330
|
+
background: var(--astl-surface);
|
|
331
|
+
overflow: clip;
|
|
332
|
+
overflow-wrap: anywhere;
|
|
333
|
+
hyphens: auto;
|
|
334
|
+
cursor: pointer;
|
|
335
|
+
}
|
|
336
|
+
.chip:has(:enabled):hover {
|
|
337
|
+
background: var(--astl-accent-soft);
|
|
338
|
+
}
|
|
339
|
+
.chip:has(:disabled) {
|
|
340
|
+
cursor: default;
|
|
341
|
+
}
|
|
342
|
+
.chip:has(:focus-visible) {
|
|
343
|
+
outline: var(--astl-focus-width) solid var(--astl-focus);
|
|
344
|
+
outline-offset: var(--astl-focus-offset);
|
|
345
|
+
}
|
|
346
|
+
.separator {
|
|
347
|
+
display: var(--astl-separator-display, none);
|
|
348
|
+
color: var(--astl-ink-muted);
|
|
349
|
+
}
|
|
350
|
+
`,
|
|
351
|
+
// Picked: the theme's fill and a doubled edge (an inset ring), so the pick never shows by colour alone (the radio
|
|
352
|
+
// is hidden); in hc also a bar at the inline start. No bold: a word in a heading or in strong text keeps its weight,
|
|
353
|
+
// and a pick never reflows the sentence.
|
|
354
|
+
css`
|
|
355
|
+
.chip:has(:checked) {
|
|
356
|
+
border-color: var(--astl-selected);
|
|
357
|
+
background: var(--astl-selected-soft);
|
|
358
|
+
box-shadow: inset 0 0 0 var(--astl-outline-width) var(--astl-selected);
|
|
359
|
+
}
|
|
360
|
+
.chip:has(:checked)::before {
|
|
361
|
+
content: '';
|
|
362
|
+
position: absolute;
|
|
363
|
+
inset-block: 0;
|
|
364
|
+
inset-inline-start: 0;
|
|
365
|
+
inline-size: var(--astl-selected-bar);
|
|
366
|
+
background: var(--astl-selected);
|
|
367
|
+
}
|
|
368
|
+
`,
|
|
369
|
+
// System colours draw no fills: the picked button takes the highlight pair instead.
|
|
370
|
+
css`
|
|
371
|
+
@media (forced-colors: active) {
|
|
372
|
+
.chip:has(:checked) {
|
|
373
|
+
forced-color-adjust: none;
|
|
374
|
+
background: var(--astl-selected);
|
|
375
|
+
color: var(--astl-on-accent);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
`,
|
|
379
|
+
inlineStyles,
|
|
380
|
+
];
|
|
381
|
+
|
|
382
|
+
/** Search: the text the student is typing; null shows the picked option. */
|
|
383
|
+
declare protected query: string | null;
|
|
384
|
+
/** Dropdown list and search: whether the listbox is open. */
|
|
385
|
+
declare protected expanded: boolean;
|
|
386
|
+
/** Index of the option with visual focus, among the options (dropdown list) or the filtered ones (search); -1 = none. */
|
|
387
|
+
declare protected active: number;
|
|
388
|
+
/** Dropdown list: the type-ahead text so far, and when its last key came (an event time stamp). */
|
|
389
|
+
#typed = '';
|
|
390
|
+
#typedAt = Number.NEGATIVE_INFINITY;
|
|
391
|
+
|
|
392
|
+
constructor() {
|
|
393
|
+
super();
|
|
394
|
+
this.query = null;
|
|
395
|
+
this.expanded = false;
|
|
396
|
+
this.active = -1;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** `dropdown`, `search` or `buttons` (the manifest default for an absent or unknown value). */
|
|
400
|
+
get variant(): string {
|
|
401
|
+
return this.stringAttribute('variant') ?? 'dropdown';
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
/** `<astl-option>` children in rendered order: view order, or per attempt with `shuffle` and a seed. */
|
|
405
|
+
get options(): readonly Item[] {
|
|
406
|
+
const items = this.childElements('astl-option').map(
|
|
407
|
+
(child): Item => ({
|
|
408
|
+
id: child.id,
|
|
409
|
+
label: (child.textContent ?? '').replace(/\s+/gu, ' ').trim(),
|
|
410
|
+
lang: child.getAttribute('lang') ?? undefined,
|
|
411
|
+
dir: child.getAttribute('dir') ?? undefined,
|
|
412
|
+
}),
|
|
413
|
+
);
|
|
414
|
+
return this.booleanAttribute('shuffle') ? this.shuffled(items) : items;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
override setAnswers(answers: Answers): void {
|
|
418
|
+
const value = answers[this.id];
|
|
419
|
+
if (value === undefined) return;
|
|
420
|
+
// Only option ids can be shown (`''` clears): anything else clears the answer, as in a single choice.
|
|
421
|
+
this.value = this.options.some((option) => option.id === value) ? value : '';
|
|
422
|
+
this.#close();
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
protected override willUpdate(changed: PropertyValues<this>): void {
|
|
426
|
+
if (changed.has('disabled') && this.disabled) this.#close();
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
protected override updated(): void {
|
|
430
|
+
if (!this.expanded || this.active < 0) return;
|
|
431
|
+
this.renderRoot.querySelector('.option[data-active]')?.scrollIntoView({ block: 'nearest' });
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
protected override render(): TemplateResult {
|
|
435
|
+
const options = this.options;
|
|
436
|
+
const verdict = this.verdict;
|
|
437
|
+
// A correct answer needs no correction: the solution shows for wrong and empty slots only.
|
|
438
|
+
const solutionId = verdict === 'correct' ? null : this.solutionValue;
|
|
439
|
+
const solution = options.find((option) => option.id === solutionId) ?? null;
|
|
440
|
+
const ui = this.uiLanguage;
|
|
441
|
+
const { number } = this.context;
|
|
442
|
+
const describedBy = [verdict === null ? '' : 'verdict', solution === null ? '' : 'solution']
|
|
443
|
+
.filter((id) => id !== '')
|
|
444
|
+
.join(' ');
|
|
445
|
+
const lang = this.contentLang;
|
|
446
|
+
const common: Common = {
|
|
447
|
+
label: number > 0 ? this.t('ui.label', { n: number }) : this.t('ui.labelPlain'),
|
|
448
|
+
verdict,
|
|
449
|
+
describedBy: describedBy === '' ? undefined : describedBy,
|
|
450
|
+
lang: lang === '' ? undefined : lang,
|
|
451
|
+
};
|
|
452
|
+
const variant = this.variant;
|
|
453
|
+
const control =
|
|
454
|
+
variant === 'buttons' ? this.#buttons(options, common) : this.#box(options, common, variant);
|
|
455
|
+
return html`<span class="select" part="select"
|
|
456
|
+
><span class=${verdict === null ? 'field' : 'field verdict'}
|
|
457
|
+
>${control}${this.renderVerdict(verdict, { hiddenWord: true, id: 'verdict' })}</span
|
|
458
|
+
>${
|
|
459
|
+
solution === null
|
|
460
|
+
? nothing
|
|
461
|
+
: html`<span class="solution" part="solution" id="solution"
|
|
462
|
+
>${verdictIcon('correct')}<span class="astl-vh" lang=${ui.lang} dir=${ui.dir}
|
|
463
|
+
>${this.t('ui.solution', { answer: solution.label })}</span
|
|
464
|
+
><span aria-hidden="true" lang=${ifDefined(solution.lang)} dir=${ifDefined(solution.dir)}
|
|
465
|
+
>${solution.label}</span
|
|
466
|
+
></span
|
|
467
|
+
>`
|
|
468
|
+
}</span
|
|
469
|
+
>${WORD_JOINER}`;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/** The dropdown (a list, or with `native` a native select), the search list or the locked field, in one grid cell with the sizer. */
|
|
473
|
+
#box(options: readonly Item[], common: Common, variant: string): TemplateResult {
|
|
474
|
+
const choose = this.t('ui.choose');
|
|
475
|
+
const control = this.disabled
|
|
476
|
+
? this.#locked(options, common)
|
|
477
|
+
: variant === 'search'
|
|
478
|
+
? this.#search(options, common)
|
|
479
|
+
: this.booleanAttribute('native')
|
|
480
|
+
? this.#dropdown(options, common, choose)
|
|
481
|
+
: this.#list(options, common, choose);
|
|
482
|
+
const sizes = [choose, ...options.map((option) => option.label)];
|
|
483
|
+
return html`<span class=${this.disabled ? 'box locked' : 'box'}
|
|
484
|
+
>${control}<span class="sizer" aria-hidden="true"
|
|
485
|
+
>${sizes.map((text, i) => html`${i > 0 ? html`<br />` : nothing}<span>${text}</span>`)}</span
|
|
486
|
+
></span
|
|
487
|
+
>`;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
#dropdown(options: readonly Item[], common: Common, choose: string): TemplateResult {
|
|
491
|
+
const value = this.value;
|
|
492
|
+
const ui = this.uiLanguage;
|
|
493
|
+
// `.selected` per option, not `.value` on the select: on the first render the options do not exist yet.
|
|
494
|
+
return html`<select
|
|
495
|
+
part="control"
|
|
496
|
+
class="control"
|
|
497
|
+
data-verdict=${ifDefined(common.verdict ?? undefined)}
|
|
498
|
+
lang=${ifDefined(common.lang)}
|
|
499
|
+
aria-label=${common.label}
|
|
500
|
+
aria-invalid=${common.verdict === 'incorrect' ? 'true' : nothing}
|
|
501
|
+
aria-describedby=${ifDefined(common.describedBy)}
|
|
502
|
+
@change=${(event: Event) => this.updateValue((event.target as HTMLSelectElement).value)}
|
|
503
|
+
><option value="" lang=${ui.lang} dir=${ui.dir} .selected=${live(value === '')}>${choose}</option
|
|
504
|
+
>${options.map(
|
|
505
|
+
(option) =>
|
|
506
|
+
html`<option
|
|
507
|
+
value=${option.id}
|
|
508
|
+
lang=${ifDefined(option.lang)}
|
|
509
|
+
dir=${ifDefined(option.dir)}
|
|
510
|
+
.selected=${live(option.id === value)}
|
|
511
|
+
>${option.label}</option>`,
|
|
512
|
+
)}</select
|
|
513
|
+
>${icon('indicator', CHEVRON)}`;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
#search(options: readonly Item[], common: Common): TemplateResult {
|
|
517
|
+
const list = this.#filtered(options);
|
|
518
|
+
const active = this.expanded ? list[this.active] : undefined;
|
|
519
|
+
const picked = options.find((option) => option.id === this.value);
|
|
520
|
+
const optionId = (item: Item) => `option-${options.indexOf(item)}`;
|
|
521
|
+
return html`<input
|
|
522
|
+
part="control"
|
|
523
|
+
class="control"
|
|
524
|
+
type="text"
|
|
525
|
+
role="combobox"
|
|
526
|
+
size="1"
|
|
527
|
+
data-verdict=${ifDefined(common.verdict ?? undefined)}
|
|
528
|
+
lang=${ifDefined(common.lang)}
|
|
529
|
+
aria-label=${common.label}
|
|
530
|
+
aria-autocomplete="list"
|
|
531
|
+
aria-expanded=${this.expanded ? 'true' : 'false'}
|
|
532
|
+
aria-controls="listbox"
|
|
533
|
+
aria-activedescendant=${active === undefined ? nothing : optionId(active)}
|
|
534
|
+
aria-invalid=${common.verdict === 'incorrect' ? 'true' : nothing}
|
|
535
|
+
aria-describedby=${ifDefined(common.describedBy)}
|
|
536
|
+
autocomplete="off"
|
|
537
|
+
autocapitalize="off"
|
|
538
|
+
autocorrect="off"
|
|
539
|
+
spellcheck="false"
|
|
540
|
+
placeholder=${this.t('ui.choose')}
|
|
541
|
+
.value=${live(this.query ?? picked?.label ?? '')}
|
|
542
|
+
@input=${(event: Event) => this.#type((event.target as HTMLInputElement).value)}
|
|
543
|
+
@keydown=${(event: KeyboardEvent) => this.#key(event)}
|
|
544
|
+
@click=${() => (this.expanded ? this.#collapse() : this.#open(-1))}
|
|
545
|
+
@blur=${() => this.#close()}
|
|
546
|
+
/>${
|
|
547
|
+
common.verdict !== null && this.query === null && picked !== undefined
|
|
548
|
+
? html`<span class="control shown" aria-hidden="true" lang=${ifDefined(picked.lang)} dir=${ifDefined(picked.dir)}
|
|
549
|
+
>${picked.label}</span
|
|
550
|
+
>`
|
|
551
|
+
: nothing
|
|
552
|
+
}${icon('indicator', MAGNIFIER)}${this.#listbox(options, list, common, 'active')}`;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* The dropdown's list: the WAI-ARIA APG select-only combobox. The focus stays on this field; the option with visual
|
|
557
|
+
* focus is its active descendant, and aria-selected marks the picked one.
|
|
558
|
+
*/
|
|
559
|
+
#list(options: readonly Item[], common: Common, choose: string): TemplateResult {
|
|
560
|
+
const picked = options.find((option) => option.id === this.value);
|
|
561
|
+
const ui = this.uiLanguage;
|
|
562
|
+
return html`<div
|
|
563
|
+
part="control"
|
|
564
|
+
class="control"
|
|
565
|
+
role="combobox"
|
|
566
|
+
tabindex="0"
|
|
567
|
+
data-verdict=${ifDefined(common.verdict ?? undefined)}
|
|
568
|
+
lang=${ifDefined(common.lang)}
|
|
569
|
+
aria-label=${common.label}
|
|
570
|
+
aria-expanded=${this.expanded ? 'true' : 'false'}
|
|
571
|
+
aria-controls="listbox"
|
|
572
|
+
aria-activedescendant=${this.expanded && this.active >= 0 ? `option-${this.active}` : nothing}
|
|
573
|
+
aria-invalid=${common.verdict === 'incorrect' ? 'true' : nothing}
|
|
574
|
+
aria-describedby=${ifDefined(common.describedBy)}
|
|
575
|
+
@keydown=${this.#listKey}
|
|
576
|
+
@click=${() => (this.expanded ? this.#collapse() : this.#show(this.#pickedIndex()))}
|
|
577
|
+
@blur=${() => this.#collapse()}
|
|
578
|
+
>${
|
|
579
|
+
picked === undefined
|
|
580
|
+
? html`<span class="placeholder" lang=${ui.lang} dir=${ui.dir}>${choose}</span>`
|
|
581
|
+
: html`<span lang=${ifDefined(picked.lang)} dir=${ifDefined(picked.dir)}>${picked.label}</span>`
|
|
582
|
+
}</div
|
|
583
|
+
>${icon('indicator', CHEVRON)}${this.#listbox(options, options, common, 'picked')}`;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* The options under the field, shared by both lists: `items` (the search list's filtered ones), each with the id of
|
|
588
|
+
* its place among `options`. aria-selected marks the picked option (dropdown list) or the active one (search, the
|
|
589
|
+
* APG's list autocomplete); the parts name both states, so a host styles both lists alike.
|
|
590
|
+
*/
|
|
591
|
+
#listbox(
|
|
592
|
+
options: readonly Item[],
|
|
593
|
+
items: readonly Item[],
|
|
594
|
+
common: Common,
|
|
595
|
+
selected: 'picked' | 'active',
|
|
596
|
+
): TemplateResult {
|
|
597
|
+
return html`<div
|
|
598
|
+
class="listbox"
|
|
599
|
+
part="listbox"
|
|
600
|
+
role="listbox"
|
|
601
|
+
id="listbox"
|
|
602
|
+
lang=${ifDefined(common.lang)}
|
|
603
|
+
aria-label=${common.label}
|
|
604
|
+
?hidden=${!this.expanded}
|
|
605
|
+
@mousedown=${(event: Event) => event.preventDefault()}
|
|
606
|
+
>${items.map((item, i) => {
|
|
607
|
+
const active = i === this.active;
|
|
608
|
+
const picked = item.id === this.value;
|
|
609
|
+
const part = `option${active ? ' option-active' : ''}${picked ? ' option-picked' : ''}`;
|
|
610
|
+
return html`<div
|
|
611
|
+
class="option"
|
|
612
|
+
part=${part}
|
|
613
|
+
role="option"
|
|
614
|
+
id="option-${options.indexOf(item)}"
|
|
615
|
+
lang=${ifDefined(item.lang)}
|
|
616
|
+
dir=${ifDefined(item.dir)}
|
|
617
|
+
aria-selected=${(selected === 'picked' ? picked : active) ? 'true' : 'false'}
|
|
618
|
+
?data-active=${active}
|
|
619
|
+
?data-picked=${picked}
|
|
620
|
+
@click=${() => this.#pick(item)}
|
|
621
|
+
>${icon('check', CHECK)}<span>${item.label}</span></div>`;
|
|
622
|
+
})}</div>`;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* One native radio per option in a labelled radio group: the arrow keys move and pick, wrapping (the platform's own
|
|
627
|
+
* radio group). Only the picked option (else the first) is a tab stop, so Shift+Tab lands there too.
|
|
628
|
+
*/
|
|
629
|
+
#buttons(options: readonly Item[], common: Common): TemplateResult {
|
|
630
|
+
const picked = options.findIndex((option) => option.id === this.value);
|
|
631
|
+
// Locked: no tab stop (disabled radios take no focus).
|
|
632
|
+
const stop = this.disabled ? -1 : Math.max(0, picked);
|
|
633
|
+
return html`<span
|
|
634
|
+
part="control"
|
|
635
|
+
class="control tray"
|
|
636
|
+
role="radiogroup"
|
|
637
|
+
data-verdict=${ifDefined(common.verdict ?? undefined)}
|
|
638
|
+
lang=${ifDefined(common.lang)}
|
|
639
|
+
aria-label=${common.label}
|
|
640
|
+
aria-invalid=${common.verdict === 'incorrect' ? 'true' : nothing}
|
|
641
|
+
@keydown=${this.#keydown}
|
|
642
|
+
>${options.map(
|
|
643
|
+
(option, i) =>
|
|
644
|
+
html`${i > 0 ? SEPARATOR : nothing}<label class="chip" part="option"
|
|
645
|
+
><input
|
|
646
|
+
class="astl-vh"
|
|
647
|
+
type="radio"
|
|
648
|
+
name="option"
|
|
649
|
+
value=${option.id}
|
|
650
|
+
tabindex=${i === stop ? 0 : -1}
|
|
651
|
+
.checked=${live(option.id === this.value)}
|
|
652
|
+
?disabled=${this.disabled}
|
|
653
|
+
aria-describedby=${ifDefined(common.describedBy)}
|
|
654
|
+
@change=${() => this.updateValue(option.id)}
|
|
655
|
+
/><span lang=${ifDefined(option.lang)} dir=${ifDefined(option.dir)}>${option.label}</span></label
|
|
656
|
+
>`,
|
|
657
|
+
)}</span
|
|
658
|
+
>`;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/** Buttons: Home and End pick the first and the last option, which radio groups do not do by themselves. */
|
|
662
|
+
#keydown = (event: KeyboardEvent): void => {
|
|
663
|
+
if ((event.key !== 'Home' && event.key !== 'End') || event.altKey || event.ctrlKey || event.metaKey)
|
|
664
|
+
return;
|
|
665
|
+
const radios = this.renderRoot.querySelectorAll('input');
|
|
666
|
+
const radio = radios[event.key === 'Home' ? 0 : radios.length - 1];
|
|
667
|
+
event.preventDefault();
|
|
668
|
+
radio?.focus();
|
|
669
|
+
radio?.click();
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
#locked(options: readonly Item[], common: Common): TemplateResult {
|
|
673
|
+
const picked = options.find((option) => option.id === this.value);
|
|
674
|
+
return html`<textarea
|
|
675
|
+
part="control"
|
|
676
|
+
class="control"
|
|
677
|
+
data-verdict=${ifDefined(common.verdict ?? undefined)}
|
|
678
|
+
rows="1"
|
|
679
|
+
cols="1"
|
|
680
|
+
lang=${ifDefined(picked?.lang ?? common.lang)}
|
|
681
|
+
spellcheck="false"
|
|
682
|
+
readonly
|
|
683
|
+
aria-label=${common.label}
|
|
684
|
+
aria-invalid=${common.verdict === 'incorrect' ? 'true' : nothing}
|
|
685
|
+
aria-describedby=${ifDefined(common.describedBy)}
|
|
686
|
+
.value=${live(picked?.label ?? '')}
|
|
687
|
+
></textarea>`;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/** Options whose search form contains the typed text's; every option while nothing is typed. */
|
|
691
|
+
#filtered(options: readonly Item[]): readonly Item[] {
|
|
692
|
+
const lang = this.contentLang;
|
|
693
|
+
const query = searchForm(this.query ?? '', lang);
|
|
694
|
+
return query === '' ? options : options.filter((o) => searchForm(o.label, lang).includes(query));
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/** Opens the list (announcing how many options it shows) with visual focus on `index` (-1 = none). */
|
|
698
|
+
#open(index: number): void {
|
|
699
|
+
const count = this.#filtered(this.options).length;
|
|
700
|
+
this.expanded = count > 0;
|
|
701
|
+
this.active = this.expanded ? Math.min(index, count - 1) : -1;
|
|
702
|
+
this.announce(this.t('ui.results', { count }));
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/** Hides the list; what the student typed stays. */
|
|
706
|
+
#collapse(): void {
|
|
707
|
+
this.expanded = false;
|
|
708
|
+
this.active = -1;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/** Hides the list and shows the picked option again (leaving the field, picking, a new answer). */
|
|
712
|
+
#close(): void {
|
|
713
|
+
this.query = null;
|
|
714
|
+
this.#collapse();
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Typing filters the list. Text that equals one option (in the search form) answers with it, any other text
|
|
719
|
+
* clears the answer: what the field shows is always what is graded once the student leaves it.
|
|
720
|
+
*/
|
|
721
|
+
#type(text: string): void {
|
|
722
|
+
this.query = text;
|
|
723
|
+
this.#open(-1);
|
|
724
|
+
const lang = this.contentLang;
|
|
725
|
+
const typed = searchForm(text, lang);
|
|
726
|
+
const exact = this.options.filter((o) => typed !== '' && searchForm(o.label, lang) === typed);
|
|
727
|
+
this.updateValue(exact.length === 1 ? (exact[0]?.id ?? '') : '');
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
#pick(item: Item): void {
|
|
731
|
+
this.#close();
|
|
732
|
+
this.updateValue(item.id);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/** Dropdown list: the index of the picked option, -1 when none is. */
|
|
736
|
+
#pickedIndex(): number {
|
|
737
|
+
return this.options.findIndex((option) => option.id === this.value);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/** Dropdown list: opens it (when it has options) with visual focus on `index` (-1 = none). */
|
|
741
|
+
#show(index: number): void {
|
|
742
|
+
this.expanded = this.options.length > 0;
|
|
743
|
+
this.active = this.expanded ? index : -1;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/** Dropdown list: picks the option with visual focus, if one has it, and closes the list. */
|
|
747
|
+
#commit(): void {
|
|
748
|
+
const item = this.options[this.active];
|
|
749
|
+
this.#collapse();
|
|
750
|
+
if (item !== undefined) this.updateValue(item.id);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/** Dropdown list: a key within the type-ahead time of the last typed one. */
|
|
754
|
+
#typing(time: number): boolean {
|
|
755
|
+
return this.#typed !== '' && time - this.#typedAt <= TYPE_AHEAD_MS;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Dropdown list type-ahead, as a native select's: a key within a second of the last one adds to the typed text, and
|
|
760
|
+
* the visual focus goes to the first option from the active one on that starts with it, ignoring case and
|
|
761
|
+
* diacritics in the content language (as the search does); one letter typed again moves on to the next option with
|
|
762
|
+
* that letter. Text no option starts with starts over from the last key. Returns whether an option matched.
|
|
763
|
+
*/
|
|
764
|
+
#typeAhead(key: string, time: number): boolean {
|
|
765
|
+
const lang = this.contentLang;
|
|
766
|
+
const forms = this.options.map((option) => searchForm(option.label, lang));
|
|
767
|
+
const find = (typed: string): number => {
|
|
768
|
+
const chars = [...typed];
|
|
769
|
+
const again = chars.every((ch) => ch === chars[0]);
|
|
770
|
+
const prefix = typedForm(again ? (chars[0] ?? '') : typed, lang);
|
|
771
|
+
const from = again ? this.active + 1 : Math.max(this.active, 0);
|
|
772
|
+
for (let i = 0; i < forms.length; i++) {
|
|
773
|
+
const index = (from + i) % forms.length;
|
|
774
|
+
if (prefix !== '' && forms[index]?.startsWith(prefix)) return index;
|
|
775
|
+
}
|
|
776
|
+
return -1;
|
|
777
|
+
};
|
|
778
|
+
const before = this.#typing(time) ? this.#typed : '';
|
|
779
|
+
let typed = before + key;
|
|
780
|
+
let index = find(typed);
|
|
781
|
+
if (index < 0 && before !== '') {
|
|
782
|
+
typed = key;
|
|
783
|
+
index = find(typed);
|
|
784
|
+
}
|
|
785
|
+
this.#typed = index < 0 ? '' : typed;
|
|
786
|
+
this.#typedAt = time;
|
|
787
|
+
if (index >= 0) this.active = index;
|
|
788
|
+
return index >= 0;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Dropdown list keys (the APG select-only combobox): closed, Enter, Space and the arrows open it (Home and End on
|
|
793
|
+
* the first and the last option); open, the arrows, Home, End, PageUp and PageDown move, Enter, Space and
|
|
794
|
+
* Alt+ArrowUp pick and close, Escape closes, Tab picks and moves on. Typing opens it and jumps (type-ahead); Space
|
|
795
|
+
* goes on typing while the typed text and a space start an option ("the p...").
|
|
796
|
+
*/
|
|
797
|
+
#listKey = (event: KeyboardEvent): void => {
|
|
798
|
+
if (event.ctrlKey || event.metaKey || event.isComposing) return;
|
|
799
|
+
const { key } = event;
|
|
800
|
+
const last = this.options.length - 1;
|
|
801
|
+
const open = this.expanded;
|
|
802
|
+
const handled = (): void => event.preventDefault();
|
|
803
|
+
if (key === 'Tab') {
|
|
804
|
+
if (open) this.#commit();
|
|
805
|
+
return;
|
|
806
|
+
}
|
|
807
|
+
if (key === 'Escape') {
|
|
808
|
+
if (!open) return;
|
|
809
|
+
handled();
|
|
810
|
+
event.stopPropagation();
|
|
811
|
+
this.#collapse();
|
|
812
|
+
return;
|
|
813
|
+
}
|
|
814
|
+
if (key === 'ArrowDown' || key === 'ArrowUp') {
|
|
815
|
+
handled();
|
|
816
|
+
if (!open) this.#show(this.#pickedIndex());
|
|
817
|
+
else if (event.altKey) {
|
|
818
|
+
if (key === 'ArrowUp') this.#commit();
|
|
819
|
+
} else if (key === 'ArrowDown') this.active = this.active < 0 ? 0 : Math.min(this.active + 1, last);
|
|
820
|
+
else this.active = this.active < 0 ? last : Math.max(this.active - 1, 0);
|
|
821
|
+
return;
|
|
822
|
+
}
|
|
823
|
+
if (key === 'Home' || key === 'End') {
|
|
824
|
+
handled();
|
|
825
|
+
this.#show(key === 'Home' ? 0 : last);
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
if (key === 'PageUp' || key === 'PageDown') {
|
|
829
|
+
if (!open) return;
|
|
830
|
+
handled();
|
|
831
|
+
this.active = key === 'PageDown' ? Math.min(this.active + PAGE, last) : Math.max(this.active - PAGE, 0);
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
if (key === ' ' && open && this.#typing(event.timeStamp) && this.#typeAhead(key, event.timeStamp)) {
|
|
835
|
+
handled();
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
if (key === 'Enter' || key === ' ') {
|
|
839
|
+
handled();
|
|
840
|
+
if (open) this.#commit();
|
|
841
|
+
else this.#show(this.#pickedIndex());
|
|
842
|
+
return;
|
|
843
|
+
}
|
|
844
|
+
if ([...key].length === 1 && !event.altKey) {
|
|
845
|
+
handled();
|
|
846
|
+
if (!open) this.#show(this.#pickedIndex());
|
|
847
|
+
this.#typeAhead(key, event.timeStamp);
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
#key(event: KeyboardEvent): void {
|
|
852
|
+
const list = this.#filtered(this.options);
|
|
853
|
+
const last = list.length - 1;
|
|
854
|
+
const handled = (): void => event.preventDefault();
|
|
855
|
+
switch (event.key) {
|
|
856
|
+
case 'ArrowDown':
|
|
857
|
+
handled();
|
|
858
|
+
if (event.altKey) this.#open(-1);
|
|
859
|
+
else if (!this.expanded) this.#open(0);
|
|
860
|
+
else this.active = Math.min(this.active + 1, last);
|
|
861
|
+
break;
|
|
862
|
+
case 'ArrowUp':
|
|
863
|
+
handled();
|
|
864
|
+
if (event.altKey) this.#collapse();
|
|
865
|
+
else if (!this.expanded) this.#open(last);
|
|
866
|
+
else this.active = Math.max(this.active - 1, 0);
|
|
867
|
+
break;
|
|
868
|
+
case 'Home':
|
|
869
|
+
case 'End':
|
|
870
|
+
// With visual focus in the list they move it there; otherwise they move the caret as usual.
|
|
871
|
+
if (!this.expanded || this.active < 0) break;
|
|
872
|
+
handled();
|
|
873
|
+
this.active = event.key === 'Home' ? 0 : last;
|
|
874
|
+
break;
|
|
875
|
+
case 'Enter': {
|
|
876
|
+
const item = this.expanded ? list[this.active] : undefined;
|
|
877
|
+
if (item !== undefined) {
|
|
878
|
+
handled();
|
|
879
|
+
this.#pick(item);
|
|
880
|
+
} else if (this.expanded) {
|
|
881
|
+
handled();
|
|
882
|
+
this.#collapse();
|
|
883
|
+
}
|
|
884
|
+
break;
|
|
885
|
+
}
|
|
886
|
+
case 'Escape':
|
|
887
|
+
if (this.expanded) {
|
|
888
|
+
handled();
|
|
889
|
+
event.stopPropagation();
|
|
890
|
+
this.#collapse();
|
|
891
|
+
} else if ((this.query ?? '') !== '' || this.value !== '') {
|
|
892
|
+
// Closed: Escape clears the field and the answer (the APG's optional behaviour).
|
|
893
|
+
handled();
|
|
894
|
+
this.query = '';
|
|
895
|
+
this.updateValue('');
|
|
896
|
+
}
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export const selectElement: ElementRegistration = {
|
|
903
|
+
manifest: selectManifest,
|
|
904
|
+
element: SelectElement,
|
|
905
|
+
messages: selectUiMessages,
|
|
906
|
+
};
|