@windward/core 0.4.3 → 0.5.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 (54) hide show
  1. package/components/Content/Blocks/Accordion.vue +10 -6
  2. package/components/Content/Blocks/BlockQuote.vue +81 -98
  3. package/components/Content/Blocks/ClickableIcons.vue +6 -5
  4. package/components/Content/Blocks/Feedback.vue +1 -1
  5. package/components/Content/Blocks/FileDownload/FileLinks.vue +82 -0
  6. package/components/Content/Blocks/FileDownload/FileTable.vue +106 -0
  7. package/components/Content/Blocks/FileDownload.vue +145 -0
  8. package/components/Content/Blocks/GenerateAIQuestionButton.vue +61 -0
  9. package/components/Content/Blocks/ScenarioChoice.vue +2 -2
  10. package/components/Content/Blocks/UserUpload.vue +15 -36
  11. package/components/Content/Blocks/Video.vue +7 -57
  12. package/components/Settings/AccordionSettings.vue +3 -6
  13. package/components/Settings/BlockQuoteSettings.vue +44 -14
  14. package/components/Settings/EmailSettings.vue +2 -2
  15. package/components/Settings/FileDownloadSettings.vue +168 -0
  16. package/components/Settings/UserUploadSettings.vue +36 -39
  17. package/components/Settings/VideoSettings.vue +15 -2
  18. package/components/utils/ContentViewer.vue +1 -0
  19. package/components/utils/TinyMCEWrapper.vue +14 -16
  20. package/components/utils/assets/tinymce/content/global.scss +10 -0
  21. package/i18n/en-US/components/content/blocks/file_download.ts +5 -0
  22. package/i18n/en-US/components/content/blocks/generate_questions.ts +3 -0
  23. package/i18n/en-US/components/content/blocks/index.ts +4 -0
  24. package/i18n/en-US/components/content/blocks/user_upload.ts +0 -2
  25. package/i18n/en-US/components/settings/block_quote.ts +6 -0
  26. package/i18n/en-US/components/settings/file_download.ts +8 -0
  27. package/i18n/en-US/components/settings/index.ts +2 -0
  28. package/i18n/en-US/shared/content_blocks.ts +1 -0
  29. package/i18n/en-US/shared/settings.ts +1 -3
  30. package/i18n/es-ES/components/content/blocks/file_download.ts +5 -0
  31. package/i18n/es-ES/components/content/blocks/generate_questions.ts +3 -0
  32. package/i18n/es-ES/components/content/blocks/index.ts +6 -2
  33. package/i18n/es-ES/components/content/blocks/user_upload.ts +0 -2
  34. package/i18n/es-ES/components/settings/block_quote.ts +7 -1
  35. package/i18n/es-ES/components/settings/file_download.ts +8 -0
  36. package/i18n/es-ES/components/settings/index.ts +4 -2
  37. package/i18n/es-ES/shared/content_blocks.ts +1 -0
  38. package/i18n/es-ES/shared/settings.ts +1 -3
  39. package/i18n/sv-SE/components/content/blocks/file_download.ts +5 -0
  40. package/i18n/sv-SE/components/content/blocks/generate_questions.ts +3 -0
  41. package/i18n/sv-SE/components/content/blocks/index.ts +4 -0
  42. package/i18n/sv-SE/components/content/blocks/user_upload.ts +0 -2
  43. package/i18n/sv-SE/components/settings/block_quote.ts +7 -1
  44. package/i18n/sv-SE/components/settings/file_download.ts +8 -0
  45. package/i18n/sv-SE/components/settings/index.ts +4 -2
  46. package/i18n/sv-SE/shared/content_blocks.ts +1 -0
  47. package/i18n/sv-SE/shared/settings.ts +2 -4
  48. package/package.json +2 -2
  49. package/plugin.js +20 -0
  50. package/test/Components/Content/Blocks/FileDownload.spec.js +25 -0
  51. package/test/Components/Content/Blocks/Video.spec.js +0 -22
  52. package/test/Components/Settings/FileDownloadSettings.spec.js +20 -0
  53. package/test/Components/Settings/UserUploadSettings.spec.js +1 -1
  54. package/utils/index.js +2 -0
