@gitlab/ui 111.9.0 → 111.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [111.9.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.9.0...v111.9.1) (2025-03-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **GlCollapsibleListbox:** Enter press should toggle selection ([0a89dc6](https://gitlab.com/gitlab-org/gitlab-ui/commit/0a89dc60c427c5671bbb9a809c1b89088aff1735))
7
+
1
8
  # [111.9.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v111.8.1...v111.9.0) (2025-03-27)
2
9
 
3
10
 
@@ -1,11 +1,11 @@
1
- import { BLink } from '../../../vendor/bootstrap-vue/src/components/link/link';
2
- import { breadCrumbSizeOptions } from '../../../utils/constants';
1
+ import GlLink from '../link/link';
2
+ import { breadCrumbSizeOptions, linkVariantUnstyled } from '../../../utils/constants';
3
3
  import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
4
4
 
5
5
  var script = {
6
6
  name: 'GlBreadcrumbItem',
7
7
  components: {
8
- BLink
8
+ GlLink
9
9
  },
10
10
  inheritAttrs: false,
11
11
  props: {
@@ -38,14 +38,15 @@ var script = {
38
38
  default: breadCrumbSizeOptions.sm,
39
39
  validator: value => Object.keys(breadCrumbSizeOptions).includes(value)
40
40
  }
41
- }
41
+ },
42
+ linkVariantUnstyled
42
43
  };
43
44
 
44
45
  /* script */
45
46
  const __vue_script__ = script;
46
47
 
47
48
  /* template */
48
- var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:("gl-breadcrumb-item gl-breadcrumb-item-" + _vm.size)},[_c('b-link',{attrs:{"href":_vm.href,"to":_vm.to,"aria-current":_vm.ariaCurrent}},[_vm._t("default",function(){return [_vm._v(_vm._s(_vm.text))]})],2)],1)};
49
+ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{class:("gl-breadcrumb-item gl-breadcrumb-item-" + _vm.size)},[_c('gl-link',{attrs:{"href":_vm.href,"to":_vm.to,"aria-current":_vm.ariaCurrent,"variant":_vm.$options.linkVariantUnstyled}},[_vm._t("default",function(){return [_vm._v(_vm._s(_vm.text))]})],2)],1)};
49
50
  var __vue_staticRenderFns__ = [];
50
51
 
51
52
  /* style */
@@ -621,7 +621,9 @@ var script = {
621
621
  }
622
622
  } else if (code === ENTER && isSearchInput) {
623
623
  if (this.searchHasOptions && elements.length > 0) {
624
- this.onSelect(this.flattenedOptions[0], true);
624
+ // Toggle selection state of the first item
625
+ const firstItem = this.flattenedOptions[0];
626
+ this.onSelect(firstItem, !this.isSelected(firstItem));
625
627
  }
626
628
  stop = true;
627
629
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "111.9.0",
3
+ "version": "111.9.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,11 +1,11 @@
1
1
  <script>
2
- import { BLink } from '../../../vendor/bootstrap-vue/src/components/link/link';
3
- import { breadCrumbSizeOptions } from '../../../utils/constants';
2
+ import GlLink from '../link/link.vue';
3
+ import { breadCrumbSizeOptions, linkVariantUnstyled } from '../../../utils/constants';
4
4
 
5
5
  export default {
6
6
  name: 'GlBreadcrumbItem',
7
7
  components: {
8
- BLink,
8
+ GlLink,
9
9
  },
10
10
  inheritAttrs: false,
11
11
  props: {
@@ -39,13 +39,19 @@ export default {
39
39
  validator: (value) => Object.keys(breadCrumbSizeOptions).includes(value),
40
40
  },
41
41
  },
42
+ linkVariantUnstyled,
42
43
  };
43
44
  </script>
44
45
 
45
46
  <template>
46
47
  <li :class="`gl-breadcrumb-item gl-breadcrumb-item-${size}`">
47
- <b-link :href="href" :to="to" :aria-current="ariaCurrent">
48
+ <gl-link
49
+ :href="href"
50
+ :to="to"
51
+ :aria-current="ariaCurrent"
52
+ :variant="$options.linkVariantUnstyled"
53
+ >
48
54
  <slot>{{ text }}</slot>
49
- </b-link>
55
+ </gl-link>
50
56
  </li>
51
57
  </template>
@@ -653,7 +653,9 @@ export default {
653
653
  }
654
654
  } else if (code === ENTER && isSearchInput) {
655
655
  if (this.searchHasOptions && elements.length > 0) {
656
- this.onSelect(this.flattenedOptions[0], true);
656
+ // Toggle selection state of the first item
657
+ const firstItem = this.flattenedOptions[0];
658
+ this.onSelect(firstItem, !this.isSelected(firstItem));
657
659
  }
658
660
  stop = true;
659
661
  } else {