@everchron/ec-shards 0.6.90 → 0.6.91

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "0.6.90",
3
+ "version": "0.6.91",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
package/src/.DS_Store ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -32,10 +32,6 @@
32
32
  type: Boolean,
33
33
  default: false
34
34
  }
35
- },
36
-
37
- mounted(){
38
- console.log('layout shard mounted')
39
35
  }
40
36
  }
41
37
  </script>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <transition name="dialog-fade">
3
- <div v-if="isShown" class="ecs-modal" :class="typeClass">
3
+ <div v-if="isShown" class="ecs-modal" :class="[typeClass, clickthroughBackdrop ? 'ecs-modal-click-through' : '']">
4
4
 
5
5
  <div class="ecs-modal-dialog ecs-modal-sheet">
6
6
  <div v-if="$slots.header" class="ecs-modal-header-wrap">
@@ -34,7 +34,11 @@
34
34
  type: String,
35
35
  validator: v => ['default', 'drawer',].includes(v),
36
36
  default: 'default'
37
- }
37
+ },
38
+ clickthroughBackdrop: {
39
+ type: Boolean,
40
+ default: false
41
+ },
38
42
  },
39
43
 
40
44
  data () {
@@ -94,6 +98,8 @@
94
98
  }
95
99
  }
96
100
 
101
+ // Drawer modal variant
102
+
97
103
  .ecs-modal-drawer{
98
104
  .ecs-modal-sheet{
99
105
  margin: 5px auto;
@@ -121,5 +127,13 @@
121
127
  &-footer-wrap{
122
128
  flex-shrink: 0;
123
129
  }
130
+
131
+ &.ecs-modal-click-through{
132
+ pointer-events: none;
133
+
134
+ .ecs-modal-dialog{
135
+ pointer-events: auto;
136
+ }
137
+ }
124
138
  }
125
139
  </style>
@@ -27,7 +27,7 @@
27
27
  align-items: flex-end;
28
28
 
29
29
  .ecs-modal-dialog{
30
- max-height: calc(60vh - 140px);
30
+ max-height: calc(65vh - 140px);
31
31
  }
32
32
  }
33
33
 
Binary file
@@ -33,7 +33,7 @@ export const drawer = () => ({
33
33
  },
34
34
  template: `<div>
35
35
  <button @click="showdialog = !showdialog">Open</button>
36
- <ecs-modal type="drawer" :show="showdialog">
36
+ <ecs-modal type="drawer" :show="showdialog" clickthrough-backdrop>
37
37
  <p>Modal Content Slot</p>
38
38
  </ecs-modal>
39
39
  </div>`,