@everchron/ec-shards 1.3.5 → 1.4.0

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.
@@ -6,11 +6,25 @@ import { Meta } from '@storybook/addon-docs/blocks';
6
6
  Changelog
7
7
  </h1>
8
8
 
9
- ## Version 1.3.3 (27 August 2022)
9
+ ## Version 1.4.0 (6 September 2022)
10
10
 
11
- ### Changes
11
+ ### Features
12
+
13
+ - Added new `EcsTranscriptState` component
14
+ - Added new `EcsLogMessage` component
15
+ - Added broken transcript empty state icon
16
+ - Added info sticker icon
17
+
18
+ ### Fixes
19
+
20
+ - Cleaned up styles on the EcsDocumentState component and reduced weight of inline styles a bit.
21
+
22
+ ## Version 1.3.6 (29 August 2022)
23
+
24
+ ### Fixes
12
25
 
13
- - Added flexDirection prop to EcsTabs component.
26
+ - Added flex and flexDirection prop to EcsTab component.
27
+ - Removed flex and flexDirection props from EcsTabs component.
14
28
 
15
29
  ## Version 1.3.2 (27 August 2022)
16
30
 
@@ -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
+ });
@@ -49,14 +49,16 @@ export const partyEntryWithBackground = () => ({
49
49
  export const partyEntryAnnotations = () => ({
50
50
  components: { EcsPartyEntry },
51
51
  template: `<main>
52
- <ecs-party-entry background icon="marker" :annotation-color="1">Annotation</ecs-party-entry>
53
- <ecs-party-entry background icon="marker" :annotation-color="2">Annotation</ecs-party-entry>
54
- <ecs-party-entry background icon="marker" :annotation-color="3">Annotation</ecs-party-entry>
55
- <ecs-party-entry background icon="marker" :annotation-color="4">Annotation</ecs-party-entry>
56
- <ecs-party-entry background icon="marker" :annotation-color="5">Annotation</ecs-party-entry>
57
- <ecs-party-entry background icon="marker" :annotation-color="6">Annotation</ecs-party-entry>
58
- <ecs-party-entry background icon="marker" :annotation-color="7">Annotation</ecs-party-entry>
59
- <ecs-party-entry background icon="marker" :annotation-color="8">Annotation</ecs-party-entry>
60
- <ecs-party-entry background icon="marker" :annotation-color="9">Annotation</ecs-party-entry>
52
+ <ecs-party-entry background icon="marker" color="#F9DF00">Annotation</ecs-party-entry>
53
+ <ecs-party-entry background icon="marker" color="#F3A100">Annotation</ecs-party-entry>
54
+ <ecs-party-entry background icon="marker" color="#B7EA80">Annotation</ecs-party-entry>
55
+ <ecs-party-entry background icon="marker" color="#48E4C2">Annotation</ecs-party-entry>
56
+ <ecs-party-entry background icon="marker" color="#489DFF">Annotation</ecs-party-entry>
57
+ <ecs-party-entry background icon="marker" color="#B877F0">Annotation</ecs-party-entry>
58
+ <ecs-party-entry background icon="marker" color="#FD78FD">Annotation</ecs-party-entry>
59
+ <ecs-party-entry background icon="marker" color="#858E9F">Annotation</ecs-party-entry>
60
+ <ecs-party-entry background icon="marker" color="#EE5452">Annotation</ecs-party-entry>
61
+ <ecs-party-entry background icon="marker">No Color Defined</ecs-party-entry>
62
+ <ecs-party-entry icon="marker" color="#EE5452">Annotation</ecs-party-entry>
61
63
  </main>`,
62
64
  });
@@ -9,13 +9,90 @@ export const SwatchesPicker = () => ({
9
9
  components: { EcsSwatchesPicker },
10
10
  data() {
11
11
  return {
12
- selectedColor: ''
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
+ ]
13
90
  }
14
91
  },
15
92
  template: `<div>
16
- <ecs-swatches-picker v-model="selectedColor" selected="#F9DF00" />
93
+ <ecs-swatches-picker v-model="selectedColor" selected="#F9DF00" :swatches="swatchesData" />
17
94
  <hr style="border: none; border-bottom: 1px solid #DADEE6; margin: 20px 0">
18
- Selected: {{ selectedColor.title }}, {{ selectedColor.color }}
95
+ Selected: {{ selectedColor }}
19
96
  </div>`,
20
97
  });
21
98
 
@@ -23,12 +100,89 @@ export const SwatchesPickerSizes = () => ({
23
100
  components: { EcsSwatchesPicker },
24
101
  data() {
25
102
  return {
26
- selectedColor: ''
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
+ ]
27
181
  }
28
182
  },
29
183
  template: `<div>
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" />
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" />
33
187
  </div>`,
34
188
  });
@@ -0,0 +1,17 @@
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="repairing" />
15
+ <ecs-transcript-state state="corrupted" interactive />
16
+ </main>`,
17
+ });