@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,741 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Answers,
|
|
3
|
+
ComponentManifest,
|
|
4
|
+
GroupVerdict,
|
|
5
|
+
MessageCatalog,
|
|
6
|
+
SlotVerdict,
|
|
7
|
+
Units,
|
|
8
|
+
} from '@astl/core';
|
|
9
|
+
import { AstlElement, type ElementRegistration, verdictIcon } from '@astl/player';
|
|
10
|
+
import { arrowDelta, RovingFocus } from '@astl/player/interaction';
|
|
11
|
+
import {
|
|
12
|
+
type CSSResultGroup,
|
|
13
|
+
css,
|
|
14
|
+
html,
|
|
15
|
+
LitElement,
|
|
16
|
+
nothing,
|
|
17
|
+
type PropertyDeclarations,
|
|
18
|
+
type TemplateResult,
|
|
19
|
+
} from 'lit';
|
|
20
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
21
|
+
import { live } from 'lit/directives/live.js';
|
|
22
|
+
import { blockStyles } from '../block-styles.js';
|
|
23
|
+
import { type Direction, squaresOf } from './grid.js';
|
|
24
|
+
import { crosswordManifest } from './manifest.js';
|
|
25
|
+
import { crosswordUiMessages } from './ui-messages.js';
|
|
26
|
+
|
|
27
|
+
/** A word of the view: its clue (the light-DOM child) and its squares, by index (row x columns + column). */
|
|
28
|
+
interface Word {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly el: HTMLElement;
|
|
31
|
+
readonly number: number;
|
|
32
|
+
readonly direction: Direction;
|
|
33
|
+
readonly squares: readonly number[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Layout {
|
|
37
|
+
readonly rows: number;
|
|
38
|
+
readonly columns: number;
|
|
39
|
+
/** In clue order: across, then down, by number. */
|
|
40
|
+
readonly words: readonly Word[];
|
|
41
|
+
/** The slot id of each open square. */
|
|
42
|
+
readonly slots: ReadonlyMap<number, string>;
|
|
43
|
+
readonly through: ReadonlyMap<number, Partial<Record<Direction, Word>>>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const LETTER = /^\p{L}$/u;
|
|
47
|
+
const other = (d: Direction): Direction => (d === 'across' ? 'down' : 'across');
|
|
48
|
+
/** What a clue says: its text, with the alt text of its pictures. */
|
|
49
|
+
const said = (el: Element): string =>
|
|
50
|
+
[el.textContent ?? '', ...[...el.querySelectorAll('img')].map((img) => img.alt)]
|
|
51
|
+
.join(' ')
|
|
52
|
+
.replace(/\s+/g, ' ')
|
|
53
|
+
.trim();
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* `<astl-crossword>`: a grid of squares, every open one an `<input>` (one `letter` slot, the view's `cells` in reading
|
|
57
|
+
* order), and the clues, the light-DOM `<astl-crossword-word>` children (slotted manually, never moved).
|
|
58
|
+
* - One tab stop in the grid (`RovingFocus`): a letter moves along the active word, the arrows to the nearest open
|
|
59
|
+
* square (first turning where two words cross), Space turns, Tab and Enter go to the next clue (Shift back) and Tab
|
|
60
|
+
* leaves at the ends. The clue list is one more tab stop; pressing a clue goes to its first empty square.
|
|
61
|
+
* - The current clue shows above the grid and goes to the player's live region when it changes.
|
|
62
|
+
* - Verdicts: per word (`feedback.groups`, scoring `word`), per square (`letter`), or for the grid (`whole`).
|
|
63
|
+
*/
|
|
64
|
+
export class CrosswordElement extends AstlElement {
|
|
65
|
+
static override manifest: ComponentManifest = crosswordManifest;
|
|
66
|
+
static override messages: readonly MessageCatalog[] = crosswordUiMessages;
|
|
67
|
+
static override shadowRootOptions: ShadowRootInit = {
|
|
68
|
+
...LitElement.shadowRootOptions,
|
|
69
|
+
slotAssignment: 'manual',
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
static override properties: PropertyDeclarations = {
|
|
73
|
+
letters: { state: true },
|
|
74
|
+
direction: { state: true },
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
static override styles: CSSResultGroup = [
|
|
78
|
+
// Squares of 32 to 44 px share the room of the field (a container); a grid wider than that scrolls in it, with a
|
|
79
|
+
// cue (below). The floor is not the WCAG 2.5.8 minimum (24 px: squares touch, so its spacing exception cannot apply
|
|
80
|
+
// and each square must reach it itself) but what a square must hold: its number at the smallest text size (14 px,
|
|
81
|
+
// as all text young students read) above its letter, at least 14 px too, in a text entry at least 24 px tall. At
|
|
82
|
+
// 32 px both fit, the letter on its own line under the number's, so they never meet; the letter grows with the
|
|
83
|
+
// square and keeps that line. A 20-column grid now fits a 760 px player; a 30-column one scrolls there. The field
|
|
84
|
+
// clips, so the grid's padding (the edge) is as wide as a focus ring reaches past a square, plus a border: squares
|
|
85
|
+
// share borders, so the last column and row hang a border past their tracks. A square scrolled into view keeps
|
|
86
|
+
// the same room by its input's scroll margin (the input sits a border inside its square, which draws the ring).
|
|
87
|
+
css`
|
|
88
|
+
.board {
|
|
89
|
+
--astl-cw-edge: calc(var(--astl-focus-width) + var(--astl-focus-offset) + var(--astl-outline-width));
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
align-items: flex-start;
|
|
93
|
+
gap: var(--astl-space-4);
|
|
94
|
+
}
|
|
95
|
+
.field {
|
|
96
|
+
flex: 0 1 calc(var(--astl-cw-columns) * 2.75rem + 2 * var(--astl-cw-edge));
|
|
97
|
+
min-inline-size: 0;
|
|
98
|
+
max-inline-size: 100%;
|
|
99
|
+
container-type: inline-size;
|
|
100
|
+
}
|
|
101
|
+
.grid {
|
|
102
|
+
--astl-cw-cell: clamp(2rem, (100cqi - 2 * var(--astl-cw-edge)) / var(--astl-cw-columns), 2.75rem);
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-columns: repeat(var(--astl-cw-columns), var(--astl-cw-cell));
|
|
105
|
+
grid-auto-rows: var(--astl-cw-cell);
|
|
106
|
+
inline-size: max-content;
|
|
107
|
+
padding: var(--astl-cw-edge);
|
|
108
|
+
}
|
|
109
|
+
.cell {
|
|
110
|
+
position: relative;
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
margin-block-end: calc(-1 * var(--astl-outline-width));
|
|
113
|
+
margin-inline-end: calc(-1 * var(--astl-outline-width));
|
|
114
|
+
border: var(--astl-outline-width) solid var(--astl-outline);
|
|
115
|
+
background: var(--astl-surface);
|
|
116
|
+
}
|
|
117
|
+
.cell[data-word] {
|
|
118
|
+
background: var(--astl-selected-soft);
|
|
119
|
+
box-shadow: inset 0 0 0 calc(var(--astl-selected-bar) / 2) var(--astl-selected);
|
|
120
|
+
}
|
|
121
|
+
.cell[data-verdict] {
|
|
122
|
+
z-index: 1;
|
|
123
|
+
}
|
|
124
|
+
.cell:focus-within {
|
|
125
|
+
z-index: 2;
|
|
126
|
+
}
|
|
127
|
+
.cell > input {
|
|
128
|
+
box-sizing: border-box;
|
|
129
|
+
inline-size: 100%;
|
|
130
|
+
block-size: 100%;
|
|
131
|
+
margin: 0;
|
|
132
|
+
padding: calc(var(--astl-size-small) + 1px) 0 0;
|
|
133
|
+
border: 0;
|
|
134
|
+
background: none;
|
|
135
|
+
color: var(--astl-ink);
|
|
136
|
+
font: inherit;
|
|
137
|
+
font-size: min(var(--astl-cw-cell) * 0.5, var(--astl-cw-cell) - var(--astl-size-small) - 4px);
|
|
138
|
+
font-weight: 600;
|
|
139
|
+
line-height: 1;
|
|
140
|
+
text-align: center;
|
|
141
|
+
caret-color: transparent;
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
scroll-margin: var(--astl-cw-edge);
|
|
144
|
+
}
|
|
145
|
+
.cell > input::selection {
|
|
146
|
+
background: none;
|
|
147
|
+
}
|
|
148
|
+
.number,
|
|
149
|
+
.cell > .astl-verdict {
|
|
150
|
+
position: absolute;
|
|
151
|
+
line-height: 1;
|
|
152
|
+
pointer-events: none;
|
|
153
|
+
}
|
|
154
|
+
.number {
|
|
155
|
+
inset-block-start: 1px;
|
|
156
|
+
inset-inline-start: 2px;
|
|
157
|
+
color: var(--astl-ink-muted);
|
|
158
|
+
font-size: var(--astl-size-small);
|
|
159
|
+
}
|
|
160
|
+
.cell > .astl-verdict {
|
|
161
|
+
inset-block-start: 1px;
|
|
162
|
+
inset-inline-end: 1px;
|
|
163
|
+
font-size: min(0.875rem, var(--astl-cw-cell) * 0.4);
|
|
164
|
+
}
|
|
165
|
+
`,
|
|
166
|
+
// A grid wider than its field scrolls sideways, and shows it: a shadow at each edge that has more to scroll to
|
|
167
|
+
// (scroll shadows: covers that move with the content over shadows that stay with the field).
|
|
168
|
+
css`
|
|
169
|
+
.field {
|
|
170
|
+
overflow-x: auto;
|
|
171
|
+
background:
|
|
172
|
+
linear-gradient(to right, var(--astl-surface) 40%, transparent) left / 2rem 100% no-repeat local,
|
|
173
|
+
linear-gradient(to left, var(--astl-surface) 40%, transparent) right / 2rem 100% no-repeat local,
|
|
174
|
+
radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--astl-ink) 35%, transparent), transparent)
|
|
175
|
+
left / 0.75rem 100% no-repeat scroll,
|
|
176
|
+
radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--astl-ink) 35%, transparent), transparent)
|
|
177
|
+
right / 0.75rem 100% no-repeat scroll;
|
|
178
|
+
scrollbar-color: var(--astl-outline) transparent;
|
|
179
|
+
}
|
|
180
|
+
`,
|
|
181
|
+
// The current clue sits above the grid; in the list the current clue is marked like a picked item (a bar and a
|
|
182
|
+
// weight where the theme has them, never colour alone), the crossing one with a quiet border.
|
|
183
|
+
css`
|
|
184
|
+
.current {
|
|
185
|
+
margin-block: 0 var(--astl-space-3);
|
|
186
|
+
padding-block: var(--astl-space-2);
|
|
187
|
+
padding-inline: var(--astl-space-3);
|
|
188
|
+
border-inline-start: var(--astl-focus-width) solid var(--astl-selected);
|
|
189
|
+
border-radius: var(--astl-radius-m);
|
|
190
|
+
background: var(--astl-selected-soft);
|
|
191
|
+
font-weight: 600;
|
|
192
|
+
}
|
|
193
|
+
.clues {
|
|
194
|
+
flex: 1 1 16rem;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
gap: var(--astl-space-2);
|
|
198
|
+
}
|
|
199
|
+
.title {
|
|
200
|
+
margin: 0;
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
}
|
|
203
|
+
ol {
|
|
204
|
+
display: flex;
|
|
205
|
+
flex-direction: column;
|
|
206
|
+
gap: var(--astl-space-1);
|
|
207
|
+
margin: 0;
|
|
208
|
+
padding: 0;
|
|
209
|
+
list-style: none;
|
|
210
|
+
}
|
|
211
|
+
.entry {
|
|
212
|
+
position: relative;
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-wrap: wrap;
|
|
215
|
+
align-items: center;
|
|
216
|
+
border: var(--astl-outline-width) solid transparent;
|
|
217
|
+
border-radius: var(--astl-radius-m);
|
|
218
|
+
}
|
|
219
|
+
.entry[data-current] {
|
|
220
|
+
border-color: var(--astl-selected);
|
|
221
|
+
background: var(--astl-selected-soft);
|
|
222
|
+
font-weight: var(--astl-selected-weight);
|
|
223
|
+
}
|
|
224
|
+
.entry[data-current]::before {
|
|
225
|
+
content: '';
|
|
226
|
+
position: absolute;
|
|
227
|
+
inset-block: 0;
|
|
228
|
+
inset-inline-start: 0;
|
|
229
|
+
inline-size: var(--astl-selected-bar);
|
|
230
|
+
background: var(--astl-selected);
|
|
231
|
+
}
|
|
232
|
+
.entry[data-crossing] {
|
|
233
|
+
border-color: var(--astl-outline);
|
|
234
|
+
}
|
|
235
|
+
.entry > button {
|
|
236
|
+
flex: 1 1 12rem;
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: baseline;
|
|
239
|
+
gap: var(--astl-space-2);
|
|
240
|
+
min-block-size: var(--astl-target-min);
|
|
241
|
+
margin: 0;
|
|
242
|
+
padding-block: var(--astl-space-1);
|
|
243
|
+
padding-inline: var(--astl-space-3);
|
|
244
|
+
border: 0;
|
|
245
|
+
background: none;
|
|
246
|
+
color: inherit;
|
|
247
|
+
font: inherit;
|
|
248
|
+
text-align: start;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
}
|
|
251
|
+
.entry .num {
|
|
252
|
+
flex: none;
|
|
253
|
+
min-inline-size: 1.5em;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
}
|
|
256
|
+
.entry .text {
|
|
257
|
+
min-inline-size: 0;
|
|
258
|
+
overflow-wrap: anywhere;
|
|
259
|
+
hyphens: auto;
|
|
260
|
+
}
|
|
261
|
+
.entry .length {
|
|
262
|
+
color: var(--astl-ink-muted);
|
|
263
|
+
white-space: nowrap;
|
|
264
|
+
}
|
|
265
|
+
.entry > .astl-verdict {
|
|
266
|
+
padding-inline-end: var(--astl-space-3);
|
|
267
|
+
}
|
|
268
|
+
.entry > .astl-solution {
|
|
269
|
+
flex-basis: 100%;
|
|
270
|
+
padding-inline: var(--astl-space-3);
|
|
271
|
+
padding-block-end: var(--astl-space-2);
|
|
272
|
+
}
|
|
273
|
+
.group-verdict {
|
|
274
|
+
margin-block: var(--astl-space-3) 0;
|
|
275
|
+
}
|
|
276
|
+
`,
|
|
277
|
+
blockStyles,
|
|
278
|
+
];
|
|
279
|
+
|
|
280
|
+
/** Slot id to its letter. */
|
|
281
|
+
declare protected letters: ReadonlyMap<string, string>;
|
|
282
|
+
/** The direction of the active word where two words cross. */
|
|
283
|
+
declare protected direction: Direction;
|
|
284
|
+
#layout: Layout | null = null;
|
|
285
|
+
/** The active word announced last, so moving inside it says nothing. */
|
|
286
|
+
#said: string | null = null;
|
|
287
|
+
/** A press on the square that already had the focus turns the direction. */
|
|
288
|
+
#again = false;
|
|
289
|
+
readonly #grid: RovingFocus;
|
|
290
|
+
readonly #list: RovingFocus;
|
|
291
|
+
|
|
292
|
+
constructor() {
|
|
293
|
+
super();
|
|
294
|
+
this.letters = new Map();
|
|
295
|
+
this.direction = 'across';
|
|
296
|
+
const element = this;
|
|
297
|
+
this.#grid = new RovingFocus(this, {
|
|
298
|
+
count: () => this.#rows * this.#columns,
|
|
299
|
+
item: (i) => this.renderRoot.querySelector<HTMLElement>(`input[data-cell="${i}"]`),
|
|
300
|
+
axis: 'grid',
|
|
301
|
+
get columns() {
|
|
302
|
+
return element.#columns;
|
|
303
|
+
},
|
|
304
|
+
});
|
|
305
|
+
this.#list = new RovingFocus(this, {
|
|
306
|
+
count: () => this.#words.length,
|
|
307
|
+
item: (i) => this.renderRoot.querySelector<HTMLElement>(`button[data-index="${i}"]`),
|
|
308
|
+
axis: 'block',
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
get slotIds(): readonly string[] {
|
|
313
|
+
return [...this.#layoutNow.slots.values()];
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
get groupIds(): readonly string[] {
|
|
317
|
+
return this.#words.map((w) => w.id);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
getAnswers(): Answers {
|
|
321
|
+
return Object.fromEntries(this.letters);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** One letter per slot, in capitals; anything else is not shown, so the slot stays empty. */
|
|
325
|
+
setAnswers(answers: Answers): void {
|
|
326
|
+
const next = new Map(this.letters);
|
|
327
|
+
for (const id of this.slotIds) {
|
|
328
|
+
const value = answers[id];
|
|
329
|
+
if (value === undefined) continue;
|
|
330
|
+
next.delete(id);
|
|
331
|
+
const letter = this.#upper(value.trim().normalize('NFC'));
|
|
332
|
+
if (LETTER.test(letter)) next.set(id, letter);
|
|
333
|
+
}
|
|
334
|
+
this.letters = next;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/** One unit per word, answered when every square of it holds a letter. */
|
|
338
|
+
units(): Units {
|
|
339
|
+
const words = this.#words;
|
|
340
|
+
const full = words.filter((w) => w.squares.every((sq) => this.letters.has(this.#slot(sq))));
|
|
341
|
+
return { answered: full.length, total: words.length };
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
protected override willUpdate(): void {
|
|
345
|
+
// The view is read again once per render (a view is immutable, so this is cheap insurance, not a cache miss).
|
|
346
|
+
this.#layout = null;
|
|
347
|
+
// The tab stop starts on the first square of the first clue.
|
|
348
|
+
const first = this.#words[0];
|
|
349
|
+
if (first !== undefined && !this.#layoutNow.slots.has(this.#grid.active)) {
|
|
350
|
+
this.#grid.focus(first.squares[0] ?? 0);
|
|
351
|
+
this.direction = first.direction;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
protected override updated(): void {
|
|
356
|
+
// Through the CSSOM, which a strict Content Security Policy allows (an inline style attribute it blocks).
|
|
357
|
+
this.renderRoot
|
|
358
|
+
.querySelector<HTMLElement>('.board')
|
|
359
|
+
?.style.setProperty('--astl-cw-columns', `${this.#columns}`);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
protected override render(): TemplateResult {
|
|
363
|
+
const ui = this.uiLanguage;
|
|
364
|
+
const { rows, columns, words } = this.#layoutNow;
|
|
365
|
+
const word = this.#activeWord;
|
|
366
|
+
const crossing = this.#crossing;
|
|
367
|
+
return html`<fieldset part="crossword">
|
|
368
|
+
<legend part="prompt">
|
|
369
|
+
<slot data-tag="astl-prompt"></slot>
|
|
370
|
+
<span class="hint" lang=${ui.lang} dir=${ui.dir}>${this.t('ui.hint')}</span>
|
|
371
|
+
</legend>
|
|
372
|
+
<p class="current" part="current" lang=${ui.lang} dir=${ui.dir}>${word === null ? nothing : this.#clueText(word)}</p>
|
|
373
|
+
<div class="board">
|
|
374
|
+
<div class="field">
|
|
375
|
+
<div
|
|
376
|
+
class="grid"
|
|
377
|
+
part="grid"
|
|
378
|
+
role="group"
|
|
379
|
+
aria-label=${this.t('ui.grid', { rows, columns })}
|
|
380
|
+
aria-describedby="instructions"
|
|
381
|
+
@keydown=${this.#keydown}
|
|
382
|
+
@input=${this.#input}
|
|
383
|
+
@focusin=${this.#focusin}
|
|
384
|
+
@pointerdown=${this.#pointerdown}
|
|
385
|
+
@click=${this.#click}
|
|
386
|
+
>
|
|
387
|
+
${Array.from({ length: rows * columns }, (_, i) => this.#renderSquare(i, word))}
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
<div class="clues" part="clues" role="group" aria-label=${this.t('ui.clues')} lang=${ui.lang} dir=${ui.dir}>
|
|
391
|
+
${(['across', 'down'] as const).map((d) => {
|
|
392
|
+
const list = words.filter((w) => w.direction === d);
|
|
393
|
+
return list.length === 0
|
|
394
|
+
? nothing
|
|
395
|
+
: html`<p class="title" id="title-${d}">${this.t(`ui.${d}`)}</p>
|
|
396
|
+
<ol role="list" aria-labelledby="title-${d}">
|
|
397
|
+
${list.map((w) => this.#renderClue(w, w === word, w === crossing))}
|
|
398
|
+
</ol>`;
|
|
399
|
+
})}
|
|
400
|
+
</div>
|
|
401
|
+
</div>
|
|
402
|
+
<span class="astl-vh" id="instructions" lang=${ui.lang} dir=${ui.dir}>${this.t('ui.instructions')}</span>
|
|
403
|
+
${this.renderGroupVerdict()}
|
|
404
|
+
</fieldset>`;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
#renderSquare(i: number, active: Word | null): TemplateResult {
|
|
408
|
+
const slot = this.#layoutNow.slots.get(i);
|
|
409
|
+
if (slot === undefined) return html`<span aria-hidden="true"></span>`;
|
|
410
|
+
const ways = this.#layoutNow.through.get(i) ?? {};
|
|
411
|
+
const word = ways[this.direction] ?? ways[other(this.direction)];
|
|
412
|
+
const start = [ways.across, ways.down].find((w) => w?.squares[0] === i);
|
|
413
|
+
const verdict = this.#squareVerdict(i);
|
|
414
|
+
const name = word === undefined ? '' : this.#squareName(word, i);
|
|
415
|
+
return html`<span
|
|
416
|
+
class="cell astl-box astl-ring"
|
|
417
|
+
part="cell"
|
|
418
|
+
data-verdict=${ifDefined(verdict ?? undefined)}
|
|
419
|
+
?data-word=${active?.squares.includes(i) ?? false}
|
|
420
|
+
>
|
|
421
|
+
${start === undefined ? nothing : html`<span class="number" part="number" aria-hidden="true">${start.number}</span>`}
|
|
422
|
+
<input
|
|
423
|
+
type="text"
|
|
424
|
+
data-cell=${i}
|
|
425
|
+
tabindex=${this.#grid.tabIndex(i)}
|
|
426
|
+
lang=${ifDefined(this.contentLang || undefined)}
|
|
427
|
+
autocomplete="off"
|
|
428
|
+
autocapitalize="characters"
|
|
429
|
+
autocorrect="off"
|
|
430
|
+
spellcheck="false"
|
|
431
|
+
enterkeyhint="next"
|
|
432
|
+
aria-label=${name}
|
|
433
|
+
aria-invalid=${verdict === 'incorrect' ? 'true' : nothing}
|
|
434
|
+
aria-describedby=${ifDefined(verdict === null ? undefined : `verdict-${i}`)}
|
|
435
|
+
?readonly=${this.disabled}
|
|
436
|
+
.value=${live(this.letters.get(slot) ?? '')}
|
|
437
|
+
/>
|
|
438
|
+
${verdict === null ? nothing : this.renderVerdict(verdict, { hiddenWord: true, id: `verdict-${i}` })}
|
|
439
|
+
</span>`;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
#renderClue(word: Word, current: boolean, crossing: boolean): TemplateResult {
|
|
443
|
+
const ui = this.uiLanguage;
|
|
444
|
+
const index = this.#words.indexOf(word);
|
|
445
|
+
const verdict = this.#wordVerdict(word);
|
|
446
|
+
const solution = this.#wordSolution(word);
|
|
447
|
+
const refs = [
|
|
448
|
+
verdict === null ? '' : `clue-verdict-${index}`,
|
|
449
|
+
solution === null ? '' : `solution-${index}`,
|
|
450
|
+
];
|
|
451
|
+
return html`<li
|
|
452
|
+
class="entry astl-box astl-ring"
|
|
453
|
+
part="clue"
|
|
454
|
+
id=${word.id}
|
|
455
|
+
data-verdict=${ifDefined(verdict ?? undefined)}
|
|
456
|
+
?data-current=${current}
|
|
457
|
+
?data-crossing=${crossing}
|
|
458
|
+
>
|
|
459
|
+
<button
|
|
460
|
+
type="button"
|
|
461
|
+
data-index=${index}
|
|
462
|
+
tabindex=${this.#list.tabIndex(index)}
|
|
463
|
+
aria-current=${current ? 'true' : nothing}
|
|
464
|
+
aria-describedby=${refs.filter(Boolean).join(' ') || nothing}
|
|
465
|
+
@click=${() => this.#goTo(word)}
|
|
466
|
+
@keydown=${(event: KeyboardEvent) => this.#list.keydown(event)}
|
|
467
|
+
>
|
|
468
|
+
<span class="num">${word.number}</span>
|
|
469
|
+
<span class="text"
|
|
470
|
+
><span lang=${ifDefined(this.contentLang || undefined)}><slot data-word=${word.id}></slot></span>
|
|
471
|
+
<span class="length">${this.t('ui.length', { length: word.squares.length })}</span></span
|
|
472
|
+
>
|
|
473
|
+
${crossing ? html`<span class="astl-vh">, ${this.t('ui.crossing')}</span>` : nothing}
|
|
474
|
+
</button>
|
|
475
|
+
${verdict === null ? nothing : this.renderVerdict(verdict, { hiddenWord: true, id: `clue-verdict-${index}` })}
|
|
476
|
+
${
|
|
477
|
+
solution === null
|
|
478
|
+
? nothing
|
|
479
|
+
: html`<p class="astl-solution" part="solution" id="solution-${index}" lang=${ui.lang} dir=${ui.dir}>
|
|
480
|
+
${verdictIcon('correct')}<span class="astl-solution-label">${this.t('ui.solution')}</span>
|
|
481
|
+
<bdi lang=${ifDefined(this.contentLang || undefined)}>${solution}</bdi>
|
|
482
|
+
</p>`
|
|
483
|
+
}
|
|
484
|
+
</li>`;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// The layout
|
|
488
|
+
|
|
489
|
+
get #rows(): number {
|
|
490
|
+
return this.numberAttribute('rows') ?? 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
get #columns(): number {
|
|
494
|
+
return this.numberAttribute('columns') ?? 0;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
get #words(): readonly Word[] {
|
|
498
|
+
return this.#layoutNow.words;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** Read from the view, once between two renders: the words and where they lie, the slot of each open square. */
|
|
502
|
+
get #layoutNow(): Layout {
|
|
503
|
+
if (this.#layout !== null) return this.#layout;
|
|
504
|
+
const rows = this.#rows;
|
|
505
|
+
const columns = this.#columns;
|
|
506
|
+
const words = this.childElements('astl-crossword-word').map((el): Word => {
|
|
507
|
+
const placed = {
|
|
508
|
+
row: Number(el.getAttribute('row')),
|
|
509
|
+
column: Number(el.getAttribute('column')),
|
|
510
|
+
direction: el.getAttribute('direction') === 'down' ? ('down' as const) : ('across' as const),
|
|
511
|
+
length: Number(el.getAttribute('length')),
|
|
512
|
+
};
|
|
513
|
+
const squares = squaresOf(placed)
|
|
514
|
+
.filter(([r, c]) => r >= 0 && r < rows && c >= 0 && c < columns)
|
|
515
|
+
.map(([r, c]) => r * columns + c);
|
|
516
|
+
return {
|
|
517
|
+
id: el.id,
|
|
518
|
+
el,
|
|
519
|
+
number: Number(el.getAttribute('number')),
|
|
520
|
+
direction: placed.direction,
|
|
521
|
+
squares,
|
|
522
|
+
};
|
|
523
|
+
});
|
|
524
|
+
const through = new Map<number, Partial<Record<Direction, Word>>>();
|
|
525
|
+
for (const w of words)
|
|
526
|
+
for (const sq of w.squares) through.set(sq, { ...through.get(sq), [w.direction]: w });
|
|
527
|
+
const ids = (this.getAttribute('cells') ?? '').split(' ').filter(Boolean);
|
|
528
|
+
const open = [...through.keys()].sort((a, b) => a - b);
|
|
529
|
+
const slots = new Map(open.flatMap((sq, k) => (ids[k] === undefined ? [] : [[sq, ids[k]] as const])));
|
|
530
|
+
this.#layout = { rows, columns, words, slots, through };
|
|
531
|
+
return this.#layout;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
#slot(square: number): string {
|
|
535
|
+
return this.#layoutNow.slots.get(square) ?? '';
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/** The word the active square belongs to in the active direction, else its other one. */
|
|
539
|
+
get #activeWord(): Word | null {
|
|
540
|
+
const ways = this.#layoutNow.through.get(this.#grid.active) ?? {};
|
|
541
|
+
return ways[this.direction] ?? ways[other(this.direction)] ?? null;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/** The other word through the active square, if two cross there. */
|
|
545
|
+
get #crossing(): Word | null {
|
|
546
|
+
const ways = this.#layoutNow.through.get(this.#grid.active) ?? {};
|
|
547
|
+
const word = this.#activeWord;
|
|
548
|
+
return word === null ? null : (ways[other(word.direction)] ?? null);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
#clueText(word: Word): string {
|
|
552
|
+
const { number, direction } = word;
|
|
553
|
+
return this.t('ui.current', { number, direction, length: word.squares.length, clue: said(word.el) });
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
#squareName(word: Word, square: number): string {
|
|
557
|
+
const { number, direction, squares } = word;
|
|
558
|
+
return this.t('ui.cell', {
|
|
559
|
+
number,
|
|
560
|
+
direction,
|
|
561
|
+
position: squares.indexOf(square) + 1,
|
|
562
|
+
length: squares.length,
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
#upper(value: string): string {
|
|
567
|
+
try {
|
|
568
|
+
return value.toLocaleUpperCase(this.contentLang || undefined);
|
|
569
|
+
} catch {
|
|
570
|
+
return value.toUpperCase();
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// Verdicts and solutions
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* A word's verdict after a check, until the next edit: its group's (scoring `word`); else, under the element's
|
|
578
|
+
* verdict, "no answer" for a word without a letter and, with square verdicts (`letter`), right when every square is.
|
|
579
|
+
*/
|
|
580
|
+
#wordVerdict(word: Word): GroupVerdict | null {
|
|
581
|
+
const feedback = this.feedback;
|
|
582
|
+
if (feedback === null) return null;
|
|
583
|
+
const own = feedback.groups?.[word.id];
|
|
584
|
+
if (own !== undefined) return own;
|
|
585
|
+
if (feedback.group === null) return null;
|
|
586
|
+
if (word.squares.every((sq) => !this.letters.has(this.#slot(sq)))) return 'empty';
|
|
587
|
+
if (Object.keys(feedback.slots).length === 0) return null;
|
|
588
|
+
return word.squares.every((sq) => feedback.slots[this.#slot(sq)] === 'correct') ? 'correct' : 'incorrect';
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* A filled square's own verdict (`letter`); a word's verdict (`word`) shows at its clue only, so a wrong word never
|
|
593
|
+
* marks its right letters, nor a crossing square, wrong.
|
|
594
|
+
*/
|
|
595
|
+
#squareVerdict(square: number): SlotVerdict | null {
|
|
596
|
+
const slot = this.#slot(square);
|
|
597
|
+
if (!this.letters.has(slot)) return null;
|
|
598
|
+
return this.slotVerdict(slot);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/** The correct word when the student's letters differ from it. */
|
|
602
|
+
#wordSolution(word: Word): string | null {
|
|
603
|
+
const solution = this.solution;
|
|
604
|
+
if (solution === null) return null;
|
|
605
|
+
const letters = word.squares.map((sq) => solution[this.#slot(sq)] ?? '');
|
|
606
|
+
if (letters.every((l, k) => l === this.letters.get(this.#slot(word.squares[k] ?? -1)))) return null;
|
|
607
|
+
return letters.join('');
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// Moving and typing
|
|
611
|
+
|
|
612
|
+
/** Makes `square` active, in `direction` when a word runs that way there, and says the clue when it changes. */
|
|
613
|
+
#activate(square: number, direction: Direction = this.direction): void {
|
|
614
|
+
const ways = this.#layoutNow.through.get(square) ?? {};
|
|
615
|
+
this.direction = ways[direction] === undefined ? other(direction) : direction;
|
|
616
|
+
this.#grid.focus(square);
|
|
617
|
+
const word = this.#activeWord;
|
|
618
|
+
if (word !== null && word.id !== this.#said) {
|
|
619
|
+
this.#said = word.id;
|
|
620
|
+
this.announce(this.#clueText(word));
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/** A word's first empty square, else its first (the focus follows when it is in the element). */
|
|
625
|
+
#goTo(word: Word): void {
|
|
626
|
+
const empty = word.squares.find((sq) => !this.letters.has(this.#slot(sq)));
|
|
627
|
+
this.#activate(empty ?? word.squares[0] ?? 0, word.direction);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
/** The square `steps` along the active word from the active one, or null past its ends. */
|
|
631
|
+
#along(steps: number): number | null {
|
|
632
|
+
const squares = this.#activeWord?.squares ?? [];
|
|
633
|
+
return squares[squares.indexOf(this.#grid.active) + steps] ?? null;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
#set(square: number, letter: string): void {
|
|
637
|
+
const slot = this.#slot(square);
|
|
638
|
+
if ((this.letters.get(slot) ?? '') === letter) return;
|
|
639
|
+
const next = new Map(this.letters);
|
|
640
|
+
if (letter === '') next.delete(slot);
|
|
641
|
+
else next.set(slot, letter);
|
|
642
|
+
this.letters = next;
|
|
643
|
+
this.emitChange({ [slot]: letter });
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
#squareOf(event: Event): number | null {
|
|
647
|
+
const cell = (event.target as HTMLElement).dataset.cell;
|
|
648
|
+
return cell === undefined ? null : Number(cell);
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
#focusin(event: FocusEvent): void {
|
|
652
|
+
const square = this.#squareOf(event);
|
|
653
|
+
if (square === null) return;
|
|
654
|
+
(event.target as HTMLInputElement).select();
|
|
655
|
+
if (square !== this.#grid.active || this.#activeWord?.id !== this.#said) this.#activate(square);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
#pointerdown(event: PointerEvent): void {
|
|
659
|
+
const square = this.#squareOf(event);
|
|
660
|
+
this.#again = square === this.#grid.active && this.shadowRoot?.activeElement === event.target;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/** Pressing the active square again turns to the other word there. */
|
|
664
|
+
#click(event: MouseEvent): void {
|
|
665
|
+
const square = this.#squareOf(event);
|
|
666
|
+
if (square === null || !this.#again) return;
|
|
667
|
+
this.#again = false;
|
|
668
|
+
this.#activate(square, other(this.direction));
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/** A letter fills the square and moves on along the word; other characters are ignored; deleting clears it. */
|
|
672
|
+
#input(event: InputEvent): void {
|
|
673
|
+
const square = this.#squareOf(event);
|
|
674
|
+
if (square === null || this.disabled) return;
|
|
675
|
+
const input = event.target as HTMLInputElement;
|
|
676
|
+
if (event.inputType.startsWith('delete')) {
|
|
677
|
+
this.#set(square, '');
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
const typed = [...(event.data ?? input.value).normalize('NFC')].reverse().find((ch) => LETTER.test(ch));
|
|
681
|
+
if (typed !== undefined) this.#set(square, this.#upper(typed));
|
|
682
|
+
input.value = this.letters.get(this.#slot(square)) ?? '';
|
|
683
|
+
const next = typed === undefined ? null : this.#along(1);
|
|
684
|
+
if (next !== null) this.#activate(next, this.#activeWord?.direction);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
#keydown(event: KeyboardEvent): void {
|
|
688
|
+
const square = this.#squareOf(event);
|
|
689
|
+
if (square === null || event.altKey || event.ctrlKey || event.metaKey) return;
|
|
690
|
+
const key = event.key;
|
|
691
|
+
if (key === 'Tab' || key === 'Enter') {
|
|
692
|
+
const word = this.#activeWord;
|
|
693
|
+
const next = this.#words[(word === null ? -1 : this.#words.indexOf(word)) + (event.shiftKey ? -1 : 1)];
|
|
694
|
+
// Tab past the first or the last clue leaves the grid.
|
|
695
|
+
if (next === undefined && key === 'Tab') return;
|
|
696
|
+
event.preventDefault();
|
|
697
|
+
if (next !== undefined) this.#goTo(next);
|
|
698
|
+
} else if (key === ' ') {
|
|
699
|
+
event.preventDefault();
|
|
700
|
+
this.#activate(square, other(this.direction));
|
|
701
|
+
} else if (key === 'Backspace') {
|
|
702
|
+
event.preventDefault();
|
|
703
|
+
if (this.disabled) return;
|
|
704
|
+
const back = this.#along(-1);
|
|
705
|
+
if (this.letters.has(this.#slot(square)) || back === null) this.#set(square, '');
|
|
706
|
+
else {
|
|
707
|
+
this.#set(back, '');
|
|
708
|
+
this.#activate(back, this.#activeWord?.direction);
|
|
709
|
+
}
|
|
710
|
+
} else this.#arrow(event, square);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
/** An arrow: the first press turns where a word runs that way, else it moves to the nearest open square. */
|
|
714
|
+
#arrow(event: KeyboardEvent, square: number): void {
|
|
715
|
+
const across = arrowDelta(event, 'inline', this);
|
|
716
|
+
const down = arrowDelta(event, 'block', this);
|
|
717
|
+
if (across === 0 && down === 0) return;
|
|
718
|
+
event.preventDefault();
|
|
719
|
+
const way: Direction = across === 0 ? 'down' : 'across';
|
|
720
|
+
const ways = this.#layoutNow.through.get(square) ?? {};
|
|
721
|
+
if (way !== this.direction && ways[way] !== undefined) {
|
|
722
|
+
this.#activate(square, way);
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
const { rows, columns, slots } = this.#layoutNow;
|
|
726
|
+
let [r, c] = [Math.floor(square / columns), square % columns];
|
|
727
|
+
for (;;) {
|
|
728
|
+
r += down;
|
|
729
|
+
c += across;
|
|
730
|
+
if (r < 0 || r >= rows || c < 0 || c >= columns) return;
|
|
731
|
+
if (slots.has(r * columns + c)) break;
|
|
732
|
+
}
|
|
733
|
+
this.#activate(r * columns + c, way);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export const crosswordElement: ElementRegistration = {
|
|
738
|
+
manifest: crosswordManifest,
|
|
739
|
+
element: CrosswordElement,
|
|
740
|
+
messages: crosswordUiMessages,
|
|
741
|
+
};
|