@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.
- package/.eslintrc.js +2 -5
- package/dist/ec-shards.common.js +602 -369
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +602 -369
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +6 -5
- package/src/assets/icons/empty-broken-transcript.svg +1 -0
- package/src/assets/icons/sticker-info.svg +1 -0
- package/src/components/button-toolbar-icon/button-toolbar-icon.vue +1 -4
- package/src/components/document-state/document-state.vue +20 -8
- package/src/components/index.js +4 -0
- package/src/components/log-message/log-message.vue +144 -0
- package/src/components/pagination/pagination.vue +20 -8
- package/src/components/party-entry/party-entry.vue +11 -7
- package/src/components/sticker/sticker.vue +4 -2
- package/src/components/swatches-picker/swatches-picker.vue +12 -38
- package/src/components/tabs/tabs.vue +6 -0
- package/src/components/transcript-state/transcript-state.vue +109 -0
- package/src/stories/Changelog.stories.mdx +17 -3
- package/src/stories/log-message/log-message.stories.js +37 -0
- package/src/stories/party-entry/party-entry.stories.js +11 -9
- package/src/stories/swatches-picker/swatches-picker.stories.js +161 -7
- package/src/stories/transcript-state/.DS_Store +0 -0
- package/src/stories/transcript-state/transcript-state.stories.js +17 -0
|
@@ -6,11 +6,25 @@ import { Meta } from '@storybook/addon-docs/blocks';
|
|
|
6
6
|
Changelog
|
|
7
7
|
</h1>
|
|
8
8
|
|
|
9
|
-
## Version 1.
|
|
9
|
+
## Version 1.4.0 (6 September 2022)
|
|
10
10
|
|
|
11
|
-
###
|
|
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
|
|
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"
|
|
53
|
-
<ecs-party-entry background icon="marker"
|
|
54
|
-
<ecs-party-entry background icon="marker"
|
|
55
|
-
<ecs-party-entry background icon="marker"
|
|
56
|
-
<ecs-party-entry background icon="marker"
|
|
57
|
-
<ecs-party-entry background icon="marker"
|
|
58
|
-
<ecs-party-entry background icon="marker"
|
|
59
|
-
<ecs-party-entry background icon="marker"
|
|
60
|
-
<ecs-party-entry background icon="marker"
|
|
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
|
|
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="#
|
|
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
|
});
|
|
Binary file
|
|
@@ -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
|
+
});
|