@gitlab/ui 49.11.1 → 50.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/charts/area/area.js +1 -3
  3. package/dist/components/charts/bar/bar.js +1 -3
  4. package/dist/components/charts/column/column.js +1 -3
  5. package/dist/components/charts/discrete_scatter/discrete_scatter.js +1 -3
  6. package/dist/components/charts/gauge/gauge.js +1 -3
  7. package/dist/components/charts/heatmap/heatmap.js +1 -3
  8. package/dist/components/charts/line/line.js +1 -3
  9. package/dist/components/charts/stacked_column/stacked_column.js +1 -3
  10. package/dist/index.css +1 -1
  11. package/dist/index.css.map +1 -1
  12. package/dist/utils/charts/config.js +1 -33
  13. package/package.json +6 -6
  14. package/src/components/base/drawer/drawer.scss +2 -4
  15. package/src/components/charts/area/area.stories.js +0 -5
  16. package/src/components/charts/area/area.vue +1 -4
  17. package/src/components/charts/bar/bar.stories.js +0 -10
  18. package/src/components/charts/bar/bar.vue +1 -4
  19. package/src/components/charts/column/column.vue +1 -4
  20. package/src/components/charts/discrete_scatter/discrete_scatter.vue +1 -4
  21. package/src/components/charts/gauge/gauge.vue +1 -4
  22. package/src/components/charts/heatmap/heatmap.stories.js +0 -5
  23. package/src/components/charts/heatmap/heatmap.vue +0 -3
  24. package/src/components/charts/line/line.stories.js +0 -5
  25. package/src/components/charts/line/line.vue +1 -4
  26. package/src/components/charts/stacked_column/stacked_column.vue +1 -4
  27. package/src/utils/charts/config.js +0 -36
  28. package/dist/components/mixins/toolbox_mixin.js +0 -45
  29. package/src/components/mixins/toolbox_mixin.js +0 -46
