@gitlab/ui 42.7.0 → 42.10.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 CHANGED
@@ -1,3 +1,29 @@
1
+ # [42.10.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.9.0...v42.10.0) (2022-06-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlModal:** Re-add deprecated modal slots ([a07b701](https://gitlab.com/gitlab-org/gitlab-ui/commit/a07b7018c783951ec28d87bfe1df93b6894e5580))
7
+
8
+
9
+ ### Features
10
+
11
+ * **GlFormCheckbox:** Auto-generate ID if not provided ([0a161c6](https://gitlab.com/gitlab-org/gitlab-ui/commit/0a161c65bab3d9ea32fe396b80f68bb9296d2166))
12
+
13
+ # [42.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.8.0...v42.9.0) (2022-06-22)
14
+
15
+
16
+ ### Features
17
+
18
+ * **utilities:** Add new gap mixins ([96d45d9](https://gitlab.com/gitlab-org/gitlab-ui/commit/96d45d941552ce3bf63155f13b5e032bb694fdea))
19
+
20
+ # [42.8.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.7.0...v42.8.0) (2022-06-22)
21
+
22
+
23
+ ### Features
24
+
25
+ * **GlAccordionItem:** expose header-class prop ([5f91275](https://gitlab.com/gitlab-org/gitlab-ui/commit/5f912753f027abd2036332ee583f518f7d369fdc))
26
+
1
27
  # [42.7.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v42.6.0...v42.7.0) (2022-06-22)
2
28
 
3
29
 
@@ -58,6 +58,15 @@ var script = {
58
58
  return value > 0 && value <= 6;
59
59
  }
60
60
 
61
+ },
62
+
63
+ /**
64
+ * Additional CSS class(es) to be applied to the header.
65
+ */
66
+ headerClass: {
67
+ type: [String, Object, Array],
68
+ required: false,
69
+ default: ''
61
70
  }
62
71
  },
63
72
 
@@ -103,7 +112,7 @@ var script = {
103
112
  const __vue_script__ = script;
104
113
 
105
114
  /* template */
106
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-accordion-item"},[_c(_vm.headerComponent,{tag:"component",staticClass:"gl-accordion-item-header"},[_c('gl-button',{directives:[{name:"gl-collapse-toggle",rawName:"v-gl-collapse-toggle",value:(_vm.accordionItemId),expression:"accordionItemId"}],attrs:{"variant":"link","button-text-classes":"gl-display-flex","icon":_vm.icon}},[_vm._v("\n "+_vm._s(_vm.buttonTitle)+"\n ")])],1),_vm._v(" "),_c('b-collapse',{staticClass:"gl-mt-3 gl-font-base",attrs:{"id":_vm.accordionItemId,"visible":_vm.isVisible,"accordion":_vm.accordion,"data-testid":("accordion-item-collapse-" + _vm.accordionItemId)},model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._t("default")],2)],1)};
115
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"gl-accordion-item"},[_c(_vm.headerComponent,{tag:"component",staticClass:"gl-accordion-item-header",class:_vm.headerClass},[_c('gl-button',{directives:[{name:"gl-collapse-toggle",rawName:"v-gl-collapse-toggle",value:(_vm.accordionItemId),expression:"accordionItemId"}],attrs:{"variant":"link","button-text-classes":"gl-display-flex","icon":_vm.icon}},[_vm._v("\n "+_vm._s(_vm.buttonTitle)+"\n ")])],1),_vm._v(" "),_c('b-collapse',{staticClass:"gl-mt-3 gl-font-base",attrs:{"id":_vm.accordionItemId,"visible":_vm.isVisible,"accordion":_vm.accordion,"data-testid":("accordion-item-collapse-" + _vm.accordionItemId)},model:{value:(_vm.isVisible),callback:function ($$v) {_vm.isVisible=$$v;},expression:"isVisible"}},[_vm._t("default")],2)],1)};
107
116
  var __vue_staticRenderFns__ = [];
108
117
 
109
118
  /* style */
@@ -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 */
@@ -48,4 +48,4 @@ const HoverLoadDirective = {
48
48
  unbind
49
49
  };
50
50
 
51
- export { HoverLoadDirective };
51
+ export { DELAY_ON_HOVER, HoverLoadDirective };