monobill-mintui 0.6.657 → 0.6.659

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.
@@ -207,9 +207,8 @@ declare class MintResourceTable extends HTMLElement {
207
207
  private _fixedControls;
208
208
  private _virtualRowHeightPx;
209
209
  /**
210
- * Virtual spacers and fixed `<tr>` / `<td>` heights use this value. It must be at least the
211
- * rendered row height or content is clipped (`overflow:hidden`) and scroll range is wrong.
212
- * Mobile list rows and desktop thumbnail rows are taller than the default 48px floor.
210
+ * Estimate used to size virtual spacers and unloaded placeholder rows. Rendered data rows
211
+ * keep their natural content height so longer labels and metadata are never clipped.
213
212
  */
214
213
  private _virtualRowHeightPxForSync;
215
214
  private _virtualMaxHeightCss;
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceTable.d.ts","sourceRoot":"","sources":["../../../src/components/resource-table/ResourceTable.ts"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAA;AACvB,OAAO,gBAAgB,CAAA;AACvB,OAAO,iBAAiB,CAAA;AACxB,OAAO,kBAAkB,CAAA;AACzB,OAAO,eAAe,CAAA;AACtB,OAAO,2BAA2B,CAAA;AAClC,OAAO,0BAA0B,CAAA;AACjC,OAAO,2BAA2B,CAAA;AAClC,OAAO,wBAAwB,CAAA;AAC/B,OAAO,0BAA0B,CAAA;AACjC,OAAO,sBAAsB,CAAA;AAC7B,OAAO,kBAAkB,CAAA;AAEzB,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;IACpC,MAAM,CAAC,EA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6B;IAyBrC,OAAO,CAAC,WAAW;IAyEnB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,gBAAgB;IAqExB,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,cAAc;IA2CtB,OAAO,CAAC,iBAAiB;IA4CzB,OAAO,CAAC,gBAAgB;IAiIxB,OAAO,CAAC,iBAAiB;IA8IzB,OAAO,CAAC,SAAS;IAyBjB,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,YAAY;IAmCpB,OAAO,CAAC,SAAS;IAiBjB,OAAO,CAAC,WAAW;IA8BnB,mGAAmG;IACnG,OAAO,CAAC,sBAAsB;IAW9B;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IA+CxB,MAAM,IAAI,IAAI;IAyRd,OAAO,CAAC,sBAAsB;IA+C9B,OAAO,CAAC,0BAA0B;IA+BlC,OAAO,CAAC,0BAA0B;IA8BlC,OAAO,CAAC,qBAAqB;IA8E7B,OAAO,CAAC,WAAW;IAMnB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAYvB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAmBxB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAWzB;AAMD,eAAe,iBAAiB,CAAA"}
@@ -221,7 +221,7 @@ var n = {
221
221
  return this._configuration;
222
222
  }
223
223
  set configuration(e) {
224
- e && typeof e == "object" && !Array.isArray(e) ? (this._configuration = e, this._tableId = this._configuration.id || `mint-resource-table-${Date.now()}`, this._perPage = this._configuration.perPage || 15, this._type = typeof this._configuration.data == "string" ? "ajax" : "provided", this._loaded = !1, this._currentPage = 1, this._offset = 0, this._type === "provided" && Array.isArray(this._configuration.data) && (this._rows = [...this._configuration.data], this._totalRows = this._configuration.data.length), this._initializeColumns(), this.isConnected && this.render()) : e == null ? this._configuration = null : this._parseConfiguration();
224
+ e && typeof e == "object" && !Array.isArray(e) ? (this._configuration = e, this._tableId = this._configuration.id || this._tableId || `mint-resource-table-${Date.now()}`, this._perPage = this._configuration.perPage || 15, this._type = typeof this._configuration.data == "string" ? "ajax" : "provided", this._loaded = !1, this._currentPage = 1, this._offset = 0, this._loadPageFromUrl(), this._type === "provided" && Array.isArray(this._configuration.data) && (this._rows = [...this._configuration.data], this._totalRows = this._configuration.data.length), this._initializeColumns(), this.isConnected && this.render()) : e == null ? this._configuration = null : this._parseConfiguration();
225
225
  }
