@windward/core 0.4.3 → 0.5.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 (159) hide show
  1. package/.idea/codeStyles/Project.xml +58 -0
  2. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  3. package/.idea/inspectionProfiles/Project_Default.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/php-docker-settings.xml +24 -0
  6. package/.idea/php.xml +19 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/.idea/watcherTasks.xml +4 -0
  9. package/.idea/windward-ui-plugin-core.iml +8 -0
  10. package/components/Content/Blocks/Accordion.vue +10 -6
  11. package/components/Content/Blocks/ClickableIcons.vue +6 -5
  12. package/components/Content/Blocks/Feedback.vue +1 -1
  13. package/components/Content/Blocks/FileDownload/FileLinks.vue +82 -0
  14. package/components/Content/Blocks/FileDownload/FileTable.vue +106 -0
  15. package/components/Content/Blocks/FileDownload.vue +145 -0
  16. package/components/Content/Blocks/GenerateAIQuestionButton.vue +61 -0
  17. package/components/Content/Blocks/ScenarioChoice.vue +2 -2
  18. package/components/Content/Blocks/UserUpload.vue +15 -36
  19. package/components/Content/Blocks/Video.vue +2 -57
  20. package/components/Settings/AccordionSettings.vue +3 -6
  21. package/components/Settings/BlockQuoteSettings.vue +2 -2
  22. package/components/Settings/EmailSettings.vue +2 -2
  23. package/components/Settings/FileDownloadSettings.vue +168 -0
  24. package/components/Settings/UserUploadSettings.vue +36 -39
  25. package/components/utils/ContentViewer.vue +1 -0
  26. package/components/utils/TinyMCEWrapper.vue +15 -16
  27. package/components/utils/assets/tinymce/content/global.scss +10 -0
  28. package/config/menu.config.json +475 -0
  29. package/coverage/clover.xml +223 -0
  30. package/coverage/coverage-final.json +16 -0
  31. package/coverage/lcov-report/base.css +224 -0
  32. package/coverage/lcov-report/block-navigation.js +87 -0
  33. package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +430 -0
  34. package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +394 -0
  35. package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +262 -0
  36. package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +295 -0
  37. package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +415 -0
  38. package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +667 -0
  39. package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +2275 -0
  40. package/coverage/lcov-report/components/Content/Blocks/index.html +206 -0
  41. package/coverage/lcov-report/components/utils/ContentViewer.vue.html +199 -0
  42. package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +919 -0
  43. package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +343 -0
  44. package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +271 -0
  45. package/coverage/lcov-report/components/utils/index.html +161 -0
  46. package/coverage/lcov-report/config/index.html +116 -0
  47. package/coverage/lcov-report/config/tinymce.config.js.html +493 -0
  48. package/coverage/lcov-report/favicon.png +0 -0
  49. package/coverage/lcov-report/helpers/MathHelper.ts.html +793 -0
  50. package/coverage/lcov-report/helpers/index.html +116 -0
  51. package/coverage/lcov-report/helpers/tinymce/index.html +116 -0
  52. package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +334 -0
  53. package/coverage/lcov-report/index.html +191 -0
  54. package/coverage/lcov-report/prettify.css +1 -0
  55. package/coverage/lcov-report/prettify.js +2 -0
  56. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  57. package/coverage/lcov-report/sorter.js +196 -0
  58. package/coverage/lcov-report/test/index.html +116 -0
  59. package/coverage/lcov-report/test/mocks.js.html +457 -0
  60. package/coverage/lcov.info +403 -0
  61. package/i18n/en-US/components/content/blocks/file_download.ts +5 -0
  62. package/i18n/en-US/components/content/blocks/generate_questions.ts +3 -0
  63. package/i18n/en-US/components/content/blocks/index.ts +4 -0
  64. package/i18n/en-US/components/content/blocks/user_upload.ts +0 -2
  65. package/i18n/en-US/components/settings/file_download.ts +8 -0
  66. package/i18n/en-US/components/settings/index.ts +2 -0
  67. package/i18n/en-US/shared/content_blocks.ts +1 -0
  68. package/i18n/en-US/shared/settings.ts +1 -3
  69. package/i18n/es-ES/components/content/blocks/file_download.ts +5 -0
  70. package/i18n/es-ES/components/content/blocks/generate_questions.ts +3 -0
  71. package/i18n/es-ES/components/content/blocks/index.ts +6 -2
  72. package/i18n/es-ES/components/content/blocks/user_upload.ts +0 -2
  73. package/i18n/es-ES/components/settings/file_download.ts +8 -0
  74. package/i18n/es-ES/components/settings/index.ts +4 -2
  75. package/i18n/es-ES/shared/content_blocks.ts +1 -0
  76. package/i18n/es-ES/shared/settings.ts +1 -3
  77. package/i18n/sv-SE/components/content/blocks/file_download.ts +5 -0
  78. package/i18n/sv-SE/components/content/blocks/generate_questions.ts +3 -0
  79. package/i18n/sv-SE/components/content/blocks/index.ts +4 -0
  80. package/i18n/sv-SE/components/content/blocks/user_upload.ts +0 -2
  81. package/i18n/sv-SE/components/settings/file_download.ts +8 -0
  82. package/i18n/sv-SE/components/settings/index.ts +4 -2
  83. package/i18n/sv-SE/shared/content_blocks.ts +1 -0
  84. package/i18n/sv-SE/shared/settings.ts +2 -4
  85. package/lib/helpers/GlossaryHelper.d.ts +9 -0
  86. package/lib/helpers/GlossaryHelper.js +118 -0
  87. package/lib/helpers/GlossaryTerm.d.ts +10 -0
  88. package/lib/helpers/GlossaryTerm.js +22 -0
  89. package/lib/helpers/MathHelper.d.ts +99 -0
  90. package/lib/helpers/MathHelper.js +194 -0
  91. package/lib/helpers/tinymce/plugin.d.ts +2 -0
  92. package/lib/helpers/tinymce/plugin.js +86 -0
  93. package/lib/i18n/en-US/components/content/blocks/image.d.ts +6 -0
  94. package/lib/i18n/en-US/components/content/blocks/image.js +7 -0
  95. package/lib/i18n/en-US/components/content/blocks/index.d.ts +75 -0
  96. package/lib/i18n/en-US/components/content/blocks/index.js +14 -0
  97. package/lib/i18n/en-US/components/content/blocks/tab.d.ts +5 -0
  98. package/lib/i18n/en-US/components/content/blocks/tab.js +6 -0
  99. package/lib/i18n/en-US/components/content/blocks/table.d.ts +5 -0
  100. package/lib/i18n/en-US/components/content/blocks/table.js +6 -0
  101. package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +13 -0
  102. package/lib/i18n/en-US/components/content/blocks/user_upload.js +14 -0
  103. package/lib/i18n/en-US/components/content/blocks/video.d.ts +48 -0
  104. package/lib/i18n/en-US/components/content/blocks/video.js +49 -0
  105. package/lib/i18n/en-US/components/content/index.d.ts +77 -0
  106. package/lib/i18n/en-US/components/content/index.js +6 -0
  107. package/lib/i18n/en-US/components/index.d.ts +140 -0
  108. package/lib/i18n/en-US/components/index.js +12 -0
  109. package/lib/i18n/en-US/components/navigation/image.d.ts +5 -0
  110. package/lib/i18n/en-US/components/navigation/image.js +6 -0
  111. package/lib/i18n/en-US/components/navigation/index.d.ts +10 -0
  112. package/lib/i18n/en-US/components/navigation/index.js +8 -0
  113. package/lib/i18n/en-US/components/navigation/user_upload.d.ts +4 -0
  114. package/lib/i18n/en-US/components/navigation/user_upload.js +5 -0
  115. package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +6 -0
  116. package/lib/i18n/en-US/components/settings/clickable_icon.js +7 -0
  117. package/lib/i18n/en-US/components/settings/image.d.ts +2 -0
  118. package/lib/i18n/en-US/components/settings/image.js +3 -0
  119. package/lib/i18n/en-US/components/settings/index.d.ts +39 -0
  120. package/lib/i18n/en-US/components/settings/index.js +14 -0
  121. package/lib/i18n/en-US/components/settings/text_editor.d.ts +8 -0
  122. package/lib/i18n/en-US/components/settings/text_editor.js +9 -0
  123. package/lib/i18n/en-US/components/settings/user_upload.d.ts +12 -0
  124. package/lib/i18n/en-US/components/settings/user_upload.js +13 -0
  125. package/lib/i18n/en-US/components/settings/video.d.ts +13 -0
  126. package/lib/i18n/en-US/components/settings/video.js +14 -0
  127. package/lib/i18n/en-US/components/utils/index.d.ts +15 -0
  128. package/lib/i18n/en-US/components/utils/index.js +6 -0
  129. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +13 -0
  130. package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +14 -0
  131. package/lib/i18n/en-US/index.d.ts +197 -0
  132. package/lib/i18n/en-US/index.js +16 -0
  133. package/lib/i18n/en-US/modules/index.d.ts +2 -0
  134. package/lib/i18n/en-US/modules/index.js +6 -0
  135. package/lib/i18n/en-US/pages/glossary.d.ts +8 -0
  136. package/lib/i18n/en-US/pages/glossary.js +9 -0
  137. package/lib/i18n/en-US/pages/index.d.ts +13 -0
  138. package/lib/i18n/en-US/pages/index.js +8 -0
  139. package/lib/i18n/en-US/pages/user_upload.d.ts +4 -0
  140. package/lib/i18n/en-US/pages/user_upload.js +5 -0
  141. package/lib/i18n/en-US/shared/content_blocks.d.ts +20 -0
  142. package/lib/i18n/en-US/shared/content_blocks.js +21 -0
  143. package/lib/i18n/en-US/shared/index.d.ts +39 -0
  144. package/lib/i18n/en-US/shared/index.js +10 -0
  145. package/lib/i18n/en-US/shared/menu.d.ts +4 -0
  146. package/lib/i18n/en-US/shared/menu.js +5 -0
  147. package/lib/i18n/en-US/shared/settings.d.ts +15 -0
  148. package/lib/i18n/en-US/shared/settings.js +16 -0
  149. package/lib/i18n/en-US.d.ts +197 -0
  150. package/lib/i18n/en-US.js +15 -0
  151. package/lib/models/UserFileAsset.d.ts +5 -0
  152. package/lib/models/UserFileAsset.js +37 -0
  153. package/package.json +2 -2
  154. package/plugin.js +20 -0
  155. package/test/Components/Content/Blocks/FileDownload.spec.js +25 -0
  156. package/test/Components/Content/Blocks/Video.spec.js +0 -22
  157. package/test/Components/Settings/FileDownloadSettings.spec.js +20 -0
  158. package/test/Components/Settings/UserUploadSettings.spec.js +1 -1
  159. package/utils/index.js +2 -0
