@regcheq/ui-vue-2 1.6.0 → 1.8.0

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.js CHANGED
@@ -32735,6 +32735,16 @@ var script$g = {
32735
32735
  type: String,
32736
32736
  default: 'default',
32737
32737
  validator: v => ['default', 'round'].includes(v)
32738
+ },
32739
+ // Escape hatch para casos puntuales que no cubren las variantes semánticas
32740
+ // (ej: un color dinámico que viene de datos). Pisan el color de la variante.
32741
+ bgColor: {
32742
+ type: String,
32743
+ default: null
32744
+ },
32745
+ textColor: {
32746
+ type: String,
32747
+ default: null
32738
32748
  }
32739
32749
  },
32740
32750
  computed: {
@@ -32743,6 +32753,12 @@ var script$g = {
32743
32753
  variant: this.variant,
32744
32754
  roundness: this.roundness
32745
32755
  });
32756
+ },
32757
+ inlineStyle() {
32758
+ const style = {};
32759
+ if (this.bgColor) style.backgroundColor = this.bgColor;
32760
+ if (this.textColor) style.color = this.textColor;
32761
+ return style;
32746
32762
  }
32747
32763
  }
32748
32764
  };
@@ -32756,7 +32772,8 @@ var __vue_render__$g = function () {
32756
32772
  var _h = _vm.$createElement;
32757
32773
  var _c = _vm._self._c || _h;
32758
32774
  return _c("span", _vm._g(_vm._b({
32759
- class: _vm.classes
32775
+ class: _vm.classes,
32776
+ style: _vm.inlineStyle
32760
32777
  }, "span", _vm.$attrs, false), _vm.$listeners), [_vm._t("left"), _vm._v(" "), _vm._t("default"), _vm._v(" "), _vm._t("right")], 2);
32761
32778
  };
32762
32779
  var __vue_staticRenderFns__$g = [];
@@ -34251,7 +34268,7 @@ var __vue_render__$5 = function () {
34251
34268
  }
