@gitlab/ui 113.2.1 → 113.2.3
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 +14 -0
- package/dist/components/base/alert/alert.js +10 -7
- package/dist/components/utilities/truncate/truncate.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/alert/alert.scss +1 -1
- package/src/components/base/alert/alert.vue +10 -8
- package/src/components/base/avatar/avatar.scss +1 -1
- package/src/components/base/avatar_labeled/avatar_labeled.scss +3 -3
- package/src/components/base/breadcrumb/breadcrumb.scss +2 -2
- package/src/components/base/broadcast_message/broadcast_message.scss +2 -2
- package/src/components/base/button/button.scss +1 -1
- package/src/components/base/daterange_picker/daterange_picker.scss +2 -2
- package/src/components/base/form/form_checkbox/form_checkbox.scss +3 -3
- package/src/components/base/form/form_group/form_group.scss +2 -2
- package/src/components/base/form/form_input/form_input.scss +3 -3
- package/src/components/base/form/form_select/form_select.scss +2 -2
- package/src/components/base/form/input_group_text/input_group_text.scss +1 -1
- package/src/components/base/label/label.scss +1 -1
- package/src/components/base/modal/modal.scss +3 -3
- package/src/components/base/path/path.scss +1 -1
- package/src/components/base/popover/popover.scss +2 -2
- package/src/components/base/table/table.scss +4 -4
- package/src/components/base/tabs/tabs/tabs.scss +1 -1
- package/src/components/utilities/truncate/truncate.vue +1 -0
- package/src/scss/body.scss +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [113.2.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v113.2.2...v113.2.3) (2025-05-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlAlert:** remove assertive aria-live ([e0ba832](https://gitlab.com/gitlab-org/gitlab-ui/commit/e0ba8325912e055dba39bcf9544ed2b7159f56ce))
|
|
7
|
+
|
|
8
|
+
## [113.2.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v113.2.1...v113.2.2) (2025-05-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **GlTruncate:** add aria-label when truncating in the middle ([a4d27ad](https://gitlab.com/gitlab-org/gitlab-ui/commit/a4d27ad3ccd47a0cde523d94dcaff0bce45b7379))
|
|
14
|
+
|
|
1
15
|
## [113.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v113.2.0...v113.2.1) (2025-04-29)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -85,15 +85,18 @@ var script = {
|
|
|
85
85
|
type: Boolean,
|
|
86
86
|
required: false,
|
|
87
87
|
default: false
|
|
88
|
+
},
|
|
89
|
+
// only set to 'assertive' if alert requires immediate user action, otherwise use a default value
|
|
90
|
+
politeness: {
|
|
91
|
+
type: String,
|
|
92
|
+
required: false,
|
|
93
|
+
default: 'polite',
|
|
94
|
+
validator(value) {
|
|
95
|
+
return ['off', 'polite', 'assertive'].includes(value);
|
|
96
|
+
}
|
|
88
97
|
}
|
|
89
98
|
},
|
|
90
99
|
computed: {
|
|
91
|
-
ariaLive() {
|
|
92
|
-
if ([alertVariantOptions.danger, alertVariantOptions.warning].includes(this.variant)) {
|
|
93
|
-
return 'assertive';
|
|
94
|
-
}
|
|
95
|
-
return 'polite';
|
|
96
|
-
},
|
|
97
100
|
role() {
|
|
98
101
|
if ([alertVariantOptions.danger, alertVariantOptions.warning, alertVariantOptions.success].includes(this.variant)) {
|
|
99
102
|
return 'alert';
|
|
@@ -189,7 +192,7 @@ var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=
|
|
|
189
192
|
{ 'gl-alert-not-dismissible': !_vm.dismissible },
|
|
190
193
|
{ 'gl-alert-no-icon': !_vm.showIcon },
|
|
191
194
|
{ 'gl-alert-has-title': !!_vm.title },
|
|
192
|
-
_vm.variantClass ]},[(_vm.showIcon)?_c('div',{staticClass:"gl-alert-icon-container"},[_c('gl-icon',{staticClass:"gl-alert-icon",attrs:{"name":_vm.iconName}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-content",attrs:{"role":_vm.role,"aria-live":_vm.
|
|
195
|
+
_vm.variantClass ]},[(_vm.showIcon)?_c('div',{staticClass:"gl-alert-icon-container"},[_c('gl-icon',{staticClass:"gl-alert-icon",attrs:{"name":_vm.iconName}})],1):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-content",attrs:{"role":_vm.role,"aria-live":_vm.politeness}},[(_vm.title)?_c('h2',{staticClass:"gl-alert-title"},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_vm._v(" "),_c('div',{staticClass:"gl-alert-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.shouldRenderActions)?_c('div',{staticClass:"gl-alert-actions"},[_vm._t("actions",function(){return _vm._l((_vm.actionButtons),function(actionButton,index){return _c('gl-button',_vm._g(_vm._b({key:index,staticClass:"gl-alert-action"},'gl-button',actionButton.attrs,false),actionButton.listeners),[_vm._v("\n "+_vm._s(actionButton.text)+"\n ")])})})],2):_vm._e()]),_vm._v(" "),(_vm.dismissible)?_c('close-button',{ref:"dismiss",staticClass:"gl-dismiss-btn",attrs:{"label":_vm.dismissLabel},on:{"click":_vm.onDismiss}}):_vm._e()],1)};
|
|
193
196
|
var __vue_staticRenderFns__ = [];
|
|
194
197
|
|
|
195
198
|
/* style */
|
|
@@ -120,7 +120,7 @@ var script = {
|
|
|
120
120
|
const __vue_script__ = script;
|
|
121
121
|
|
|
122
122
|
/* template */
|
|
123
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.position === _vm.$options.POSITION.START)?_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"title":_vm.title}},[_c('span',{ref:"text",staticClass:"gl-truncate-start !gl-text-ellipsis"},[_vm._v(""+_vm._s(_vm.text)+"")])]):(_vm.position === _vm.$options.POSITION.MIDDLE)?_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"title":_vm.title}},[_c('span',{ref:"text",staticClass:"gl-truncate-end"},[_vm._v(_vm._s(_vm.first))]),_c('span',{staticClass:"gl-truncate-start"},[_vm._v(""+_vm._s(_vm.last)+"")])]):_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"data-testid":"truncate-end-container","title":_vm.title}},[_c('span',{ref:"text",staticClass:"gl-truncate-end"},[_vm._v(_vm._s(_vm.text))])])};
|
|
123
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.position === _vm.$options.POSITION.START)?_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"title":_vm.title}},[_c('span',{ref:"text",staticClass:"gl-truncate-start !gl-text-ellipsis"},[_vm._v(""+_vm._s(_vm.text)+"")])]):(_vm.position === _vm.$options.POSITION.MIDDLE)?_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"title":_vm.title,"aria-label":_vm.text}},[_c('span',{ref:"text",staticClass:"gl-truncate-end"},[_vm._v(_vm._s(_vm.first))]),_c('span',{staticClass:"gl-truncate-start"},[_vm._v(""+_vm._s(_vm.last)+"")])]):_c('span',{directives:[{name:"gl-tooltip",rawName:"v-gl-tooltip",value:({ disabled: _vm.isTooltipDisabled }),expression:"{ disabled: isTooltipDisabled }"},{name:"gl-resize-observer",rawName:"v-gl-resize-observer:[withTooltip]",value:(_vm.checkTruncationState),expression:"checkTruncationState",arg:_vm.withTooltip}],staticClass:"gl-truncate-component",attrs:{"data-testid":"truncate-end-container","title":_vm.title}},[_c('span',{ref:"text",staticClass:"gl-truncate-end"},[_vm._v(_vm._s(_vm.text))])])};
|
|
124
124
|
var __vue_staticRenderFns__ = [];
|
|
125
125
|
|
|
126
126
|
/* style */
|