@gitlab/ui 49.8.0 → 49.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/base/new_dropdowns/listbox/listbox.js +8 -5
  3. package/dist/components/base/paginated_list/paginated_list.js +1 -1
  4. package/dist/components/base/pagination/pagination.js +3 -3
  5. package/dist/components/base/path/path.js +1 -1
  6. package/dist/components/charts/area/area.js +2 -2
  7. package/dist/components/charts/bar/bar.js +1 -1
  8. package/dist/components/charts/chart/chart.js +1 -1
  9. package/dist/components/charts/column/column.js +2 -2
  10. package/dist/components/charts/discrete_scatter/discrete_scatter.js +2 -2
  11. package/dist/components/charts/gauge/gauge.js +1 -1
  12. package/dist/components/charts/heatmap/heatmap.js +1 -1
  13. package/dist/components/charts/line/line.js +2 -2
  14. package/dist/components/charts/sparkline/sparkline.js +1 -1
  15. package/dist/components/charts/stacked_column/stacked_column.js +2 -2
  16. package/dist/components/mixins/toolbox_mixin.js +2 -2
  17. package/dist/index.css +2 -2
  18. package/dist/index.css.map +1 -1
  19. package/dist/utility_classes.css +1 -1
  20. package/dist/utility_classes.css.map +1 -1
  21. package/dist/utils/breakpoints.js +2 -3
  22. package/dist/utils/charts/config.js +8 -9
  23. package/dist/utils/charts/theme.js +1 -2
  24. package/dist/utils/use_mock_intersection_observer.js +1 -1
  25. package/dist/utils.js +1 -1
  26. package/package.json +16 -8
  27. package/scss_to_js/scss_variables.js +6 -5
  28. package/scss_to_js/scss_variables.json +15 -10
  29. package/src/components/base/new_dropdowns/listbox/listbox.vue +10 -7
  30. package/src/components/base/paginated_list/__snapshots__/paginated_list.spec.js.snap +0 -8
  31. package/src/components/base/paginated_list/paginated_list.vue +4 -3
  32. package/src/components/base/pagination/pagination.vue +3 -3
  33. package/src/components/base/path/__snapshots__/path.spec.js.snap +0 -30
  34. package/src/components/base/path/path.vue +1 -2
  35. package/src/components/charts/area/area.vue +3 -2
  36. package/src/components/charts/bar/bar.vue +1 -1
  37. package/src/components/charts/chart/chart.spec.js +1 -1
  38. package/src/components/charts/chart/chart.vue +1 -1
  39. package/src/components/charts/column/column.vue +3 -2
  40. package/src/components/charts/discrete_scatter/discrete_scatter.vue +3 -2
  41. package/src/components/charts/gauge/gauge.vue +1 -1
  42. package/src/components/charts/heatmap/heatmap.vue +1 -1
  43. package/src/components/charts/line/line.vue +3 -2
  44. package/src/components/charts/sparkline/sparkline.vue +2 -1
  45. package/src/components/charts/stacked_column/stacked_column.vue +3 -2
  46. package/src/components/mixins/toolbox_mixin.js +1 -1
  47. package/src/components/utilities/intersection_observer/intersection_observer.spec.js +1 -1
  48. package/src/scss/utilities.scss +24 -0
  49. package/src/scss/utility-mixins/box-shadow.scss +21 -0
  50. package/src/scss/variables.scss +6 -5
  51. package/src/utils/breakpoints.js +1 -3
  52. package/src/utils/breakpoints.spec.js +4 -4
  53. package/src/utils/charts/config.js +8 -8
  54. package/src/utils/charts/config.spec.js +2 -2
  55. package/src/utils/charts/theme.js +1 -3
  56. package/src/utils/use_mock_intersection_observer.js +1 -3
  57. package/src/utils.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [49.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.9.0...v49.9.1) (2022-11-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency dompurify to ^2.4.1 ([1dfdf40](https://gitlab.com/gitlab-org/gitlab-ui/commit/1dfdf407820dcc42c313c6c6b95cff0be7221080))
7
+
8
+ # [49.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.8.0...v49.9.0) (2022-11-14)
9
+
10
+
11
+ ### Features
12
+
13
+ * **CSS:** tint-neutral-transparency ([2be841a](https://gitlab.com/gitlab-org/gitlab-ui/commit/2be841a7bc4f61ad1c01079a8c589b7cd42ad3ed))
14
+
1
15
  # [49.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.7.0...v49.8.0) (2022-11-11)
2
16
 
3
17
 
@@ -296,11 +296,14 @@ var script = {
296
296
  this.selectedValues = [newSelected];
297
297
  }
298
298
  }
299
- }
300
- },
301
- mounted() {
302
- if (process.env.NODE_ENV !== 'production' && this.resetButtonLabel && !this.headerText) {
303
- throw new Error('The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.');
299
+ },
300
+ resetButtonLabel: {
301
+ immediate: true,
302
+ handler(newResetButtonLabel) {
303
+ if (process.env.NODE_ENV !== 'production' && newResetButtonLabel && !this.headerText) {
304
+ throw new Error('The reset button cannot be rendered without a header. Either provide a header via the headerText prop, or do not provide the resetButtonLabel prop.');
305
+ }
306
+ }
304
307
  }
305
308
  },
306
309
  methods: {
@@ -144,7 +144,7 @@ var script = {
144
144
  const __vue_script__ = script;
145
145
 
146
146
  /* template */
147
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"list-group list-group-flush list-unstyled"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"list-group-item"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({staticClass:"d-flex justify-content-center prepend-top-default",attrs:{"per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning mt-3 empty-message",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v("\n "+_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage)+"\n ")]):_vm._e()],2)};
147
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"row-content-block second-block d-sm-flex justify-content-between flex-row-reverse"},[_vm._t("header"),_vm._v(" "),(_vm.filterable)?_c('gl-search-box-by-type',{on:{"input":_vm.query}}):_vm._e()],2),_vm._v(" "),_vm._t("subheader"),_vm._v(" "),_c('ul',{staticClass:"list-group list-group-flush list-unstyled"},_vm._l((_vm.paginatedList),function(listItem){return _c('li',{key:listItem[_vm.itemKey],staticClass:"list-group-item"},[_vm._t("default",function(){return [_vm._v(_vm._s(listItem.id))]},{"listItem":listItem,"query":_vm.queryStr})],2)}),0),_vm._v(" "),(!_vm.emptyList)?_c('gl-pagination',_vm._b({staticClass:"d-flex justify-content-center prepend-top-default",attrs:{"per-page":_vm.pageInfo.perPage,"value":_vm.pageInfo.page,"total-items":_vm.pageInfo.total},on:{"input":_vm.change}},'gl-pagination',_vm.$attrs,false)):_vm._e(),_vm._v(" "),(_vm.emptyList)?_c('div',{staticClass:"bs-callout bs-callout-warning mt-3 empty-message",class:{ 'empty-message': _vm.zeroTotal, 'empty-search': _vm.zeroSearchResults }},[_vm._v(_vm._s(_vm.zeroTotal ? _vm.emptyMessage : _vm.emptySearchMessage))]):_vm._e()],2)};
148
148
  var __vue_staticRenderFns__ = [];
