monobill-mintui 0.6.714 → 0.6.715

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
@@ -10853,7 +10853,7 @@ var Jn = class extends HTMLElement {
10853
10853
  return e !== null && e !== "false";
10854
10854
  }
10855
10855
  constructor() {
10856
- super(), this._configuration = null, this._rows = [], this._search = "", this._currentPage = 1, this._perPage = 15, this._totalRows = 0, this._lastPage = 0, this._offset = 0, this._loaded = !1, this._fetching = !1, this._loading = !1, this._loadingPage = null, this._fetchError = null, this._searching = !1, this._sorting = !1, this._sortingColumnData = null, this._type = "provided", this._searchTimeoutId = null, this._sortTimeoutId = null, this._searchColumns = [], this._exportColumns = {}, this._columns = [], this._tableId = "", this._searchInput = null, this._tableContainer = null, this._paginationContainer = null, this._skeletonContainer = null, this._inMintCard = !1, this._virtualBodyScrollEl = null, this._disposeVirtualBodyFade = null, this._virtualScrollHandler = null, this._virtualWindowRaf = null, this._virtualLastRangeStart = -1, this._virtualLastRangeEnd = -1, this._virtualLastRangeCacheSig = "", this._virtualResizeObserver = null, this._virtualWindowResizeHandler = null, this._virtualRowCache = /* @__PURE__ */ new Map(), this._virtualRangeFetching = !1, this._mobileListMql = null, this._boundMobileListMqlListener = null, this._boundMobileListViewportListener = null, this._initialMobileLayoutRaf = null, this._lastRenderedMobileLayout = null, this._virtualFetchGeneration = 0, this._virtualAjaxPrefetchTimer = null, this._fixedChromeResizeObserver = null, this._utilityClassObserver = null;
10856
+ super(), this._configuration = null, this._rows = [], this._search = "", this._currentPage = 1, this._perPage = 15, this._totalRows = 0, this._lastPage = 0, this._offset = 0, this._loaded = !1, this._fetching = !1, this._loading = !1, this._loadingPage = null, this._fetchError = null, this._searching = !1, this._sorting = !1, this._sortingColumnData = null, this._type = "provided", this._searchTimeoutId = null, this._sortTimeoutId = null, this._searchColumns = [], this._exportColumns = {}, this._columns = [], this._tableId = "", this._searchInput = null, this._tableContainer = null, this._paginationContainer = null, this._skeletonContainer = null, this._inMintCard = !1, this._virtualBodyScrollEl = null, this._disposeVirtualBodyFade = null, this._virtualScrollHandler = null, this._virtualWindowRaf = null, this._virtualLastRangeStart = -1, this._virtualLastRangeEnd = -1, this._virtualLastRangeCacheSig = "", this._virtualResizeObserver = null, this._virtualWindowResizeHandler = null, this._virtualRowCache = /* @__PURE__ */ new Map(), this._virtualRangeFetching = !1, this._mobileListMql = null, this._boundMobileListMqlListener = null, this._boundMobileListViewportListener = null, this._initialMobileLayoutRaf = null, this._initialMobileLayoutTimer = null, this._mobileLayoutResizeObserver = null, this._lastMobileViewportObservedWidth = null, this._lastRenderedMobileLayout = null, this._virtualFetchGeneration = 0, this._virtualAjaxPrefetchTimer = null, this._fixedChromeResizeObserver = null, this._utilityClassObserver = null;
10857
10857
  }
10858
10858
  get inMintCard() {
10859
10859
  return this._inMintCard;
@@ -10873,7 +10873,7 @@ var Jn = class extends HTMLElement {
10873
10873
  }), this._inMintCard = this.closest("mint-card") !== null, this._configuration || this._parseConfiguration(), this._initializeColumns(), this._loadPageFromUrl(), this._attachRowClickHandler(), this.render();
10874
10874
  }
10875
10875
  disconnectedCallback() {
10876
- this._searchTimeoutId && clearTimeout(this._searchTimeoutId), this._detachVirtualScroll(), this._detachFixedChromeResize(), this._detachMobileListMql(), this._initialMobileLayoutRaf !== null && (window.cancelAnimationFrame(this._initialMobileLayoutRaf), this._initialMobileLayoutRaf = null), this._utilityClassObserver?.disconnect(), this._utilityClassObserver = null, this._rowClickHandler &&= (this.removeEventListener("click", this._rowClickHandler, !0), null), this._scrollHandler &&= (window.removeEventListener("scroll", this._scrollHandler), null);
10876
+ this._searchTimeoutId && clearTimeout(this._searchTimeoutId), this._detachVirtualScroll(), this._detachFixedChromeResize(), this._detachMobileListMql(), this._initialMobileLayoutRaf !== null && (window.cancelAnimationFrame(this._initialMobileLayoutRaf), this._initialMobileLayoutRaf = null), this._initialMobileLayoutTimer !== null && (window.clearTimeout(this._initialMobileLayoutTimer), this._initialMobileLayoutTimer = null), this._utilityClassObserver?.disconnect(), this._utilityClassObserver = null, this._rowClickHandler &&= (this.removeEventListener("click", this._rowClickHandler, !0), null), this._scrollHandler &&= (window.removeEventListener("scroll", this._scrollHandler), null);
10877
10877
  }
