fcad-core-dragon 2.5.0-test.3 → 2.5.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/.gitlab-ci.yml CHANGED
@@ -1,4 +1,4 @@
1
- image: node:24.16.0
1
+ image: node:22
2
2
 
3
3
  stages:
4
4
  - install
@@ -79,6 +79,7 @@ run_components_test:
79
79
  #Deploy to npm
80
80
  publish_to_npm:
81
81
  stage: deploy
82
+ #image: node:22
82
83
  script:
83
84
  - echo " //registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
84
85
  - npm ci
package/CHANGELOG.md CHANGED
@@ -1,24 +1,19 @@
1
- # [2.5.0-test.3](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.5.0-test.2...v2.5.0-test.3) (2026-06-15)
2
-
3
-
4
- ### Features
5
-
6
- * **fix:** correction du calcul du pourcentage de completion ([98b98ab](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/98b98ab6e55d15211d0bb58b7851cd63ce15ad25))
7
-
8
- # [2.5.0-test.2](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.5.0-test.1...v2.5.0-test.2) (2026-06-09)
1
+ # [2.5.0](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.4.0...v2.5.0) (2026-06-17)
9
2
 
10
3
 
11
4
  ### Bug Fixes
12
5
 
13
- * **cicd:** setup trusted publishing to replace tokens ([f494991](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/f494991e8374e697b0857ffdfe20bbc735adf13d))
14
- * **cicd:** setup trusted publishing to replace tokens + update node image in CICD ([588ee4e](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/588ee4e96d5f72c1bb3a5c2e6e17528d6422ae9a))
15
-
16
- # [2.5.0-test.1](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.4.1-test.1...v2.5.0-test.1) (2026-06-08)
6
+ * **quiz:** ajout nouveau quiz dans quiz ([2303128](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/23031281322e5b2cc8a493a88d31dd53a873f9ec))
7
+ * **quiz:** correction ([2e45cd4](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/2e45cd4400abbf463dab2f5a86d87011959bd7a8))
8
+ * **quiz:** correction enregistrer faute d'authographe ([c2d62cf](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/c2d62cf44c1adf15be8bb11808ef6412c5f94d72))
9
+ * **quiz:** fix du quiz catégorie ([0732fd4](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/0732fd4fab65598506b871d98c6647aa193f8207))
10
+ * **version:** correction realese version : 2.3.0-test.7 ([bdc59f6](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/bdc59f6366ee8814a2795136d627dc2f93b0a1ed))
17
11
 
18
12
 
19
13
  ### Features
20
14
 
21
15
  * **components:** Ajout nouveau composant categorieCheckBoxNx ([f8c64ce](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/f8c64ce9e001dd3e93d450b12715978db3dc04dc))
16
+ * **fix:** correction du calcul du pourcentage de completion ([98b98ab](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/commit/98b98ab6e55d15211d0bb58b7851cd63ce15ad25))
22
17
 
23
18
  ## [2.4.1-test.1](https://git.crosemont.qc.ca/fcad/core/fcad-core-2/compare/v2.4.0...v2.4.1-test.1) (2026-06-08)
24
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcad-core-dragon",
3
- "version": "2.5.0-test.3",
3
+ "version": "2.5.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./src/main.js",
@@ -120,9 +120,7 @@ export default {
120
120
  return this.$bus.$emit('input-error', { e: this.id, errors })
121
121
  }
122
122
  },
