@gitlab/ui 42.8.0 → 42.10.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 CHANGED
@@ -1,3 +1,29 @@
1
+ ## [42.10.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.10.0...v42.10.1) (2022-06-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlChart:** tooltip conflicting with datazoom ([d791719](https://gitlab.com/gitlab-org/gitlab-ui/commit/d791719638b3a20d4f175d5793648d2b57ddf47b))
7
+
8
+ # [42.10.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.9.0...v42.10.0) (2022-06-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **GlModal:** Re-add deprecated modal slots ([a07b701](https://gitlab.com/gitlab-org/gitlab-ui/commit/a07b7018c783951ec28d87bfe1df93b6894e5580))
14
+
15
+
16
+ ### Features
17
+
18
+ * **GlFormCheckbox:** Auto-generate ID if not provided ([0a161c6](https://gitlab.com/gitlab-org/gitlab-ui/commit/0a161c65bab3d9ea32fe396b80f68bb9296d2166))
19
+
20
+ # [42.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.8.0...v42.9.0) (2022-06-22)
21
+
22
+
23
+ ### Features
24
+
25
+ * **utilities:** Add new gap mixins ([96d45d9](https://gitlab.com/gitlab-org/gitlab-ui/commit/96d45d941552ce3bf63155f13b5e032bb694fdea))
26
+
1
27
  # [42.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.7.0...v42.8.0) (2022-06-22)
2
28
 
3
29
 
@@ -1,3 +1,4 @@
1
+ import _uniqueId from 'lodash/uniqueId';
1
2
  import { BFormCheckbox } from 'bootstrap-vue/esm/index.js';
2
3
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
3
4
 
@@ -11,6 +12,13 @@ var script = {
11
12
  prop: 'checked',
12
13
  event: 'input'
13
14
  },
15
+ props: {
16
+ id: {
17
+ type: String,
18
+ required: false,
19
+ default: () => _uniqueId()
20
+ }
21
+ },
14
22
  methods: {
15
23
  change($event) {
16
24
  /**
@@ -37,7 +45,7 @@ var script = {
37
45
  const __vue_script__ = script;
38
46
 
39
47
  /* template */
40
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-checkbox',_vm._b({staticClass:"gl-form-checkbox",on:{"change":_vm.change,"input":_vm.input}},'b-form-checkbox',_vm.$attrs,false),[_vm._t("default"),_vm._v(" "),(Boolean(_vm.$scopedSlots.help))?_c('p',{staticClass:"help-text"},[_vm._t("help")],2):_vm._e()],2)};
48
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-form-checkbox',_vm._b({staticClass:"gl-form-checkbox",attrs:{"id":_vm.id},on:{"change":_vm.change,"input":_vm.input}},'b-form-checkbox',_vm.$attrs,false),[_vm._t("default"),_vm._v(" "),(Boolean(_vm.$scopedSlots.help))?_c('p',{staticClass:"help-text"},[_vm._t("help")],2):_vm._e()],2)};
41
49
  var __vue_staticRenderFns__ = [];
42
50
 
43
51
  /* style */
@@ -1,6 +1,6 @@
1
1
  import merge from 'lodash/merge';
2
2
  import defaultChartOptions, { yAxis, generateBarSeries, generateLineSeries, gridWithSecondaryYAxis, grid, dataZoomAdjustments, mergeSeriesToOptions } from '../../../utils/charts/config';
3
- import { LEGEND_AVERAGE_TEXT, LEGEND_MAX_TEXT, LEGEND_MIN_TEXT, LEGEND_CURRENT_TEXT, LEGEND_LAYOUT_INLINE, LEGEND_LAYOUT_TABLE, CHART_TYPE_LINE } from '../../../utils/charts/constants';
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';
@@ -281,7 +281,7 @@ var script = {
281
281
  moveShowTooltip(mouseEvent) {
282
282
  this.tooltipPosition = {
283
283
  left: `${mouseEvent.zrX}px`,
284
- top: `${mouseEvent.zrY}px`
284
+ top: `${mouseEvent.zrY + ANNOTATION_TOOLTIP_TOP_OFFSET}px`
285
285
  };
286
286
  this.showTooltip = this.chart.containPixel('grid', [mouseEvent.zrX, mouseEvent.zrY]);
287
287
  },
@@ -48,4 +48,4 @@ const HoverLoadDirective = {
48
48
  unbind
49
49
  };
50
50
 
51
- export { HoverLoadDirective };
51
+ export { DELAY_ON_HOVER, HoverLoadDirective };