@underlayerdev/ui 0.17.0 → 0.17.1
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.
|
@@ -10956,11 +10956,13 @@ var LoadMoreComponent = class LoadMoreComponent {
|
|
|
10956
10956
|
canObserve = computed(() => this.hasMore() && !this.loading() && !this.error() && this.isAuto(), ...ngDevMode ? [{ debugName: "canObserve" }] : /* istanbul ignore next */ []);
|
|
10957
10957
|
constructor() {
|
|
10958
10958
|
if (!this.isBrowser) return;
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10959
|
+
if (typeof window.matchMedia === "function") {
|
|
10960
|
+
const media = window.matchMedia(`(min-width: ${variables_default.breakpoint.sm.value})`);
|
|
10961
|
+
this.isWide.set(media.matches);
|
|
10962
|
+
const onChange = (event) => this.isWide.set(event.matches);
|
|
10963
|
+
media.addEventListener("change", onChange);
|
|
10964
|
+
this.destroyRef.onDestroy(() => media.removeEventListener("change", onChange));
|
|
10965
|
+
}
|
|
10964
10966
|
effect(() => {
|
|
10965
10967
|
this.resetKey();
|
|
10966
10968
|
untracked(() => this.autoLoaded.set(0));
|