@windward/core 0.21.0 → 0.21.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## Hotfix [0.21.1] created - 2025-08-20
4
+
5
+
3
6
  ## Release [0.21.0] - 2025-08-01
4
7
 
5
8
  * Merged in feature/LE-2045/lableing-fixes (pull request #414)
@@ -37,14 +37,14 @@
37
37
  </slot>
38
38
  </div>
39
39
  <v-btn-toggle
40
- v-if="allowRead && !render"
40
+ v-if="hasActions"
41
41
  dense
42
42
  multiple
43
43
  class="pt-1 d-flex justify-end"
44
44
  >
45
45
  <slot name="actions-prepend" :render="render"></slot>
46
46
  <slot name="actions" :render="render">
47
- <v-btn-toggle dense>
47
+ <v-btn-toggle v-if="allowRead && !render" dense>
48
48
  <v-btn color="primary" outlined @click="read">
49
49
  <v-icon> mdi-play</v-icon>
50
50
  </v-btn>
@@ -164,6 +164,21 @@ export default {
164
164
  },
165
165
 
166
166
  computed: {
167
+ hasActions() {
168
+ if (this.allowRead && !render) {
169
+ return true
170
+ }
171
+ // reach into parent text editor to see if a slot has been used.
172
+ // Cant access this.$slots when daisy chained like we're doing with texteditor
173
+ if (_.isEmpty(this.$parent) || _.isEmpty(this.$parent.$slots)) {
174
+ return false
175
+ }
176
+ return (
177
+ typeof this.$parent.$slots['actions-prepend'] !== 'undefined' ||
178
+ typeof this.$parent.$slots['actions'] !== 'undefined' ||
179
+ typeof this.$parent.$slots['actions-append'] !== 'undefined'
180
+ )
181
+ },
167
182
  dataCy() {
168
183
  return (
169
184
  this.dataKey ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {