@windward/core 0.0.8 → 0.0.9

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 (175) hide show
  1. package/components/Content/Blocks/ClickableIcons.vue +128 -40
  2. package/components/Content/Blocks/Image.vue +2 -2
  3. package/components/Content/Blocks/ScenarioChoice.vue +262 -0
  4. package/components/Content/Blocks/Tab.vue +2 -7
  5. package/components/Settings/AccordionSettings.vue +97 -74
  6. package/components/Settings/ClickableIconsSettings.vue +101 -86
  7. package/components/Settings/ScenarioChoiceSettings.vue +329 -0
  8. package/components/Settings/TabSettings.vue +75 -61
  9. package/components/Settings/TextEditorSettings.vue +1 -3
  10. package/components/utils/FillInBlank/FillInBlankInput.vue +4 -1
  11. package/components/utils/TinyMCEWrapper.vue +1 -1
  12. package/helpers/FillInBlankHelper.ts +0 -2
  13. package/i18n/en-US/components/content/blocks/index.ts +2 -2
  14. package/i18n/en-US/components/content/blocks/scenario_choice.ts +5 -0
  15. package/i18n/en-US/components/settings/accordion.ts +5 -0
  16. package/i18n/en-US/components/settings/clickable_icon.ts +8 -0
  17. package/i18n/en-US/components/settings/index.ts +6 -0
  18. package/i18n/en-US/components/settings/scenario_choice.ts +19 -0
  19. package/i18n/en-US/components/settings/tab.ts +7 -0
  20. package/i18n/en-US/components/utils/FillInBlank/FillInBlankInput.ts +1 -1
  21. package/i18n/en-US/shared/content_blocks.ts +1 -0
  22. package/i18n/en-US/shared/settings.ts +2 -0
  23. package/i18n/es-ES/components/content/blocks/feedback.ts +2 -0
  24. package/i18n/es-ES/components/content/blocks/index.ts +2 -2
  25. package/i18n/es-ES/components/content/blocks/scenario_choice.ts +6 -0
  26. package/i18n/es-ES/components/navigation/index.ts +2 -0
  27. package/i18n/es-ES/components/settings/accordion.ts +5 -0
  28. package/i18n/es-ES/components/settings/clickable_icon.ts +8 -0
  29. package/i18n/es-ES/components/settings/index.ts +6 -0
  30. package/i18n/es-ES/components/settings/scenario_choice.ts +19 -0
  31. package/i18n/es-ES/components/{content/blocks → settings}/tab.ts +3 -0
  32. package/i18n/es-ES/components/utils/FillInBlank/FillInBlankInput.ts +13 -0
  33. package/i18n/es-ES/components/utils/FillInBlank/FillInTheBlanksManager.ts +11 -0
  34. package/i18n/es-ES/components/utils/FillInBlank/index.ts +6 -0
  35. package/i18n/es-ES/components/utils/index.ts +2 -0
  36. package/i18n/es-ES/components/utils/tiny_mce_wrapper.ts +1 -0
  37. package/i18n/es-ES/shared/content_blocks.ts +1 -0
  38. package/i18n/es-ES/shared/menu.ts +1 -0
  39. package/i18n/es-ES/shared/settings.ts +2 -0
  40. package/i18n/index.ts +11 -0
  41. package/i18n/sv-SE/components/content/blocks/feedback.ts +2 -0
  42. package/i18n/sv-SE/components/content/blocks/index.ts +2 -2
  43. package/i18n/sv-SE/components/content/blocks/scenario_choice.ts +5 -0
  44. package/i18n/sv-SE/components/navigation/index.ts +2 -0
  45. package/i18n/sv-SE/components/settings/accordion.ts +5 -0
  46. package/i18n/sv-SE/components/settings/clickable_icon.ts +8 -0
  47. package/i18n/sv-SE/components/settings/index.ts +6 -0
  48. package/i18n/sv-SE/components/settings/scenario_choice.ts +19 -0
  49. package/i18n/sv-SE/components/{content/blocks → settings}/tab.ts +3 -0
  50. package/i18n/sv-SE/components/utils/FillInBlank/FillInBlankInput.ts +13 -0
  51. package/i18n/sv-SE/components/utils/FillInBlank/FillInTheBlanksManager.ts +11 -0
  52. package/i18n/sv-SE/components/utils/FillInBlank/index.ts +6 -0
  53. package/i18n/sv-SE/components/utils/index.ts +2 -0
  54. package/i18n/sv-SE/components/utils/tiny_mce_wrapper.ts +1 -0
  55. package/i18n/sv-SE/shared/content_blocks.ts +1 -0
  56. package/i18n/sv-SE/shared/menu.ts +1 -0
  57. package/i18n/sv-SE/shared/settings.ts +2 -0
  58. package/package.json +2 -1
  59. package/plugin.js +24 -5
  60. package/test/Components/Content/Blocks/ScenarioChoice.spec.js +21 -0
  61. package/test/Components/Settings/ClickableIconsSettings.spec.js +1 -1
  62. package/test/Components/Settings/ScenarioChoiceSettings.spec.js +20 -0
  63. package/test/Feature/LocaleKeys.spec.js +9 -0
  64. package/test/__mocks__/componentsMock.js +24 -0
  65. package/test/locales.js +95 -0
  66. package/.idea/codeStyles/Project.xml +0 -58
  67. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  68. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  69. package/.idea/modules.xml +0 -8
  70. package/.idea/php-docker-settings.xml +0 -24
  71. package/.idea/php.xml +0 -19
  72. package/.idea/vcs.xml +0 -6
  73. package/.idea/watcherTasks.xml +0 -4
  74. package/.idea/windward-ui-plugin-core.iml +0 -8
  75. package/coverage/clover.xml +0 -223
  76. package/coverage/coverage-final.json +0 -16
  77. package/coverage/lcov-report/base.css +0 -224
  78. package/coverage/lcov-report/block-navigation.js +0 -87
  79. package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +0 -430
  80. package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +0 -394
  81. package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +0 -262
  82. package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +0 -295
  83. package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +0 -415
  84. package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +0 -667
  85. package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +0 -2275
  86. package/coverage/lcov-report/components/Content/Blocks/index.html +0 -206
  87. package/coverage/lcov-report/components/utils/ContentViewer.vue.html +0 -199
  88. package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +0 -919
  89. package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +0 -343
  90. package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +0 -271
  91. package/coverage/lcov-report/components/utils/index.html +0 -161
  92. package/coverage/lcov-report/config/index.html +0 -116
  93. package/coverage/lcov-report/config/tinymce.config.js.html +0 -493
  94. package/coverage/lcov-report/favicon.png +0 -0
  95. package/coverage/lcov-report/helpers/MathHelper.ts.html +0 -793
  96. package/coverage/lcov-report/helpers/index.html +0 -116
  97. package/coverage/lcov-report/helpers/tinymce/index.html +0 -116
  98. package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +0 -334
  99. package/coverage/lcov-report/index.html +0 -191
  100. package/coverage/lcov-report/prettify.css +0 -1
  101. package/coverage/lcov-report/prettify.js +0 -2
  102. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  103. package/coverage/lcov-report/sorter.js +0 -196
  104. package/coverage/lcov-report/test/index.html +0 -116
  105. package/coverage/lcov-report/test/mocks.js.html +0 -457
  106. package/coverage/lcov.info +0 -403
  107. package/i18n/en-US/components/content/blocks/tab.ts +0 -4
  108. package/lib/helpers/GlossaryHelper.d.ts +0 -9
  109. package/lib/helpers/GlossaryHelper.js +0 -118
  110. package/lib/helpers/GlossaryTerm.d.ts +0 -10
  111. package/lib/helpers/GlossaryTerm.js +0 -22
  112. package/lib/helpers/MathHelper.d.ts +0 -99
  113. package/lib/helpers/MathHelper.js +0 -194
  114. package/lib/helpers/tinymce/plugin.d.ts +0 -2
  115. package/lib/helpers/tinymce/plugin.js +0 -86
  116. package/lib/i18n/en-US/components/content/blocks/image.d.ts +0 -6
  117. package/lib/i18n/en-US/components/content/blocks/image.js +0 -7
  118. package/lib/i18n/en-US/components/content/blocks/index.d.ts +0 -75
  119. package/lib/i18n/en-US/components/content/blocks/index.js +0 -14
  120. package/lib/i18n/en-US/components/content/blocks/tab.d.ts +0 -5
  121. package/lib/i18n/en-US/components/content/blocks/tab.js +0 -6
  122. package/lib/i18n/en-US/components/content/blocks/table.d.ts +0 -5
  123. package/lib/i18n/en-US/components/content/blocks/table.js +0 -6
  124. package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +0 -13
  125. package/lib/i18n/en-US/components/content/blocks/user_upload.js +0 -14
  126. package/lib/i18n/en-US/components/content/blocks/video.d.ts +0 -48
  127. package/lib/i18n/en-US/components/content/blocks/video.js +0 -49
  128. package/lib/i18n/en-US/components/content/index.d.ts +0 -77
  129. package/lib/i18n/en-US/components/content/index.js +0 -6
  130. package/lib/i18n/en-US/components/index.d.ts +0 -140
  131. package/lib/i18n/en-US/components/index.js +0 -12
  132. package/lib/i18n/en-US/components/navigation/image.d.ts +0 -5
  133. package/lib/i18n/en-US/components/navigation/image.js +0 -6
  134. package/lib/i18n/en-US/components/navigation/index.d.ts +0 -10
  135. package/lib/i18n/en-US/components/navigation/index.js +0 -8
  136. package/lib/i18n/en-US/components/navigation/user_upload.d.ts +0 -4
  137. package/lib/i18n/en-US/components/navigation/user_upload.js +0 -5
  138. package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +0 -6
  139. package/lib/i18n/en-US/components/settings/clickable_icon.js +0 -7
  140. package/lib/i18n/en-US/components/settings/image.d.ts +0 -2
  141. package/lib/i18n/en-US/components/settings/image.js +0 -3
  142. package/lib/i18n/en-US/components/settings/index.d.ts +0 -39
  143. package/lib/i18n/en-US/components/settings/index.js +0 -14
  144. package/lib/i18n/en-US/components/settings/text_editor.d.ts +0 -8
  145. package/lib/i18n/en-US/components/settings/text_editor.js +0 -9
  146. package/lib/i18n/en-US/components/settings/user_upload.d.ts +0 -12
  147. package/lib/i18n/en-US/components/settings/user_upload.js +0 -13
  148. package/lib/i18n/en-US/components/settings/video.d.ts +0 -13
  149. package/lib/i18n/en-US/components/settings/video.js +0 -14
  150. package/lib/i18n/en-US/components/utils/index.d.ts +0 -15
  151. package/lib/i18n/en-US/components/utils/index.js +0 -6
  152. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +0 -13
  153. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +0 -14
  154. package/lib/i18n/en-US/index.d.ts +0 -197
  155. package/lib/i18n/en-US/index.js +0 -16
  156. package/lib/i18n/en-US/modules/index.d.ts +0 -2
  157. package/lib/i18n/en-US/modules/index.js +0 -6
  158. package/lib/i18n/en-US/pages/glossary.d.ts +0 -8
  159. package/lib/i18n/en-US/pages/glossary.js +0 -9
  160. package/lib/i18n/en-US/pages/index.d.ts +0 -13
  161. package/lib/i18n/en-US/pages/index.js +0 -8
  162. package/lib/i18n/en-US/pages/user_upload.d.ts +0 -4
  163. package/lib/i18n/en-US/pages/user_upload.js +0 -5
  164. package/lib/i18n/en-US/shared/content_blocks.d.ts +0 -20
  165. package/lib/i18n/en-US/shared/content_blocks.js +0 -21
  166. package/lib/i18n/en-US/shared/index.d.ts +0 -39
  167. package/lib/i18n/en-US/shared/index.js +0 -10
  168. package/lib/i18n/en-US/shared/menu.d.ts +0 -4
  169. package/lib/i18n/en-US/shared/menu.js +0 -5
  170. package/lib/i18n/en-US/shared/settings.d.ts +0 -15
  171. package/lib/i18n/en-US/shared/settings.js +0 -16
  172. package/lib/i18n/en-US.d.ts +0 -197
  173. package/lib/i18n/en-US.js +0 -15
  174. package/lib/models/UserFileAsset.d.ts +0 -5
  175. package/lib/models/UserFileAsset.js +0 -37
