@vue-skuilder/edit-ui 0.1.11-9 → 0.1.11

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.
@@ -3,6 +3,35 @@ import { AudioAutoPlayer, RadioMultipleChoice, useViewable, useQuestionView, Que
3
3
  import { FieldType, DataShapeName, Status, Validators, log, NameSpacer, fieldConverters, validationFunctionToVuetifyRule, isValidBulkFormat, parseBulkTextToCards } from "@vue-skuilder/common";
4
4
  import { getDataLayer, validateProcessorConfig, importParsedCards } from "@vue-skuilder/db";
5
5
  import { defineStore } from "pinia";
6
+ const BlanksCardDataShapes = [
7
+ {
8
+ name: DataShapeName.Blanks,
9
+ fields: [
10
+ {
11
+ name: "Input",
12
+ type: FieldType.MARKDOWN
13
+ },
14
+ {
15
+ name: "Uploads",
16
+ type: FieldType.MEDIA_UPLOADS
17
+ }
18
+ ]
19
+ }
20
+ ];
21
+ const SingleDigitAdditionDataShape = {
22
+ name: DataShapeName.MATH_SingleDigitAddition,
23
+ fields: [
24
+ { name: "a", type: FieldType.INT },
25
+ { name: "b", type: FieldType.INT }
26
+ ]
27
+ };
28
+ const EqualityTestDataShape = {
29
+ name: DataShapeName.MATH_EqualityTest,
30
+ fields: [
31
+ { name: "a", type: FieldType.STRING },
32
+ { name: "b", type: FieldType.STRING }
33
+ ]
34
+ };
6
35
  var __defProp = Object.defineProperty;
7
36
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
37
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -5807,21 +5836,6 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
5807
5836
  ]);
5808
5837
  }
5809
5838
  const FillInView = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-0aa9252e"]]);
5810
- const BlanksCardDataShapes = [
5811
- {
5812
- name: DataShapeName.Blanks,
5813
- fields: [
5814
- {
5815
- name: "Input",
5816
- type: FieldType.MARKDOWN
5817
- },
5818
- {
5819
- name: "Uploads",
5820
- type: FieldType.MEDIA_UPLOADS
5821
- }
5822
- ]
5823
- }
5824
- ];
5825
5839
  function splitText(text2, leftBound, rightBound) {
5826
5840
  const leftSplit = text2.split(leftBound);
5827
5841
  const left = leftSplit[0];
@@ -10378,7 +10392,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
10378
10392
  ]);
10379
10393
  }
10380
10394
  const IdentifyVocab = /* @__PURE__ */ _export_sfc$1(_sfc_main$m, [["render", _sfc_render$m]]);
10381
- const fields$c = [
10395
+ const fields$a = [
10382
10396
  {
10383
10397
  name: "word",
10384
10398
  type: FieldType.STRING,
@@ -10406,7 +10420,7 @@ const _VocabQuestion = class _VocabQuestion2 extends Question {
10406
10420
  };
10407
10421
  __publicField(_VocabQuestion, "dataShapes", [
10408
10422
  {
10409
- fields: fields$c,
10423
+ fields: fields$a,
10410
10424
  name: DataShapeName.FRENCH_Vocab
10411
10425
  }
10412
10426
  ]);
@@ -10516,16 +10530,6 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
10516
10530
  ]);
10517
10531
  }
10518
10532
  const VerbalAddition = /* @__PURE__ */ _export_sfc$1(_sfc_main$k, [["render", _sfc_render$k]]);
10519
- const fields$b = [
10520
- {
10521
- name: "a",
10522
- type: FieldType.INT
10523
- },
10524
- {
10525
- name: "b",
10526
- type: FieldType.INT
10527
- }
10528
- ];
10529
10533
  const data$3 = function() {
10530
10534
  const ret = [];
10531
10535
  for (let i2 = 0; i2 < 10; i2++) {
@@ -10556,12 +10560,7 @@ const _SingleDigitAdditionQuestion = class _SingleDigitAdditionQuestion2 extends
10556
10560
  return _SingleDigitAdditionQuestion2.views;
10557
10561
  }
10558
10562
  };
