@regcheq/ui-vue-2 1.15.1 → 1.15.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/dist/index.css +1 -0
- package/dist/index.esm.js +45 -7
- package/dist/index.js +45 -7
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -33245,6 +33245,22 @@ const groupMixin = {
|
|
|
33245
33245
|
default: false
|
|
33246
33246
|
}
|
|
33247
33247
|
},
|
|
33248
|
+
computed: {
|
|
33249
|
+
// `change` se saca de los listeners que se reenvían a la raíz, igual que
|
|
33250
|
+
// en el atom Checkbox. Estos grupos emiten 'change' Y montan un control
|
|
33251
|
+
// que dispara un 'change' nativo del DOM: ese evento burbujea hasta la
|
|
33252
|
+
// raíz y, si el listener del consumidor sigue enganchado ahí, se ejecuta
|
|
33253
|
+
// dos veces por un solo click (una con el booleano del componente, otra
|
|
33254
|
+
// con el Event nativo). En un consumidor que togglea, los dos disparos se
|
|
33255
|
+
// anulan: el control no cambia de estado pero la acción corre igual.
|
|
33256
|
+
listenersWithoutChange() {
|
|
33257
|
+
const {
|
|
33258
|
+
change,
|
|
33259
|
+
...rest
|
|
33260
|
+
} = this.$listeners;
|
|
33261
|
+
return rest;
|
|
33262
|
+
}
|
|
33263
|
+
},
|
|
33248
33264
|
methods: {
|
|
33249
33265
|
handleClick() {
|
|
33250
33266
|
if (!this.disabled) this.$emit('change', !this.checked);
|
|
@@ -33313,7 +33329,7 @@ var __vue_render__$k = function () {
|
|
|
33313
33329
|
on: {
|
|
33314
33330
|
click: _vm.handleClick
|
|
33315
33331
|
}
|
|
33316
|
-
}, _vm
|
|
33332
|
+
}, _vm.listenersWithoutChange), [_c("Checkbox", {
|
|
33317
33333
|
attrs: {
|
|
33318
33334
|
checked: _vm.checked,
|
|
33319
33335
|
disabled: _vm.disabled
|
|
@@ -33426,7 +33442,7 @@ var __vue_render__$j = function () {
|
|
|
33426
33442
|
on: {
|
|
33427
33443
|
click: _vm.handleClick
|
|
33428
33444
|
}
|
|
33429
|
-
}, _vm
|
|
33445
|
+
}, _vm.listenersWithoutChange), [_c("Checkbox", {
|
|
33430
33446
|
attrs: {
|
|
33431
33447
|
checked: _vm.checked,
|
|
33432
33448
|
disabled: _vm.disabled
|
|
@@ -33541,7 +33557,7 @@ var __vue_render__$i = function () {
|
|
|
33541
33557
|
on: {
|
|
33542
33558
|
click: _vm.handleClick
|
|
33543
33559
|
}
|
|
33544
|
-
}, _vm
|
|
33560
|
+
}, _vm.listenersWithoutChange), [_c("RqSwitch", {
|
|
33545
33561
|
attrs: {
|
|
33546
33562
|
checked: _vm.checked,
|
|
33547
33563
|
disabled: _vm.disabled
|
|
@@ -33646,7 +33662,7 @@ var __vue_render__$h = function () {
|
|
|
33646
33662
|
on: {
|
|
33647
33663
|
click: _vm.handleClick
|
|
33648
33664
|
}
|
|
33649
|
-
}, _vm
|
|
33665
|
+
}, _vm.listenersWithoutChange), [_c("div", {
|
|
33650
33666
|
staticClass: "rq-rich-switch-group__aligner"
|
|
33651
33667
|
}, [_c("RqSwitch", {
|
|
33652
33668
|
attrs: {
|
|
@@ -34614,6 +34630,13 @@ const selectionBarVariants = cva('rq-selection-bar', {
|
|
|
34614
34630
|
//
|
|
34615
34631
|
//
|
|
34616
34632
|
//
|
|
34633
|
+
//
|
|
34634
|
+
//
|
|
34635
|
+
//
|
|
34636
|
+
//
|
|
34637
|
+
//
|
|
34638
|
+
//
|
|
34639
|
+
//
|
|
34617
34640
|
|
|
34618
34641
|
var script$b = {
|
|
34619
34642
|
name: 'SelectionBar',
|
|
@@ -34636,6 +34659,10 @@ var script$b = {
|
|
|
34636
34659
|
clearLabel: {
|
|
34637
34660
|
type: String,
|
|
34638
34661
|
default: 'Limpiar selección'
|
|
34662
|
+
},
|
|
34663
|
+
loading: {
|
|
34664
|
+
type: Boolean,
|
|
34665
|
+
default: false
|
|
34639
34666
|
}
|
|
34640
34667
|
},
|
|
34641
34668
|
computed: {
|
|
@@ -34676,7 +34703,9 @@ var __vue_render__$b = function () {
|
|
|
34676
34703
|
attrs: {
|
|
34677
34704
|
variant: "secondary",
|
|
34678
34705
|
size: "md",
|
|
34679
|
-
"icon-right": "Trash2"
|
|
34706
|
+
"icon-right": "Trash2",
|
|
34707
|
+
loading: _vm.loading,
|
|
34708
|
+
disabled: _vm.loading
|
|
34680
34709
|
},
|
|
34681
34710
|
on: {
|
|
34682
34711
|
click: function ($event) {
|
|
@@ -39843,6 +39872,8 @@ const dataTableVariants = cva('rq-data-table', {
|
|
|
39843
39872
|
//
|
|
39844
39873
|
//
|
|
39845
39874
|
//
|
|
39875
|
+
//
|
|
39876
|
+
//
|
|
39846
39877
|
|
|
39847
39878
|
var script$3 = {
|
|
39848
39879
|
name: 'DataTable',
|
|
@@ -39910,6 +39941,10 @@ var script$3 = {
|
|
|
39910
39941
|
type: String,
|
|
39911
39942
|
default: null
|
|
39912
39943
|
},
|
|
39944
|
+
deleteLoading: {
|
|
39945
|
+
type: Boolean,
|
|
39946
|
+
default: false
|
|
39947
|
+
},
|
|
39913
39948
|
texts: {
|
|
39914
39949
|
type: Object,
|
|
39915
39950
|
default: () => ({})
|
|
@@ -39970,6 +40005,7 @@ var script$3 = {
|
|
|
39970
40005
|
},
|
|
39971
40006
|
mergedTexts() {
|
|
39972
40007
|
return {
|
|
40008
|
+
searchPlaceholder: 'Buscar...',
|
|
39973
40009
|
selectedCount: '{count} registros seleccionados',
|
|
39974
40010
|
clearSelection: 'Limpiar selección',
|
|
39975
40011
|
delete: 'Eliminar',
|
|
@@ -40014,7 +40050,8 @@ var __vue_render__$3 = function () {
|
|
|
40014
40050
|
}, [_vm.showSearch ? _c("SearchInput", {
|
|
40015
40051
|
staticClass: "rq-data-table__search-bar",
|
|
40016
40052
|
attrs: {
|
|
40017
|
-
value: _vm.searchText
|
|
40053
|
+
value: _vm.searchText,
|
|
40054
|
+
placeholder: _vm.mergedTexts.searchPlaceholder
|
|
40018
40055
|
},
|
|
40019
40056
|
on: {
|
|
40020
40057
|
input: function ($event) {
|
|
@@ -40033,7 +40070,8 @@ var __vue_render__$3 = function () {
|
|
|
40033
40070
|
count: _vm.selectedCount,
|
|
40034
40071
|
"delete-label": _vm.deleteLabel || _vm.mergedTexts.delete,
|
|
40035
40072
|
"selected-count-text": _vm.mergedTexts.selectedCount,
|
|
40036
|
-
"clear-label": _vm.mergedTexts.clearSelection
|
|
40073
|
+
"clear-label": _vm.mergedTexts.clearSelection,
|
|
40074
|
+
loading: _vm.deleteLoading
|
|
40037
40075
|
},
|
|
40038
40076
|
on: {
|
|
40039
40077
|
clear: _vm.onClearSelection,
|
package/dist/index.js
CHANGED
|
@@ -33247,6 +33247,22 @@ const groupMixin = {
|
|
|
33247
33247
|
default: false
|
|
33248
33248
|
}
|
|
33249
33249
|
},
|
|
33250
|
+
computed: {
|
|
33251
|
+
// `change` se saca de los listeners que se reenvían a la raíz, igual que
|
|
33252
|
+
// en el atom Checkbox. Estos grupos emiten 'change' Y montan un control
|
|
33253
|
+
// que dispara un 'change' nativo del DOM: ese evento burbujea hasta la
|
|
33254
|
+
// raíz y, si el listener del consumidor sigue enganchado ahí, se ejecuta
|
|
33255
|
+
// dos veces por un solo click (una con el booleano del componente, otra
|
|
33256
|
+
// con el Event nativo). En un consumidor que togglea, los dos disparos se
|
|
33257
|
+
// anulan: el control no cambia de estado pero la acción corre igual.
|
|
33258
|
+
listenersWithoutChange() {
|
|
33259
|
+
const {
|
|
33260
|
+
change,
|
|
33261
|
+
...rest
|
|
33262
|
+
} = this.$listeners;
|
|
33263
|
+
return rest;
|
|
33264
|
+
}
|
|
33265
|
+
},
|
|
33250
33266
|
methods: {
|
|
33251
33267
|
handleClick() {
|
|
33252
33268
|
if (!this.disabled) this.$emit('change', !this.checked);
|
|
@@ -33315,7 +33331,7 @@ var __vue_render__$k = function () {
|
|
|
33315
33331
|
on: {
|
|
33316
33332
|
click: _vm.handleClick
|
|
33317
33333
|
}
|
|
33318
|
-
}, _vm
|
|
33334
|
+
}, _vm.listenersWithoutChange), [_c("Checkbox", {
|
|
33319
33335
|
attrs: {
|
|
33320
33336
|
checked: _vm.checked,
|
|
33321
33337
|
disabled: _vm.disabled
|
|
@@ -33428,7 +33444,7 @@ var __vue_render__$j = function () {
|
|
|
33428
33444
|
on: {
|
|
33429
33445
|
click: _vm.handleClick
|
|
33430
33446
|
}
|
|
33431
|
-
}, _vm
|
|
33447
|
+
}, _vm.listenersWithoutChange), [_c("Checkbox", {
|
|
33432
33448
|
attrs: {
|
|
33433
33449
|
checked: _vm.checked,
|
|
33434
33450
|
disabled: _vm.disabled
|
|
@@ -33543,7 +33559,7 @@ var __vue_render__$i = function () {
|
|
|
33543
33559
|
on: {
|
|
33544
33560
|
click: _vm.handleClick
|
|
33545
33561
|
}
|
|
33546
|
-
}, _vm
|
|
33562
|
+
}, _vm.listenersWithoutChange), [_c("RqSwitch", {
|
|
33547
33563
|
attrs: {
|
|
33548
33564
|
checked: _vm.checked,
|
|
33549
33565
|
disabled: _vm.disabled
|
|
@@ -33648,7 +33664,7 @@ var __vue_render__$h = function () {
|
|
|
33648
33664
|
on: {
|
|
33649
33665
|
click: _vm.handleClick
|
|
33650
33666
|
}
|
|
33651
|
-
}, _vm
|
|
33667
|
+
}, _vm.listenersWithoutChange), [_c("div", {
|
|
33652
33668
|
staticClass: "rq-rich-switch-group__aligner"
|
|
33653
33669
|
}, [_c("RqSwitch", {
|
|
33654
33670
|
attrs: {
|
|
@@ -34616,6 +34632,13 @@ const selectionBarVariants = cva('rq-selection-bar', {
|
|
|
34616
34632
|
//
|
|
34617
34633
|
//
|
|
34618
34634
|
//
|
|
34635
|
+
//
|
|
34636
|
+
//
|
|
34637
|
+
//
|
|
34638
|
+
//
|
|
34639
|
+
//
|
|
34640
|
+
//
|
|
34641
|
+
//
|
|
34619
34642
|
|
|
34620
34643
|
var script$b = {
|
|
34621
34644
|
name: 'SelectionBar',
|
|
@@ -34638,6 +34661,10 @@ var script$b = {
|
|
|
34638
34661
|
clearLabel: {
|
|
34639
34662
|
type: String,
|
|
34640
34663
|
default: 'Limpiar selección'
|
|
34664
|
+
},
|
|
34665
|
+
loading: {
|
|
34666
|
+
type: Boolean,
|
|
34667
|
+
default: false
|
|
34641
34668
|
}
|
|
34642
34669
|
},
|
|
34643
34670
|
computed: {
|
|
@@ -34678,7 +34705,9 @@ var __vue_render__$b = function () {
|
|
|
34678
34705
|
attrs: {
|
|
34679
34706
|
variant: "secondary",
|
|
34680
34707
|
size: "md",
|
|
34681
|
-
"icon-right": "Trash2"
|
|
34708
|
+
"icon-right": "Trash2",
|
|
34709
|
+
loading: _vm.loading,
|
|
34710
|
+
disabled: _vm.loading
|
|
34682
34711
|
},
|
|
34683
34712
|
on: {
|
|
34684
34713
|
click: function ($event) {
|
|
@@ -39845,6 +39874,8 @@ const dataTableVariants = cva('rq-data-table', {
|
|
|
39845
39874
|
//
|
|
39846
39875
|
//
|
|
39847
39876
|
//
|
|
39877
|
+
//
|
|
39878
|
+
//
|
|
39848
39879
|
|
|
39849
39880
|
var script$3 = {
|
|
39850
39881
|
name: 'DataTable',
|
|
@@ -39912,6 +39943,10 @@ var script$3 = {
|
|
|
39912
39943
|
type: String,
|
|
39913
39944
|
default: null
|
|
39914
39945
|
},
|
|
39946
|
+
deleteLoading: {
|
|
39947
|
+
type: Boolean,
|
|
39948
|
+
default: false
|
|
39949
|
+
},
|
|
39915
39950
|
texts: {
|
|
39916
39951
|
type: Object,
|
|
39917
39952
|
default: () => ({})
|
|
@@ -39972,6 +40007,7 @@ var script$3 = {
|
|
|
39972
40007
|
},
|
|
39973
40008
|
mergedTexts() {
|
|
39974
40009
|
return {
|
|
40010
|
+
searchPlaceholder: 'Buscar...',
|
|
39975
40011
|
selectedCount: '{count} registros seleccionados',
|
|
39976
40012
|
clearSelection: 'Limpiar selección',
|
|
39977
40013
|
delete: 'Eliminar',
|
|
@@ -40016,7 +40052,8 @@ var __vue_render__$3 = function () {
|
|
|
40016
40052
|
}, [_vm.showSearch ? _c("SearchInput", {
|
|
40017
40053
|
staticClass: "rq-data-table__search-bar",
|
|
40018
40054
|
attrs: {
|
|
40019
|
-
value: _vm.searchText
|
|
40055
|
+
value: _vm.searchText,
|
|
40056
|
+
placeholder: _vm.mergedTexts.searchPlaceholder
|
|
40020
40057
|
},
|
|
40021
40058
|
on: {
|
|
40022
40059
|
input: function ($event) {
|
|
@@ -40035,7 +40072,8 @@ var __vue_render__$3 = function () {
|
|
|
40035
40072
|
count: _vm.selectedCount,
|
|
40036
40073
|
"delete-label": _vm.deleteLabel || _vm.mergedTexts.delete,
|
|
40037
40074
|
"selected-count-text": _vm.mergedTexts.selectedCount,
|
|
40038
|
-
"clear-label": _vm.mergedTexts.clearSelection
|
|
40075
|
+
"clear-label": _vm.mergedTexts.clearSelection,
|
|
40076
|
+
loading: _vm.deleteLoading
|
|
40039
40077
|
},
|
|
40040
40078
|
on: {
|
|
40041
40079
|
clear: _vm.onClearSelection,
|