Latest updates from IceHrmPro

This commit is contained in:
Thilina Pituwala
2020-05-20 18:47:29 +02:00
parent 60c92d7935
commit 7453a58aad
18012 changed files with 2089245 additions and 10173 deletions

View File

@@ -0,0 +1,13 @@
import { CustomScrollBehaviorCallback, Options as BaseOptions, ScrollBehavior } from './types';
export interface StandardBehaviorOptions extends BaseOptions {
behavior?: ScrollBehavior;
}
export interface CustomBehaviorOptions<T> extends BaseOptions {
behavior: CustomScrollBehaviorCallback<T>;
}
export interface Options<T = any> extends BaseOptions {
behavior?: ScrollBehavior | CustomScrollBehaviorCallback<T>;
}
declare function scrollIntoView<T>(target: Element, options: CustomBehaviorOptions<T>): T;
declare function scrollIntoView(target: Element, options?: Options | boolean): void;
export default scrollIntoView;

View File

@@ -0,0 +1,19 @@
export declare type ScrollBehavior = 'auto' | 'smooth';
export declare type ScrollLogicalPosition = 'start' | 'center' | 'end' | 'nearest';
export declare type ScrollMode = 'always' | 'if-needed';
export declare type SkipOverflowHiddenElements = boolean;
export interface Options {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
scrollMode?: ScrollMode;
boundary?: CustomScrollBoundary;
skipOverflowHiddenElements?: SkipOverflowHiddenElements;
}
export declare type CustomScrollBoundaryCallback = (parent: Element) => boolean;
export declare type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null;
export interface CustomScrollAction {
el: Element;
top: number;
left: number;
}
export declare type CustomScrollBehaviorCallback<T> = (actions: CustomScrollAction[]) => T;