From cdcd07f6c98199718f31f8c87b1ed7fbbc1a940e Mon Sep 17 00:00:00 2001 From: btopro Date: Thu, 2 May 2024 14:46:12 -0400 Subject: [PATCH] https://github.com/elmsln/issues/issues/1326 --- elements/app-hax/demo/appstore.json | 1 + elements/cms-hax/demo/sample-store.json | 1 + elements/h-a-x/demo/appstore.json | 1 + elements/hax-body/demo/appstore.json | 1 + elements/hax-body/demo/shoelace.json | 1 + elements/hax-bookmarklet/demo/appstore.json | 1 + .../hax-cloud/demo/dist/dev/appstore.json | 1 + elements/hax-cloud/lib/appstore.json | 1 + .../demo/dist/dev/appstore.json | 1 + .../demo/fake/dev/appstore.json | 1 + elements/multiple-choice/demo/index.html | 27 +- .../multiple-choice/lib/QuestionElement.js | 588 ++++++++++++++++++ .../true-false-question.haxProperties.json | 95 +++ .../lib/true-false-question.js | 188 ++++++ elements/multiple-choice/multiple-choice.js | 556 +---------------- .../multiple-choice/src/multiple-choice.js | 556 +---------------- .../video-player/demo/lecture-player.html | 6 +- elements/video-player/lib/lecture-player.js | 122 ++-- elements/wysiwyg-hax/demo/sample-store.json | 1 + 19 files changed, 962 insertions(+), 1187 deletions(-) create mode 100644 elements/multiple-choice/lib/QuestionElement.js create mode 100644 elements/multiple-choice/lib/true-false-question.haxProperties.json create mode 100644 elements/multiple-choice/lib/true-false-question.js diff --git a/elements/app-hax/demo/appstore.json b/elements/app-hax/demo/appstore.json index 5e62b208b2..a09b08b906 100644 --- a/elements/app-hax/demo/appstore.json +++ b/elements/app-hax/demo/appstore.json @@ -14,6 +14,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/cms-hax/demo/sample-store.json b/elements/cms-hax/demo/sample-store.json index ba2669626d..13922c2767 100644 --- a/elements/cms-hax/demo/sample-store.json +++ b/elements/cms-hax/demo/sample-store.json @@ -618,6 +618,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/h-a-x/demo/appstore.json b/elements/h-a-x/demo/appstore.json index 13773ec0c8..31888b06d4 100644 --- a/elements/h-a-x/demo/appstore.json +++ b/elements/h-a-x/demo/appstore.json @@ -561,6 +561,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/hax-body/demo/appstore.json b/elements/hax-body/demo/appstore.json index cfc01d6f04..b3a8fdfd89 100644 --- a/elements/hax-body/demo/appstore.json +++ b/elements/hax-body/demo/appstore.json @@ -606,6 +606,7 @@ "stop-note": "@lrnwebcomponents/stop-note/stop-note.js", "video-player": "@lrnwebcomponents/video-player/video-player.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "accent-card": "@lrnwebcomponents/accent-card/accent-card.js", "a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js", "page-break": "@lrnwebcomponents/page-break/page-break.js", diff --git a/elements/hax-body/demo/shoelace.json b/elements/hax-body/demo/shoelace.json index ebb5733d56..41bd1295eb 100644 --- a/elements/hax-body/demo/shoelace.json +++ b/elements/hax-body/demo/shoelace.json @@ -616,6 +616,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/hax-bookmarklet/demo/appstore.json b/elements/hax-bookmarklet/demo/appstore.json index ba2669626d..13922c2767 100644 --- a/elements/hax-bookmarklet/demo/appstore.json +++ b/elements/hax-bookmarklet/demo/appstore.json @@ -618,6 +618,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/hax-cloud/demo/dist/dev/appstore.json b/elements/hax-cloud/demo/dist/dev/appstore.json index b84212101f..860efb8e62 100644 --- a/elements/hax-cloud/demo/dist/dev/appstore.json +++ b/elements/hax-cloud/demo/dist/dev/appstore.json @@ -645,6 +645,7 @@ "stop-note": "@lrnwebcomponents/stop-note/stop-note.js", "video-player": "@lrnwebcomponents/video-player/video-player.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js", "accent-card": "@lrnwebcomponents/accent-card/accent-card.js", "a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js", diff --git a/elements/hax-cloud/lib/appstore.json b/elements/hax-cloud/lib/appstore.json index b84212101f..860efb8e62 100644 --- a/elements/hax-cloud/lib/appstore.json +++ b/elements/hax-cloud/lib/appstore.json @@ -645,6 +645,7 @@ "stop-note": "@lrnwebcomponents/stop-note/stop-note.js", "video-player": "@lrnwebcomponents/video-player/video-player.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js", "accent-card": "@lrnwebcomponents/accent-card/accent-card.js", "a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js", diff --git a/elements/haxcms-elements/demo/dist/dev/appstore.json b/elements/haxcms-elements/demo/dist/dev/appstore.json index 3070e67b56..dce4bdac5b 100644 --- a/elements/haxcms-elements/demo/dist/dev/appstore.json +++ b/elements/haxcms-elements/demo/dist/dev/appstore.json @@ -653,6 +653,7 @@ "stop-note": "@lrnwebcomponents/stop-note/stop-note.js", "video-player": "@lrnwebcomponents/video-player/video-player.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js", "accent-card": "@lrnwebcomponents/accent-card/accent-card.js", "a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js", diff --git a/elements/haxcms-elements/demo/fake/dev/appstore.json b/elements/haxcms-elements/demo/fake/dev/appstore.json index 67d707c988..a4929aa794 100644 --- a/elements/haxcms-elements/demo/fake/dev/appstore.json +++ b/elements/haxcms-elements/demo/fake/dev/appstore.json @@ -622,6 +622,7 @@ "meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js", "grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js", "multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js", + "true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js", "person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js", "place-holder": "@lrnwebcomponents/place-holder/place-holder.js", "q-r": "@lrnwebcomponents/q-r/q-r.js", diff --git a/elements/multiple-choice/demo/index.html b/elements/multiple-choice/demo/index.html index 0cc4d40165..32df75d1cd 100644 --- a/elements/multiple-choice/demo/index.html +++ b/elements/multiple-choice/demo/index.html @@ -9,6 +9,7 @@