149
149
 
150
150
  /* style */
@@ -1,7 +1,7 @@
1
1
  import debounce from 'lodash/debounce';
2
2
  import isFunction from 'lodash/isFunction';
3
3
  import range from 'lodash/range';
4
- import Breakpoints, { breakpoints } from '../../../utils/breakpoints';
4
+ import { breakpoints, GlBreakpointInstance } from '../../../utils/breakpoints';
5
5
  import { alignOptions, resizeDebounceTime } from '../../../utils/constants';
6
6
  import GlIcon from '../icon/icon';
7
7
  import GlLink from '../link/link';
@@ -165,7 +165,7 @@ var script = {
165
165
  },
166
166
  data() {
167
167
  return {
168
- breakpoint: Breakpoints.getBreakpointSize(),
168
+ breakpoint: GlBreakpointInstance.getBreakpointSize(),
169
169
  // If total pages count is below or equal to minTotalPagesToCollapse, collapsing is disabled
170
170
  minTotalPagesToCollapse: 4
171
171
  };
@@ -268,7 +268,7 @@ var script = {
268
268
  },
269
269
  methods: {
270
270
  setBreakpoint() {
271
- this.breakpoint = Breakpoints.getBreakpointSize();
271
+ this.breakpoint = GlBreakpointInstance.getBreakpointSize();
272
272
  },
273
273
  pageIsDisabled(page) {
274
274
  return this.disabled || page < 1 || this.isCompactPagination && page > this.value && !this.nextPage || !this.isCompactPagination && page > this.totalPages;
@@ -152,7 +152,7 @@ var script = {
152
152
  const __vue_script__ = script;
153
153
 
154
154
  /* template */
155
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"gl-resize-observer-directive",rawName:"v-gl-resize-observer-directive",value:(_vm.handleResize),expression:"handleResize"}],staticClass:"gl-path-nav",style:({ '--path-bg-color': _vm.backgroundColor }),attrs:{"data-testid":"gl-path-nav"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollLeft),expression:"displayScrollLeft"}],staticClass:"gl-path-fade gl-path-fade-left"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll left"},on:{"click":_vm.scrollPathLeft}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-left"}})],1)]),_vm._v(" "),_c('ul',{ref:"pathNavList",staticClass:"gl-path-nav-list"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,ref:"pathListItems",refInFor:true,staticClass:"gl-path-nav-list-item",attrs:{"id":_vm.pathId(index)}},[_c('button',{class:_vm.pathItemClass(index),attrs:{"category":item.disabled ? 'tertiary' : undefined,"disabled":item.disabled},on:{"click":function($event){return _vm.onItemClicked(index)}}},[(_vm.shouldDisplayIcon(item.icon))?_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":item.icon,"data-testid":"gl-path-item-icon"}}):_vm._e(),_vm._v("\n "+_vm._s(item.title)),(item.metric)?_c('span',{staticClass:"gl-font-weight-normal gl-pl-2"},[_vm._v(_vm._s(item.metric))]):_vm._e()],1),_vm._v(" "),_vm._t("default",null,{"pathItem":item,"pathId":_vm.pathId(index)})],2)}),0),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollRight),expression:"displayScrollRight"}],staticClass:"gl-path-fade gl-path-fade-right"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll right"},on:{"click":_vm.scrollPathRight}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-right"}})],1)])])};
155
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"gl-resize-observer-directive",rawName:"v-gl-resize-observer-directive",value:(_vm.handleResize),expression:"handleResize"}],staticClass:"gl-path-nav",style:({ '--path-bg-color': _vm.backgroundColor }),attrs:{"data-testid":"gl-path-nav"}},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollLeft),expression:"displayScrollLeft"}],staticClass:"gl-path-fade gl-path-fade-left"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll left"},on:{"click":_vm.scrollPathLeft}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-left"}})],1)]),_vm._v(" "),_c('ul',{ref:"pathNavList",staticClass:"gl-path-nav-list"},_vm._l((_vm.items),function(item,index){return _c('li',{key:index,ref:"pathListItems",refInFor:true,staticClass:"gl-path-nav-list-item",attrs:{"id":_vm.pathId(index)}},[_c('button',{class:_vm.pathItemClass(index),attrs:{"category":item.disabled ? 'tertiary' : undefined,"disabled":item.disabled},on:{"click":function($event){return _vm.onItemClicked(index)}}},[(_vm.shouldDisplayIcon(item.icon))?_c('gl-icon',{staticClass:"gl-mr-2",attrs:{"name":item.icon,"data-testid":"gl-path-item-icon"}}):_vm._e(),_vm._v(_vm._s(item.title)),(item.metric)?_c('span',{staticClass:"gl-font-weight-normal gl-pl-2"},[_vm._v(_vm._s(item.metric))]):_vm._e()],1),_vm._v(" "),_vm._t("default",null,{"pathItem":item,"pathId":_vm.pathId(index)})],2)}),0),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.displayScrollRight),expression:"displayScrollRight"}],staticClass:"gl-path-fade gl-path-fade-right"},[_c('button',{staticClass:"gl-clear-icon-button",attrs:{"aria-label":"Scroll right"},on:{"click":_vm.scrollPathRight}},[_c('gl-icon',{attrs:{"size":32,"name":"chevron-right"}})],1)])])};
156
156
  var __vue_staticRenderFns__ = [];