10559
- __publicField(_SingleDigitAdditionQuestion, "dataShapes", [
10560
- {
10561
- name: DataShapeName.MATH_SingleDigitAddition,
10562
- fields: fields$b
10563
- }
10564
- ]);
10563
+ __publicField(_SingleDigitAdditionQuestion, "dataShapes", [SingleDigitAdditionDataShape]);
10565
10564
  __publicField(_SingleDigitAdditionQuestion, "views", [HorizontalAddition, VerbalAddition]);
10566
10565
  __publicField(_SingleDigitAdditionQuestion, "seedData", data$3());
10567
10566
  __publicField(_SingleDigitAdditionQuestion, "acceptsUserData", false);
@@ -10617,7 +10616,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
10617
10616
  ]);
10618
10617
  }
10619
10618
  const HorizontalDivision = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j]]);
10620
- const fields$a = [
10619
+ const fields$9 = [
10621
10620
  {
10622
10621
  name: "a",
10623
10622
  type: FieldType.INT
@@ -10674,7 +10673,7 @@ const _SingleDigitDivisionQuestion = class _SingleDigitDivisionQuestion2 extends
10674
10673
  __publicField(_SingleDigitDivisionQuestion, "dataShapes", [
10675
10674
  {
10676
10675
  name: DataShapeName.MATH_SingleDigitDivision,
10677
- fields: fields$a
10676
+ fields: fields$9
10678
10677
  }
10679
10678
  ]);
10680
10679
  __publicField(_SingleDigitDivisionQuestion, "views", [HorizontalDivision]);
@@ -10798,7 +10797,7 @@ const validator$3 = {
10798
10797
  }
10799
10798
  }
10800
10799
  };
10801
- const fields$9 = [
10800
+ const fields$8 = [
10802
10801
  {
10803
10802
  name: "a",
10804
10803
  type: FieldType.INT,
@@ -10831,7 +10830,7 @@ const _SingleDigitMultiplicationQuestion = class _SingleDigitMultiplicationQuest
10831
10830
  __publicField(_SingleDigitMultiplicationQuestion, "dataShapes", [
10832
10831
  {
10833
10832
  name: DataShapeName.MATH_SingleDigitMultiplication,
10834
- fields: fields$9
10833
+ fields: fields$8
10835
10834
  }
10836
10835
  ]);
10837
10836
  __publicField(_SingleDigitMultiplicationQuestion, "views", [VerbalMultiplication, MultiplicationHorizontal]);
@@ -10875,16 +10874,6 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
10875
10874
  ]);
10876
10875
  }
10877
10876
  const TrueFalse = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["render", _sfc_render$g]]);
10878
- const fields$8 = [
10879
- {
10880
- name: "a",
10881
- type: FieldType.STRING
10882
- },
10883
- {
10884
- name: "b",
10885
- type: FieldType.STRING
10886
- }
10887
- ];
10888
10877
  const _EqualityTest = class _EqualityTest2 extends Question {
10889
10878
  /**
10890
10879
  * @param data a and b are seed props that will pop a question of
@@ -10907,12 +10896,7 @@ const _EqualityTest = class _EqualityTest2 extends Question {
10907
10896
  return _EqualityTest2.views;
10908
10897
  }
10909
10898
  };
10910
- __publicField(_EqualityTest, "dataShapes", [
10911
- {
10912
- name: DataShapeName.MATH_EqualityTest,
10913
- fields: fields$8
10914
- }
10915
- ]);
10899
+ __publicField(_EqualityTest, "dataShapes", [EqualityTestDataShape]);
10916
10900
  __publicField(_EqualityTest, "views", [TrueFalse]);
10917
10901
  let EqualityTest = _EqualityTest;
10918
10902
  const _sfc_main$f = defineComponent({
@@ -61683,7 +61667,8 @@ const _TypeLetterQuestion = class _TypeLetterQuestion2 extends Question {
61683
61667
  if (t < 3e3) {
61684
61668
  return 1;
61685
61669
  } else {
61686
- return 1 - (t - 3e3) / 7e3 * 0.75;
61670
+ const skill = 1 - (t - 3e3) / 7e3 * 0.75;
61671
+ return Math.max(0.25, skill);
61687
61672
  }
61688
61673
  }
61689
61674
  return 0;