@bbn/bbn 1.0.56 → 1.0.57

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/$.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ declare const $: (selector: any, context: any) => any;
2
+ export { $ };
package/dist/$.js ADDED
@@ -0,0 +1,7 @@
1
+ const $ = (selector, context) => {
2
+ if (context?.querySelectorAll) {
3
+ return context.querySelectorAll(selector);
4
+ }
5
+ return document.body.querySelectorAll(selector);
6
+ };
7
+ export { $ };
package/dist/_.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Translate an expression using the object bbn.lng
3
+ *
4
+ * @param {String} st
5
+ * @returns {String}
6
+ */
7
+ declare const _: (...args: any[]) => string;
8
+ export { _ };
package/dist/_.js ADDED
@@ -0,0 +1,24 @@
1
+ import { checkType } from './fn/checkType';
2
+ /**
3
+ * Translate an expression using the object bbn.lng
4
+ *
5
+ * @param {String} st
6
+ * @returns {String}
7
+ */
8
+ const _ = (...args) => {
9
+ let st = args.shift();
10
+ let res = bbn.lng[st] || st;
11
+ if (args.length) {
12
+ let i = 0;
13
+ return res.replace(/\%([d|s])/g, (match, type) => {
14
+ let tmp = args[i++];
15
+ if (!tmp) {
16
+ tmp = type === 'd' ? 0 : '';
17
+ }
18
+ checkType(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
19
+ return tmp;
20
+ });
21
+ }
22
+ return res;
23
+ };
24
+ export { _ };
package/dist/bundle.d.ts CHANGED
@@ -1,3 +1,15 @@
1
+ declare module "fn/isArray" {
2
+ const isArray: (...args: any[]) => boolean;
3
+ export { isArray };
4
+ }
5
+ declare module "fn/isNumber" {
6
+ const isNumber: (...args: any[]) => boolean;
7
+ export { isNumber };
8
+ }
9
+ declare module "fn/isIterable" {
10
+ const isIterable: (v: any) => boolean;
11
+ export { isIterable };
12
+ }
1
13
  declare module "fn/isString" {
2
14
  const isString: (...args: any[]) => boolean;
3
15
  export { isString };
@@ -18,6 +30,164 @@ declare module "fn/substr" {
18
30
  const substr: (str: string, from: number, length?: number) => string;
19
31
  export { substr };
20
32
  }
33
+ declare module "fn/removePrivateProp" {
34
+ const removePrivateProp: (obj: object, deep?: boolean) => any;
35
+ export { removePrivateProp };
36
+ }
37
+ declare module "fn/iterate" {
38
+ const iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
39
+ export { iterate };
40
+ }
41
+ declare module "fn/each" {
42
+ const each: (arr: any, fn: any) => any;
43
+ export { each };
44
+ }
45
+ declare module "fn/correctCase" {
46
+ const correctCase: (str: any) => any;
47
+ export { correctCase };
48
+ }
49
+ declare module "fn/error" {
50
+ const error: (errorMsg: any) => never;
51
+ export { error };
52
+ }
53
+ declare module "fn/checkType" {
54
+ const checkType: (value: any, type: object | string, msg?: string, ...logs: any[]) => void;
55
+ export { checkType };
56
+ }
57
+ declare module "_" {
58
+ /**
59
+ * Translate an expression using the object bbn.lng
60
+ *
61
+ * @param {String} st
62
+ * @returns {String}
63
+ */
64
+ const _: (...args: any[]) => string;
65
+ export { _ };
66
+ }
67
+ declare module "$" {
68
+ const $: (selector: any, context: any) => any;
69
+ export { $ };
70
+ }
71
+ declare module "lng" {
72
+ const lng: {
73
+ select_unselect_all: string;
74
+ select_all: string;
75
+ search: string;
76
+ loading: string;
77
+ choose: string;
78
+ error: string;
79
+ server_response: string;
80
+ reload: string;
81
+ errorText: string;
82
+ closeAll: string;
83
+ closeOthers: string;
84
+ pin: string;
85
+ arrange: string;
86
+ cancel: string;
87
+ unpin: string;
88
+ yes: string;
89
+ no: string;
90
+ unknown: string;
91
+ untitled: string;
92
+ confirmation: string;
93
+ Today: string;
94
+ Tomorrow: string;
95
+ Yesterday: string;
96
+ };
97
+ export { lng };
98
+ }
99
+ declare module "vars" {
100
+ const vars: {
101
+ loggers: {
102
+ _num: number;
103
+ };
104
+ datatypes: string[];
105
+ shortenLen: number;
106
+ keys: {
107
+ upDown: number[];
108
+ leftRight: number[];
109
+ dels: number[];
110
+ confirm: number[];
111
+ alt: number[];
112
+ numbers: number[];
113
+ numsigns: number[];
114
+ };
115
+ comparators: string[];
116
+ operators: string[];
117
+ tags: string[];
118
+ colors: {
119
+ darkgrey: string;
120
+ black: string;
121
+ anthracite: string;
122
+ grey: string;
123
+ white: string;
124
+ beige: string;
125
+ lightgrey: string;
126
+ pastelblue: string;
127
+ cyan: string;
128
+ blue: string;
129
+ indigo: string;
130
+ navy: string;
131
+ webblue: string;
132
+ teal: string;
133
+ turquoise: string;
134
+ pastelgreen: string;
135
+ palegreen: string;
136
+ green: string;
137
+ olive: string;
138
+ pastelorange: string;
139
+ yellow: string;
140
+ orange: string;
141
+ pink: string;
142
+ purple: string;
143
+ red: string;
144
+ brown: string;
145
+ };
146
+ reserved: string[];
147
+ mockText: string;
148
+ regexp: {
149
+ url: RegExp;
150
+ ip: RegExp;
151
+ hostname: RegExp;
152
+ };
153
+ };
154
+ export { vars };
155
+ }
156
+ declare module "env" {
157
+ const env: {
158
+ siteTitle: string;
159
+ logging: boolean;
160
+ cdn: string;
161
+ lang: string;
162
+ host: string;
163
+ url: string;
164
+ old_path: any;
165
+ loading: boolean;
166
+ width: number;
167
+ height: number;
168
+ focused: boolean;
169
+ last_focus: number;
170
+ sleep: boolean;
171
+ /**
172
+ * @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
173
+ * for preventing the same call to be made at the same time
174
+ **/
175
+ loaders: any[];
176
+ loadersHistory: any[];
177
+ maxLoadersHistory: number;
178
+ resizeTimer: boolean;
179
+ hashChanged: number;
180
+ params: any[];
181
+ isInit: boolean;
182
+ isFocused: boolean;
183
+ timeoff: number;
184
+ loggingLevel: number;
185
+ ignoreUnload: boolean;
186
+ historyDisabled: boolean;
187
+ nav: string;
188
+ };
189
+ export { env };
190
+ }
21
191
  declare module "fn/_addLoader" {
22
192
  const _addLoader: (requestId: any, prom: any, source: any) => number;
23
193
  export { _addLoader };
@@ -38,30 +208,6 @@ declare module "fn/_compareValues" {
38
208
  const _compareValues: (a: any, b: any, prop: any, dir?: string) => 0 | 1 | -1;
39
209
  export { _compareValues };
40
210
  }
41
- declare module "fn/isIterable" {
42
- const isIterable: (v: any) => boolean;
43
- export { isIterable };
44
- }
45
- declare module "fn/isArray" {
46
- const isArray: (...args: any[]) => boolean;
47
- export { isArray };
48
- }
49
- declare module "fn/isNumber" {
50
- const isNumber: (...args: any[]) => boolean;
51
- export { isNumber };
52
- }
53
- declare module "fn/removePrivateProp" {
54
- const removePrivateProp: (obj: object, deep?: boolean) => any;
55
- export { removePrivateProp };
56
- }
57
- declare module "fn/iterate" {
58
- const iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
59
- export { iterate };
60
- }
61
- declare module "fn/each" {
62
- const each: (arr: any, fn: any) => any;
63
- export { each };
64
- }
65
211
  declare module "fn/numProperties" {
66
212
  const numProperties: (obj: object) => number;
67
213
  export { numProperties };
@@ -278,10 +424,6 @@ declare module "fn/calendar" {
278
424
  const calendar: (d?: Date | number | string, wrong_result?: string) => any;
279
425
  export { calendar };
280
426
  }
281
- declare module "fn/error" {
282
- const error: (errorMsg: any) => never;
283
- export { error };
284
- }
285
427
  declare module "fn/defaultLinkFunction" {
286
428
  const defaultLinkFunction: (responseObj: any, ele: any) => boolean;
287
429
  export { defaultLinkFunction };
@@ -326,14 +468,6 @@ declare module "fn/checkPropsOrDie" {
326
468
  const checkPropsOrDie: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
327
469
  export { checkPropsOrDie };
328
470
  }
329
- declare module "fn/correctCase" {
330
- const correctCase: (str: any) => any;
331
- export { correctCase };
332
- }
333
- declare module "fn/checkType" {
334
- const checkType: (value: any, type: object | string, msg?: string, ...logs: any[]) => void;
335
- export { checkType };
336
- }
337
471
  declare module "fn/clone" {
338
472
  const clone: (obj: any) => any;
339
473
  export { clone };
@@ -935,6 +1069,253 @@ declare module "fn/upload" {
935
1069
  const upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
936
1070
  export { upload };
937
1071
  }
1072
+ declare module "fn" {
1073
+ const fn: {
1074
+ _addLoader: (requestId: any, prom: any, source: any) => number;
1075
+ _compareValues: (a: any, b: any, prop: any, dir?: string) => 0 | 1 | -1;
1076
+ _deleteLoader: (requestId: string, res?: any, isAbort?: boolean) => boolean;
1077
+ abort: (requestId: any) => void;
1078
+ abortURL: (url: any) => void;
1079
+ addColors: (colors: object) => void;
1080
+ addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
1081
+ addStyle: (ele: any, o: any) => void;
1082
+ adjustHeight: () => void;
1083
+ adjustSize: (type: any, eles: any) => void;
1084
+ adjustWidth: () => void;
1085
+ 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;
1086
+ analyzeFunction: (fn: any) => {
1087
+ body: any;
1088
+ args: any[];
1089
+ argString: string;
1090
+ isArrow: boolean;
1091
+ hasFunction: boolean;
1092
+ name: any;
1093
+ isAsync: boolean;
1094
+ hash: string;
1095
+ };
1096
+ animateCss: (ele: any, animationName: any, callback: any) => void;
1097
+ arrayBuffer2String: (buf: any) => any;
1098
+ arrayFromProp: (arr: any, prop: any) => any[];
1099
+ autoExtend: (namespace: any, obj: any) => void;
1100
+ baseName: (path: string, suffix?: string) => string;
1101
+ br2nl: (st: any) => string;
1102
+ calendar: (d?: string | number | Date, wrong_result?: string) => any;
1103
+ callback: (url: string, res?: BbnAjaxResult, fn?: (a: BbnAjaxResult, b?: HTMLElement) => any, fn2?: (a: BbnAjaxResult) => any, ele?: HTMLElement | HTMLInputElement | HTMLTextAreaElement) => boolean;
1104
+ camelize: (str: any) => any;
1105
+ camelToCss: (str: any) => any;
1106
+ canvasToImage: (canvas: any) => HTMLImageElement;
1107
+ center: (ele: any) => any;
1108
+ checkProps: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
1109
+ checkPropsDetails: (obj: object, props: string | string[], checkEmpty?: boolean) => BbnResError;
1110
+ checkPropsOrDie: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
1111
+ checkType: (value: any, type: string | object, msg?: string, ...logs: any[]) => void;
1112
+ circularReplacer: () => (key: any, value: any) => any;
1113
+ clone: (obj: any) => any;
1114
+ colorToHex: (color: any) => string | CanvasGradient | CanvasPattern;
1115
+ compare: (v1: any, v2: any, operator: any) => boolean;
1116
+ compareConditions: (data: any, filter: any) => boolean;
1117
+ copy: (st: any) => Promise<unknown>;
1118
+ correctCase: (str: any) => any;
1119
+ count: (arr: any[], prop: string | object, val?: any, operator?: string) => number;
1120
+ crc32: (str: any) => number;
1121
+ createObject: (...args: any[]) => any;
1122
+ cssExists: (f: any) => boolean;
1123
+ date: (v: any) => any;
1124
+ dateSQL: (v: any, dayOnly: any) => string;
1125
+ daysInMonth: (v: any) => number | false;
1126
+ deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
1127
+ defaultAjaxAbortFunction: (message: string, url?: string) => void;
1128
+ defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => boolean;
1129
+ defaultAlertFunction: (msg: string, title?: string) => void;
1130
+ defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
1131
+ defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
1132
+ defaultErrorFunction: (message: any) => void;
1133
+ defaultHistoryFunction: (obj: any) => boolean;
1134
+ defaultLinkFunction: (responseObj: any, ele: any) => boolean;
1135
+ defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
1136
+ defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => string;
1137
+ defaultResizeFunction: () => boolean;
1138
+ defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
1139
+ deleteProp: (obj: object, prop: string) => void;
1140
+ diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
1141
+ dirName: (path: any) => string;
1142
+ download: (url: string, filename?: string | object, params?: object) => any;
1143
+ downloadContent: (filename: string, content: any, type?: string) => void;
1144
+ each: (arr: any, fn: any) => any;
1145
+ eraseCookie: (name: any) => void;
1146
+ error: (errorMsg: any) => never;
1147
+ escapeDquotes: (str: any) => any;
1148
+ escapeRegExp: (str: any) => any;
1149
+ escapeSquotes: (str: any) => any;
1150
+ escapeTicks: (str: any) => any;
1151
+ escapeUrl: (url: any, params: any) => string;
1152
+ extend: (...originalArgs: (boolean | object)[]) => any;
1153
+ extendOut: (...args: object[]) => any;
1154
+ fdate: (d: string | number | Date, wrong_result?: string | boolean) => any;
1155
+ fdatetime: (d?: string | number | Date, wrong_result?: string | boolean) => any;
1156
+ fieldValue: (field: any) => any;
1157
+ fileExt: (filename: any) => any;
1158
+ filter: (arr: any[], prop: string | object | import("fn/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
1159
+ filterToConditions: (filter: any, operator?: string) => import("fn/filterToConditions").Filter;
1160
+ findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
1161
+ fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
1162
+ forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
1163
+ format: (str: any) => any;
1164
+ formatBytes: (bytes: any, decimals?: number) => string;
1165
+ formatDate: (date: any, format: any) => string;
1166
+ formatSize: (st: any, noValid: any) => any;
1167
+ formdata: (form: HTMLFormElement) => {};
1168
+ fromXml: (xml: any, arrayTags: any) => {};
1169
+ ftime: (d: any, wrong_result: any) => any;
1170
+ getAllTags: () => any[];
1171
+ getAncestors: (ele: String | Element, selector?: string | true) => Element[];
1172
+ getAttributes: (ele: any) => any;
1173
+ getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
1174
+ getBrowserVersion: () => string;
1175
+ getCookie: (name: any) => any;
1176
+ getCssVar: (varname: any) => string;
1177
+ getDay: (v: any) => number | false;
1178
+ getDeviceType: () => "mobile" | "tablet" | "desktop";
1179
+ getEventData: (e: any) => Promise<unknown>;
1180
+ getField: (arr: any[], field: string, prop?: string | object, val?: any, operator?: string) => any;
1181
+ getFieldValues: (arr: object[], field: string, prop: any, val: any, operator: any) => any[];
1182
+ getHtml: (ele: any, stripComments?: boolean) => any;
1183
+ getHTMLOfSelection: () => string;
1184
+ getLoader: (requestId: string) => BbnLoader;
1185
+ getPath: (element: any) => string;
1186
+ getProp: (obj: any, prop: any) => any;
1187
+ getProperty: (obj: any, prop: any) => any;
1188
+ getRequestId: (url: any, data: any, datatype: any) => string;
1189
+ getRow: (arr: any[], prop: string | object, val?: any, operator?: string) => any;
1190
+ getScrollBarSize: () => number;
1191
+ getText: (ele: any) => string;
1192
+ getTimeoff: () => number;
1193
+ happy: (...args: any[]) => any;
1194
+ hash: (obj: any) => string;
1195
+ hex2rgb: (hex: any) => {
1196
+ r: number;
1197
+ g: number;
1198
+ b: number;
1199
+ };
1200
+ history: () => false | History;
1201
+ html2text: (st: any) => string;
1202
+ imageToCanvas: (img: any) => HTMLCanvasElement;
1203
+ imgToBase64: (img: any, type?: string) => string;
1204
+ info: (...args: any[]) => any;
1205
+ init: (cfg: any, force: any) => void;
1206
+ isActiveInterface: (secs?: number) => boolean;
1207
+ isArray: (...args: any[]) => boolean;
1208
+ isBlob: (...args: any[]) => boolean;
1209
+ isBoolean: (...args: any[]) => boolean;
1210
+ isCanvas: (...args: any[]) => boolean;
1211
+ isColor: (...args: any[]) => boolean;
1212
+ isComment: (...args: any[]) => boolean;
1213
+ isCp: (...args: any[]) => boolean;
1214
+ isDate: (...args: any[]) => boolean;
1215
+ isDesktopDevice: () => boolean;
1216
+ isDimension: (...args: any[]) => boolean;
1217
+ isDom: (...args: any[]) => boolean;
1218
+ isEmail: (...args: any[]) => boolean;
1219
+ isEmpty: (obj: any) => boolean;
1220
+ isEvent: (...args: any[]) => boolean;
1221
+ isFocused: (ele: HTMLElement, contain?: boolean) => boolean;
1222
+ isFunction: (...args: any[]) => boolean;
1223
+ isHostname: (...args: any[]) => boolean;
1224
+ isInside: (ele: any, ancestor: any) => boolean;
1225
+ isInt: (...args: any[]) => boolean;
1226
+ isIP: (...args: any[]) => boolean;
1227
+ isIterable: (v: any) => boolean;
1228
+ isMobile: () => boolean;
1229
+ isMobileDevice: () => boolean;
1230
+ isNull: (...args: any[]) => boolean;
1231
+ isNumber: (...args: any[]) => boolean;
1232
+ isObject: (...args: any[]) => boolean;
1233
+ isPercent: (...args: any[]) => boolean;
1234
+ isPrimitive: (...args: any[]) => boolean;
1235
+ isPromise: (...args: any[]) => boolean;
1236
+ isPropSize: (name: any) => boolean;
1237
+ isSame: (obj1: any, obj2: any, done?: any[]) => boolean;
1238
+ isSQLDate: (...args: any[]) => boolean;
1239
+ isString: (...args: any[]) => boolean;
1240
+ isSymbol: (...args: any[]) => boolean;
1241
+ isTabletDevice: () => boolean;
1242
+ isURL: (...args: any[]) => boolean;
1243
+ isValidDimension: (st: any) => boolean;
1244
+ isValidName: (...args: any[]) => boolean;
1245
+ isValue: (...args: any[]) => boolean;
1246
+ isVue: (...args: any[]) => boolean;
1247
+ iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
1248
+ lightenDarkenHex: (hex: any, amt: any) => string;
1249
+ link: (...args: any[]) => any;
1250
+ log: (...args: any[]) => any;
1251
+ makeReactive: (obj: any, onSet: any, parent: any, parentProp: any) => any;
1252
+ map: (arr: any, fn: any, deepProp: any, level?: number) => any;
1253
+ md5: (st: any) => string;
1254
+ money: (val: number, kilo?: boolean, currency?: string, novalue?: string | false, decimal?: string, thousands?: string, precision?: number) => string;
1255
+ move: (arr: any[], fromIndex: number, toIndex: number) => any[];
1256
+ multiorder: (arr: object[], orders: object | BbnOrderItem[]) => object[];
1257
+ nl2br: (st: any, keepNl: any) => string;
1258
+ numProperties: (obj: object) => number;
1259
+ objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
1260
+ order: (arr: any, prop: any, dir?: string) => any;
1261
+ outerHeight: (ele: HTMLElement) => number | false;
1262
+ outerWidth: (ele: HTMLElement) => number | false;
1263
+ percent: (percent: any, cent: any) => number;
1264
+ pickValue: (arr: any[]) => any;
1265
+ post: (...args: any[]) => any;
1266
+ postOut: (url: string, data: BbnBasicObject, success?: () => any, target?: string) => void;
1267
+ printf: (format: any) => any;
1268
+ quotes2html: (st: string, type?: string) => string;
1269
+ randomInt: (min: number, max: number) => number;
1270
+ randomString: (min?: number, max?: string | number, types?: string) => string;
1271
+ removeAccents: (st: string) => string;
1272
+ removeEmpty: (arr: any[]) => any[];
1273
+ removeExtraSpaces: (str: string) => string;
1274
+ removeHtmlComments: (str: string) => string;
1275
+ removePrivateProp: (obj: object, deep?: boolean) => any;
1276
+ removeTrailingChars: (st: string, char?: string) => string;
1277
+ repeat: (st: string, num: number) => string;
1278
+ replaceAll: (find: string, replace: string, str: string, flags?: string) => string;
1279
+ replaceSelection: (html: any, selectInserted: any) => void;
1280
+ resize: () => void;
1281
+ rgb2hex: (rgb: any) => string;
1282
+ riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
1283
+ roundDecimal: (value: number, decimals: number) => number;
1284
+ sanitize: (str: any, separator?: string) => any;
1285
+ search: (arr: any[], prop: string | object | import("fn/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string | number, startFrom?: number) => number;
1286
+ selectElementText: (ele: HTMLElement, win?: Window) => void;
1287
+ selector: (ele: string | HTMLElement) => HTMLElement;
1288
+ setCookie: (name: any, value: any, days: any) => void;
1289
+ setCssVar: (varname: any, value: any) => void;
1290
+ setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
1291
+ setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
1292
+ setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
1293
+ shorten: (st: string, len?: number, adj?: string) => string;
1294
+ shortenObj: (obj: any, max?: number) => object;
1295
+ shuffle: (array: any[]) => any[];
1296
+ simpleHash: (str: any) => string;
1297
+ simpleHash1: (str: string) => number;
1298
+ simpleHash2: (str: string) => number;
1299
+ startChrono: (name: any) => void;
1300
+ stat: (returnStat: any) => void;
1301
+ stopChrono: (name: any) => number;
1302
+ string2ArrayBuffer: (str: string) => ArrayBuffer;
1303
+ submit: (form: HTMLFormElement, e?: Event, fn?: Function) => void;
1304
+ substr: (str: string, from: number, length?: number) => string;
1305
+ sum: (arr: object[], numberProp: string | ((a: any) => any), prop: string | object, val?: any, operator?: string) => number;
1306
+ timestamp: (seconds?: boolean) => number;
1307
+ toCSV: (arr: any[], valSep?: string, rowSep?: string, valEsc?: string) => string;
1308
+ toggleFullScreen: () => void;
1309
+ translate: (o: object, namespace?: string) => void;
1310
+ treatAjaxArguments: (args: any) => BbnAjaxCfg;
1311
+ trim: (str: any, hair?: string) => any;
1312
+ uniqString: (...args: any[]) => string;
1313
+ unique: (arr: any[]) => any[];
1314
+ upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
1315
+ warning: (message: string) => void;
1316
+ };
1317
+ export { fn };
1318
+ }
938
1319
  declare module "index" {
939
1320
  const bbn: Bbn;
940
1321
  export { bbn };