@regcheq/ui-vue-2 1.14.1 → 1.15.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/index.css +4 -4
- package/dist/index.esm.js +100 -11
- package/dist/index.js +100 -11
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -965,10 +965,6 @@
|
|
|
965
965
|
position: relative;
|
|
966
966
|
display: inline-block;
|
|
967
967
|
}
|
|
968
|
-
.rq-tooltip-wrapper .rq-tooltip--visible {
|
|
969
|
-
opacity: 1;
|
|
970
|
-
pointer-events: auto;
|
|
971
|
-
}
|
|
972
968
|
|
|
973
969
|
.rq-tooltip {
|
|
974
970
|
z-index: 1051;
|
|
@@ -989,6 +985,10 @@
|
|
|
989
985
|
pointer-events: none;
|
|
990
986
|
transition: opacity 100ms ease-out;
|
|
991
987
|
}
|
|
988
|
+
.rq-tooltip--visible {
|
|
989
|
+
opacity: 1;
|
|
990
|
+
pointer-events: auto;
|
|
991
|
+
}
|
|
992
992
|
.rq-tooltip--text-left {
|
|
993
993
|
text-align: left;
|
|
994
994
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -33076,6 +33076,9 @@ var script$l = {
|
|
|
33076
33076
|
// (celda de tabla, panel con scroll, drawer) puede recortarlo. Además deja
|
|
33077
33077
|
// de aportar al área scrolleable del contenedor, que con `absolute`
|
|
33078
33078
|
// producía scrollbars horizontales aunque el tooltip estuviera oculto.
|
|
33079
|
+
// Ojo: `fixed` se resuelve contra el bloque contenedor, y basta un
|
|
33080
|
+
// ancestro con transform/filter/perspective para volverse uno — por eso
|
|
33081
|
+
// la burbuja se mueve a <body> mientras se muestra (ver portal()).
|
|
33079
33082
|
style() {
|
|
33080
33083
|
const base = {
|
|
33081
33084
|
position: 'fixed'
|
|
@@ -33094,9 +33097,15 @@ var script$l = {
|
|
|
33094
33097
|
},
|
|
33095
33098
|
beforeDestroy() {
|
|
33096
33099
|
this.unbindReposition();
|
|
33100
|
+
// Si se destruye mientras se muestra, la burbuja está colgada de <body>:
|
|
33101
|
+
// devolverla evita dejarla huérfana ahí cuando Vue saque el wrapper.
|
|
33102
|
+
this.unportal();
|
|
33097
33103
|
},
|
|
33098
33104
|
methods: {
|
|
33099
33105
|
show() {
|
|
33106
|
+
this.portal();
|
|
33107
|
+
// Lee layout (getBoundingClientRect), así el navegador aplica el
|
|
33108
|
+
// opacity: 0 inicial antes de que --visible dispare la transición.
|
|
33100
33109
|
this.updatePosition();
|
|
33101
33110
|
this.visible = true;
|
|
33102
33111
|
this.bindReposition();
|
|
@@ -33104,6 +33113,25 @@ var script$l = {
|
|
|
33104
33113
|
hide() {
|
|
33105
33114
|
this.visible = false;
|
|
33106
33115
|
this.unbindReposition();
|
|
33116
|
+
this.unportal();
|
|
33117
|
+
},
|
|
33118
|
+
// `fixed` se resuelve contra el bloque contenedor, no siempre contra el
|
|
33119
|
+
// viewport: cualquier ancestro con transform, filter o perspective se
|
|
33120
|
+
// vuelve uno. .rq-drawer, por ejemplo, anima con translateX, así que un
|
|
33121
|
+
// tooltip dentro de un Drawer aparecía corrido en horizontal tanto como
|
|
33122
|
+
// el drawer estuviera desplazado.
|
|
33123
|
+
// Mover la burbuja a <body> mientras se muestra la deja sin ancestros
|
|
33124
|
+
// que puedan capturarla, y las coordenadas del viewport valen tal cual.
|
|
33125
|
+
// Solo vive ahí mientras se ve: cada tooltip oculto vuelve a su wrapper.
|
|
33126
|
+
portal() {
|
|
33127
|
+
const tip = this.$refs.tooltip;
|
|
33128
|
+
if (!tip || tip.parentNode === document.body) return;
|
|
33129
|
+
document.body.appendChild(tip);
|
|
33130
|
+
},
|
|
33131
|
+
unportal() {
|
|
33132
|
+
const tip = this.$refs.tooltip;
|
|
33133
|
+
if (!tip || tip.parentNode !== document.body) return;
|
|
33134
|
+
this.$el.appendChild(tip);
|
|
33107
33135
|
},
|
|
33108
33136
|
// Al estar fijo al viewport, el tooltip no sigue al trigger cuando la
|
|
33109
33137
|
// página o un contenedor interno scrollea: se recalcula mientras se ve.
|
|
@@ -33730,6 +33758,14 @@ var script$g = {
|
|
|
33730
33758
|
siblingCount: {
|
|
33731
33759
|
type: Number,
|
|
33732
33760
|
default: 1
|
|
33761
|
+
},
|
|
33762
|
+
previousLabel: {
|
|
33763
|
+
type: String,
|
|
33764
|
+
default: 'Anterior'
|
|
33765
|
+
},
|
|
33766
|
+
nextLabel: {
|
|
33767
|
+
type: String,
|
|
33768
|
+
default: 'Siguiente'
|
|
33733
33769
|
}
|
|
33734
33770
|
},
|
|
33735
33771
|
computed: {
|
|
@@ -33791,7 +33827,7 @@ var __vue_render__$g = function () {
|
|
|
33791
33827
|
_vm.page > 1 && _vm.$emit("update:page", _vm.page - 1);
|
|
33792
33828
|
}
|
|
33793
33829
|
}
|
|
33794
|
-
}, [_vm._v("\n
|
|
33830
|
+
}, [_vm._v("\n " + _vm._s(_vm.previousLabel) + "\n ")]), _vm._v(" "), _vm._l(_vm.pageItems, function (item, index) {
|
|
33795
33831
|
return [item === "..." ? _c("span", {
|
|
33796
33832
|
key: "ellipsis-" + index,
|
|
33797
33833
|
staticClass: "rq-pagination__ellipsis",
|
|
@@ -33831,7 +33867,7 @@ var __vue_render__$g = function () {
|
|
|
33831
33867
|
_vm.page < _vm.total && _vm.$emit("update:page", _vm.page + 1);
|
|
33832
33868
|
}
|
|
33833
33869
|
}
|
|
33834
|
-
}, [_vm._v("\n
|
|
33870
|
+
}, [_vm._v("\n " + _vm._s(_vm.nextLabel) + "\n ")])], 2);
|
|
33835
33871
|
};
|
|
33836
33872
|
var __vue_staticRenderFns__$g = [];
|
|
33837
33873
|
__vue_render__$g._withStripped = true;
|
|
@@ -34592,11 +34628,22 @@ var script$b = {
|
|
|
34592
34628
|
deleteLabel: {
|
|
34593
34629
|
type: String,
|
|
34594
34630
|
default: 'Eliminar'
|
|
34631
|
+
},
|
|
34632
|
+
selectedCountText: {
|
|
34633
|
+
type: String,
|
|
34634
|
+
default: '{count} registros seleccionados'
|
|
34635
|
+
},
|
|
34636
|
+
clearLabel: {
|
|
34637
|
+
type: String,
|
|
34638
|
+
default: 'Limpiar selección'
|
|
34595
34639
|
}
|
|
34596
34640
|
},
|
|
34597
34641
|
computed: {
|
|
34598
34642
|
classes() {
|
|
34599
34643
|
return selectionBarVariants();
|
|
34644
|
+
},
|
|
34645
|
+
selectedCountLabel() {
|
|
34646
|
+
return this.selectedCountText.replace('{count}', this.count);
|
|
34600
34647
|
}
|
|
34601
34648
|
}
|
|
34602
34649
|
};
|
|
@@ -34615,7 +34662,7 @@ var __vue_render__$b = function () {
|
|
|
34615
34662
|
staticClass: "rq-selection-bar__info"
|
|
34616
34663
|
}, [_c("span", {
|
|
34617
34664
|
staticClass: "rq-selection-bar__dot"
|
|
34618
|
-
}), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.
|
|
34665
|
+
}), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.selectedCountLabel))]), _vm._v(" "), _c("button", {
|
|
34619
34666
|
staticClass: "rq-selection-bar__clear",
|
|
34620
34667
|
attrs: {
|
|
34621
34668
|
type: "button"
|
|
@@ -34625,7 +34672,7 @@ var __vue_render__$b = function () {
|
|
|
34625
34672
|
return _vm.$emit("clear");
|
|
34626
34673
|
}
|
|
34627
34674
|
}
|
|
34628
|
-
}, [_vm._v("\n
|
|
34675
|
+
}, [_vm._v("\n " + _vm._s(_vm.clearLabel) + "\n ")])]), _vm._v(" "), _c("Button", {
|
|
34629
34676
|
attrs: {
|
|
34630
34677
|
variant: "secondary",
|
|
34631
34678
|
size: "md",
|
|
@@ -39056,6 +39103,14 @@ var script$4 = {
|
|
|
39056
39103
|
loadingRows: {
|
|
39057
39104
|
type: Number,
|
|
39058
39105
|
default: 5
|
|
39106
|
+
},
|
|
39107
|
+
pinColumnLabel: {
|
|
39108
|
+
type: String,
|
|
39109
|
+
default: 'Fijar columna'
|
|
39110
|
+
},
|
|
39111
|
+
unpinColumnLabel: {
|
|
39112
|
+
type: String,
|
|
39113
|
+
default: 'Desfijar columna'
|
|
39059
39114
|
}
|
|
39060
39115
|
},
|
|
39061
39116
|
setup(props, {
|
|
@@ -39651,7 +39706,7 @@ var __vue_render__$4 = function () {
|
|
|
39651
39706
|
attrs: {
|
|
39652
39707
|
size: 14
|
|
39653
39708
|
}
|
|
39654
|
-
}), _vm._v("\n " + _vm._s(_vm.contextMenu.colKey in _vm.pinnedLeftWidths ?
|
|
39709
|
+
}), _vm._v("\n " + _vm._s(_vm.contextMenu.colKey in _vm.pinnedLeftWidths ? _vm.unpinColumnLabel : _vm.pinColumnLabel) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.activeChevronKey ? _c("div", {
|
|
39655
39710
|
ref: "chevronPopover",
|
|
39656
39711
|
staticClass: "rq-table__chevron-popover",
|
|
39657
39712
|
style: {
|
|
@@ -39784,6 +39839,10 @@ const dataTableVariants = cva('rq-data-table', {
|
|
|
39784
39839
|
//
|
|
39785
39840
|
//
|
|
39786
39841
|
//
|
|
39842
|
+
//
|
|
39843
|
+
//
|
|
39844
|
+
//
|
|
39845
|
+
//
|
|
39787
39846
|
|
|
39788
39847
|
var script$3 = {
|
|
39789
39848
|
name: 'DataTable',
|
|
@@ -39849,7 +39908,11 @@ var script$3 = {
|
|
|
39849
39908
|
},
|
|
39850
39909
|
deleteLabel: {
|
|
39851
39910
|
type: String,
|
|
39852
|
-
default:
|
|
39911
|
+
default: null
|
|
39912
|
+
},
|
|
39913
|
+
texts: {
|
|
39914
|
+
type: Object,
|
|
39915
|
+
default: () => ({})
|
|
39853
39916
|
},
|
|
39854
39917
|
expandable: {
|
|
39855
39918
|
type: Boolean,
|
|
@@ -39904,6 +39967,25 @@ var script$3 = {
|
|
|
39904
39967
|
},
|
|
39905
39968
|
selectedCount() {
|
|
39906
39969
|
return this.selectedRows.length;
|
|
39970
|
+
},
|
|
39971
|
+
mergedTexts() {
|
|
39972
|
+
return {
|
|
39973
|
+
selectedCount: '{count} registros seleccionados',
|
|
39974
|
+
clearSelection: 'Limpiar selección',
|
|
39975
|
+
delete: 'Eliminar',
|
|
39976
|
+
showingRecords: 'Mostrando {from} – {to} de {total} registros',
|
|
39977
|
+
showingRecordsEmpty: 'Mostrando 0 registros',
|
|
39978
|
+
rowsPerPage: 'Filas por página',
|
|
39979
|
+
previous: 'Anterior',
|
|
39980
|
+
next: 'Siguiente',
|
|
39981
|
+
pinColumn: 'Fijar columna',
|
|
39982
|
+
unpinColumn: 'Desfijar columna',
|
|
39983
|
+
...this.texts
|
|
39984
|
+
};
|
|
39985
|
+
},
|
|
39986
|
+
showingRecordsLabel() {
|
|
39987
|
+
if (this.total === 0) return this.mergedTexts.showingRecordsEmpty;
|
|
39988
|
+
return this.mergedTexts.showingRecords.replace('{from}', this.fromRecord).replace('{to}', this.toRecord).replace('{total}', this.total);
|
|
39907
39989
|
}
|
|
39908
39990
|
},
|
|
39909
39991
|
methods: {
|
|
@@ -39949,7 +40031,9 @@ var __vue_render__$3 = function () {
|
|
|
39949
40031
|
}, [_vm.selectedCount > 0 ? _c("SelectionBar", {
|
|
39950
40032
|
attrs: {
|
|
39951
40033
|
count: _vm.selectedCount,
|
|
39952
|
-
"delete-label": _vm.deleteLabel
|
|
40034
|
+
"delete-label": _vm.deleteLabel || _vm.mergedTexts.delete,
|
|
40035
|
+
"selected-count-text": _vm.mergedTexts.selectedCount,
|
|
40036
|
+
"clear-label": _vm.mergedTexts.clearSelection
|
|
39953
40037
|
},
|
|
39954
40038
|
on: {
|
|
39955
40039
|
clear: _vm.onClearSelection,
|
|
@@ -39974,7 +40058,9 @@ var __vue_render__$3 = function () {
|
|
|
39974
40058
|
"columns-draggable": _vm.columnsDraggable,
|
|
39975
40059
|
"columns-pinnable": _vm.columnsPinnable,
|
|
39976
40060
|
loading: _vm.loading,
|
|
39977
|
-
"loading-rows": _vm.loadingRows
|
|
40061
|
+
"loading-rows": _vm.loadingRows,
|
|
40062
|
+
"pin-column-label": _vm.mergedTexts.pinColumn,
|
|
40063
|
+
"unpin-column-label": _vm.mergedTexts.unpinColumn
|
|
39978
40064
|
},
|
|
39979
40065
|
on: {
|
|
39980
40066
|
"row-click": function ($event) {
|
|
@@ -40027,12 +40113,13 @@ var __vue_render__$3 = function () {
|
|
|
40027
40113
|
staticClass: "rq-data-table__pagination"
|
|
40028
40114
|
}, [_c("span", {
|
|
40029
40115
|
staticClass: "rq-data-table__pagination-info"
|
|
40030
|
-
}, [_vm.
|
|
40116
|
+
}, [_vm._v(_vm._s(_vm.showingRecordsLabel))]), _vm._v(" "), _c("div", {
|
|
40031
40117
|
staticClass: "rq-data-table__pagination-controls"
|
|
40032
40118
|
}, [_c("PageSizeSelect", {
|
|
40033
40119
|
attrs: {
|
|
40034
40120
|
"page-size": _vm.pageSize,
|
|
40035
|
-
options: _vm.pageSizeOptions
|
|
40121
|
+
options: _vm.pageSizeOptions,
|
|
40122
|
+
label: _vm.mergedTexts.rowsPerPage
|
|
40036
40123
|
},
|
|
40037
40124
|
on: {
|
|
40038
40125
|
"update:page-size": function ($event) {
|
|
@@ -40042,7 +40129,9 @@ var __vue_render__$3 = function () {
|
|
|
40042
40129
|
}), _vm._v(" "), _vm.total > 0 ? _c("Pagination", {
|
|
40043
40130
|
attrs: {
|
|
40044
40131
|
page: _vm.page,
|
|
40045
|
-
total: _vm.totalPages
|
|
40132
|
+
total: _vm.totalPages,
|
|
40133
|
+
"previous-label": _vm.mergedTexts.previous,
|
|
40134
|
+
"next-label": _vm.mergedTexts.next
|
|
40046
40135
|
},
|
|
40047
40136
|
on: {
|
|
40048
40137
|
"update:page": function ($event) {
|
package/dist/index.js
CHANGED
|
@@ -33078,6 +33078,9 @@ var script$l = {
|
|
|
33078
33078
|
// (celda de tabla, panel con scroll, drawer) puede recortarlo. Además deja
|
|
33079
33079
|
// de aportar al área scrolleable del contenedor, que con `absolute`
|
|
33080
33080
|
// producía scrollbars horizontales aunque el tooltip estuviera oculto.
|
|
33081
|
+
// Ojo: `fixed` se resuelve contra el bloque contenedor, y basta un
|
|
33082
|
+
// ancestro con transform/filter/perspective para volverse uno — por eso
|
|
33083
|
+
// la burbuja se mueve a <body> mientras se muestra (ver portal()).
|
|
33081
33084
|
style() {
|
|
33082
33085
|
const base = {
|
|
33083
33086
|
position: 'fixed'
|
|
@@ -33096,9 +33099,15 @@ var script$l = {
|
|
|
33096
33099
|
},
|
|
33097
33100
|
beforeDestroy() {
|
|
33098
33101
|
this.unbindReposition();
|
|
33102
|
+
// Si se destruye mientras se muestra, la burbuja está colgada de <body>:
|
|
33103
|
+
// devolverla evita dejarla huérfana ahí cuando Vue saque el wrapper.
|
|
33104
|
+
this.unportal();
|
|
33099
33105
|
},
|
|
33100
33106
|
methods: {
|
|
33101
33107
|
show() {
|
|
33108
|
+
this.portal();
|
|
33109
|
+
// Lee layout (getBoundingClientRect), así el navegador aplica el
|
|
33110
|
+
// opacity: 0 inicial antes de que --visible dispare la transición.
|
|
33102
33111
|
this.updatePosition();
|
|
33103
33112
|
this.visible = true;
|
|
33104
33113
|
this.bindReposition();
|
|
@@ -33106,6 +33115,25 @@ var script$l = {
|
|
|
33106
33115
|
hide() {
|
|
33107
33116
|
this.visible = false;
|
|
33108
33117
|
this.unbindReposition();
|
|
33118
|
+
this.unportal();
|
|
33119
|
+
},
|
|
33120
|
+
// `fixed` se resuelve contra el bloque contenedor, no siempre contra el
|
|
33121
|
+
// viewport: cualquier ancestro con transform, filter o perspective se
|
|
33122
|
+
// vuelve uno. .rq-drawer, por ejemplo, anima con translateX, así que un
|
|
33123
|
+
// tooltip dentro de un Drawer aparecía corrido en horizontal tanto como
|
|
33124
|
+
// el drawer estuviera desplazado.
|
|
33125
|
+
// Mover la burbuja a <body> mientras se muestra la deja sin ancestros
|
|
33126
|
+
// que puedan capturarla, y las coordenadas del viewport valen tal cual.
|
|
33127
|
+
// Solo vive ahí mientras se ve: cada tooltip oculto vuelve a su wrapper.
|
|
33128
|
+
portal() {
|
|
33129
|
+
const tip = this.$refs.tooltip;
|
|
33130
|
+
if (!tip || tip.parentNode === document.body) return;
|
|
33131
|
+
document.body.appendChild(tip);
|
|
33132
|
+
},
|
|
33133
|
+
unportal() {
|
|
33134
|
+
const tip = this.$refs.tooltip;
|
|
33135
|
+
if (!tip || tip.parentNode !== document.body) return;
|
|
33136
|
+
this.$el.appendChild(tip);
|
|
33109
33137
|
},
|
|
33110
33138
|
// Al estar fijo al viewport, el tooltip no sigue al trigger cuando la
|
|
33111
33139
|
// página o un contenedor interno scrollea: se recalcula mientras se ve.
|
|
@@ -33732,6 +33760,14 @@ var script$g = {
|
|
|
33732
33760
|
siblingCount: {
|
|
33733
33761
|
type: Number,
|
|
33734
33762
|
default: 1
|
|
33763
|
+
},
|
|
33764
|
+
previousLabel: {
|
|
33765
|
+
type: String,
|
|
33766
|
+
default: 'Anterior'
|
|
33767
|
+
},
|
|
33768
|
+
nextLabel: {
|
|
33769
|
+
type: String,
|
|
33770
|
+
default: 'Siguiente'
|
|
33735
33771
|
}
|
|
33736
33772
|
},
|
|
33737
33773
|
computed: {
|
|
@@ -33793,7 +33829,7 @@ var __vue_render__$g = function () {
|
|
|
33793
33829
|
_vm.page > 1 && _vm.$emit("update:page", _vm.page - 1);
|
|
33794
33830
|
}
|
|
33795
33831
|
}
|
|
33796
|
-
}, [_vm._v("\n
|
|
33832
|
+
}, [_vm._v("\n " + _vm._s(_vm.previousLabel) + "\n ")]), _vm._v(" "), _vm._l(_vm.pageItems, function (item, index) {
|
|
33797
33833
|
return [item === "..." ? _c("span", {
|
|
33798
33834
|
key: "ellipsis-" + index,
|
|
33799
33835
|
staticClass: "rq-pagination__ellipsis",
|
|
@@ -33833,7 +33869,7 @@ var __vue_render__$g = function () {
|
|
|
33833
33869
|
_vm.page < _vm.total && _vm.$emit("update:page", _vm.page + 1);
|
|
33834
33870
|
}
|
|
33835
33871
|
}
|
|
33836
|
-
}, [_vm._v("\n
|
|
33872
|
+
}, [_vm._v("\n " + _vm._s(_vm.nextLabel) + "\n ")])], 2);
|
|
33837
33873
|
};
|
|
33838
33874
|
var __vue_staticRenderFns__$g = [];
|
|
33839
33875
|
__vue_render__$g._withStripped = true;
|
|
@@ -34594,11 +34630,22 @@ var script$b = {
|
|
|
34594
34630
|
deleteLabel: {
|
|
34595
34631
|
type: String,
|
|
34596
34632
|
default: 'Eliminar'
|
|
34633
|
+
},
|
|
34634
|
+
selectedCountText: {
|
|
34635
|
+
type: String,
|
|
34636
|
+
default: '{count} registros seleccionados'
|
|
34637
|
+
},
|
|
34638
|
+
clearLabel: {
|
|
34639
|
+
type: String,
|
|
34640
|
+
default: 'Limpiar selección'
|
|
34597
34641
|
}
|
|
34598
34642
|
},
|
|
34599
34643
|
computed: {
|
|
34600
34644
|
classes() {
|
|
34601
34645
|
return selectionBarVariants();
|
|
34646
|
+
},
|
|
34647
|
+
selectedCountLabel() {
|
|
34648
|
+
return this.selectedCountText.replace('{count}', this.count);
|
|
34602
34649
|
}
|
|
34603
34650
|
}
|
|
34604
34651
|
};
|
|
@@ -34617,7 +34664,7 @@ var __vue_render__$b = function () {
|
|
|
34617
34664
|
staticClass: "rq-selection-bar__info"
|
|
34618
34665
|
}, [_c("span", {
|
|
34619
34666
|
staticClass: "rq-selection-bar__dot"
|
|
34620
|
-
}), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.
|
|
34667
|
+
}), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.selectedCountLabel))]), _vm._v(" "), _c("button", {
|
|
34621
34668
|
staticClass: "rq-selection-bar__clear",
|
|
34622
34669
|
attrs: {
|
|
34623
34670
|
type: "button"
|
|
@@ -34627,7 +34674,7 @@ var __vue_render__$b = function () {
|
|
|
34627
34674
|
return _vm.$emit("clear");
|
|
34628
34675
|
}
|
|
34629
34676
|
}
|
|
34630
|
-
}, [_vm._v("\n
|
|
34677
|
+
}, [_vm._v("\n " + _vm._s(_vm.clearLabel) + "\n ")])]), _vm._v(" "), _c("Button", {
|
|
34631
34678
|
attrs: {
|
|
34632
34679
|
variant: "secondary",
|
|
34633
34680
|
size: "md",
|
|
@@ -39058,6 +39105,14 @@ var script$4 = {
|
|
|
39058
39105
|
loadingRows: {
|
|
39059
39106
|
type: Number,
|
|
39060
39107
|
default: 5
|
|
39108
|
+
},
|
|
39109
|
+
pinColumnLabel: {
|
|
39110
|
+
type: String,
|
|
39111
|
+
default: 'Fijar columna'
|
|
39112
|
+
},
|
|
39113
|
+
unpinColumnLabel: {
|
|
39114
|
+
type: String,
|
|
39115
|
+
default: 'Desfijar columna'
|
|
39061
39116
|
}
|
|
39062
39117
|
},
|
|
39063
39118
|
setup(props, {
|
|
@@ -39653,7 +39708,7 @@ var __vue_render__$4 = function () {
|
|
|
39653
39708
|
attrs: {
|
|
39654
39709
|
size: 14
|
|
39655
39710
|
}
|
|
39656
|
-
}), _vm._v("\n " + _vm._s(_vm.contextMenu.colKey in _vm.pinnedLeftWidths ?
|
|
39711
|
+
}), _vm._v("\n " + _vm._s(_vm.contextMenu.colKey in _vm.pinnedLeftWidths ? _vm.unpinColumnLabel : _vm.pinColumnLabel) + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.activeChevronKey ? _c("div", {
|
|
39657
39712
|
ref: "chevronPopover",
|
|
39658
39713
|
staticClass: "rq-table__chevron-popover",
|
|
39659
39714
|
style: {
|
|
@@ -39786,6 +39841,10 @@ const dataTableVariants = cva('rq-data-table', {
|
|
|
39786
39841
|
//
|
|
39787
39842
|
//
|
|
39788
39843
|
//
|
|
39844
|
+
//
|
|
39845
|
+
//
|
|
39846
|
+
//
|
|
39847
|
+
//
|
|
39789
39848
|
|
|
39790
39849
|
var script$3 = {
|
|
39791
39850
|
name: 'DataTable',
|
|
@@ -39851,7 +39910,11 @@ var script$3 = {
|
|
|
39851
39910
|
},
|
|
39852
39911
|
deleteLabel: {
|
|
39853
39912
|
type: String,
|
|
39854
|
-
default:
|
|
39913
|
+
default: null
|
|
39914
|
+
},
|
|
39915
|
+
texts: {
|
|
39916
|
+
type: Object,
|
|
39917
|
+
default: () => ({})
|
|
39855
39918
|
},
|
|
39856
39919
|
expandable: {
|
|
39857
39920
|
type: Boolean,
|
|
@@ -39906,6 +39969,25 @@ var script$3 = {
|
|
|
39906
39969
|
},
|
|
39907
39970
|
selectedCount() {
|
|
39908
39971
|
return this.selectedRows.length;
|
|
39972
|
+
},
|
|
39973
|
+
mergedTexts() {
|
|
39974
|
+
return {
|
|
39975
|
+
selectedCount: '{count} registros seleccionados',
|
|
39976
|
+
clearSelection: 'Limpiar selección',
|
|
39977
|
+
delete: 'Eliminar',
|
|
39978
|
+
showingRecords: 'Mostrando {from} – {to} de {total} registros',
|
|
39979
|
+
showingRecordsEmpty: 'Mostrando 0 registros',
|
|
39980
|
+
rowsPerPage: 'Filas por página',
|
|
39981
|
+
previous: 'Anterior',
|
|
39982
|
+
next: 'Siguiente',
|
|
39983
|
+
pinColumn: 'Fijar columna',
|
|
39984
|
+
unpinColumn: 'Desfijar columna',
|
|
39985
|
+
...this.texts
|
|
39986
|
+
};
|
|
39987
|
+
},
|
|
39988
|
+
showingRecordsLabel() {
|
|
39989
|
+
if (this.total === 0) return this.mergedTexts.showingRecordsEmpty;
|
|
39990
|
+
return this.mergedTexts.showingRecords.replace('{from}', this.fromRecord).replace('{to}', this.toRecord).replace('{total}', this.total);
|
|
39909
39991
|
}
|
|
39910
39992
|
},
|
|
39911
39993
|
methods: {
|
|
@@ -39951,7 +40033,9 @@ var __vue_render__$3 = function () {
|
|
|
39951
40033
|
}, [_vm.selectedCount > 0 ? _c("SelectionBar", {
|
|
39952
40034
|
attrs: {
|
|
39953
40035
|
count: _vm.selectedCount,
|
|
39954
|
-
"delete-label": _vm.deleteLabel
|
|
40036
|
+
"delete-label": _vm.deleteLabel || _vm.mergedTexts.delete,
|
|
40037
|
+
"selected-count-text": _vm.mergedTexts.selectedCount,
|
|
40038
|
+
"clear-label": _vm.mergedTexts.clearSelection
|
|
39955
40039
|
},
|
|
39956
40040
|
on: {
|
|
39957
40041
|
clear: _vm.onClearSelection,
|
|
@@ -39976,7 +40060,9 @@ var __vue_render__$3 = function () {
|
|
|
39976
40060
|
"columns-draggable": _vm.columnsDraggable,
|
|
39977
40061
|
"columns-pinnable": _vm.columnsPinnable,
|
|
39978
40062
|
loading: _vm.loading,
|
|
39979
|
-
"loading-rows": _vm.loadingRows
|
|
40063
|
+
"loading-rows": _vm.loadingRows,
|
|
40064
|
+
"pin-column-label": _vm.mergedTexts.pinColumn,
|
|
40065
|
+
"unpin-column-label": _vm.mergedTexts.unpinColumn
|
|
39980
40066
|
},
|
|
39981
40067
|
on: {
|
|
39982
40068
|
"row-click": function ($event) {
|
|
@@ -40029,12 +40115,13 @@ var __vue_render__$3 = function () {
|
|
|
40029
40115
|
staticClass: "rq-data-table__pagination"
|
|
40030
40116
|
}, [_c("span", {
|
|
40031
40117
|
staticClass: "rq-data-table__pagination-info"
|
|
40032
|
-
}, [_vm.
|
|
40118
|
+
}, [_vm._v(_vm._s(_vm.showingRecordsLabel))]), _vm._v(" "), _c("div", {
|
|
40033
40119
|
staticClass: "rq-data-table__pagination-controls"
|
|
40034
40120
|
}, [_c("PageSizeSelect", {
|
|
40035
40121
|
attrs: {
|
|
40036
40122
|
"page-size": _vm.pageSize,
|
|
40037
|
-
options: _vm.pageSizeOptions
|
|
40123
|
+
options: _vm.pageSizeOptions,
|
|
40124
|
+
label: _vm.mergedTexts.rowsPerPage
|
|
40038
40125
|
},
|
|
40039
40126
|
on: {
|
|
40040
40127
|
"update:page-size": function ($event) {
|
|
@@ -40044,7 +40131,9 @@ var __vue_render__$3 = function () {
|
|
|
40044
40131
|
}), _vm._v(" "), _vm.total > 0 ? _c("Pagination", {
|
|
40045
40132
|
attrs: {
|
|
40046
40133
|
page: _vm.page,
|
|
40047
|
-
total: _vm.totalPages
|
|
40134
|
+
total: _vm.totalPages,
|
|
40135
|
+
"previous-label": _vm.mergedTexts.previous,
|
|
40136
|
+
"next-label": _vm.mergedTexts.next
|
|
40048
40137
|
},
|
|
40049
40138
|
on: {
|
|
40050
40139
|
"update:page": function ($event) {
|