glib-web 4.39.3 → 4.39.4

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.
@@ -15,8 +15,8 @@
15
15
 
16
16
 
17
17
  <!-- :disabled="!$type.isObject(dragSupport)" -->
18
- <draggable :style="childStyles" :class="childClasses" handle=".handle" v-model="spec.childViews" ghost-class="ghost"
19
- :group="dragSupport ? dragSupport.groupId || 'common' : 'common'" :data-dragPanelId="spec.id"
18
+ <draggable v-if="dragEnabled" :style="childStyles" :class="childClasses" handle=".handle" v-model="spec.childViews"
19
+ ghost-class="ghost" :group="dragSupport ? dragSupport.groupId || 'common' : 'common'" :data-dragPanelId="spec.id"
20
20
  :disabled="!dragEnabled" @start="onDragStart" @end="onDragEnd" item-key="id">
21
21
  <!--
22
22
  * Wrap `glib-component` with `div` to prevent errors when `glib-component` doesn't resolve to a
@@ -33,11 +33,24 @@
33
33
  </div>
34
34
  </template>
35
35
 
36
+
37
+
36
38
  <!-- <glib-component :spec="element" /> -->
37
39
  <!-- <div :data-dragItemId="element.id">
38
40
  <glib-component :spec="element" />
39
41
  </div> -->
40
42
  </draggable>
43
+
44
+ <!-- The radio button becomes unclickable when wrapped in a draggable component, so we conditionally remove the wrapper using v-if when dragging is not required. -->
45
+ <!-- page: http://localhost:3000/glib/json_ui_garage?path=forms%2Fshow_hide -->
46
+ <div v-else :style="childStyles" :class="childClasses">
47
+ <template v-for="(element, index) in spec.childViews" :key="element.id || index">
48
+ <div :data-dragItemId="element.id">
49
+ <!-- Keep your inner component -->
50
+ <glib-component :spec="element" />
51
+ </div>
52
+ </template>
53
+ </div>
41
54
  </component>
42
55
  </template>
43
56
 
@@ -53,7 +53,10 @@ export default {
53
53
  /* Make the side panels take full height */
54
54
  display: flex;
55
55
  }
56
+ </style>
56
57
 
58
+ <!-- Overridable -->
59
+ <style>
57
60
  .layouts-split__right {
58
61
  /* Prevent unnecessary squashing, i.e. text broken into multiple lines */
59
62
  flex-shrink: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glib-web",
3
- "version": "4.39.3",
3
+ "version": "4.39.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {