@ecored-sena/base-kit 0.0.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 (67) hide show
  1. package/README.md +1 -0
  2. package/package.json +49 -0
  3. package/plugin/components/AccordionRED.vue +78 -0
  4. package/plugin/components/AcordionA.vue +78 -0
  5. package/plugin/components/Audio.vue +20 -0
  6. package/plugin/components/BannerHero.vue +104 -0
  7. package/plugin/components/CarouselCard.vue +70 -0
  8. package/plugin/components/CarouselRED.vue +65 -0
  9. package/plugin/components/Complementario.vue +81 -0
  10. package/plugin/components/Creditos.vue +101 -0
  11. package/plugin/components/Dialogo.vue +30 -0
  12. package/plugin/components/DialogoActividad.vue +274 -0
  13. package/plugin/components/DialogoBurbuja.vue +46 -0
  14. package/plugin/components/DialogoChat.vue +88 -0
  15. package/plugin/components/Footer.vue +42 -0
  16. package/plugin/components/GlobalComponents.js +39 -0
  17. package/plugin/components/Glosario.vue +100 -0
  18. package/plugin/components/ImagenInfografica.vue +100 -0
  19. package/plugin/components/ImagenInfograficaB.vue +68 -0
  20. package/plugin/components/Inicio.vue +128 -0
  21. package/plugin/components/LineaTiempoA.vue +30 -0
  22. package/plugin/components/LineaTiempoB.vue +36 -0
  23. package/plugin/components/LineaTiempoC.vue +95 -0
  24. package/plugin/components/LineaTiempoD.vue +51 -0
  25. package/plugin/components/LineaTiempoE.vue +25 -0
  26. package/plugin/components/ModalA.vue +22 -0
  27. package/plugin/components/PasosA.vue +59 -0
  28. package/plugin/components/PasosB.vue +90 -0
  29. package/plugin/components/Referencias.vue +45 -0
  30. package/plugin/components/ScrollHorizontal.vue +105 -0
  31. package/plugin/components/Separador.vue +12 -0
  32. package/plugin/components/SlyderA.vue +65 -0
  33. package/plugin/components/SlyderB.vue +48 -0
  34. package/plugin/components/SlyderC.vue +53 -0
  35. package/plugin/components/SlyderD.vue +50 -0
  36. package/plugin/components/SlyderE.vue +58 -0
  37. package/plugin/components/SlyderF.vue +141 -0
  38. package/plugin/components/TabsA.vue +44 -0
  39. package/plugin/components/TabsB.vue +40 -0
  40. package/plugin/components/TabsC.vue +39 -0
  41. package/plugin/components/TarjetaAudio.vue +65 -0
  42. package/plugin/components/TimeLineRED.vue +51 -0
  43. package/plugin/components/actividad/ActividadController.vue +34 -0
  44. package/plugin/components/actividad/actividadCompletar/ActividadCompletar.vue +283 -0
  45. package/plugin/components/actividad/actividadCompletar/ActividadCompletarFooter.vue +63 -0
  46. package/plugin/components/actividad/actividadCompletar/ActividadParrafo.vue +218 -0
  47. package/plugin/components/actividad/actividadCompletar/ActividadResultados.vue +215 -0
  48. package/plugin/components/actividad/actividadCuestionario/Actividad.vue +222 -0
  49. package/plugin/components/actividad/actividadCuestionario/ActividadBarraAvance.vue +116 -0
  50. package/plugin/components/actividad/actividadCuestionario/ActividadPregunta.vue +146 -0
  51. package/plugin/components/actividad/actividadCuestionario/ActividadResultados.vue +215 -0
  52. package/plugin/components/audioMixins.js +73 -0
  53. package/plugin/components/componentSlotMixins.js +87 -0
  54. package/plugin/components/dialogoMixins.js +28 -0
  55. package/plugin/components/globalMixins.js +11 -0
  56. package/plugin/components/plantilla/Accesibilidad.vue +101 -0
  57. package/plugin/components/plantilla/AsideMenu.vue +242 -0
  58. package/plugin/components/plantilla/BannerInterno.vue +66 -0
  59. package/plugin/components/plantilla/BannerPrincipal.vue +104 -0
  60. package/plugin/components/plantilla/BarraAvance.vue +379 -0
  61. package/plugin/components/plantilla/Curso.vue +12 -0
  62. package/plugin/components/plantilla/Footer.vue +42 -0
  63. package/plugin/components/plantilla/Header.vue +152 -0
  64. package/plugin/components/plantilla/ScrollHorizontal.vue +105 -0
  65. package/plugin/components/plantillaMixins.js +34 -0
  66. package/plugin/components/slyderMixins.js +18 -0
  67. package/plugin/plugin.js +49 -0
@@ -0,0 +1,34 @@
1
+ export default {
2
+ computed: {
3
+ menuData() {
4
+ return this.$config.menuPrincipal.menu
5
+ },
6
+ iniciarLnk() {
7
+ const lnk = this.menuData.find(item => item.nombreRuta === 'introduccion')
8
+ const tema1 = this.menuData.find(item => item.nombreRuta === 'tema1')
9
+ return lnk || tema1
10
+ },
11
+ },
12
+ methods: {
13
+ quitarAcentos(str) {
14
+ const strNoHtml = str.replace(/<\/?[^>]+(>|$)/g, '')
15
+ const acentos = {
16
+ á: 'a',
17
+ é: 'e',
18
+ í: 'i',
19
+ ó: 'o',
20
+ ú: 'u',
21
+ Á: 'A',
22
+ É: 'E',
23
+ Í: 'I',
24
+ Ó: 'O',
25
+ Ú: 'U',
26
+ }
27
+ return strNoHtml
28
+ .split('')
29
+ .map(letra => acentos[letra] || letra)
30
+ .join('')
31
+ .toString()
32
+ },
33
+ },
34
+ }
@@ -0,0 +1,18 @@
1
+ export default {
2
+ props: {
3
+ datos: {
4
+ type: Array,
5
+ default: () => [],
6
+ },
7
+ },
8
+ data: () => ({
9
+ mainId: Math.floor(Math.random() * 10 ** 10),
10
+ selected: '0',
11
+ }),
12
+ methods: {
13
+ getId(idx) {
14
+ if (idx < 0) return null
15
+ return 'sl-' + this.mainId + idx + 1
16
+ },
17
+ },
18
+ }
@@ -0,0 +1,49 @@
1
+ // bootstrap
2
+ import '@popperjs/core'
3
+ import 'bootstrap'
4
+ import 'bootstrap/dist/css/bootstrap.min.css'
5
+
6
+ // fontawesome
7
+ import '@fortawesome/fontawesome-free/css/all.min.css'
8
+
9
+ // AOS
10
+ import AOS from 'aos'
11
+
12
+ // COMPONENTS
13
+ import * as globalComponents from './components/GlobalComponents.js'
14
+
15
+ import globalMixins from './components/globalMixins'
16
+
17
+ export default {
18
+ install: async (app, options) => {
19
+ const { config, packageJson } = options
20
+
21
+ app.prototype.$config = config
22
+ app.prototype.$package = packageJson
23
+
24
+ app.config.productionTip = false
25
+ // mixins
26
+ app.mixin(globalMixins)
27
+
28
+ // custom directive
29
+ app.directive('child', {
30
+ bind(el, binding) {
31
+ el.appendChild(binding.value)
32
+ },
33
+ })
34
+
35
+ // AOS
36
+ app.prototype.$aos = AOS
37
+ app.prototype.$aosRefresh = () => {
38
+ for (let i = 0; i <= 3; i++) {
39
+ setTimeout(() => {
40
+ AOS.refresh()
41
+ }, 1000 * i)
42
+ }
43
+ }
44
+ // GLOBAL COMPONENTS
45
+ Object.entries(globalComponents).forEach(([name, component]) => {
46
+ app.component(name, component)
47
+ })
48
+ },
49
+ }