@windward/core 0.1.4 → 0.2.0

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 (131) hide show
  1. package/components/Content/Blocks/Image.vue +4 -4
  2. package/components/Content/Blocks/Tab.vue +2 -8
  3. package/components/Content/Blocks/UserUpload/ManageDataTableUserFiles.vue +4 -4
  4. package/components/Navigation/Items/AskTheExpert.vue +2 -2
  5. package/components/Navigation/Items/CourseGlossaryToolNav.vue +2 -2
  6. package/components/Settings/ImageSettings.vue +69 -9
  7. package/components/Settings/ScenarioChoiceSettings.vue +4 -4
  8. package/components/Settings/TabSettings.vue +0 -3
  9. package/components/Settings/TextEditorSettings.vue +2 -2
  10. package/components/utils/MathExpressionEditor.vue +1 -1
  11. package/components/utils/TinyMCEWrapper.vue +3 -1
  12. package/components/utils/glossary/CourseGlossary.vue +16 -3
  13. package/components/utils/glossary/CourseGlossaryForm.vue +1 -0
  14. package/components/utils/glossary/GlossaryToolTip.vue +2 -2
  15. package/helpers/MathHelper.ts +1 -1
  16. package/i18n/en-US/components/settings/image.ts +8 -0
  17. package/i18n/es-ES/components/settings/image.ts +8 -0
  18. package/i18n/sv-SE/components/settings/image.ts +8 -0
  19. package/package.json +7 -2
  20. package/plugin.js +15 -28
  21. package/test/__mocks__/componentsMock.js +2 -2
  22. package/.idea/codeStyles/Project.xml +0 -58
  23. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  24. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  25. package/.idea/modules.xml +0 -8
  26. package/.idea/php-docker-settings.xml +0 -24
  27. package/.idea/php.xml +0 -19
  28. package/.idea/vcs.xml +0 -6
  29. package/.idea/watcherTasks.xml +0 -4
  30. package/.idea/windward-ui-plugin-core.iml +0 -8
  31. package/.vscode/settings.json +0 -3
  32. package/coverage/clover.xml +0 -223
  33. package/coverage/coverage-final.json +0 -16
  34. package/coverage/lcov-report/base.css +0 -224
  35. package/coverage/lcov-report/block-navigation.js +0 -87
  36. package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +0 -430
  37. package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +0 -394
  38. package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +0 -262
  39. package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +0 -295
  40. package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +0 -415
  41. package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +0 -667
  42. package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +0 -2275
  43. package/coverage/lcov-report/components/Content/Blocks/index.html +0 -206
  44. package/coverage/lcov-report/components/utils/ContentViewer.vue.html +0 -199
  45. package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +0 -919
  46. package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +0 -343
  47. package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +0 -271
  48. package/coverage/lcov-report/components/utils/index.html +0 -161
  49. package/coverage/lcov-report/config/index.html +0 -116
  50. package/coverage/lcov-report/config/tinymce.config.js.html +0 -493
  51. package/coverage/lcov-report/favicon.png +0 -0
  52. package/coverage/lcov-report/helpers/MathHelper.ts.html +0 -793
  53. package/coverage/lcov-report/helpers/index.html +0 -116
  54. package/coverage/lcov-report/helpers/tinymce/index.html +0 -116
  55. package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +0 -334
  56. package/coverage/lcov-report/index.html +0 -191
  57. package/coverage/lcov-report/prettify.css +0 -1
  58. package/coverage/lcov-report/prettify.js +0 -2
  59. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  60. package/coverage/lcov-report/sorter.js +0 -196
  61. package/coverage/lcov-report/test/index.html +0 -116
  62. package/coverage/lcov-report/test/mocks.js.html +0 -457
  63. package/coverage/lcov.info +0 -403
  64. package/lib/helpers/GlossaryHelper.d.ts +0 -9
  65. package/lib/helpers/GlossaryHelper.js +0 -118
  66. package/lib/helpers/GlossaryTerm.d.ts +0 -10
  67. package/lib/helpers/GlossaryTerm.js +0 -22
  68. package/lib/helpers/MathHelper.d.ts +0 -99
  69. package/lib/helpers/MathHelper.js +0 -194
  70. package/lib/helpers/tinymce/plugin.d.ts +0 -2
  71. package/lib/helpers/tinymce/plugin.js +0 -86
  72. package/lib/i18n/en-US/components/content/blocks/image.d.ts +0 -6
  73. package/lib/i18n/en-US/components/content/blocks/image.js +0 -7
  74. package/lib/i18n/en-US/components/content/blocks/index.d.ts +0 -75
  75. package/lib/i18n/en-US/components/content/blocks/index.js +0 -14
  76. package/lib/i18n/en-US/components/content/blocks/tab.d.ts +0 -5
  77. package/lib/i18n/en-US/components/content/blocks/tab.js +0 -6
  78. package/lib/i18n/en-US/components/content/blocks/table.d.ts +0 -5
  79. package/lib/i18n/en-US/components/content/blocks/table.js +0 -6
  80. package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +0 -13
  81. package/lib/i18n/en-US/components/content/blocks/user_upload.js +0 -14
  82. package/lib/i18n/en-US/components/content/blocks/video.d.ts +0 -48
  83. package/lib/i18n/en-US/components/content/blocks/video.js +0 -49
  84. package/lib/i18n/en-US/components/content/index.d.ts +0 -77
  85. package/lib/i18n/en-US/components/content/index.js +0 -6
  86. package/lib/i18n/en-US/components/index.d.ts +0 -140
  87. package/lib/i18n/en-US/components/index.js +0 -12
  88. package/lib/i18n/en-US/components/navigation/image.d.ts +0 -5
  89. package/lib/i18n/en-US/components/navigation/image.js +0 -6
  90. package/lib/i18n/en-US/components/navigation/index.d.ts +0 -10
  91. package/lib/i18n/en-US/components/navigation/index.js +0 -8
  92. package/lib/i18n/en-US/components/navigation/user_upload.d.ts +0 -4
  93. package/lib/i18n/en-US/components/navigation/user_upload.js +0 -5
  94. package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +0 -6
  95. package/lib/i18n/en-US/components/settings/clickable_icon.js +0 -7
  96. package/lib/i18n/en-US/components/settings/image.d.ts +0 -2
  97. package/lib/i18n/en-US/components/settings/image.js +0 -3
  98. package/lib/i18n/en-US/components/settings/index.d.ts +0 -39
  99. package/lib/i18n/en-US/components/settings/index.js +0 -14
  100. package/lib/i18n/en-US/components/settings/text_editor.d.ts +0 -8
  101. package/lib/i18n/en-US/components/settings/text_editor.js +0 -9
  102. package/lib/i18n/en-US/components/settings/user_upload.d.ts +0 -12
  103. package/lib/i18n/en-US/components/settings/user_upload.js +0 -13
  104. package/lib/i18n/en-US/components/settings/video.d.ts +0 -13
  105. package/lib/i18n/en-US/components/settings/video.js +0 -14
  106. package/lib/i18n/en-US/components/utils/index.d.ts +0 -15
  107. package/lib/i18n/en-US/components/utils/index.js +0 -6
  108. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +0 -13
  109. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +0 -14
  110. package/lib/i18n/en-US/index.d.ts +0 -197
  111. package/lib/i18n/en-US/index.js +0 -16
  112. package/lib/i18n/en-US/modules/index.d.ts +0 -2
  113. package/lib/i18n/en-US/modules/index.js +0 -6
  114. package/lib/i18n/en-US/pages/glossary.d.ts +0 -8
  115. package/lib/i18n/en-US/pages/glossary.js +0 -9
  116. package/lib/i18n/en-US/pages/index.d.ts +0 -13
  117. package/lib/i18n/en-US/pages/index.js +0 -8
  118. package/lib/i18n/en-US/pages/user_upload.d.ts +0 -4
  119. package/lib/i18n/en-US/pages/user_upload.js +0 -5
  120. package/lib/i18n/en-US/shared/content_blocks.d.ts +0 -20
  121. package/lib/i18n/en-US/shared/content_blocks.js +0 -21
  122. package/lib/i18n/en-US/shared/index.d.ts +0 -39
  123. package/lib/i18n/en-US/shared/index.js +0 -10
  124. package/lib/i18n/en-US/shared/menu.d.ts +0 -4
  125. package/lib/i18n/en-US/shared/menu.js +0 -5
  126. package/lib/i18n/en-US/shared/settings.d.ts +0 -15
  127. package/lib/i18n/en-US/shared/settings.js +0 -16
  128. package/lib/i18n/en-US.d.ts +0 -197
  129. package/lib/i18n/en-US.js +0 -15
  130. package/lib/models/UserFileAsset.d.ts +0 -5
  131. package/lib/models/UserFileAsset.js +0 -37
