fcad-core-dragon 2.0.0-beta.3 → 2.0.0-beta.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/.editorconfig +33 -33
- package/.eslintignore +29 -29
- package/.eslintrc.cjs +81 -81
- package/CHANGELOG +373 -364
- package/README.md +71 -71
- package/bk.scss +117 -117
- package/package.json +61 -61
- package/src/$locales/en.json +143 -143
- package/src/$locales/fr.json +105 -105
- package/src/assets/data/onboardingMessages.json +47 -47
- package/src/components/AppBase.vue +1147 -1054
- package/src/components/AppBaseButton.vue +87 -87
- package/src/components/AppBaseErrorDisplay.vue +438 -438
- package/src/components/AppBaseFlipCard.vue +84 -84
- package/src/components/AppBaseModule.vue +1636 -1673
- package/src/components/AppBasePage.vue +779 -779
- package/src/components/AppBasePopover.vue +41 -41
- package/src/components/AppCompAudio.vue +234 -234
- package/src/components/AppCompBranchButtons.vue +552 -552
- package/src/components/AppCompButtonProgress.vue +126 -126
- package/src/components/AppCompCarousel.vue +298 -298
- package/src/components/AppCompInputCheckBoxNext.vue +195 -195
- package/src/components/AppCompInputDropdownNext.vue +159 -159
- package/src/components/AppCompInputRadioNext.vue +152 -152
- package/src/components/AppCompInputTextNext.vue +106 -106
- package/src/components/AppCompInputTextTableNext.vue +141 -141
- package/src/components/AppCompInputTextToFillDropdownNext.vue +230 -230
- package/src/components/AppCompInputTextToFillNext.vue +171 -171
- package/src/components/AppCompJauge.vue +74 -74
- package/src/components/AppCompMenu.vue +423 -413
- package/src/components/AppCompMenuItem.vue +228 -228
- package/src/components/AppCompNavigation.vue +959 -960
- package/src/components/AppCompNoteCall.vue +133 -133
- package/src/components/AppCompNoteCredit.vue +292 -292
- package/src/components/AppCompPlayBar.vue +1218 -1218
- package/src/components/AppCompPlayBarNext.vue +2052 -2052
- package/src/components/AppCompPlayBarProgress.vue +82 -82
- package/src/components/AppCompPopUpNext.vue +503 -503
- package/src/components/AppCompQuizNext.vue +2904 -2904
- package/src/components/AppCompQuizRecall.vue +276 -276
- package/src/components/AppCompSVGNext.vue +347 -347
- package/src/components/AppCompSettingsMenu.vue +172 -172
- package/src/components/AppCompTableOfContent.vue +387 -387
- package/src/components/AppCompTranscript.vue +24 -24
- package/src/components/AppCompVideoPlayer.vue +368 -368
- package/src/components/AppCompViewDisplay.vue +6 -6
- package/src/components/BaseModule.vue +72 -72
- package/src/composables/useQuiz.js +206 -206
- package/src/externalComps/ModuleView.vue +22 -22
- package/src/externalComps/SummaryView.vue +91 -91
- package/src/main.js +272 -272
- package/src/mixins/$mediaMixins.js +819 -819
- package/src/mixins/timerMixin.js +155 -155
- package/src/module/stores/appStore.js +901 -893
- package/src/module/xapi/ADL.js +380 -376
- package/src/module/xapi/Crypto/Hasher.js +241 -241
- package/src/module/xapi/Crypto/WordArray.js +278 -278
- package/src/module/xapi/Crypto/algorithms/BufferedBlockAlgorithm.js +103 -103
- package/src/module/xapi/Crypto/algorithms/C_algo.js +315 -315
- package/src/module/xapi/Crypto/algorithms/HMAC.js +9 -9
- package/src/module/xapi/Crypto/algorithms/SHA1.js +9 -9
- package/src/module/xapi/Crypto/encoders/Base.js +105 -105
- package/src/module/xapi/Crypto/encoders/Base64.js +99 -99
- package/src/module/xapi/Crypto/encoders/Hex.js +61 -61
- package/src/module/xapi/Crypto/encoders/Latin1.js +61 -61
- package/src/module/xapi/Crypto/encoders/Utf8.js +45 -45
- package/src/module/xapi/Crypto/index.js +53 -53
- package/src/module/xapi/Statement/activity.js +47 -47
- package/src/module/xapi/Statement/agent.js +55 -55
- package/src/module/xapi/Statement/group.js +26 -26
- package/src/module/xapi/Statement/index.js +259 -259
- package/src/module/xapi/Statement/statement.js +253 -253
- package/src/module/xapi/Statement/statementRef.js +23 -23
- package/src/module/xapi/Statement/substatement.js +22 -22
- package/src/module/xapi/Statement/verb.js +36 -36
- package/src/module/xapi/activitytypes.js +17 -17
- package/src/module/xapi/launch.js +157 -157
- package/src/module/xapi/utils.js +167 -167
- package/src/module/xapi/verbs.js +294 -294
- package/src/module/xapi/wrapper.js +1963 -1963
- package/src/module/xapi/xapiStatement.js +444 -444
- package/src/plugins/bus.js +8 -8
- package/src/plugins/gsap.js +14 -14
- package/src/plugins/helper.js +314 -308
- package/src/plugins/i18n.js +44 -44
- package/src/plugins/idb.js +227 -219
- package/src/plugins/save.js +37 -37
- package/src/plugins/scorm.js +287 -287
- package/src/plugins/xapi.js +11 -11
- package/src/public/index.html +33 -33
- package/src/router/index.js +43 -43
- package/src/router/routes.js +312 -312
- package/src/shared/generalfuncs.js +210 -210
- package/src/shared/validators.js +1069 -1069
- package/vite.config.js +0 -27
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
@ Description:
|
|
3
|
-
@ What it does:
|
|
4
|
-
-->
|
|
5
|
-
<template>
|
|
6
|
-
<div
|
|
7
|
-
:id="`rnt_${stripRefNote}`"
|
|
8
|
-
:ref="`#rnt_${stripRefNote}`"
|
|
9
|
-
:data-ref="`nt_${stripRefNote}`"
|
|
10
|
-
class="callEndNote"
|
|
11
|
-
>
|
|
12
|
-
<button
|
|
13
|
-
class="nrlm"
|
|
14
|
-
tabindex="0"
|
|
15
|
-
:title="$t('text.title_link_call')"
|
|
16
|
-
@click="openNote()"
|
|
17
|
-
>
|
|
18
|
-
<sup>{{ stripRefNote }}</sup>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
<script>
|
|
23
|
-
import { mapState } from 'pinia'
|
|
24
|
-
import { useAppStore } from '../module/stores/appStore'
|
|
25
|
-
export default {
|
|
26
|
-
props: {
|
|
27
|
-
refNote: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: ' '
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
notes: null
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
computed: {
|
|
38
|
-
...mapState(useAppStore, ['getDataNoteCredit']),
|
|
39
|
-
// Return the number for the note
|
|
40
|
-
stripRefNote() {
|
|
41
|
-
let newRef
|
|
42
|
-
|
|
43
|
-
let ref = this.refNote
|
|
44
|
-
let toStrip = ref.indexOf('_')
|
|
45
|
-
newRef = this.refNote.substr(toStrip + 1)
|
|
46
|
-
|
|
47
|
-
return newRef
|
|
48
|
-
} //,
|
|
49
|
-
// error() {
|
|
50
|
-
// let er = false
|
|
51
|
-
// let data = this.getDataNoteCredit.note
|
|
52
|
-
|
|
53
|
-
// let s = document.querySelectorAll(`[dataref="r${this.refNote}"]`)
|
|
54
|
-
// console.log(s)
|
|
55
|
-
|
|
56
|
-
// if (data) {
|
|
57
|
-
// if (s.length) {
|
|
58
|
-
// er = false
|
|
59
|
-
// } else {
|
|
60
|
-
// er = true
|
|
61
|
-
// console.warn(
|
|
62
|
-
// `%c WARNING!>>> AppCompNoteCall: cette note n'existe pas ${this.refNote}.`,
|
|
63
|
-
// 'background: orange; color: white; display: block; margin:5px;'
|
|
64
|
-
// )
|
|
65
|
-
// }
|
|
66
|
-
// }
|
|
67
|
-
|
|
68
|
-
// return er
|
|
69
|
-
// }
|
|
70
|
-
},
|
|
71
|
-
beforeUnmount() {
|
|
72
|
-
this.$bus.$off('close-widget', this.onCloseWidget)
|
|
73
|
-
this.$bus.$off('credit-note', this.onCreditNote)
|
|
74
|
-
},
|
|
75
|
-
mounted() {
|
|
76
|
-
this.$bus.$on('close-widget', this.onCloseWidget)
|
|
77
|
-
this.$bus.$on('credit-note', this.onCreditNote)
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
onCreditNote(data) {
|
|
81
|
-
this.notes = data.note
|
|
82
|
-
},
|
|
83
|
-
onCloseWidget() {
|
|
84
|
-
let el = document.getElementsByClassName('callEndNote')
|
|
85
|
-
|
|
86
|
-
for (let element of el) {
|
|
87
|
-
element.setAttribute('datacurrentnote', false)
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
//open the widget and give information to highlight
|
|
91
|
-
openNote() {
|
|
92
|
-
this.$bus.$emit('toggle-widget', 'noteCredit')
|
|
93
|
-
this.$bus.$emit('note-to-show', this.$el)
|
|
94
|
-
|
|
95
|
-
let e = document.getElementsByClassName('callEndNote')
|
|
96
|
-
let t = this.$el.getAttribute('id')
|
|
97
|
-
|
|
98
|
-
for (let element of e) {
|
|
99
|
-
element.setAttribute('dataCurrentnote', false)
|
|
100
|
-
if (element.id === t) {
|
|
101
|
-
element.setAttribute('dataCurrentnote', true)
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
this.focusWidgetNote(t)
|
|
106
|
-
},
|
|
107
|
-
lookForElement(elId) {
|
|
108
|
-
let clcn = document.getElementsByClassName('endNoteLink')
|
|
109
|
-
|
|
110
|
-
for (let element of clcn) {
|
|
111
|
-
if (element.id === elId) {
|
|
112
|
-
return element
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
focusWidgetNote(element) {
|
|
117
|
-
let s = document.querySelectorAll(`[noteref="${element}"]`)
|
|
118
|
-
s[0].focus()
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
</script>
|
|
123
|
-
<style lang="scss">
|
|
124
|
-
.callEndNote {
|
|
125
|
-
display: inline-block;
|
|
126
|
-
margin-left: -4px;
|
|
127
|
-
|
|
128
|
-
.error-Nc {
|
|
129
|
-
color: red;
|
|
130
|
-
font-weight: bold;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
@ Description:
|
|
3
|
+
@ What it does:
|
|
4
|
+
-->
|
|
5
|
+
<template>
|
|
6
|
+
<div
|
|
7
|
+
:id="`rnt_${stripRefNote}`"
|
|
8
|
+
:ref="`#rnt_${stripRefNote}`"
|
|
9
|
+
:data-ref="`nt_${stripRefNote}`"
|
|
10
|
+
class="callEndNote"
|
|
11
|
+
>
|
|
12
|
+
<button
|
|
13
|
+
class="nrlm"
|
|
14
|
+
tabindex="0"
|
|
15
|
+
:title="$t('text.title_link_call')"
|
|
16
|
+
@click="openNote()"
|
|
17
|
+
>
|
|
18
|
+
<sup>{{ stripRefNote }}</sup>
|
|
19
|
+
</button>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<script>
|
|
23
|
+
import { mapState } from 'pinia'
|
|
24
|
+
import { useAppStore } from '../module/stores/appStore'
|
|
25
|
+
export default {
|
|
26
|
+
props: {
|
|
27
|
+
refNote: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ' '
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
notes: null
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
...mapState(useAppStore, ['getDataNoteCredit']),
|
|
39
|
+
// Return the number for the note
|
|
40
|
+
stripRefNote() {
|
|
41
|
+
let newRef
|
|
42
|
+
|
|
43
|
+
let ref = this.refNote
|
|
44
|
+
let toStrip = ref.indexOf('_')
|
|
45
|
+
newRef = this.refNote.substr(toStrip + 1)
|
|
46
|
+
|
|
47
|
+
return newRef
|
|
48
|
+
} //,
|
|
49
|
+
// error() {
|
|
50
|
+
// let er = false
|
|
51
|
+
// let data = this.getDataNoteCredit.note
|
|
52
|
+
|
|
53
|
+
// let s = document.querySelectorAll(`[dataref="r${this.refNote}"]`)
|
|
54
|
+
// console.log(s)
|
|
55
|
+
|
|
56
|
+
// if (data) {
|
|
57
|
+
// if (s.length) {
|
|
58
|
+
// er = false
|
|
59
|
+
// } else {
|
|
60
|
+
// er = true
|
|
61
|
+
// console.warn(
|
|
62
|
+
// `%c WARNING!>>> AppCompNoteCall: cette note n'existe pas ${this.refNote}.`,
|
|
63
|
+
// 'background: orange; color: white; display: block; margin:5px;'
|
|
64
|
+
// )
|
|
65
|
+
// }
|
|
66
|
+
// }
|
|
67
|
+
|
|
68
|
+
// return er
|
|
69
|
+
// }
|
|
70
|
+
},
|
|
71
|
+
beforeUnmount() {
|
|
72
|
+
this.$bus.$off('close-widget', this.onCloseWidget)
|
|
73
|
+
this.$bus.$off('credit-note', this.onCreditNote)
|
|
74
|
+
},
|
|
75
|
+
mounted() {
|
|
76
|
+
this.$bus.$on('close-widget', this.onCloseWidget)
|
|
77
|
+
this.$bus.$on('credit-note', this.onCreditNote)
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
onCreditNote(data) {
|
|
81
|
+
this.notes = data.note
|
|
82
|
+
},
|
|
83
|
+
onCloseWidget() {
|
|
84
|
+
let el = document.getElementsByClassName('callEndNote')
|
|
85
|
+
|
|
86
|
+
for (let element of el) {
|
|
87
|
+
element.setAttribute('datacurrentnote', false)
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
//open the widget and give information to highlight
|
|
91
|
+
openNote() {
|
|
92
|
+
this.$bus.$emit('toggle-widget', 'noteCredit')
|
|
93
|
+
this.$bus.$emit('note-to-show', this.$el)
|
|
94
|
+
|
|
95
|
+
let e = document.getElementsByClassName('callEndNote')
|
|
96
|
+
let t = this.$el.getAttribute('id')
|
|
97
|
+
|
|
98
|
+
for (let element of e) {
|
|
99
|
+
element.setAttribute('dataCurrentnote', false)
|
|
100
|
+
if (element.id === t) {
|
|
101
|
+
element.setAttribute('dataCurrentnote', true)
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
this.focusWidgetNote(t)
|
|
106
|
+
},
|
|
107
|
+
lookForElement(elId) {
|
|
108
|
+
let clcn = document.getElementsByClassName('endNoteLink')
|
|
109
|
+
|
|
110
|
+
for (let element of clcn) {
|
|
111
|
+
if (element.id === elId) {
|
|
112
|
+
return element
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
focusWidgetNote(element) {
|
|
117
|
+
let s = document.querySelectorAll(`[noteref="${element}"]`)
|
|
118
|
+
s[0].focus()
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
<style lang="scss">
|
|
124
|
+
.callEndNote {
|
|
125
|
+
display: inline-block;
|
|
126
|
+
margin-left: -4px;
|
|
127
|
+
|
|
128
|
+
.error-Nc {
|
|
129
|
+
color: red;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
</style>
|