10878
10878
  attributeChangedCallback(e, t, n) {
10879
10879
  e === "configuration" && t !== n ? (!this._configuration || typeof n == "string") && (this._parseConfiguration(), this.render()) : t !== n && (e === "loading" || e === "virtual-scroll" || e === "virtual-scroll-root" || e === "virtual-row-height" || e === "virtual-max-height" || e === "fixed-header" || e === "fixed-controls") && this._configuration && this.isConnected && this.render();
@@ -11117,17 +11117,27 @@ var Jn = class extends HTMLElement {
11117
11117
  }, this._mobileListMql.addEventListener("change", this._boundMobileListMqlListener)), this._boundMobileListViewportListener || (this._boundMobileListViewportListener = () => {
11118
11118
  let e = this._lastRenderedMobileLayout;
11119
11119
  e !== null && this._configuration && this.isConnected && this._scheduleInitialMobileLayoutSync(e);
11120
- }, window.addEventListener("resize", this._boundMobileListViewportListener, { passive: !0 }), window.addEventListener("orientationchange", this._boundMobileListViewportListener, { passive: !0 }), window.visualViewport?.addEventListener("resize", this._boundMobileListViewportListener, { passive: !0 })));
11120
+ }, window.addEventListener("resize", this._boundMobileListViewportListener, { passive: !0 }), window.addEventListener("orientationchange", this._boundMobileListViewportListener, { passive: !0 }), window.visualViewport?.addEventListener("resize", this._boundMobileListViewportListener, { passive: !0 })), !this._mobileLayoutResizeObserver && typeof ResizeObserver < "u" && document.documentElement && (this._mobileLayoutResizeObserver = new ResizeObserver((e) => {
11121
+ let t = e[0]?.contentRect.width;
11122
+ if (t === void 0 || t === this._lastMobileViewportObservedWidth) return;
11123
+ this._lastMobileViewportObservedWidth = t;
11124
+ let n = this._lastRenderedMobileLayout;
11125
+ n !== null && this._configuration && this.isConnected && this._scheduleInitialMobileLayoutSync(n);
11126
+ }), this._mobileLayoutResizeObserver.observe(document.documentElement)));
11121
11127
  }
11122
11128
  _detachMobileListMql() {
11123
- this._mobileListMql && this._boundMobileListMqlListener && this._mobileListMql.removeEventListener("change", this._boundMobileListMqlListener), this._mobileListMql = null, this._boundMobileListMqlListener = null, this._boundMobileListViewportListener && typeof window < "u" && (window.removeEventListener("resize", this._boundMobileListViewportListener), window.removeEventListener("orientationchange", this._boundMobileListViewportListener), window.visualViewport?.removeEventListener("resize", this._boundMobileListViewportListener)), this._boundMobileListViewportListener = null;
11129
+ this._mobileListMql && this._boundMobileListMqlListener && this._mobileListMql.removeEventListener("change", this._boundMobileListMqlListener), this._mobileListMql = null, this._boundMobileListMqlListener = null, this._mobileLayoutResizeObserver?.disconnect(), this._mobileLayoutResizeObserver = null, this._lastMobileViewportObservedWidth = null, this._boundMobileListViewportListener && typeof window < "u" && (window.removeEventListener("resize", this._boundMobileListViewportListener), window.removeEventListener("orientationchange", this._boundMobileListViewportListener), window.visualViewport?.removeEventListener("resize", this._boundMobileListViewportListener)), this._boundMobileListViewportListener = null;
11124
11130
  }
11125
11131
  _useMobileListLayout() {
11126
- return typeof window > "u" ? !1 : (this._mobileListMql?.matches ?? (typeof window.matchMedia == "function" && window.matchMedia("(max-width: 767px)").matches)) || window.innerWidth <= 767 || (window.visualViewport?.width ?? Infinity) <= 767 ? !0 : (navigator.maxTouchPoints > 0 || "ontouchstart" in window) && typeof window.screen?.width == "number" && window.screen.width <= 767;
11132
+ return typeof window > "u" ? !1 : (this._mobileListMql?.matches ?? (typeof window.matchMedia == "function" && window.matchMedia("(max-width: 767px)").matches)) || window.innerWidth <= 767 || (window.visualViewport?.width ?? Infinity) <= 767 ? !0 : (document.documentElement?.clientWidth ?? Infinity) <= 767;
11127
11133
  }
11128
11134
  _scheduleInitialMobileLayoutSync(e) {
11129
- this._initialMobileLayoutRaf !== null || typeof window.requestAnimationFrame != "function" || (this._initialMobileLayoutRaf = window.requestAnimationFrame(() => {
11130
- this._initialMobileLayoutRaf = null, this.isConnected && this._configuration && this._useMobileListLayout() !== e && this.render();
11135
+ this._initialMobileLayoutRaf !== null || this._initialMobileLayoutTimer !== null || typeof window.requestAnimationFrame != "function" || (this._initialMobileLayoutRaf = window.requestAnimationFrame(() => {
11136
+ this._initialMobileLayoutRaf = window.requestAnimationFrame(() => {
11137
+ this._initialMobileLayoutRaf = null, this._initialMobileLayoutTimer = window.setTimeout(() => {
11138
+ this._initialMobileLayoutTimer = null, this.isConnected && this._configuration && this._useMobileListLayout() !== e && this.render();
11139
+ }, 100);
11140
+ });
11131
11141
  }));
11132
11142
  }
11133
11143
  _paginationHostPlaceholderHtml() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monobill-mintui",
3
- "version": "0.6.714",
3
+ "version": "0.6.715",
4
4
  "description": "Framework-independent HTML custom elements with component-scoped CSS.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",