@@ -1,403 +0,0 @@
1
- TN:
2
- SF:components/Content/Blocks/Accordion.vue
3
- FNF:0
4
- FNH:0
5
- DA:53,1
6
- DA:54,1
7
- DA:55,1
8
- LF:3
9
- LH:3
10
- BRF:0
11
- BRH:0
12
- end_of_record
13
- TN:
14
- SF:components/Content/Blocks/Image.vue
15
- FNF:0
16
- FNH:0
17
- DA:50,1
18
- DA:51,1
19
- DA:52,1
20
- LF:3
21
- LH:3
22
- BRF:0
23
- BRH:0
24
- end_of_record
25
- TN:
26
- SF:components/Content/Blocks/Math.vue
27
- FNF:0
28
- FNH:0
29
- DA:20,1
30
- DA:21,1
31
- DA:22,1
32
- LF:3
33
- LH:3
34
- BRF:0
35
- BRH:0
36
- end_of_record
37
- TN:
38
- SF:components/Content/Blocks/RichText.vue
39
- FNF:0
40
- FNH:0
41
- DA:20,1
42
- DA:21,1
43
- DA:22,1
44
- DA:23,1
45
- LF:4
46
- LH:4
47
- BRF:0
48
- BRH:0
49
- end_of_record
50
- TN:
51
- SF:components/Content/Blocks/Tab.vue
52
- FNF:0
53
- FNH:0
54
- DA:57,1
55
- DA:58,1
56
- DA:59,1
57
- LF:3
58
- LH:3
59
- BRF:0
60
- BRH:0
61
- end_of_record
62
- TN:
63
- SF:components/Content/Blocks/Table.vue
64
- FNF:0
65
- FNH:0
66
- DA:95,1
67
- LF:1
68
- LH:1
69
- BRF:0
70
- BRH:0
71
- end_of_record
72
- TN:
73
- SF:components/Content/Blocks/Video.vue
74
- FNF:0
75
- FNH:0
76
- DA:296,1
77
- DA:297,1
78
- DA:298,1
79
- DA:299,1
80
- LF:4
81
- LH:4
82
- BRF:0
83
- BRH:0
84
- end_of_record
85
- TN:
86
- SF:components/utils/ContentViewer.vue
87
- FNF:0
88
- FNH:0
89
- DA:6,3
90
- LF:1
91
- LH:1
92
- BRF:0
93
- BRH:0
94
- end_of_record
95
- TN:
96
- SF:components/utils/MathExpressionEditor.vue
97
- FNF:0
98
- FNH:0
99
- DA:107,1
100
- DA:108,1
101
- DA:109,1
102
- LF:3
103
- LH:3
104
- BRF:0
105
- BRH:0
106
- end_of_record
107
- TN:
108
- SF:components/utils/MathLiveWrapper.vue
109
- FNF:0
110
- FNH:0
111
- DA:6,1
112
- DA:7,1
113
- DA:8,1
114
- LF:3
115
- LH:3
116
- BRF:0
117
- BRH:0
118
- end_of_record
119
- TN:
120
- SF:components/utils/TinyMCEWrapper.vue
121
- FNF:0
122
- FNH:0
123
- DA:15,3
124
- DA:16,3
125
- LF:2
126
- LH:2
127
- BRF:0
128
- BRH:0
129
- end_of_record
130
- TN:
131
- SF:config/tinymce.config.js
132
- FNF:0
133
- FNH:0
134
- LF:0
135
- LH:0
136
- BRF:0
137
- BRH:0
138
- end_of_record
139
- TN:
140
- SF:helpers/MathHelper.ts
141
- FN:4,(anonymous_0)
142
- FN:17,(anonymous_2)
143
- FN:30,(anonymous_3)
144
- FN:43,(anonymous_4)
145
- FN:55,(anonymous_5)
146
- FN:59,(anonymous_6)
147
- FN:76,(anonymous_7)
148
- FN:80,(anonymous_8)
149
- FN:110,(anonymous_9)
150
- FN:124,(anonymous_10)
151
- FN:129,(anonymous_11)
152
- FN:152,(anonymous_12)
153
- FN:157,(anonymous_13)
154
- FN:182,(anonymous_14)
155
- FN:196,(anonymous_15)
156
- FN:207,(anonymous_16)
157
- FN:226,(anonymous_17)
158
- FNF:17
159
- FNH:17
160
- FNDA:5,(anonymous_0)
161
- FNDA:3,(anonymous_2)
162
- FNDA:2,(anonymous_3)
163
- FNDA:2,(anonymous_4)
164
- FNDA:3,(anonymous_5)
165
- FNDA:2,(anonymous_6)
166
- FNDA:3,(anonymous_7)
167
- FNDA:2,(anonymous_8)
168
- FNDA:2,(anonymous_9)
169
- FNDA:3,(anonymous_10)
170
- FNDA:3,(anonymous_11)
171
- FNDA:3,(anonymous_12)
172
- FNDA:2,(anonymous_13)
173
- FNDA:2,(anonymous_14)
174
- FNDA:1,(anonymous_15)
175
- FNDA:2,(anonymous_16)
176
- FNDA:2,(anonymous_17)
177
- DA:1,5
178
- DA:2,5
179
- DA:3,5
180
- DA:4,5
181
- DA:8,5
182
- DA:17,5
183
- DA:18,3
184
- DA:20,3
185
- DA:30,5
186
- DA:31,2
187
- DA:33,2
188
- DA:43,5
189
- DA:44,2
190
- DA:46,2
191
- DA:55,5
192
- DA:56,3
193
- DA:57,3
194
- DA:58,3
195
- DA:59,2
196
- DA:60,2
197
- DA:67,3
198
- DA:76,5
199
- DA:77,3
200
- DA:78,3
201
- DA:79,3
202
- DA:80,2
203
- DA:81,2
204
- DA:82,2
205
- DA:83,1
206
- DA:90,2
207
- DA:91,1
208
- DA:101,3
209
- DA:110,5
210
- DA:112,2
211
- DA:114,2
212
- DA:124,5
213
- DA:125,3
214
- DA:127,3
215
- DA:128,3
216
- DA:129,2
217
- DA:130,3
218
- DA:142,3
219
- DA:152,5
220
- DA:153,3
221
- DA:155,3
222
- DA:156,3
223
- DA:157,2
224
- DA:158,2
225
- DA:159,2
226
- DA:172,3
227
- DA:182,5
228
- DA:183,2
229
- DA:196,5
230
- DA:197,1
231
- DA:207,5
232
- DA:208,2
233
- DA:210,2
234
- DA:211,2
235
- DA:212,1
236
- DA:213,1
237
- DA:216,1
238
- DA:226,5
239
- DA:227,2
240
- DA:229,2
241
- DA:230,2
242
- DA:231,1
243
- DA:234,1
244
- DA:236,5
245
- LF:68
246
- LH:68
247
- BRDA:58,0,0,2
248
- BRDA:79,1,0,2
249
- BRDA:82,2,0,1
250
- BRDA:90,3,0,1
251
- BRDA:128,4,0,2
252
- BRDA:156,5,0,2
253
- BRDA:211,6,0,1
254
- BRDA:230,7,0,1
255
- BRF:8
256
- BRH:8
257
- end_of_record
258
- TN:
259
- SF:helpers/tinymce/plugin.ts
260
- FN:1,(anonymous_0)
261
- FN:5,(anonymous_1)
262
- FN:22,(anonymous_2)
263
- FN:36,(anonymous_3)
264
- FN:52,(anonymous_4)
265
- FN:56,(anonymous_5)
266
- FN:59,setOnClickEquationContent
267
- FN:72,(anonymous_7)
268
- FNF:8
269
- FNH:0
270
- FNDA:0,(anonymous_0)
271
- FNDA:0,(anonymous_1)
272
- FNDA:0,(anonymous_2)
273
- FNDA:0,(anonymous_3)
274
- FNDA:0,(anonymous_4)
275
- FNDA:0,(anonymous_5)
276
- FNDA:0,setOnClickEquationContent
277
- FNDA:0,(anonymous_7)
278
- DA:1,3
279
- DA:5,0
280
- DA:6,0
281
- DA:23,0
282
- DA:24,0
283
- DA:26,0
284
- DA:32,0
285
- DA:33,0
286
- DA:37,0
287
- DA:39,0
288
- DA:40,0
289
- DA:42,0
290
- DA:43,0
291
- DA:49,0
292
- DA:53,0
293
- DA:56,0
294
- DA:57,0
295
- DA:60,0
296
- DA:61,0
297
- DA:66,0
298
- DA:67,0
299
- DA:68,0
300
- DA:69,0
301
- DA:72,0
302
- DA:73,0
303
- DA:74,0
304
- DA:83,3
305
- LF:27
306
- LH:2
307
- BRDA:23,0,0,0
308
- BRDA:37,1,0,0
309
- BRDA:37,1,1,0
310
- BRDA:68,2,0,0
311
- BRF:4
312
- BRH:0
313
- end_of_record
314
- TN:
315
- SF:test/mocks.js
316
- FN:7,(anonymous_0)
317
- FN:8,(anonymous_1)
318
- FN:9,(anonymous_2)
319
- FN:10,(anonymous_3)
320
- FN:11,(anonymous_4)
321
- FN:12,(anonymous_5)
322
- FN:13,(anonymous_6)
323
- FN:14,(anonymous_7)
324
- FN:15,(anonymous_8)
325
- FN:19,(anonymous_9)
326
- FN:22,(anonymous_10)
327
- FN:26,(anonymous_11)
328
- FN:42,(anonymous_12)
329
- FN:44,(anonymous_13)
330
- FN:62,(anonymous_14)
331
- FN:73,(anonymous_15)
332
- FN:74,(anonymous_16)
333
- FN:77,(anonymous_17)
334
- FN:78,(anonymous_18)
335
- FN:101,(anonymous_19)
336
- FN:102,(anonymous_20)
337
- FN:106,(anonymous_21)
338
- FN:110,(anonymous_22)
339
- FN:111,(anonymous_23)
340
- FN:112,(anonymous_24)
341
- FN:113,(anonymous_25)
342
- FNF:26
343
- FNH:1
344
- FNDA:0,(anonymous_0)
345
- FNDA:0,(anonymous_1)
346
- FNDA:0,(anonymous_2)
347
- FNDA:0,(anonymous_3)
348
- FNDA:0,(anonymous_4)
349
- FNDA:0,(anonymous_5)
350
- FNDA:0,(anonymous_6)
351
- FNDA:0,(anonymous_7)
352
- FNDA:0,(anonymous_8)
353
- FNDA:0,(anonymous_9)
354
- FNDA:0,(anonymous_10)
355
- FNDA:0,(anonymous_11)
356
- FNDA:0,(anonymous_12)
357
- FNDA:0,(anonymous_13)
358
- FNDA:0,(anonymous_14)
359
- FNDA:0,(anonymous_15)
360
- FNDA:0,(anonymous_16)
361
- FNDA:2,(anonymous_17)
362
- FNDA:0,(anonymous_18)
363
- FNDA:0,(anonymous_19)
364
- FNDA:0,(anonymous_20)
365
- FNDA:0,(anonymous_21)
366
- FNDA:0,(anonymous_22)
367
- FNDA:0,(anonymous_23)
368
- FNDA:0,(anonymous_24)
369
- FNDA:0,(anonymous_25)
370
- DA:2,7
371
- DA:3,7
372
- DA:4,7
373
- DA:7,7
374
- DA:8,7
375
- DA:9,7
376
- DA:10,7
377
- DA:11,7
378
- DA:12,7
379
- DA:13,7
380
- DA:14,7
381
- DA:15,7
382
- DA:17,7
383
- DA:20,0
384
- DA:23,0
385
- DA:24,0
386
- DA:26,0
387
- DA:27,0
388
- DA:31,0
389
- DA:38,7
390
- DA:45,0
391
- DA:77,2
392
- DA:78,0
393
- DA:118,7
394
- DA:119,7
395
- DA:120,7
396
- DA:121,7
397
- DA:122,7
398
- DA:124,7
399
- LF:29
400
- LH:21
401
- BRF:0
402
- BRH:0
403
- end_of_record
@@ -1,4 +0,0 @@
1
- export default {
2
- add_tab: 'Add Tab',
3
- delete_tab: 'Delete Tab'
4
- }
@@ -1,9 +0,0 @@
1
- import GlossaryTerm from "../helpers/GlossaryTerm";
2
- export default class GlossaryHelper {
3
- private static glossaryRegex;
4
- static makeToolTip(term: GlossaryTerm, text: String): string;
5
- static containsGlossaryTerms(content: string): boolean;
6
- static getContentVerifiedGlossaryTerms(content: string, glossary: any): GlossaryTerm[];
7
- static getContentUnVerifiedGlossaryTerms(content: string, glossary: any): GlossaryTerm[];
8
- static renderGlossaryWordsHtml(content: string, glossary: any): string;
9
- }
@@ -1,118 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var GlossaryTerm_1 = require("../helpers/GlossaryTerm");
4
- var _ = require("lodash");
5
- var GlossaryHelper = /** @class */ (function () {
6
- function GlossaryHelper() {
7
- }
8
- GlossaryHelper.makeToolTip = function (term, text) {
9
- var word = _.isString(term.term) ?
10
- '<template v-slot:term>' +
11
- text +
12
- '</template>' : '';
13
- var definition = _.isString(term.definition) ?
14
- '<template v-slot:definition>' +
15
- term.definition +
16
- '</template>' : '';
17
- var alternate_forms = _.isString(term.alternate_forms) ?
18
- '<template v-slot:alternate_forms>' +
19
- term.alternate_forms +
20
- '</template>' : '';
21
- var related_terms = _.isString(term.related_term) ?
22
- '<template v-slot:related_terms>' +
23
- term.related_term +
24
- '</template>' : '';
25
- return ('<plugin-core-glossary-tool-tip>' +
26
- word
27
- +
28
- definition
29
- +
30
- alternate_forms
31
- +
32
- related_terms
33
- +
34
- '</plugin-core-glossary-tool-tip>');
35
- };
36
- GlossaryHelper.containsGlossaryTerms = function (content) {
37
- var regex = this.glossaryRegex;
38
- return regex.exec(content) !== null;
39
- };
40
- GlossaryHelper.getContentVerifiedGlossaryTerms = function (content, glossary) {
41
- var regex = this.glossaryRegex;
42
- var currentGlossary = glossary;
43
- var match;
44
- var verifiedTerms = [];
45
- while ((match = regex.exec(content)) !== null) {
46
- // This is necessary to avoid infinite loops with zero-width matches
47
- if (match.index === regex.lastIndex) {
48
- regex.lastIndex++;
49
- }
50
- // The result can be accessed through the `m`-variable.
51
- currentGlossary.forEach(function (term) {
52
- var addTerm = true;
53
- verifiedTerms.forEach(function (verifiedTerm) {
54
- if (_.trim(_.toLower(verifiedTerm.term)) === _.trim(_.toLower(term.term))) {
55
- addTerm = false;
56
- }
57
- });
58
- if (_.trim(_.toLower(match[1])) === _.trim(_.toLower(term.term)) && addTerm) {
59
- verifiedTerms.push(new GlossaryTerm_1.default(term));
60
- }
61
- });
62
- }
63
- return verifiedTerms;
64
- };
65
- GlossaryHelper.getContentUnVerifiedGlossaryTerms = function (content, glossary) {
66
- var regex = this.glossaryRegex;
67
- var match;
68
- var verifiedTerms = this.getContentVerifiedGlossaryTerms(content, glossary);
69
- var unVerifiedTerms = [];
70
- var _loop_1 = function () {
71
- // This is necessary to avoid infinite loops with zero-width matches
72
- if (match.index === regex.lastIndex) {
73
- regex.lastIndex++;
74
- }
75
- var inGlossary = [];
76
- inGlossary = glossary.filter(function (item) {
77
- if (_.trim(_.toLower(item.term)) === _.trim(_.toLower(match[1]))) {
78
- return item;
79
- }
80
- });
81
- var inUnverifiedArray = false;
82
- unVerifiedTerms.forEach(function (unVerifiedTerm) {
83
- if (_.trim(_.toLower(unVerifiedTerm.term)) === _.trim(_.toLower(match[1]))) {
84
- inUnverifiedArray = true;
85
- }
86
- });
87
- if (inGlossary.length === 0 && !inUnverifiedArray) {
88
- unVerifiedTerms.push(new GlossaryTerm_1.default({ term: _.trim(match[1]), definition: 'n/a' }));
89
- }
90
- };
91
- while ((match = regex.exec(content)) !== null) {
92
- _loop_1();
93
- }
94
- return unVerifiedTerms;
95
- };
96
- GlossaryHelper.renderGlossaryWordsHtml = function (content, glossary) {
97
- var _this = this;
98
- var regex = this.glossaryRegex;
99
- var currentGlossary = glossary;
100
- var match;
101
- while ((match = regex.exec(content)) !== null) {
102
- // This is necessary to avoid infinite loops with zero-width matches
103
- if (match.index === regex.lastIndex) {
104
- regex.lastIndex++;
105
- }
106
- // The result can be accessed through the `m`-variable.
107
- currentGlossary.forEach(function (term) {
108
- if (_.trim(_.toLower(match[1])) === _.trim(_.toLower(term.term))) {
109
- content = content.replace(match[0], _this.makeToolTip(term, match[1]));
110
- }
111
- });
112
- }
113
- return content;
114
- };
115
- GlossaryHelper.glossaryRegex = /<span.*?.class="glossary-word".*?>(.*?)<\/span>/g;
116
- return GlossaryHelper;
117
- }());
118
- exports.default = GlossaryHelper;
@@ -1,10 +0,0 @@
1
- declare class GlossaryTerm {
2
- term: string;
3
- definition: string;
4
- alternate_forms: any;
5
- related_term: any;
6
- private required;
7
- constructor(params: any);
8
- static toString(): void;
9
- }
10
- export default GlossaryTerm;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var GlossaryTerm = /** @class */ (function () {
4
- function GlossaryTerm(params) {
5
- this.alternate_forms = null;
6
- this.related_term = null;
7
- this.required = ['term', 'definition'];
8
- this.required.forEach(function (field) {
9
- if (!params[field]) {
10
- throw new Error('Glossary term ' + field + ' is required');
11
- }
12
- });
13
- this.term = params.term;
14
- this.definition = params.definition;
15
- this.alternate_forms = params.alternate_forms || null;
16
- this.related_term = params.related_term || null;
17
- }
18
- GlossaryTerm.toString = function () {
19
- };
20
- return GlossaryTerm;
21
- }());
22
- exports.default = GlossaryTerm;
@@ -1,99 +0,0 @@
1
- import * as mathLiveObject from 'mathlive';
2
- export default class MathHelper {
3
- /**
4
- * expose mathlive object
5
- */
6
- static Mathlive: typeof mathLiveObject;
7
- /**
8
- * containsMathML
9
- * @param content
10
- * checks is string contains mathml
11
- * @return boolean
12
- *
13
- */
14
- static containsMathML(content: string): boolean;
15
- /**
16
- * containsLatex
17
- * @param content
18
- * checks is string contains latex
19
- * @return boolean
20
- *
21
- */
22
- static containsLatex(content: string): boolean;
23
- /**
24
- * containSREnhancedLatex
25
- * @param content
26
- * checks is string contains latex
27
- * @return boolean
28
- *
29
- */
30
- static containSREnhancedLatex(content: string): boolean;
31
- /**
32
- * convertMathMLToLatex
33
- * @param content
34
- * attempts to find mml in content string and replace it with latex equivalent
35
- * @return string
36
- */
37
- static convertContentMathMLtoLatex(content: string): string;
38
- /**
39
- * wrapMathContentForTinyMCE
40
- * @param content
41
- * wrap content in span with math class for tinymce
42
- * @return string
43
- */
44
- static wrapMathContentForTinyMCE(content: string): string;
45
- /**
46
- * check Math Content Wrapped For TMCE
47
- * @param content
48
- * checks all content
49
- * @return string
50
- */
51
- static checkMathContentWrappedForTMCE(content: string): boolean;
52
- /**
53
- * convertContentLatexToHtml
54
- * @param content
55
- * attempts to find latex in content string and replace it with latex equivalent
56
- * @return string
57
- *
58
- */
59
- static convertContentLatexToHtml(content: string): string;
60
- /**
61
- * convertContentSREnhancedLatexToHtml
62
- * @param content
63
- * attempts to find latex in content string and place custom SR text on renderer math div
64
- * @return string
65
- *
66
- */
67
- static convertContentSREnhancedLatexToHtml(content: string): string;
68
- /**
69
- * convertMathContentToHtml
70
- * @param content
71
- * attempts to find any math format in content string and convert it to HTML
72
- * @return string
73
- *
74
- */
75
- static convertMathContentToHtml(content: string): string;
76
- /**
77
- * convertMathMLToLatex
78
- * @param content
79
- * converts mml to latex
80
- *
81
- */
82
- static convertMathMLToLatex(content: string): string;
83
- /**
84
- * parseSREnhancedLatexString
85
- * @param content
86
- * parse SR enhanced latex string and return Object
87
- * @return Object
88
- *
89
- */
90
- static parseSREnhancedLatexString(content: string): object;
91
- /**
92
- * parseSRLatex
93
- * @param content
94
- * parse latex expression from string
95
- * @return any
96
- *
97
- */
98
- static parseLatexString(content: string): string;
99
- }