226
226
  connectedCallback() {
227
227
  this.classList.add("box-border", "m-0", "p-0", "border-0", "align-baseline", "block", "w-full"), this._utilityClassObserver = new MutationObserver(() => this._replaceUtilityClasses()), this._utilityClassObserver.observe(this, {
@@ -242,7 +242,7 @@ var n = {
242
242
  }
243
243
  setData(e) {
244
244
  if (this._configuration) {
245
- if (this._configuration.data = e, this._type = typeof e == "string" ? "ajax" : "provided", this._currentPage = 1, this._offset = 0, this._fetchError = null, this._searching = !1, this._loadingPage = null, this._sortTimeoutId &&= (clearTimeout(this._sortTimeoutId), null), this._searchTimeoutId &&= (clearTimeout(this._searchTimeoutId), null), this._virtualScrollActive() && (this._virtualRowCache.clear(), this._virtualInvalidate()), this._type === "ajax") {
245
+ if (this._configuration.data = e, this._type = typeof e == "string" ? "ajax" : "provided", this._currentPage = 1, this._offset = 0, this._updatePageInUrl(1), this._fetchError = null, this._searching = !1, this._loadingPage = null, this._sortTimeoutId &&= (clearTimeout(this._sortTimeoutId), null), this._searchTimeoutId &&= (clearTimeout(this._searchTimeoutId), null), this._virtualScrollActive() && (this._virtualRowCache.clear(), this._virtualInvalidate()), this._type === "ajax") {
246
246
  this._rows = [], this._totalRows = 0, this._lastPage = 0, this._loaded = !1, this._fetching = !1, this._loading = !1, this._fetchData(void 0, !0, this._perPage, 0);
247
247
  return;
248
248
  }
@@ -256,7 +256,7 @@ var n = {
256
256
  return;
257
257
  }
258
258
  try {
259
- this._configuration = JSON.parse(e), this._tableId = this._configuration.id || `mint-resource-table-${Date.now()}`, this._perPage = this._configuration.perPage || 15, this._type = typeof this._configuration.data == "string" ? "ajax" : "provided", this._loaded = !1, this._currentPage = this._getPageFromUrl() || 1, this._offset = (this._currentPage - 1) * this._perPage, this._type === "provided" && Array.isArray(this._configuration.data) && (this._rows = [...this._configuration.data], this._totalRows = this._configuration.data.length), this._initializeColumns();
259
+ this._configuration = JSON.parse(e), this._tableId = this._configuration.id || this._tableId || `mint-resource-table-${Date.now()}`, this._perPage = this._configuration.perPage || 15, this._type = typeof this._configuration.data == "string" ? "ajax" : "provided", this._loaded = !1, this._currentPage = this._getPageFromUrl() || 1, this._offset = (this._currentPage - 1) * this._perPage, this._type === "provided" && Array.isArray(this._configuration.data) && (this._rows = [...this._configuration.data], this._totalRows = this._configuration.data.length), this._initializeColumns();
260
260
  } catch (e) {
261
261
  console.error("mint-resource-table: Invalid configuration JSON", e);
262
262
  }
@@ -437,7 +437,7 @@ var n = {
437
437
  let n = this._thumbnailMobilePx(e);
438
438
  return Math.max(t, n + 36);
439
439
  }
440
- return Math.max(t, 80);
440
+ return Math.max(t, 64);
441
441
  }
442
442
  let n = this._mobileThumbnailColumn();
443
443
  if (n) {
@@ -657,34 +657,32 @@ var n = {
657
657
  else typeof e.format == "function" ? a += this._escapeHtml(e.format(this, t)) : e.data && (a += this._escapeHtml(String(t[e.data] || "")));
658
658
  return r === "table" && e.thumbnail && a && !e.actions && !e.action ? this._wrapThumbnailDesktopBox(a, e) : a;
659
659
  }
660
- _buildMobileListItemHtml(e, t, n, r = !1) {
660
+ _buildMobileListItemHtml(e, t, n = !1) {
661
661
  if (!this._configuration) return "";
662
- let i = t, a = typeof this._configuration.onRowClick == "function", o = this._mobileThumbnailColumn(), s = this._mobilePrimaryColumn(), c = this._mobileActionsDropdownColumn(), l = o ? this._buildTableCellInnerHtml(o, e, i, "mobile") : "", u = s ? this._buildTableCellInnerHtml(s, e, i, "mobile") : "", d = c ? this._buildTableCellInnerHtml(c, e, i, "mobile") : "", f = [], p = this._configuration.mobileShowLabels === !0;
662
+ let r = t, i = typeof this._configuration.onRowClick == "function", a = this._mobileThumbnailColumn(), o = this._mobilePrimaryColumn(), s = this._mobileActionsDropdownColumn(), c = a ? this._buildTableCellInnerHtml(a, e, r, "mobile") : "", l = o ? this._buildTableCellInnerHtml(o, e, r, "mobile") : "", u = s ? this._buildTableCellInnerHtml(s, e, r, "mobile") : "", d = [], f = this._configuration.mobileShowLabels === !0;
663
663
  for (let t of this._configuration.columns) {
664
- if (t.hidden || o && t === o || s && t === s || c && t === c) continue;
664
+ if (t.hidden || a && t === a || o && t === o || s && t === s) continue;
665
665
  let n = this._columnPlainSummaryText(t, e);
666
- if (n) if (p) {
666
+ if (n) if (f) {
667
667
  let e = this._stripHtml(String(t.label || "")).trim();
668
- e ? f.push(`${this._escapeHtml(e)}: ${this._escapeHtml(n)}`) : f.push(this._escapeHtml(n));
669
- } else f.push(this._escapeHtml(n));
668
+ e ? d.push(`${this._escapeHtml(e)}: ${this._escapeHtml(n)}`) : d.push(this._escapeHtml(n));
669
+ } else d.push(this._escapeHtml(n));
670
670
  }
671
- let m = f.join("<span class=\"text-gray-300 dark:text-gray-600\" aria-hidden=\"true\"> · </span>"), h = [
671
+ let p = d.join("<span class=\"text-gray-300 dark:text-gray-600\" aria-hidden=\"true\"> · </span>"), m = [
672
672
  "list-none",
673
673
  "mint-resource-table-mobile-row",
674
- ...r ? [] : [
674
+ ...n ? [] : [
675
675
  "border-b",
676
676
  "border-gray-200",
677
677
  "dark:border-mint-divider"
678
678
  ],
679
- a ? "cursor-pointer" : ""
680
- ].filter(Boolean).join(" "), g = `<div class="flex items-center gap-3 py-3 pr-4${o ? " pl-0" : " pl-4"}">`;
681
- if (o) {
682
- let e = this._thumbnailMobilePx(o), t = `width:${e}px;height:${e}px;min-width:${e}px;min-height:${e}px`;
683
- g += `<div class="flex shrink-0 items-stretch overflow-hidden rounded-md border border-gray-200 bg-gray-100 p-0 dark:border-mint-divider dark:bg-mint-hover [&>*]:m-0 [&>*]:min-h-0 [&>*]:min-w-0 [&>*]:w-full [&>*]:max-w-full [&>*]:p-0 [&>span]:flex [&>span]:h-full [&>span]:w-full [&>span]:min-h-0 [&>span]:min-w-0 [&>span]:items-stretch [&>span]:justify-stretch [&_img]:!m-0 [&_img]:!box-border [&_img]:!block [&_img]:!h-full [&_img]:!w-full [&_img]:!min-h-0 [&_img]:!min-w-0 [&_img]:!max-h-full [&_img]:!max-w-full [&_img]:!border-0 [&_img]:!p-0 [&_img]:!rounded-none [&_img]:!object-cover [&_img]:!object-center" style="${t}">${l}</div>`;
679
+ i ? "cursor-pointer" : ""
680
+ ].filter(Boolean).join(" "), h = `<div class="flex items-center gap-3 py-3 pr-4${a ? " pl-0" : " pl-4"}">`;
681
+ if (a) {
682
+ let e = this._thumbnailMobilePx(a), t = `width:${e}px;height:${e}px;min-width:${e}px;min-height:${e}px`;
683
+ h += `<div class="flex shrink-0 items-stretch overflow-hidden rounded-md border border-gray-200 bg-gray-100 p-0 dark:border-mint-divider dark:bg-mint-hover [&>*]:m-0 [&>*]:min-h-0 [&>*]:min-w-0 [&>*]:w-full [&>*]:max-w-full [&>*]:p-0 [&>span]:flex [&>span]:h-full [&>span]:w-full [&>span]:min-h-0 [&>span]:min-w-0 [&>span]:items-stretch [&>span]:justify-stretch [&_img]:!m-0 [&_img]:!box-border [&_img]:!block [&_img]:!h-full [&_img]:!w-full [&_img]:!min-h-0 [&_img]:!min-w-0 [&_img]:!max-h-full [&_img]:!max-w-full [&_img]:!border-0 [&_img]:!p-0 [&_img]:!rounded-none [&_img]:!object-cover [&_img]:!object-center" style="${t}">${c}</div>`;
684
684
  }
685
- g += "<div class=\"flex min-w-0 flex-1 flex-col justify-center gap-1 mint-resource-table-mobile-content\">", g += "<div class=\"flex items-start justify-between gap-2 mint-resource-table-mobile-primary-row\">", g += `<div class="min-w-0 text-sm font-semibold leading-snug text-gray-900 dark:text-white mint-resource-table-mobile-primary">${u}</div>`, d && (g += `<div class="shrink-0 -mr-1 mint-resource-table-mobile-actions">${d}</div>`), g += "</div>", m && (g += `<div class="text-xs font-normal leading-snug text-gray-500 dark:text-gray-400 mint-resource-table-mobile-meta">${m}</div>`), g += "</div></div>";
686
- let _ = typeof n == "number" && n > 0 ? ` style="box-sizing:border-box;min-height:${n}px;max-height:${n}px;height:${n}px;overflow:hidden"` : "";
687
- return `<li data-row-index="${i}" ${a ? "data-row-clickable=\"true\" " : ""}class="${h}"${_}>${g}</li>`;
685
+ return h += "<div class=\"flex min-w-0 flex-1 flex-col justify-center gap-1 mint-resource-table-mobile-content\">", h += "<div class=\"flex items-start justify-between gap-2 mint-resource-table-mobile-primary-row\">", h += `<div class="min-w-0 text-sm font-semibold leading-snug text-gray-900 dark:text-white mint-resource-table-mobile-primary">${l}</div>`, u && (h += `<div class="shrink-0 -mr-1 mint-resource-table-mobile-actions">${u}</div>`), h += "</div>", p && (h += `<div class="text-xs font-normal leading-snug text-gray-500 dark:text-gray-400 mint-resource-table-mobile-meta">${p}</div>`), h += "</div></div>", `<li data-row-index="${r}" ${i ? "data-row-clickable=\"true\" " : ""}class="${m}">${h}</li>`;
688
686
  }
689
687
  _buildMobileListPlaceholderLi(e, t, n = !1) {
690
688
  let r = this._mobileThumbnailColumn(), i = r ? this._thumbnailMobilePx(r) : 56, a = `width:${i}px;height:${i}px;min-width:${i}px;min-height:${i}px`;
@@ -705,14 +703,14 @@ var n = {
705
703
  i === "px" ? s = ` style="width:${r}px;min-width:0"` : i === "lit" ? s = ` style="width:${this._escapeHtml(r)};min-width:0"` : a && (s = ` style="${a}"`), o += `<col${s} />`;
706
704
  }), o += "</colgroup>", o;
707
705
  }
708
- _buildDataRowHtml(e, t, n, r = !1) {
706
+ _buildDataRowHtml(e, t, n = !1) {
709
707
  if (!this._configuration) return "";
710
- let i = t, a = n, o = `box-sizing:border-box;min-height:${a}px;max-height:${a}px;height:${a}px;overflow:hidden`, s = "", c = typeof this._configuration.onRowClick == "function", l = c ? "cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800" : "", u = c ? " data-row-clickable=\"true\"" : "", d = l ? ` class="${l}"` : "";
711
- return s += `<tr data-row-index="${i}"${r ? " data-mint-rt-last-row=\"\"" : ""}${u}${d} style="${o}">`, this._configuration.columns.forEach((t) => {
708
+ let r = t, i = "", a = typeof this._configuration.onRowClick == "function", o = a ? "cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800" : "", s = a ? " data-row-clickable=\"true\"" : "", c = o ? ` class="${o}"` : "";
709
+ return i += `<tr data-row-index="${r}"${n ? " data-mint-rt-last-row=\"\"" : ""}${s}${c}>`, this._configuration.columns.forEach((t) => {
712
710
  if (t.hidden) return;
713
- let n = !t.show || t.show(this, e), r = `${this._getStyle(t)}box-sizing:border-box;max-height:${a}px;overflow:hidden;vertical-align:middle;`;
714
- s += `<td style="${r}" class="${this._getClasses(t, !0)}">`, s += n ? this._buildTableCellInnerHtml(t, e, i) : "", s += "</td>";
715
- }), s += "</tr>", s;
711
+ let n = !t.show || t.show(this, e), a = `${this._getStyle(t)}box-sizing:border-box;vertical-align:middle;`;
712
+ i += `<td style="${a}" class="${this._getClasses(t, !0)}">`, i += n ? this._buildTableCellInnerHtml(t, e, r) : "", i += "</td>";
713
+ }), i += "</tr>", i;
716
714
  }
717
715
  _getVirtualRowCount() {
718
716
  return !this._virtualScrollActive() || !this._configuration ? 0 : this._type === "provided" ? this._getAllFilteredRowsSorted().length : this._type === "ajax" ? this._totalRows : 0;
@@ -793,14 +791,14 @@ var n = {
793
791
  g += `<li aria-hidden="true" class="pointer-events-none m-0 block list-none border-0 p-0" style="height:${m}px"></li>`;
794
792
  for (let e = d; e < f; e++) {
795
793
  let t = this._getVirtualRowAt(e), n = i > 0 && e === i - 1;
796
- t ? g += this._buildMobileListItemHtml(t, e, a, n) : g += this._buildMobileListPlaceholderLi(e, a, n);
794
+ t ? g += this._buildMobileListItemHtml(t, e, n) : g += this._buildMobileListPlaceholderLi(e, a, n);
797
795
  }
798
796
  g += `<li aria-hidden="true" class="pointer-events-none m-0 block list-none border-0 p-0" style="height:${h}px"></li>`;
799
797
  } else {
800
798
  g += `<tr data-mint-rt-spacer="top" aria-hidden="true"><td colspan="${o}" style="height:${m}px;padding:0;border:0;line-height:0;font-size:0"></td></tr>`;
801
799
  for (let e = d; e < f; e++) {
802
800
  let t = this._getVirtualRowAt(e), n = i > 0 && e === i - 1;
803
- t ? g += this._buildDataRowHtml(t, e, a, n) : g += this._buildVirtualPlaceholderRowHtml(e, a, n);
801
+ t ? g += this._buildDataRowHtml(t, e, n) : g += this._buildVirtualPlaceholderRowHtml(e, a, n);
804
802
  }
805
803
  g += `<tr data-mint-rt-spacer="bottom" aria-hidden="true"><td colspan="${o}" style="height:${h}px;padding:0;border:0;line-height:0;font-size:0"></td></tr>`;
806
804
  }
@@ -890,11 +888,11 @@ var n = {
890
888
  if (this._sortTimeoutId !== null && (clearTimeout(this._sortTimeoutId), this._sortTimeoutId = null), this._sorting = !0, this._sortingColumnData = t.toLowerCase(), this._updateSortIcons(), this._type === "ajax") this._sortTimeoutId = window.setTimeout(() => {
891
889
  if (this._sortTimeoutId = null, !this._configuration || !t || !e.sortable) return;
892
890
  let n = this._configuration.sort || "asc";
893
- this._configuration.sortBy?.toLowerCase() === t.toLowerCase() && (n = n === "desc" ? "asc" : "desc"), this._configuration.sort = n, this._configuration.sortBy = t, this._updateSortIcons(), this._offset = 0, this._currentPage = 1, this._fetching = !1, this._loading = !1, this._fetchData(void 0, !1, this._perPage, 0);
891
+ this._configuration.sortBy?.toLowerCase() === t.toLowerCase() && (n = n === "desc" ? "asc" : "desc"), this._configuration.sort = n, this._configuration.sortBy = t, this._updateSortIcons(), this._offset = 0, this._currentPage = 1, this._updatePageInUrl(1), this._fetching = !1, this._loading = !1, this._fetchData(void 0, !1, this._perPage, 0);
894
892
  }, 10);
895
893
  else {
896
894
  let e = this._configuration.sort || "asc";
897
- this._configuration.sortBy?.toLowerCase() === t.toLowerCase() && (e = e === "desc" ? "asc" : "desc"), this._configuration.sort = e, this._configuration.sortBy = t, this._currentPage = 1, this._sorting = !1, this._sortingColumnData = null, this._updateSortIcons(), this.render(), this._virtualScrollActive() && queueMicrotask(() => this._scrollVirtualTableTopIntoView());
895
+ this._configuration.sortBy?.toLowerCase() === t.toLowerCase() && (e = e === "desc" ? "asc" : "desc"), this._configuration.sort = e, this._configuration.sortBy = t, this._currentPage = 1, this._updatePageInUrl(1), this._sorting = !1, this._sortingColumnData = null, this._updateSortIcons(), this.render(), this._virtualScrollActive() && queueMicrotask(() => this._scrollVirtualTableTopIntoView());
898
896
  }
899
897
  }
900
898
  _getSortClass(e) {
@@ -930,8 +928,8 @@ var n = {
930
928
  }
931
929
  _showFetchingState() {}
932
930
  _triggerSearch() {
933
- this._searchTimeoutId && clearTimeout(this._searchTimeoutId), this._searching = !0, this._type === "ajax" && this._updateSearchIcon(), this._type !== "ajax" && (this._currentPage = 1), this._updateTableBody(), this._type !== "ajax" && this._updatePagination(), this._searchTimeoutId = window.setTimeout(() => {
934
- this._type === "ajax" ? (this._offset = 0, this._fetchData(void 0, !1, this._perPage, 0)) : (this._searching = !1, this._virtualScrollActive() && queueMicrotask(() => this._scrollVirtualTableTopIntoView()));
931
+ this._searchTimeoutId && clearTimeout(this._searchTimeoutId), this._searching = !0, this._type === "ajax" && this._updateSearchIcon(), this._type !== "ajax" && (this._currentPage = 1, this._updatePageInUrl(1)), this._updateTableBody(), this._type !== "ajax" && this._updatePagination(), this._searchTimeoutId = window.setTimeout(() => {
932
+ this._type === "ajax" ? (this._offset = 0, this._currentPage = 1, this._updatePageInUrl(1), this._fetchData(void 0, !1, this._perPage, 0)) : (this._searching = !1, this._virtualScrollActive() && queueMicrotask(() => this._scrollVirtualTableTopIntoView()));
935
933
  }, 400);
936
934
  }
937
935
  _updateSearchIcon() {
@@ -985,7 +983,7 @@ var n = {
985
983
  let i = this.querySelector(`#search-${this._tableId}`), a = document.activeElement === i || i?.querySelector("input") === document.activeElement, o = this._search, s = "", c = "";
986
984
  if ((this._fetching || this._loading) && !this._loaded && !this._sorting) return;
987
985
  n.forEach((e, t) => {
988
- c += this._buildMobileListItemHtml(e, t, void 0, t === n.length - 1);
986
+ c += this._buildMobileListItemHtml(e, t, t === n.length - 1);
989
987
  let r = typeof this._configuration.onRowClick == "function", i = r ? "cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800" : "";
990
988
  s += `<tr data-row-index="${t}" ${r ? "data-row-clickable=\"true\"" : ""}${i ? ` class="${i}"` : ""}>`, this._configuration.columns.forEach((n) => {
991
989
  if (n.hidden) return;
@@ -1186,7 +1184,7 @@ var n = {
1186
1184
  i += `<div id="mint-rt-vscroll-${this._tableId}" class="overflow-y-auto overflow-x-auto min-h-0 w-full" style="max-height: ${a}; scrollbar-gutter: stable; overscroll-behavior-x: contain; overscroll-behavior-y: none; overflow-anchor: none;">`, i += "<div class=\"hidden min-h-0 min-w-0 md:block\">", i += `<mint-table class="${l}"${c}>`, i += `<table id="${this._tableId}" class="w-full min-w-0 table-fixed">`, i += e, i += this._renderTheadHtml(!0, !0, !0, s);
1187
1185
  } else i += "<div class=\"hidden min-h-0 min-w-0 md:block\">", i += `<mint-table class="${l}"${c}>`, i += `<table id="${this._tableId}">`, e && (i += this._renderColgroupHtml()), i += this._renderTheadHtml(!0, !0, !!e, s);
1188
1186
  if (i += "<tbody" + (e ? ` data-mint-rt-tbody="${this._tableId}"` : "") + ">", !this._fetching && !this._loading && !r && !e && n.forEach((e, t) => {
1189
- d += this._buildMobileListItemHtml(e, t, void 0, t === n.length - 1);
1187
+ d += this._buildMobileListItemHtml(e, t, t === n.length - 1);
1190
1188
  let r = typeof this._configuration.onRowClick == "function", a = r ? "cursor-pointer hover:bg-gray-50 dark:hover:bg-mint-elevated" : "";
1191
1189
  i += `<tr data-row-index="${t}" ${r ? "data-row-clickable=\"true\"" : ""}${a ? ` class="${a}"` : ""}>`, this._configuration.columns.forEach((n) => {
1192
1190
  if (n.hidden) return;
@@ -1298,7 +1296,7 @@ var n = {
1298
1296
  _updatePageInUrl(e) {
1299
1297
  if (!this._tableId) return;
1300
1298
  let t = new URL(window.location.href), n = t.searchParams;
1301
- n.set(`mui.${this._tableId}`, e.toString()), e === 1 && n.set(`mui.${this._tableId}`, "1"), window.history.replaceState({}, "", t.toString());
1299
+ n.set(`mui.${this._tableId}`, e.toString()), e === 1 && n.set(`mui.${this._tableId}`, "1"), window.history.replaceState(window.history.state, "", t.toString());
1302
1300
  }
1303
1301
  _loadPageFromUrl() {
1304
1302
  if (!this._configuration || !this._tableId) return;