package/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # [50.0.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.11.2...v50.0.0) (2022-11-22)
2
+
3
+
4
+ ### Code Refactoring
5
+
6
+ * **charts:** Remove unused ToolboxMixin ([0d486ee](https://gitlab.com/gitlab-org/gitlab-ui/commit/0d486ee1dfcf4bc0f93f2e64f928eff803fe49ee))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * **charts:** - remove ToolboxMixin
12
+ - remove getToolboxConfig in utils/charts/config
13
+
14
+ ## [49.11.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.11.1...v49.11.2) (2022-11-17)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **GlDrawer:** change drawer horizontal padding ([11579fe](https://gitlab.com/gitlab-org/gitlab-ui/commit/11579fe7561f52d4808afcf8dd3c319265d35418))
20
+ * **GlDrawer:** change drawer horizontal padding ([55d51d5](https://gitlab.com/gitlab-org/gitlab-ui/commit/55d51d564dd38491cfe74a582337dc06df3120f6))
21
+
1
22
  ## [49.11.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.11.0...v49.11.1) (2022-11-16)
2
23
 
3
24
 
@@ -4,7 +4,6 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
7
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
8
  import Chart from '../chart/chart';
10
9
  import ChartLegend from '../legend/legend';
@@ -19,7 +18,6 @@ var script = {
19
18
  ChartTooltip,
20
19
  TooltipDefaultFormat
21
20
  },
22
- mixins: [ToolboxMixin],
23
21
  inheritAttrs: false,
24
22
  props: {
25
23
  data: {
@@ -161,7 +159,7 @@ var script = {
161
159
  show: false
162
160
  }
163
161
  };
164
- const mergedOptions = merge({}, defaultChartOptions, defaultAreaChartOptions, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
162
+ const mergedOptions = merge({}, defaultChartOptions, defaultAreaChartOptions, this.option, dataZoomAdjustments(this.option.dataZoom));
165
163
  // All chart options can be merged but series
166
164
  // needs to be handled specially.
167
165
  return mergeSeriesToOptions(mergeAnnotationAxisToOptions(mergedOptions, this.hasAnnotations), this.series);
@@ -5,7 +5,6 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
5
5
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
6
6
  import { engineeringNotation } from '../../../utils/number_utils';
7
7
  import { debounceByAnimationFrame, hexToRgba } from '../../../utils/utils';
8
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
9
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
10
9
  import Chart from '../chart/chart';
11
10
  import ChartTooltip from '../tooltip/tooltip';
@@ -61,7 +60,6 @@ var script = {
61
60
  ChartTooltip,
62
61
  TooltipDefaultFormat
63
62
  },
64
- mixins: [ToolboxMixin],
65
63
  inheritAttrs: false,
66
64
  props: {
67
65
  data: {
@@ -149,7 +147,7 @@ var script = {
149
147
  legend: {
150
148
  show: false
151
149
  }
152
- }, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
150
+ }, this.option, dataZoomAdjustments(this.option.dataZoom));
153
151
  // All chart options can be merged but series
154
152
  // needs to be handled specially
155
153
  return mergeSeriesToOptions(mergedOptions, this.series);
@@ -4,7 +4,6 @@ import { CHART_TYPE_LINE, TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/cons
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { columnOptions } from '../../../utils/constants';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
7
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
8
  import Chart from '../chart/chart';
10
9
  import ChartTooltip from '../tooltip/tooltip';
@@ -24,7 +23,6 @@ var script = {
24
23
  ChartTooltip,
25
24
  TooltipDefaultFormat
26
25
  },
27
- mixins: [ToolboxMixin],
28
26
  inheritAttrs: false,
29
27
  props: {
30
28
  bars: {
@@ -173,7 +171,7 @@ var script = {
173
171
  legend: {
174
172
  show: false
175
173
  }
176
- }, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
174
+ }, this.option, dataZoomAdjustments(this.option.dataZoom));
177
175
  // All chart options can be merged but series
178
176
  // needs to be handled specially
179
177
  return mergeSeriesToOptions(mergedOptions, this.series);
@@ -2,7 +2,6 @@ import merge from 'lodash/merge';
2
2
  import { defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
3
3
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
4
4
  import { debounceByAnimationFrame } from '../../../utils/utils';
5
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
6
5
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
7
6
  import Chart from '../chart/chart';
8
7
  import ChartTooltip from '../tooltip/tooltip';
@@ -16,7 +15,6 @@ var script = {
16
15
  ChartTooltip,
17
16
  TooltipDefaultFormat
18
17
  },
19
- mixins: [ToolboxMixin],
20
18
  inheritAttrs: false,
21
19
  props: {
22
20
  data: {
@@ -104,7 +102,7 @@ var script = {
104
102
  legend: {
105
103
  show: false
106
104
  }
107
- }, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
105
+ }, this.option, dataZoomAdjustments(this.option.dataZoom));
108
106
  // All chart options can be merged but series
109
107
  // needs to be handled specially
110
108
  return mergeSeriesToOptions(mergedOptions, this.series);
@@ -3,7 +3,6 @@ import _uniq from 'lodash/uniq';
3
3
  import _isFinite from 'lodash/isFinite';
4
4
  import _merge from 'lodash/merge';
5
5
  import { gaugeNeutralHues, gaugeSafeHues, gaugeWarningHue } from '../../../utils/charts/theme';
6
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
7
6
  import Chart from '../chart/chart';
8
7
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
8
 
@@ -64,7 +63,6 @@ var script = {
64
63
  components: {
65
64
  Chart
66
65
  },
67
- mixins: [ToolboxMixin],
68
66
  props: {
69
67
  value: {
70
68
  type: Number,
@@ -115,7 +113,7 @@ var script = {
115
113
  splitNumber: this.splitNumber,
116
114
  axisColor: this.axisColor
117
115
  })
118
- }, this.option, this.toolboxAdjustments);
116
+ }, this.option);
119
117
  return mergedOptions;
120
118
  },
121
119
  validThresholds() {
@@ -4,7 +4,6 @@ import { TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
4
4
  import { heatmapHues } from '../../../utils/charts/theme';
5
5
  import { engineeringNotation } from '../../../utils/number_utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
7
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
8
  import Chart from '../chart/chart';
10
9
  import ChartLegend from '../legend/legend';
@@ -50,7 +49,6 @@ var script = {
50
49
  ChartTooltip,
51
50
  TooltipDefaultFormat
52
51
  },
53
- mixins: [ToolboxMixin],
54
52
  props: {
55
53
  options: {
56
54
  type: Object,
@@ -188,7 +186,7 @@ var script = {
188
186
  }
189
187
  }
190
188
  }
191
- }, this.toolboxAdjustments, this.options);
189
+ }, this.options);
192
190
  },
193
191
  legendStyle() {
194
192
  return {
@@ -4,7 +4,6 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { seriesHasAnnotations, isDataPointAnnotation } from '../../../utils/charts/utils';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
7
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
8
  import Chart from '../chart/chart';
10
9
  import ChartLegend from '../legend/legend';
@@ -21,7 +20,6 @@ var script = {
21
20
  ChartTooltip,
22
21
  TooltipDefaultFormat
23
22
  },
24
- mixins: [ToolboxMixin],
25
23
  inheritAttrs: false,
26
24
  props: {
27
25
  data: {
@@ -161,7 +159,7 @@ var script = {
161
159
  show: false
162
160
  }
163
161
  };
164
- const mergedOptions = merge({}, defaultChartOptions, defaultLineChartOptions, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
162
+ const mergedOptions = merge({}, defaultChartOptions, defaultLineChartOptions, this.option, dataZoomAdjustments(this.option.dataZoom));
165
163
  // All chart options can be merged but series
166
164
  // needs to be handled specially
167
165
  return mergeSeriesToOptions(mergeAnnotationAxisToOptions(mergedOptions, this.hasAnnotations), this.series);
@@ -4,7 +4,6 @@ import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_T
4
4
  import { colorFromDefaultPalette } from '../../../utils/charts/theme';
5
5
  import { columnOptions } from '../../../utils/constants';
6
6
  import { debounceByAnimationFrame } from '../../../utils/utils';
7
- import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
7
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
8
  import Chart from '../chart/chart';
10
9
  import ChartLegend from '../legend/legend';
@@ -25,7 +24,6 @@ var script = {
25
24
  ChartLegend,
26
25
  TooltipDefaultFormat
27
26
  },
28
- mixins: [ToolboxMixin],
29
27
  inheritAttrs: false,
30
28
  props: {
31
29
  bars: {
@@ -229,7 +227,7 @@ var script = {
229
227
  legend: {
230
228
  show: false
231
229
  }
232
- }, this.option, dataZoomAdjustments(this.option.dataZoom), this.toolboxAdjustments);
230
+ }, this.option, dataZoomAdjustments(this.option.dataZoom));
233
231
  // All chart options can be merged but series
234
232
  // needs to be handled specially
235
233
  return mergeSeriesToOptions(mergedOptions, this.series);