@gitlab/ui 48.1.1 → 48.1.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
|
+
## [48.1.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v48.1.1...v48.1.2) (2022-10-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **GlPagination:** Fix GlPagination accessibility ([a802cf6](https://gitlab.com/gitlab-org/gitlab-ui/commit/a802cf6752e9d29c28b0059f94f63592d10ed86d))
|
|
7
|
+
|
|
1
8
|
## [48.1.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v48.1.0...v48.1.1) (2022-10-21)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -413,16 +413,16 @@ var script = {
|
|
|
413
413
|
const __vue_script__ = script;
|
|
414
414
|
|
|
415
415
|
/* template */
|
|
416
|
-
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.isVisible)?_c('ul',{staticClass:"pagination gl-pagination text-nowrap",class:_vm.wrapperClasses
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
416
|
+
var __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{attrs:{"aria-label":"Pagination"}},[(_vm.isVisible)?_c('ul',{staticClass:"pagination gl-pagination text-nowrap",class:_vm.wrapperClasses},[_c('li',{staticClass:"page-item",class:{
|
|
417
|
+
disabled: _vm.prevPageIsDisabled,
|
|
418
|
+
'flex-fill': _vm.isFillAlign,
|
|
419
|
+
},attrs:{"aria-hidden":_vm.prevPageIsDisabled}},[_c(_vm.prevPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link prev-page-item gl-display-flex",attrs:{"aria-label":_vm.prevPageAriaLabel,"href":_vm.prevPageHref},on:{"click":function($event){return _vm.handlePrevious($event, _vm.value - 1)}}},[_vm._t("previous",function(){return [_c('gl-icon',{attrs:{"name":"chevron-left"}}),_vm._v(" "),_c('span',[_vm._v(_vm._s(_vm.prevText))])]},null,{ page: _vm.value - 1, disabled: _vm.prevPageIsDisabled })],2)],1),_vm._v(" "),_vm._l((_vm.visibleItems),function(item){return _c('li',{key:item.key,staticClass:"page-item",class:{
|
|
420
|
+
disabled: item.disabled,
|
|
421
|
+
'flex-fill': _vm.isFillAlign,
|
|
422
|
+
}},[_c(item.component,_vm._g(_vm._b({tag:"component",staticClass:"page-link",attrs:{"size":"md","aria-disabled":item.disabled}},'component',item.attrs,false),item.listeners),[_vm._t(item.slot,function(){return [_vm._v(_vm._s(item.content))]},null,item.slotData)],2)],1)}),_vm._v(" "),_c('li',{staticClass:"page-item",class:{
|
|
423
|
+
disabled: _vm.nextPageIsDisabled,
|
|
424
|
+
'flex-fill': _vm.isFillAlign,
|
|
425
|
+
},attrs:{"aria-hidden":_vm.nextPageIsDisabled}},[_c(_vm.nextPageIsDisabled ? 'span' : 'a',{tag:"component",staticClass:"gl-link page-link next-page-item gl-display-flex",attrs:{"aria-label":_vm.nextPageAriaLabel,"href":_vm.nextPageHref},on:{"click":function($event){return _vm.handleNext($event, _vm.value + 1)}}},[_vm._t("next",function(){return [_c('span',[_vm._v(_vm._s(_vm.nextText))]),_vm._v(" "),_c('gl-icon',{attrs:{"name":"chevron-right"}})]},null,{ page: _vm.value + 1, disabled: _vm.nextPageIsDisabled })],2)],1)],2):_vm._e()])};
|
|
426
426
|
var __vue_staticRenderFns__ = [];
|
|
427
427
|
|
|
428
428
|
/* style */
|
package/package.json
CHANGED
|
@@ -375,102 +375,98 @@ export default {
|
|
|
375
375
|
</script>
|
|
376
376
|
|
|
377
377
|
<template>
|
|
378
|
-
<
|
|
379
|
-
v-if="isVisible"
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
:class="{
|
|
388
|
-
disabled: prevPageIsDisabled,
|
|
389
|
-
'flex-fill': isFillAlign,
|
|
390
|
-
}"
|
|
391
|
-
:aria-hidden="prevPageIsDisabled"
|
|
392
|
-
>
|
|
393
|
-
<component
|
|
394
|
-
:is="prevPageIsDisabled ? 'span' : 'a'"
|
|
395
|
-
class="gl-link page-link prev-page-item gl-display-flex"
|
|
396
|
-
:aria-label="prevPageAriaLabel"
|
|
397
|
-
:href="prevPageHref"
|
|
398
|
-
@click="handlePrevious($event, value - 1)"
|
|
378
|
+
<nav aria-label="Pagination">
|
|
379
|
+
<ul v-if="isVisible" class="pagination gl-pagination text-nowrap" :class="wrapperClasses">
|
|
380
|
+
<li
|
|
381
|
+
class="page-item"
|
|
382
|
+
:class="{
|
|
383
|
+
disabled: prevPageIsDisabled,
|
|
384
|
+
'flex-fill': isFillAlign,
|
|
385
|
+
}"
|
|
386
|
+
:aria-hidden="prevPageIsDisabled"
|
|
399
387
|
>
|
|
400
|
-
|
|
401
|
-
|
|
388
|
+
<component
|
|
389
|
+
:is="prevPageIsDisabled ? 'span' : 'a'"
|
|
390
|
+
class="gl-link page-link prev-page-item gl-display-flex"
|
|
391
|
+
:aria-label="prevPageAriaLabel"
|
|
392
|
+
:href="prevPageHref"
|
|
393
|
+
@click="handlePrevious($event, value - 1)"
|
|
394
|
+
>
|
|
395
|
+
<!--
|
|
396
|
+
@slot Content for the "previous" button. Overrides the "prevText" prop.
|
|
397
|
+
@binding {boolean} active
|
|
398
|
+
@binding {boolean} disabled
|
|
399
|
+
@binding {number} number
|
|
400
|
+
-->
|
|
401
|
+
<slot name="previous" v-bind="{ page: value - 1, disabled: prevPageIsDisabled }">
|
|
402
|
+
<gl-icon name="chevron-left" />
|
|
403
|
+
<span>{{ prevText }}</span>
|
|
404
|
+
</slot>
|
|
405
|
+
</component>
|
|
406
|
+
</li>
|
|
407
|
+
<li
|
|
408
|
+
v-for="item in visibleItems"
|
|
409
|
+
:key="item.key"
|
|
410
|
+
class="page-item"
|
|
411
|
+
:class="{
|
|
412
|
+
disabled: item.disabled,
|
|
413
|
+
'flex-fill': isFillAlign,
|
|
414
|
+
}"
|
|
415
|
+
>
|
|
416
|
+
<component
|
|
417
|
+
:is="item.component"
|
|
418
|
+
size="md"
|
|
419
|
+
:aria-disabled="item.disabled"
|
|
420
|
+
class="page-link"
|
|
421
|
+
v-bind="item.attrs"
|
|
422
|
+
v-on="item.listeners"
|
|
423
|
+
>
|
|
424
|
+
<!--
|
|
425
|
+
Content for page number buttons.
|
|
426
|
+
@slot page-number
|
|
402
427
|
@binding {boolean} active
|
|
403
428
|
@binding {boolean} disabled
|
|
404
429
|
@binding {number} number
|
|
405
430
|
-->
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
disabled: item.disabled,
|
|
418
|
-
'flex-fill': isFillAlign,
|
|
419
|
-
}"
|
|
420
|
-
>
|
|
421
|
-
<component
|
|
422
|
-
:is="item.component"
|
|
423
|
-
size="md"
|
|
424
|
-
:aria-disabled="item.disabled"
|
|
425
|
-
class="page-link"
|
|
426
|
-
v-bind="item.attrs"
|
|
427
|
-
v-on="item.listeners"
|
|
428
|
-
>
|
|
429
|
-
<!--
|
|
430
|
-
Content for page number buttons.
|
|
431
|
-
@slot page-number
|
|
432
|
-
@binding {boolean} active
|
|
433
|
-
@binding {boolean} disabled
|
|
434
|
-
@binding {number} number
|
|
435
|
-
-->
|
|
436
|
-
<!--
|
|
437
|
-
Content for the left ellipsis. Overrides the "ellipsisText" prop.
|
|
438
|
-
@slot ellipsis-left
|
|
439
|
-
-->
|
|
440
|
-
<!--
|
|
441
|
-
Content for the right ellipsis. Overrides the "ellipsisText" prop.
|
|
442
|
-
@slot ellipsis-right
|
|
443
|
-
-->
|
|
444
|
-
<slot :name="item.slot" v-bind="item.slotData">{{ item.content }}</slot>
|
|
445
|
-
</component>
|
|
446
|
-
</li>
|
|
431
|
+
<!--
|
|
432
|
+
Content for the left ellipsis. Overrides the "ellipsisText" prop.
|
|
433
|
+
@slot ellipsis-left
|
|
434
|
+
-->
|
|
435
|
+
<!--
|
|
436
|
+
Content for the right ellipsis. Overrides the "ellipsisText" prop.
|
|
437
|
+
@slot ellipsis-right
|
|
438
|
+
-->
|
|
439
|
+
<slot :name="item.slot" v-bind="item.slotData">{{ item.content }}</slot>
|
|
440
|
+
</component>
|
|
441
|
+
</li>
|
|
447
442
|
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
>
|
|
456
|
-
<component
|
|
457
|
-
:is="nextPageIsDisabled ? 'span' : 'a'"
|
|
458
|
-
class="gl-link page-link next-page-item gl-display-flex"
|
|
459
|
-
:aria-label="nextPageAriaLabel"
|
|
460
|
-
:href="nextPageHref"
|
|
461
|
-
@click="handleNext($event, value + 1)"
|
|
443
|
+
<li
|
|
444
|
+
class="page-item"
|
|
445
|
+
:class="{
|
|
446
|
+
disabled: nextPageIsDisabled,
|
|
447
|
+
'flex-fill': isFillAlign,
|
|
448
|
+
}"
|
|
449
|
+
:aria-hidden="nextPageIsDisabled"
|
|
462
450
|
>
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
451
|
+
<component
|
|
452
|
+
:is="nextPageIsDisabled ? 'span' : 'a'"
|
|
453
|
+
class="gl-link page-link next-page-item gl-display-flex"
|
|
454
|
+
:aria-label="nextPageAriaLabel"
|
|
455
|
+
:href="nextPageHref"
|
|
456
|
+
@click="handleNext($event, value + 1)"
|
|
457
|
+
>
|
|
458
|
+
<!--
|
|
459
|
+
@slot Content for the "next" button. Overrides the "nextText" prop.
|
|
460
|
+
@binding {boolean} active
|
|
461
|
+
@binding {boolean} disabled
|
|
462
|
+
@binding {number} number
|
|
463
|
+
-->
|
|
464
|
+
<slot name="next" v-bind="{ page: value + 1, disabled: nextPageIsDisabled }">
|
|
465
|
+
<span>{{ nextText }}</span>
|
|
466
|
+
<gl-icon name="chevron-right" />
|
|
467
|
+
</slot>
|
|
468
|
+
</component>
|
|
469
|
+
</li>
|
|
470
|
+
</ul>
|
|
471
|
+
</nav>
|
|
476
472
|
</template>
|