fcad-core-dragon 2.0.0-beta.0 → 2.0.0-beta.1
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/README.md +1 -1
- package/package.json +7 -9
- package/src/$locales/en.json +39 -15
- package/src/$locales/fr.json +48 -23
- package/src/components/AppBase.vue +245 -266
- package/src/components/AppBaseErrorDisplay.vue +29 -0
- package/src/components/AppBaseModule.vue +485 -232
- package/src/components/AppBasePage.vue +28 -54
- package/src/components/AppCompBif.vue +120 -0
- package/src/components/AppCompBranchButtons.vue +31 -30
- package/src/components/AppCompButtonProgress.vue +35 -46
- package/src/components/AppCompCarousel.vue +154 -247
- package/src/components/AppCompJauge.vue +1 -2
- package/src/components/AppCompMediaPlayer.vue +106 -74
- package/src/components/AppCompMenu.vue +87 -81
- package/src/components/AppCompMenuItem.vue +48 -90
- package/src/components/AppCompNavigation.vue +949 -0
- package/src/components/AppCompNoteCall.vue +126 -0
- package/src/components/AppCompNoteCredit.vue +164 -0
- package/src/components/AppCompPlayBar.vue +864 -1085
- package/src/components/AppCompPopUp.vue +26 -27
- package/src/components/AppCompPopover.vue +27 -0
- package/src/components/AppCompQuiz.vue +27 -36
- package/src/components/AppCompQuizRecall.vue +250 -0
- package/src/components/AppCompSVG.vue +309 -0
- package/src/components/AppCompSettingsMenu.vue +1 -0
- package/src/components/AppCompTableOfContent.vue +140 -85
- package/src/components/AppCompTranscript.vue +19 -0
- package/src/components/AppCompVideoPlayer.vue +336 -0
- package/src/components/BaseModule.vue +24 -105
- package/src/main.js +18 -9
- package/src/mixins/$pageMixins.js +106 -28
- package/src/mixins/timerMixin.js +31 -7
- package/src/module/store.js +33 -12
- package/src/module/xapi/Crypto/encoders/Hex.js +2 -1
- package/src/module/xapi/wrapper.js +4 -4
- package/src/plugins/gsap.js +4 -1
- package/src/plugins/helper.js +53 -18
- package/src/plugins/idb.js +1 -0
- package/src/public/index.html +1 -1
- package/src/router/index.js +41 -0
- package/src/router/routes.js +337 -0
- package/src/routes_bckp.js +313 -0
- package/src/routes_static.js +344 -0
- package/src/shared/generalfuncs.js +79 -4
- package/src/shared/validators.js +249 -0
- package/src/components/AppCompNavigationFull.vue +0 -1791
- package/src/components/AppCompToolTip.vue +0 -94
- package/src/routes.js +0 -734
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<b-popover
|
|
3
|
-
ref="tooltip_1"
|
|
4
|
-
:show.sync="isShown"
|
|
5
|
-
:target="target"
|
|
6
|
-
:title="option.title"
|
|
7
|
-
triggers="manual"
|
|
8
|
-
placement="auto"
|
|
9
|
-
@hidden="onHidden()"
|
|
10
|
-
>
|
|
11
|
-
<div class="box-content-tooltip" v-html="option.content" />
|
|
12
|
-
<div>
|
|
13
|
-
<app-base-button
|
|
14
|
-
id="btn-cancel-tooltip"
|
|
15
|
-
:name-acces="'Annuler'"
|
|
16
|
-
class="btn-cancel"
|
|
17
|
-
:title="$t('button.cancel_pop')"
|
|
18
|
-
@click="$cancel(option.cb_$cancel)"
|
|
19
|
-
>
|
|
20
|
-
{{ $t('button.cancel_pop') }}
|
|
21
|
-
</app-base-button>
|
|
22
|
-
<app-base-button
|
|
23
|
-
id="btn-confirm-tooltip"
|
|
24
|
-
:name-acces="'Confirmer'"
|
|
25
|
-
class="btn-confirm"
|
|
26
|
-
:title="$t('button.confirm_pop')"
|
|
27
|
-
@click="$confirm(option.cb_$confirm)"
|
|
28
|
-
>
|
|
29
|
-
{{ $t('button.confirm_pop') }}
|
|
30
|
-
</app-base-button>
|
|
31
|
-
</div>
|
|
32
|
-
</b-popover>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script>
|
|
36
|
-
//https://bootstrap-vue.org/docs/components/popover
|
|
37
|
-
export default {
|
|
38
|
-
name: 'AppCompToolTip',
|
|
39
|
-
props: {
|
|
40
|
-
target: { type: String, default: '' }
|
|
41
|
-
},
|
|
42
|
-
data() {
|
|
43
|
-
return {
|
|
44
|
-
option: {},
|
|
45
|
-
confirmFunction: false,
|
|
46
|
-
isShown: false
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
computed: {},
|
|
50
|
-
mounted() {
|
|
51
|
-
this.$bus.$on('tooltip-close', () => {
|
|
52
|
-
this.isShown = false
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
this.$bus.$on('tooltip-open', (e) => {
|
|
56
|
-
if (e) {
|
|
57
|
-
this.option = e
|
|
58
|
-
this.isShown = true
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
methods: {
|
|
63
|
-
/**
|
|
64
|
-
* @description - method for action confirm
|
|
65
|
-
* @param {Function} cb
|
|
66
|
-
*/
|
|
67
|
-
$confirm(cb) {
|
|
68
|
-
this.confirmFunction = cb
|
|
69
|
-
this.isShown = false
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @description - method for action cancel
|
|
74
|
-
* @param {Function} cb
|
|
75
|
-
*/
|
|
76
|
-
$cancel(cb) {
|
|
77
|
-
this.confirmFunction = false
|
|
78
|
-
cb = cb || null
|
|
79
|
-
this.isShown = false
|
|
80
|
-
if (cb && typeof cb === 'function') cb()
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @description action to do when tooltip is hidden
|
|
85
|
-
*/
|
|
86
|
-
onHidden() {
|
|
87
|
-
//check if closed with confirm
|
|
88
|
-
let cb = this.confirmFunction
|
|
89
|
-
//calls close
|
|
90
|
-
if (cb && typeof cb === 'function') cb()
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
</script>
|