@everchron/ec-shards 0.6.34 → 0.6.39

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.34",
3
+ "version": "0.6.39",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -9,6 +9,7 @@
9
9
 
10
10
  <ecs-icon v-if="icon && iconPosition == 'left'" width="26" height="26" :type="icon" />
11
11
  <slot></slot>
12
+ <span class="badge" v-if="badge" :style="{ background: badgeColor }"></span>
12
13
  <ecs-icon v-if="icon && iconPosition == 'right'" width="26" height="26" :type="icon" />
13
14
  </button>
14
15
  </template>
@@ -38,6 +39,14 @@
38
39
  active: {
39
40
  type: Boolean,
40
41
  default: false
42
+ },
43
+ badge: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ badgeColor: {
48
+ type: String,
49
+ default: '#FF4B62'
41
50
  }
42
51
  },
43
52
 
@@ -170,5 +179,15 @@
170
179
  margin-right: 4px;
171
180
  }
172
181
  }
182
+
183
+ .badge{
184
+ width: 10px;
185
+ height: 10px;
186
+ border-radius: 100%;
187
+ border: 2px solid #FFF;
188
+ position: absolute;
189
+ top: 2px;
190
+ right: 2px;
191
+ }
173
192
  }
174
193
  </style>
@@ -2,6 +2,7 @@
2
2
  <input v-if="type != 'textarea'" class="ecs-form-control"
3
3
  @input="$emit('input', $event)"
4
4
  @change="$emit('change', $event)"
5
+ @keyup="$emit('keyup', $event)"
5
6
  :type="type"
6
7
  :name="name"
7
8
  :disabled="disabled"
@@ -23,6 +24,7 @@
23
24
  <textarea v-else class="ecs-form-control"
24
25
  @input="$emit('input', $event)"
25
26
  @change="$emit('change', $event)"
27
+ @keyup="$emit('keyup', $event)"
26
28
  :name="name"
27
29
  :disabled="disabled"
28
30
  :required="required"
@@ -12,7 +12,7 @@
12
12
  <div v-if="$slots.headercontrols" class="ecs-overlay-header-controls">
13
13
  <slot name="headercontrols"></slot>
14
14
  </div>
15
- <ecs-button-toolbar v-if="$slots.sidebar && width <= 1400" @click="sidebarToggle" :icon="sidebarIcon" :title="showSidebar ? 'Hide ' + sidebarTitle : 'Show ' + sidebarTitle" :active="showSidebar" class="sidebar-button" />
15
+ <ecs-button-toolbar v-if="$slots.sidebar && width <= 1400" @click="sidebarToggle" :icon="sidebarIcon" :title="showSidebar ? 'Hide ' + sidebarTitle : 'Show ' + sidebarTitle" :active="showSidebar" :badge="sidebarIconBadge" class="sidebar-button" />
16
16
  <ecs-button-toolbar @click="$emit('close')" icon="close">{{ closeText }}</ecs-button-toolbar>
17
17
  </div>
18
18
  <div ref="content" class="ecs-overlay-content scrollbar">
@@ -92,6 +92,10 @@
92
92
  type: String,
93
93
  default: 'Notifications'
94
94
  },
95
+ sidebarIconBadge: {
96
+ type: Boolean,
97
+ default: false
98
+ }
95
99
  },
96
100
 
97
101
  data () {
@@ -222,6 +226,7 @@
222
226
  position: relative;
223
227
  height: min-content;
224
228
  margin: 0 auto;
229
+ height: 100%;
225
230
 
226
231
  &.has-sidebar{
227
232
  margin: 0 0 0 auto;
@@ -249,7 +254,9 @@
249
254
  }
250
255
 
251
256
  &-sidebar-float{
252
- padding: 0 15px 0 20px;
257
+ padding: 0;
258
+ padding-right: 15px;
259
+ padding-left: 20px;
253
260
  width: 400px;
254
261
  overflow: auto;
255
262
  position: absolute;
@@ -258,6 +265,8 @@
258
265
  bottom: 0;
259
266
  background: #FFF;
260
267
  box-shadow: 0 0 20px rgba(0,0,0,.12);
268
+ overscroll-behavior-y: contain;
269
+ z-index: 10;
261
270
  }
262
271
 
263
272
  &-footer{
@@ -32,6 +32,6 @@ export const group = () => ({
32
32
  template: `<ecs-button-toolbar-group>
33
33
  <ecs-button-toolbar icon="marker" active />
34
34
  <ecs-button-toolbar icon="rectangle" />
35
- <ecs-button-toolbar icon="delete" />
35
+ <ecs-button-toolbar icon="delete" badge />
36
36
  </ecs-button-toolbar-group>`,
37
37
  });
@@ -88,7 +88,7 @@ export const overlaySidebar = () => ({
88
88
  },
89
89
  template: `<div>
90
90
  <button @click="showOverlay = true">Show Overlay</button>
91
- <ecs-overlay :show="showOverlay" @close="showOverlay = false" icon="archive" header-title="Title" header-title-emphasized="Overlay:" header-title-subline="John G. Deposition (10/12/2020) – Pages 1 - 321" >
91
+ <ecs-overlay :show="showOverlay" @close="showOverlay = false" icon="archive" header-title="Title" header-title-emphasized="Overlay:" header-title-subline="John G. Deposition (10/12/2020) – Pages 1 - 321" sidebar-icon-badge>
92
92
 
93
93
  <div style="height:700px;background:gray">content area</div>
94
94
 
@@ -107,7 +107,7 @@ export const overlayTabsSidebar = () => ({
107
107
  },
108
108
  template: `<div>
109
109
  <button @click="showOverlay = true">Show Overlay</button>
110
- <ecs-overlay :show="showOverlay" @close="showOverlay = false" icon="archive" header-title="Title" header-title-emphasized="Overlay:" header-title-subline="John G. Deposition (10/12/2020) – Pages 1 - 321">
110
+ <ecs-overlay :show="showOverlay" @close="showOverlay = false" icon="archive" header-title="Title" header-title-emphasized="Overlay:" header-title-subline="John G. Deposition (10/12/2020) – Pages 1 - 321" sidebar-icon-badge>
111
111
 
112
112
  content area
113
113
 
package/src/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file