34252
34269
  }, [_vm._v("\n Limpiar selección\n ")])]), _vm._v(" "), _c("Button", {
34253
34270
  attrs: {
34254
- variant: "primary",
34271
+ variant: "secondary",
34255
34272
  size: "md",
34256
34273
  "icon-right": "Trash2"
34257
34274
  },
@@ -37328,7 +37345,7 @@ function useTable(props, emit) {
37328
37345
  const left = columnPinning.value.left || [];
37329
37346
  if (!left.length) return {};
37330
37347
  const offsets = {};
37331
- let accumulated = props.selectable ? 40 : 0;
37348
+ let accumulated = (props.expandable ? props.expandColWidth || 40 : 0) + (props.selectable ? 40 : 0);
37332
37349
  left.forEach(key => {
37333
37350
  offsets[key] = accumulated;
37334
37351
  const col = props.columns.find(c => c.key === key);
@@ -37587,11 +37604,64 @@ function useTable(props, emit) {
37587
37604
  //
37588
37605
  //
37589
37606
  //
37607
+ //
37608
+ //
37609
+ //
37610
+ //
37611
+ //
37612
+ //
37613
+ //
37614
+ //
37615
+ //
37616
+ //
37617
+ //
37618
+ //
37619
+ //
37620
+ //
37621
+ //
37622
+ //
37623
+ //
37624
+ //
37625
+ //
37626
+ //
37627
+ //
37628
+ //
37629
+ //
37630
+ //
37631
+ //
37632
+ //
37633
+ //
37634
+ //
37635
+ //
37636
+ //
37637
+ //
37638
+ //
37639
+ //
37640
+ //
37641
+ //
37642
+ //
37643
+ //
37644
+ //
37645
+ //
37646
+ //
37647
+ //
37648
+ //
37649
+ //
37650
+ //
37651
+ //
37652
+ //
37653
+ //
37654
+ //
37655
+ //
37656
+ //
37657
+ //
37658
+ //
37590
37659
 
37591
37660
  var script$4 = {
37592
37661
  name: 'Table',
37593
37662
  components: {
37594
- Checkbox: __vue_component__$j
37663
+ Checkbox: __vue_component__$j,
37664
+ Tooltip: __vue_component__$f
37595
37665
  },
37596
37666
  props: {
37597
37667
  rows: {
@@ -37620,6 +37690,28 @@ var script$4 = {
37620
37690
  },
37621
37691
  maxHeight: {
37622
37692
  type: Number,
37693
+ default: 460
37694
+ },
37695
+ expandable: {
37696
+ type: Boolean,
37697
+ default: false
37698
+ },
37699
+ // Alto fijo (no máximo) del contenido expandido; con scroll interno si el
37700
+ // contenido no entra.
37701
+ expandedRowHeight: {
37702
+ type: Number,
37703
+ default: 265
37704
+ },
37705
+ // Ancho de la columna de expandir en px. Default 40 (solo el chevron);
37706
+ // subilo si usás el slot `expand-cell` para agregar contenido extra.
37707
+ expandColWidth: {
37708
+ type: Number,
37709
+ default: 40
37710
+ },
37711
+ // { title, subtitle } para el estado "sin datos". Si no se pasa, se usa
37712
+ // un fallback genérico — el texto específico de dominio vive en el consumidor.
37713
+ emptyState: {
37714
+ type: Object,
37623
37715
  default: null
37624
37716
  }
37625
37717
  },
@@ -37641,7 +37733,9 @@ var script$4 = {
37641
37733
  colKey: null,
37642
37734
  x: 0,
37643
37735
  y: 0
37644
- }
37736
+ },
37737
+ truncatedCells: {},
37738
+ expandedRowId: null
37645
37739
  };
37646
37740
  },
37647
37741
  computed: {
@@ -37653,6 +37747,23 @@ var script$4 = {
37653
37747
  },
37654
37748
  PinIcon() {
37655
37749
  return Pin;
37750
+ },
37751
+ ExpandIcon() {
37752
+ return ChevronRight;
37753
+ },
37754
+ fullColspan() {
37755
+ return this.columns.length + (this.selectable ? 1 : 0) + (this.expandable ? 1 : 0);
37756
+ },
37757
+ resolvedEmptyState() {
37758
+ return {
37759
+ title: this.emptyState?.title || 'Sin datos',
37760
+ subtitle: this.emptyState?.subtitle || ''
37761
+ };
37762
+ },
37763
+ // Offset sticky de la columna de selección: se corre a la derecha
37764
+ // del ancho de la columna de expandir, cuando ambas están activas
37765
+ selectColOffset() {
37766
+ return this.expandable ? this.expandColWidth : 0;
37656
37767
  }
37657
37768
  },
37658
37769
  methods: {
@@ -37690,6 +37801,13 @@ var script$4 = {
37690
37801
  };
37691
37802
  }
37692
37803
  },
37804
+ // Cierra el popover del chevron antes de arrastrar: su posición se calcula
37805
+ // una sola vez al abrirlo, y reordenar columnas la invalida (bug de
37806
+ // posicionamiento si quedaba abierto apuntando a la columna vieja).
37807
+ handleDragStart(columnKey) {
37808
+ this.closeAll();
37809
+ this.onDragStart(columnKey);
37810
+ },
37693
37811
  onChevronClick(columnKey, event) {
37694
37812
  this.contextMenu = {
37695
37813
  visible: false,
@@ -37703,12 +37821,19 @@ var script$4 = {
37703
37821
  }
37704
37822
  this.toggleChevron(columnKey);
37705
37823
  const th = event.currentTarget.closest('th');
37706
- const tableRect = this.$el.getBoundingClientRect();
37707
37824
  const thRect = th.getBoundingClientRect();
37825
+ // Coordenadas de viewport (no relativas a la tabla): el popover es
37826
+ // position:fixed para no quedar clippado por el overflow:clip de .rq-table
37708
37827
  this.chevronPopoverPos = {
37709
- top: thRect.bottom - tableRect.top + 4,
37710
- left: Math.max(100, thRect.left - tableRect.left + thRect.width / 2)
37828
+ top: thRect.bottom + 4,
37829
+ left: Math.max(100, thRect.left + thRect.width / 2)
37711
37830
  };
37831
+ this.$nextTick(() => {
37832
+ if (this.$refs.chevronPopover) {
37833
+ this._chevronPopoverEl = this.$refs.chevronPopover;
37834
+ document.body.appendChild(this._chevronPopoverEl);
37835
+ }
37836
+ });
37712
37837
  },
37713
37838
  openContextMenu(colKey, event) {
37714
37839
  this.closeChevron();
@@ -37730,6 +37855,61 @@ var script$4 = {
37730
37855
  x: 0,
37731
37856
  y: 0
37732
37857
  };
37858
+ },
37859
+ toggleExpand(rowId) {
37860
+ this.expandedRowId = this.expandedRowId === rowId ? null : rowId;
37861
+ this.$emit('update:expanded-row-id', this.expandedRowId);
37862
+ if (this.expandedRowId) {
37863
+ this.$nextTick(() => this.scrollExpandedIntoView());
37864
+ }
37865
+ },
37866
+ // Al expandir una fila, scrollea el contenedor propio de la tabla para
37867
+ // hacer visible el contenido desplegado (no toca el scroll de la página).
37868
+ scrollExpandedIntoView() {
37869
+ const scroll = this.$el.querySelector('.rq-table__scroll');
37870
+ const expanded = this.$el.querySelector('.rq-table__tr--expanded');
37871
+ if (!scroll || !expanded) return;
37872
+ const scrollRect = scroll.getBoundingClientRect();
37873
+ const expandedRect = expanded.getBoundingClientRect();
37874
+ const bottomDelta = expandedRect.bottom - scrollRect.bottom;
37875
+ if (bottomDelta > 0) {
37876
+ // no scrollear más allá de dejar el inicio del contenido visible
37877
+ const topDelta = expandedRect.top - scrollRect.top;
37878
+ scroll.scrollTo({
37879
+ top: scroll.scrollTop + Math.min(bottomDelta, topDelta),
37880
+ behavior: 'smooth'
37881
+ });
37882
+ }
37883
+ },
37884
+ cellKey(rowId, headerId) {
37885
+ return `${rowId}::${headerId}`;
37886
+ },
37887
+ isTruncated(rowId, headerId) {
37888
+ return !!this.truncatedCells[this.cellKey(rowId, headerId)];
37889
+ },
37890
+ // Compara scrollWidth vs clientWidth de cada celda de texto plano para
37891
+ // saber cuáles están recortadas por el ellipsis y solo a esas envolverlas
37892
+ // en Tooltip. Se dispara por watchers, nunca desde el hook `updated`,
37893
+ // para no re-medir en loop cuando truncatedCells cambia.
37894
+ measureTruncatedCells() {
37895
+ if (!this.$el) return;
37896
+ const els = this.$el.querySelectorAll('.rq-table__cell-text[data-cell-key]');
37897
+ const result = {};
37898
+ els.forEach(el => {
37899
+ result[el.dataset.cellKey] = el.scrollWidth > el.clientWidth;
37900
+ });
37901
+ this.truncatedCells = result;
37902
+ }
37903
+ },
37904
+ watch: {
37905
+ tableRows() {
37906
+ this.$nextTick(this.measureTruncatedCells);
37907
+ },
37908
+ columns: {
37909
+ handler() {
37910
+ this.$nextTick(this.measureTruncatedCells);
37911
+ },
37912
+ deep: true
37733
37913
  }
37734
37914
  },
37735
37915
  mounted() {
@@ -37737,12 +37917,28 @@ var script$4 = {
37737
37917
  if (e.key === 'Escape') this.closeAll();
37738
37918
  };
37739
37919
  this._onDocumentClick = () => this.closeAll();
37920
+ this._onResize = () => this.measureTruncatedCells();
37921
+ // El popover del chevron es position:fixed (coordenadas de viewport);
37922
+ // si cualquier ancestro scrollea (capture:true, scroll no burbujea),
37923
+ // se cierra en vez de quedar desalineado de su columna.
37924
+ this._onScroll = () => this.closeChevron();
37740
37925
  document.addEventListener('keydown', this._onKeydown);
37741
37926
  document.addEventListener('click', this._onDocumentClick);
37927
+ window.addEventListener('resize', this._onResize);
37928
+ window.addEventListener('scroll', this._onScroll, true);
37929
+ this.$nextTick(this.measureTruncatedCells);
37742
37930
  },
37743
37931
  beforeDestroy() {
37744
37932
  document.removeEventListener('keydown', this._onKeydown);
37745
37933
  document.removeEventListener('click', this._onDocumentClick);
37934
+ window.removeEventListener('resize', this._onResize);
37935
+ window.removeEventListener('scroll', this._onScroll, true);
37936
+ // El popover del chevron se mueve a document.body al abrirse (fuera del
37937
+ // árbol de la tabla); si el componente se destruye con el popover abierto,
37938
+ // destruir el root de la tabla no lo alcanza — hay que sacarlo a mano.
37939
+ if (this._chevronPopoverEl && this._chevronPopoverEl.parentNode) {
37940
+ this._chevronPopoverEl.parentNode.removeChild(this._chevronPopoverEl);
37941
+ }
37746
37942
  }
37747
37943
  };
37748
37944
 
@@ -37769,11 +37965,20 @@ var __vue_render__$4 = function () {
37769
37965
  return _c("tr", {
37770
37966
  key: headerGroup.id,
37771
37967
  staticClass: "rq-table__tr rq-table__tr--head"
37772
- }, [_vm.selectable ? _c("th", {
37773
- staticClass: "rq-table__th rq-table__th--select",
37968
+ }, [_vm.expandable ? _c("th", {
37969
+ staticClass: "rq-table__th rq-table__th--expand",
37774
37970
  style: {
37775
37971
  position: "sticky",
37776
37972
  left: 0,
37973
+ zIndex: 5,
37974
+ width: _vm.expandColWidth + "px",
37975
+ minWidth: _vm.expandColWidth + "px"
37976
+ }
37977
+ }) : _vm._e(), _vm._v(" "), _vm.selectable ? _c("th", {
37978
+ staticClass: "rq-table__th rq-table__th--select",
37979
+ style: {
37980
+ position: "sticky",
37981
+ left: _vm.selectColOffset + "px",
37777
37982
  zIndex: 5
37778
37983
  }
37779
37984
  }, [_c("Checkbox", {
@@ -37799,7 +38004,7 @@ var __vue_render__$4 = function () {
37799
38004
  },
37800
38005
  on: {
37801
38006
  dragstart: function ($event) {
37802
- return _vm.onDragStart(header.id);
38007
+ return _vm.handleDragStart(header.id);
37803
38008
  },
37804
38009
  dragover: function ($event) {
37805
38010
  $event.preventDefault();
@@ -37842,12 +38047,18 @@ var __vue_render__$4 = function () {
37842
38047
  }, [_c("td", {
37843
38048
  staticClass: "rq-table__td rq-table__td--empty",
37844
38049
  attrs: {
37845
- colspan: _vm.columns.length + (_vm.selectable ? 1 : 0)
38050
+ colspan: _vm.fullColspan
37846
38051
  }
37847
38052
  }, [_vm._t("empty", function () {
37848
- return [_c("span", [_vm._v("Sin datos")])];
38053
+ return [_c("div", {
38054
+ staticClass: "rq-table__empty-state"
38055
+ }, [_c("p", {
38056
+ staticClass: "rq-table__empty-title"
38057
+ }, [_vm._v(_vm._s(_vm.resolvedEmptyState.title))]), _vm._v(" "), _vm.resolvedEmptyState.subtitle ? _c("p", {
38058
+ staticClass: "rq-table__empty-subtitle"
38059
+ }, [_vm._v(_vm._s(_vm.resolvedEmptyState.subtitle))]) : _vm._e()])];
37849
38060
  })], 2)]) : _vm._e(), _vm._v(" "), _vm._l(_vm.tableRows, function (row) {
37850
- return _c("tr", {
38061
+ return [_c("tr", {
37851
38062
  key: row.id,
37852
38063
  staticClass: "rq-table__tr rq-table__tr--body",
37853
38064
  on: {
@@ -37855,11 +38066,43 @@ var __vue_render__$4 = function () {
37855
38066
  return _vm.$emit("row-click", row.original);
37856
38067
  }
37857
38068
  }
37858
- }, [_vm.selectable ? _c("td", {
37859
- staticClass: "rq-table__td rq-table__td--select",
38069
+ }, [_vm.expandable ? _c("td", {
38070
+ staticClass: "rq-table__td rq-table__td--expand",
37860
38071
  style: {
37861
38072
  position: "sticky",
37862
38073
  left: 0,
38074
+ zIndex: 2,
38075
+ width: _vm.expandColWidth + "px",
38076
+ minWidth: _vm.expandColWidth + "px"
38077
+ }
38078
+ }, [_c("div", {
38079
+ staticClass: "rq-table__expand-cell"
38080
+ }, [_c("button", {
38081
+ staticClass: "rq-table__expand-btn",
38082
+ class: {
38083
+ "rq-table__expand-btn--active": _vm.expandedRowId === row.id
38084
+ },
38085
+ attrs: {
38086
+ type: "button"
38087
+ },
38088
+ on: {
38089
+ click: function ($event) {
38090
+ $event.stopPropagation();
38091
+ return _vm.toggleExpand(row.id);
38092
+ }
38093
+ }
38094
+ }, [_c(_vm.ExpandIcon, {
38095
+ tag: "component",
38096
+ attrs: {
38097
+ size: 14
38098
+ }
38099
+ })], 1), _vm._v(" "), _vm._t("expand-cell", null, {
38100
+ row: row.original
38101
+ })], 2)]) : _vm._e(), _vm._v(" "), _vm.selectable ? _c("td", {
38102
+ staticClass: "rq-table__td rq-table__td--select",
38103
+ style: {
38104
+ position: "sticky",
38105
+ left: _vm.selectColOffset + "px",
37863
38106
  zIndex: 2
37864
38107
  },
37865
38108
  on: {
@@ -37885,12 +38128,42 @@ var __vue_render__$4 = function () {
37885
38128
  },
37886
38129
  style: _vm.getColStyle(header)
37887
38130
  }, [_vm._t("cell-" + header.id, function () {
37888
- return [_vm._v("\n " + _vm._s(row.getValue(header.id)) + "\n ")];
38131
+ return [_vm.isTruncated(row.id, header.id) ? _c("Tooltip", {
38132
+ staticClass: "rq-table__cell-tooltip",
38133
+ attrs: {
38134
+ text: String(row.getValue(header.id))
38135
+ }
38136
+ }, [_c("span", {
38137
+ staticClass: "rq-table__cell-text",
38138
+ attrs: {
38139
+ "data-cell-key": _vm.cellKey(row.id, header.id)
38140
+ }
38141
+ }, [_vm._v(_vm._s(row.getValue(header.id)))])]) : _c("span", {
38142
+ staticClass: "rq-table__cell-text",
38143
+ attrs: {
38144
+ "data-cell-key": _vm.cellKey(row.id, header.id)
38145
+ }
38146
+ }, [_vm._v(_vm._s(row.getValue(header.id)))])];
37889
38147
  }, {
37890
38148
  row: row.original,
37891
38149
  value: row.getValue(header.id)
37892
38150
  })], 2);
37893
- })], 2);
38151
+ })], 2), _vm._v(" "), _vm.expandable && _vm.expandedRowId === row.id ? _c("tr", {
38152
+ key: row.id + "-expanded",
38153
+ staticClass: "rq-table__tr rq-table__tr--expanded"
38154
+ }, [_c("td", {
38155
+ staticClass: "rq-table__td rq-table__td--expanded",
38156
+ attrs: {
38157
+ colspan: _vm.fullColspan
38158
+ }
38159
+ }, [_c("div", {
38160
+ staticClass: "rq-table__expanded-content",
38161
+ style: {
38162
+ height: _vm.expandedRowHeight + "px"
38163
+ }
38164
+ }, [_vm._t("expanded-row", null, {
38165
+ row: row.original
38166
+ })], 2)])]) : _vm._e()];
37894
38167
  })], 2)])]), _vm._v(" "), _vm.contextMenu.visible ? _c("div", {
37895
38168
  staticClass: "rq-table__context-menu",
37896
38169
  style: {
@@ -37916,6 +38189,7 @@ var __vue_render__$4 = function () {
37916
38189
  size: 14
37917
38190
  }
37918
38191
  }), _vm._v("\n " + _vm._s(_vm.contextMenu.colKey in _vm.pinnedLeftWidths ? "Desfijar columna" : "Fijar columna") + "\n ")], 1)]) : _vm._e(), _vm._v(" "), _vm.activeChevronKey ? _c("div", {
38192
+ ref: "chevronPopover",
37919
38193
  staticClass: "rq-table__chevron-popover",
37920
38194
  style: {
37921
38195
  top: _vm.chevronPopoverPos.top + "px",
@@ -38025,6 +38299,24 @@ const dataTableVariants = cva('rq-data-table', {
38025
38299
  //
38026
38300
  //
38027
38301
  //
38302
+ //
38303
+ //
38304
+ //
38305
+ //
38306
+ //
38307
+ //
38308
+ //
38309
+ //
38310
+ //
38311
+ //
38312
+ //
38313
+ //
38314
+ //
38315
+ //
38316
+ //
38317
+ //
38318
+ //
38319
+ //
38028
38320
 
38029
38321
  var script$3 = {
38030
38322
  name: 'DataTable',
@@ -38086,11 +38378,27 @@ var script$3 = {
38086
38378
  },
38087
38379
  maxHeight: {
38088
38380
  type: Number,
38089
- default: null
38381
+ default: 460
38090
38382
  },
38091
38383
  deleteLabel: {
38092
38384
  type: String,
38093
38385
  default: 'Eliminar'
38386
+ },
38387
+ expandable: {
38388
+ type: Boolean,
38389
+ default: false
38390
+ },
38391
+ expandedRowHeight: {
38392
+ type: Number,
38393
+ default: 265
38394
+ },
38395
+ expandColWidth: {
38396
+ type: Number,
38397
+ default: 40
38398
+ },
38399
+ emptyState: {
38400
+ type: Object,
38401
+ default: null
38094
38402
  }
38095
38403
  },
38096
38404
  data() {
@@ -38136,6 +38444,8 @@ var __vue_render__$3 = function () {
38136
38444
  var _c = _vm._self._c || _h;
38137
38445
  return _c("div", {
38138
38446
  class: _vm.classes
38447
+ }, [_vm.showSearch || _vm.$slots.actions ? _c("div", {
38448
+ staticClass: "rq-data-table__search-row"
38139
38449
  }, [_vm.showSearch ? _c("SearchInput", {
38140
38450
  staticClass: "rq-data-table__search-bar",
38141
38451
  attrs: {
@@ -38149,7 +38459,11 @@ var __vue_render__$3 = function () {
38149
38459
  return _vm.$emit("update:search", $event);
38150
38460
  }
38151
38461
  }
38152
- }) : _vm._e(), _vm._v(" "), _vm.selectable && _vm.selectedCount > 0 ? _c("SelectionBar", {
38462
+ }) : _vm._e(), _vm._v(" "), _vm.$slots.actions ? _c("div", {
38463
+ staticClass: "rq-data-table__actions"
38464
+ }, [_vm._t("actions")], 2) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.selectable ? _c("div", {
38465
+ staticClass: "rq-data-table__selection-slot"
38466
+ }, [_vm.selectedCount > 0 ? _c("SelectionBar", {
38153
38467
  attrs: {
38154
38468
  count: _vm.selectedCount,
38155
38469
  "delete-label": _vm.deleteLabel
@@ -38160,7 +38474,7 @@ var __vue_render__$3 = function () {
38160
38474
  return _vm.$emit("delete-selected", _vm.selectedRows);
38161
38475
  }
38162
38476
  }
38163
- }) : _vm._e(), _vm._v(" "), _c("Table", {
38477
+ }) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c("Table", {
38164
38478
  ref: "table",
38165
38479
  attrs: {
38166
38480
  columns: _vm.columns,
@@ -38169,7 +38483,11 @@ var __vue_render__$3 = function () {
38169
38483
  "pinned-columns": _vm.pinnedColumns,
38170
38484
  selectable: _vm.selectable,
38171
38485
  "row-id": _vm.rowId,
38172
- "max-height": _vm.maxHeight
38486
+ "max-height": _vm.maxHeight,
38487
+ expandable: _vm.expandable,
38488
+ "expanded-row-height": _vm.expandedRowHeight,
38489
+ "expand-col-width": _vm.expandColWidth,
38490
+ "empty-state": _vm.emptyState
38173
38491
  },
38174
38492
  on: {
38175
38493
  "row-click": function ($event) {
@@ -38181,6 +38499,9 @@ var __vue_render__$3 = function () {
38181
38499
  },
38182
38500
  "update:pinned-columns": function ($event) {
38183
38501
  return _vm.$emit("update:pinned-columns", $event);
38502
+ },
38503
+ "update:expanded-row-id": function ($event) {
38504
+ return _vm.$emit("update:expanded-row-id", $event);
38184
38505
  }
38185
38506
  },
38186
38507
  scopedSlots: _vm._u([_vm._l(_vm.columns, function (col) {
@@ -38204,6 +38525,16 @@ var __vue_render__$3 = function () {
38204
38525
  return [_vm._t("empty")];
38205
38526
  },
38206
38527
  proxy: true
38528
+ }, {
38529
+ key: "expanded-row",
38530
+ fn: function (slotProps) {
38531
+ return [_vm._t("expanded-row", null, null, slotProps)];
38532
+ }
38533
+ }, {
38534
+ key: "expand-cell",
38535
+ fn: function (slotProps) {
38536
+ return [_vm._t("expand-cell", null, null, slotProps)];
38537
+ }
38207
38538
  }], null, true)
38208
38539
  }), _vm._v(" "), _c("div", {
38209
38540
  staticClass: "rq-data-table__pagination"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regcheq/ui-vue-2",
3
- "version": "1.6.0",
3
+ "version": "1.8.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "files": [