@gitlab/ui 49.3.0 → 49.4.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,17 @@
1
+ ## [49.4.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.4.0...v49.4.1) (2022-11-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** upgrade bootstrap-vue to v2.23.1 ([168136a](https://gitlab.com/gitlab-org/gitlab-ui/commit/168136a9234754745ddbd7f08bdc33f95c80a115))
7
+
8
+ # [49.4.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.3.0...v49.4.0) (2022-11-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * **Badge:** increase-muted-contrast ([01a3c15](https://gitlab.com/gitlab-org/gitlab-ui/commit/01a3c15d40bbbf9c2fe7b4ccfebc0efaac6f2769))
14
+
1
15
  # [49.3.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v49.2.1...v49.3.0) (2022-11-03)
2
16
 
3
17
 
@@ -1,5 +1,5 @@
1
1
  import { BFormCheckboxGroup } from 'bootstrap-vue/esm/index.js';
2
- import formOptionsMixin from 'bootstrap-vue/esm/mixins/form-options';
2
+ import { formOptionsMixin } from 'bootstrap-vue/esm/mixins/form-options';
3
3
  import { SafeHtmlDirective } from '../../../../directives/safe_html/safe_html';
4
4
  import GlFormCheckbox from './form_checkbox';
5
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -1,5 +1,5 @@
1
1
  import { BFormRadioGroup } from 'bootstrap-vue/esm/index.js';
2
- import formOptionsMixin from 'bootstrap-vue/esm/mixins/form-options';
2
+ import { formOptionsMixin } from 'bootstrap-vue/esm/mixins/form-options';
3
3
  import { SafeHtmlDirective } from '../../../../directives/safe_html/safe_html';
4
4
  import GlFormRadio from '../form_radio/form_radio';
5
5
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
@@ -43,6 +43,11 @@ var script = {
43
43
  type: String,
44
44
  required: false,
45
45
  default: popoverPlacements.top
46
+ },
47
+ boundaryPadding: {
48
+ type: [Number, String],
49
+ required: false,
50
+ default: 5
46
51
  }
47
52
  },
48
53
  computed: {
@@ -69,7 +74,7 @@ var script = {
69
74
  const __vue_script__ = script;
70
75
 
71
76
  /* template */
72
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-popover',_vm._g(_vm._b({ref:_vm.$options.popoverRefName,attrs:{"custom-class":_vm.customClass,"triggers":_vm.triggers,"title":_vm.title,"placement":_vm.placement},scopedSlots:_vm._u([(_vm.shouldShowTitle)?{key:"title",fn:function(){return [_vm._t("title",function(){return [_vm._v("\n "+_vm._s(_vm.title)+"\n ")]}),_vm._v(" "),(_vm.showCloseButton)?_c('close-button',{staticClass:"gl-float-right gl-mt-n2 gl-mr-n3",attrs:{"data-testid":"close-button"},on:{"click":_vm.close}}):_vm._e()]},proxy:true}:null],null,true)},'b-popover',_vm.$attrs,false),_vm.$listeners),[_vm._v(" "),_vm._t("default")],2)};
77
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-popover',_vm._g(_vm._b({ref:_vm.$options.popoverRefName,attrs:{"custom-class":_vm.customClass,"triggers":_vm.triggers,"title":_vm.title,"placement":_vm.placement,"boundary-padding":_vm.boundaryPadding},scopedSlots:_vm._u([(_vm.shouldShowTitle)?{key:"title",fn:function(){return [_vm._t("title",function(){return [_vm._v("\n "+_vm._s(_vm.title)+"\n ")]}),_vm._v(" "),(_vm.showCloseButton)?_c('close-button',{staticClass:"gl-float-right gl-mt-n2 gl-mr-n3",attrs:{"data-testid":"close-button"},on:{"click":_vm.close}}):_vm._e()]},proxy:true}:null],null,true)},'b-popover',_vm.$attrs,false),_vm.$listeners),[_vm._v(" "),_vm._t("default")],2)};
73
78
  var __vue_staticRenderFns__ = [];
74
79
 
75
80
  /* style */
@@ -127,7 +127,8 @@ var script = {
127
127
  /**
128
128
  * When the query parameter is updated, update the active tab to match.
129
129
  */
130
- syncActiveTabFromQueryParams() {
130
+ async syncActiveTabFromQueryParams() {
131
+ await this.$nextTick();
131
132
  const queryParamValue = this.getQueryParamValue();
132
133
  const tabIndexToActivate = this.getTabs().findIndex((tab, tabIndex) => this.getTabQueryParamValue(tabIndex) === queryParamValue);
133
134
  this.activeTabIndex = tabIndexToActivate !== -1 ? tabIndexToActivate : 0;