@gitlab/ui 101.6.1 → 101.6.2
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
|
+
## [101.6.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.6.1...v101.6.2) (2024-11-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlTruncate:** Don't add title attr when withTooltip is [secure] ([9fdc7a4](https://gitlab.com/gitlab-org/gitlab-ui/commit/9fdc7a41b24e8d92862660838869a8a9e4e0f307))
|
|
7
|
+
|
|
1
8
|
## [101.6.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v101.6.0...v101.6.1) (2024-11-01)
|
|
2
9
|
|
|
3
10
|
|
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright GitLab
|
|
1
|
+
Copyright GitLab Inc.
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
|
@@ -54,6 +54,9 @@ var script = {
|
|
|
54
54
|
},
|
|
55
55
|
isTooltipDisabled() {
|
|
56
56
|
return !this.withTooltip || !this.isTruncated;
|
|
57
|
+
},
|
|
58
|
+
title() {
|
|
59
|
+
return this.withTooltip ? this.text : undefined;
|
|
57
60
|
}
|
|
58
61
|
},
|
|
59
62
|
watch: {
|
|
@@ -76,7 +79,7 @@ var script = {
|
|
|
76
79
|
const __vue_script__ = script;
|
|
77
80
|
|
|
78
81
|
/* template */
|
|
79
|
-
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.
|
|
82
|
+
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))])])};
|
|
80
83
|
var __vue_staticRenderFns__ = [];
|
|
81
84
|
|
|
82
85
|
/* style */
|
package/package.json
CHANGED
|
@@ -56,6 +56,9 @@ export default {
|
|
|
56
56
|
isTooltipDisabled() {
|
|
57
57
|
return !this.withTooltip || !this.isTruncated;
|
|
58
58
|
},
|
|
59
|
+
title() {
|
|
60
|
+
return this.withTooltip ? this.text : undefined;
|
|
61
|
+
},
|
|
59
62
|
},
|
|
60
63
|
watch: {
|
|
61
64
|
withTooltip(withTooltip) {
|
|
@@ -80,7 +83,7 @@ export default {
|
|
|
80
83
|
v-gl-tooltip="{ disabled: isTooltipDisabled }"
|
|
81
84
|
v-gl-resize-observer:[withTooltip]="checkTruncationState"
|
|
82
85
|
class="gl-truncate-component"
|
|
83
|
-
:title="
|
|
86
|
+
:title="title"
|
|
84
87
|
>
|
|
85
88
|
<span ref="text" class="gl-truncate-start !gl-text-ellipsis">‎{{ text }}‎</span>
|
|
86
89
|
</span>
|
|
@@ -90,7 +93,7 @@ export default {
|
|
|
90
93
|
v-gl-tooltip="{ disabled: isTooltipDisabled }"
|
|
91
94
|
v-gl-resize-observer:[withTooltip]="checkTruncationState"
|
|
92
95
|
class="gl-truncate-component"
|
|
93
|
-
:title="
|
|
96
|
+
:title="title"
|
|
94
97
|
>
|
|
95
98
|
<span ref="text" class="gl-truncate-end">{{ first }}</span
|
|
96
99
|
><span class="gl-truncate-start">‎{{ last }}‎</span>
|
|
@@ -102,7 +105,7 @@ export default {
|
|
|
102
105
|
v-gl-resize-observer:[withTooltip]="checkTruncationState"
|
|
103
106
|
class="gl-truncate-component"
|
|
104
107
|
data-testid="truncate-end-container"
|
|
105
|
-
:title="
|
|
108
|
+
:title="title"
|
|
106
109
|
>
|
|
107
110
|
<span ref="text" class="gl-truncate-end">{{ text }}</span>
|
|
108
111
|
</span>
|