devexpress-utils
Advanced tools
+2
-2
| /*! | ||
| * DevExpress Utils (dx.utils) | ||
| * Version: 1.0.1-alpha-002 | ||
| * Build date: Thu Sep 03 2020 | ||
| * Version: 1.0.1-alpha-003 | ||
| * Build date: Fri Sep 04 2020 | ||
| * | ||
@@ -6,0 +6,0 @@ * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED |
| /*! | ||
| * DevExpress Utils (dx.utils.min) | ||
| * Version: 1.0.1-alpha-002 | ||
| * Build date: Thu Sep 03 2020 | ||
| * Version: 1.0.1-alpha-003 | ||
| * Build date: Fri Sep 04 2020 | ||
| * | ||
@@ -6,0 +6,0 @@ * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED |
+22
-22
| export declare class ChunkedText { | ||
| protected maxChunkSize: number; | ||
| protected chunks: string[]; | ||
| protected chunkIndex: number; | ||
| protected chunk: string; | ||
| protected chunkLength: number; | ||
| protected posInChunk: number; | ||
| protected _currPos: number; | ||
| protected _textLength: number; | ||
| get currChar(): string; | ||
| get currPos(): number; | ||
| get textLength(): number; | ||
| constructor(text: string, maxChunkSize?: number); | ||
| resetToStart(): void; | ||
| resetToEnd(): void; | ||
| addText(text: string): void; | ||
| getText(): string; | ||
| moveToNextChar(): boolean; | ||
| moveToPrevChar(): boolean; | ||
| setPositionTo(position: number): void; | ||
| private setChunk; | ||
| private pushText; | ||
| protected maxChunkSize: number; | ||
| protected chunks: string[]; | ||
| protected chunkIndex: number; | ||
| protected chunk: string; | ||
| protected chunkLength: number; | ||
| protected posInChunk: number; | ||
| protected _currPos: number; | ||
| protected _textLength: number; | ||
| constructor(text: string, maxChunkSize?: number); | ||
| resetToStart(): void; | ||
| resetToEnd(): void; | ||
| addText(text: string): void; | ||
| getText(): string; | ||
| moveToNextChar(): boolean; | ||
| moveToPrevChar(): boolean; | ||
| setPositionTo(position: number): void; | ||
| private setChunk; | ||
| private pushText; | ||
| readonly currChar: string; | ||
| readonly currPos: number; | ||
| readonly textLength: number; | ||
| } | ||
| //# sourceMappingURL=chunked-text.d.ts.map | ||
| //# sourceMappingURL=chunked-text.d.ts.map |
| export declare class Constants { | ||
| static MIN_SAFE_INTEGER: number; | ||
| static MAX_SAFE_INTEGER: number; | ||
| static MAX_BYTE: number; | ||
| static MIN_SAFE_INTEGER: number; | ||
| static MAX_SAFE_INTEGER: number; | ||
| static MAX_BYTE: number; | ||
| } | ||
| export declare class Int32Constants { | ||
| static MIN_VALUE: number; | ||
| static MAX_VALUE: number; | ||
| static MIN_VALUE: number; | ||
| static MAX_VALUE: number; | ||
| } | ||
| //# sourceMappingURL=constants.d.ts.map | ||
| //# sourceMappingURL=constants.d.ts.map |
+9
-9
| import { ICloneable } from './types'; | ||
| export declare class Flag implements ICloneable<Flag> { | ||
| private value; | ||
| constructor(initValue?: number); | ||
| get(enumVal: number): boolean; | ||
| set(enumVal: number, newValue: boolean): this; | ||
| add(value: number): void; | ||
| anyOf(...flags: number[]): boolean; | ||
| getValue(): number; | ||
| clone(): Flag; | ||
| private value; | ||
| constructor(initValue?: number); | ||
| get(enumVal: number): boolean; | ||
| set(enumVal: number, newValue: boolean): this; | ||
| add(value: number): void; | ||
| anyOf(...flags: number[]): boolean; | ||
| getValue(): number; | ||
| clone(): Flag; | ||
| } | ||
| //# sourceMappingURL=flag.d.ts.map | ||
| //# sourceMappingURL=flag.d.ts.map |
+16
-16
| export declare class MinMax<T> { | ||
| min: T; | ||
| max: T; | ||
| constructor(min: T, max: T); | ||
| min: T; | ||
| max: T; | ||
| constructor(min: T, max: T); | ||
| } | ||
| export declare class MinMaxNumber extends MinMax<number> { | ||
| get length(): number; | ||
| readonly length: number; | ||
| } | ||
| export declare class ExtendedMin<T> { | ||
| minElement: T; | ||
| minValue: number; | ||
| constructor(minElement: T, minValue: number); | ||
| minElement: T; | ||
| minValue: number; | ||
| constructor(minElement: T, minValue: number); | ||
| } | ||
| export declare class ExtendedMax<T> { | ||
| maxElement: T; | ||
| maxValue: number; | ||
| constructor(maxElement: T, maxValue: number); | ||
| maxElement: T; | ||
| maxValue: number; | ||
| constructor(maxElement: T, maxValue: number); | ||
| } | ||
| export declare class ExtendedMinMax<T> { | ||
| minElement: T; | ||
| maxElement: T; | ||
| minValue: number; | ||
| maxValue: number; | ||
| constructor(minElement: T, minValue: number, maxElement: T, maxValue: number); | ||
| minElement: T; | ||
| maxElement: T; | ||
| minValue: number; | ||
| maxValue: number; | ||
| constructor(minElement: T, minValue: number, maxElement: T, maxValue: number); | ||
| } | ||
| //# sourceMappingURL=min-max.d.ts.map | ||
| //# sourceMappingURL=min-max.d.ts.map |
+29
-29
| import { IOnpItertor } from './iterator'; | ||
| export declare enum SesType { | ||
| Delete = -1, | ||
| Common = 0, | ||
| Add = 1 | ||
| Delete = -1, | ||
| Common = 0, | ||
| Add = 1 | ||
| } | ||
| export declare class ONP<T> { | ||
| editDistance: number; | ||
| lcs: string; | ||
| ses: SesElem<T>[]; | ||
| private readonly reverse; | ||
| private readonly offset; | ||
| private readonly path; | ||
| private readonly pathposi; | ||
| private readonly comparer; | ||
| private a; | ||
| private b; | ||
| private m; | ||
| private n; | ||
| constructor(a: IOnpItertor<T>, b: IOnpItertor<T>); | ||
| calculate(): SesElem<T>[]; | ||
| toString(): string; | ||
| protected snake(k: number, p: number, pp: number): number; | ||
| protected recordSeq(epc: PathElem[]): void; | ||
| editDistance: number; | ||
| lcs: string; | ||
| ses: SesElem<T>[]; | ||
| private readonly reverse; | ||
| private readonly offset; | ||
| private readonly path; | ||
| private readonly pathposi; | ||
| private readonly comparer; | ||
| private a; | ||
| private b; | ||
| private m; | ||
| private n; | ||
| constructor(a: IOnpItertor<T>, b: IOnpItertor<T>); | ||
| calculate(): SesElem<T>[]; | ||
| toString(): string; | ||
| protected snake(k: number, p: number, pp: number): number; | ||
| protected recordSeq(epc: PathElem[]): void; | ||
| } | ||
| declare class PathElem { | ||
| x: number; | ||
| y: number; | ||
| k: number; | ||
| constructor(x: number, y: number, k: number); | ||
| x: number; | ||
| y: number; | ||
| k: number; | ||
| constructor(x: number, y: number, k: number); | ||
| } | ||
| export declare class SesElem<T> { | ||
| elem: T; | ||
| type: SesType; | ||
| constructor(elem: T, type: SesType); | ||
| toString(): string; | ||
| elem: T; | ||
| type: SesType; | ||
| constructor(elem: T, type: SesType); | ||
| toString(): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=common.d.ts.map | ||
| //# sourceMappingURL=common.d.ts.map |
| export interface IOnpItertor<T> { | ||
| length: number; | ||
| getComparer(): ((a: T, b: T) => boolean); | ||
| getByIndex(index: number): T; | ||
| length: number; | ||
| getComparer(): ((a: T, b: T) => boolean); | ||
| getByIndex(index: number): T; | ||
| } | ||
| export declare class StringOnpItertor implements IOnpItertor<string> { | ||
| str: string; | ||
| constructor(str: string); | ||
| get length(): number; | ||
| getComparer(): ((a: string, b: string) => boolean); | ||
| getByIndex(index: number): string; | ||
| str: string; | ||
| constructor(str: string); | ||
| getComparer(): ((a: string, b: string) => boolean); | ||
| getByIndex(index: number): string; | ||
| readonly length: number; | ||
| } | ||
| //# sourceMappingURL=iterator.d.ts.map | ||
| //# sourceMappingURL=iterator.d.ts.map |
+25
-25
| import { SesType } from './common'; | ||
| export declare class StringONP { | ||
| editDistance: number; | ||
| lcs: string; | ||
| ses: StringSesElem[]; | ||
| private readonly reverse; | ||
| private readonly offset; | ||
| private readonly path; | ||
| private readonly pathposi; | ||
| private a; | ||
| private b; | ||
| private m; | ||
| private n; | ||
| constructor(a: string, b: string); | ||
| calculate(): StringSesElem[]; | ||
| toString(): string; | ||
| protected snake(k: number, p: number, pp: number): number; | ||
| protected recordSeq(epc: PathElem[]): void; | ||
| editDistance: number; | ||
| lcs: string; | ||
| ses: StringSesElem[]; | ||
| private readonly reverse; | ||
| private readonly offset; | ||
| private readonly path; | ||
| private readonly pathposi; | ||
| private a; | ||
| private b; | ||
| private m; | ||
| private n; | ||
| constructor(a: string, b: string); | ||
| calculate(): StringSesElem[]; | ||
| toString(): string; | ||
| protected snake(k: number, p: number, pp: number): number; | ||
| protected recordSeq(epc: PathElem[]): void; | ||
| } | ||
| declare class PathElem { | ||
| x: number; | ||
| y: number; | ||
| k: number; | ||
| constructor(x: number, y: number, k: number); | ||
| x: number; | ||
| y: number; | ||
| k: number; | ||
| constructor(x: number, y: number, k: number); | ||
| } | ||
| export declare class StringSesElem { | ||
| elem: string; | ||
| type: SesType; | ||
| constructor(elem: string, type: SesType); | ||
| toString(): string; | ||
| elem: string; | ||
| type: SesType; | ||
| constructor(elem: string, type: SesType); | ||
| toString(): string; | ||
| } | ||
| export {}; | ||
| //# sourceMappingURL=string.d.ts.map | ||
| //# sourceMappingURL=string.d.ts.map |
+6
-6
@@ -5,16 +5,16 @@ export declare type EqualFunc<T> = (a: T, b: T) => boolean; | ||
| export interface ICloneable<T> { | ||
| clone(): T; | ||
| clone(): T; | ||
| } | ||
| export interface ISupportCopyFrom<T> { | ||
| copyFrom(obj: T): void; | ||
| copyFrom(obj: T): void; | ||
| } | ||
| export interface IDisposable { | ||
| dispose(): any; | ||
| dispose(): any; | ||
| } | ||
| export interface IEquatable<T> { | ||
| equals(obj: T): boolean; | ||
| equals(obj: T): boolean; | ||
| } | ||
| export interface ISupportConverting<T> { | ||
| applyConverter(converter: SimpleConverter<T>): this; | ||
| applyConverter(converter: SimpleConverter<T>): this; | ||
| } | ||
| //# sourceMappingURL=types.d.ts.map | ||
| //# sourceMappingURL=types.d.ts.map |
+19
-19
| export declare enum Base64MimeType { | ||
| Unknown = 0, | ||
| OpenXml = 1, | ||
| Rtf = 2, | ||
| PlainText = 3, | ||
| Docm = 4 | ||
| Unknown = 0, | ||
| OpenXml = 1, | ||
| Rtf = 2, | ||
| PlainText = 3, | ||
| Docm = 4 | ||
| } | ||
@@ -13,16 +13,16 @@ export declare const OpenXmlMimeType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"; | ||
| export declare class Base64Utils { | ||
| private static mimeTypesMap; | ||
| static dataUrl: RegExp; | ||
| static normalizeToDataUrl(base64: string, mimeType: string): string; | ||
| static prependByDataUrl(base64: string, mimeType?: string): string; | ||
| static checkPrependDataUrl(base64: string): boolean; | ||
| static deleteDataUrlPrefix(base64DataUrl: string): string; | ||
| static getUint8Array(base64: string): Uint8Array; | ||
| static fromArrayBuffer(buffer: ArrayBuffer): string; | ||
| static getFileFromBase64(base64: string, blobOptions?: BlobPropertyBag): File; | ||
| static getMimeTypeAsString(base64: string): string | null; | ||
| static getKnownMimeType(base64: string): Base64MimeType; | ||
| static fromBlobAsArrayBuffer(blob: Blob, callback: (base64: string) => void): void; | ||
| static fromBlobAsDataUrl(blob: Blob, callback: (base64: string) => void): void; | ||
| private static mimeTypesMap; | ||
| static dataUrl: RegExp; | ||
| static normalizeToDataUrl(base64: string, mimeType: string): string; | ||
| static prependByDataUrl(base64: string, mimeType?: string): string; | ||
| static checkPrependDataUrl(base64: string): boolean; | ||
| static deleteDataUrlPrefix(base64DataUrl: string): string; | ||
| static getUint8Array(base64: string): Uint8Array; | ||
| static fromArrayBuffer(buffer: ArrayBuffer): string; | ||
| static getFileFromBase64(base64: string, blobOptions?: BlobPropertyBag): File; | ||
| static getMimeTypeAsString(base64: string): string | null; | ||
| static getKnownMimeType(base64: string): Base64MimeType; | ||
| static fromBlobAsArrayBuffer(blob: Blob, callback: (base64: string) => void): void; | ||
| static fromBlobAsDataUrl(blob: Blob, callback: (base64: string) => void): void; | ||
| } | ||
| //# sourceMappingURL=base64.d.ts.map | ||
| //# sourceMappingURL=base64.d.ts.map |
+17
-17
| export declare class StringUtils { | ||
| static stringCompare(a: string, b: string): number; | ||
| static stringHashCode(str: string): number; | ||
| static endsAt(str: string, template: string): boolean; | ||
| static startsAt(str: string, template: string): boolean; | ||
| static stringInLowerCase(str: string): boolean; | ||
| static stringInUpperCase(str: string): boolean; | ||
| static inStringAtLeastOneSymbolInUpperCase(str: string): boolean; | ||
| static getSymbolFromEnd(text: string, posFromEnd: number): string; | ||
| static stringTrim(str: string, trimChars?: string[]): string; | ||
| static stringTrimStart(str: string, trimChars?: string[]): string; | ||
| static stringTrimEnd(str: string, trimChars?: string[]): string; | ||
| static getDecimalSeparator(): string; | ||
| static strCompare(a: string, b: string, ignoreCase?: boolean): number; | ||
| static repeat(str: string, count: number): string; | ||
| static isNullOrEmpty(str: string): boolean; | ||
| static padLeft(str: string, totalWidth: number, paddingChar: string): string; | ||
| static stringCompare(a: string, b: string): number; | ||
| static stringHashCode(str: string): number; | ||
| static endsAt(str: string, template: string): boolean; | ||
| static startsAt(str: string, template: string): boolean; | ||
| static stringInLowerCase(str: string): boolean; | ||
| static stringInUpperCase(str: string): boolean; | ||
| static inStringAtLeastOneSymbolInUpperCase(str: string): boolean; | ||
| static getSymbolFromEnd(text: string, posFromEnd: number): string; | ||
| static stringTrim(str: string, trimChars?: string[]): string; | ||
| static stringTrimStart(str: string, trimChars?: string[]): string; | ||
| static stringTrimEnd(str: string, trimChars?: string[]): string; | ||
| static getDecimalSeparator(): string; | ||
| static strCompare(a: string, b: string, ignoreCase?: boolean): number; | ||
| static repeat(str: string, count: number): string; | ||
| static isNullOrEmpty(str: string): boolean; | ||
| static padLeft(str: string, totalWidth: number, paddingChar: string): string; | ||
| } | ||
| //# sourceMappingURL=string.d.ts.map | ||
| //# sourceMappingURL=string.d.ts.map |
+1
-1
| { | ||
| "name": "devexpress-utils", | ||
| "version": "1.0.1-alpha-002", | ||
| "version": "1.0.1-alpha-003", | ||
| "description": "DevExpress utils", | ||
@@ -5,0 +5,0 @@ "author": "DevExpress Inc.", |
2100
0.48%101665
-0.4%