@gitlab/ui 111.7.1 → 111.8.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/CHANGELOG.md +14 -0
- package/dist/components/base/animated_icon/animated_chevron_down_up_icon.js +45 -0
- package/dist/components/base/animated_icon/animated_chevron_lg_down_up_icon.js +45 -0
- package/dist/components/base/animated_icon/animated_chevron_lg_right_down_icon.js +45 -0
- package/dist/components/charts/area/area.js +15 -13
- package/dist/components/charts/line/line.js +15 -8
- package/dist/components/charts/stacked_column/stacked_column.js +18 -8
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +3 -0
- package/dist/utils/charts/config.js +4 -0
- package/package.json +1 -1
- package/src/components/base/animated_icon/animated_chevron_down_up_icon.vue +36 -0
- package/src/components/base/animated_icon/animated_chevron_lg_down_up_icon.vue +36 -0
- package/src/components/base/animated_icon/animated_chevron_lg_right_down_icon.vue +28 -0
- package/src/components/base/animated_icon/animated_icon.scss +106 -0
- package/src/components/charts/area/area.vue +17 -13
- package/src/components/charts/line/line.vue +17 -8
- package/src/components/charts/stacked_column/stacked_column.vue +48 -36
- package/src/index.js +3 -0
- package/src/utils/charts/config.js +3 -0
package/dist/index.js
CHANGED
|
@@ -13,6 +13,9 @@ export { default as GlIntersectionObserver } from './components/utilities/inters
|
|
|
13
13
|
export { default as GlDeprecatedLink, default as GlLink } from './components/base/link/link';
|
|
14
14
|
export { default as GlIcon } from './components/base/icon/icon';
|
|
15
15
|
export { default as GlAnimatedChevronRightDownIcon } from './components/base/animated_icon/animated_chevron_right_down_icon';
|
|
16
|
+
export { default as GlAnimatedChevronLgRightDownIcon } from './components/base/animated_icon/animated_chevron_lg_right_down_icon';
|
|
17
|
+
export { default as GlAnimatedChevronDownUpIcon } from './components/base/animated_icon/animated_chevron_down_up_icon';
|
|
18
|
+
export { default as GlAnimatedChevronLgDownUpIcon } from './components/base/animated_icon/animated_chevron_lg_down_up_icon';
|
|
16
19
|
export { default as GlAnimatedDuoChatIcon } from './components/base/animated_icon/animated_duo_chat_icon';
|
|
17
20
|
export { default as GlAnimatedLoaderIcon } from './components/base/animated_icon/animated_loader_icon';
|
|
18
21
|
export { default as GlAnimatedNotificationIcon } from './components/base/animated_icon/animated_notifications_icon';
|
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import GlBaseAnimatedIcon from './base_animated_icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'GlAnimatedChevronDownUpIcon',
|
|
6
|
+
extends: GlBaseAnimatedIcon,
|
|
7
|
+
};
|
|
8
|
+
</script>
|
|
9
|
+
<template>
|
|
10
|
+
<svg
|
|
11
|
+
:class="[iconStateClass, iconVariantClass]"
|
|
12
|
+
:aria-label="ariaLabel"
|
|
13
|
+
width="16"
|
|
14
|
+
height="16"
|
|
15
|
+
viewBox="0 0 16 16"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
>
|
|
19
|
+
<path
|
|
20
|
+
class="gl-animated-chevron-down-up-arrow-left-line"
|
|
21
|
+
d="M0 0L0 4.6"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
stroke-width="1.5"
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
class="gl-animated-chevron-down-up-arrow-right-line"
|
|
29
|
+
d="M0 0L0 4.6"
|
|
30
|
+
stroke="currentColor"
|
|
31
|
+
stroke-width="1.5"
|
|
32
|
+
stroke-linecap="round"
|
|
33
|
+
stroke-linejoin="round"
|
|
34
|
+
/>
|
|
35
|
+
</svg>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import GlBaseAnimatedIcon from './base_animated_icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'GlAnimatedChevronLgDownUpIcon',
|
|
6
|
+
extends: GlBaseAnimatedIcon,
|
|
7
|
+
};
|
|
8
|
+
</script>
|
|
9
|
+
<template>
|
|
10
|
+
<svg
|
|
11
|
+
:class="[iconStateClass, iconVariantClass]"
|
|
12
|
+
:aria-label="ariaLabel"
|
|
13
|
+
width="16"
|
|
14
|
+
height="16"
|
|
15
|
+
viewBox="0 0 16 16"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
>
|
|
19
|
+
<path
|
|
20
|
+
class="gl-animated-chevron-lg-down-up-arrow-left-line"
|
|
21
|
+
d="M0 0L0 7.5"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
stroke-width="1.5"
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
<path
|
|
28
|
+
class="gl-animated-chevron-lg-down-up-arrow-right-line"
|
|
29
|
+
d="M0 0L0 7.5"
|
|
30
|
+
stroke="currentColor"
|
|
31
|
+
stroke-width="1.5"
|
|
32
|
+
stroke-linecap="round"
|
|
33
|
+
stroke-linejoin="round"
|
|
34
|
+
/>
|
|
35
|
+
</svg>
|
|
36
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import GlBaseAnimatedIcon from './base_animated_icon.vue';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: 'GlAnimatedChevronLgRightDownIcon',
|
|
6
|
+
extends: GlBaseAnimatedIcon,
|
|
7
|
+
};
|
|
8
|
+
</script>
|
|
9
|
+
<template>
|
|
10
|
+
<svg
|
|
11
|
+
:class="[iconStateClass, iconVariantClass]"
|
|
12
|
+
:aria-label="ariaLabel"
|
|
13
|
+
width="16"
|
|
14
|
+
height="16"
|
|
15
|
+
viewBox="0 0 16 16"
|
|
16
|
+
fill="none"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
>
|
|
19
|
+
<path
|
|
20
|
+
class="gl-animated-chevron-lg-right-down-arrow"
|
|
21
|
+
d="M5.75 13.2537L11.0018 8.00183L5.75 2.75"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
stroke-width="1.5"
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
/>
|
|
27
|
+
</svg>
|
|
28
|
+
</template>
|
|
@@ -53,6 +53,28 @@
|
|
|
53
53
|
color: var(--gl-icon-color-success);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/* * * * * * * * * * * * * * * * *
|
|
57
|
+
* animated_chevron_lg_right_down_icon.vue
|
|
58
|
+
* * * * * * * * * * * * * * * * */
|
|
59
|
+
|
|
60
|
+
.gl-animated-chevron-lg-right-down-arrow {
|
|
61
|
+
transform-origin: center center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* on state */
|
|
65
|
+
.gl-animated-icon-on {
|
|
66
|
+
.gl-animated-chevron-lg-right-down-arrow {
|
|
67
|
+
rotate: 90deg;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* off state */
|
|
72
|
+
.gl-animated-icon-off {
|
|
73
|
+
.gl-animated-chevron-lg-right-down-arrow {
|
|
74
|
+
rotate: 0deg;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
56
78
|
/* * * * * * * * * * * * * * * * *
|
|
57
79
|
* animated_chevron_right_down_icon.vue
|
|
58
80
|
* * * * * * * * * * * * * * * * */
|
|
@@ -75,6 +97,90 @@
|
|
|
75
97
|
}
|
|
76
98
|
}
|
|
77
99
|
|
|
100
|
+
/* * * * * * * * * * * * * * * * *
|
|
101
|
+
* animated_chevron_lg_down_up_icon.vue
|
|
102
|
+
* * * * * * * * * * * * * * * * */
|
|
103
|
+
|
|
104
|
+
/* on state */
|
|
105
|
+
.gl-animated-icon-on {
|
|
106
|
+
.gl-animated-chevron-lg-down-up-arrow-left-line,
|
|
107
|
+
.gl-animated-chevron-lg-down-up-arrow-right-line {
|
|
108
|
+
translate: 50% 31.2%;
|
|
109
|
+
scale: 1 1.01;
|
|
110
|
+
transition: all $gl-transition-duration-medium $gl-easing-out-cubic,
|
|
111
|
+
scale $gl-transition-duration-medium linear(1 0%, -29 16%, 1 100%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.gl-animated-chevron-lg-down-up-arrow-left-line {
|
|
115
|
+
rotate: 45deg;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.gl-animated-chevron-lg-down-up-arrow-right-line {
|
|
119
|
+
rotate: -45deg;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* off state */
|
|
124
|
+
.gl-animated-icon-off {
|
|
125
|
+
.gl-animated-chevron-lg-down-up-arrow-left-line,
|
|
126
|
+
.gl-animated-chevron-lg-down-up-arrow-right-line {
|
|
127
|
+
translate: 50% 68.8%;
|
|
128
|
+
scale: 1 1;
|
|
129
|
+
transition: all $gl-transition-duration-medium $gl-easing-out-cubic,
|
|
130
|
+
scale $gl-transition-duration-medium linear(1 0%, 29 16%, 1 100%);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.gl-animated-chevron-lg-down-up-arrow-left-line {
|
|
134
|
+
rotate: 135deg;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.gl-animated-chevron-lg-down-up-arrow-right-line {
|
|
138
|
+
rotate: -135deg;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* * * * * * * * * * * * * * * * *
|
|
143
|
+
* animated_chevron_down_up_icon.vue
|
|
144
|
+
* * * * * * * * * * * * * * * * */
|
|
145
|
+
|
|
146
|
+
/* on state */
|
|
147
|
+
.gl-animated-icon-on {
|
|
148
|
+
.gl-animated-chevron-down-up-arrow-left-line,
|
|
149
|
+
.gl-animated-chevron-down-up-arrow-right-line {
|
|
150
|
+
translate: 50% 37.6%;
|
|
151
|
+
scale: 1 1.01;
|
|
152
|
+
transition: all $gl-transition-duration-medium $gl-easing-out-cubic,
|
|
153
|
+
scale $gl-transition-duration-medium linear(1 0%, -27 16%, 1 100%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.gl-animated-chevron-down-up-arrow-left-line {
|
|
157
|
+
rotate: 45deg;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.gl-animated-chevron-down-up-arrow-right-line {
|
|
161
|
+
rotate: -45deg;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* off state */
|
|
166
|
+
.gl-animated-icon-off {
|
|
167
|
+
.gl-animated-chevron-down-up-arrow-left-line,
|
|
168
|
+
.gl-animated-chevron-down-up-arrow-right-line {
|
|
169
|
+
translate: 50% 62.6%;
|
|
170
|
+
scale: 1 1;
|
|
171
|
+
transition: all $gl-transition-duration-medium $gl-easing-out-cubic,
|
|
172
|
+
scale $gl-transition-duration-medium linear(1 0%, 27 16%, 1 100%);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.gl-animated-chevron-down-up-arrow-left-line {
|
|
176
|
+
rotate: 135deg;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.gl-animated-chevron-down-up-arrow-right-line {
|
|
180
|
+
rotate: -135deg;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
78
184
|
/* * * * * * * * * * * * * * * * *
|
|
79
185
|
* animated_duo_chat_icon.vue
|
|
80
186
|
* * * * * * * * * * * * * * * * */
|
|
@@ -186,18 +186,7 @@ export default {
|
|
|
186
186
|
return generateAnnotationSeries(this.annotations);
|
|
187
187
|
},
|
|
188
188
|
options() {
|
|
189
|
-
const
|
|
190
|
-
xAxis: {
|
|
191
|
-
axisPointer: {
|
|
192
|
-
show: true,
|
|
193
|
-
lineStyle: {
|
|
194
|
-
type: 'solid',
|
|
195
|
-
},
|
|
196
|
-
label: {
|
|
197
|
-
formatter: this.formatTooltipText,
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
},
|
|
189
|
+
const areaChartOptions = {
|
|
201
190
|
yAxis: {
|
|
202
191
|
axisTick: {
|
|
203
192
|
show: false,
|
|
@@ -207,10 +196,25 @@ export default {
|
|
|
207
196
|
show: false,
|
|
208
197
|
},
|
|
209
198
|
};
|
|
199
|
+
|
|
200
|
+
// `formatTooltipText` is deprecated, these added options should be
|
|
201
|
+
// removed when `formatTooltipText` is removed.
|
|
202
|
+
const deprecatedTooltipFormatterOptions = {
|
|
203
|
+
xAxis: {
|
|
204
|
+
axisPointer: {
|
|
205
|
+
show: true,
|
|
206
|
+
label: {
|
|
207
|
+
formatter: this.formatTooltipText,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
|
|
210
213
|
const mergedOptions = merge(
|
|
211
214
|
{},
|
|
212
215
|
defaultChartOptions,
|
|
213
|
-
|
|
216
|
+
areaChartOptions,
|
|
217
|
+
this.formatTooltipText ? deprecatedTooltipFormatterOptions : {},
|
|
214
218
|
this.option,
|
|
215
219
|
dataZoomAdjustments(this.option.dataZoom)
|
|
216
220
|
);
|
|
@@ -180,14 +180,8 @@ export default {
|
|
|
180
180
|
return generateAnnotationSeries(this.annotations);
|
|
181
181
|
},
|
|
182
182
|
options() {
|
|
183
|
-
const
|
|
183
|
+
const lineChartOptions = {
|
|
184
184
|
xAxis: {
|
|
185
|
-
axisPointer: {
|
|
186
|
-
show: true,
|
|
187
|
-
label: {
|
|
188
|
-
formatter: this.formatTooltipText,
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
185
|
axisTick: {
|
|
192
186
|
alignWithLabel: true,
|
|
193
187
|
show: true,
|
|
@@ -200,10 +194,25 @@ export default {
|
|
|
200
194
|
show: false,
|
|
201
195
|
},
|
|
202
196
|
};
|
|
197
|
+
|
|
198
|
+
// `formatTooltipText` is deprecated, these added options should be
|
|
199
|
+
// removed when `formatTooltipText` is removed.
|
|
200
|
+
const deprecatedTooltipFormatterOptions = {
|
|
201
|
+
xAxis: {
|
|
202
|
+
axisPointer: {
|
|
203
|
+
show: true,
|
|
204
|
+
label: {
|
|
205
|
+
formatter: this.formatTooltipText,
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
};
|
|
210
|
+
|
|
203
211
|
const mergedOptions = merge(
|
|
204
212
|
{},
|
|
205
213
|
defaultChartOptions,
|
|
206
|
-
|
|
214
|
+
lineChartOptions,
|
|
215
|
+
this.formatTooltipText ? deprecatedTooltipFormatterOptions : {},
|
|
207
216
|
this.option,
|
|
208
217
|
dataZoomAdjustments(this.option.dataZoom)
|
|
209
218
|
);
|
|
@@ -192,46 +192,58 @@ export default {
|
|
|
192
192
|
return [...this.barSeries, ...this.lineSeries, ...this.secondarySeries];
|
|
193
193
|
},
|
|
194
194
|
options() {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
axisLabel: {
|
|
203
|
-
margin: 20,
|
|
204
|
-
verticalAlign: 'bottom',
|
|
205
|
-
},
|
|
206
|
-
axisLine: {
|
|
207
|
-
show: false,
|
|
208
|
-
},
|
|
209
|
-
axisPointer: {
|
|
210
|
-
show: true,
|
|
211
|
-
type: 'none',
|
|
212
|
-
label: {
|
|
213
|
-
formatter: this.formatTooltipText,
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
data: this.groupBy,
|
|
217
|
-
name: this.xAxisTitle,
|
|
218
|
-
type: this.xAxisType,
|
|
195
|
+
const stackedColumnChartOptions = {
|
|
196
|
+
grid: this.hasSecondaryAxis ? gridWithSecondaryYAxis : grid,
|
|
197
|
+
xAxis: {
|
|
198
|
+
boundaryGap: true,
|
|
199
|
+
axisLabel: {
|
|
200
|
+
margin: 20,
|
|
201
|
+
verticalAlign: 'bottom',
|
|
219
202
|
},
|
|
220
|
-
|
|
221
|
-
{
|
|
222
|
-
...yAxisDefaults,
|
|
223
|
-
name: this.yAxisTitle,
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
...yAxisDefaults,
|
|
227
|
-
name: this.secondaryDataTitle,
|
|
228
|
-
show: this.hasSecondaryAxis,
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
legend: {
|
|
203
|
+
axisLine: {
|
|
232
204
|
show: false,
|
|
233
205
|
},
|
|
206
|
+
axisPointer: {
|
|
207
|
+
type: 'none',
|
|
208
|
+
},
|
|
209
|
+
data: this.groupBy,
|
|
210
|
+
name: this.xAxisTitle,
|
|
211
|
+
type: this.xAxisType,
|
|
212
|
+
},
|
|
213
|
+
yAxis: [
|
|
214
|
+
{
|
|
215
|
+
...yAxisDefaults,
|
|
216
|
+
name: this.yAxisTitle,
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
...yAxisDefaults,
|
|
220
|
+
name: this.secondaryDataTitle,
|
|
221
|
+
show: this.hasSecondaryAxis,
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
legend: {
|
|
225
|
+
show: false,
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
// `formatTooltipText` is deprecated, these added options should be
|
|
230
|
+
// removed when `formatTooltipText` is removed.
|
|
231
|
+
const deprecatedTooltipFormatterOptions = {
|
|
232
|
+
xAxis: {
|
|
233
|
+
axisPointer: {
|
|
234
|
+
show: true,
|
|
235
|
+
label: {
|
|
236
|
+
formatter: this.formatTooltipText,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
234
239
|
},
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const mergedOptions = merge(
|
|
243
|
+
{},
|
|
244
|
+
defaultChartOptions,
|
|
245
|
+
stackedColumnChartOptions,
|
|
246
|
+
this.formatTooltipText ? deprecatedTooltipFormatterOptions : {},
|
|
235
247
|
this.option,
|
|
236
248
|
dataZoomAdjustments(this.option.dataZoom)
|
|
237
249
|
);
|
package/src/index.js
CHANGED
|
@@ -19,6 +19,9 @@ export { default as GlIntersectionObserver } from './components/utilities/inters
|
|
|
19
19
|
export { default as GlLink, default as GlDeprecatedLink } from './components/base/link/link.vue';
|
|
20
20
|
export { default as GlIcon } from './components/base/icon/icon.vue';
|
|
21
21
|
export { default as GlAnimatedChevronRightDownIcon } from './components/base/animated_icon/animated_chevron_right_down_icon.vue';
|
|
22
|
+
export { default as GlAnimatedChevronLgRightDownIcon } from './components/base/animated_icon/animated_chevron_lg_right_down_icon.vue';
|
|
23
|
+
export { default as GlAnimatedChevronDownUpIcon } from './components/base/animated_icon/animated_chevron_down_up_icon.vue';
|
|
24
|
+
export { default as GlAnimatedChevronLgDownUpIcon } from './components/base/animated_icon/animated_chevron_lg_down_up_icon.vue';
|
|
22
25
|
export { default as GlAnimatedDuoChatIcon } from './components/base/animated_icon/animated_duo_chat_icon.vue';
|
|
23
26
|
export { default as GlAnimatedLoaderIcon } from './components/base/animated_icon/animated_loader_icon.vue';
|
|
24
27
|
export { default as GlAnimatedNotificationIcon } from './components/base/animated_icon/animated_notifications_icon.vue';
|