integra-ng 21.0.11 → 21.0.13
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/fesm2022/integra-ng.mjs +112 -2
- package/fesm2022/integra-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/integra-ng.d.ts +24 -1
package/package.json
CHANGED
package/types/integra-ng.d.ts
CHANGED
|
@@ -1816,6 +1816,7 @@ interface LayoutConfig {
|
|
|
1816
1816
|
logoLight?: string;
|
|
1817
1817
|
logoDark?: string;
|
|
1818
1818
|
showThemeToggle?: boolean;
|
|
1819
|
+
enablePullToRefresh?: boolean;
|
|
1819
1820
|
}
|
|
1820
1821
|
|
|
1821
1822
|
interface MenuItem {
|
|
@@ -1830,14 +1831,36 @@ interface MenuModel {
|
|
|
1830
1831
|
separator?: boolean;
|
|
1831
1832
|
}
|
|
1832
1833
|
|
|
1833
|
-
declare class LayoutComponent implements OnInit, OnDestroy {
|
|
1834
|
+
declare class LayoutComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
1834
1835
|
layoutService: LayoutService;
|
|
1835
1836
|
router: Router;
|
|
1836
1837
|
config: LayoutConfig;
|
|
1837
1838
|
menuModel: MenuModel[];
|
|
1839
|
+
mainContainer?: ElementRef<HTMLDivElement>;
|
|
1840
|
+
protected readonly Math: Math;
|
|
1838
1841
|
private routerSubscription;
|
|
1842
|
+
private touchStartY;
|
|
1843
|
+
private touchCurrentY;
|
|
1844
|
+
private isPulling;
|
|
1845
|
+
pullDistance: i0.WritableSignal<number>;
|
|
1846
|
+
isRefreshing: i0.WritableSignal<boolean>;
|
|
1847
|
+
protected readonly PULL_THRESHOLD = 80;
|
|
1848
|
+
private readonly MAX_PULL_DISTANCE;
|
|
1849
|
+
protected readonly INDICATOR_OFFSET = 60;
|
|
1850
|
+
private readonly REFRESH_DELAY;
|
|
1851
|
+
private boundHandleTouchStart?;
|
|
1852
|
+
private boundHandleTouchMove?;
|
|
1853
|
+
private boundHandleTouchEnd?;
|
|
1854
|
+
private refreshTimeoutId?;
|
|
1855
|
+
private isPullToRefreshInitialized;
|
|
1839
1856
|
constructor(layoutService: LayoutService, router: Router);
|
|
1840
1857
|
ngOnInit(): void;
|
|
1858
|
+
ngAfterViewInit(): void;
|
|
1859
|
+
private setupPullToRefresh;
|
|
1860
|
+
private handleTouchStart;
|
|
1861
|
+
private handleTouchMove;
|
|
1862
|
+
private handleTouchEnd;
|
|
1863
|
+
private refresh;
|
|
1841
1864
|
onWindowResize(): void;
|
|
1842
1865
|
hideMenu(): void;
|
|
1843
1866
|
private syncViewportToCurrentWindow;
|