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.
Files changed (49) hide show
  1. package/README.md +1 -1
  2. package/package.json +7 -9
  3. package/src/$locales/en.json +39 -15
  4. package/src/$locales/fr.json +48 -23
  5. package/src/components/AppBase.vue +245 -266
  6. package/src/components/AppBaseErrorDisplay.vue +29 -0
  7. package/src/components/AppBaseModule.vue +485 -232
  8. package/src/components/AppBasePage.vue +28 -54
  9. package/src/components/AppCompBif.vue +120 -0
  10. package/src/components/AppCompBranchButtons.vue +31 -30
  11. package/src/components/AppCompButtonProgress.vue +35 -46
  12. package/src/components/AppCompCarousel.vue +154 -247
  13. package/src/components/AppCompJauge.vue +1 -2
  14. package/src/components/AppCompMediaPlayer.vue +106 -74
  15. package/src/components/AppCompMenu.vue +87 -81
  16. package/src/components/AppCompMenuItem.vue +48 -90
  17. package/src/components/AppCompNavigation.vue +949 -0
  18. package/src/components/AppCompNoteCall.vue +126 -0
  19. package/src/components/AppCompNoteCredit.vue +164 -0
  20. package/src/components/AppCompPlayBar.vue +864 -1085
  21. package/src/components/AppCompPopUp.vue +26 -27
  22. package/src/components/AppCompPopover.vue +27 -0
  23. package/src/components/AppCompQuiz.vue +27 -36
  24. package/src/components/AppCompQuizRecall.vue +250 -0
  25. package/src/components/AppCompSVG.vue +309 -0
  26. package/src/components/AppCompSettingsMenu.vue +1 -0
  27. package/src/components/AppCompTableOfContent.vue +140 -85
  28. package/src/components/AppCompTranscript.vue +19 -0
  29. package/src/components/AppCompVideoPlayer.vue +336 -0
  30. package/src/components/BaseModule.vue +24 -105
  31. package/src/main.js +18 -9
  32. package/src/mixins/$pageMixins.js +106 -28
  33. package/src/mixins/timerMixin.js +31 -7
  34. package/src/module/store.js +33 -12
  35. package/src/module/xapi/Crypto/encoders/Hex.js +2 -1
  36. package/src/module/xapi/wrapper.js +4 -4
  37. package/src/plugins/gsap.js +4 -1
  38. package/src/plugins/helper.js +53 -18
  39. package/src/plugins/idb.js +1 -0
  40. package/src/public/index.html +1 -1
  41. package/src/router/index.js +41 -0
  42. package/src/router/routes.js +337 -0
  43. package/src/routes_bckp.js +313 -0
  44. package/src/routes_static.js +344 -0
  45. package/src/shared/generalfuncs.js +79 -4
  46. package/src/shared/validators.js +249 -0
  47. package/src/components/AppCompNavigationFull.vue +0 -1791
  48. package/src/components/AppCompToolTip.vue +0 -94
  49. 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>