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,126 +1,126 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="button-progress-wrapper">
|
|
3
|
-
<button
|
|
4
|
-
:id="`btn_branch_${branchData.id}`"
|
|
5
|
-
:target-ref="branchData.id"
|
|
6
|
-
:title="btnTitle || $t('text.place_holder.for_title_btn_progress')"
|
|
7
|
-
:class="
|
|
8
|
-
branchData.state === status.COMPLETE
|
|
9
|
-
? 'branch-btn-default branche-complete'
|
|
10
|
-
: 'branch-btn-default'
|
|
11
|
-
"
|
|
12
|
-
@click="openBranch(branchData.id)"
|
|
13
|
-
>
|
|
14
|
-
<svg v-if="branchData.state === status.COMPLETE">
|
|
15
|
-
<use href="#check-icon"></use>
|
|
16
|
-
</svg>
|
|
17
|
-
<svg v-if="branchData.state != status.COMPLETE">
|
|
18
|
-
<use href="#navigate-next-icon"></use>
|
|
19
|
-
</svg>
|
|
20
|
-
</button>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
<script>
|
|
24
|
-
export default {
|
|
25
|
-
props: {
|
|
26
|
-
mini: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
percent: {
|
|
31
|
-
type: [Number],
|
|
32
|
-
default: 0,
|
|
33
|
-
required: true
|
|
34
|
-
},
|
|
35
|
-
branchData: {
|
|
36
|
-
type: Object,
|
|
37
|
-
required: true
|
|
38
|
-
},
|
|
39
|
-
setTarget: {
|
|
40
|
-
type: [String],
|
|
41
|
-
default: ''
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
btnTitle: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: null
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
data() {
|
|
50
|
-
const svgRadius = 23
|
|
51
|
-
return {
|
|
52
|
-
radius: svgRadius,
|
|
53
|
-
circumference: svgRadius * 2 * Math.PI,
|
|
54
|
-
status: {
|
|
55
|
-
NEW: 'new',
|
|
56
|
-
STARTED: 'started',
|
|
57
|
-
COMPLETE: 'complete'
|
|
58
|
-
},
|
|
59
|
-
withRouter: false, //Only for demo purpose. Remove after demo
|
|
60
|
-
isActive: false,
|
|
61
|
-
currentPercent: 0
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
created() {
|
|
66
|
-
// if (isNaN(this.percent)) this.percent = 0
|
|
67
|
-
this.$bus.$on('branching-hidden', this.resetIsActive)
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
beforeUnmount() {
|
|
71
|
-
this.$bus.$off('branching-hidden', this.resetIsActive)
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
methods: {
|
|
75
|
-
openBranch(e) {
|
|
76
|
-
this.isActive = true
|
|
77
|
-
this.$bus.$emit('open-sidebar', { ctx: 'ctxBranching', e })
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
resetIsActive() {
|
|
81
|
-
this.isActive = false
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
<style lang="scss">
|
|
87
|
-
.button-progress-wrapper {
|
|
88
|
-
&.card-btn {
|
|
89
|
-
.branch-btn-default {
|
|
90
|
-
left: 5.5px;
|
|
91
|
-
top: 5.5px;
|
|
92
|
-
min-width: 40px;
|
|
93
|
-
min-height: 40px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.button-progress-wrapper {
|
|
99
|
-
&:not(.card-btn) {
|
|
100
|
-
.branch-btn-default {
|
|
101
|
-
// left: 4px;
|
|
102
|
-
// top: 4px;
|
|
103
|
-
// min-width: 42px;
|
|
104
|
-
// min-height: 42px;
|
|
105
|
-
right: 15px !important;
|
|
106
|
-
top: -15px !important;
|
|
107
|
-
min-width: 42px;
|
|
108
|
-
min-height: 42px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.button-progress-wrapper {
|
|
114
|
-
position: relative;
|
|
115
|
-
|
|
116
|
-
.progress-ring {
|
|
117
|
-
position: absolute;
|
|
118
|
-
top: 0;
|
|
119
|
-
left: 0;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.branch-btn-default {
|
|
123
|
-
position: absolute;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="button-progress-wrapper">
|
|
3
|
+
<button
|
|
4
|
+
:id="`btn_branch_${branchData.id}`"
|
|
5
|
+
:target-ref="branchData.id"
|
|
6
|
+
:title="btnTitle || $t('text.place_holder.for_title_btn_progress')"
|
|
7
|
+
:class="
|
|
8
|
+
branchData.state === status.COMPLETE
|
|
9
|
+
? 'branch-btn-default branche-complete'
|
|
10
|
+
: 'branch-btn-default'
|
|
11
|
+
"
|
|
12
|
+
@click="openBranch(branchData.id)"
|
|
13
|
+
>
|
|
14
|
+
<svg v-if="branchData.state === status.COMPLETE">
|
|
15
|
+
<use href="#check-icon"></use>
|
|
16
|
+
</svg>
|
|
17
|
+
<svg v-if="branchData.state != status.COMPLETE">
|
|
18
|
+
<use href="#navigate-next-icon"></use>
|
|
19
|
+
</svg>
|
|
20
|
+
</button>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
props: {
|
|
26
|
+
mini: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
percent: {
|
|
31
|
+
type: [Number],
|
|
32
|
+
default: 0,
|
|
33
|
+
required: true
|
|
34
|
+
},
|
|
35
|
+
branchData: {
|
|
36
|
+
type: Object,
|
|
37
|
+
required: true
|
|
38
|
+
},
|
|
39
|
+
setTarget: {
|
|
40
|
+
type: [String],
|
|
41
|
+
default: ''
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
btnTitle: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: null
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
data() {
|
|
50
|
+
const svgRadius = 23
|
|
51
|
+
return {
|
|
52
|
+
radius: svgRadius,
|
|
53
|
+
circumference: svgRadius * 2 * Math.PI,
|
|
54
|
+
status: {
|
|
55
|
+
NEW: 'new',
|
|
56
|
+
STARTED: 'started',
|
|
57
|
+
COMPLETE: 'complete'
|
|
58
|
+
},
|
|
59
|
+
withRouter: false, //Only for demo purpose. Remove after demo
|
|
60
|
+
isActive: false,
|
|
61
|
+
currentPercent: 0
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
created() {
|
|
66
|
+
// if (isNaN(this.percent)) this.percent = 0
|
|
67
|
+
this.$bus.$on('branching-hidden', this.resetIsActive)
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
beforeUnmount() {
|
|
71
|
+
this.$bus.$off('branching-hidden', this.resetIsActive)
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
methods: {
|
|
75
|
+
openBranch(e) {
|
|
76
|
+
this.isActive = true
|
|
77
|
+
this.$bus.$emit('open-sidebar', { ctx: 'ctxBranching', e })
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
resetIsActive() {
|
|
81
|
+
this.isActive = false
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
<style lang="scss">
|
|
87
|
+
.button-progress-wrapper {
|
|
88
|
+
&.card-btn {
|
|
89
|
+
.branch-btn-default {
|
|
90
|
+
left: 5.5px;
|
|
91
|
+
top: 5.5px;
|
|
92
|
+
min-width: 40px;
|
|
93
|
+
min-height: 40px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.button-progress-wrapper {
|
|
99
|
+
&:not(.card-btn) {
|
|
100
|
+
.branch-btn-default {
|
|
101
|
+
// left: 4px;
|
|
102
|
+
// top: 4px;
|
|
103
|
+
// min-width: 42px;
|
|
104
|
+
// min-height: 42px;
|
|
105
|
+
right: 15px !important;
|
|
106
|
+
top: -15px !important;
|
|
107
|
+
min-width: 42px;
|
|
108
|
+
min-height: 42px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.button-progress-wrapper {
|
|
114
|
+
position: relative;
|
|
115
|
+
|
|
116
|
+
.progress-ring {
|
|
117
|
+
position: absolute;
|
|
118
|
+
top: 0;
|
|
119
|
+
left: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.branch-btn-default {
|
|
123
|
+
position: absolute;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
</style>
|