157
157
 
158
158
  /* style */
@@ -1,10 +1,10 @@
1
1
  import merge from 'lodash/merge';
2
- import defaultChartOptions, { defaultAreaOpacity, lineStyle, getThresholdConfig, generateAnnotationSeries, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid, getDefaultTooltipContent } from '../../../utils/charts/config';
2
+ import { defaultAreaOpacity, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid, getDefaultTooltipContent } from '../../../utils/charts/config';
3
3
  import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, DATA_TOOLTIP_LEFT_OFFSET, ANNOTATION_TOOLTIP_TOP_OFFSET } from '../../../utils/charts/constants';
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';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -5,7 +5,7 @@ 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';
8
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
9
9
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
10
10
  import Chart from '../chart/chart';
11
11
  import ChartTooltip from '../tooltip/tooltip';
@@ -1,6 +1,6 @@
1
1
  import * as echarts from 'echarts';
2
2
  import { validRenderers, defaultWidth, defaultHeight } from '../../../utils/charts/config';
3
- import createTheme, { themeName } from '../../../utils/charts/theme';
3
+ import { themeName, createTheme } from '../../../utils/charts/theme';
4
4
  import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
5
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
6
6
 
@@ -1,10 +1,10 @@
1
1
  import merge from 'lodash/merge';