@@ -43,7 +43,7 @@
43
43
  class="sr-only"
44
44
  ></TextViewer>
45
45
  </v-container>
46
- <Dialog v-model="dialog" persistent :trigger="false">
46
+ <DialogBox v-model="dialog" persistent :trigger="false">
47
47
  <template #title></template>
48
48
  <template #form="{ on, attrs }">
49
49
  <v-responsive
@@ -72,13 +72,13 @@
72
72
  </v-img>
73
73
  </v-responsive>
74
74
  </template>
75
- </Dialog>
75
+ </DialogBox>
76
76
  </div>
77
77
  </template>
78
78
 
79
79
  <script>
80
80
  import _ from 'lodash'
81
- import Dialog from '~/components/Dialog'
81
+ import DialogBox from '~/components/DialogBox'
82
82
  import TextViewer from '~/components/Text/TextViewer'
83
83
  import Crypto from '~/helpers/Crypto'
84
84
  import BaseContentBlock from '~/components/Content/Blocks/BaseContentBlock'
@@ -87,7 +87,7 @@ export default {
87
87
  name: 'ContentBlockImage',
88
88
  extends: BaseContentBlock,
89
89
  components: {
90
- Dialog,
90
+ DialogBox,
91
91
  TextViewer,
92
92
  },
93
93
  data() {
@@ -1,10 +1,7 @@
1
1
  <template>
2
2
  <div>
3
- <v-container>
4
- <v-tabs
5
- background-color="primary"
6
- v-model="block.metadata.config.currentTab"
7
- >
3
+ <v-container class="pa-0">
4
+ <v-tabs dark v-model="block.metadata.config.currentTab" show-arrows>
8
5
  <v-tabs-slider></v-tabs-slider>
9
6
  <v-tab
10
7
  v-for="(tab, tabIndex) in block.metadata.config.items"
@@ -60,9 +57,6 @@ export default {
60
57
  content: '',
61
58
  }
62
59
  this.block.metadata.config.items = []
63
- if (_.isEmpty(this.block.metadata.config.tab)) {
64
- this.block.metadata.config.tab = 0
65
- }
66
60
  this.block.metadata.config.items.push(defaultObject)
67
61
  } else {
68
62
  this.block.metadata.config.items.forEach((element) => {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="text-center">
3
- <Dialog
3
+ <DialogBox
4
4
  v-bind="$attrs"
5
5
  transition="dialog-bottom-transition"
6
6
  :color="color"
@@ -22,20 +22,20 @@
22
22
  :enrollment="enrollment"
23
23
  ></DisplayUserFilesTable>
24
24
  </template>
25
- </Dialog>
25
+ </DialogBox>
26
26
  <span v-else>---</span>
27
27
  </div>
28
28
  </template>
29
29
 
30
30
  <script>
31
31
  import _ from 'lodash'
32
- import Dialog from '~/components/Dialog'
32
+ import DialogBox from '~/components/DialogBox'
33
33
 
34
34
  import DisplayUserFilesTable from './DisplayUserFilesTable.vue'
35
35
 
36
36
  export default {
37
37
  name: 'ManageDataTableUserFiles',
38
- components: { Dialog, DisplayUserFilesTable },
38
+ components: { DialogBox, DisplayUserFilesTable },
39
39
  props: {
40
40
  value: { type: Object, required: true },
41
41
  enrollment: { type: Object, required: true },
@@ -7,7 +7,7 @@
7
7
  <v-list-item-title>
8
8
  {{ $t(config.i18n) }}
9
9
  </v-list-item-title>
10
- <Dialog v-model="dialog" color="primary" text :trigger="false">
10
+ <DialogBox v-model="dialog" color="primary" text :trigger="false">
11
11
  <template #title>{{ $t(config.i18n) }}</template>
12
12
  <template #form="{ on, attrs }">
13
13
  <v-card flat v-bind="attrs" v-on="on">
@@ -104,7 +104,7 @@
104
104
  </v-container>
105
105
  </v-card>
106
106
  </template>
107
- </Dialog>
107
+ </DialogBox>
108
108
  </v-list-item-content>
109
109
  </v-list-item>
110
110
  </template>
@@ -5,14 +5,14 @@
5
5
  </v-list-item-action>
6
6
  <v-list-item-content>
7
7
  <v-list-item-title>{{ $t(config.i18n) }}</v-list-item-title>
8
- <Dialog v-model="dialog" color="primary" text :trigger="false">
8
+ <DialogBox v-model="dialog" color="primary" text :trigger="false">
9
9
  <template #title>{{ $t(config.i18n) }}</template>
10
10
  <template #form="{ on, attrs }">
11
11
  <div v-bind="attrs" v-on="on">
12
12
  <CourseGlossary />
13
13
  </div>
14
14
  </template>
15
- </Dialog>
15
+ </DialogBox>
16
16
  </v-list-item-content>
17
17
  </v-list-item>
18
18
  </template>
@@ -27,24 +27,68 @@
27
27
  v-model="block.metadata.config.modal"
28
28
  :label="$t('windward.core.components.settings.image.modal')"
29
29
  ></v-switch>
30
+ <v-tooltip top color="primary">
31
+ <template v-slot:activator="{ on, attrs }">
32
+ <div v-bind="attrs" v-on="on" class="d-flex justify-content">
33
+ <v-switch
34
+ v-model="block.metadata.config.decorative"
35
+ @change="onDecorativeToggled($event)"
36
+ :label="
37
+ $t(
38
+ 'windward.core.components.settings.image.decorative'
39
+ )
40
+ "
41
+ ></v-switch>
42
+ <div class="d-flex align-center pb-4">
43
+ <v-icon x-small>mdi-help</v-icon>
44
+ </div>
45
+ </div>
46
+ </template>
47
+ <span class="span-description">{{
48
+ $t('windward.core.components.settings.image.toggle_description')
49
+ }}</span>
50
+ </v-tooltip>
30
51
 
31
- <v-form>
52
+ <v-form v-if="!block.metadata.config.decorative">
32
53
  <v-text-field
33
54
  v-model="block.metadata.config.alt"
55
+ outlined
56
+ counter
57
+ maxlength="125"
34
58
  :label="
35
59
  $t('windward.core.components.navigation.image.default_alt')
36
60
  "
37
61
  :rules="validation.textRules"
38
- ></v-text-field>
39
- <h3 class="pb-2">
40
- {{
41
- $t(
42
- 'windward.core.components.navigation.image.default_aria_described'
43
- )
44
- }}
45
- </h3>
62
+ >
63
+ <template v-slot:append>
64
+ <v-tooltip top color="primary">
65
+ <template v-slot:activator="{ on }">
66
+ <v-icon v-on="on" small>mdi-help</v-icon>
67
+ </template>
68
+ <span class="span-description">{{
69
+ $t(
70
+ 'windward.core.components.settings.image.alt_description'
71
+ )
72
+ }}</span>
73
+ </v-tooltip>
74
+ </template>
75
+ </v-text-field>
76
+ <h5 class="pb-2">
77
+ {{ $t('windward.core.components.settings.image.screenreader') }}
78
+ <v-tooltip top color="primary">
79
+ <template v-slot:activator="{ on }">
80
+ <v-icon v-on="on" small class="pb-3">mdi-help</v-icon>
81
+ </template>
82
+ <span class="span-description">{{
83
+ $t(
84
+ 'windward.core.components.settings.image.screenreader_description'
85
+ )
86
+ }}</span>
87
+ </v-tooltip>
88
+ </h5>
46
89
  <TextEditor
47
90
  v-model="block.metadata.config.aria_describedby"
91
+ menubar="bullist numlist"
48
92
  ></TextEditor>
49
93
  </v-form>
50
94
  </v-container>
@@ -86,6 +130,9 @@ export default {
86
130
  if (!_.isBoolean(this.block.metadata.config.modal)) {
87
131
  this.block.metadata.config.modal = false
88
132
  }
133
+ if (!_.isBoolean(this.block.metadata.config.decorative)) {
134
+ this.block.metadata.config.decorative = false
135
+ }
89
136
  if (_.isEmpty(this.block.metadata.config.aria_describedby)) {
90
137
  this.block.metadata.config.aria_describedby = ''
91
138
  }
@@ -108,6 +155,12 @@ export default {
108
155
  watch: {},
109
156
  mounted() {},
110
157
  methods: {
158
+ onDecorativeToggled(evt) {
159
+ if (evt) {
160
+ this.block.metadata.config.aria_describedby = ''
161
+ this.block.metadata.config.alt = ''
162
+ }
163
+ },
111
164
  onFileSelect(file) {
112
165
  // file = null when you remove a file
113
166
  if (_.isEmpty(file)) {
@@ -139,3 +192,10 @@ export default {
139
192
  },
140
193
  }
141
194
  </script>
195
+ <style>
196
+ .span-description {
197
+ display: flex;
198
+ justify-content: center;
199
+ width: 200px;
200
+ }
201
+ </style>
@@ -117,7 +117,7 @@
117
117
  </v-col>
118
118
  </v-container>
119
119
 
120
- <Dialog
120
+ <DialogBox
121
121
  v-model="showLinkDialog"
122
122
  :trigger="false"
123
123
  action-save
@@ -171,7 +171,7 @@
171
171
  </v-treeview>
172
172
  </v-form>
173
173
  </template>
174
- </Dialog>
174
+ </DialogBox>
175
175
  </div>
176
176
  </template>
177
177
  <script>
@@ -180,14 +180,14 @@ import { mapGetters } from 'vuex'
180
180
  import BaseContentSettings from '~/components/Content/Tool/BaseContentSettings.js'
181
181
  import TextEditor from '~/components/Text/TextEditor'
182
182
  import SortableExpansionPanel from '~/components/SortableExpansionPanel.vue'
183
- import Dialog from '~/components/Dialog.vue'
183
+ import DialogBox from '~/components/DialogBox.vue'
184
184
 
185
185
  export default {
186
186
  name: 'ScenarioChoiceSettings',
187
187
  components: {
188
188
  SortableExpansionPanel,
189
189
  TextEditor,
190
- Dialog,
190
+ DialogBox,
191
191
  },
192
192
  extends: BaseContentSettings,
193
193
  computed: {
@@ -94,9 +94,6 @@ export default {
94
94
  if (_.isEmpty(this.block.metadata.config)) {
95
95
  this.block.metadata.config = {}
96
96
  }
97
- if (_.isEmpty(this.block.metadata.config.tab)) {
98
- this.block.metadata.config.tab = 0
99
- }
100
97
  if (_.isEmpty(this.block.metadata.config.currentTab)) {
101
98
  this.block.metadata.config.currentTab = 0
102
99
  }
@@ -108,7 +108,7 @@
108
108
  type=" table-row-divider, list-item, divider, list-item, divider, image,image"
109
109
  v-show="settingSelector.includes(1) && block.metadata.config.expand"
110
110
  ></v-skeleton-loader>
111
- <Dialog
111
+ <DialogBox
112
112
  v-model="dialog"
113
113
  color="primary"
114
114
  max-width="600px"
@@ -129,7 +129,7 @@
129
129
  v-on="on"
130
130
  />
131
131
  </template>
132
- </Dialog>
132
+ </DialogBox>
133
133
  </div>
134
134
  </template>
135
135
 
@@ -141,7 +141,7 @@ export default {
141
141
  spokenTextChanged: false,
142
142
  options: {
143
143
  smartFence: true,
144
- smartMode: true,
144
+ smartMode: false,
145
145
  virtualKeyboardMode: 'manual',
146
146
  keypressSound: 'none',
147
147
  plonkSound: 'none',
@@ -64,6 +64,8 @@ export default {
64
64
  visual: false,
65
65
  forced_root_block: this.root_block,
66
66
  menubar: this.menubar,
67
+ browser_spellcheck: true,
68
+ contextmenu: false,
67
69
  menu: {
68
70
  insert: {
69
71
  title: 'Insert',
@@ -82,7 +84,7 @@ export default {
82
84
  'advlist autolink lists link charmap',
83
85
  'searchreplace visualblocks code fullscreen',
84
86
  'anchor insertdatetime ',
85
- 'paste code wordcount table WindwardToolKit ',
87
+ 'paste code wordcount table WindwardToolKit',
86
88
  ],
87
89
  toolbar: this.toolbar,
88
90
  table_advtab: false,
@@ -11,7 +11,7 @@
11
11
  >
12
12
  <template #top>
13
13
  <v-toolbar flat>
14
- <Dialog
14
+ <DialogBox
15
15
  v-model="dialog"
16
16
  color="primary"
17
17
  max-width="600px"
@@ -60,7 +60,7 @@
60
60
  v-on="on"
61
61
  />
62
62
  </template>
63
- </Dialog>
63
+ </DialogBox>
64
64
  <v-spacer></v-spacer>
65
65
  <v-text-field
66
66
  v-model="search"
@@ -77,7 +77,20 @@
77
77
  <tr>
78
78
  <td>{{ item.term }}</td>
79
79
  <td>{{ item.definition }}</td>
80
- <td>{{ item.alternate_forms }}</td>
80
+ <td>
81
+ <v-row>
82
+ <div
83
+ v-for="(
84
+ item, index
85
+ ) in item.alternate_forms"
86
+ :key="index"
87
+ >
88
+ <v-chip>
89
+ {{ item }}
90
+ </v-chip>
91
+ </div>
92
+ </v-row>
93
+ </td>
81
94
  <td>{{ item.related_term }}</td>
82
95
 
83
96
  <td>
@@ -6,6 +6,7 @@
6
6
  :label="$t('windward.core.pages.glossary.term')"
7
7
  required
8
8
  :rules="validation.termRules"
9
+ :disabled="editMode"
9
10
  ></v-text-field>
10
11
  <br />
11
12
  <v-textarea
@@ -18,14 +18,14 @@
18
18
  </template>
19
19
  <div>
20
20
  <div v-if="this.$slots['definition']">
21
- <h4 class="text-capitalize">
21
+ <h6 class="text-capitalize">
22
22
  {{
23
23
  $t(
24
24
  'windward.core.components.utils.tiny_mce_wrapper.definition'
25
25
  )
26
26
  }}
27
27
  :
28
- </h4>
28
+ </h6>
29
29
  <p>
30
30
  <slot name="definition"></slot>
31
31
  </p>
@@ -184,7 +184,7 @@ export default class MathHelper {
184
184
  MathHelper.convertContentLatexToHtml(
185
185
  MathHelper.convertContentMathMLtoLatex(content)
186
186
  )
187
- )
187
+ ).replace(/contenteditable="true"/g, '');
188
188
  }
189
189
 
190
190
  /**
@@ -1,4 +1,12 @@
1
1
  export default {
2
2
  hide_background: 'Hide Background',
3
3
  modal: 'Click to open in modal',
4
+ decorative: 'Decorative Image',
5
+ toggle_description:
6
+ 'To meet accessibility standards, alt text is required for all images except for purely decorative images. This setting will add the proper alt text and screen reader text for learners.',
7
+ alt_description:
8
+ 'Alternative text is descriptive text that conveys the meaning and context of a visual item in a digital setting, intended for users who are visually impaired or otherwise unable to visually identify an image. This should be short and clear.',
9
+ screenreader: 'Screen Reader Text',
10
+ screenreader_description:
11
+ 'Screen reader text can be added to give a user using assistive technology more information about the elements on the page',
4
12
  }
@@ -1,4 +1,12 @@
1
1
  export default {
2
2
  hide_background: 'Ocultar fondo',
3
3
  modal: 'Haga clic para abrir en modal',
4
+ decorative: 'Imagen decorativa',
5
+ toggle_description:
6
+ 'Para cumplir con los estándares de accesibilidad, se requiere texto alternativo para todas las imágenes, excepto para las imágenes puramente decorativas. Esta configuración agregará el texto alternativo y el texto del lector de pantalla adecuados para los estudiantes.',
7
+ alt_description:
8
+ 'El texto alternativo es un texto descriptivo que transmite el significado y el contexto de un elemento visual en un entorno digital, destinado a usuarios con discapacidad visual o que no pueden identificar visualmente una imagen. Esto debe ser breve y claro.',
9
+ screenreader: 'Texto del lector de pantalla',
10
+ screenreader_description:
11
+ 'Se puede agregar texto al lector de pantalla para brindarle al usuario que utiliza tecnología de asistencia más información sobre los elementos de la página',
4
12
  }
@@ -1,4 +1,12 @@
1
1
  export default {
2
2
  hide_background: 'Dölj bakgrund',
3
3
  modal: 'Klicka för att öppna i modal',
4
+ decorative: 'Dekorativ bild',
5
+ toggle_description:
6
+ 'För att uppfylla tillgänglighetsstandarder krävs alt-text för alla bilder utom för rent dekorativa bilder. Den här inställningen kommer att lägga till rätt alt-text och skärmläsartext för eleverna.',
7
+ alt_description:
8
+ 'Alternativ text är beskrivande text som förmedlar innebörden och sammanhanget av ett visuellt föremål i en digital miljö, avsedd för användare som är synskadade eller på annat sätt oförmögna att visuellt identifiera en bild. Detta ska vara kort och tydligt.',
9
+ screenreader: 'Skärmläsartext',
10
+ screenreader_description:
11
+ 'Skärmläsartext kan läggas till för att ge en användare som använder hjälpmedel mer information om elementen på sidan',
4
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -12,7 +12,12 @@
12
12
  "type": "git",
13
13
  "url": "git+ssh://git@bitbucket.org/mindedge/windward-ui-plugin-core.git"
14
14
  },
15
- "author": "Jacob Rogaishio",
15
+ "author": "Jacob Rogaishio <jrogaishio@mindedge.com>",
16
+ "contributors": [
17
+ "Jacob Rogaishio <jrogaishio@mindedge.com>",
18
+ "Ted Celestin <tcelestin@mindedge.com>",
19
+ "Christina Passafaro <cpassafaro@mindedge.com>"
20
+ ],
16
21
  "license": "MIT",
17
22
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-core#readme",
18
23
  "dependencies": {
package/plugin.js CHANGED
@@ -153,8 +153,7 @@ export default {
153
153
  metadata: {
154
154
  icon: 'mdi-video',
155
155
  name: 'windward.core.shared.content_blocks.title.video',
156
- grouping:
157
- 'windward.core.shared.content_blocks.grouping.multimedia',
156
+ grouping: 'components.content.blocks.group.multimedia',
158
157
  },
159
158
  },
160
159
  {
@@ -163,8 +162,7 @@ export default {
163
162
  metadata: {
164
163
  icon: 'mdi-tab',
165
164
  name: 'windward.core.shared.content_blocks.title.tab',
166
- grouping:
167
- 'windward.core.shared.content_blocks.grouping.basic',
165
+ grouping: 'components.content.blocks.group.basic',
168
166
  },
169
167
  },
170
168
  {
@@ -173,28 +171,25 @@ export default {
173
171
  metadata: {
174
172
  icon: 'mdi-view-list',
175
173
  name: 'windward.core.shared.content_blocks.title.accordion',
176
- grouping:
177
- 'windward.core.shared.content_blocks.grouping.basic',
174
+ grouping: 'components.content.blocks.group.basic',
178
175
  },
179
176
  },
180
177
  {
181
178
  tag: 'core-open-response',
182
179
  template: OpenResponse,
183
180
  metadata: {
184
- icon: 'mdi-typewriter',
181
+ icon: 'mdi-text-long',
185
182
  name: 'windward.core.shared.content_blocks.title.open_response',
186
- grouping:
187
- 'windward.core.shared.content_blocks.grouping.basic',
183
+ grouping: 'components.content.blocks.group.basic',
188
184
  },
189
185
  },
190
186
  {
191
187
  tag: 'core-open-response-collate',
192
188
  template: OpenResponseCollate,
193
189
  metadata: {
194
- icon: 'mdi-typewriter',
190
+ icon: 'mdi-text-long',
195
191
  name: 'windward.core.shared.content_blocks.title.open_response_collate',
196
- grouping:
197
- 'windward.core.shared.content_blocks.grouping.basic',
192
+ grouping: 'components.content.blocks.group.basic',
198
193
  },
199
194
  },
200
195
  {
@@ -203,8 +198,7 @@ export default {
203
198
  metadata: {
204
199
  icon: 'mdi-image',
205
200
  name: 'windward.core.shared.content_blocks.title.image',
206
- grouping:
207
- 'windward.core.shared.content_blocks.grouping.multimedia',
201
+ grouping: 'components.content.blocks.group.multimedia',
208
202
  },
209
203
  },
210
204
  {
@@ -213,8 +207,7 @@ export default {
213
207
  metadata: {
214
208
  icon: 'mdi-cloud-upload',
215
209
  name: 'windward.core.shared.content_blocks.title.user_upload',
216
- grouping:
217
- 'windward.core.shared.content_blocks.grouping.multimedia',
210
+ grouping: 'components.content.blocks.group.multimedia',
218
211
  },
219
212
  },
220
213
  {
@@ -223,8 +216,7 @@ export default {
223
216
  metadata: {
224
217
  icon: 'mdi-format-list-checks',
225
218
  name: 'windward.core.shared.content_blocks.title.clickable_icons',
226
- grouping:
227
- 'windward.core.shared.content_blocks.grouping.basic',
219
+ grouping: 'components.content.blocks.group.basic',
228
220
  },
229
221
  },
230
222
  {
@@ -233,8 +225,7 @@ export default {
233
225
  metadata: {
234
226
  icon: 'mdi-ab-testing',
235
227
  name: 'windward.core.shared.content_blocks.title.scenario_choice',
236
- grouping:
237
- 'windward.core.shared.content_blocks.grouping.basic',
228
+ grouping: 'components.content.blocks.group.basic',
238
229
  },
239
230
  },
240
231
  {
@@ -243,8 +234,7 @@ export default {
243
234
  metadata: {
244
235
  icon: 'mdi-message',
245
236
  name: 'windward.core.shared.content_blocks.title.feedback',
246
- grouping:
247
- 'windward.core.shared.content_blocks.grouping.basic',
237
+ grouping: 'components.content.blocks.group.basic',
248
238
  },
249
239
  },
250
240
  {
@@ -253,8 +243,7 @@ export default {
253
243
  metadata: {
254
244
  icon: 'mdi-email',
255
245
  name: 'windward.core.shared.content_blocks.title.email',
256
- grouping:
257
- 'windward.core.shared.content_blocks.grouping.basic',
246
+ grouping: 'components.content.blocks.group.basic',
258
247
  },
259
248
  },
260
249
  {
@@ -263,8 +252,7 @@ export default {
263
252
  metadata: {
264
253
  icon: 'mdi-format-quote-close',
265
254
  name: 'windward.core.shared.content_blocks.title.block_quote',
266
- grouping:
267
- 'windward.core.shared.content_blocks.grouping.basic',
255
+ grouping: 'components.content.blocks.group.basic',
268
256
  },
269
257
  },
270
258
  {
@@ -273,8 +261,7 @@ export default {
273
261
  metadata: {
274
262
  icon: 'mdi-minus',
275
263
  name: 'windward.core.shared.content_blocks.title.horizontal_rule',
276
- grouping:
277
- 'windward.core.shared.content_blocks.grouping.basic',
264
+ grouping: 'components.content.blocks.group.basic',
278
265
  },
279
266
  },
280
267
  ],
@@ -23,7 +23,7 @@ jest.mock(
23
23
  )
24
24
 
25
25
  jest.mock(
26
- '~/components/Dialog.vue',
26
+ '~/components/DialogBox.vue',
27
27
  () => {
28
28
  return {
29
29
  props: {},
@@ -35,7 +35,7 @@ jest.mock(
35
35
  )
36
36
 
37
37
  jest.mock(
38
- '~/components/Dialog',
38
+ '~/components/DialogBox.vue',
39
39
  () => {
40
40
  return {
41
41
  props: {},