@everchron/ec-shards 0.8.35 → 0.9.1
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/dist/ec-shards.common.js +169 -188
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +169 -188
- 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/dist/img/load-file-annotations.a86b6944.svg +1 -0
- package/dist/img/load-file-designation-report.43313733.svg +1 -0
- package/dist/img/load-file-designation.c1a22daa.svg +1 -0
- package/dist/img/load-file-zip.a8320034.svg +1 -0
- package/dist/img/overlay-files.7cb16b90.svg +1 -0
- package/dist/img/overlay-metadata.b1df7d12.svg +1 -0
- package/package.json +1 -1
- package/src/components/index.js +2 -0
- package/src/components/pagination/pagination.vue +22 -10
- package/src/components/party-entry/party-entry.vue +28 -135
- package/src/components/select-tile/select-tile.vue +145 -9
- package/src/stories/party-entry/party-entry.stories.js +11 -9
- package/src/stories/select-tile/select-tile.stories.js +12 -1
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div @click="$emit('click', $event)" class="ecs-select-tile"
|
|
3
|
-
:class="[
|
|
3
|
+
:class="[selected ? 'ecs-select-tile-selected' : '', disabled ? 'ecs-select-tile-disabled' : '']">
|
|
4
4
|
|
|
5
|
-
<div
|
|
6
|
-
<div v-if="
|
|
7
|
-
<div v-if="
|
|
5
|
+
<div class="select-check" />
|
|
6
|
+
<div v-if="illustration" class="illustration" :class="illustration" />
|
|
7
|
+
<div v-if="label" class="label">{{ label }}</div>
|
|
8
|
+
<div v-if="helpText" class="help">{{ helpText }}</div>
|
|
8
9
|
</div>
|
|
9
10
|
</template>
|
|
10
11
|
|
|
11
12
|
<script>
|
|
12
13
|
export default {
|
|
13
14
|
props: {
|
|
15
|
+
/** The main label for the tile. */
|
|
14
16
|
label: {
|
|
15
|
-
type: String
|
|
17
|
+
type: String,
|
|
18
|
+
required: true
|
|
16
19
|
},
|
|
20
|
+
/** Additional line of text underneath the label, which can be used to add further explanations and infos. */
|
|
17
21
|
helpText: {
|
|
18
22
|
type: String
|
|
19
23
|
},
|
|
24
|
+
/** The type of illustration that should be shown within the tile. */
|
|
20
25
|
illustration: {
|
|
21
26
|
type: String,
|
|
22
|
-
validator: v => [
|
|
27
|
+
validator: v => [
|
|
28
|
+
'load-file-annotations',
|
|
29
|
+
'load-file-designation-report',
|
|
30
|
+
'load-file-designation',
|
|
31
|
+
'load-file-zip',
|
|
32
|
+
'overlay-files',
|
|
33
|
+
'overlay-metadata',
|
|
34
|
+
null
|
|
35
|
+
].includes(v),
|
|
23
36
|
},
|
|
24
|
-
|
|
37
|
+
/** Determines the selection state of the tile. */
|
|
38
|
+
selected: {
|
|
25
39
|
type: Boolean,
|
|
26
40
|
default: false
|
|
27
41
|
},
|
|
42
|
+
/** Disables the tile. */
|
|
28
43
|
disabled: {
|
|
29
44
|
type: Boolean,
|
|
30
45
|
default: false
|
|
@@ -38,8 +53,129 @@
|
|
|
38
53
|
@import "../mixins/svg-uri";
|
|
39
54
|
|
|
40
55
|
.ecs-select-tile{
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
align-items: center;
|
|
60
|
+
padding: 32px 24px;
|
|
61
|
+
min-width: 240px;
|
|
62
|
+
background: #FFFFFF;
|
|
63
|
+
box-shadow: 0px 0px 0px 1px rgba(71, 75, 96, 0.05), 0px 1px 4px rgba(71, 75, 96, 0.1);
|
|
64
|
+
border-radius: 8px;
|
|
65
|
+
border: 1px solid #FFF;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
text-align: center;
|
|
68
|
+
transition: .2s;
|
|
69
|
+
position: relative;
|
|
70
|
+
|
|
71
|
+
&:hover{
|
|
72
|
+
box-shadow: 0px 0px 0px 1px rgba(71, 75, 96, 0.05), 0px 2px 4px rgba(71, 75, 96, 0.15);
|
|
73
|
+
transform: translateY(-4px);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.label{
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
line-height: 20px;
|
|
80
|
+
color: #202127;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.help{
|
|
84
|
+
font-size: 12px;
|
|
85
|
+
line-height: 16px;
|
|
86
|
+
color: #75798F;
|
|
87
|
+
margin-top: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.select-check{
|
|
91
|
+
background: #0B71EB;
|
|
92
|
+
border-radius: 100%;
|
|
93
|
+
position: absolute;
|
|
94
|
+
opacity: 0;
|
|
95
|
+
transition: .2s;
|
|
96
|
+
top: 8px;
|
|
97
|
+
left: 8px;
|
|
98
|
+
width: 18px;
|
|
99
|
+
height: 18px;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
|
|
104
|
+
&:before{
|
|
105
|
+
opacity: 0;
|
|
106
|
+
transform: rotate(-15deg) scale(.7);
|
|
107
|
+
transition: .4s;
|
|
108
|
+
width: 8px;
|
|
109
|
+
height: 8px;
|
|
110
|
+
content: "";
|
|
111
|
+
background-image: svg-uri('<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 4.259L3.347 6.998L7 1" stroke="white" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-selected{
|
|
116
|
+
background: #F4F9FF;
|
|
117
|
+
border: 1px solid #A7CFFF;
|
|
118
|
+
box-shadow: none;
|
|
119
|
+
|
|
120
|
+
.select-check{
|
|
121
|
+
opacity: 1;
|
|
122
|
+
|
|
123
|
+
&:before{
|
|
124
|
+
opacity: 1;
|
|
125
|
+
transform: rotate(0) scale(1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:hover{
|
|
130
|
+
box-shadow: none;
|
|
131
|
+
transform: translateY(0);
|
|
132
|
+
}
|
|
43
133
|
}
|
|
134
|
+
|
|
135
|
+
&-disabled{
|
|
136
|
+
background: #F9FAFC;
|
|
137
|
+
border: 1px solid #ECEDF2;
|
|
138
|
+
box-shadow: none;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
|
|
141
|
+
.label{
|
|
142
|
+
color: #65687A;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.help{
|
|
146
|
+
color: #929AA9;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.illustration{
|
|
152
|
+
width: 140px;
|
|
153
|
+
height: 140px;
|
|
154
|
+
background-position: center center;
|
|
155
|
+
margin-bottom: 16px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.load-file-annotations{
|
|
159
|
+
background: url('../../assets/images/selectable-tiles-illustrations/load-file-annotations.svg');
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.load-file-designation-report{
|
|
163
|
+
background: url('../../assets/images/selectable-tiles-illustrations/load-file-designation-report.svg');
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.load-file-designation{
|
|
167
|
+
background: url('../../assets/images/selectable-tiles-illustrations/load-file-designation.svg');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.load-file-zip{
|
|
171
|
+
background: url('../../assets/images/selectable-tiles-illustrations/load-file-zip.svg');
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.overlay-files{
|
|
175
|
+
background: url('../../assets/images/selectable-tiles-illustrations/overlay-files.svg');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.overlay-metadata{
|
|
179
|
+
background: url('../../assets/images/selectable-tiles-illustrations/overlay-metadata.svg');
|
|
44
180
|
}
|
|
45
181
|
</style>
|
|
@@ -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
|
});
|
|
@@ -7,6 +7,17 @@ export default {
|
|
|
7
7
|
|
|
8
8
|
export const selectTile = () => ({
|
|
9
9
|
components: { EcsSelectTile },
|
|
10
|
-
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
selectedTile: null
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
template: `
|
|
16
|
+
<main>
|
|
17
|
+
<ecs-select-tile @click="selectedTile = 1" :selected="selectedTile == 1" label="Designation Load File Import" help-text="CSV or XLS Load File" illustration="load-file-designation" />
|
|
18
|
+
<ecs-select-tile @click="selectedTile = 2" :selected="selectedTile == 2" label="Designation Report Import" help-text="XLS Report" illustration="load-file-designation-report" />
|
|
19
|
+
<ecs-select-tile @click="selectedTile = 3" disabled :selected="selectedTile == 3" label="Designation Report Import" help-text="XLS Report" illustration="load-file-designation-report" />
|
|
20
|
+
</main>
|
|
21
|
+
`,
|
|
11
22
|
});
|
|
12
23
|
|