@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
53 lines (52 loc) • 1.75 kB
TypeScript
export declare class MD5Util {
constructor();
private md5cycle;
private cmn;
private ff;
private gg;
private hh;
private ii;
private md51;
private md5blk;
private hex_chr;
private rhex;
private hex;
md5(s: string): string;
private add32;
}
/**
* Web Utilities
* @class WebUtils
*/
export declare class WebUtils {
static _urlParams: {
[]: Array<string>;
};
/**
* Util for getting querystring values. sourceUrl defuallt value is window.location.search
*/
static getQs(name: string, queryString?: string): string;
static removeParam(name: string): string;
/**
* Return true if browser is mobile version. Otherwise is false.
**/
static isMobile(): boolean;
/**
* Return true if IE browser. Otherwise is false.
*/
static isIE(): boolean;
static isSafari(): boolean;
static get isDebug(): boolean;
static isValidUrl(url: string): boolean;
/**
* Lets you get back mapped values towards the current route path by providing a routeTemplate to match with
* by specifying tokens in the template e.g. if the current path is '/add/customer5' a routeTemplate '/{action}/{id}'
* will return object containing { action: "add", id: "customer5" } its also possible to register a filter that only
* returns the matching property if the value matches e.g routeTemplate '/{action=add}/{id}' will only return property
* action if the route contains '/add' on that path
*
* @param routeTemplate the route template to use to match with current route
*/
static mapRoute<TResult>(routeTemplate: string, url?: string): TResult;
static combineRoute(...parts: string[]): string;
}