tsv2-library 1.0.61-alpha.93 → 1.0.61-alpha.99

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.
@@ -463,6 +463,11 @@ export interface TSDataTableProps {
463
463
  * Total disabled rows in table (used for synchronizing with bulk action button)
464
464
  */
465
465
  totalDisabledRows?: number;
466
+ /**
467
+ * A function that takes the row data as a parameter and returns a string to apply a particular class for the row.
468
+ * The return value is added to the row's :classes array (see Vue.js class bindings).
469
+ */
470
+ rowClass?: (data: any) => string | object | undefined;
466
471
  }
467
472
 
468
473
  export type TSDataTableEmits = {
@@ -143,6 +143,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
143
143
  type: NumberConstructor;
144
144
  required: false;
145
145
  };
146
+ rowClass: {
147
+ type: FunctionConstructor;
148
+ required: false;
149
+ };
146
150
  router: {
147
151
  type: ObjectConstructor;
148
152
  required: true;
@@ -296,6 +300,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
296
300
  type: NumberConstructor;
297
301
  required: false;
298
302
  };
303
+ rowClass: {
304
+ type: FunctionConstructor;
305
+ required: false;
306
+ };
299
307
  router: {
300
308
  type: ObjectConstructor;
301
309
  required: true;
@@ -51971,7 +51971,8 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
51971
51971
  scrollHeight: {},
51972
51972
  virtualScrollerOptions: {},
51973
51973
  globalFilterFields: {},
51974
- totalDisabledRows: {}
51974
+ totalDisabledRows: {},
51975
+ rowClass: { type: Function, default: void 0 }
51975
51976
  },
51976
51977
  emits: ["toggleOption", "toggleChildrenOption", "selectData", "rowSelect", "page", "sort", "update:selectedData"],
51977
51978
  setup(__props, { emit: __emit }) {
@@ -52536,6 +52537,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
52536
52537
  lazy: props.lazy,
52537
52538
  loading: props.loading || loadingTable.value,
52538
52539
  paginator: props.usePaginator,
52540
+ "row-class": props.rowClass,
52539
52541
  rows: _ctx.usePaginator ? props.rows ?? 10 : void 0,
52540
52542
  "rows-per-page-options": rowsPerPageOptions,
52541
52543
  "scroll-height": _ctx.scrollHeight,
@@ -52788,7 +52790,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
52788
52790
  ]),
52789
52791
  key: "0"
52790
52792
  } : void 0
52791
- ]), 1032, ["id", "expanded-rows", "filters", "selection", "data-key", "disable-paginator", "global-filter-fields", "lazy", "loading", "paginator", "rows", "scroll-height", "select-all", "selection-mode", "total-records", "value", "virtual-scroller-options"])),
52793
+ ]), 1032, ["id", "expanded-rows", "filters", "selection", "data-key", "disable-paginator", "global-filter-fields", "lazy", "loading", "paginator", "row-class", "rows", "scroll-height", "select-all", "selection-mode", "total-records", "value", "virtual-scroller-options"])),
52792
52794
  createVNode(unref(script$12), {
52793
52795
  id: "single-action-menu",
52794
52796
  ref_key: "optionMenu",
@@ -66717,6 +66719,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
66717
66719
  virtualScrollerOptions: {},
66718
66720
  globalFilterFields: {},
66719
66721
  totalDisabledRows: {},
66722
+ rowClass: { type: Function },
66720
66723
  router: {},
66721
66724
  reason: {}
66722
66725
  },