2
- import defaultChartOptions, { yAxis, generateBarSeries, generateLineSeries, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions, getDefaultTooltipContent } from '../../../utils/charts/config';
2
+ import { yAxis, generateBarSeries, generateLineSeries, defaultChartOptions, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions, getDefaultTooltipContent } from '../../../utils/charts/config';
3
3
  import { CHART_TYPE_LINE, TOOLTIP_LEFT_OFFSET } from '../../../utils/charts/constants';
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';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartTooltip from '../tooltip/tooltip';
@@ -1,8 +1,8 @@
1
1
  import merge from 'lodash/merge';
2
- import defaultChartOptions, { dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
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';
5
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
6
6
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
7
7
  import Chart from '../chart/chart';
8
8
  import ChartTooltip from '../tooltip/tooltip';
@@ -3,7 +3,7 @@ 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';
6
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
7
7
  import Chart from '../chart/chart';
8
8
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
9
9
 
@@ -4,7 +4,7 @@ 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';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -1,10 +1,10 @@
1
1
  import merge from 'lodash/merge';
2
- import defaultChartOptions, { symbolSize, lineStyle, getThresholdConfig, generateAnnotationSeries, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid, getDefaultTooltipContent } from '../../../utils/charts/config';
2
+ import { symbolSize, lineStyle, getThresholdConfig, generateAnnotationSeries, defaultChartOptions, dataZoomAdjustments, mergeSeriesToOptions, mergeAnnotationAxisToOptions, grid, getDefaultTooltipContent } from '../../../utils/charts/config';
3
3
  import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, DATA_TOOLTIP_LEFT_OFFSET, ANNOTATION_TOOLTIP_TOP_OFFSET } from '../../../utils/charts/constants';
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';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -1,6 +1,6 @@
1
1
  import merge from 'lodash/merge';
2
2
  import { GlResizeObserverDirective } from '../../../directives/resize_observer/resize_observer';
3
- import defaultChartOptions, { mergeSeriesToOptions, symbolSize } from '../../../utils/charts/config';
3
+ import { defaultChartOptions, mergeSeriesToOptions, symbolSize } from '../../../utils/charts/config';
4
4
  import Chart from '../chart/chart';
5
5
  import ChartTooltip from '../tooltip/tooltip';
6
6
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -1,10 +1,10 @@
1
1
  import merge from 'lodash/merge';
2
- import defaultChartOptions, { yAxis, generateBarSeries, generateLineSeries, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
2
+ import { yAxis, generateBarSeries, generateLineSeries, defaultChartOptions, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
3
3
  import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, CHART_TYPE_LINE, ANNOTATION_TOOLTIP_TOP_OFFSET } from '../../../utils/charts/constants';
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';
7
+ import { ToolboxMixin } from '../../mixins/toolbox_mixin';
8
8
  import TooltipDefaultFormat from '../../shared_components/charts/tooltip_default_format';
9
9
  import Chart from '../chart/chart';
10
10
  import ChartLegend from '../legend/legend';
@@ -6,7 +6,7 @@ import { getToolboxConfig } from '../../utils/charts/config';
6
6
  * the mixin also handles the icon customization for the 4 different default
7
7
  * toolbox options
8
8
  */
9
- var toolbox_mixin = {
9
+ const ToolboxMixin = {
10
10
  props: {
11
11
  showToolbox: {
12
12
  type: Boolean,
@@ -42,4 +42,4 @@ var toolbox_mixin = {
42
42
  }
43
43
  };
44
44
 
45
- export default toolbox_mixin;
45
+ export { ToolboxMixin };