@windward/core 0.13.0 → 0.14.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### Release [0.14.0] created - 2025-03-25
4
+
5
+
3
6
  ### Release [0.16.0] created - 2025-03-11
4
7
 
5
8
 
@@ -37,43 +37,7 @@
37
37
  }}
38
38
  </h3>
39
39
  </v-col>
40
- <v-col
41
- v-if="
42
- $PermissionService.userHasAccessTo(
43
- 'windward.global.course,windward.organization.course.contentBlock',
44
- 'writable'
45
- )
46
- "
47
- cols="12"
48
- >
49
- <h3 class="pb-4">
50
- {{
51
- $t(
52
- 'windward.core.components.navigation.ask_the_expert.config'
53
- )
54
- }}
55
- </h3>
56
- <v-text-field
57
- v-model="courseAndContentName"
58
- disabled
59
- outlined
60
- :label="
61
- $t(
62
- 'windward.core.components.navigation.ask_the_expert.course_info'
63
- )
64
- "
65
- :rules="$Validation.getRule('exists')"
66
- ></v-text-field>
67
- </v-col>
68
- <v-col
69
- v-if="
70
- !$PermissionService.userHasAccessTo(
71
- 'windward.global.course,windward.organization.course.contentBlock',
72
- 'writable'
73
- )
74
- "
75
- cols="12"
76
- >
40
+ <v-col cols="12">
77
41
  <v-text-field
78
42
  v-model="subject"
79
43
  outlined
@@ -87,25 +87,43 @@
87
87
  @click:close="onRemoveElement"
88
88
  >
89
89
  <template #header="{ item }">
90
- <v-avatar v-if="item.iconImage && item.fileConfig">
91
- <v-img :src="getImagePublicUrl(item.fileConfig.asset)" />
92
- </v-avatar>
93
- <v-icon
90
+ <div
91
+ v-if="item.iconImage && item.fileConfig"
92
+ class="d-flex align-center"
93
+ >
94
+ <v-avatar>
95
+ <v-img
96
+ :src="
97
+ getImagePublicUrl(item.fileConfig.asset)
98
+ "
99
+ />
100
+ </v-avatar>
101
+ <span class="expansion-panel-title pl-3">{{
102
+ item.title
103
+ }}</span>
104
+ </div>
105
+ <div
94
106
  v-else-if="
95
107
  !item.iconImage &&
96
108
  item.icon &&
97
109
  isIcon(item.icon)
98
110
  "
99
- >{{ item.icon }}</v-icon
111
+ class="d-flex align-center"
100
112
  >
113
+ <v-icon>{{ item.icon }}</v-icon>
114
+ <span class="expansion-panel-title pl-2">{{
115
+ item.title
116
+ }}</span>
117
+ </div>
101
118
  <span
102
119
  v-else-if="
103
120
  !item.iconImage &&
104
121
  item.icon &&
105
122
  !isIcon(item.icon)
106
123
  "
107
- >{{ item.icon }}</span
108
- >
124
+ >{{ item.icon }}
125
+ </span>
126
+ <span v-else-if="item.title">{{ item.title }} </span>
109
127
  <span v-else class="font-italic">
110
128
  {{
111
129
  $t(
@@ -343,3 +361,11 @@ export default {
343
361
  },
344
362
  }
345
363
  </script>
364
+ <style scoped>
365
+ .expansion-panel-title {
366
+ white-space: nowrap;
367
+ overflow: hidden;
368
+ text-overflow: ellipsis;
369
+ display: block;
370
+ }
371
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
package/plugin.js CHANGED
@@ -3,7 +3,6 @@ import locales from './i18n'
3
3
  // Content Blocks
4
4
  import Video from './components/Content/Blocks/Video'
5
5
  import Tab from './components/Content/Blocks/Tab'
6
- import Math from './components/Content/Blocks/Math'
7
6
  import MathExpressionEditor from './components/utils/MathExpressionEditor'
8
7
  import Accordion from './components/Content/Blocks/Accordion'
9
8
  import Feedback from './components/Content/Blocks/Feedback.vue'
@@ -18,7 +17,6 @@ import UserUploadNav from './components/Navigation/Items/UserUploadNav.vue'
18
17
  import OpenResponse from './components/Content/Blocks/OpenResponse'
19
18
  import OpenResponseCollate from './components/Content/Blocks/OpenResponseCollate'
20
19
  import Image from './components/Content/Blocks/Image'
21
- import UserUpload from './components/Content/Blocks/UserUpload'
22
20
  import FileDownload from './components/Content/Blocks/FileDownload'
23
21
 
24
22
  import GlossaryPage from './pages/glossary.vue'
@@ -47,7 +45,6 @@ import HorizontalRuleSettings from './components/Settings/HorizontalRuleSettings
47
45
  import UserUploadPage from './pages/userUpload.vue'
48
46
  import GlossaryToolTip from './components/utils/glossary/GlossaryToolTip.vue'
49
47
  import TextEditorSettings from './components/Settings/TextEditorSettings.vue'
50
- import MathSettings from './components/Settings/MathSettings.vue'
51
48
  import FillInTheBlanks from './components/utils/FillInBlank/FillInTheBlanksManager.vue'
52
49
  import FillInBlankInput from './components/utils/FillInBlank/FillInBlankInput.vue'
53
50
 
@@ -214,15 +211,6 @@ export default {
214
211
  grouping: 'components.content.blocks.group.multimedia',
215
212
  },
216
213
  },
217
- {
218
- tag: 'core-user-upload',
219
- template: UserUpload,
220
- metadata: {
221
- icon: 'mdi-cloud-upload',
222
- name: 'windward.core.shared.content_blocks.title.user_upload',
223
- grouping: 'components.content.blocks.group.multimedia',
224
- },
225
- },
226
214
  {
227
215
  tag: 'core-file-download',
228
216
  template: FileDownload,