@@ -1,5 +1,33 @@
1
1
  <template>
2
2
  <div>
3
+ <v-text-field
4
+ v-model="block.metadata.config.title"
5
+ outlined
6
+ :counter="50"
7
+ :autofocus="true"
8
+ :label="$t('components.content.settings.base.title_optional')"
9
+ :disabled="render"
10
+ ></v-text-field>
11
+ <v-btn
12
+ elevation="0"
13
+ text
14
+ class="mb-4"
15
+ :disabled="render"
16
+ @click="block.__expandInstructions = !block.__expandInstructions"
17
+ >
18
+ <v-icon v-if="!block.__expandInstructions" color="primary"
19
+ >mdi-arrow-expand-all</v-icon
20
+ >
21
+ <v-icon v-if="block.__expandInstructions" color="primary">
22
+ mdi-arrow-collapse-all
23
+ </v-icon>
24
+ </v-btn>
25
+ <TextEditor
26
+ v-model="block.metadata.config.instructions"
27
+ :label="$t('components.content.settings.base.instructions')"
28
+ :loading="block.__expandInstructions"
29
+ :disabled="render"
30
+ />
3
31
  <v-switch
4
32
  v-model="block.metadata.config.uploadSettings.multiple"
5
33
  :label="
@@ -22,34 +50,6 @@
22
50
  "
23
51
  :disabled="render"
24
52
  ></v-select>
25
- <v-btn elevation="0" text class="mt-4" :disabled="render" @click="onToggleExpand()">
26
- <v-icon v-if="!block.metadata.config.expand" color="primary"
27
- >mdi-arrow-expand-all</v-icon
28
- >
29
- <v-icon v-if="block.metadata.config.expand" color="primary">
30
- mdi-arrow-collapse-all
31
- </v-icon>
32
- </v-btn>
33
- <v-row v-if="!block.metadata.config.expand">
34
- <v-col cols="12">
35
- <h4 class="pb-4 pt-4">
36
- {{
37
- $t(
38
- 'windward.core.components.content.blocks.user_upload.instructions_title'
39
- )
40
- }}
41
- </h4>
42
- <TextEditor
43
- v-model="block.metadata.config.instructions"
44
- :disabled="render"
45
- />
46
- </v-col>
47
- </v-row>
48
- <v-skeleton-loader
49
- v-bind="attrs"
50
- type=" table-row-divider, list-item, divider, list-item, divider, image,image"
51
- v-show="block.metadata.config.expand"
52
- ></v-skeleton-loader>
53
53
  </div>
54
54
  </template>
55
55
  <script>
