@bbn/bbn 1.0.25 → 1.0.26
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/dist/bundle.d.ts +224 -238
- package/dist/bundle.js +939 -906
- package/dist/fn/_addLoader.js +1 -1
- package/dist/fn/_deleteLoader.d.ts +1 -1
- package/dist/fn/_deleteLoader.js +2 -2
- package/dist/fn/abort.js +4 -4
- package/dist/fn/abortURL.js +2 -2
- package/dist/fn/addColors.d.ts +1 -1
- package/dist/fn/addColors.js +23 -6
- package/dist/fn/addInputs.d.ts +1 -2
- package/dist/fn/addInputs.js +4 -5
- package/dist/fn/adjustHeight.js +1 -1
- package/dist/fn/adjustSize.js +1 -1
- package/dist/fn/adjustWidth.js +1 -1
- package/dist/fn/ajax.d.ts +1 -1
- package/dist/fn/ajax.js +8 -7
- package/dist/fn/analyzeFunction.js +5 -5
- package/dist/fn/animateCss.js +8 -7
- package/dist/fn/baseName.d.ts +1 -1
- package/dist/fn/baseName.js +1 -1
- package/dist/fn/br2nl.d.ts +1 -1
- package/dist/fn/br2nl.js +1 -1
- package/dist/fn/calendar.js +1 -1
- package/dist/fn/callback.d.ts +1 -1
- package/dist/fn/callback.js +5 -5
- package/dist/fn/camelToCss.js +4 -2
- package/dist/fn/canvasToImage.js +1 -1
- package/dist/fn/center.js +3 -5
- package/dist/fn/checkProps.d.ts +1 -1
- package/dist/fn/checkProps.js +1 -1
- package/dist/fn/checkPropsDetails.d.ts +1 -4
- package/dist/fn/checkPropsDetails.js +10 -11
- package/dist/fn/checkPropsOrDie.d.ts +1 -1
- package/dist/fn/checkPropsOrDie.js +1 -1
- package/dist/fn/checkType.d.ts +1 -1
- package/dist/fn/checkType.js +3 -3
- package/dist/fn/chrono.d.ts +3 -0
- package/dist/fn/chrono.js +23 -0
- package/dist/fn/circularReplacer.js +2 -2
- package/dist/fn/clone.d.ts +0 -1
- package/dist/fn/clone.js +1 -1
- package/dist/fn/colorToHex.js +1 -1
- package/dist/fn/compare.js +44 -44
- package/dist/fn/compareConditions.d.ts +0 -1
- package/dist/fn/compareConditions.js +3 -3
- package/dist/fn/copy.js +9 -9
- package/dist/fn/correctCase.js +1 -1
- package/dist/fn/count.d.ts +1 -1
- package/dist/fn/count.js +2 -2
- package/dist/fn/crc32.js +11 -3
- package/dist/fn/createObject.d.ts +1 -1
- package/dist/fn/createObject.js +3 -3
- package/dist/fn/cssExists.js +7 -4
- package/dist/fn/date.js +5 -5
- package/dist/fn/dateSQL.js +4 -3
- package/dist/fn/deepPath.d.ts +1 -2
- package/dist/fn/defaultAjaxAbortFunction.d.ts +1 -1
- package/dist/fn/defaultAjaxAbortFunction.js +1 -1
- package/dist/fn/defaultAjaxErrorFunction.d.ts +1 -1
- package/dist/fn/defaultAjaxErrorFunction.js +0 -12
- package/dist/fn/defaultAlertFunction.d.ts +1 -1
- package/dist/fn/defaultAlertFunction.js +2 -3
- package/dist/fn/defaultConfirmFunction.d.ts +1 -1
- package/dist/fn/defaultEndLoadingFunction.d.ts +1 -1
- package/dist/fn/defaultEndLoadingFunction.js +1 -17
- package/dist/fn/defaultPostLinkFunction.d.ts +1 -1
- package/dist/fn/defaultPostLinkFunction.js +1 -1
- package/dist/fn/defaultPreLinkFunction.d.ts +1 -1
- package/dist/fn/defaultPreLinkFunction.js +2 -10
- package/dist/fn/defaultStartLoadingFunction.d.ts +1 -1
- package/dist/fn/defaultStartLoadingFunction.js +2 -13
- package/dist/fn/deleteProp.d.ts +1 -1
- package/dist/fn/deleteProp.js +3 -2
- package/dist/fn/diffObj.d.ts +1 -2
- package/dist/fn/diffObj.js +13 -14
- package/dist/fn/dirName.d.ts +1 -1
- package/dist/fn/download.d.ts +1 -1
- package/dist/fn/download.js +3 -5
- package/dist/fn/downloadContent.d.ts +1 -1
- package/dist/fn/each.js +1 -1
- package/dist/fn/error.js +2 -2
- package/dist/fn/escapeRegExp.js +1 -1
- package/dist/fn/escapeTicks.js +1 -1
- package/dist/fn/escapeUrl.js +1 -1
- package/dist/fn/extend.d.ts +1 -2
- package/dist/fn/extend.js +11 -11
- package/dist/fn/extendOut.d.ts +1 -2
- package/dist/fn/extendOut.js +3 -3
- package/dist/fn/fdate.d.ts +1 -1
- package/dist/fn/fdatetime.d.ts +1 -1
- package/dist/fn/fdatetime.js +1 -1
- package/dist/fn/fieldValue.js +2 -2
- package/dist/fn/fileExt.js +1 -1
- package/dist/fn/filter.d.ts +1 -2
- package/dist/fn/filter.js +13 -12
- package/dist/fn/filterToConditions.d.ts +11 -3
- package/dist/fn/filterToConditions.js +6 -6
- package/dist/fn/findAll.d.ts +0 -1
- package/dist/fn/findAll.js +1 -1
- package/dist/fn/fori.d.ts +1 -1
- package/dist/fn/fori.js +2 -2
- package/dist/fn/forir.d.ts +1 -1
- package/dist/fn/forir.js +2 -2
- package/dist/fn/formdata.d.ts +1 -1
- package/dist/fn/formdata.js +12 -13
- package/dist/fn/fromXml.js +6 -6
- package/dist/fn/ftime.js +1 -1
- package/dist/fn/getAllTags.d.ts +1 -1
- package/dist/fn/getAllTags.js +1 -1
- package/dist/fn/getAncestors.d.ts +1 -1
- package/dist/fn/getAncestors.js +7 -8
- package/dist/fn/getAttributes.js +2 -2
- package/dist/fn/getBrowserName.js +9 -9
- package/dist/fn/getBrowserVersion.js +2 -2
- package/dist/fn/getCookie.js +1 -1
- package/dist/fn/getDeviceType.js +3 -3
- package/dist/fn/getEventData.js +11 -8
- package/dist/fn/getField.d.ts +1 -1
- package/dist/fn/getField.js +4 -3
- package/dist/fn/getFieldValues.d.ts +1 -1
- package/dist/fn/getFieldValues.js +2 -2
- package/dist/fn/getHTMLOfSelection.d.ts +1 -1
- package/dist/fn/getHTMLOfSelection.js +9 -19
- package/dist/fn/getLoader.d.ts +1 -1
- package/dist/fn/getPath.d.ts +1 -1
- package/dist/fn/getPath.js +4 -4
- package/dist/fn/getProp.js +3 -2
- package/dist/fn/getProperty.js +1 -1
- package/dist/fn/getRow.d.ts +1 -1
- package/dist/fn/getRow.js +1 -1
- package/dist/fn/getScrollBarSize.js +9 -7
- package/dist/fn/getText.d.ts +1 -1
- package/dist/fn/getTimeoff.js +1 -1
- package/dist/fn/happy.js +1 -1
- package/dist/fn/hash.d.ts +1 -1
- package/dist/fn/hash.js +1 -1
- package/dist/fn/hex2rgb.js +7 -5
- package/dist/fn/html2text.d.ts +1 -1
- package/dist/fn/imageToCanvas.js +2 -2
- package/dist/fn/imgToBase64.d.ts +1 -1
- package/dist/fn/imgToBase64.js +3 -3
- package/dist/fn/info.js +1 -1
- package/dist/fn/init.js +29 -29
- package/dist/fn/isActiveInterface.js +2 -2
- package/dist/fn/isColor.d.ts +1 -1
- package/dist/fn/isColor.js +11 -4
- package/dist/fn/isCp.js +7 -7
- package/dist/fn/isDimension.d.ts +1 -1
- package/dist/fn/isDimension.js +11 -4
- package/dist/fn/isEmail.d.ts +1 -1
- package/dist/fn/isEmail.js +11 -4
- package/dist/fn/isEmpty.js +1 -1
- package/dist/fn/isFocused.d.ts +1 -1
- package/dist/fn/isFocused.js +1 -1
- package/dist/fn/isHostname.js +1 -1
- package/dist/fn/isIP.js +1 -1
- package/dist/fn/isInside.js +1 -1
- package/dist/fn/isIterable.js +1 -1
- package/dist/fn/isNumber.js +1 -1
- package/dist/fn/isPercent.js +1 -1
- package/dist/fn/isPrimitive.js +1 -1
- package/dist/fn/isPropSize.js +1 -1
- package/dist/fn/isSQLDate.js +1 -1
- package/dist/fn/isSame.d.ts +1 -2
- package/dist/fn/isSame.js +3 -3
- package/dist/fn/isURL.js +1 -1
- package/dist/fn/isValidDimension.js +2 -3
- package/dist/fn/isValue.js +1 -1
- package/dist/fn/isVue.d.ts +1 -1
- package/dist/fn/isVue.js +5 -5
- package/dist/fn/iterate.d.ts +1 -1
- package/dist/fn/iterate.js +3 -3
- package/dist/fn/lightenDarkenHex.js +2 -2
- package/dist/fn/link.d.ts +1 -2
- package/dist/fn/link.js +17 -19
- package/dist/fn/log.js +4 -4
- package/dist/fn/makeReactive.d.ts +0 -1
- package/dist/fn/makeReactive.js +35 -23
- package/dist/fn/map.d.ts +0 -1
- package/dist/fn/md5.js +30 -10
- package/dist/fn/money.d.ts +1 -1
- package/dist/fn/money.js +47 -34
- package/dist/fn/move.d.ts +1 -1
- package/dist/fn/move.js +1 -1
- package/dist/fn/multiorder.d.ts +1 -1
- package/dist/fn/multiorder.js +5 -5
- package/dist/fn/nl2br.d.ts +1 -1
- package/dist/fn/nl2br.js +1 -1
- package/dist/fn/numProperties.d.ts +1 -1
- package/dist/fn/numProperties.js +1 -1
- package/dist/fn/objectToFormData.d.ts +1 -1
- package/dist/fn/objectToFormData.js +3 -3
- package/dist/fn/outerHeight.d.ts +1 -1
- package/dist/fn/outerHeight.js +5 -4
- package/dist/fn/outerWidth.d.ts +1 -1
- package/dist/fn/outerWidth.js +1 -2
- package/dist/fn/pickValue.d.ts +1 -1
- package/dist/fn/post.d.ts +1 -1
- package/dist/fn/post.js +3 -3
- package/dist/fn/postOut.d.ts +1 -1
- package/dist/fn/postOut.js +2 -2
- package/dist/fn/printf.js +1 -3
- package/dist/fn/quotes2html.d.ts +1 -1
- package/dist/fn/quotes2html.js +3 -3
- package/dist/fn/randomInt.d.ts +1 -1
- package/dist/fn/randomString.d.ts +1 -1
- package/dist/fn/randomString.js +9 -8
- package/dist/fn/removeAccents.d.ts +1 -1
- package/dist/fn/removeAccents.js +1 -1
- package/dist/fn/removeEmpty.d.ts +1 -1
- package/dist/fn/removeExtraSpaces.d.ts +1 -1
- package/dist/fn/removeHtmlComments.d.ts +1 -1
- package/dist/fn/removePrivateProp.d.ts +1 -2
- package/dist/fn/removePrivateProp.js +6 -6
- package/dist/fn/removeTrailingChars.d.ts +1 -1
- package/dist/fn/repeat.d.ts +1 -1
- package/dist/fn/repeat.js +1 -6
- package/dist/fn/replaceAll.d.ts +1 -1
- package/dist/fn/replaceAll.js +1 -4
- package/dist/fn/replaceSelection.js +1 -1
- package/dist/fn/resize.js +9 -7
- package/dist/fn/rgb2hex.js +6 -4
- package/dist/fn/riterate.d.ts +1 -1
- package/dist/fn/roundDecimal.d.ts +1 -1
- package/dist/fn/roundDecimal.js +1 -1
- package/dist/fn/sanitize.js +3 -1
- package/dist/fn/search.d.ts +2 -1
- package/dist/fn/search.js +24 -21
- package/dist/fn/selectElementText.d.ts +1 -1
- package/dist/fn/selectElementText.js +1 -1
- package/dist/fn/selector.d.ts +1 -1
- package/dist/fn/selector.js +1 -1
- package/dist/fn/setCookie.js +4 -4
- package/dist/fn/setCssVar.js +2 -1
- package/dist/fn/setNavigationVars.d.ts +1 -1
- package/dist/fn/setNavigationVars.js +6 -5
- package/dist/fn/setProp.d.ts +1 -1
- package/dist/fn/setProp.js +1 -3
- package/dist/fn/setProperty.d.ts +1 -1
- package/dist/fn/setProperty.js +2 -2
- package/dist/fn/shorten.d.ts +1 -1
- package/dist/fn/shorten.js +3 -3
- package/dist/fn/shortenObj.d.ts +1 -2
- package/dist/fn/shortenObj.js +2 -2
- package/dist/fn/shuffle.d.ts +1 -1
- package/dist/fn/shuffle.js +1 -3
- package/dist/fn/simpleHash.d.ts +1 -1
- package/dist/fn/simpleHash1.d.ts +1 -1
- package/dist/fn/simpleHash1.js +1 -1
- package/dist/fn/simpleHash2.d.ts +1 -1
- package/dist/fn/stat.d.ts +1 -1
- package/dist/fn/stat.js +8 -8
- package/dist/fn/string2ArrayBuffer.d.ts +1 -1
- package/dist/fn/submit.d.ts +1 -1
- package/dist/fn/submit.js +6 -21
- package/dist/fn/substr.d.ts +1 -1
- package/dist/fn/substr.js +1 -1
- package/dist/fn/sum.d.ts +1 -1
- package/dist/fn/sum.js +2 -3
- package/dist/fn/timestamp.d.ts +1 -1
- package/dist/fn/timestamp.js +1 -1
- package/dist/fn/toCSV.d.ts +1 -1
- package/dist/fn/toCSV.js +1 -1
- package/dist/fn/toggleFullScreen.js +13 -13
- package/dist/fn/translate.d.ts +1 -1
- package/dist/fn/treatAjaxArguments.d.ts +1 -1
- package/dist/fn/treatAjaxArguments.js +16 -14
- package/dist/fn/uniqString.js +3 -3
- package/dist/fn/unique.d.ts +1 -1
- package/dist/fn/upload.d.ts +1 -1
- package/dist/fn/upload.js +6 -6
- package/dist/fn/warning.d.ts +1 -1
- package/dist/fn/warning.js +6 -6
- package/dist/index.d.ts +106 -108
- package/dist/index.js +5 -6
- package/package.json +3 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare module "fn/log" {
|
|
|
15
15
|
export { log };
|
|
16
16
|
}
|
|
17
17
|
declare module "fn/substr" {
|
|
18
|
-
const substr: (str:
|
|
18
|
+
const substr: (str: string, from: number, length?: number) => string;
|
|
19
19
|
export { substr };
|
|
20
20
|
}
|
|
21
21
|
declare module "fn/_addLoader" {
|
|
@@ -27,7 +27,7 @@ declare module "fn/getProperty" {
|
|
|
27
27
|
export { getProperty };
|
|
28
28
|
}
|
|
29
29
|
declare module "fn/removeAccents" {
|
|
30
|
-
const removeAccents: (st:
|
|
30
|
+
const removeAccents: (st: string) => string;
|
|
31
31
|
export { removeAccents };
|
|
32
32
|
}
|
|
33
33
|
declare module "fn/isDate" {
|
|
@@ -51,12 +51,11 @@ declare module "fn/isNumber" {
|
|
|
51
51
|
export { isNumber };
|
|
52
52
|
}
|
|
53
53
|
declare module "fn/removePrivateProp" {
|
|
54
|
-
|
|
55
|
-
const removePrivateProp: (obj: any, deep: any) => boolean;
|
|
54
|
+
const removePrivateProp: (obj: object, deep?: boolean) => any;
|
|
56
55
|
export { removePrivateProp };
|
|
57
56
|
}
|
|
58
57
|
declare module "fn/iterate" {
|
|
59
|
-
const iterate: (obj:
|
|
58
|
+
const iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
|
|
60
59
|
export { iterate };
|
|
61
60
|
}
|
|
62
61
|
declare module "fn/each" {
|
|
@@ -64,7 +63,7 @@ declare module "fn/each" {
|
|
|
64
63
|
export { each };
|
|
65
64
|
}
|
|
66
65
|
declare module "fn/numProperties" {
|
|
67
|
-
const numProperties: (obj:
|
|
66
|
+
const numProperties: (obj: object) => number;
|
|
68
67
|
export { numProperties };
|
|
69
68
|
}
|
|
70
69
|
declare module "fn/isEmpty" {
|
|
@@ -92,24 +91,23 @@ declare module "fn/circularReplacer" {
|
|
|
92
91
|
export { circularReplacer };
|
|
93
92
|
}
|
|
94
93
|
declare module "fn/simpleHash1" {
|
|
95
|
-
const simpleHash1: (str:
|
|
94
|
+
const simpleHash1: (str: string) => number;
|
|
96
95
|
export { simpleHash1 };
|
|
97
96
|
}
|
|
98
97
|
declare module "fn/simpleHash2" {
|
|
99
|
-
const simpleHash2: (str:
|
|
98
|
+
const simpleHash2: (str: string) => number;
|
|
100
99
|
export { simpleHash2 };
|
|
101
100
|
}
|
|
102
101
|
declare module "fn/simpleHash" {
|
|
103
|
-
const simpleHash: (str: any) =>
|
|
102
|
+
const simpleHash: (str: any) => string;
|
|
104
103
|
export { simpleHash };
|
|
105
104
|
}
|
|
106
105
|
declare module "fn/hash" {
|
|
107
|
-
const hash: (obj: any) =>
|
|
106
|
+
const hash: (obj: any) => string;
|
|
108
107
|
export { hash };
|
|
109
108
|
}
|
|
110
109
|
declare module "fn/isSame" {
|
|
111
|
-
|
|
112
|
-
const isSame: (obj1: any, obj2: any, done: any) => boolean;
|
|
110
|
+
const isSame: (obj1: any, obj2: any, done?: any[]) => boolean;
|
|
113
111
|
export { isSame };
|
|
114
112
|
}
|
|
115
113
|
declare module "fn/compare" {
|
|
@@ -117,29 +115,37 @@ declare module "fn/compare" {
|
|
|
117
115
|
export { compare };
|
|
118
116
|
}
|
|
119
117
|
declare module "fn/compareConditions" {
|
|
120
|
-
import { compareConditions } from "fn/compareConditions";
|
|
121
118
|
const compareConditions: (data: any, filter: any) => boolean;
|
|
122
119
|
export { compareConditions };
|
|
123
120
|
}
|
|
124
121
|
declare module "fn/filterToConditions" {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
interface Condition {
|
|
123
|
+
field: string;
|
|
124
|
+
operator?: string;
|
|
125
|
+
value?: any;
|
|
126
|
+
}
|
|
127
|
+
interface Filter {
|
|
128
|
+
conditions?: Condition[];
|
|
129
|
+
logic?: string;
|
|
130
|
+
}
|
|
131
|
+
const filterToConditions: (filter: any, operator?: string) => Filter;
|
|
132
|
+
export { Filter, filterToConditions };
|
|
128
133
|
}
|
|
129
134
|
declare module "fn/search" {
|
|
130
|
-
|
|
135
|
+
import { Filter } from "fn/filterToConditions";
|
|
136
|
+
const search: (arr: any[], prop: Filter | string | object, val?: any, operator?: number | string, startFrom?: number) => number;
|
|
131
137
|
export { search };
|
|
132
138
|
}
|
|
133
139
|
declare module "fn/getRow" {
|
|
134
|
-
const getRow: (arr: any, prop:
|
|
140
|
+
const getRow: (arr: any[], prop: object | string, val?: any, operator?: string) => any | false;
|
|
135
141
|
export { getRow };
|
|
136
142
|
}
|
|
137
143
|
declare module "fn/_deleteLoader" {
|
|
138
|
-
const _deleteLoader: (requestId:
|
|
144
|
+
const _deleteLoader: (requestId: string, res?: any, isAbort?: boolean) => boolean;
|
|
139
145
|
export { _deleteLoader };
|
|
140
146
|
}
|
|
141
147
|
declare module "fn/getLoader" {
|
|
142
|
-
const getLoader: (requestId:
|
|
148
|
+
const getLoader: (requestId: string) => Loader | false;
|
|
143
149
|
export { getLoader };
|
|
144
150
|
}
|
|
145
151
|
declare module "fn/abort" {
|
|
@@ -147,8 +153,7 @@ declare module "fn/abort" {
|
|
|
147
153
|
export { abort };
|
|
148
154
|
}
|
|
149
155
|
declare module "fn/filter" {
|
|
150
|
-
|
|
151
|
-
const filter: (arr: any, prop: any, val: any, operator: any) => any;
|
|
156
|
+
const filter: (arr: any[], prop: object | string, val?: any, operator?: string) => any[];
|
|
152
157
|
export { filter };
|
|
153
158
|
}
|
|
154
159
|
declare module "fn/abortURL" {
|
|
@@ -156,12 +161,11 @@ declare module "fn/abortURL" {
|
|
|
156
161
|
export { abortURL };
|
|
157
162
|
}
|
|
158
163
|
declare module "fn/addColors" {
|
|
159
|
-
const addColors: (colors:
|
|
164
|
+
const addColors: (colors: object) => void;
|
|
160
165
|
export { addColors };
|
|
161
166
|
}
|
|
162
167
|
declare module "fn/addInputs" {
|
|
163
|
-
|
|
164
|
-
const addInputs: (form: any, params: any, prefix: any) => void;
|
|
168
|
+
const addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
|
|
165
169
|
export { addInputs };
|
|
166
170
|
}
|
|
167
171
|
declare module "fn/addStyle" {
|
|
@@ -185,7 +189,7 @@ declare module "fn/escapeRegExp" {
|
|
|
185
189
|
export { escapeRegExp };
|
|
186
190
|
}
|
|
187
191
|
declare module "fn/replaceAll" {
|
|
188
|
-
const replaceAll: (find:
|
|
192
|
+
const replaceAll: (find: string, replace: string, str: string, flags?: string) => string;
|
|
189
193
|
export { replaceAll };
|
|
190
194
|
}
|
|
191
195
|
declare module "fn/md5" {
|
|
@@ -197,28 +201,27 @@ declare module "fn/getRequestId" {
|
|
|
197
201
|
export { getRequestId };
|
|
198
202
|
}
|
|
199
203
|
declare module "fn/extend" {
|
|
200
|
-
|
|
201
|
-
const extend: () => any;
|
|
204
|
+
const extend: (...originalArgs: (boolean | object)[]) => any;
|
|
202
205
|
export { extend };
|
|
203
206
|
}
|
|
204
207
|
declare module "fn/defaultEndLoadingFunction" {
|
|
205
|
-
const defaultEndLoadingFunction: (url:
|
|
208
|
+
const defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
|
|
206
209
|
export { defaultEndLoadingFunction };
|
|
207
210
|
}
|
|
208
211
|
declare module "fn/defaultAjaxErrorFunction" {
|
|
209
|
-
const defaultAjaxErrorFunction: (jqXHR: any, textStatus
|
|
212
|
+
const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: Error) => boolean;
|
|
210
213
|
export { defaultAjaxErrorFunction };
|
|
211
214
|
}
|
|
212
215
|
declare module "fn/defaultAjaxAbortFunction" {
|
|
213
|
-
const defaultAjaxAbortFunction: (message:
|
|
216
|
+
const defaultAjaxAbortFunction: (message: string, url?: string) => void;
|
|
214
217
|
export { defaultAjaxAbortFunction };
|
|
215
218
|
}
|
|
216
219
|
declare module "fn/defaultStartLoadingFunction" {
|
|
217
|
-
const defaultStartLoadingFunction: () =>
|
|
220
|
+
const defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
|
|
218
221
|
export { defaultStartLoadingFunction };
|
|
219
222
|
}
|
|
220
223
|
declare module "fn/ajax" {
|
|
221
|
-
const ajax: (url: any, datatype:
|
|
224
|
+
const ajax: (url: any, datatype: string, data: any, success?: (data: object, headers?: object) => any, failure?: (url: string, o?: object) => any, abort?: (message: string, url: string) => any) => any;
|
|
222
225
|
export { ajax };
|
|
223
226
|
}
|
|
224
227
|
declare module "fn/analyzeFunction" {
|
|
@@ -251,11 +254,11 @@ declare module "fn/autoExtend" {
|
|
|
251
254
|
export { autoExtend };
|
|
252
255
|
}
|
|
253
256
|
declare module "fn/baseName" {
|
|
254
|
-
const baseName: (path:
|
|
257
|
+
const baseName: (path: string, suffix?: string) => string;
|
|
255
258
|
export { baseName };
|
|
256
259
|
}
|
|
257
260
|
declare module "fn/br2nl" {
|
|
258
|
-
const br2nl: (st: any) =>
|
|
261
|
+
const br2nl: (st: any) => string;
|
|
259
262
|
export { br2nl };
|
|
260
263
|
}
|
|
261
264
|
declare module "fn/date" {
|
|
@@ -263,11 +266,11 @@ declare module "fn/date" {
|
|
|
263
266
|
export { date };
|
|
264
267
|
}
|
|
265
268
|
declare module "fn/fdatetime" {
|
|
266
|
-
const fdatetime: (d
|
|
269
|
+
const fdatetime: (d?: Date | number | string, wrong_result?: boolean | string) => any;
|
|
267
270
|
export { fdatetime };
|
|
268
271
|
}
|
|
269
272
|
declare module "fn/fdate" {
|
|
270
|
-
const fdate: (d:
|
|
273
|
+
const fdate: (d: Date | number | string, wrong_result?: boolean | string) => any;
|
|
271
274
|
export { fdate };
|
|
272
275
|
}
|
|
273
276
|
declare module "fn/calendar" {
|
|
@@ -283,15 +286,15 @@ declare module "fn/defaultLinkFunction" {
|
|
|
283
286
|
export { defaultLinkFunction };
|
|
284
287
|
}
|
|
285
288
|
declare module "fn/defaultPostLinkFunction" {
|
|
286
|
-
const defaultPostLinkFunction: (r:
|
|
289
|
+
const defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
|
|
287
290
|
export { defaultPostLinkFunction };
|
|
288
291
|
}
|
|
289
292
|
declare module "fn/defaultAlertFunction" {
|
|
290
|
-
const defaultAlertFunction: (
|
|
293
|
+
const defaultAlertFunction: (msg: string, title?: string) => void;
|
|
291
294
|
export { defaultAlertFunction };
|
|
292
295
|
}
|
|
293
296
|
declare module "fn/callback" {
|
|
294
|
-
const callback: (url:
|
|
297
|
+
const callback: (url: string, res?: BbnAjaxResult, fn?: (a: BbnAjaxResult, b?: HTMLElement) => any, fn2?: (a: BbnAjaxResult) => any, ele?: HTMLElement | HTMLInputElement | HTMLTextAreaElement) => boolean;
|
|
295
298
|
export { callback };
|
|
296
299
|
}
|
|
297
300
|
declare module "fn/camelize" {
|
|
@@ -311,18 +314,15 @@ declare module "fn/center" {
|
|
|
311
314
|
export { center };
|
|
312
315
|
}
|
|
313
316
|
declare module "fn/checkPropsDetails" {
|
|
314
|
-
const checkPropsDetails: (obj:
|
|
315
|
-
error: boolean;
|
|
316
|
-
result: boolean;
|
|
317
|
-
};
|
|
317
|
+
const checkPropsDetails: (obj: object, props: string | string[], checkEmpty?: boolean) => BbnResError;
|
|
318
318
|
export { checkPropsDetails };
|
|
319
319
|
}
|
|
320
320
|
declare module "fn/checkProps" {
|
|
321
|
-
const checkProps: (obj:
|
|
321
|
+
const checkProps: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
|
|
322
322
|
export { checkProps };
|
|
323
323
|
}
|
|
324
324
|
declare module "fn/checkPropsOrDie" {
|
|
325
|
-
const checkPropsOrDie: (obj:
|
|
325
|
+
const checkPropsOrDie: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
|
|
326
326
|
export { checkPropsOrDie };
|
|
327
327
|
}
|
|
328
328
|
declare module "fn/correctCase" {
|
|
@@ -330,11 +330,10 @@ declare module "fn/correctCase" {
|
|
|
330
330
|
export { correctCase };
|
|
331
331
|
}
|
|
332
332
|
declare module "fn/checkType" {
|
|
333
|
-
const checkType: (value: any, type:
|
|
333
|
+
const checkType: (value: any, type: object | string, msg?: string, ...logs: any[]) => void;
|
|
334
334
|
export { checkType };
|
|
335
335
|
}
|
|
336
336
|
declare module "fn/clone" {
|
|
337
|
-
import { clone } from "fn/clone";
|
|
338
337
|
const clone: (obj: any) => any;
|
|
339
338
|
export { clone };
|
|
340
339
|
}
|
|
@@ -347,7 +346,7 @@ declare module "fn/copy" {
|
|
|
347
346
|
export { copy };
|
|
348
347
|
}
|
|
349
348
|
declare module "fn/count" {
|
|
350
|
-
const count: (arr: any, prop:
|
|
349
|
+
const count: (arr: any[], prop: object | string, val?: any, operator?: string) => number;
|
|
351
350
|
export { count };
|
|
352
351
|
}
|
|
353
352
|
declare module "fn/crc32" {
|
|
@@ -355,7 +354,7 @@ declare module "fn/crc32" {
|
|
|
355
354
|
export { crc32 };
|
|
356
355
|
}
|
|
357
356
|
declare module "fn/createObject" {
|
|
358
|
-
const createObject: () => any;
|
|
357
|
+
const createObject: (...args: any[]) => any;
|
|
359
358
|
export { createObject };
|
|
360
359
|
}
|
|
361
360
|
declare module "fn/cssExists" {
|
|
@@ -371,12 +370,11 @@ declare module "fn/daysInMonth" {
|
|
|
371
370
|
export { daysInMonth };
|
|
372
371
|
}
|
|
373
372
|
declare module "fn/deepPath" {
|
|
374
|
-
|
|
375
|
-
const deepPath: (arr: any, filter: any, deepProperty: any, res?: any[]) => false | any[];
|
|
373
|
+
const deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
|
|
376
374
|
export { deepPath };
|
|
377
375
|
}
|
|
378
376
|
declare module "fn/defaultConfirmFunction" {
|
|
379
|
-
const defaultConfirmFunction: (text:
|
|
377
|
+
const defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
|
|
380
378
|
export { defaultConfirmFunction };
|
|
381
379
|
}
|
|
382
380
|
declare module "fn/defaultErrorFunction" {
|
|
@@ -388,7 +386,7 @@ declare module "fn/defaultHistoryFunction" {
|
|
|
388
386
|
export { defaultHistoryFunction };
|
|
389
387
|
}
|
|
390
388
|
declare module "fn/defaultPreLinkFunction" {
|
|
391
|
-
const defaultPreLinkFunction: (url:
|
|
389
|
+
const defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => string;
|
|
392
390
|
export { defaultPreLinkFunction };
|
|
393
391
|
}
|
|
394
392
|
declare module "fn/defaultResizeFunction" {
|
|
@@ -396,7 +394,7 @@ declare module "fn/defaultResizeFunction" {
|
|
|
396
394
|
export { defaultResizeFunction };
|
|
397
395
|
}
|
|
398
396
|
declare module "fn/deleteProp" {
|
|
399
|
-
const deleteProp: (obj:
|
|
397
|
+
const deleteProp: (obj: object, prop: string) => void;
|
|
400
398
|
export { deleteProp };
|
|
401
399
|
}
|
|
402
400
|
declare module "fn/isValue" {
|
|
@@ -404,12 +402,11 @@ declare module "fn/isValue" {
|
|
|
404
402
|
export { isValue };
|
|
405
403
|
}
|
|
406
404
|
declare module "fn/diffObj" {
|
|
407
|
-
|
|
408
|
-
const diffObj: (obj1: any, obj2: any, unchanged: any, notRoot: any) => any;
|
|
405
|
+
const diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
|
|
409
406
|
export { diffObj };
|
|
410
407
|
}
|
|
411
408
|
declare module "fn/dirName" {
|
|
412
|
-
const dirName: (path: any) =>
|
|
409
|
+
const dirName: (path: any) => string;
|
|
413
410
|
export { dirName };
|
|
414
411
|
}
|
|
415
412
|
declare module "fn/isBlob" {
|
|
@@ -425,11 +422,11 @@ declare module "fn/isCanvas" {
|
|
|
425
422
|
export { isCanvas };
|
|
426
423
|
}
|
|
427
424
|
declare module "fn/downloadContent" {
|
|
428
|
-
const downloadContent: (filename:
|
|
425
|
+
const downloadContent: (filename: string, content: any, type?: string) => void;
|
|
429
426
|
export { downloadContent };
|
|
430
427
|
}
|
|
431
428
|
declare module "fn/download" {
|
|
432
|
-
const download: (url:
|
|
429
|
+
const download: (url: string, filename?: string | object, params?: object) => any;
|
|
433
430
|
export { download };
|
|
434
431
|
}
|
|
435
432
|
declare module "fn/eraseCookie" {
|
|
@@ -453,8 +450,7 @@ declare module "fn/escapeUrl" {
|
|
|
453
450
|
export { escapeUrl };
|
|
454
451
|
}
|
|
455
452
|
declare module "fn/extendOut" {
|
|
456
|
-
|
|
457
|
-
const extendOut: () => any;
|
|
453
|
+
const extendOut: (...args: object[]) => any;
|
|
458
454
|
export { extendOut };
|
|
459
455
|
}
|
|
460
456
|
declare module "fn/fieldValue" {
|
|
@@ -462,16 +458,15 @@ declare module "fn/fieldValue" {
|
|
|
462
458
|
export { fieldValue };
|
|
463
459
|
}
|
|
464
460
|
declare module "fn/findAll" {
|
|
465
|
-
import { findAll } from "fn/findAll";
|
|
466
461
|
const findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
|
|
467
462
|
export { findAll };
|
|
468
463
|
}
|
|
469
464
|
declare module "fn/fori" {
|
|
470
|
-
const fori: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
465
|
+
const fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
|
|
471
466
|
export { fori };
|
|
472
467
|
}
|
|
473
468
|
declare module "fn/forir" {
|
|
474
|
-
const forir: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
469
|
+
const forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
|
|
475
470
|
export { forir };
|
|
476
471
|
}
|
|
477
472
|
declare module "fn/format" {
|
|
@@ -491,7 +486,7 @@ declare module "fn/formatSize" {
|
|
|
491
486
|
export { formatSize };
|
|
492
487
|
}
|
|
493
488
|
declare module "fn/formdata" {
|
|
494
|
-
const formdata: (form:
|
|
489
|
+
const formdata: (form: HTMLFormElement) => {};
|
|
495
490
|
export { formdata };
|
|
496
491
|
}
|
|
497
492
|
declare module "fn/fromXml" {
|
|
@@ -503,15 +498,15 @@ declare module "fn/ftime" {
|
|
|
503
498
|
export { ftime };
|
|
504
499
|
}
|
|
505
500
|
declare module "fn/unique" {
|
|
506
|
-
const unique: (arr: any) => any;
|
|
501
|
+
const unique: (arr: any[]) => any[];
|
|
507
502
|
export { unique };
|
|
508
503
|
}
|
|
509
504
|
declare module "fn/getAllTags" {
|
|
510
|
-
const getAllTags: () => any;
|
|
505
|
+
const getAllTags: () => any[];
|
|
511
506
|
export { getAllTags };
|
|
512
507
|
}
|
|
513
508
|
declare module "fn/getAncestors" {
|
|
514
|
-
const getAncestors: (ele:
|
|
509
|
+
const getAncestors: (ele: Element | String, selector?: true | string) => Element[];
|
|
515
510
|
export { getAncestors };
|
|
516
511
|
}
|
|
517
512
|
declare module "fn/getAttributes" {
|
|
@@ -543,7 +538,7 @@ declare module "fn/getDeviceType" {
|
|
|
543
538
|
export { getDeviceType };
|
|
544
539
|
}
|
|
545
540
|
declare module "fn/getHTMLOfSelection" {
|
|
546
|
-
const getHTMLOfSelection: () =>
|
|
541
|
+
const getHTMLOfSelection: () => string;
|
|
547
542
|
export { getHTMLOfSelection };
|
|
548
543
|
}
|
|
549
544
|
declare module "fn/getEventData" {
|
|
@@ -551,15 +546,15 @@ declare module "fn/getEventData" {
|
|
|
551
546
|
export { getEventData };
|
|
552
547
|
}
|
|
553
548
|
declare module "fn/getField" {
|
|
554
|
-
const getField: (arr: any, field:
|
|
549
|
+
const getField: (arr: any[], field: string, prop?: object | string, val?: any, operator?: string) => any;
|
|
555
550
|
export { getField };
|
|
556
551
|
}
|
|
557
552
|
declare module "fn/getFieldValues" {
|
|
558
|
-
const getFieldValues: (arr:
|
|
553
|
+
const getFieldValues: (arr: object[], field: string, prop: any, val: any, operator: any) => any[];
|
|
559
554
|
export { getFieldValues };
|
|
560
555
|
}
|
|
561
556
|
declare module "fn/removeHtmlComments" {
|
|
562
|
-
const removeHtmlComments: (str:
|
|
557
|
+
const removeHtmlComments: (str: string) => string;
|
|
563
558
|
export { removeHtmlComments };
|
|
564
559
|
}
|
|
565
560
|
declare module "fn/getHtml" {
|
|
@@ -567,7 +562,7 @@ declare module "fn/getHtml" {
|
|
|
567
562
|
export { getHtml };
|
|
568
563
|
}
|
|
569
564
|
declare module "fn/getPath" {
|
|
570
|
-
const getPath: (element: any) =>
|
|
565
|
+
const getPath: (element: any) => string;
|
|
571
566
|
export { getPath };
|
|
572
567
|
}
|
|
573
568
|
declare module "fn/getProp" {
|
|
@@ -579,7 +574,7 @@ declare module "fn/getScrollBarSize" {
|
|
|
579
574
|
export { getScrollBarSize };
|
|
580
575
|
}
|
|
581
576
|
declare module "fn/getText" {
|
|
582
|
-
const getText: (ele: any) =>
|
|
577
|
+
const getText: (ele: any) => string;
|
|
583
578
|
export { getText };
|
|
584
579
|
}
|
|
585
580
|
declare module "fn/getTimeoff" {
|
|
@@ -603,7 +598,7 @@ declare module "fn/history" {
|
|
|
603
598
|
export { history };
|
|
604
599
|
}
|
|
605
600
|
declare module "fn/html2text" {
|
|
606
|
-
const html2text: (st: any) =>
|
|
601
|
+
const html2text: (st: any) => string;
|
|
607
602
|
export { html2text };
|
|
608
603
|
}
|
|
609
604
|
declare module "fn/imageToCanvas" {
|
|
@@ -611,7 +606,7 @@ declare module "fn/imageToCanvas" {
|
|
|
611
606
|
export { imageToCanvas };
|
|
612
607
|
}
|
|
613
608
|
declare module "fn/imgToBase64" {
|
|
614
|
-
const imgToBase64: (img: any) =>
|
|
609
|
+
const imgToBase64: (img: any, type?: string) => string;
|
|
615
610
|
export { imgToBase64 };
|
|
616
611
|
}
|
|
617
612
|
declare module "fn/info" {
|
|
@@ -619,24 +614,23 @@ declare module "fn/info" {
|
|
|
619
614
|
export { info };
|
|
620
615
|
}
|
|
621
616
|
declare module "fn/treatAjaxArguments" {
|
|
622
|
-
const treatAjaxArguments: (args: any) =>
|
|
617
|
+
const treatAjaxArguments: (args: any) => BbnAjaxCfg;
|
|
623
618
|
export { treatAjaxArguments };
|
|
624
619
|
}
|
|
625
620
|
declare module "fn/setNavigationVars" {
|
|
626
|
-
const setNavigationVars: (url: any, title: any, data
|
|
621
|
+
const setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
|
|
627
622
|
export { setNavigationVars };
|
|
628
623
|
}
|
|
629
624
|
declare module "fn/link" {
|
|
630
|
-
|
|
631
|
-
const link: () => any;
|
|
625
|
+
const link: (...args: any[]) => any;
|
|
632
626
|
export { link };
|
|
633
627
|
}
|
|
634
628
|
declare module "fn/post" {
|
|
635
|
-
const post: () => any;
|
|
629
|
+
const post: (...args: any[]) => any;
|
|
636
630
|
export { post };
|
|
637
631
|
}
|
|
638
632
|
declare module "fn/submit" {
|
|
639
|
-
const submit: (form:
|
|
633
|
+
const submit: (form: HTMLFormElement, e?: Event, fn?: Function) => void;
|
|
640
634
|
export { submit };
|
|
641
635
|
}
|
|
642
636
|
declare module "fn/resize" {
|
|
@@ -668,7 +662,7 @@ declare module "fn/isBoolean" {
|
|
|
668
662
|
export { isBoolean };
|
|
669
663
|
}
|
|
670
664
|
declare module "fn/isColor" {
|
|
671
|
-
const isColor: (
|
|
665
|
+
const isColor: (...args: any[]) => boolean;
|
|
672
666
|
export { isColor };
|
|
673
667
|
}
|
|
674
668
|
declare module "fn/isComment" {
|
|
@@ -684,11 +678,11 @@ declare module "fn/isValidDimension" {
|
|
|
684
678
|
export { isValidDimension };
|
|
685
679
|
}
|
|
686
680
|
declare module "fn/isDimension" {
|
|
687
|
-
const isDimension: (
|
|
681
|
+
const isDimension: (...args: any[]) => boolean;
|
|
688
682
|
export { isDimension };
|
|
689
683
|
}
|
|
690
684
|
declare module "fn/isEmail" {
|
|
691
|
-
const isEmail: (
|
|
685
|
+
const isEmail: (...args: any[]) => boolean;
|
|
692
686
|
export { isEmail };
|
|
693
687
|
}
|
|
694
688
|
declare module "fn/isEvent" {
|
|
@@ -696,7 +690,7 @@ declare module "fn/isEvent" {
|
|
|
696
690
|
export { isEvent };
|
|
697
691
|
}
|
|
698
692
|
declare module "fn/isFocused" {
|
|
699
|
-
const isFocused: (ele:
|
|
693
|
+
const isFocused: (ele: HTMLElement, contain?: boolean) => boolean;
|
|
700
694
|
export { isFocused };
|
|
701
695
|
}
|
|
702
696
|
declare module "fn/isIP" {
|
|
@@ -744,7 +738,7 @@ declare module "fn/isValidName" {
|
|
|
744
738
|
export { isValidName };
|
|
745
739
|
}
|
|
746
740
|
declare module "fn/isVue" {
|
|
747
|
-
const isVue: (...args: any[]) =>
|
|
741
|
+
const isVue: (...args: any[]) => boolean;
|
|
748
742
|
export { isVue };
|
|
749
743
|
}
|
|
750
744
|
declare module "fn/lightenDarkenHex" {
|
|
@@ -752,37 +746,35 @@ declare module "fn/lightenDarkenHex" {
|
|
|
752
746
|
export { lightenDarkenHex };
|
|
753
747
|
}
|
|
754
748
|
declare module "fn/warning" {
|
|
755
|
-
const warning: (message:
|
|
749
|
+
const warning: (message: string) => void;
|
|
756
750
|
export { warning };
|
|
757
751
|
}
|
|
758
752
|
declare module "fn/makeReactive" {
|
|
759
|
-
import { makeReactive } from "fn/makeReactive";
|
|
760
753
|
const makeReactive: (obj: any, onSet: any, parent: any, parentProp: any) => any;
|
|
761
754
|
export { makeReactive };
|
|
762
755
|
}
|
|
763
756
|
declare module "fn/map" {
|
|
764
|
-
import { map } from "fn/map";
|
|
765
757
|
const map: (arr: any, fn: any, deepProp: any, level?: number) => any;
|
|
766
758
|
export { map };
|
|
767
759
|
}
|
|
768
760
|
declare module "fn/money" {
|
|
769
|
-
const money: (val:
|
|
761
|
+
const money: (val: number, kilo?: boolean, currency?: string, novalue?: string | false, decimal?: string, thousands?: string, precision?: number) => string;
|
|
770
762
|
export { money };
|
|
771
763
|
}
|
|
772
764
|
declare module "fn/move" {
|
|
773
|
-
const move: (arr: any, fromIndex:
|
|
765
|
+
const move: (arr: any[], fromIndex: number, toIndex: number) => any[];
|
|
774
766
|
export { move };
|
|
775
767
|
}
|
|
776
768
|
declare module "fn/multiorder" {
|
|
777
|
-
const multiorder: (arr:
|
|
769
|
+
const multiorder: (arr: object[], orders: object | BbnOrderItem[]) => object[];
|
|
778
770
|
export { multiorder };
|
|
779
771
|
}
|
|
780
772
|
declare module "fn/nl2br" {
|
|
781
|
-
const nl2br: (st: any, keepNl: any) =>
|
|
773
|
+
const nl2br: (st: any, keepNl: any) => string;
|
|
782
774
|
export { nl2br };
|
|
783
775
|
}
|
|
784
776
|
declare module "fn/objectToFormData" {
|
|
785
|
-
const objectToFormData: (obj:
|
|
777
|
+
const objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
|
|
786
778
|
export { objectToFormData };
|
|
787
779
|
}
|
|
788
780
|
declare module "fn/order" {
|
|
@@ -790,15 +782,15 @@ declare module "fn/order" {
|
|
|
790
782
|
export { order };
|
|
791
783
|
}
|
|
792
784
|
declare module "fn/selector" {
|
|
793
|
-
const selector: (ele:
|
|
785
|
+
const selector: (ele: string | HTMLElement) => HTMLElement | undefined;
|
|
794
786
|
export { selector };
|
|
795
787
|
}
|
|
796
788
|
declare module "fn/outerHeight" {
|
|
797
|
-
const outerHeight: (ele:
|
|
789
|
+
const outerHeight: (ele: HTMLElement) => number | false;
|
|
798
790
|
export { outerHeight };
|
|
799
791
|
}
|
|
800
792
|
declare module "fn/outerWidth" {
|
|
801
|
-
const outerWidth: (ele:
|
|
793
|
+
const outerWidth: (ele: HTMLElement) => number | false;
|
|
802
794
|
export { outerWidth };
|
|
803
795
|
}
|
|
804
796
|
declare module "fn/percent" {
|
|
@@ -806,11 +798,11 @@ declare module "fn/percent" {
|
|
|
806
798
|
export { percent };
|
|
807
799
|
}
|
|
808
800
|
declare module "fn/pickValue" {
|
|
809
|
-
const pickValue: (arr: any) => any;
|
|
801
|
+
const pickValue: (arr: any[]) => any;
|
|
810
802
|
export { pickValue };
|
|
811
803
|
}
|
|
812
804
|
declare module "fn/postOut" {
|
|
813
|
-
const postOut: (url:
|
|
805
|
+
const postOut: (url: string, data: BbnBasicObject, success?: () => any, target?: string) => void;
|
|
814
806
|
export { postOut };
|
|
815
807
|
}
|
|
816
808
|
declare module "fn/printf" {
|
|
@@ -818,31 +810,31 @@ declare module "fn/printf" {
|
|
|
818
810
|
export { printf };
|
|
819
811
|
}
|
|
820
812
|
declare module "fn/quotes2html" {
|
|
821
|
-
const quotes2html: (st:
|
|
813
|
+
const quotes2html: (st: string, type?: string) => string;
|
|
822
814
|
export { quotes2html };
|
|
823
815
|
}
|
|
824
816
|
declare module "fn/randomInt" {
|
|
825
|
-
const randomInt: (min:
|
|
817
|
+
const randomInt: (min: number, max: number) => number;
|
|
826
818
|
export { randomInt };
|
|
827
819
|
}
|
|
828
820
|
declare module "fn/randomString" {
|
|
829
|
-
const randomString: (min
|
|
821
|
+
const randomString: (min?: number, max?: string | number, types?: string) => string;
|
|
830
822
|
export { randomString };
|
|
831
823
|
}
|
|
832
824
|
declare module "fn/removeEmpty" {
|
|
833
|
-
const removeEmpty: (arr: any) => any[];
|
|
825
|
+
const removeEmpty: (arr: any[]) => any[];
|
|
834
826
|
export { removeEmpty };
|
|
835
827
|
}
|
|
836
828
|
declare module "fn/removeExtraSpaces" {
|
|
837
|
-
const removeExtraSpaces: (str:
|
|
829
|
+
const removeExtraSpaces: (str: string) => string;
|
|
838
830
|
export { removeExtraSpaces };
|
|
839
831
|
}
|
|
840
832
|
declare module "fn/removeTrailingChars" {
|
|
841
|
-
const removeTrailingChars: (st:
|
|
833
|
+
const removeTrailingChars: (st: string, char?: string) => string;
|
|
842
834
|
export { removeTrailingChars };
|
|
843
835
|
}
|
|
844
836
|
declare module "fn/repeat" {
|
|
845
|
-
const repeat: (st:
|
|
837
|
+
const repeat: (st: string, num: number) => string;
|
|
846
838
|
export { repeat };
|
|
847
839
|
}
|
|
848
840
|
declare module "fn/replaceSelection" {
|
|
@@ -854,11 +846,11 @@ declare module "fn/rgb2hex" {
|
|
|
854
846
|
export { rgb2hex };
|
|
855
847
|
}
|
|
856
848
|
declare module "fn/riterate" {
|
|
857
|
-
const riterate: (obj:
|
|
849
|
+
const riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
|
|
858
850
|
export { riterate };
|
|
859
851
|
}
|
|
860
852
|
declare module "fn/roundDecimal" {
|
|
861
|
-
const roundDecimal: (value:
|
|
853
|
+
const roundDecimal: (value: number, decimals: number) => number;
|
|
862
854
|
export { roundDecimal };
|
|
863
855
|
}
|
|
864
856
|
declare module "fn/trim" {
|
|
@@ -870,7 +862,7 @@ declare module "fn/sanitize" {
|
|
|
870
862
|
export { sanitize };
|
|
871
863
|
}
|
|
872
864
|
declare module "fn/selectElementText" {
|
|
873
|
-
const selectElementText: (ele:
|
|
865
|
+
const selectElementText: (ele: HTMLElement, win?: Window) => void;
|
|
874
866
|
export { selectElementText };
|
|
875
867
|
}
|
|
876
868
|
declare module "fn/setCookie" {
|
|
@@ -882,52 +874,48 @@ declare module "fn/setCssVar" {
|
|
|
882
874
|
export { setCssVar };
|
|
883
875
|
}
|
|
884
876
|
declare module "fn/setProp" {
|
|
885
|
-
const setProp: (obj:
|
|
877
|
+
const setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
|
|
886
878
|
export { setProp };
|
|
887
879
|
}
|
|
888
880
|
declare module "fn/setProperty" {
|
|
889
|
-
const setProperty: (obj:
|
|
881
|
+
const setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
|
|
890
882
|
export { setProperty };
|
|
891
883
|
}
|
|
892
884
|
declare module "fn/shorten" {
|
|
893
|
-
const shorten: (st:
|
|
885
|
+
const shorten: (st: string, len?: number, adj?: string) => string;
|
|
894
886
|
export { shorten };
|
|
895
887
|
}
|
|
896
888
|
declare module "fn/shortenObj" {
|
|
897
|
-
|
|
898
|
-
const shortenObj: (obj: any, max?: number) => any;
|
|
889
|
+
const shortenObj: (obj: any, max?: number) => object;
|
|
899
890
|
export { shortenObj };
|
|
900
891
|
}
|
|
901
892
|
declare module "fn/shuffle" {
|
|
902
|
-
const shuffle: (array: any) => any;
|
|
893
|
+
const shuffle: (array: any[]) => any[];
|
|
903
894
|
export { shuffle };
|
|
904
895
|
}
|
|
905
|
-
declare module "fn/
|
|
896
|
+
declare module "fn/chrono" {
|
|
906
897
|
const startChrono: (name: any) => void;
|
|
907
|
-
|
|
898
|
+
const stopChrono: (name: any) => number;
|
|
899
|
+
export { startChrono, stopChrono };
|
|
908
900
|
}
|
|
909
901
|
declare module "fn/stat" {
|
|
910
|
-
const stat: (returnStat: any) =>
|
|
902
|
+
const stat: (returnStat: any) => void;
|
|
911
903
|
export { stat };
|
|
912
904
|
}
|
|
913
|
-
declare module "fn/stopChrono" {
|
|
914
|
-
const stopChrono: (name: any) => number;
|
|
915
|
-
export { stopChrono };
|
|
916
|
-
}
|
|
917
905
|
declare module "fn/string2ArrayBuffer" {
|
|
918
|
-
const string2ArrayBuffer: (str:
|
|
906
|
+
const string2ArrayBuffer: (str: string) => ArrayBuffer;
|
|
919
907
|
export { string2ArrayBuffer };
|
|
920
908
|
}
|
|
921
909
|
declare module "fn/sum" {
|
|
922
|
-
const sum: (arr:
|
|
910
|
+
const sum: (arr: object[], numberProp: string | ((a: any) => any), prop: object | string, val?: any, operator?: string) => number;
|
|
923
911
|
export { sum };
|
|
924
912
|
}
|
|
925
913
|
declare module "fn/timestamp" {
|
|
926
|
-
const timestamp: (seconds
|
|
914
|
+
const timestamp: (seconds?: boolean) => number;
|
|
927
915
|
export { timestamp };
|
|
928
916
|
}
|
|
929
917
|
declare module "fn/toCSV" {
|
|
930
|
-
const toCSV: (arr: any, valSep?: string, rowSep?: string, valEsc?: string) => string;
|
|
918
|
+
const toCSV: (arr: any[], valSep?: string, rowSep?: string, valEsc?: string) => string;
|
|
931
919
|
export { toCSV };
|
|
932
920
|
}
|
|
933
921
|
declare module "fn/toggleFullScreen" {
|
|
@@ -935,7 +923,7 @@ declare module "fn/toggleFullScreen" {
|
|
|
935
923
|
export { toggleFullScreen };
|
|
936
924
|
}
|
|
937
925
|
declare module "fn/translate" {
|
|
938
|
-
const translate: (o:
|
|
926
|
+
const translate: (o: object, namespace?: string) => void;
|
|
939
927
|
export { translate };
|
|
940
928
|
}
|
|
941
929
|
declare module "fn/uniqString" {
|
|
@@ -943,7 +931,7 @@ declare module "fn/uniqString" {
|
|
|
943
931
|
export { uniqString };
|
|
944
932
|
}
|
|
945
933
|
declare module "fn/upload" {
|
|
946
|
-
const upload: (url:
|
|
934
|
+
const upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
|
|
947
935
|
export { upload };
|
|
948
936
|
}
|
|
949
937
|
declare module "index" {
|
|
@@ -957,7 +945,7 @@ declare module "index" {
|
|
|
957
945
|
* @param {String} st
|
|
958
946
|
* @returns {String}
|
|
959
947
|
*/
|
|
960
|
-
const _: (
|
|
948
|
+
const _: (...args: any[]) => string;
|
|
961
949
|
const $: (selector: any, context: any) => any;
|
|
962
950
|
const _popups: any[];
|
|
963
951
|
const lng: {
|
|
@@ -1034,6 +1022,7 @@ declare module "index" {
|
|
|
1034
1022
|
red: string;
|
|
1035
1023
|
brown: string;
|
|
1036
1024
|
};
|
|
1025
|
+
reserved: string[];
|
|
1037
1026
|
mockText: string;
|
|
1038
1027
|
regexp: {
|
|
1039
1028
|
url: RegExp;
|
|
@@ -1076,16 +1065,16 @@ declare module "index" {
|
|
|
1076
1065
|
const fn: {
|
|
1077
1066
|
_addLoader: (requestId: any, prom: any, source: any) => number;
|
|
1078
1067
|
_compareValues: (a: any, b: any, prop: any, dir?: string) => 0 | 1 | -1;
|
|
1079
|
-
_deleteLoader: (requestId:
|
|
1068
|
+
_deleteLoader: (requestId: string, res?: any, isAbort?: boolean) => boolean;
|
|
1080
1069
|
abort: (requestId: any) => void;
|
|
1081
1070
|
abortURL: (url: any) => void;
|
|
1082
|
-
addColors: (colors:
|
|
1083
|
-
addInputs: (form:
|
|
1071
|
+
addColors: (colors: object) => void;
|
|
1072
|
+
addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
|
|
1084
1073
|
addStyle: (ele: any, o: any) => void;
|
|
1085
1074
|
adjustHeight: () => void;
|
|
1086
1075
|
adjustSize: (type: any, eles: any) => void;
|
|
1087
1076
|
adjustWidth: () => void;
|
|
1088
|
-
ajax: (url: any, datatype:
|
|
1077
|
+
ajax: (url: any, datatype: string, data: any, success?: (data: object, headers?: object) => any, failure?: (url: string, o?: object) => any, abort?: (message: string, url: string) => any) => any;
|
|
1089
1078
|
analyzeFunction: (fn: any) => {
|
|
1090
1079
|
body: any;
|
|
1091
1080
|
args: any[];
|
|
@@ -1100,21 +1089,18 @@ declare module "index" {
|
|
|
1100
1089
|
arrayBuffer2String: (buf: any) => any;
|
|
1101
1090
|
arrayFromProp: (arr: any, prop: any) => any[];
|
|
1102
1091
|
autoExtend: (namespace: any, obj: any) => void;
|
|
1103
|
-
baseName: (path:
|
|
1104
|
-
br2nl: (st: any) =>
|
|
1092
|
+
baseName: (path: string, suffix?: string) => string;
|
|
1093
|
+
br2nl: (st: any) => string;
|
|
1105
1094
|
calendar: (d: any, wrong_result: any) => any;
|
|
1106
|
-
callback: (url:
|
|
1095
|
+
callback: (url: string, res?: BbnAjaxResult, fn?: (a: BbnAjaxResult, b?: HTMLElement) => any, fn2?: (a: BbnAjaxResult) => any, ele?: HTMLElement | HTMLInputElement | HTMLTextAreaElement) => boolean;
|
|
1107
1096
|
camelize: (str: any) => any;
|
|
1108
1097
|
camelToCss: (str: any) => any;
|
|
1109
1098
|
canvasToImage: (canvas: any) => HTMLImageElement;
|
|
1110
1099
|
center: (ele: any) => any;
|
|
1111
|
-
checkProps: (obj:
|
|
1112
|
-
checkPropsDetails: (obj:
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
};
|
|
1116
|
-
checkPropsOrDie: (obj: any, props: any, checkEmpty: any) => boolean;
|
|
1117
|
-
checkType: (value: any, type: any, msg: any, ...logs: any[]) => void;
|
|
1100
|
+
checkProps: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
|
|
1101
|
+
checkPropsDetails: (obj: object, props: string | string[], checkEmpty?: boolean) => BbnResError;
|
|
1102
|
+
checkPropsOrDie: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
|
|
1103
|
+
checkType: (value: any, type: string | object, msg?: string, ...logs: any[]) => void;
|
|
1118
1104
|
circularReplacer: () => (key: any, value: any) => any;
|
|
1119
1105
|
clone: (obj: any) => any;
|
|
1120
1106
|
colorToHex: (color: any) => string | CanvasGradient | CanvasPattern;
|
|
@@ -1122,31 +1108,31 @@ declare module "index" {
|
|
|
1122
1108
|
compareConditions: (data: any, filter: any) => boolean;
|
|
1123
1109
|
copy: (st: any) => Promise<unknown>;
|
|
1124
1110
|
correctCase: (str: any) => any;
|
|
1125
|
-
count: (arr: any, prop:
|
|
1111
|
+
count: (arr: any[], prop: string | object, val?: any, operator?: string) => number;
|
|
1126
1112
|
crc32: (str: any) => number;
|
|
1127
|
-
createObject: () => any;
|
|
1113
|
+
createObject: (...args: any[]) => any;
|
|
1128
1114
|
cssExists: (f: any) => boolean;
|
|
1129
1115
|
date: (v: any) => any;
|
|
1130
1116
|
dateSQL: (v: any, dayOnly: any) => any;
|
|
1131
1117
|
daysInMonth: (v: any) => any;
|
|
1132
|
-
deepPath: (arr: any, filter:
|
|
1133
|
-
defaultAjaxAbortFunction: (message:
|
|
1134
|
-
defaultAjaxErrorFunction: (jqXHR: any, textStatus
|
|
1135
|
-
defaultAlertFunction: (
|
|
1136
|
-
defaultConfirmFunction: (text:
|
|
1137
|
-
defaultEndLoadingFunction: (url:
|
|
1118
|
+
deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
|
|
1119
|
+
defaultAjaxAbortFunction: (message: string, url?: string) => void;
|
|
1120
|
+
defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: Error) => boolean;
|
|
1121
|
+
defaultAlertFunction: (msg: string, title?: string) => void;
|
|
1122
|
+
defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
|
|
1123
|
+
defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
|
|
1138
1124
|
defaultErrorFunction: (message: any) => void;
|
|
1139
1125
|
defaultHistoryFunction: (obj: any) => boolean;
|
|
1140
1126
|
defaultLinkFunction: (responseObj: any, ele: any) => boolean;
|
|
1141
|
-
defaultPostLinkFunction: (r:
|
|
1142
|
-
defaultPreLinkFunction: (url:
|
|
1127
|
+
defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
|
|
1128
|
+
defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => string;
|
|
1143
1129
|
defaultResizeFunction: () => boolean;
|
|
1144
|
-
defaultStartLoadingFunction: () =>
|
|
1145
|
-
deleteProp: (obj:
|
|
1146
|
-
diffObj: (obj1:
|
|
1147
|
-
dirName: (path: any) =>
|
|
1148
|
-
download: (url:
|
|
1149
|
-
downloadContent: (filename:
|
|
1130
|
+
defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
|
|
1131
|
+
deleteProp: (obj: object, prop: string) => void;
|
|
1132
|
+
diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
|
|
1133
|
+
dirName: (path: any) => string;
|
|
1134
|
+
download: (url: string, filename?: string | object, params?: object) => any;
|
|
1135
|
+
downloadContent: (filename: string, content: any, type?: string) => void;
|
|
1150
1136
|
each: (arr: any, fn: any) => any;
|
|
1151
1137
|
eraseCookie: (name: any) => void;
|
|
1152
1138
|
error: (errorMsg: any) => never;
|
|
@@ -1155,26 +1141,26 @@ declare module "index" {
|
|
|
1155
1141
|
escapeSquotes: (str: any) => any;
|
|
1156
1142
|
escapeTicks: (str: any) => any;
|
|
1157
1143
|
escapeUrl: (url: any, params: any) => string;
|
|
1158
|
-
extend: () => any;
|
|
1159
|
-
extendOut: () => any;
|
|
1160
|
-
fdate: (d:
|
|
1161
|
-
fdatetime: (d
|
|
1144
|
+
extend: (...originalArgs: (boolean | object)[]) => any;
|
|
1145
|
+
extendOut: (...args: object[]) => any;
|
|
1146
|
+
fdate: (d: string | number | Date, wrong_result?: string | boolean) => any;
|
|
1147
|
+
fdatetime: (d?: string | number | Date, wrong_result?: string | boolean) => any;
|
|
1162
1148
|
fieldValue: (field: any) => any;
|
|
1163
1149
|
fileExt: (filename: any) => any;
|
|
1164
|
-
filter: (arr: any, prop:
|
|
1165
|
-
filterToConditions: (filter: any, operator
|
|
1150
|
+
filter: (arr: any[], prop: string | object, val?: any, operator?: string) => any[];
|
|
1151
|
+
filterToConditions: (filter: any, operator?: string) => import("fn/filterToConditions").Filter;
|
|
1166
1152
|
findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
|
|
1167
|
-
fori: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
1168
|
-
forir: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
1153
|
+
fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
|
|
1154
|
+
forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
|
|
1169
1155
|
format: (str: any) => any;
|
|
1170
1156
|
formatBytes: (bytes: any, decimals?: number) => string;
|
|
1171
1157
|
formatDate: (date: any, format: any) => any;
|
|
1172
1158
|
formatSize: (st: any, noValid: any) => any;
|
|
1173
|
-
formdata: (form:
|
|
1159
|
+
formdata: (form: HTMLFormElement) => {};
|
|
1174
1160
|
fromXml: (xml: any, arrayTags: any) => {};
|
|
1175
1161
|
ftime: (d: any, wrong_result: any) => any;
|
|
1176
|
-
getAllTags: () => any;
|
|
1177
|
-
getAncestors: (ele:
|
|
1162
|
+
getAllTags: () => any[];
|
|
1163
|
+
getAncestors: (ele: String | Element, selector?: string | true) => Element[];
|
|
1178
1164
|
getAttributes: (ele: any) => any;
|
|
1179
1165
|
getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
|
|
1180
1166
|
getBrowserVersion: () => string;
|
|
@@ -1183,30 +1169,30 @@ declare module "index" {
|
|
|
1183
1169
|
getDay: (v: any) => number | false;
|
|
1184
1170
|
getDeviceType: () => "mobile" | "tablet" | "desktop";
|
|
1185
1171
|
getEventData: (e: any) => Promise<unknown>;
|
|
1186
|
-
getField: (arr: any, field:
|
|
1187
|
-
getFieldValues: (arr:
|
|
1172
|
+
getField: (arr: any[], field: string, prop?: string | object, val?: any, operator?: string) => any;
|
|
1173
|
+
getFieldValues: (arr: object[], field: string, prop: any, val: any, operator: any) => any[];
|
|
1188
1174
|
getHtml: (ele: any, stripComments?: boolean) => any;
|
|
1189
|
-
getHTMLOfSelection: () =>
|
|
1190
|
-
getLoader: (requestId:
|
|
1191
|
-
getPath: (element: any) =>
|
|
1175
|
+
getHTMLOfSelection: () => string;
|
|
1176
|
+
getLoader: (requestId: string) => false | Loader;
|
|
1177
|
+
getPath: (element: any) => string;
|
|
1192
1178
|
getProp: (obj: any, prop: any) => any;
|
|
1193
1179
|
getProperty: (obj: any, prop: any) => any;
|
|
1194
1180
|
getRequestId: (url: any, data: any, datatype: any) => string;
|
|
1195
|
-
getRow: (arr: any, prop:
|
|
1181
|
+
getRow: (arr: any[], prop: string | object, val?: any, operator?: string) => any;
|
|
1196
1182
|
getScrollBarSize: () => number;
|
|
1197
|
-
getText: (ele: any) =>
|
|
1183
|
+
getText: (ele: any) => string;
|
|
1198
1184
|
getTimeoff: () => number;
|
|
1199
1185
|
happy: (...args: any[]) => any;
|
|
1200
|
-
hash: (obj: any) =>
|
|
1186
|
+
hash: (obj: any) => string;
|
|
1201
1187
|
hex2rgb: (hex: any) => {
|
|
1202
1188
|
r: number;
|
|
1203
1189
|
g: number;
|
|
1204
1190
|
b: number;
|
|
1205
1191
|
};
|
|
1206
1192
|
history: () => false | History;
|
|
1207
|
-
html2text: (st: any) =>
|
|
1193
|
+
html2text: (st: any) => string;
|
|
1208
1194
|
imageToCanvas: (img: any) => HTMLCanvasElement;
|
|
1209
|
-
imgToBase64: (img: any) =>
|
|
1195
|
+
imgToBase64: (img: any, type?: string) => string;
|
|
1210
1196
|
info: (...args: any[]) => any;
|
|
1211
1197
|
init: (cfg: any, force: any) => void;
|
|
1212
1198
|
isActiveInterface: (secs?: number) => boolean;
|
|
@@ -1214,17 +1200,17 @@ declare module "index" {
|
|
|
1214
1200
|
isBlob: (...args: any[]) => boolean;
|
|
1215
1201
|
isBoolean: (...args: any[]) => boolean;
|
|
1216
1202
|
isCanvas: (...args: any[]) => boolean;
|
|
1217
|
-
isColor: (
|
|
1203
|
+
isColor: (...args: any[]) => boolean;
|
|
1218
1204
|
isComment: (...args: any[]) => boolean;
|
|
1219
1205
|
isCp: (...args: any[]) => boolean;
|
|
1220
1206
|
isDate: (...args: any[]) => boolean;
|
|
1221
1207
|
isDesktopDevice: () => boolean;
|
|
1222
|
-
isDimension: (
|
|
1208
|
+
isDimension: (...args: any[]) => boolean;
|
|
1223
1209
|
isDom: (...args: any[]) => boolean;
|
|
1224
|
-
isEmail: (
|
|
1210
|
+
isEmail: (...args: any[]) => boolean;
|
|
1225
1211
|
isEmpty: (obj: any) => boolean;
|
|
1226
1212
|
isEvent: (...args: any[]) => boolean;
|
|
1227
|
-
isFocused: (ele:
|
|
1213
|
+
isFocused: (ele: HTMLElement, contain?: boolean) => boolean;
|
|
1228
1214
|
isFunction: (...args: any[]) => boolean;
|
|
1229
1215
|
isHostname: (...args: any[]) => boolean;
|
|
1230
1216
|
isInside: (ele: any, ancestor: any) => boolean;
|
|
@@ -1240,7 +1226,7 @@ declare module "index" {
|
|
|
1240
1226
|
isPrimitive: (...args: any[]) => boolean;
|
|
1241
1227
|
isPromise: (...args: any[]) => boolean;
|
|
1242
1228
|
isPropSize: (name: any) => boolean;
|
|
1243
|
-
isSame: (obj1: any, obj2: any, done
|
|
1229
|
+
isSame: (obj1: any, obj2: any, done?: any[]) => boolean;
|
|
1244
1230
|
isSQLDate: (...args: any[]) => boolean;
|
|
1245
1231
|
isString: (...args: any[]) => boolean;
|
|
1246
1232
|
isSymbol: (...args: any[]) => boolean;
|
|
@@ -1249,76 +1235,76 @@ declare module "index" {
|
|
|
1249
1235
|
isValidDimension: (st: any) => boolean;
|
|
1250
1236
|
isValidName: (...args: any[]) => boolean;
|
|
1251
1237
|
isValue: (...args: any[]) => boolean;
|
|
1252
|
-
isVue: (...args: any[]) =>
|
|
1253
|
-
iterate: (obj:
|
|
1238
|
+
isVue: (...args: any[]) => boolean;
|
|
1239
|
+
iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
|
|
1254
1240
|
lightenDarkenHex: (hex: any, amt: any) => string;
|
|
1255
|
-
link: () => any;
|
|
1241
|
+
link: (...args: any[]) => any;
|
|
1256
1242
|
log: (...args: any[]) => any;
|
|
1257
1243
|
makeReactive: (obj: any, onSet: any, parent: any, parentProp: any) => any;
|
|
1258
1244
|
map: (arr: any, fn: any, deepProp: any, level?: number) => any;
|
|
1259
1245
|
md5: (st: any) => string;
|
|
1260
|
-
money: (val:
|
|
1261
|
-
move: (arr: any, fromIndex:
|
|
1262
|
-
multiorder: (arr:
|
|
1263
|
-
nl2br: (st: any, keepNl: any) =>
|
|
1264
|
-
numProperties: (obj:
|
|
1265
|
-
objectToFormData: (obj:
|
|
1246
|
+
money: (val: number, kilo?: boolean, currency?: string, novalue?: string | false, decimal?: string, thousands?: string, precision?: number) => string;
|
|
1247
|
+
move: (arr: any[], fromIndex: number, toIndex: number) => any[];
|
|
1248
|
+
multiorder: (arr: object[], orders: object | BbnOrderItem[]) => object[];
|
|
1249
|
+
nl2br: (st: any, keepNl: any) => string;
|
|
1250
|
+
numProperties: (obj: object) => number;
|
|
1251
|
+
objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
|
|
1266
1252
|
order: (arr: any, prop: any, dir?: string) => any;
|
|
1267
|
-
outerHeight: (ele:
|
|
1268
|
-
outerWidth: (ele:
|
|
1253
|
+
outerHeight: (ele: HTMLElement) => number | false;
|
|
1254
|
+
outerWidth: (ele: HTMLElement) => number | false;
|
|
1269
1255
|
percent: (percent: any, cent: any) => number;
|
|
1270
|
-
pickValue: (arr: any) => any;
|
|
1271
|
-
post: () => any;
|
|
1272
|
-
postOut: (url:
|
|
1256
|
+
pickValue: (arr: any[]) => any;
|
|
1257
|
+
post: (...args: any[]) => any;
|
|
1258
|
+
postOut: (url: string, data: BbnBasicObject, success?: () => any, target?: string) => void;
|
|
1273
1259
|
printf: (format: any) => any;
|
|
1274
|
-
quotes2html: (st:
|
|
1275
|
-
randomInt: (min:
|
|
1276
|
-
randomString: (min
|
|
1277
|
-
removeAccents: (st:
|
|
1278
|
-
removeEmpty: (arr: any) => any[];
|
|
1279
|
-
removeExtraSpaces: (str:
|
|
1280
|
-
removeHtmlComments: (str:
|
|
1281
|
-
removePrivateProp: (obj:
|
|
1282
|
-
removeTrailingChars: (st:
|
|
1283
|
-
repeat: (st:
|
|
1284
|
-
replaceAll: (find:
|
|
1260
|
+
quotes2html: (st: string, type?: string) => string;
|
|
1261
|
+
randomInt: (min: number, max: number) => number;
|
|
1262
|
+
randomString: (min?: number, max?: string | number, types?: string) => string;
|
|
1263
|
+
removeAccents: (st: string) => string;
|
|
1264
|
+
removeEmpty: (arr: any[]) => any[];
|
|
1265
|
+
removeExtraSpaces: (str: string) => string;
|
|
1266
|
+
removeHtmlComments: (str: string) => string;
|
|
1267
|
+
removePrivateProp: (obj: object, deep?: boolean) => any;
|
|
1268
|
+
removeTrailingChars: (st: string, char?: string) => string;
|
|
1269
|
+
repeat: (st: string, num: number) => string;
|
|
1270
|
+
replaceAll: (find: string, replace: string, str: string, flags?: string) => string;
|
|
1285
1271
|
replaceSelection: (html: any, selectInserted: any) => void;
|
|
1286
1272
|
resize: () => void;
|
|
1287
1273
|
rgb2hex: (rgb: any) => string;
|
|
1288
|
-
riterate: (obj:
|
|
1289
|
-
roundDecimal: (value:
|
|
1274
|
+
riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
|
|
1275
|
+
roundDecimal: (value: number, decimals: number) => number;
|
|
1290
1276
|
sanitize: (str: any, separator?: string) => any;
|
|
1291
|
-
search: (arr: any, prop:
|
|
1292
|
-
selectElementText: (ele:
|
|
1293
|
-
selector: (ele:
|
|
1277
|
+
search: (arr: any[], prop: string | object | import("fn/filterToConditions").Filter, val?: any, operator?: string | number, startFrom?: number) => number;
|
|
1278
|
+
selectElementText: (ele: HTMLElement, win?: Window) => void;
|
|
1279
|
+
selector: (ele: string | HTMLElement) => HTMLElement;
|
|
1294
1280
|
setCookie: (name: any, value: any, days: any) => void;
|
|
1295
1281
|
setCssVar: (varname: any, value: any) => void;
|
|
1296
|
-
setNavigationVars: (url: any, title: any, data
|
|
1297
|
-
setProp: (obj:
|
|
1298
|
-
setProperty: (obj:
|
|
1299
|
-
shorten: (st:
|
|
1300
|
-
shortenObj: (obj: any, max?: number) =>
|
|
1301
|
-
shuffle: (array: any) => any;
|
|
1302
|
-
simpleHash: (str: any) =>
|
|
1303
|
-
simpleHash1: (str:
|
|
1304
|
-
simpleHash2: (str:
|
|
1282
|
+
setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
|
|
1283
|
+
setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
|
|
1284
|
+
setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
|
|
1285
|
+
shorten: (st: string, len?: number, adj?: string) => string;
|
|
1286
|
+
shortenObj: (obj: any, max?: number) => object;
|
|
1287
|
+
shuffle: (array: any[]) => any[];
|
|
1288
|
+
simpleHash: (str: any) => string;
|
|
1289
|
+
simpleHash1: (str: string) => number;
|
|
1290
|
+
simpleHash2: (str: string) => number;
|
|
1305
1291
|
startChrono: (name: any) => void;
|
|
1306
|
-
stat: (returnStat: any) =>
|
|
1292
|
+
stat: (returnStat: any) => void;
|
|
1307
1293
|
stopChrono: (name: any) => number;
|
|
1308
|
-
string2ArrayBuffer: (str:
|
|
1309
|
-
submit: (form:
|
|
1310
|
-
substr: (str:
|
|
1311
|
-
sum: (arr:
|
|
1312
|
-
timestamp: (seconds
|
|
1313
|
-
toCSV: (arr: any, valSep?: string, rowSep?: string, valEsc?: string) => string;
|
|
1294
|
+
string2ArrayBuffer: (str: string) => ArrayBuffer;
|
|
1295
|
+
submit: (form: HTMLFormElement, e?: Event, fn?: Function) => void;
|
|
1296
|
+
substr: (str: string, from: number, length?: number) => string;
|
|
1297
|
+
sum: (arr: object[], numberProp: string | ((a: any) => any), prop: string | object, val?: any, operator?: string) => number;
|
|
1298
|
+
timestamp: (seconds?: boolean) => number;
|
|
1299
|
+
toCSV: (arr: any[], valSep?: string, rowSep?: string, valEsc?: string) => string;
|
|
1314
1300
|
toggleFullScreen: () => void;
|
|
1315
|
-
translate: (o:
|
|
1316
|
-
treatAjaxArguments: (args: any) =>
|
|
1301
|
+
translate: (o: object, namespace?: string) => void;
|
|
1302
|
+
treatAjaxArguments: (args: any) => BbnAjaxCfg;
|
|
1317
1303
|
trim: (str: any, hair?: string) => any;
|
|
1318
1304
|
uniqString: (...args: any[]) => string;
|
|
1319
|
-
unique: (arr: any) => any;
|
|
1320
|
-
upload: (url:
|
|
1321
|
-
warning: (message:
|
|
1305
|
+
unique: (arr: any[]) => any[];
|
|
1306
|
+
upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
|
|
1307
|
+
warning: (message: string) => void;
|
|
1322
1308
|
};
|
|
1323
1309
|
export { version, opt, _, $, _popups, lng, app, vars, env, fn };
|
|
1324
1310
|
}
|