@everchron/ec-shards 0.7.45 → 0.7.46

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.7.45",
3
+ "version": "0.7.46",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="ecs-favorability" :class="typeClass" @click="$emit('click', $event)">
2
+ <div class="ecs-favorability" :class="[typeClass, disabled ? 'disabled' : '']" @click="$emit('click', $event)">
3
3
  <div class="ecs-favorability-button" :class="[css, loading ? 'loading' : '']" :title="rating">
4
4
  <ecs-icon :type="iconType" />
5
5
  </div>
@@ -35,12 +35,10 @@
35
35
  loading: {
36
36
  type: Boolean,
37
37
  default: false
38
- }
39
- },
40
-
41
- data() {
42
- return {
43
-
38
+ },
39
+ disbaled: {
40
+ type: Boolean,
41
+ default: false
44
42
  }
45
43
  },
46
44
 
@@ -199,6 +197,11 @@
199
197
  left: 28px;
200
198
  }
201
199
  }
200
+
201
+ &.disabled{
202
+ opacity: .4;
203
+ cursor: not-allowed;
204
+ }
202
205
  }
203
206
 
204
207
  .loading{