@@ -66,6 +66,10 @@ export default {
66
66
  if (_.isEmpty(this.block)) {
67
67
  this.block = {}
68
68
  }
69
+
70
+ // Default the instructions to collapsed
71
+ this.block.__expandInstructions = false
72
+
69
73
  if (_.isEmpty(this.block.body)) {
70
74
  this.block.body = this.$t(
71
75
  'windward.core.shared.content_blocks.title.user_upload'
@@ -77,10 +81,10 @@ export default {
77
81
  if (_.isEmpty(this.block.metadata.config)) {
78
82
  this.block.metadata.config = {}
79
83
  }
80
- if (_.isEmpty(this.block.metadata.config.expand)) {
81
- this.block.metadata.config.expand = false
84
+ if (_.isEmpty(this.block.metadata.config.title)) {
85
+ this.block.metadata.config.title = ''
82
86
  }
83
- if (_.isEmpty(this.block.metadata.config.instructions)) {
87
+ if (_.isEmpty(this.block.metadata.config.title)) {
84
88
  this.block.metadata.config.instructions = ''
85
89
  }
86
90
  if (_.isEmpty(this.block.metadata.config.uploadSettings)) {
@@ -95,7 +99,6 @@ export default {
95
99
  valid: true,
96
100
  debounce: null,
97
101
  loading: false,
98
- key: '',
99
102
  acceptOptions: [
100
103
  {
101
104
  name: this.$t(
@@ -142,13 +145,7 @@ export default {
142
145
  }
143
146
  },
144
147
 
145
- methods: {
146
- onToggleExpand() {
147
- this.key = Crypto.id()
148
- return (this.block.metadata.config.expand =
149
- !this.block.metadata.config.expand)
150
- },
151
- },
148
+ methods: {},
152
149
  }
153
150
  </script>
154
151
  <style scoped>
@@ -7,6 +7,19 @@
7
7
  :label="$t('windward.core.components.settings.video.title')"
8
8
  :disabled="render"
9
9
  ></v-text-field>
10
+ <v-textarea
11
+ v-model="block.metadata.config.description"
12
+ outlined
13
+ auto-grow
14
+ :counter="255"
15
+ :label="
16
+ $t(
17
+ 'components.content.settings.base.description_optional'
18
+ )
19
+ "
20
+ :disabled="render"
21
+ ></v-textarea>
22
+
10
23
  <h4 class="mb-3">
11
24
  {{ $t('windward.core.components.settings.video.sources') }}
12
25
  </h4>
@@ -464,8 +477,8 @@
464
477
  </template>
465
478
  <script>
466
479
  import _ from 'lodash'
467
- import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js'
468
- import Uuid from '~/helpers/Uuid'
480
+ import BaseContentSettings from '~/components/Content/Settings/BaseContentSettings.js''
481
+
469
482
  export default {
470
483
  name: 'VideoSettings',
471
484
  extends: BaseContentSettings,
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <component
3
+ v-show="value"
3
4
  :class="textViewer ? 'text-viewer' : ''"
4
5
  :is="convertedContent"
5
6
  ></component>
@@ -6,9 +6,7 @@
6
6
  (isDarkTheme ? '--theme-dark' : '--theme-light')
7
7
  "
8
8
  >
9
- <label v-if="value && label" class="editor-label">{{
10
- label
11
- }}</label>
9
+ <label v-if="label" class="editor-label">{{ label }}</label>
12
10
  <Editor
13
11
  :key="seed + (isDarkTheme ? '-theme-dark' : '-theme-light')"
14
12
  v-model="text"
@@ -326,7 +324,7 @@ export default {
326
324
  value: 'windward-table-subject-report',
327
325
  },
328
326
  ],
329
- setup() {
327
+ setup(_editor) {
330
328
  // Here we can add plugin
331
329
  getTinymce().PluginManager.add(
332
330
  'WindwardToolKit',
@@ -434,9 +432,7 @@ export default {
434
432
  ],
435
433
  placeholder: this.label
436
434
  ? this.label
437
- : this.$t(
438
- 'windward.core.shared.settings.title.placeholder'
439
- ),
435
+ : this.$t('components.content.settings.base.placeholder'),
440
436
  //required as it will be displayed as inline style in tinymce renderer
441
437
  skin: false,
442
438
  content_css: this.$vuetify.theme.isDark ? 'dark' : 'default',
@@ -539,20 +535,22 @@ export default {
539
535
  }
540
536
  </script>
541
537
 
538
+ <style lang="scss" scoped>
539
+ .editor-label {
540
+ font-size: 1rem;
541
+ display: block;
542
+ transform-origin: top left;
543
+ transform: scale(0.75);
544
+ }
545
+ </style>
546
+
542
547
  <style lang="scss">
543
- html:has(body.theme--light) {
548
+ html body.theme--light {
544
549
  @import './assets/tinymce/ui/light/content.scss';
545
550
  @import './assets/tinymce/ui/light/skin.scss';
546
551
  }
547
- html:has(body.theme--dark) {
552
+ html body.theme--dark {
548
553
  @import './assets/tinymce/ui/dark/content.scss';
549
554
  @import './assets/tinymce/ui/dark/skin.scss';
550
555
  }
551
- .editor-label {
552
- font-size: 1rem;
553
- margin-top: -1rem;
554
- display: block;
555
- transform-origin: top left;
556
- transform: scale(0.75);
557
- }
558
556
  </style>
@@ -1,3 +1,4 @@
1
+ @import '~/assets/sass/global.scss';
1
2
  table {
2
3
  max-width: 100%;
3
4
  border: 1px solid var(--v-primary-base);
@@ -190,6 +191,15 @@ body {
190
191
  font-family: 'Roboto', sans-serif;
191
192
  }
192
193
 
194
+ h1, h2, h3, h4, h5, h6, ul, ol, table {
195
+ margin-top:16px;
196
+ margin-bottom:16px;
197
+ }
198
+
199
+ li::marker {
200
+ font-weight: bold;
201
+ }
202
+
193
203
  html:has(body.editor--theme-light) {
194
204
  @import './light/content.scss';
195
205
  }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ default_title: 'Download File(s)',
3
+ default_instructions: 'Click on each link to download the file.',
4
+ no_files: 'No files',
5
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ error: "Could not generate question from provided content."
3
+ }
@@ -8,6 +8,8 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import email from './email'
10
10
  import block_quote from './block_quote'
11
+ import generate_questions from './generate_questions'
12
+ import file_download from './file_download'
11
13
 
12
14
  export default {
13
15
  user_upload,
@@ -20,4 +22,6 @@ export default {
20
22
  scenario_choice: scenarioChoice,
21
23
  email,
22
24
  block_quote,
25
+ generate_questions,
26
+ file_download,
23
27
  }
@@ -1,9 +1,7 @@
1
1
  export default {
2
2
  user_uploads: 'User Uploads',
3
3
  dialog_view: 'View Uploads',
4
- instructions: 'Instructions:',
5
4
  instructions_none: 'None',
6
- instructions_title: 'Student instructions:',
7
5
  must_save: 'You must save this block before users can make uploads',
8
6
  uploaded: 'Uploaded',
9
7
  name: 'Name',
@@ -6,4 +6,10 @@ export default {
6
6
  org: 'Organization',
7
7
  source_title: 'Source Title',
8
8
  type: 'Source Type',
9
+ source_url: 'Source Url',
10
+ source_types: {
11
+ none: 'None',
12
+ book: 'Book',
13
+ online_journal: 'Online Journal',
14
+ },
9
15
  }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ file_download: 'File Download',
3
+ no_file_selected: 'No file selected',
4
+ add: 'Add File',
5
+ filename_optional: 'Filename (Optional)',
6
+ place_file: 'Place File',
7
+ display_detailed: 'Display in detailed view',
8
+ }
@@ -11,6 +11,7 @@ import tab from './tab'
11
11
  import email from './email'
12
12
  import block_quote from './block_quote'
13
13
  import horizontal_rule from './horizontal_rule'
14
+ import file_download from './file_download'
14
15
 
15
16
  export default {
16
17
  accordion,
@@ -26,4 +27,5 @@ export default {
26
27
  email,
27
28
  block_quote,
28
29
  horizontal_rule,
30
+ file_download,
29
31
  }
@@ -17,6 +17,7 @@ export default {
17
17
  email: 'Email',
18
18
  block_quote: 'Block Quote',
19
19
  horizontal_rule: 'Divider',
20
+ file_download: 'File Download',
20
21
  },
21
22
  grouping: {
22
23
  basic: 'Basic Components',
@@ -5,6 +5,7 @@ export default {
5
5
  open_response_collate: 'Open Response Collate Settings',
6
6
  image: 'Image Settings',
7
7
  user_upload: 'User Upload Settings',
8
+ file_download: 'File Download Settings',
8
9
  tab_settings: 'Tab Settings',
9
10
  text_editor: 'Text Editor Settings',
10
11
  clickable_icons: 'Clickable Icons Settings',
@@ -18,9 +19,6 @@ export default {
18
19
  email: 'Email Settings',
19
20
  click_to_enter: 'Click here to enter text',
20
21
  block_quote: 'Block Quote Settings',
21
- title: 'Title',
22
- instructions: 'Instructions',
23
- placeholder: 'Enter text here',
24
22
  },
25
23
  upload_file: 'Upload File',
26
24
  alt_image: 'Alternate text for image',
@@ -0,0 +1,5 @@
1
+ export default {
2
+ default_title: 'Descargar archivos',
3
+ default_instructions: 'Haga clic en cada enlace para descargar el archivo.',
4
+ no_files: 'Sin archivos',
5
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ error: "No se pudo generar una pregunta a partir del contenido proporcionado."
3
+ }
@@ -6,8 +6,10 @@ import feedback from './feedback'
6
6
  import open_response from './open_response'
7
7
  import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
- import block_quote from './block_quote'
10
9
  import email from './email'
10
+ import block_quote from './block_quote'
11
+ import file_download from './file_download'
12
+ import generate_questions from './generate_questions'
11
13
 
12
14
  export default {
13
15
  user_upload,
@@ -18,6 +20,8 @@ export default {
18
20
  open_response,
19
21
  open_response_collate,
20
22
  scenario_choice: scenarioChoice,
21
- block_quote,
22
23
  email,
24
+ block_quote,
25
+ file_download,
26
+ generate_questions,
23
27
  }
@@ -1,9 +1,7 @@
1
1
  export default {
2
2
  user_uploads: 'Cargas de usuarios',
3
3
  dialog_view: 'Ver cargas',
4
- instructions: 'Instrucciones:',
5
4
  instructions_none: 'Ninguno',
6
- instructions_title: 'Instrucciones para el estudiante:',
7
5
  must_save:
8
6
  'Debes guardar este bloque antes de que los usuarios puedan realizar cargas',
9
7
  uploaded: 'Subido',
@@ -4,6 +4,12 @@ export default {
4
4
  name: 'Nombre',
5
5
  title: 'Título',
6
6
  org: 'Organización',
7
- source_title: 'Título de la fuente' ,
7
+ source_title: 'Título de la fuente',
8
8
  type: 'Tipo de fuente',
9
+ source_url: 'URL de origen',
10
+ source_types: {
11
+ none: 'Ninguno',
12
+ book: 'Libro',
13
+ online_journal: 'Diario en línea',
14
+ },
9
15
  }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ file_download: 'Descarga de archivos',
3
+ no_file_selected: 'Ningún archivo seleccionado',
4
+ add: 'Agregar archivo',
5
+ filename_optional: 'Nombre de archivo (opcional)',
6
+ place_file: 'Colocar archivo',
7
+ display_detailed: 'Mostrar en vista detallada',
8
+ }
@@ -8,9 +8,10 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import accordion from './accordion'
10
10
  import tab from './tab'
11
- import block_quote from './block_quote'
12
11
  import email from './email'
12
+ import block_quote from './block_quote'
13
13
  import horizontal_rule from './horizontal_rule'
14
+ import file_download from './file_download'
14
15
 
15
16
  export default {
16
17
  accordion,
@@ -23,7 +24,8 @@ export default {
23
24
  open_response,
24
25
  open_response_collate,
25
26
  scenario_choice: scenarioChoice,
26
- block_quote,
27
27
  email,
28
+ block_quote,
28
29
  horizontal_rule,
30
+ file_download,
29
31
  }
@@ -17,6 +17,7 @@ export default {
17
17
  email: 'Correo Electrónico',
18
18
  block_quote: 'Cotización en bloque',
19
19
  horizontal_rule: 'Divisor',
20
+ file_download: 'Descarga de archivos',
20
21
  },
21
22
  grouping: {
22
23
  basic: 'Componentes básicos',
@@ -6,6 +6,7 @@ export default {
6
6
  'Abrir configuración de clasificación de respuestas',
7
7
  image: 'Configuración de imagen',
8
8
  user_upload: 'Configuración de carga del usuario',
9
+ file_download: 'Configuración de descarga de archivos',
9
10
  tab_settings: 'Configuración de pestaña',
10
11
  text_editor: 'Configuración del editor de texto',
11
12
  clickable_icons:
@@ -20,9 +21,6 @@ export default {
20
21
  email: 'Ajustes del correo electrónico',
21
22
  click_to_enter: 'Haga clic para ingresar texto',
22
23
  block_quote: 'Configuración de cotización en bloque',
23
- title: 'Título',
24
- instructions: 'Instrucciones',
25
- placeholder: 'Ingrese texto aquí',
26
24
  },
27
25
  upload_file: 'Subir Archivo',
28
26
  alt_image: 'Texto alternativo para imagen',
@@ -0,0 +1,5 @@
1
+ export default {
2
+ default_title: 'Ladda ner fil(er)',
3
+ default_instructions: 'Klicka på varje länk för att ladda ner filen.',
4
+ no_files: 'Inga filer',
5
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ error: "Kunde inte generera en fråga från det tillhandahållna innehållet."
3
+ }
@@ -7,7 +7,9 @@ import open_response from './open_response'
7
7
  import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import block_quote from './block_quote'
10
+ import file_download from './file_download'
10
11
  import email from './email'
12
+ import generate_questions from './generate_questions'
11
13
 
12
14
  export default {
13
15
  user_upload,
@@ -19,5 +21,7 @@ export default {
19
21
  open_response_collate,
20
22
  scenario_choice: scenarioChoice,
21
23
  block_quote,
24
+ file_download,
22
25
  email,
26
+ generate_questions,
23
27
  }
@@ -1,9 +1,7 @@
1
1
  export default {
2
2
  user_uploads: 'Användaruppladdningar',
3
3
  dialog_view: 'Visa uppladdningar',
4
- instructions: 'Instruktioner:',
5
4
  instructions_none: 'Ingen',
6
- instructions_title: 'Elev instruktioner:',
7
5
  must_save:
8
6
  'Du måste spara detta block innan användare kan göra uppladdningar',
9
7
  uploaded: 'Uppladdat',
@@ -4,6 +4,12 @@ export default {
4
4
  name: 'Namn',
5
5
  title: 'Titel',
6
6
  org: 'Organisation',
7
- source_title: 'Källtitel' ,
7
+ source_title: 'Källtitel',
8
8
  type: 'Källtyp',
9
+ source_url: 'Källa URL',
10
+ source_types: {
11
+ none: 'Ingen',
12
+ book: 'Bok',
13
+ online_journal: 'Online Journal',
14
+ },
9
15
  }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ file_download: 'Filhämtning',
3
+ no_file_selected: 'Ingen fil har valts',
4
+ add: 'Lägg till fil',
5
+ filename_optional: 'Filnamn (valfritt)',
6
+ place_file: 'Placera fil',
7
+ display_detailed: 'Visa i detaljerad vy',
8
+ }
@@ -8,9 +8,10 @@ import open_response_collate from './open_response_collate'
8
8
  import scenarioChoice from './scenario_choice'
9
9
  import accordion from './accordion'
10
10
  import tab from './tab'
11
- import block_quote from './block_quote'
12
11
  import email from './email'
12
+ import block_quote from './block_quote'
13
13
  import horizontal_rule from './horizontal_rule'
14
+ import file_download from './file_download'
14
15
 
15
16
  export default {
16
17
  accordion,
@@ -23,7 +24,8 @@ export default {
23
24
  open_response,
24
25
  open_response_collate,
25
26
  scenario_choice: scenarioChoice,
26
- block_quote,
27
27
  email,
28
+ block_quote,
28
29
  horizontal_rule,
30
+ file_download,
29
31
  }
@@ -17,6 +17,7 @@ export default {
17
17
  email: 'E-Post',
18
18
  block_quote: 'Block citat',
19
19
  horizontal_rule: 'Delare',
20
+ file_download: 'Filhämtning',
20
21
  },
21
22
  grouping: {
22
23
  basic: 'Basic Components',
@@ -4,7 +4,8 @@ export default {
4
4
  open_response: 'Öppna svarsinställningar',
5
5
  open_response_collate: 'Öppna inställningar för svarssortering',
6
6
  image: 'Bildinställningar',
7
- user_upload: 'User Upload Settings',
7
+ user_upload: 'Användaruppladdningsinställningar',
8
+ file_download: 'Filnedladdningsinställningar',
8
9
  tab_settings: 'Flikinställningar',
9
10
  text_editor: 'Textredigeringsinställningar',
10
11
  clickable_icons: 'Inställningar för klickbara ikoner',
@@ -18,9 +19,6 @@ export default {
18
19
  email: 'E-postinställningar',
19
20
  click_to_enter: 'Klicka för att skriva in text',
20
21
  block_quote: 'Blockera offertinställningar',
21
- title: 'Titel',
22
- instructions: 'Instruktioner',
23
- placeholder: 'Skriv in text här',
24
22
  },
25
23
  upload_file: 'Ladda upp fil',
26
24
  alt_image: 'Alternativ text till bild',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-core#readme",
23
23
  "dependencies": {
24
- "@mindedge/vuetify-player": "^0.3.0",
24
+ "@mindedge/vuetify-player": "^0.3.1",
25
25
  "@tinymce/tinymce-vue": "^3.2.8",
26
26
  "eslint": "^8.11.0",
27
27
  "he": "^1.2.0",
package/plugin.js CHANGED
@@ -19,6 +19,7 @@ import OpenResponse from './components/Content/Blocks/OpenResponse'
19
19
  import OpenResponseCollate from './components/Content/Blocks/OpenResponseCollate'
20
20
  import Image from './components/Content/Blocks/Image'
21
21
  import UserUpload from './components/Content/Blocks/UserUpload'
22
+ import FileDownload from './components/Content/Blocks/FileDownload'
22
23
 
23
24
  import GlossaryPage from './pages/glossary.vue'
24
25
  import TinymcePlugin from './pages/plugins/tinymce/_plugin.vue'
@@ -32,6 +33,7 @@ import OpenResponseSettings from './components/Settings/OpenResponseSettings.vue
32
33
  import OpenResponseCollateSettings from './components/Settings/OpenResponseCollateSettings.vue'
33
34
  import ImageSettings from './components/Settings/ImageSettings.vue'
34
35
  import UserUploadSettings from './components/Settings/UserUploadSettings.vue'
36
+ import FileDownloadSettings from './components/Settings/FileDownloadSettings.vue'
35
37
  import ClickableIconsSettings from './components/Settings/ClickableIconsSettings.vue'
36
38
  import ScenarioChoiceSettings from './components/Settings/ScenarioChoiceSettings.vue'
37
39
  import VideoSettings from './components/Settings/VideoSettings.vue'
@@ -220,6 +222,15 @@ export default {
220
222
  grouping: 'components.content.blocks.group.multimedia',
221
223
  },
222
224
  },
225
+ {
226
+ tag: 'core-file-download',
227
+ template: FileDownload,
228
+ metadata: {
229
+ icon: 'mdi-cloud-download',
230
+ name: 'windward.core.shared.content_blocks.title.file_download',
231
+ grouping: 'components.content.blocks.group.multimedia',
232
+ },
233
+ },
223
234
  {
224
235
  tag: 'core-clickable-icons',
225
236
  template: ClickableIcons,
@@ -312,6 +323,15 @@ export default {
312
323
  name: 'windward.core.shared.settings.title.user_upload',
313
324
  },
314
325
  },
326
+ {
327
+ tag: 'core-file-download-settings',
328
+ template: FileDownloadSettings,
329
+ context: ['block.core-file-download'],
330
+ metadata: {
331
+ icon: 'mdi-cog',
332
+ name: 'windward.core.shared.settings.title.file_download',
333
+ },
334
+ },
315
335
  {
316
336
  tag: 'core-tab-settings',
317
337
  template: TabSettings,