knight-web 2.0.7 → 2.0.8
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/frame/base/AbstractObject.d.ts +36 -36
- package/frame/base/AbstractPanel.d.ts +4 -4
- package/frame/base/index.d.ts +2 -2
- package/frame/core/Knight.d.ts +42 -42
- package/frame/core/Navgation.d.ts +26 -26
- package/frame/core/index.d.ts +2 -2
- package/frame/index.d.ts +3 -3
- package/frame/utility/BrowserUtility.d.ts +320 -320
- package/frame/utility/ConfigUtility.d.ts +33 -33
- package/frame/utility/CryptoUtility.d.ts +215 -215
- package/frame/utility/EnumUtility.d.ts +886 -886
- package/frame/utility/FileUtility.d.ts +31 -31
- package/frame/utility/InputUtility.d.ts +20 -20
- package/frame/utility/InterfaceUtility.d.ts +13 -13
- package/frame/utility/LogUtility.d.ts +44 -44
- package/frame/utility/MathUtility.d.ts +559 -559
- package/frame/utility/NetworkUtility.d.ts +155 -155
- package/frame/utility/ObjectUtility.d.ts +308 -308
- package/frame/utility/ProfilerUtility.d.ts +37 -37
- package/frame/utility/PromiseUtility.d.ts +89 -89
- package/frame/utility/ReflectionUtility.d.ts +316 -316
- package/frame/utility/StringUtility.d.ts +55 -55
- package/frame/utility/index.d.ts +15 -15
- package/index.d.ts +1 -1
- package/index.js +52 -26
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
/** 字符串工具 */
|
|
2
|
-
export declare namespace StringUtility {
|
|
3
|
-
/** 默认空字符串 */
|
|
4
|
-
const Empty: string;
|
|
5
|
-
/** 逗号=> , */
|
|
6
|
-
const Comma = ",";
|
|
7
|
-
/** 分号=> : */
|
|
8
|
-
const Semicolon = ":";
|
|
9
|
-
/** 左斜杠=> / */
|
|
10
|
-
const LeftSlash = "/";
|
|
11
|
-
/** 右斜杠=> \ */
|
|
12
|
-
const RightSlash = "\\";
|
|
13
|
-
/** 单边双引号 => " */
|
|
14
|
-
const DoubleQuotes: string;
|
|
15
|
-
/** 单边单引号 => ' */
|
|
16
|
-
const SingleQuotes: string;
|
|
17
|
-
/** 美元符号 */
|
|
18
|
-
const Dollar: string;
|
|
19
|
-
/** 字符串拼串 */
|
|
20
|
-
function SubString(_arrString: Array<string>, _startIndex?: number): string;
|
|
21
|
-
/** 检查路径字符串 */
|
|
22
|
-
function SubPath(_paths: Array<string>, _symble: string): string;
|
|
23
|
-
/** 检测字符串两边是否是指定相同的字符 */
|
|
24
|
-
function CheckDoubleSideSameChar(_str: string, _checkChar: string): Boolean;
|
|
25
|
-
/** 检测字符串两边是否是指定不同的字符 */
|
|
26
|
-
function CheckDoubleSideDiffChar(_str: string, _char1: string, _char2: string): Boolean;
|
|
27
|
-
/** 在字符串指定位置插入指定的字符串 */
|
|
28
|
-
function Insert(_str: string, _pos: number, _newStr: string): string;
|
|
29
|
-
/** 在字符串首位添加插入字符 */
|
|
30
|
-
function InsertDoubleSide(_str: string, _char1: string, _char2: string): string;
|
|
31
|
-
/** 删除首尾指定个数个字符 */
|
|
32
|
-
function DestoryDoubleSide(_str: string, _headCount?: number, _endCount?: number): string;
|
|
33
|
-
/** 删除字符串的头部指定个数个字符 */
|
|
34
|
-
function DestoryFirstChar(_str: string, _headCount?: number): string;
|
|
35
|
-
/** 删除字符串的尾部指定个数个字符 */
|
|
36
|
-
function DestoryLastChar(_str: string, _endCount?: number): string;
|
|
37
|
-
/** 根据传入的字符串数组或列表,每个元素中间插入指定的字符,串成一个字符串 EXP:aaa,bbb,ccc,ddd */
|
|
38
|
-
function JoinString(_arrStrings: Array<string>, _symble: string): string;
|
|
39
|
-
/** 检测字符串是否是空字符串(空串则返回true 不空则返回false) */
|
|
40
|
-
function IsNullOrEmpty(_str: string): Boolean;
|
|
41
|
-
/** 数字类型转字符串类型 */
|
|
42
|
-
function ToString(_any: number | {} | any): string;
|
|
43
|
-
/**
|
|
44
|
-
* 字符串替换 搜索字符串替换为指定的替换字符串,并返回替换后的新字符串
|
|
45
|
-
* @param originalString 原始字符串
|
|
46
|
-
* @param searchString 要搜索的字符串
|
|
47
|
-
* @param replacement 要替换的字符串
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
function ReplaceString(originalString: string, searchString: string, replacement: string): string;
|
|
51
|
-
/** 仅保留数字 */
|
|
52
|
-
function KeepNumeric(_value: string): number;
|
|
53
|
-
/** 仅保留除数字外字符串 */
|
|
54
|
-
function RejectNumeric(_value: string): string;
|
|
55
|
-
}
|
|
1
|
+
/** 字符串工具 */
|
|
2
|
+
export declare namespace StringUtility {
|
|
3
|
+
/** 默认空字符串 */
|
|
4
|
+
const Empty: string;
|
|
5
|
+
/** 逗号=> , */
|
|
6
|
+
const Comma = ",";
|
|
7
|
+
/** 分号=> : */
|
|
8
|
+
const Semicolon = ":";
|
|
9
|
+
/** 左斜杠=> / */
|
|
10
|
+
const LeftSlash = "/";
|
|
11
|
+
/** 右斜杠=> \ */
|
|
12
|
+
const RightSlash = "\\";
|
|
13
|
+
/** 单边双引号 => " */
|
|
14
|
+
const DoubleQuotes: string;
|
|
15
|
+
/** 单边单引号 => ' */
|
|
16
|
+
const SingleQuotes: string;
|
|
17
|
+
/** 美元符号 */
|
|
18
|
+
const Dollar: string;
|
|
19
|
+
/** 字符串拼串 */
|
|
20
|
+
function SubString(_arrString: Array<string>, _startIndex?: number): string;
|
|
21
|
+
/** 检查路径字符串 */
|
|
22
|
+
function SubPath(_paths: Array<string>, _symble: string): string;
|
|
23
|
+
/** 检测字符串两边是否是指定相同的字符 */
|
|
24
|
+
function CheckDoubleSideSameChar(_str: string, _checkChar: string): Boolean;
|
|
25
|
+
/** 检测字符串两边是否是指定不同的字符 */
|
|
26
|
+
function CheckDoubleSideDiffChar(_str: string, _char1: string, _char2: string): Boolean;
|
|
27
|
+
/** 在字符串指定位置插入指定的字符串 */
|
|
28
|
+
function Insert(_str: string, _pos: number, _newStr: string): string;
|
|
29
|
+
/** 在字符串首位添加插入字符 */
|
|
30
|
+
function InsertDoubleSide(_str: string, _char1: string, _char2: string): string;
|
|
31
|
+
/** 删除首尾指定个数个字符 */
|
|
32
|
+
function DestoryDoubleSide(_str: string, _headCount?: number, _endCount?: number): string;
|
|
33
|
+
/** 删除字符串的头部指定个数个字符 */
|
|
34
|
+
function DestoryFirstChar(_str: string, _headCount?: number): string;
|
|
35
|
+
/** 删除字符串的尾部指定个数个字符 */
|
|
36
|
+
function DestoryLastChar(_str: string, _endCount?: number): string;
|
|
37
|
+
/** 根据传入的字符串数组或列表,每个元素中间插入指定的字符,串成一个字符串 EXP:aaa,bbb,ccc,ddd */
|
|
38
|
+
function JoinString(_arrStrings: Array<string>, _symble: string): string;
|
|
39
|
+
/** 检测字符串是否是空字符串(空串则返回true 不空则返回false) */
|
|
40
|
+
function IsNullOrEmpty(_str: string): Boolean;
|
|
41
|
+
/** 数字类型转字符串类型 */
|
|
42
|
+
function ToString(_any: number | {} | any): string;
|
|
43
|
+
/**
|
|
44
|
+
* 字符串替换 搜索字符串替换为指定的替换字符串,并返回替换后的新字符串
|
|
45
|
+
* @param originalString 原始字符串
|
|
46
|
+
* @param searchString 要搜索的字符串
|
|
47
|
+
* @param replacement 要替换的字符串
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
function ReplaceString(originalString: string, searchString: string, replacement: string): string;
|
|
51
|
+
/** 仅保留数字 */
|
|
52
|
+
function KeepNumeric(_value: string): number;
|
|
53
|
+
/** 仅保留除数字外字符串 */
|
|
54
|
+
function RejectNumeric(_value: string): string;
|
|
55
|
+
}
|
package/frame/utility/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from "./ConfigUtility";
|
|
2
|
-
export * from "./EnumUtility";
|
|
3
|
-
export * from "./FileUtility";
|
|
4
|
-
export * from "./BrowserUtility";
|
|
5
|
-
export * from "./InterfaceUtility";
|
|
6
|
-
export * from "./LogUtility";
|
|
7
|
-
export * from "./MathUtility";
|
|
8
|
-
export * from "./NetworkUtility";
|
|
9
|
-
export * from "./ObjectUtility";
|
|
10
|
-
export * from "./PromiseUtility";
|
|
11
|
-
export * from "./StringUtility";
|
|
12
|
-
export * from "./ProfilerUtility";
|
|
13
|
-
export * from "./InputUtility";
|
|
14
|
-
export * from "./CryptoUtility";
|
|
15
|
-
export * from "./ReflectionUtility";
|
|
1
|
+
export * from "./ConfigUtility";
|
|
2
|
+
export * from "./EnumUtility";
|
|
3
|
+
export * from "./FileUtility";
|
|
4
|
+
export * from "./BrowserUtility";
|
|
5
|
+
export * from "./InterfaceUtility";
|
|
6
|
+
export * from "./LogUtility";
|
|
7
|
+
export * from "./MathUtility";
|
|
8
|
+
export * from "./NetworkUtility";
|
|
9
|
+
export * from "./ObjectUtility";
|
|
10
|
+
export * from "./PromiseUtility";
|
|
11
|
+
export * from "./StringUtility";
|
|
12
|
+
export * from "./ProfilerUtility";
|
|
13
|
+
export * from "./InputUtility";
|
|
14
|
+
export * from "./CryptoUtility";
|
|
15
|
+
export * from "./ReflectionUtility";
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './frame';
|
|
1
|
+
export * from './frame';
|