123
- mounted() {
124
- },
125
-
123
+ mounted() {},
126
124
  methods: {
127
125
  /**
128
126
  * @description validate the raw data received by the component to render is view
@@ -95,6 +95,9 @@ export default {
95
95
  AppCompInputCheckBox: defineAsyncComponent(
96
96
  () => import('./AppCompInputCheckBoxNx.vue')
97
97
  ),
98
+ AppCompInputCategorieCheckBoxNx: defineAsyncComponent(
99
+ () => import('./AppCompInputCategorieCheckBoxNx.vue')
100
+ ),
98
101
  AppCompInputDropdown: defineAsyncComponent(
99
102
  () => import('./AppCompInputDropdownNx.vue')
100
103
  ),
@@ -179,6 +182,7 @@ export default {
179
182
  ]),
180
183
  quizElement() {
181
184
  const propMapping = {
185
+ choix_catergorie: 'inputData',
182
186
  choix_reponse: 'inputData',
183
187
  texte_base: 'textBase',
184
188
  max_essai: 'maxEssai'
@@ -228,6 +232,9 @@ export default {
228
232
  case type_question == 'choix_mult':
229
233
  inputComponent = 'AppCompInputCheckBox'
230
234
  break
235
+ case type_question == 'choix_mult_cat':
236
+ inputComponent = 'AppCompInputCategorieCheckBoxNx'
237
+ break
231
238
  case type_question == 'reponse_ouverte':
232
239
  inputComponent = 'AppCompInputTextBox'
233
240
  break
@@ -437,10 +444,17 @@ export default {
437
444
 
438
445
  this.totalAttempts = total_attempts
439
446
  if (this.quizLimitActive) this.quizCompleted = true //Signal that quiz has been completed
440
- let isExecption = ['choix_unique']
441
- if (isExecption.includes(type_question)) {
442
- this.isReady = true
443
- return (this.response = [value])
447
+ let isException = ['choix_unique','choix_mult_cat']
448
+ if (isException.includes(type_question)) {
449
+ switch(type_question){
450
+ case 'choix_unique' :
451
+ this.isReady = true
452
+ return (this.response = [value])
453
+ case 'choix_mult_cat' :
454
+ this.isReady = true
455
+ this.response = value.map((e) => { return e.map((a) => (a.selected)) })
456
+ return this.response
457
+ }
444
458
  }
445
459
 
446
460
  this.response = value.map((a) => (a = a.filled || a.selected))
package/src/main.js CHANGED
@@ -9,7 +9,6 @@ import AppBaseErrorDisplay from './components/AppBaseErrorDisplay.vue'
9
9
  import AppCompAudio from './components/AppCompAudio.vue'
10
10
  import AppCompBranchButtons from './components/AppCompBranchButtons.vue'
11
11
  import AppCompCarousel from './components/AppCompCarousel.vue'
12
- //import AppCompCodeName from './components/AppCompCodeName.vue'
13
12
  import AppCompViewDisplay from './components/AppCompViewDisplay.vue'
14
13
  import AppCompTableOfContent from './components/AppCompTableOfContent.vue'
15
14
  import AppCompMenu from './components/AppCompMenu.vue'
@@ -81,7 +80,6 @@ export default {
81
80
  app.component('AppCompAudioPlayer', AppCompAudio)
82
81
  app.component('AppCompBranchButtons', AppCompBranchButtons)
83
82
  app.component('AppCompCarousel', AppCompCarousel)
84
- //app.component('AppCompCodeName', AppCompCodeName)
85
83
  app.component('AppCompMenuItem', AppCompMenuItem)
86
84
  app.component('AppCompJauge', AppCompJauge)
87
85
  app.component('AppCompTableOfContent', AppCompTableOfContent)
@@ -1,201 +0,0 @@
1
-
2
- {
3
- "wordBank":[
4
- {
5
- "word": "Apple",
6
- "categorie": ["fruit", "tech", "food"]
7
- },
8
- {
9
- "word": "Orange",
10
- "categorie": ["fruit", "color", "food"]
11
- },
12
- {
13
- "word": "Mouse",
14
- "categorie": ["animal", "computer"]
15
- },
16
- {
17
- "word": "Bat",
18
- "categorie": ["animal", "sport"]
19
- },
20
- {
21
- "word": "Bank",
22
- "categorie": ["money", "river"]
23
- },
24
- {
25
- "word": "Light",
26
- "categorie": ["physics", "lamp", "nightlife", "lightning"]
27
- },
28
- {
29
- "word": "Spring",
30
- "categorie": ["season", "object"]
31
- },
32
- {
33
- "word": "Star",
34
- "categorie": ["space", "celebrity"]
35
- },
36
- {
37
- "word": "Cell",
38
- "categorie": ["biology", "prison", "body"]
39
- },
40
- {
41
- "word": "Train",
42
- "categorie": ["transport", "action"]
43
- },
44
- {
45
- "word": "Match",
46
- "categorie": ["sport", "fire"]
47
- },
48
- {
49
- "word": "Ring",
50
- "categorie": ["jewelry", "sound"]
51
- },
52
- {
53
- "word": "Rock",
54
- "categorie": ["music", "stone", "material", "nightlife"]
55
- },
56
- {
57
- "word": "Pen",
58
- "categorie": ["writing", "animal enclosure", "tool"]
59
- },
60
- {
61
- "word": "Club",
62
- "categorie": ["sport", "nightlife"]
63
- },
64
- {
65
- "word": "Glass",
66
- "categorie": ["sport", "drinkware"]
67
- },
68
- {
69
- "word": "Key",
70
- "categorie": ["music", "lock"]
71
- },
72
- {
73
- "word": "Wave",
74
- "categorie": ["ocean", "gesture"]
75
- },
76
- {
77
- "word": "File",
78
- "categorie": ["office", "tool"]
79
- },
80
- {
81
- "word": "Plate",
82
- "categorie": ["food", "tectonic"]
83
- },
84
- {
85
- "word": "Code",
86
- "categorie": ["computer", "secret", "math", "argument"]
87
- },
88
- {
89
- "word": "Bug",
90
- "categorie": ["insect", "error", "computer"]
91
- },
92
- {
93
- "word": "Jam",
94
- "categorie": ["food", "error", "traffic"]
95
- },
96
- {
97
- "word": "Nail",
98
- "categorie": ["body", "tool", "biology"]
99
- },
100
- {
101
- "word": "Watch",
102
- "categorie": ["time", "observe"]
103
- },
104
- {
105
- "word": "Park",
106
- "categorie": ["place", "action", "nature", "wood"]
107
- },
108
- {
109
- "word": "Leaf",
110
- "categorie": ["nature", "book"]
111
- },
112
- {
113
- "word": "Seal",
114
- "categorie": ["animal", "stamp"]
115
- },
116
- {
117
- "word": "Bolt",
118
- "categorie": ["tool", "lightning"]
119
- },
120
- {
121
- "word": "Can",
122
- "categorie": ["container", "ability"]
123
- },
124
- {
125
- "word": "Cross",
126
- "categorie": ["religion", "action"]
127
- },
128
- {
129
- "word": "Stick",
130
- "categorie": ["object", "action", "tool"]
131
- },
132
- {
133
- "word": "Charge",
134
- "categorie": ["energy", "legal"]
135
- },
136
- {
137
- "word": "Block",
138
- "categorie": ["object", "obstacle"]
139
- },
140
- {
141
- "word": "Draft",
142
- "categorie": ["wind", "document"]
143
- },
144
- {
145
- "word": "Board",
146
- "categorie": ["wood", "management", "wood"]
147
- },
148
- {
149
- "word": "Point",
150
- "categorie": ["math", "argument"]
151
- },
152
- {
153
- "word": "Current",
154
- "categorie": ["electricity", "water"]
155
- },
156
- {
157
- "word": "Scale",
158
- "categorie": ["music", "size"]
159
- },
160
- {
161
- "word": "Model",
162
- "categorie": ["fashion", "example"]
163
- },
164
- {
165
- "word": "Track",
166
- "categorie": ["music", "path"]
167
- },
168
- {
169
- "word": "Field",
170
- "categorie": ["sport", "science"]
171
- },
172
- {
173
- "word": "Spot",
174
- "categorie": ["place", "stain"]
175
- },
176
- {
177
- "word": "Tape",
178
- "categorie": ["music", "adhesive"]
179
- },
180
- {
181
- "word": "Trip",
182
- "categorie": ["travel", "fall"]
183
- },
184
- {
185
- "word": "Crash",
186
- "categorie": ["accident", "computer"]
187
- },
188
- {
189
- "word": "Fan",
190
- "categorie": ["cooling", "sports"]
191
- },
192
- {
193
- "word": "Brush",
194
- "categorie": ["tool", "action"]
195
- },
196
- {
197
- "word": "Screen",
198
- "categorie": ["display", "hide"]
199
- }
200
- ]
201
- }