@gitlab/ui 137.0.3 → 137.1.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/dist/components/base/form/form_password_input/form_password_input.js +11 -1
- package/dist/components/base/link/link.js +5 -1
- package/dist/components/base/sorting/sorting.js +3 -2
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +1 -1
- package/src/components/base/form/form_password_input/form_password_input.vue +11 -0
- package/src/components/base/link/link.scss +1 -1
- package/src/components/base/link/link.vue +7 -0
- package/src/components/base/sorting/sorting.vue +3 -1
- package/translations.js +1 -0
package/package.json
CHANGED
|
@@ -61,6 +61,16 @@ export default {
|
|
|
61
61
|
required: false,
|
|
62
62
|
default: false,
|
|
63
63
|
},
|
|
64
|
+
/**
|
|
65
|
+
* CSS class(es) applied to the inner input element, not the wrapper.
|
|
66
|
+
* Use it for hooks or styles that must target the input itself, since a
|
|
67
|
+
* `class` passed to this component lands on the wrapper under Vue 2.
|
|
68
|
+
*/
|
|
69
|
+
inputClass: {
|
|
70
|
+
type: [String, Array, Object],
|
|
71
|
+
required: false,
|
|
72
|
+
default: '',
|
|
73
|
+
},
|
|
64
74
|
},
|
|
65
75
|
data() {
|
|
66
76
|
return {
|
|
@@ -98,6 +108,7 @@ export default {
|
|
|
98
108
|
<gl-form-input
|
|
99
109
|
v-bind="$attrs"
|
|
100
110
|
class="gl-form-password-input-field"
|
|
111
|
+
:class="inputClass"
|
|
101
112
|
:value="value"
|
|
102
113
|
:type="type"
|
|
103
114
|
:disabled="disabled"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { isFunction, isString, isObject, toString, isBoolean, concat } from 'lodash-es';
|
|
3
3
|
import { SafeLinkDirective, isExternalURL } from '../../../directives/safe_link/safe_link';
|
|
4
|
+
import { translate } from '../../../utils/i18n';
|
|
4
5
|
import { stopEvent } from '../../../utils/utils';
|
|
5
6
|
import { buildQueryString } from '../../../utils/url_utils';
|
|
6
7
|
import { isVue3, safeVueInstance } from '../../../utils/vue_utils';
|
|
@@ -161,6 +162,9 @@ export default {
|
|
|
161
162
|
isVue3RouterLink() {
|
|
162
163
|
return this.tag === VUE_ROUTER_LINK_TAG && isVue3(this);
|
|
163
164
|
},
|
|
165
|
+
externalLinkLabel() {
|
|
166
|
+
return translate('GlLink.externalLink', '(external link)');
|
|
167
|
+
},
|
|
164
168
|
shouldShowExternalIcon() {
|
|
165
169
|
const allowedVariants = [linkVariantInline, linkVariantMeta, null]; // null represents default/UI variant
|
|
166
170
|
return (
|
|
@@ -311,6 +315,7 @@ export default {
|
|
|
311
315
|
:class="[computedClass, { [activeClass]: isActive, [exactActiveClass]: isExactActive }]"
|
|
312
316
|
:href="routerLinkHref"
|
|
313
317
|
v-bind="$attrs"
|
|
318
|
+
:data-alt="externalLinkLabel"
|
|
314
319
|
v-on="computedListeners"
|
|
315
320
|
@click="onClick($event, navigate)"
|
|
316
321
|
>
|
|
@@ -323,6 +328,7 @@ export default {
|
|
|
323
328
|
v-safe-link:[safeLinkConfig]
|
|
324
329
|
v-bind="computedProps"
|
|
325
330
|
:class="computedClass"
|
|
331
|
+
:data-alt="externalLinkLabel"
|
|
326
332
|
v-on="computedListeners"
|
|
327
333
|
@click.native="onClick"
|
|
328
334
|
>
|
|
@@ -334,6 +340,7 @@ export default {
|
|
|
334
340
|
v-safe-link:[safeLinkConfig]
|
|
335
341
|
v-bind="computedProps"
|
|
336
342
|
:class="computedClass"
|
|
343
|
+
:data-alt="externalLinkLabel"
|
|
337
344
|
v-on="computedListeners"
|
|
338
345
|
@click="onClick"
|
|
339
346
|
>
|
|
@@ -102,6 +102,7 @@ export default {
|
|
|
102
102
|
data() {
|
|
103
103
|
return {
|
|
104
104
|
sortingListboxId: uniqueId('sorting-listbox-'),
|
|
105
|
+
toggleId: uniqueId('sorting-toggle-'),
|
|
105
106
|
};
|
|
106
107
|
},
|
|
107
108
|
computed: {
|
|
@@ -181,7 +182,8 @@ export default {
|
|
|
181
182
|
:class="dropdownClass"
|
|
182
183
|
placement="bottom-end"
|
|
183
184
|
:block="block"
|
|
184
|
-
:toggle-
|
|
185
|
+
:toggle-id="toggleId"
|
|
186
|
+
:toggle-aria-labelled-by="`${sortingListboxId} ${toggleId}`"
|
|
185
187
|
@select="onSortByChanged"
|
|
186
188
|
/>
|
|
187
189
|
<span :id="sortingListboxId" class="gl-sr-only">{{ sortingListboxLabel }}</span>
|
package/translations.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'GlKeysetPagination.nextText': 'Next',
|
|
28
28
|
'GlKeysetPagination.prevText': 'Previous',
|
|
29
29
|
'GlLabel.removeButtonAriaLabel': 'Remove label - %{label}',
|
|
30
|
+
'GlLink.externalLink': '(external link)',
|
|
30
31
|
'GlModal.closeButtonTitle': 'Close',
|
|
31
32
|
'GlMultiStepFormTemplate.stepX': 'Step %{currentStep}',
|
|
32
33
|
'GlMultiStepFormTemplate.stepXofY': 'Step %{currentStep} of %{stepsTotal}',
|