@bbn/bbn 1.0.84 → 1.0.86

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.
Files changed (59) hide show
  1. package/dist/bundle.d.ts +98 -98
  2. package/dist/bundle.js +131 -129
  3. package/dist/fn/ajax/postOut.d.ts +2 -2
  4. package/dist/fn/ajax/postOut.js +28 -25
  5. package/dist/fn/ajax/setNavigationVars.d.ts +2 -2
  6. package/dist/fn/ajax/setNavigationVars.js +2 -2
  7. package/dist/fn/ajax/treatAjaxArguments.d.ts +1 -1
  8. package/dist/fn/ajax/treatAjaxArguments.js +32 -31
  9. package/dist/fn/ajax/upload.d.ts +1 -1
  10. package/dist/fn/ajax/upload.js +1 -1
  11. package/dist/fn/browser/isFocused.d.ts +1 -1
  12. package/dist/fn/browser/isFocused.js +1 -1
  13. package/dist/fn/browser/selectElementText.d.ts +1 -1
  14. package/dist/fn/browser/selectElementText.js +1 -1
  15. package/dist/fn/browser/warning.d.ts +1 -1
  16. package/dist/fn/convert/imageToCanvas.d.ts +1 -1
  17. package/dist/fn/convert/imageToCanvas.js +1 -1
  18. package/dist/fn/convert/imgToBase64.js +0 -1
  19. package/dist/fn/convert/toCSV.d.ts +1 -1
  20. package/dist/fn/datetime/calendar.d.ts +1 -1
  21. package/dist/fn/datetime/calendar.js +1 -1
  22. package/dist/fn/datetime/fdate.d.ts +1 -1
  23. package/dist/fn/datetime/fdate.js +1 -1
  24. package/dist/fn/datetime/fdatetime.d.ts +1 -1
  25. package/dist/fn/datetime/fdatetime.js +1 -1
  26. package/dist/fn/datetime/timestamp.js +1 -1
  27. package/dist/fn/default/defaultAjaxAbortFunction.d.ts +1 -1
  28. package/dist/fn/default/defaultAjaxErrorFunction.d.ts +1 -1
  29. package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
  30. package/dist/fn/default/defaultAlertFunction.d.ts +1 -1
  31. package/dist/fn/default/defaultAlertFunction.js +1 -1
  32. package/dist/fn/default/defaultConfirmFunction.d.ts +1 -1
  33. package/dist/fn/default/defaultConfirmFunction.js +1 -1
  34. package/dist/fn/default/defaultEndLoadingFunction.d.ts +1 -1
  35. package/dist/fn/default/defaultEndLoadingFunction.js +1 -1
  36. package/dist/fn/default/defaultPostLinkFunction.d.ts +1 -1
  37. package/dist/fn/default/defaultPostLinkFunction.js +1 -1
  38. package/dist/fn/default/defaultPreLinkFunction.d.ts +1 -1
  39. package/dist/fn/default/defaultPreLinkFunction.js +1 -1
  40. package/dist/fn/default/defaultStartLoadingFunction.d.ts +1 -1
  41. package/dist/fn/default/defaultStartLoadingFunction.js +1 -1
  42. package/dist/fn/form/addInputs.d.ts +1 -1
  43. package/dist/fn/form/formdata.d.ts +1 -1
  44. package/dist/fn/form/objectToFormData.d.ts +1 -1
  45. package/dist/fn/form/objectToFormData.js +1 -1
  46. package/dist/fn/html/getAncestors.d.ts +1 -1
  47. package/dist/fn/html/getAncestors.js +1 -1
  48. package/dist/fn/html/getPath.d.ts +1 -1
  49. package/dist/fn/html/getText.d.ts +1 -1
  50. package/dist/fn/html/html2text.d.ts +1 -1
  51. package/dist/fn/html/selector.d.ts +2 -2
  52. package/dist/fn/html/selector.js +1 -1
  53. package/dist/fn/loop/fori.d.ts +1 -1
  54. package/dist/fn/loop/forir.d.ts +1 -1
  55. package/dist/fn/loop/iterate.d.ts +1 -1
  56. package/dist/fn/loop/riterate.d.ts +1 -1
  57. package/dist/fn/loop/riterate.js +1 -1
  58. package/dist/fn.d.ts +31 -31
  59. package/package.json +1 -1
