@gitlab/ui 109.2.1 → 110.0.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/CHANGELOG.md +13 -0
- package/dist/charts.js +0 -1
- package/dist/components/charts/area/area.js +1 -1
- package/dist/components/charts/bar/bar.js +2 -2
- package/dist/components/charts/column/column.js +1 -1
- package/dist/components/charts/discrete_scatter/discrete_scatter.js +2 -2
- package/dist/components/charts/heatmap/heatmap.js +2 -2
- package/dist/components/charts/line/line.js +1 -1
- package/dist/components/charts/{tooltip → shared/tooltip}/tooltip.js +6 -6
- package/dist/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.js +1 -1
- package/dist/components/charts/sparkline/sparkline.js +1 -1
- package/dist/components/charts/stacked_column/stacked_column.js +2 -2
- package/package.json +1 -1
- package/src/charts.js +0 -1
- package/src/components/charts/area/area.vue +1 -1
- package/src/components/charts/bar/bar.vue +2 -2
- package/src/components/charts/column/column.vue +1 -1
- package/src/components/charts/discrete_scatter/discrete_scatter.vue +2 -2
- package/src/components/charts/heatmap/heatmap.vue +2 -2
- package/src/components/charts/line/line.vue +1 -1
- package/src/components/charts/{tooltip → shared/tooltip}/tooltip.vue +7 -6
- package/src/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.vue +1 -1
- package/src/components/charts/sparkline/sparkline.vue +1 -1
- package/src/components/charts/stacked_column/stacked_column.vue +2 -2
- package/src/scss/components.scss +2 -2
- /package/src/components/charts/{tooltip → shared/tooltip}/tooltip.md +0 -0
- /package/src/components/charts/{tooltip → shared/tooltip}/tooltip.scss +0 -0
- /package/src/components/{shared_components/charts → charts/shared/tooltip/tooltip_default_format}/tooltip_default_format.scss +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [110.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v109.2.1...v110.0.0) (2025-03-07)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **charts:** Removes GlChartTooltip component from published package ([99517f4](https://gitlab.com/gitlab-org/gitlab-ui/commit/99517f418f6b9116a724eba247dc004403557a77))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **charts:** GlChartTooltip cannot be imported
|
|
12
|
+
from '@gitlab/ui/dist/charts'
|
|
13
|
+
|
|
1
14
|
## [109.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v109.2.0...v109.2.1) (2025-03-07)
|
|
2
15
|
|
|
3
16
|
|
package/dist/charts.js
CHANGED
|
@@ -5,7 +5,6 @@ export { default as GlGaugeChart } from './components/charts/gauge/gauge';
|
|
|
5
5
|
export { default as GlLineChart } from './components/charts/line/line';
|
|
6
6
|
export { default as GlChartLegend } from './components/charts/legend/legend';
|
|
7
7
|
export { default as GlChartSeriesLabel } from './components/charts/series_label/series_label';
|
|
8
|
-
export { default as GlChartTooltip } from './components/charts/tooltip/tooltip';
|
|
9
8
|
export { default as GlHeatmap } from './components/charts/heatmap';
|
|
10
9
|
export { default as GlColumnChart } from './components/charts/column/column';
|
|
11
10
|
export { default as GlStackedColumnChart } from './components/charts/stacked_column/stacked_column';
|
|
@@ -5,7 +5,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
5
5
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
6
6
|
import Chart from '../chart/chart';
|
|
7
7
|
import ChartLegend from '../legend/legend';
|
|
8
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
8
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
9
9
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
10
10
|
|
|
11
11
|
//
|
|
@@ -5,9 +5,9 @@ import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
|
5
5
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
6
6
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
7
7
|
import { hexToRgba } from '../../../utils/utils';
|
|
8
|
-
import TooltipDefaultFormat from '
|
|
8
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
9
9
|
import Chart from '../chart/chart';
|
|
10
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
10
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
11
11
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
12
12
|
|
|
13
13
|
//
|
|
@@ -4,7 +4,7 @@ import { CHART_TYPE_LINE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/cons
|
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { columnOptions } from '../../../utils/constants';
|
|
6
6
|
import Chart from '../chart/chart';
|
|
7
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
7
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
8
8
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
9
9
|
|
|
10
10
|
//
|
|
@@ -3,9 +3,9 @@ import { GRAY_200 } from '../../../tokens/build/js/tokens';
|
|
|
3
3
|
import { defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
6
|
-
import TooltipDefaultFormat from '
|
|
6
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
7
7
|
import Chart from '../chart/chart';
|
|
8
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
8
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
9
9
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
10
10
|
|
|
11
11
|
var script = {
|
|
@@ -4,10 +4,10 @@ import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config
|
|
|
4
4
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
5
5
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
6
6
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
7
|
-
import TooltipDefaultFormat from '
|
|
7
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
8
8
|
import Chart from '../chart/chart';
|
|
9
9
|
import ChartLegend from '../legend/legend';
|
|
10
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
10
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
11
11
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
12
12
|
|
|
13
13
|
//
|
|
@@ -6,7 +6,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
6
6
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
7
7
|
import Chart from '../chart/chart';
|
|
8
8
|
import ChartLegend from '../legend/legend';
|
|
9
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
9
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
10
10
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
11
11
|
|
|
12
12
|
//
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as echarts from 'echarts';
|
|
2
|
-
import { uid, debounceByAnimationFrame } from '
|
|
3
|
-
import GlPopover from '
|
|
4
|
-
import { popoverPlacements } from '
|
|
5
|
-
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '
|
|
6
|
-
import { getTooltipTitle, getTooltipContent } from '
|
|
7
|
-
import TooltipDefaultFormat from '
|
|
2
|
+
import { uid, debounceByAnimationFrame } from '../../../../utils/utils';
|
|
3
|
+
import GlPopover from '../../../base/popover/popover';
|
|
4
|
+
import { popoverPlacements } from '../../../../utils/constants';
|
|
5
|
+
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '../../../../utils/charts/constants';
|
|
6
|
+
import { getTooltipTitle, getTooltipContent } from '../../../../utils/charts/config';
|
|
7
|
+
import TooltipDefaultFormat from './tooltip_default_format/tooltip_default_format';
|
|
8
8
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
9
9
|
|
|
10
10
|
//
|
|
@@ -5,7 +5,7 @@ import { GlResizeObserverDirective } from '../../../directives/resize_observer/r
|
|
|
5
5
|
import { defaultChartOptions, mergeSeriesToOptions, symbolSize } from '../../../utils/charts/config';
|
|
6
6
|
import { HEIGHT_AUTO_HORIZONTAL_LAYOUT_CLASSES } from '../../../utils/charts/constants';
|
|
7
7
|
import Chart from '../chart/chart';
|
|
8
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
8
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
9
9
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
10
10
|
|
|
11
11
|
//
|
|
@@ -3,10 +3,10 @@ import { yAxis, generateBarSeries, generateLineSeries, defaultChartOptions, grid
|
|
|
3
3
|
import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, CHART_TYPE_LINE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
4
4
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
5
5
|
import { columnOptions } from '../../../utils/constants';
|
|
6
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
6
7
|
import Chart from '../chart/chart';
|
|
7
8
|
import ChartLegend from '../legend/legend';
|
|
8
|
-
import ChartTooltip from '../tooltip/tooltip';
|
|
9
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
|
|
9
|
+
import ChartTooltip from '../shared/tooltip/tooltip';
|
|
10
10
|
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
11
11
|
|
|
12
12
|
const yAxisDefaults = {
|
package/package.json
CHANGED
package/src/charts.js
CHANGED
|
@@ -5,7 +5,6 @@ export { default as GlGaugeChart } from './components/charts/gauge/gauge.vue';
|
|
|
5
5
|
export { default as GlLineChart } from './components/charts/line/line.vue';
|
|
6
6
|
export { default as GlChartLegend } from './components/charts/legend/legend.vue';
|
|
7
7
|
export { default as GlChartSeriesLabel } from './components/charts/series_label/series_label.vue';
|
|
8
|
-
export { default as GlChartTooltip } from './components/charts/tooltip/tooltip.vue';
|
|
9
8
|
export { default as GlHeatmap } from './components/charts/heatmap';
|
|
10
9
|
export { default as GlColumnChart } from './components/charts/column/column.vue';
|
|
11
10
|
export { default as GlStackedColumnChart } from './components/charts/stacked_column/stacked_column.vue';
|
|
@@ -41,7 +41,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
41
41
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
42
42
|
import Chart from '../chart/chart.vue';
|
|
43
43
|
import ChartLegend from '../legend/legend.vue';
|
|
44
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
44
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
45
45
|
|
|
46
46
|
export default {
|
|
47
47
|
name: 'GlAreaChart',
|
|
@@ -7,9 +7,9 @@ import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
|
7
7
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
9
|
import { hexToRgba } from '../../../utils/utils';
|
|
10
|
-
import TooltipDefaultFormat from '
|
|
10
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
11
11
|
import Chart from '../chart/chart.vue';
|
|
12
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
12
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* `nameGap` in charts/config is set to 50 but it is not
|
|
@@ -15,7 +15,7 @@ import { CHART_TYPE_LINE, HEIGHT_AUTO_CLASSES } from '../../../utils/charts/cons
|
|
|
15
15
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
16
16
|
import { columnOptions } from '../../../utils/constants';
|
|
17
17
|
import Chart from '../chart/chart.vue';
|
|
18
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
18
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
19
19
|
|
|
20
20
|
const yAxisDefaults = {
|
|
21
21
|
...yAxis,
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
} from '../../../utils/charts/config';
|
|
9
9
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
10
10
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
11
|
-
import TooltipDefaultFormat from '
|
|
11
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
12
12
|
import Chart from '../chart/chart.vue';
|
|
13
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
13
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
14
14
|
|
|
15
15
|
export default {
|
|
16
16
|
name: 'GlDiscreteScatterChart',
|
|
@@ -6,10 +6,10 @@ import { getTooltipTitle, getTooltipContent } from '../../../utils/charts/config
|
|
|
6
6
|
import { HEIGHT_AUTO_CLASSES } from '../../../utils/charts/constants';
|
|
7
7
|
import { heatmapHues } from '../../../utils/charts/theme';
|
|
8
8
|
import { engineeringNotation } from '../../../utils/number_utils';
|
|
9
|
-
import TooltipDefaultFormat from '
|
|
9
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
10
10
|
import Chart from '../chart/chart.vue';
|
|
11
11
|
import ChartLegend from '../legend/legend.vue';
|
|
12
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
12
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
13
13
|
|
|
14
14
|
const defaultOptions = {
|
|
15
15
|
visualMap: {
|
|
@@ -44,7 +44,7 @@ import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
|
44
44
|
import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
|
|
45
45
|
import Chart from '../chart/chart.vue';
|
|
46
46
|
import ChartLegend from '../legend/legend.vue';
|
|
47
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
47
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
48
48
|
|
|
49
49
|
export default {
|
|
50
50
|
name: 'GlLineChart',
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<!-- eslint-disable vue/multi-word-component-names -->
|
|
2
2
|
<script>
|
|
3
3
|
import * as echarts from 'echarts';
|
|
4
|
-
import { uid, debounceByAnimationFrame } from '
|
|
5
|
-
import GlPopover from '
|
|
6
|
-
import { popoverPlacements } from '
|
|
7
|
-
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '
|
|
8
|
-
import { getTooltipTitle, getTooltipContent } from '
|
|
9
|
-
|
|
4
|
+
import { uid, debounceByAnimationFrame } from '../../../../utils/utils';
|
|
5
|
+
import GlPopover from '../../../base/popover/popover.vue';
|
|
6
|
+
import { popoverPlacements } from '../../../../utils/constants';
|
|
7
|
+
import { TOOLTIP_LEFT_OFFSET, TOOLTIP_TOP_OFFSET } from '../../../../utils/charts/constants';
|
|
8
|
+
import { getTooltipTitle, getTooltipContent } from '../../../../utils/charts/config';
|
|
9
|
+
|
|
10
|
+
import TooltipDefaultFormat from './tooltip_default_format/tooltip_default_format.vue';
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
name: 'GlChartTooltip',
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '../../../utils/charts/config';
|
|
12
12
|
import { HEIGHT_AUTO_HORIZONTAL_LAYOUT_CLASSES } from '../../../utils/charts/constants';
|
|
13
13
|
import Chart from '../chart/chart.vue';
|
|
14
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
14
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
15
15
|
|
|
16
16
|
// the padding is needed so the mark points don't overflow when visible
|
|
17
17
|
const gridPadding = symbolSize / 2;
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from '../../../utils/charts/constants';
|
|
23
23
|
import { colorFromDefaultPalette } from '../../../utils/charts/theme';
|
|
24
24
|
import { columnOptions } from '../../../utils/constants';
|
|
25
|
+
import TooltipDefaultFormat from '../shared/tooltip/tooltip_default_format/tooltip_default_format.vue';
|
|
25
26
|
import Chart from '../chart/chart.vue';
|
|
26
27
|
import ChartLegend from '../legend/legend.vue';
|
|
27
|
-
import ChartTooltip from '../tooltip/tooltip.vue';
|
|
28
|
-
import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format.vue';
|
|
28
|
+
import ChartTooltip from '../shared/tooltip/tooltip.vue';
|
|
29
29
|
|
|
30
30
|
const yAxisDefaults = {
|
|
31
31
|
...yAxis,
|
package/src/scss/components.scss
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
@import '../components/charts/legend/legend';
|
|
70
70
|
@import '../components/charts/series_label/series_label';
|
|
71
71
|
@import '../components/charts/single_stat/single_stat';
|
|
72
|
-
@import '../components/charts/tooltip/tooltip';
|
|
73
|
-
@import '../components/
|
|
72
|
+
@import '../components/charts/shared/tooltip/tooltip';
|
|
73
|
+
@import '../components/charts/shared/tooltip/tooltip_default_format/tooltip_default_format';
|
|
74
74
|
@import '../components/utilities/truncate/truncate';
|
|
75
75
|
@import '../components/utilities/truncate_text/truncate_text';
|
|
76
76
|
@import '../components/base/new_dropdowns/dropdown';
|
|
File without changes
|
|
File without changes
|