@@ -0,0 +1,475 @@
1
+ [
2
+ {
3
+ "id": "add-row-above"
4
+ },
5
+ {
6
+ "id": "add-row-below"
7
+ },
8
+ {
9
+ "id": "add-column-before"
10
+ },
11
+ {
12
+ "id": "add-column-after"
13
+ },
14
+ {
15
+ "type": "divider"
16
+ },
17
+ {
18
+ "id": "delete-row"
19
+ },
20
+ {
21
+ "id": "delete-column"
22
+ },
23
+ {
24
+ "type": "divider"
25
+ },
26
+ {
27
+ "submenu": [
28
+ {
29
+ "label": " ⋱ ",
30
+ "id": "environment-no-border"
31
+ },
32
+ {
33
+ "label": "(⋱)",
34
+ "id": "environment-parentheses"
35
+ },
36
+ {
37
+ "label": "[⋱]",
38
+ "id": "environment-brackets"
39
+ },
40
+ {
41
+ "label": "|⋱|",
42
+ "id": "environment-bar"
43
+ },
44
+ {
45
+ "label": "{⋱}",
46
+ "id": "environment-braces"
47
+ }
48
+ ],
49
+ "submenuClass": "border-submenu"
50
+ },
51
+ {
52
+ "type": "divider"
53
+ },
54
+ {
55
+ "id": "insert-matrix",
56
+ "submenu": [
57
+ {
58
+ "label": "☐",
59
+ "data": {
60
+ "row": 1,
61
+ "col": 1
62
+ }
63
+ },
64
+ {
65
+ "label": "☐",
66
+ "data": {
67
+ "row": 1,
68
+ "col": 2
69
+ }
70
+ },
71
+ {
72
+ "label": "☐",
73
+ "data": {
74
+ "row": 1,
75
+ "col": 3
76
+ }
77
+ },
78
+ {
79
+ "label": "☐",
80
+ "data": {
81
+ "row": 1,
82
+ "col": 4
83
+ }
84
+ },
85
+ {
86
+ "label": "☐",
87
+ "data": {
88
+ "row": 1,
89
+ "col": 5
90
+ }
91
+ },
92
+ {
93
+ "label": "☐",
94
+ "data": {
95
+ "row": 2,
96
+ "col": 1
97
+ }
98
+ },
99
+ {
100
+ "label": "☐",
101
+ "data": {
102
+ "row": 2,
103
+ "col": 2
104
+ }
105
+ },
106
+ {
107
+ "label": "☐",
108
+ "data": {
109
+ "row": 2,
110
+ "col": 3
111
+ }
112
+ },
113
+ {
114
+ "label": "☐",
115
+ "data": {
116
+ "row": 2,
117
+ "col": 4
118
+ }
119
+ },
120
+ {
121
+ "label": "☐",
122
+ "data": {
123
+ "row": 2,
124
+ "col": 5
125
+ }
126
+ },
127
+ {
128
+ "label": "☐",
129
+ "data": {
130
+ "row": 3,
131
+ "col": 1
132
+ }
133
+ },
134
+ {
135
+ "label": "☐",
136
+ "data": {
137
+ "row": 3,
138
+ "col": 2
139
+ }
140
+ },
141
+ {
142
+ "label": "☐",
143
+ "data": {
144
+ "row": 3,
145
+ "col": 3
146
+ }
147
+ },
148
+ {
149
+ "label": "☐",
150
+ "data": {
151
+ "row": 3,
152
+ "col": 4
153
+ }
154
+ },
155
+ {
156
+ "label": "☐",
157
+ "data": {
158
+ "row": 3,
159
+ "col": 5
160
+ }
161
+ },
162
+ {
163
+ "label": "☐",
164
+ "data": {
165
+ "row": 4,
166
+ "col": 1
167
+ }
168
+ },
169
+ {
170
+ "label": "☐",
171
+ "data": {
172
+ "row": 4,
173
+ "col": 2
174
+ }
175
+ },
176
+ {
177
+ "label": "☐",
178
+ "data": {
179
+ "row": 4,
180
+ "col": 3
181
+ }
182
+ },
183
+ {
184
+ "label": "☐",
185
+ "data": {
186
+ "row": 4,
187
+ "col": 4
188
+ }
189
+ },
190
+ {
191
+ "label": "☐",
192
+ "data": {
193
+ "row": 4,
194
+ "col": 5
195
+ }
196
+ },
197
+ {
198
+ "label": "☐",
199
+ "data": {
200
+ "row": 5,
201
+ "col": 1
202
+ }
203
+ },
204
+ {
205
+ "label": "☐",
206
+ "data": {
207
+ "row": 5,
208
+ "col": 2
209
+ }
210
+ },
211
+ {
212
+ "label": "☐",
213
+ "data": {
214
+ "row": 5,
215
+ "col": 3
216
+ }
217
+ },
218
+ {
219
+ "label": "☐",
220
+ "data": {
221
+ "row": 5,
222
+ "col": 4
223
+ }
224
+ },
225
+ {
226
+ "label": "☐",
227
+ "data": {
228
+ "row": 5,
229
+ "col": 5
230
+ }
231
+ }
232
+ ],
233
+ "submenuClass": "insert-matrix-submenu",
234
+ "columnCount": 5
235
+ },
236
+ {
237
+ "id": "mode",
238
+ "submenu": [
239
+ {
240
+ "id": "mode-math"
241
+ },
242
+ {
243
+ "id": "mode-text"
244
+ },
245
+ {
246
+ "id": "mode-latex"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "type": "divider"
252
+ },
253
+ {
254
+ "id": "variant",
255
+ "submenu": [
256
+ {},
257
+ {},
258
+ {},
259
+ {},
260
+ {},
261
+ {}
262
+ ],
263
+ "submenuClass": "variant-submenu"
264
+ },
265
+ {
266
+ "id": "color",
267
+ "submenu": [
268
+ {
269
+ "class": "light-contrast menu-swatch",
270
+ "label": "<span style=\"background:#d7170b \"></span>"
271
+ },
272
+ {
273
+ "class": "dark-contrast menu-swatch",
274
+ "label": "<span style=\"background:#fe8a2b \"></span>"
275
+ },
276
+ {
277
+ "class": "dark-contrast menu-swatch",
278
+ "label": "<span style=\"background:#ffc02b \"></span>"
279
+ },
280
+ {
281
+ "class": "light-contrast menu-swatch",
282
+ "label": "<span style=\"background:#63b215 \"></span>"
283
+ },
284
+ {
285
+ "class": "light-contrast menu-swatch",
286
+ "label": "<span style=\"background:#21ba3a \"></span>"
287
+ },
288
+ {
289
+ "class": "dark-contrast menu-swatch",
290
+ "label": "<span style=\"background:#17cfcf \"></span>"
291
+ },
292
+ {
293
+ "class": "light-contrast menu-swatch",
294
+ "label": "<span style=\"background:#13a7ec \"></span>"
295
+ },
296
+ {
297
+ "class": "light-contrast menu-swatch",
298
+ "label": "<span style=\"background:#0d80f2 \"></span>"
299
+ },
300
+ {
301
+ "class": "light-contrast menu-swatch",
302
+ "label": "<span style=\"background:#63c \"></span>"
303
+ },
304
+ {
305
+ "class": "light-contrast menu-swatch",
306
+ "label": "<span style=\"background:#a219e6 \"></span>"
307
+ },
308
+ {
309
+ "class": "light-contrast menu-swatch",
310
+ "label": "<span style=\"background:#eb4799 \"></span>"
311
+ },
312
+ {
313
+ "class": "light-contrast menu-swatch",
314
+ "label": "<span style=\"background:#000 \"></span>"
315
+ },
316
+ {
317
+ "class": "light-contrast menu-swatch",
318
+ "label": "<span style=\"background:#666 \"></span>"
319
+ },
320
+ {
321
+ "class": "dark-contrast menu-swatch",
322
+ "label": "<span style=\"background:#A6A6A6 \"></span>"
323
+ },
324
+ {
325
+ "class": "dark-contrast menu-swatch",
326
+ "label": "<span style=\"background:#d4d5d2 \"></span>"
327
+ },
328
+ {
329
+ "class": "dark-contrast menu-swatch",
330
+ "label": "<span style=\"background:#ffffff \"></span>"
331
+ }
332
+ ],
333
+ "columnCount": 4,
334
+ "submenuClass": "swatches-submenu"
335
+ },
336
+ {
337
+ "id": "background-color",
338
+ "submenu": [
339
+ {
340
+ "class": "dark-contrast menu-swatch",
341
+ "label": "<span style=\"background:#fbbbb6 \"></span>"
342
+ },
343
+ {
344
+ "class": "dark-contrast menu-swatch",
345
+ "label": "<span style=\"background:#ffe0c2 \"></span>"
346
+ },
347
+ {
348
+ "class": "dark-contrast menu-swatch",
349
+ "label": "<span style=\"background:#fff1c2 \"></span>"
350
+ },
351
+ {
352
+ "class": "dark-contrast menu-swatch",
353
+ "label": "<span style=\"background:#d0e8b9 \"></span>"
354
+ },
355
+ {
356
+ "class": "dark-contrast menu-swatch",
357
+ "label": "<span style=\"background:#bceac4 \"></span>"
358
+ },
359
+ {
360
+ "class": "dark-contrast menu-swatch",
361
+ "label": "<span style=\"background:#b9f1f1 \"></span>"
362
+ },
363
+ {
364
+ "class": "dark-contrast menu-swatch",
365
+ "label": "<span style=\"background:#b8e5c9 \"></span>"
366
+ },
367
+ {
368
+ "class": "dark-contrast menu-swatch",
369
+ "label": "<span style=\"background:#b6d9fb \"></span>"
370
+ },
371
+ {
372
+ "class": "dark-contrast menu-swatch",
373
+ "label": "<span style=\"background:#d1c2f0 \"></span>"
374
+ },
375
+ {
376
+ "class": "dark-contrast menu-swatch",
377
+ "label": "<span style=\"background:#e3baf8 \"></span>"
378
+ },
379
+ {
380
+ "class": "dark-contrast menu-swatch",
381
+ "label": "<span style=\"background:#f9c8e0 \"></span>"
382
+ },
383
+ {
384
+ "class": "light-contrast menu-swatch",
385
+ "label": "<span style=\"background:#353535 \"></span>"
386
+ },
387
+ {
388
+ "class": "light-contrast menu-swatch",
389
+ "label": "<span style=\"background:#8C8C8C \"></span>"
390
+ },
391
+ {
392
+ "class": "dark-contrast menu-swatch",
393
+ "label": "<span style=\"background:#D0D0D0 \"></span>"
394
+ },
395
+ {
396
+ "class": "dark-contrast menu-swatch",
397
+ "label": "<span style=\"background:#F0F0F0 \"></span>"
398
+ },
399
+ {
400
+ "class": "dark-contrast menu-swatch",
401
+ "label": "<span style=\"background:#ffffff \"></span>"
402
+ }
403
+ ],
404
+ "columnCount": 4,
405
+ "submenuClass": "swatches-submenu"
406
+ },
407
+ {
408
+ "id": "accent",
409
+ "submenu": [
410
+ {},
411
+ {},
412
+ {},
413
+ {},
414
+ {},
415
+ {},
416
+ {},
417
+ {},
418
+ {},
419
+ {},
420
+ {},
421
+ {}
422
+ ],
423
+ "submenuClass": "variant-submenu"
424
+ },
425
+ {
426
+ "id": "decoration",
427
+ "submenu": [
428
+ {},
429
+ {},
430
+ {}
431
+ ],
432
+ "submenuClass": "variant-submenu"
433
+ },
434
+ {
435
+ "type": "divider"
436
+ },
437
+ {
438
+ "id": "ce-evaluate"
439
+ },
440
+ {
441
+ "id": "ce-simplify"
442
+ },
443
+ {
444
+ "id": "ce-solve"
445
+ },
446
+ {
447
+ "type": "divider"
448
+ },
449
+ {
450
+ "keyboardShortcut": "meta+X"
451
+ },
452
+ {
453
+ "id": "copy",
454
+ "submenu": [
455
+ {
456
+ "id": "copy-latex",
457
+ "keyboardShortcut": "meta+C"
458
+ },
459
+ {
460
+ "id": "copy-ascii-math"
461
+ },
462
+ {
463
+ "id": "copy-math-ml"
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "id": "paste",
469
+ "keyboardShortcut": "meta+V"
470
+ },
471
+ {
472
+ "id": "select-all",
473
+ "keyboardShortcut": "meta+A"
474
+ }
475
+ ]