devexpress-utils
Advanced tools
Comparing version 1.0.1-alpha-004 to 1.0.1-alpha-005
@@ -0,1 +1,14 @@ | ||
export declare class PdfHelperFrame { | ||
private readonly container; | ||
private readonly frameClassName; | ||
private helperFrame; | ||
private helperFrameName; | ||
constructor(container: HTMLElement, frameClassName: string); | ||
dispose(): void; | ||
showPrintDialog(resourceUrl: string): void; | ||
private getHelperFrame; | ||
private removeHelperFrame; | ||
private createHelperFrame; | ||
private getNewName; | ||
} | ||
//# sourceMappingURL=helper-frame.d.ts.map |
export declare function isDefined<T>(value: T | undefined | null): value is T; | ||
export declare function boolToInt(value: boolean): number; | ||
export declare function boolToString(value: boolean): string; | ||
export declare function isNumber(obj: unknown): obj is number; | ||
export declare function isString(obj: unknown): obj is string; | ||
export declare function isEven(num: number): boolean; | ||
export declare function isOdd(num: number): boolean; | ||
export declare function numberToStringBin(num: number, minLength?: number): string; | ||
export declare function numberToStringHex(num: number, minLength?: number): string; | ||
//# sourceMappingURL=common.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isDefined = void 0; | ||
exports.numberToStringHex = exports.numberToStringBin = exports.isOdd = exports.isEven = exports.isString = exports.isNumber = exports.boolToString = exports.boolToInt = exports.isDefined = void 0; | ||
var string_1 = require("./string"); | ||
function isDefined(value) { | ||
@@ -8,1 +9,35 @@ return value !== undefined && value !== null; | ||
exports.isDefined = isDefined; | ||
function boolToInt(value) { | ||
return value ? 1 : 0; | ||
} | ||
exports.boolToInt = boolToInt; | ||
function boolToString(value) { | ||
return value ? '1' : '0'; | ||
} | ||
exports.boolToString = boolToString; | ||
function isNumber(obj) { | ||
return typeof obj === 'number'; | ||
} | ||
exports.isNumber = isNumber; | ||
function isString(obj) { | ||
return typeof obj === 'string'; | ||
} | ||
exports.isString = isString; | ||
function isEven(num) { | ||
return (num % 2) !== 0; | ||
} | ||
exports.isEven = isEven; | ||
function isOdd(num) { | ||
return (num % 2) === 0; | ||
} | ||
exports.isOdd = isOdd; | ||
function numberToStringBin(num, minLength) { | ||
if (minLength === void 0) { minLength = 0; } | ||
return string_1.StringUtils.padLeft(num.toString(2), minLength, '0'); | ||
} | ||
exports.numberToStringBin = numberToStringBin; | ||
function numberToStringHex(num, minLength) { | ||
if (minLength === void 0) { minLength = 0; } | ||
return string_1.StringUtils.padLeft(num.toString(16), minLength, '0'); | ||
} | ||
exports.numberToStringHex = numberToStringHex; |
export declare class StringUtils { | ||
static isAlpha(ch: string): boolean; | ||
static isDigit(ch: string): boolean; | ||
static stringHashCode(str: string): number; | ||
@@ -3,0 +5,0 @@ static endsAt(str: string, template: string): boolean; |
@@ -7,2 +7,8 @@ "use strict"; | ||
} | ||
StringUtils.isAlpha = function (ch) { | ||
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); | ||
}; | ||
StringUtils.isDigit = function (ch) { | ||
return ch >= '0' && ch <= '9'; | ||
}; | ||
StringUtils.stringHashCode = function (str) { | ||
@@ -9,0 +15,0 @@ var hash = 0; |
{ | ||
"name": "devexpress-utils", | ||
"version": "1.0.1-alpha-004", | ||
"version": "1.0.1-alpha-005", | ||
"description": "DevExpress utils", | ||
@@ -5,0 +5,0 @@ "author": "DevExpress Inc.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
670331
138
13916
0