package/dist/bundle.d.ts CHANGED
@@ -207,7 +207,7 @@ declare module "fn/loop/iterate" {
207
207
  * @param {Boolean} reverse If set to true the order of the keys will be reversed
208
208
  * @returns {Object}
209
209
  */
210
- const iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
210
+ const iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
211
211
  export { iterate };
212
212
  }
213
213
  declare module "fn/loop/each" {
@@ -1290,7 +1290,7 @@ declare module "fn/form/addInputs" {
1290
1290
  * @param {String} prefix The optional object's name of the fields in the form
1291
1291
  * @returns {undefined}
1292
1292
  */
1293
- const addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
1293
+ const addInputs: (form: any, params?: any, prefix?: string) => void;
1294
1294
  export { addInputs };
1295
1295
  }
1296
1296
  declare module "fn/style/addStyle" {
@@ -1767,7 +1767,7 @@ declare module "fn/datetime/fdatetime" {
1767
1767
  * @memberof bbn.fn
1768
1768
  * @returns {*}
1769
1769
  */
1770
- const fdatetime: (d?: Date | number | string, wrong_result?: boolean | string) => any;
1770
+ const fdatetime: (d: any, wrong_result?: boolean) => any;
1771
1771
  export { fdatetime };
1772
1772
  }
1773
1773
  declare module "fn/datetime/fdate" {
@@ -1780,11 +1780,11 @@ declare module "fn/datetime/fdate" {
1780
1780
  * @param {String} wrong_result
1781
1781
  * @returns
1782
1782
  */
1783
- const fdate: (d: Date | number | string, wrong_result?: boolean | string) => any;
1783
+ const fdate: (d: any, wrong_result?: boolean) => any;
1784
1784
  export { fdate };
1785
1785
  }
1786
1786
  declare module "fn/datetime/calendar" {
1787
- const calendar: (d?: Date | number | string, wrong_result?: string) => any;
1787
+ const calendar: (d: any, wrong_result?: boolean) => any;
1788
1788
  export { calendar };
1789
1789
  }
1790
1790
  declare module "fn/ajax/callback" {
@@ -2157,23 +2157,23 @@ declare module "fn/object/deepPath" {
2157
2157
  export { deepPath };
2158
2158
  }
2159
2159
  declare module "fn/default/defaultAjaxAbortFunction" {
2160
- const defaultAjaxAbortFunction: (message: string, url?: string) => void;
2160
+ const defaultAjaxAbortFunction: (message: any, url?: string) => void;
2161
2161
  export { defaultAjaxAbortFunction };
2162
2162
  }
2163
2163
  declare module "fn/default/defaultAjaxErrorFunction" {
2164
- const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
2164
+ const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: any, errorThrown?: any) => void;
2165
2165
  export { defaultAjaxErrorFunction };
2166
2166
  }
2167
2167
  declare module "fn/default/defaultAlertFunction" {
2168
- const defaultAlertFunction: (msg: string, title?: string) => void;
2168
+ const defaultAlertFunction: (msg: any, title?: any) => void;
2169
2169
  export { defaultAlertFunction };
2170
2170
  }
2171
2171
  declare module "fn/default/defaultConfirmFunction" {
2172
- const defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
2172
+ const defaultConfirmFunction: (text: any, yesFn: any, noFn?: any) => void;
2173
2173
  export { defaultConfirmFunction };
2174
2174
  }
2175
2175
  declare module "fn/default/defaultEndLoadingFunction" {
2176
- const defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
2176
+ const defaultEndLoadingFunction: (url: any, timestamp: any, data?: any, res?: any) => boolean;
2177
2177
  export { defaultEndLoadingFunction };
2178
2178
  }
2179
2179
  declare module "fn/default/defaultErrorFunction" {
@@ -2189,11 +2189,11 @@ declare module "fn/default/defaultLinkFunction" {
2189
2189
  export { defaultLinkFunction };
2190
2190
  }
2191
2191
  declare module "fn/default/defaultPostLinkFunction" {
2192
- const defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
2192
+ const defaultPostLinkFunction: (r: any, ele?: any) => boolean;
2193
2193
  export { defaultPostLinkFunction };
2194
2194
  }
2195
2195
  declare module "fn/default/defaultPreLinkFunction" {
2196
- const defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => any;
2196
+ const defaultPreLinkFunction: (url: any, force?: boolean, ele?: any) => boolean;
2197
2197
  export { defaultPreLinkFunction };
2198
2198
  }
2199
2199
  declare module "fn/default/defaultResizeFunction" {
@@ -2201,7 +2201,7 @@ declare module "fn/default/defaultResizeFunction" {
2201
2201
  export { defaultResizeFunction };
2202
2202
  }
2203
2203
  declare module "fn/default/defaultStartLoadingFunction" {
2204
- const defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
2204
+ const defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
2205
2205
  export { defaultStartLoadingFunction };
2206
2206
  }
2207
2207
  declare module "fn/object/deleteProp" {
@@ -2641,7 +2641,7 @@ declare module "fn/loop/fori" {
2641
2641
  * @param {Number} min The index at which the loop will start
2642
2642
  * @returns {undefined}
2643
2643
  */
2644
- const fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
2644
+ const fori: (arr: any, fn: any, max?: number, min?: number) => void;
2645
2645
  export { fori };
2646
2646
  }
2647
2647
  declare module "fn/loop/forir" {
@@ -2679,7 +2679,7 @@ declare module "fn/loop/forir" {
2679
2679
  * @param {Number} min The index at which the loop will start
2680
2680
  * @returns {undefined}
2681
2681
  */
2682
- const forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
2682
+ const forir: (arr: any, fn: any, max?: number, min?: number) => void;
2683
2683
  export { forir };
2684
2684
  }
2685
2685
  declare module "fn/string/format" {
@@ -2754,7 +2754,7 @@ declare module "fn/form/formdata" {
2754
2754
  *
2755
2755
  * @returns {Object}
2756
2756
  */
2757
- const formdata: (form: HTMLFormElement) => {};
2757
+ const formdata: (form: any) => {};
2758
2758
  export { formdata };
2759
2759
  }
2760
2760
  declare module "fn/convert/fromXml" {
@@ -2811,7 +2811,7 @@ declare module "fn/html/getAllTags" {
2811
2811
  export { getAllTags };
2812
2812
  }
2813
2813
  declare module "fn/html/getAncestors" {
2814
- const getAncestors: (ele: Element | String, selector?: true | string) => Element[];
2814
+ const getAncestors: (ele: any, selector?: any) => any[];
2815
2815
  export { getAncestors };
2816
2816
  }
2817
2817
  declare module "fn/html/getAttributes" {
@@ -3003,7 +3003,7 @@ declare module "fn/html/getPath" {
3003
3003
  * @memberof bbn.fn
3004
3004
  * @returns {*}
3005
3005
  */
3006
- const getPath: (element: any) => string;
3006
+ const getPath: (element: any) => any;
3007
3007
  export { getPath };
3008
3008
  }
3009
3009
  declare module "fn/object/getProp" {
@@ -3021,7 +3021,7 @@ declare module "fn/style/getScrollBarSize" {
3021
3021
  export { getScrollBarSize };
3022
3022
  }
3023
3023
  declare module "fn/html/getText" {
3024
- const getText: (ele: any) => string;
3024
+ const getText: (ele: any) => any;
3025
3025
  export { getText };
3026
3026
  }
3027
3027
  declare module "fn/misc/getTimeoff" {
@@ -3102,7 +3102,7 @@ declare module "fn/html/html2text" {
3102
3102
  * @param {String} st
3103
3103
  * @returns {String}
3104
3104
  */
3105
- const html2text: (st: any) => string;
3105
+ const html2text: (st: any) => any;
3106
3106
  export { html2text };
3107
3107
  }
3108
3108
  declare module "fn/convert/imageToCanvas" {
@@ -3117,7 +3117,7 @@ declare module "fn/convert/imageToCanvas" {
3117
3117
  * @global
3118
3118
  * @memberof bbn.fn
3119
3119
  * @param {HTMLElement} img
3120
- * @returns
3120
+ * @returns {HTMLCanvasElement}
3121
3121
  */
3122
3122
  const imageToCanvas: (img: any) => HTMLCanvasElement;
3123
3123
  export { imageToCanvas };
@@ -3190,7 +3190,7 @@ declare module "fn/ajax/treatAjaxArguments" {
3190
3190
  *
3191
3191
  * @returns {Object} The configuration object
3192
3192
  */
3193
- const treatAjaxArguments: (args: any) => BbnAjaxCfg;
3193
+ const treatAjaxArguments: (args: any) => any;
3194
3194
  export { treatAjaxArguments };
3195
3195
  }
3196
3196
  declare module "fn/ajax/setNavigationVars" {
@@ -3215,9 +3215,9 @@ declare module "fn/ajax/setNavigationVars" {
3215
3215
  * @param {Object} data The data if any
3216
3216
  * @param {Boolean} repl If true the history state object will replace the current one, will be added otherwise
3217
3217
  *
3218
- * @returns {undefined}
3218
+ * @returns {void}
3219
3219
  */
3220
- const setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
3220
+ const setNavigationVars: (url: any, title: any, data?: any, repl?: boolean) => void;
3221
3221
  export { setNavigationVars };
3222
3222
  }
3223
3223
  declare module "fn/ajax/link" {
@@ -3545,7 +3545,7 @@ declare module "fn/browser/isFocused" {
3545
3545
  *
3546
3546
  * @returns {Boolean} True if focused
3547
3547
  */
3548
- const isFocused: (ele: HTMLElement, contain?: boolean) => boolean;
3548
+ const isFocused: (ele: any, contain?: boolean) => boolean;
3549
3549
  export { isFocused };
3550
3550
  }
3551
3551
  declare module "fn/type/isIP" {
@@ -3735,7 +3735,7 @@ declare module "fn/browser/warning" {
3735
3735
  * @param {...any} args
3736
3736
  * @returns
3737
3737
  */
3738
- const warning: (message: string) => void;
3738
+ const warning: (message: any) => void;
3739
3739
  export { warning };
3740
3740
  }
3741
3741
  declare module "fn/html/makeReactive" {
@@ -3951,7 +3951,7 @@ declare module "fn/form/objectToFormData" {
3951
3951
  * @param {Array} ignoreList
3952
3952
  * @returns
3953
3953
  */
3954
- const objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
3954
+ const objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
3955
3955
  export { objectToFormData };
3956
3956
  }
3957
3957
  declare module "fn/object/order" {
@@ -3991,9 +3991,9 @@ declare module "fn/html/selector" {
3991
3991
  * @todo Add method description for selector
3992
3992
  * @global
3993
3993
  * @memberof bbn.fn
3994
- * @returns {*}
3994
+ * @returns {HTMLElement | undefined}
3995
3995
  */
3996
- const selector: (ele: string | HTMLElement) => HTMLElement | undefined;
3996
+ const selector: (ele: any) => any;
3997
3997
  export { selector };
3998
3998
  }
3999
3999
  declare module "fn/style/outerHeight" {
@@ -4050,6 +4050,38 @@ declare module "fn/object/pickValue" {
4050
4050
  const pickValue: (arr: any[]) => any;
4051
4051
  export { pickValue };
4052
4052
  }
4053
+ declare module "fn/object/setProperty" {
4054
+ /**
4055
+ * Returns the value of the given property from the given object.
4056
+ *
4057
+ * Looks for the given property in the given object, accepting dot (.) separator
4058
+ * for deep property access, and returns its value if found and undefined otherwise.
4059
+ *
4060
+ * @method getProperty
4061
+ * @global
4062
+ * @example
4063
+ * ```javascript
4064
+ * bbn.fn.getProperty({a: 1, b: 2}, 'b');
4065
+ * // 2
4066
+ * ```
4067
+ * @example
4068
+ * ```javascript
4069
+ * bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.o.a');
4070
+ * // 33
4071
+ * ```
4072
+ * @example
4073
+ * ```javascript
4074
+ * bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.h.a');
4075
+ * // undefined
4076
+ * ```
4077
+ * @memberof bbn.fn
4078
+ * @param {Object} obj
4079
+ * @param {String} prop
4080
+ * @returns {*} The property's value or undefined
4081
+ */
4082
+ const setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
4083
+ export { setProperty };
4084
+ }
4053
4085
  declare module "fn/ajax/postOut" {
4054
4086
  /**
4055
4087
  * Posts a request in a new window.
@@ -4068,9 +4100,9 @@ declare module "fn/ajax/postOut" {
4068
4100
  * @param {Function} success A function to execute in case of success
4069
4101
  * @param {String} target The target attribute of the form
4070
4102
  *
4071
- * @returns {undefined}
4103
+ * @returns {void}
4072
4104
  */
4073
- const postOut: (url: string, data: BbnBasicObject, success?: () => any, target?: string) => void;
4105
+ const postOut: (url: any, data: any, success?: any, target?: string) => void;
4074
4106
  export { postOut };
4075
4107
  }
4076
4108
  declare module "fn/string/printf" {
@@ -4277,7 +4309,7 @@ declare module "fn/loop/riterate" {
4277
4309
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
4278
4310
  * @returns {Object}
4279
4311
  */
4280
- const riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
4312
+ const riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
4281
4313
  export { riterate };
4282
4314
  }
4283
4315
  declare module "fn/misc/roundDecimal" {
@@ -4336,7 +4368,7 @@ declare module "fn/browser/selectElementText" {
4336
4368
  *
4337
4369
  * @returns {Boolean} True if focused
4338
4370
  */
4339
- const selectElementText: (ele: HTMLElement, win?: Window) => void;
4371
+ const selectElementText: (ele: any, win?: any) => void;
4340
4372
  export { selectElementText };
4341
4373
  }
4342
4374
  declare module "fn/browser/setCookie" {
@@ -4380,38 +4412,6 @@ declare module "fn/object/setProp" {
4380
4412
  const setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
4381
4413
  export { setProp };
4382
4414
  }
4383
- declare module "fn/object/setProperty" {
4384
- /**
4385
- * Returns the value of the given property from the given object.
4386
- *
4387
- * Looks for the given property in the given object, accepting dot (.) separator
4388
- * for deep property access, and returns its value if found and undefined otherwise.
4389
- *
4390
- * @method getProperty
4391
- * @global
4392
- * @example
4393
- * ```javascript
4394
- * bbn.fn.getProperty({a: 1, b: 2}, 'b');
4395
- * // 2
4396
- * ```
4397
- * @example
4398
- * ```javascript
4399
- * bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.o.a');
4400
- * // 33
4401
- * ```
4402
- * @example
4403
- * ```javascript
4404
- * bbn.fn.getProperty({a: 1, b: {o: {a: 33, h: 5}}}, 'b.h.a');
4405
- * // undefined
4406
- * ```
4407
- * @memberof bbn.fn
4408
- * @param {Object} obj
4409
- * @param {String} prop
4410
- * @returns {*} The property's value or undefined
4411
- */
4412
- const setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
4413
- export { setProperty };
4414
- }
4415
4415
  declare module "fn/string/shorten" {
4416
4416
  /**
4417
4417
  * Shortens the given string after *len* characters.
@@ -4593,7 +4593,7 @@ declare module "fn/convert/toCSV" {
4593
4593
  * @param {String} [valEsc="] The string escaper character
4594
4594
  * @returns {String} A CSV string
4595
4595
  */
4596
- const toCSV: (arr: any[], valSep?: string, rowSep?: string, valEsc?: string) => string;
4596
+ const toCSV: (arr: any, valSep?: string, rowSep?: string, valEsc?: string) => string;
4597
4597
  export { toCSV };
4598
4598
  }
4599
4599
  declare module "fn/browser/toggleFullScreen" {
@@ -4641,7 +4641,7 @@ declare module "fn/ajax/upload" {
4641
4641
  *
4642
4642
  * @returns {Promise}
4643
4643
  */
4644
- const upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
4644
+ const upload: (url: any, file: any, success?: any, failure?: any, progress?: any) => any;
4645
4645
  export { upload };
4646
4646
  }
4647
4647
  declare module "fn" {
@@ -4652,7 +4652,7 @@ declare module "fn" {
4652
4652
  abort: (requestId: any) => void;
4653
4653
  abortURL: (url: any) => void;
4654
4654
  addColors: (colors: object) => void;
4655
- addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
4655
+ addInputs: (form: any, params?: any, prefix?: string) => void;
4656
4656
  addStyle: (ele: any, o: any) => void;
4657
4657
  adjustHeight: () => void;
4658
4658
  adjustSize: (type: any, eles: any) => void;
@@ -4674,7 +4674,7 @@ declare module "fn" {
4674
4674
  autoExtend: (namespace: any, obj: any) => void;
4675
4675
  baseName: (path: string, suffix?: string) => string;
4676
4676
  br2nl: (st: any) => string;
4677
- calendar: (d?: string | number | Date, wrong_result?: string) => any;
4677
+ calendar: (d: any, wrong_result?: boolean) => any;
4678
4678
  callback: (url: any, res?: any, fn?: any, fn2?: any, ele?: any) => boolean;
4679
4679
  camelize: (str: any) => any;
4680
4680
  camelToCss: (str: any) => any;
@@ -4699,18 +4699,18 @@ declare module "fn" {
4699
4699
  dateSQL: (v: any, dayOnly: any) => string;
4700
4700
  daysInMonth: (v: any) => number | false;
4701
4701
  deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
4702
- defaultAjaxAbortFunction: (message: string, url?: string) => void;
4703
- defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
4704
- defaultAlertFunction: (msg: string, title?: string) => void;
4705
- defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
4706
- defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
4702
+ defaultAjaxAbortFunction: (message: any, url?: string) => void;
4703
+ defaultAjaxErrorFunction: (jqXHR: any, textStatus?: any, errorThrown?: any) => void;
4704
+ defaultAlertFunction: (msg: any, title?: any) => void;
4705
+ defaultConfirmFunction: (text: any, yesFn: any, noFn?: any) => void;
4706
+ defaultEndLoadingFunction: (url: any, timestamp: any, data?: any, res?: any) => boolean;
4707
4707
  defaultErrorFunction: (message: any) => void;
4708
4708
  defaultHistoryFunction: (obj: any) => boolean;
4709
4709
  defaultLinkFunction: (responseObj: any, ele: any) => boolean;
4710
- defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
4711
- defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => any;
4710
+ defaultPostLinkFunction: (r: any, ele?: any) => boolean;
4711
+ defaultPreLinkFunction: (url: any, force?: boolean, ele?: any) => boolean;
4712
4712
  defaultResizeFunction: () => boolean;
4713
- defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
4713
+ defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
4714
4714
  deleteProp: (obj: object, prop: string) => void;
4715
4715
  diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
4716
4716
  dirName: (path: any) => string;
@@ -4726,24 +4726,24 @@ declare module "fn" {
4726
4726
  escapeUrl: (url: any, params: any) => string;
4727
4727
  extend: (...originalArgs: (boolean | object)[]) => any;
4728
4728
  extendOut: (...args: object[]) => any;
4729
- fdate: (d: string | number | Date, wrong_result?: string | boolean) => any;
4730
- fdatetime: (d?: string | number | Date, wrong_result?: string | boolean) => any;
4729
+ fdate: (d: any, wrong_result?: boolean) => any;
4730
+ fdatetime: (d: any, wrong_result?: boolean) => any;
4731
4731
  fieldValue: (field: any) => any;
4732
4732
  fileExt: (filename: any) => any;
4733
4733
  filter: (arr: any[], prop: string | object | import("fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
4734
4734
  filterToConditions: (filter: any, operator?: string) => import("fn/object/filterToConditions").Filter;
4735
4735
  findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
4736
- fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
4737
- forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
4736
+ fori: (arr: any, fn: any, max?: number, min?: number) => void;
4737
+ forir: (arr: any, fn: any, max?: number, min?: number) => void;
4738
4738
  format: (str: any) => any;
4739
4739
  formatBytes: (bytes: any, decimals?: number) => string;
4740
4740
  formatDate: (date: any, format: any) => string;
4741
4741
  formatSize: (st: any, noValid: any) => any;
4742
- formdata: (form: HTMLFormElement) => {};
4742
+ formdata: (form: any) => {};
4743
4743
  fromXml: (xml: any, arrayTags: any) => {};
4744
4744
  ftime: (d: any, wrong_result: any) => any;
4745
4745
  getAllTags: () => any[];
4746
- getAncestors: (ele: String | Element, selector?: string | true) => Element[];
4746
+ getAncestors: (ele: any, selector?: any) => any[];
4747
4747
  getAttributes: (ele: any) => any;
4748
4748
  getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
4749
4749
  getBrowserVersion: () => string;
@@ -4757,13 +4757,13 @@ declare module "fn" {
4757
4757
  getHtml: (ele: any, stripComments?: boolean) => any;
4758
4758
  getHTMLOfSelection: () => string;
4759
4759
  getLoader: (requestId: any) => BbnLoader;
4760
- getPath: (element: any) => string;
4760
+ getPath: (element: any) => any;
4761
4761
  getProp: (obj: any, prop: any) => any;
4762
4762
  getProperty: (obj: any, prop: any) => any;
4763
4763
  getRequestId: (url: any, data: any, datatype: any) => string;
4764
4764
  getRow: (arr: any[], prop: string | object, val?: any, operator?: string) => any;
4765
4765
  getScrollBarSize: () => number;
4766
- getText: (ele: any) => string;
4766
+ getText: (ele: any) => any;
4767
4767
  getTimeoff: () => number;
4768
4768
  happy: (...args: any[]) => any;
4769
4769
  hash: (obj: any) => string;
@@ -4773,7 +4773,7 @@ declare module "fn" {
4773
4773
  b: number;
4774
4774
  };
4775
4775
  history: () => false | History;
4776
- html2text: (st: any) => string;
4776
+ html2text: (st: any) => any;
4777
4777
  imageToCanvas: (img: any) => HTMLCanvasElement;
4778
4778
  imgToBase64: (img: any, type?: string) => string;
4779
4779
  info: (...args: any[]) => any;
@@ -4793,7 +4793,7 @@ declare module "fn" {
4793
4793
  isEmail: (...args: any[]) => boolean;
4794
4794
  isEmpty: (obj: any) => boolean;
4795
4795
  isEvent: (...args: any[]) => boolean;
4796
- isFocused: (ele: HTMLElement, contain?: boolean) => boolean;
4796
+ isFocused: (ele: any, contain?: boolean) => boolean;
4797
4797
  isFunction: (...args: any[]) => boolean;
4798
4798
  isHostname: (...args: any[]) => boolean;
4799
4799
  isInside: (ele: any, ancestor: any) => boolean;
@@ -4819,7 +4819,7 @@ declare module "fn" {
4819
4819
  isValidName: (...args: any[]) => boolean;
4820
4820
  isValue: (...args: any[]) => boolean;
4821
4821
  isVue: (...args: any[]) => boolean;
4822
- iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
4822
+ iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
4823
4823
  lightenDarkenHex: (hex: any, amt: any) => string;
4824
4824
  link: (...args: any[]) => any;
4825
4825
  log: (...args: any[]) => any;
@@ -4831,14 +4831,14 @@ declare module "fn" {
4831
4831
  multiorder: (arr: object[], orders: any) => object[];
4832
4832
  nl2br: (st: any, keepNl: any) => string;
4833
4833
  numProperties: (obj: object) => number;
4834
- objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
4834
+ objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
4835
4835
  order: (arr: any, prop: any, dir?: string) => any;
4836
4836
  outerHeight: (ele: HTMLElement) => number | false;
4837
4837
  outerWidth: (ele: HTMLElement) => number | false;
4838
4838
  percent: (percent: any, cent: any) => number;
4839
4839
  pickValue: (arr: any[]) => any;
4840
4840
  post: (...args: any[]) => any;
4841
- postOut: (url: string, data: BbnBasicObject, success?: () => any, target?: string) => void;
4841
+ postOut: (url: any, data: any, success?: any, target?: string) => void;
4842
4842
  printf: (format: any) => any;
4843
4843
  quotes2html: (st: string, type?: string) => string;
4844
4844
  randomInt: (min: number, max: number) => number;
@@ -4854,15 +4854,15 @@ declare module "fn" {
4854
4854
  replaceSelection: (html: any, selectInserted: any) => void;
4855
4855
  resize: () => void;
4856
4856
  rgb2hex: (rgb: any) => string;
4857
- riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
4857
+ riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
4858
4858
  roundDecimal: (value: number, decimals: number) => number;
4859
4859
  sanitize: (str: any, separator?: string) => any;
4860
4860
  search: (arr: any[], prop: string | object | import("fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string | number, startFrom?: number) => number;
4861
- selectElementText: (ele: HTMLElement, win?: Window) => void;
4862
- selector: (ele: string | HTMLElement) => HTMLElement;
4861
+ selectElementText: (ele: any, win?: any) => void;
4862
+ selector: (ele: any) => any;
4863
4863
  setCookie: (name: any, value: any, days: any) => void;
4864
4864
  setCssVar: (varname: any, value: any) => void;
4865
- setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
4865
+ setNavigationVars: (url: any, title: any, data?: any, repl?: boolean) => void;
4866
4866
  setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
4867
4867
  setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
4868
4868
  shorten: (st: string, len?: number, adj?: string) => string;
@@ -4878,15 +4878,15 @@ declare module "fn" {
4878
4878
  substr: (str: string, from: number, length?: number) => string;
4879
4879
  sum: (arr: object[], numberProp: string | ((a: any) => any), prop: string | object, val?: any, operator?: string) => number;
4880
4880
  timestamp: (seconds?: boolean) => number;
4881
- toCSV: (arr: any[], valSep?: string, rowSep?: string, valEsc?: string) => string;
4881
+ toCSV: (arr: any, valSep?: string, rowSep?: string, valEsc?: string) => string;
4882
4882
  toggleFullScreen: () => void;
4883
4883
  translate: (o: object, namespace?: string) => void;
4884
- treatAjaxArguments: (args: any) => BbnAjaxCfg;
4884
+ treatAjaxArguments: (args: any) => any;
4885
4885
  trim: (str: any, hair?: string) => any;
4886
4886
  uniqString: (...args: any[]) => string;
4887
4887
  unique: (arr: any[]) => any[];
4888
- upload: (url: string, file: any, success?: (d: any) => any, failure?: (d: any) => any, progress?: (d: any, l: any, t: any) => any) => any;
4889
- warning: (message: string) => void;
4888
+ upload: (url: any, file: any, success?: any, failure?: any, progress?: any) => any;
4889
+ warning: (message: any) => void;
4890
4890
  };
4891
4891
  export { fn };
4892
4892
  }