@everchron/ec-shards 0.6.45 → 0.6.49

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.45",
3
+ "version": "0.6.49",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -62,23 +62,14 @@
62
62
  color: darken($blue-10, 10%);
63
63
  }
64
64
  }
65
- }
66
-
67
- .ecs-form-check-group .ecs-form-text{
68
- margin-top: 0;
69
- }
70
65
 
71
- .ecs-form-group.error{
72
- .ecs-form-text{
66
+ &.error{
73
67
  color: $red-9;
74
68
  }
69
+ }
75
70
 
76
- .ecs-form-control,
77
- .ecs-form-control:focus,
78
- .ecs-form-select{
79
- box-shadow: none;
80
- border-color: $red-9;
81
- }
71
+ .ecs-form-check-group .ecs-form-text{
72
+ margin-top: 0;
82
73
  }
83
74
 
84
75
  .label{
@@ -92,9 +83,6 @@ label{
92
83
  font-size: 14px;
93
84
  line-height: 1.6em;
94
85
  margin-bottom: $form-text-margin-bottom;
95
- -webkit-user-select: none;
96
- -moz-user-select: none;
97
- -ms-user-select: none;
98
86
  user-select: none;
99
87
 
100
88
  > a{
@@ -115,3 +103,20 @@ label{
115
103
  }
116
104
  }
117
105
  </style>
106
+
107
+ <style lang="scss">
108
+ @import "../tokens/tokens";
109
+
110
+ .ecs-form-group.error{
111
+ .ecs-form-text{
112
+ color: $red-9;
113
+ }
114
+
115
+ .ecs-form-control,
116
+ .ecs-form-control:focus,
117
+ .ecs-form-select{
118
+ box-shadow: none;
119
+ border-color: $red-9;
120
+ }
121
+ }
122
+ </style>
@@ -14,7 +14,8 @@
14
14
  :class="[
15
15
  sizeClass,
16
16
  formatClass,
17
- subtle ? `ecs-form-control-subtle` : null
17
+ subtle ? 'ecs-form-control-subtle' : null,
18
+ error ? 'ecs-form-control-error' : null
18
19
  ]"
19
20
  v-bind="$attrs"
20
21
  :min="min"
@@ -34,7 +35,8 @@
34
35
  sizeClass,
35
36
  formatClass,
36
37
  cssClass,
37
- subtle ? `ecs-form-control-subtle` : null
38
+ subtle ? 'ecs-form-control-subtle' : null,
39
+ error ? 'ecs-form-control-error' : null
38
40
  ]"
39
41
  v-bind="$attrs"
40
42
  :ref="refr"
@@ -89,6 +91,10 @@
89
91
  type: Boolean,
90
92
  default: false
91
93
  },
94
+ error: {
95
+ type: Boolean,
96
+ default: false
97
+ },
92
98
  cssClass: String,
93
99
  refr: String,
94
100
  min: Number
@@ -177,6 +183,12 @@
177
183
  font-family: $mono;
178
184
  }
179
185
 
186
+ &-error,
187
+ &-error:focus{
188
+ box-shadow: none;
189
+ border-color: $red-9;
190
+ }
191
+
180
192
  &::placeholder {
181
193
  color: $gray-8;
182
194
  opacity: 1;
@@ -1,8 +1,9 @@
1
1
  <template>
2
2
  <div class="ecs-mf-party"
3
3
  :class="[party, shared ? 'shared' : '']">
4
- <ecs-icon v-if="icon" :type="iconType" :color="iconColor" :style="'margin-right:'+iconSpacing" />
4
+ <ecs-icon v-if="icon && iconPosition == 'left'" :type="iconType" :color="iconColor" :style="'margin-right:'+iconSpacing" :width="iconSize" :height="iconSize" />
5
5
  <slot></slot>
6
+ <ecs-icon v-if="icon && iconPosition == 'right'" :type="iconType" :color="iconColor" :style="'margin-left:'+iconSpacing" :width="iconSize" :height="iconSize" />
6
7
  </div>
7
8
  </template>
8
9
 
@@ -28,7 +29,15 @@
28
29
  iconSpacing: {
29
30
  type: String,
30
31
  default: '5px'
31
- }
32
+ },
33
+ iconPosition: {
34
+ type: String,
35
+ default: 'left'
36
+ },
37
+ iconSize: {
38
+ type: String,
39
+ default: '30px'
40
+ },
32
41
  },
