@everchron/ec-shards 2.0.0 → 2.0.2

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.
Files changed (38) hide show
  1. package/.eslintrc.js +2 -5
  2. package/dist/ec-shards.common.js +880 -310
  3. package/dist/ec-shards.common.js.map +1 -1
  4. package/dist/ec-shards.css +1 -1
  5. package/dist/ec-shards.umd.js +880 -310
  6. package/dist/ec-shards.umd.js.map +1 -1
  7. package/dist/ec-shards.umd.min.js +2 -2
  8. package/dist/ec-shards.umd.min.js.map +1 -1
  9. package/package.json +6 -5
  10. package/src/assets/icons/empty-broken-transcript.svg +1 -0
  11. package/src/assets/icons/sticker-info.svg +1 -0
  12. package/src/components/button-toolbar-icon/button-toolbar-icon.vue +1 -4
  13. package/src/components/data-list-item/data-list-item.vue +34 -28
  14. package/src/components/document-state/document-state.vue +20 -8
  15. package/src/components/index.js +6 -0
  16. package/src/components/legend-item/legend-item.vue +176 -0
  17. package/src/components/log-message/log-message.vue +144 -0
  18. package/src/components/overlay/overlay.vue +68 -18
  19. package/src/components/quicklink/quicklink.vue +1 -1
  20. package/src/components/sticker/sticker.vue +4 -2
  21. package/src/components/switch/switch.vue +102 -11
  22. package/src/components/transcript-state/transcript-state.vue +125 -0
  23. package/src/stories/Changelog.stories.mdx +58 -1
  24. package/src/stories/{data-list-item → data-list}/.DS_Store +0 -0
  25. package/src/stories/{data-list-item → data-list}/data-list-item.stories.js +3 -3
  26. package/src/stories/data-list/data-list.stories.js +17 -0
  27. package/src/stories/legend-item/legend-item.stories.js +50 -0
  28. package/src/stories/log-message/log-message.stories.js +37 -0
  29. package/src/stories/overlay/overlay.stories.js +60 -15
  30. package/src/stories/quicklink/quicklink.stories.js +6 -1
  31. package/src/stories/sidebar/sidebar-content.stories.js +27 -0
  32. package/src/stories/{sidebar-footer → sidebar}/sidebar-footer.stories.js +0 -0
  33. package/src/stories/{sidebar-header → sidebar}/sidebar-header.stories.js +0 -0
  34. package/src/stories/swatches-picker/swatches-picker.stories.js +7 -161
  35. package/src/stories/switch/switch.stories.js +21 -1
  36. package/src/stories/{sidebar-footer → transcript-state}/.DS_Store +0 -0
  37. package/src/stories/transcript-state/transcript-state.stories.js +16 -0
  38. package/src/stories/sidebar-header/.DS_Store +0 -0
@@ -0,0 +1,50 @@
1
+ import EcsLegendItem from '@components/legend-item/legend-item';
2
+
3
+ export default {
4
+ title: 'Data/Legend Item',
5
+ component: EcsLegendItem,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: 'The `EcsLegendItem` component is used to provide information about plotted areas in charts or other data visualizations. It can also be used as a legend for e.g. parties or designation types within a transcript. Avoid mixing sizes in one legend item list.',
10
+ },
11
+ }
12
+ }
13
+ };
14
+
15
+ export const legendItem = () => ({
16
+ components: { EcsLegendItem },
17
+ template: `<div style="width: 320px">
18
+ <ecs-legend-item label="Tags" :count="20" :percentage="40" color="#157EFB" />
19
+ <ecs-legend-item label="Documents" :count="310" :percentage="60" color="#AB4FCB" />
20
+ </div>`,
21
+ });
22
+
23
+ export const legendItemSizes = () => ({
24
+ components: { EcsLegendItem },
25
+ template: `<div style="width: 320px">
26
+ <ecs-legend-item size="sml" label="Small" :count="20" :percentage="40" color="#157EFB" />
27
+ <ecs-legend-item size="sml" label="Small" :count="310" :percentage="60" color="#AB4FCB" />
28
+ <ecs-legend-item label="Medium" :count="20" :percentage="40" color="#157EFB" />
29
+ <ecs-legend-item label="Medium" :count="310" :percentage="60" color="#AB4FCB" />
30
+ </div>`,
31
+ });
32
+
33
+ export const legendItemTypes = () => ({
34
+ components: { EcsLegendItem },
35
+ template: `<div style="width: 320px">
36
+ <ecs-legend-item type="fill" label="Fill" :count="20" :percentage="40" color="#157EFB" />
37
+ <ecs-legend-item type="fill" label="Fill" :count="310" :percentage="60" color="#AB4FCB" style="margin-bottom:20px" />
38
+ <ecs-legend-item type="line" label="Line" :count="20" :percentage="40" color="#157EFB" />
39
+ <ecs-legend-item type="line" label="Line" :count="310" :percentage="60" color="#AB4FCB" />
40
+ </div>`,
41
+ });
42
+
43
+ export const legendItemHighlightAndHover = () => ({
44
+ components: { EcsLegendItem },
45
+ template: `<div style="width: 320px">
46
+ <ecs-legend-item hover label="Hoverable" :count="20" :percentage="40" color="#157EFB" />
47
+ <ecs-legend-item label="Not Hoverable" :count="310" :percentage="60" color="#AB4FCB" />
48
+ <ecs-legend-item highlight label="Highlighted" :count="310" :percentage="60" color="#AB4FCB" />
49
+ </div>`,
50
+ });
@@ -0,0 +1,37 @@
1
+ import EcsLogMessage from '@components/log-message/log-message';
2
+
3
+ export default {
4
+ title: 'Data/Log Message',
5
+ component: EcsLogMessage
6
+ };
7
+
8
+ export const logMessageTypes = () => ({
9
+ components: { EcsLogMessage },
10
+ template: `<div>
11
+ <ecs-log-message meta="07/21/2022, 11:23 AM">Message</ecs-log-message>
12
+ <ecs-log-message type="info" meta="07/21/2022, 11:23 AM">Message</ecs-log-message>
13
+ <ecs-log-message type="warning" meta="07/21/2022, 11:23 AM">Message</ecs-log-message>
14
+ <ecs-log-message type="success" meta="07/21/2022, 11:23 AM">Message</ecs-log-message>
15
+ <ecs-log-message type="error" meta="07/21/2022, 11:23 AM">Message</ecs-log-message>
16
+ </div>`,
17
+ });
18
+
19
+ export const logMessageHighlight = () => ({
20
+ components: { EcsLogMessage },
21
+ template: `<div>
22
+ <ecs-log-message type="info" meta="07/21/2022, 11:23 AM" highlight>Message</ecs-log-message>
23
+ <ecs-log-message type="warning" meta="07/21/2022, 11:23 AM" highlight>Message</ecs-log-message>
24
+ <ecs-log-message type="success" meta="07/21/2022, 11:23 AM" highlight>Message</ecs-log-message>
25
+ <ecs-log-message type="error" meta="07/21/2022, 11:23 AM" highlight>Message</ecs-log-message>
26
+ </div>`,
27
+ });
28
+
29
+ export const logMessageRichText = () => ({
30
+ components: { EcsLogMessage },
31
+ template: `<div>
32
+ <ecs-log-message type="error" meta="07/21/2022, 11:23 AM" highlight>
33
+ <p>Broken Transcript Issue opened by <strong><a href="mailto:r.reyes@orrick.com">r.reyes@orrick.com</a></strong></p>
34
+ <p>Hey there, it looks like this transcript is cut-off at page 58, even though the original file has a total of 112 pages. Additionally there are lines of text missing at the end of each page.</p>
35
+ </ecs-log-message>
36
+ </div>`,
37
+ });
@@ -16,7 +16,9 @@ export const overlay = () => ({
16
16
  <button @click="showOverlay = true">Show Overlay</button>
17
17
  <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">
18
18
 
19
- content area
19
+ <div style="height:600px;background:gray">
20
+ <div style="background:lightgray">Inner Content Area</div>
21
+ </div>
20
22
 
21
23
  <template slot="footer">footer area</template>
22
24
  </ecs-overlay>
@@ -33,8 +35,10 @@ export const overlayFullWidth = () => ({
33
35
  template: `<div>
34
36
  <button @click="showOverlay = true">Show Overlay</button>
35
37
  <ecs-overlay full-width :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">
36
-
37
- content area
38
+
39
+ <div style="height:600px;background:gray">
40
+ <div style="background:lightgray">Inner Content Area</div>
41
+ </div>
38
42
 
39
43
  <template slot="footer">footer area</template>
40
44
  </ecs-overlay>
@@ -51,10 +55,14 @@ export const overlayTabs = () => ({
51
55
  template: `<div>
52
56
  <button @click="showOverlay = true">Show Overlay</button>
53
57
  <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">
54
-
55
- content area
56
58
 
57
- <template slot="tabs">tab area</template>
59
+ <div style="height:600px;background:gray">
60
+ <div style="background:lightgray">Inner Content Area</div>
61
+ </div>
62
+
63
+ <template slot="tabs">
64
+ <div style="height:500px;background:gray">Tab Area</div>
65
+ </template>
58
66
  <template slot="footer">footer area</template>
59
67
  </ecs-overlay>
60
68
  </div>`,
@@ -70,10 +78,14 @@ export const overlayFullWidthTabs = () => ({
70
78
  template: `<div>
71
79
  <button @click="showOverlay = true">Show Overlay</button>
72
80
  <ecs-overlay full-width :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">
73
-
74
- content area
75
81
 
76
- <template slot="tabs">tab area</template>
82
+ <div style="height:600px;background:gray">
83
+ <div style="background:lightgray">Inner Content Area</div>
84
+ </div>
85
+
86
+ <template slot="tabs">
87
+ <div style="height:500px;background:gray">Tab Area</div>
88
+ </template>
77
89
  <template slot="footer">footer area</template>
78
90
  </ecs-overlay>
79
91
  </div>`,
@@ -89,11 +101,15 @@ export const overlaySidebar = () => ({
89
101
  template: `<div>
90
102
  <button @click="showOverlay = true">Show Overlay</button>
91
103
  <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
-
93
- <div style="height:700px;background:gray">content area</div>
104
+
105
+ <div style="height:600px;background:gray">
106
+ <div style="background:lightgray">Inner Content Area</div>
107
+ </div>
94
108
 
95
109
  <template slot="footer">footer area</template>
96
- <template slot="sidebar"><div style="height:500px;background:gray">sidebar area</div></template>
110
+ <template slot="sidebar">
111
+ <div style="height:500px;background:gray">Sidebar Area</div>
112
+ </template>
97
113
  </ecs-overlay>
98
114
  </div>`,
99
115
  });
@@ -109,10 +125,39 @@ export const overlayTabsSidebar = () => ({
109
125
  <button @click="showOverlay = true">Show Overlay</button>
110
126
  <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
127
 
112
- <div style="height:800px;background:gray">content area</div>
128
+ <div style="height:600px;background:gray">
129
+ <div style="background:lightgray">Inner Content Area</div>
130
+ </div>
131
+
132
+ <template slot="tabs">
133
+ <div style="height:500px;background:gray">Tab Area</div>
134
+ </template>
135
+ <template slot="sidebar">
136
+ <div style="height:500px;background:gray">Sidebar Area</div>
137
+ </template>
138
+ <template slot="footer">footer area</template>
139
+ </ecs-overlay>
140
+ </div>`,
141
+ });
142
+
143
+ export const overlayBlockingContent = () => ({
144
+ components: { EcsOverlay },
145
+ data() {
146
+ return {
147
+ showOverlay: false
148
+ }
149
+ },
150
+ template: `<div>
151
+ <button @click="showOverlay = true">Show Overlay</button>
152
+ <ecs-overlay block-content :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">
153
+
154
+ <div style="height:600px;background:gray">
155
+ <div style="background:lightgray">Inner Content Area</div>
156
+ </div>
113
157
 
114
- <template slot="tabs">tab area</template>
115
- <template slot="sidebar"><div style="height:500px;background:gray">sidebar area</div></template>
158
+ <template slot="tabs">
159
+ <div style="height:500px;background:gray">Tab Area</div>
160
+ </template>
116
161
  <template slot="footer">footer area</template>
117
162
  </ecs-overlay>
118
163
  </div>`,
@@ -27,5 +27,10 @@ export const quicklinkFavorability = () => ({
27
27
 
28
28
  export const quicklinkThreeWaySwitch = () => ({
29
29
  components: { EcsQuicklink },
30
- template: `<ecs-quicklink type="switch" label="Filter" :value="true" :valueToggle="true" :count="12" />`,
30
+ data() {
31
+ return {
32
+ value: false,
33
+ }
34
+ },
35
+ template: `<ecs-quicklink @input="value = !value" :active="value" type="switch" label="Filter" :value="value" :valueToggle="true" :count="12" />`,
31
36
  });
@@ -0,0 +1,27 @@
1
+ import EcsSidebarContent from '@components/sidebar-content/sidebar-content';
2
+
3
+ export default {
4
+ title: 'Patterns/Sidebar/Sidebar Content',
5
+ component: EcsSidebarContent
6
+ };
7
+
8
+ export const sidebarContent = () => ({
9
+ components: { EcsSidebarContent },
10
+ template: `<ecs-sidebar-content>
11
+ Content
12
+ </ecs-sidebar-content>`
13
+ });
14
+
15
+ export const sidebarContentIndentation = () => ({
16
+ components: { EcsSidebarContent },
17
+ template: `<ecs-sidebar-content indent>
18
+ Content
19
+ </ecs-sidebar-content>`
20
+ });
21
+
22
+ export const sidebarContentBlocked = () => ({
23
+ components: { EcsSidebarContent },
24
+ template: `<ecs-sidebar-content block-content>
25
+ Blocked Content
26
+ </ecs-sidebar-content>`
27
+ });
@@ -9,90 +9,13 @@ export const SwatchesPicker = () => ({
9
9
  components: { EcsSwatchesPicker },
10
10
  data() {
11
11
  return {
12
- selectedColor: '',
13
- swatchesData: [
14
- {
15
- "id": 1,
16
- "title": "Yellow",
17
- "hex": "#F9DF00"
18
- },
19
- {
20
- "id": 2,
21
- "title": "Orange",
22
- "hex": "#F3A100"
23
- },
24
- {
25
- "id": 3,
26
- "title": "Lime",
27
- "hex": "#B7EA80"
28
- },
29
- {
30
- "id": 4,
31
- "title": "Cyan",
32
- "hex": "#48E4C2"
33
- },
34
- {
35
- "id": 5,
36
- "title": "Blue",
37
- "hex": "#489DFF"
38
- },
39
- {
40
- "id": 6,
41
- "title": "Indigo",
42
- "hex": "#B877F0"
43
- },
44
- {
45
- "id": 7,
46
- "title": "Pink",
47
- "hex": "#FD78FD"
48
- },
49
- {
50
- "id": 8,
51
- "title": "Brown",
52
- "hex": "#C59465"
53
- },
54
- {
55
- "id": 9,
56
- "title": "Grey",
57
- "hex": "#858E9F"
58
- },
59
- {
60
- "id": 10,
61
- "title": "Red",
62
- "hex": "#EE5452"
63
- },
64
- {
65
- "id": 11,
66
- "title": "Dark Blue",
67
- "hex": "#227FD3"
68
- },
69
- {
70
- "id": 12,
71
- "title": "Green",
72
- "hex": "#5DAF00"
73
- },
74
- {
75
- "id": 13,
76
- "title": "Brass",
77
- "hex": "#A4927A"
78
- },
79
- {
80
- "id": 14,
81
- "title": "Silver",
82
- "hex": "#95989C"
83
- },
84
- {
85
- "id": 15,
86
- "title": "Gold",
87
- "hex": "#D78B21"
88
- }
89
- ]
12
+ selectedColor: ''
90
13
  }
91
14
  },
92
15
  template: `<div>
93
- <ecs-swatches-picker v-model="selectedColor" selected="#F9DF00" :swatches="swatchesData" />
16
+ <ecs-swatches-picker v-model="selectedColor" selected="#F9DF00" />
94
17
  <hr style="border: none; border-bottom: 1px solid #DADEE6; margin: 20px 0">
95
- Selected: {{ selectedColor }}
18
+ Selected: {{ selectedColor.title }}, {{ selectedColor.color }}
96
19
  </div>`,
97
20
  });
98
21
 
@@ -100,89 +23,12 @@ export const SwatchesPickerSizes = () => ({
100
23
  components: { EcsSwatchesPicker },
101
24
  data() {
102
25
  return {
103
- selectedColor: '',
104
- swatchesData: [
105
- {
106
- "id": 1,
107
- "title": "Yellow",
108
- "hex": "#F9DF00"
109
- },
110
- {
111
- "id": 2,
112
- "title": "Orange",
113
- "hex": "#F3A100"
114
- },
115
- {
116
- "id": 3,
117
- "title": "Lime",
118
- "hex": "#B7EA80"
119
- },
120
- {
121
- "id": 4,
122
- "title": "Cyan",
123
- "hex": "#48E4C2"
124
- },
125
- {
126
- "id": 5,
127
- "title": "Blue",
128
- "hex": "#489DFF"
129
- },
130
- {
131
- "id": 6,
132
- "title": "Indigo",
133
- "hex": "#B877F0"
134
- },
135
- {
136
- "id": 7,
137
- "title": "Pink",
138
- "hex": "#FD78FD"
139
- },
140
- {
141
- "id": 8,
142
- "title": "Brown",
143
- "hex": "#C59465"
144
- },
145
- {
146
- "id": 9,
147
- "title": "Grey",
148
- "hex": "#858E9F"
149
- },
150
- {
151
- "id": 10,
152
- "title": "Red",
153
- "hex": "#EE5452"
154
- },
155
- {
156
- "id": 11,
157
- "title": "Dark Blue",
158
- "hex": "#227FD3"
159
- },
160
- {
161
- "id": 12,
162
- "title": "Green",
163
- "hex": "#5DAF00"
164
- },
165
- {
166
- "id": 13,
167
- "title": "Brass",
168
- "hex": "#A4927A"
169
- },
170
- {
171
- "id": 14,
172
- "title": "Silver",
173
- "hex": "#95989C"
174
- },
175
- {
176
- "id": 15,
177
- "title": "Gold",
178
- "hex": "#D78B21"
179
- }
180
- ]
26
+ selectedColor: ''
181
27
  }
182
28
  },
183
29
  template: `<div>
184
- <ecs-swatches-picker v-model="selectedColor" size="sml" :swatches="swatchesData" selected="#D78B21" />
185
- <ecs-swatches-picker v-model="selectedColor" size="md" :swatches="swatchesData" selected="#F9DF00" />
186
- <ecs-swatches-picker v-model="selectedColor" size="lg" :swatches="swatchesData" selected="#F9DF00" />
30
+ <ecs-swatches-picker v-model="selectedColor" size="sml" selected="#F9DF00" />
31
+ <ecs-swatches-picker v-model="selectedColor" size="md" selected="#F9DF00" />
32
+ <ecs-swatches-picker v-model="selectedColor" size="lg" selected="#F9DF00" />
187
33
  </div>`,
188
34
  });
@@ -15,7 +15,7 @@ export const regular = () => ({
15
15
  },
16
16
  template: `<div>
17
17
  <ecs-switch v-model="first">{{ first }}</ecs-switch>
18
- <ecs-switch v-model="second" disabled>{{ second }}</ecs-switch>
18
+ <ecs-switch v-model="second">{{ second }}</ecs-switch>
19
19
  </div>`,
20
20
  });
21
21
 
@@ -23,6 +23,7 @@ export const sizes = () => ({
23
23
  components: { EcsSwitch },
24
24
  template: `<div>
25
25
  <ecs-switch size="sml">Small</ecs-switch>
26
+ <ecs-switch size="sml-toggle">Small Toggle</ecs-switch>
26
27
  <ecs-switch>Default</ecs-switch>
27
28
  <ecs-switch size="lg">Large</ecs-switch>
28
29
  </div>`,
@@ -32,3 +33,22 @@ export const standalone = () => ({
32
33
  components: { EcsSwitch },
33
34
  template: `<ecs-switch standalone />`,
34
35
  });
36
+
37
+ export const indeterminateSwitch = () => ({
38
+ components: { EcsSwitch },
39
+ template: `<div>
40
+ <ecs-switch indeterminate size="sml">Small</ecs-switch>
41
+ <ecs-switch indeterminate>Default</ecs-switch>
42
+ <ecs-switch indeterminate size="lg">Large</ecs-switch>
43
+ </div>`,
44
+ });
45
+
46
+ export const coloredSwitch = () => ({
47
+ components: { EcsSwitch },
48
+ data() {
49
+ return {
50
+ first: false
51
+ }
52
+ },
53
+ template: `<ecs-switch colored v-model="first">Colored Switch</ecs-switch>`,
54
+ });
@@ -0,0 +1,16 @@
1
+ import EcsTranscriptState from '@components/transcript-state/transcript-state';
2
+
3
+ export default {
4
+ title: 'Feedback/Transcript State',
5
+ component: EcsTranscriptState
6
+ };
7
+
8
+ export const statusIndicator = () => ({
9
+ components: { EcsTranscriptState },
10
+ template: `<main>
11
+ <ecs-transcript-state state="loading" />
12
+ <ecs-transcript-state state="healthy" />
13
+ <ecs-transcript-state state="corrupted" />
14
+ <ecs-transcript-state state="corrupted" interactive />
15
+ </main>`,
16
+ });