@gitlab/ui 64.2.0 → 64.2.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.
- package/CHANGELOG.md +14 -0
- package/dist/components/charts/stacked_column/stacked_column.js +8 -5
- package/package.json +1 -1
- package/src/components/charts/stacked_column/stacked_column.stories.js +2 -2
- package/src/components/charts/stacked_column/stacked_column.vue +5 -5
- package/src/scss/functions.scss +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [64.2.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v64.2.1...v64.2.2) (2023-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **sass:** revert migration from `/` operator to `calc()` ([5b5fc0b](https://gitlab.com/gitlab-org/gitlab-ui/commit/5b5fc0beaa7f90fdbe4c1b4bd4d583cf2de9b2be))
|
|
7
|
+
|
|
8
|
+
## [64.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v64.2.0...v64.2.1) (2023-06-02)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlStackedColumnChart:** Replace the getDom to getZr for supporting edge ([8412f24](https://gitlab.com/gitlab-org/gitlab-ui/commit/8412f2456c56ea58c68ef8f78ff753ec4701388d))
|
|
14
|
+
|
|
1
15
|
# [64.2.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v64.1.1...v64.2.0) (2023-06-02)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -266,15 +266,18 @@ var script = {
|
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
beforeDestroy() {
|
|
269
|
-
this.chart.
|
|
270
|
-
this.chart.
|
|
269
|
+
this.chart.getZr().off('mousemove', this.debouncedMoveShowTooltip);
|
|
270
|
+
this.chart.getZr().off('mouseout', this.debouncedMoveShowTooltip);
|
|
271
271
|
},
|
|
272
272
|
methods: {
|
|
273
273
|
getColor(index) {
|
|
274
274
|
var _this$customPalette;
|
|
275
275
|
return this.customPalette ? (_this$customPalette = this.customPalette) === null || _this$customPalette === void 0 ? void 0 : _this$customPalette[index] : colorFromDefaultPalette(index);
|
|
276
276
|
},
|
|
277
|
-
moveShowTooltip(
|
|
277
|
+
moveShowTooltip(_ref4) {
|
|
278
|
+
let {
|
|
279
|
+
event: mouseEvent
|
|
280
|
+
} = _ref4;
|
|
278
281
|
this.tooltipPosition = {
|
|
279
282
|
left: `${mouseEvent.zrX}px`,
|
|
280
283
|
top: `${mouseEvent.zrY + ANNOTATION_TOOLTIP_TOP_OFFSET}px`
|
|
@@ -282,8 +285,8 @@ var script = {
|
|
|
282
285
|
this.showTooltip = this.chart.containPixel('grid', [mouseEvent.zrX, mouseEvent.zrY]);
|
|
283
286
|
},
|
|
284
287
|
onCreated(chart) {
|
|
285
|
-
chart.
|
|
286
|
-
chart.
|
|
288
|
+
chart.getZr().on('mousemove', this.debouncedMoveShowTooltip);
|
|
289
|
+
chart.getZr().on('mouseout', this.debouncedMoveShowTooltip);
|
|
287
290
|
this.chart = chart;
|
|
288
291
|
this.$emit('created', chart);
|
|
289
292
|
},
|
package/package.json
CHANGED
|
@@ -58,8 +58,8 @@ const Template = (args, { argTypes }) => ({
|
|
|
58
58
|
template,
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
export const
|
|
62
|
-
|
|
61
|
+
export const Default = Template.bind({});
|
|
62
|
+
Default.args = generateProps();
|
|
63
63
|
|
|
64
64
|
export const Tiled = Template.bind({});
|
|
65
65
|
Tiled.args = generateProps({ presentation: columnOptions.tiled });
|
|
@@ -261,14 +261,14 @@ export default {
|
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
263
|
beforeDestroy() {
|
|
264
|
-
this.chart.
|
|
265
|
-
this.chart.
|
|
264
|
+
this.chart.getZr().off('mousemove', this.debouncedMoveShowTooltip);
|
|
265
|
+
this.chart.getZr().off('mouseout', this.debouncedMoveShowTooltip);
|
|
266
266
|
},
|
|
267
267
|
methods: {
|
|
268
268
|
getColor(index) {
|
|
269
269
|
return this.customPalette ? this.customPalette?.[index] : colorFromDefaultPalette(index);
|
|
270
270
|
},
|
|
271
|
-
moveShowTooltip(mouseEvent) {
|
|
271
|
+
moveShowTooltip({ event: mouseEvent }) {
|
|
272
272
|
this.tooltipPosition = {
|
|
273
273
|
left: `${mouseEvent.zrX}px`,
|
|
274
274
|
top: `${mouseEvent.zrY + ANNOTATION_TOOLTIP_TOP_OFFSET}px`,
|
|
@@ -276,8 +276,8 @@ export default {
|
|
|
276
276
|
this.showTooltip = this.chart.containPixel('grid', [mouseEvent.zrX, mouseEvent.zrY]);
|
|
277
277
|
},
|
|
278
278
|
onCreated(chart) {
|
|
279
|
-
chart.
|
|
280
|
-
chart.
|
|
279
|
+
chart.getZr().on('mousemove', this.debouncedMoveShowTooltip);
|
|
280
|
+
chart.getZr().on('mouseout', this.debouncedMoveShowTooltip);
|
|
281
281
|
this.chart = chart;
|
|
282
282
|
this.$emit('created', chart);
|
|
283
283
|
},
|
package/src/scss/functions.scss
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@return $value;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
$converted:
|
|
24
|
+
$converted: $value / $font-size-base;
|
|
25
25
|
|
|
26
26
|
@return strip-unit($converted) * 1rem;
|
|
27
27
|
}
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
$min-width: px-to-rem($min-width);
|
|
55
55
|
$max-width: px-to-rem($max-width);
|
|
56
56
|
|
|
57
|
-
$slope:
|
|
57
|
+
$slope: ($max - $min) / ($max-width - $min-width);
|
|
58
58
|
$intersection: (-$min-width * $slope) + $min;
|
|
59
59
|
|
|
60
60
|
// Use calc() inside of clamp() function to work around SassC
|