33
42
 
34
43
  computed: {
@@ -75,8 +84,8 @@
75
84
 
76
85
  .ecs-mf-party{
77
86
  position: relative;
78
- line-height: 30px;
79
87
  display: inline-flex;
88
+ align-items: center;
80
89
 
81
90
  .icon{
82
91
  flex-shrink: 0;
@@ -88,7 +97,7 @@
88
97
  position: absolute;
89
98
  content: "";
90
99
  left: 16px;
91
- top: 15px;
100
+ top: 16px;
92
101
  background: svg-uri('<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11"><g fill="none" fill-rule="evenodd"><circle cx="5.5" cy="5.5" r="5.5" fill="#FFFFFF"/><path fill="#5A80F4" fill-rule="nonzero" d="M5.5,9 C7.43299662,9 9,7.43299662 9,5.5 C9,3.56700338 7.43299662,2 5.5,2 C3.56700338,2 2,3.56700338 2,5.5 C2,7.43299662 3.56700338,9 5.5,9 Z M5.5,10 C3.01471863,10 1,7.98528137 1,5.5 C1,3.01471863 3.01471863,1 5.5,1 C7.98528137,1 10,3.01471863 10,5.5 C10,7.98528137 7.98528137,10 5.5,10 Z"/><circle cx="5.531" cy="5.4" r="1.277" stroke="#5E83F5"/><path stroke="#5E83F5" d="M3.62307692,9.04615385 L3.62307692,8.6 C3.62307692,7.53846154 4.48461538,6.69230769 5.53076923,6.69230769 C6.57692308,6.69230769 7.43846154,7.55384615 7.43846154,8.6 L7.43846154,9.04615385"/></g></svg>');
93
102
  opacity: 0;
94
103
  transition: .3s;
@@ -7,14 +7,14 @@
7
7
  </label>
8
8
 
9
9
  <div v-else-if="type === 'favorability'" class="ecs-form-check" @click="$emit('click', $event)">
10
- <ecs-rating-favorability :type="favorabilityType" rating="Good" :label="false" />
10
+ <ecs-rating-favorability :type="favorabilityType" rating="Good" :label="false" :disabled="disabled" />
11
11
  <label class="ml-3">
12
12
  <span class="static-label">{{label}}</span>
13
13
  </label>
14
14
  <small v-if="count" class="filter-count">{{count}}</small>
15
15
  </div>
16
16
 
17
- <ecs-checkbox v-else @input="$emit('input', $event)" :value="value" :value-false="valueFalse" :value-true="valueTrue">
17
+ <ecs-checkbox v-else @input="$emit('input', $event)" :value="value" :value-false="valueFalse" :value-true="valueTrue" :disabled="disabled">
18
18
  <template v-if="type === 'rating'">
19
19
  <ecs-rating-star-read :rating="rating" />
20
20
  </template>
@@ -81,7 +81,8 @@
81
81
  default: null,
82
82
  required: false,
83
83
  type: [Date, Number, String, Boolean]
84
- }
84
+ },
85
+ disabled: Boolean
85
86
  },
86
87
 
87
88
  computed: {
@@ -43,4 +43,4 @@ export const inputFormat = () => ({
43
43
  template: `<div>
44
44
  <ecs-input placeholder="Enter some ID" format="id" />
45
45
  </div>`,
46
- });
46
+ });
@@ -13,7 +13,7 @@ export const partyEntry = () => ({
13
13
  export const partyEntryTypes = () => ({
14
14
  components: { EcsPartyEntry },
15
15
  template: `<main>
16
- <ecs-party-entry icon="document" party="opposing">Document</ecs-party-entry>
16
+ <ecs-party-entry icon="document" party="opposing" icon-size="24">Document</ecs-party-entry>
17
17
  <ecs-party-entry icon="sequence" party="opposing">Sequence</ecs-party-entry>
18
18
  <ecs-party-entry icon="folder" party="opposing">Folder</ecs-party-entry>
19
19
  <ecs-party-entry icon="pacer" party="opposing">Pacer</ecs-party-entry>