fcad-core-dragon 2.3.0-test.2 → 2.3.0-test.4

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.3.0-test.4](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.3.0-test.3...v2.3.0-test.4) (2026-04-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **texttofill:** Remove debug code ([fff8de2](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/fff8de288cadde9469c7f6debb8f320e6751c96d))
7
+
8
+ # [2.3.0-test.3](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.3.0-test.2...v2.3.0-test.3) (2026-04-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **quiz:** correction du formatage du message précédent ([6985f51](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/6985f51dee569ec7cfeaba18bf4ee19089f6b5e2))
14
+
1
15
  # [2.3.0-test.2](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.3.0-test.1...v2.3.0-test.2) (2026-04-10)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcad-core-dragon",
3
- "version": "2.3.0-test.2",
3
+ "version": "2.3.0-test.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/main.js",
@@ -109,6 +109,7 @@
109
109
  "for_textarea": "Write here.",
110
110
  "for_title_btn_progress": "Click to discover the content"
111
111
  },
112
+ "prep_devoir": "Assignment Preparation",
112
113
  "of": "of",
113
114
  "slide": "Slide",
114
115
  "title_note": "Note(s)",
@@ -72,6 +72,7 @@
72
72
  "for_textarea": "Écrivez ici.",
73
73
  "for_title_btn_progress": "Cliquer pour découvrir le contenu"
74
74
  },
75
+ "prep_devoir":"Préparation au devoir",
75
76
  "of": "de",
76
77
  "slide": "Diapositive",
77
78
  "title_note": "Note(s)",
@@ -26,12 +26,30 @@
26
26
  :model-value="inputsValue[singleDropdown.id]"
27
27
  item-title="text"
28
28
  :item-props="true"
29
+ :hide-details="true"
29
30
  :items="getItemOptions(index)"
30
31
  :open-text="`${$t('message.dropdown_list')}_${singleDropdown.ennonce}`"
31
32
  :aria-describedby="`${id}_${singleDropdown.id}-msg-erreur`"
32
33
  menu-icon="mdi-chevron-down"
33
34
  @update:model-value="onSelectUpdate($event, index)"
34
- ></v-select>
35
+ >
36
+
37
+ <template #item="{ props, item }">
38
+ <v-list-item v-bind="props">
39
+ <template #title>
40
+ <span v-html="item.raw.text"></span>
41
+ </template>
42
+ </v-list-item>
43
+ </template>
44
+
45
+ <template #selection="{ item }">
46
+ <span v-html="item.raw.text"></span>
47
+ </template>
48
+
49
+
50
+ </v-select>
51
+
52
+
35
53
 
36
54
  <span
37
55
  :id="`${id}_${singleDropdown.id}-msg-erreur`"
@@ -184,6 +202,7 @@ export default {
184
202
  * @Return a collection of item representing the options for a the selectables
185
203
  */
186
204
  getItemOptions(index) {
205
+ console.log(Object.values(this.mappedOptions[index])[0])
187
206
  return Object.values(this.mappedOptions[index])[0]
188
207
  },
189
208
  /**
@@ -12,6 +12,7 @@
12
12
  :model-value="modelValue"
13
13
  :aria-labelledby="`textArea_${id}`"
14
14
  :placeholder="$t('text.place_holder.for_textarea')"
15
+ :hide-details="true"
15
16
  rows="3"
16
17
  no-resize
17
18
  :aria-describedby="`${id}-msg-erreur`"
@@ -8,7 +8,11 @@
8
8
  <template>
9
9
  <div :id="id" class="input-box">
10
10
  <fieldset :aria-label="fieldsetLabel">
11
- <div v-for="(textInput, index) in inputData" :key="textInput.id">
11
+ <div
12
+ v-for="(textInput, index) in inputData"
13
+ :key="textInput.id"
14
+ class="textfield-container"
15
+ >
12
16
  <label
13
17
  :id="`${id}_${textInput.id}-label`"
14
18
  aria-hidden="true"
@@ -20,6 +24,7 @@
20
24
  :id="`${id}_${textInput.id}-champ`"
21
25
  :model-value="inputsValue[textInput.id]"
22
26
  :placeholder="$t('text.place_holder.for_textarea')"
27
+ :hide-details="true"
23
28
  :aria-describedby="`${id}_${textInput.id}-msg-erreur`"
24
29
  :aria-labelledby="`${id}_${textInput.id}-label`"
25
30
  no-resize
@@ -20,8 +20,6 @@
20
20
  <label :for="`${id}_${textInput.id}-champ`" style="display: none">
21
21
  {{ $t('text.quiz') }}
22
22
  </label>
23
- {{ textInput }}
24
- {{ textInput.index }}
25
23
  <v-text-field
26
24
  v-if="textInput.type == 'input'"
27
25
  :id="`${id}_${textInput.id}-champ`"
@@ -513,16 +513,44 @@ export default {
513
513
  z-index: 0;
514
514
  }
515
515
 
516
- .math-ex-infinity{
517
-
518
- div.box-btn{
516
+ .math-ex-infinity {
517
+ div.box-btn {
519
518
  display: flex;
520
519
  flex-wrap: wrap;
521
520
  flex-direction: row;
522
521
 
523
- :last-child{
522
+ :last-child {
524
523
  margin-left: 10px;
525
524
  }
526
525
  }
527
526
  }
527
+ .box-checkbox {
528
+ &:last-of-type {
529
+ .checkbox-label {
530
+ margin-bottom: 0px;
531
+ }
532
+ }
533
+ }
534
+ .box-radio {
535
+ &:last-of-type {
536
+ .radio-label {
537
+ margin-bottom: 0px;
538
+ }
539
+ }
540
+ }
541
+ .dropdown-container {
542
+ margin-bottom: 16px;
543
+ &:last-of-type {
544
+ margin-bottom: 0px;
545
+ }
546
+ }
547
+ .textfield-container {
548
+ margin-bottom: 16px;
549
+ &:last-of-type {
550
+ margin-bottom: 0px;
551
+ }
552
+ }
553
+ .btn-ctrl-quiz {
554
+ margin-top: 16px;
555
+ }
528
556
  </style>
@@ -159,9 +159,15 @@ export default {
159
159
  //Format title in the Progress info
160
160
  switch (nb) {
161
161
  case '0':
162
- this.title = menuInfo[activity].subTitle
162
+ if(menuInfo[activity].prepDev == false || menuInfo[activity].prepDev == undefined )
163
+ this.title = menuInfo[activity].subTitle
163
164
  ? `Introduction : ${menuInfo[activity].subTitle}`
164
165
  : `Introduction`
166
+ else
167
+ this.title = menuInfo[activity].subTitle
168
+ ? `${this.$t('text.prep_devoir')} : ${menuInfo[activity].subTitle}`
169
+ : `${this.$t('text.prep_devoir')}`
170
+
165
171
  break
166
172
 
167
173
  case '99':