@bbn/bbn 1.0.85 → 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 (42) hide show
  1. package/dist/bundle.d.ts +47 -47
  2. package/dist/bundle.js +15 -15
  3. package/dist/fn/datetime/calendar.d.ts +1 -1
  4. package/dist/fn/datetime/calendar.js +1 -1
  5. package/dist/fn/datetime/fdate.d.ts +1 -1
  6. package/dist/fn/datetime/fdate.js +1 -1
  7. package/dist/fn/datetime/fdatetime.d.ts +1 -1
  8. package/dist/fn/datetime/fdatetime.js +1 -1
  9. package/dist/fn/datetime/timestamp.js +1 -1
  10. package/dist/fn/default/defaultAjaxAbortFunction.d.ts +1 -1
  11. package/dist/fn/default/defaultAjaxErrorFunction.d.ts +1 -1
  12. package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
  13. package/dist/fn/default/defaultAlertFunction.d.ts +1 -1
  14. package/dist/fn/default/defaultAlertFunction.js +1 -1
  15. package/dist/fn/default/defaultConfirmFunction.d.ts +1 -1
  16. package/dist/fn/default/defaultConfirmFunction.js +1 -1
  17. package/dist/fn/default/defaultEndLoadingFunction.d.ts +1 -1
  18. package/dist/fn/default/defaultEndLoadingFunction.js +1 -1
  19. package/dist/fn/default/defaultPostLinkFunction.d.ts +1 -1
  20. package/dist/fn/default/defaultPostLinkFunction.js +1 -1
  21. package/dist/fn/default/defaultPreLinkFunction.d.ts +1 -1
  22. package/dist/fn/default/defaultPreLinkFunction.js +1 -1
  23. package/dist/fn/default/defaultStartLoadingFunction.d.ts +1 -1
  24. package/dist/fn/default/defaultStartLoadingFunction.js +1 -1
  25. package/dist/fn/form/addInputs.d.ts +1 -1
  26. package/dist/fn/form/formdata.d.ts +1 -1
  27. package/dist/fn/form/objectToFormData.d.ts +1 -1
  28. package/dist/fn/form/objectToFormData.js +1 -1
  29. package/dist/fn/html/getAncestors.d.ts +1 -1
  30. package/dist/fn/html/getAncestors.js +1 -1
  31. package/dist/fn/html/getPath.d.ts +1 -1
  32. package/dist/fn/html/getText.d.ts +1 -1
  33. package/dist/fn/html/html2text.d.ts +1 -1
  34. package/dist/fn/html/selector.d.ts +2 -2
  35. package/dist/fn/html/selector.js +1 -1
  36. package/dist/fn/loop/fori.d.ts +1 -1
  37. package/dist/fn/loop/forir.d.ts +1 -1
  38. package/dist/fn/loop/iterate.d.ts +1 -1
  39. package/dist/fn/loop/riterate.d.ts +1 -1
  40. package/dist/fn/loop/riterate.js +1 -1
  41. package/dist/fn.d.ts +23 -23
  42. 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" {
@@ -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" {
@@ -4309,7 +4309,7 @@ declare module "fn/loop/riterate" {
4309
4309
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
4310
4310
  * @returns {Object}
4311
4311
  */
4312
- const riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
4312
+ const riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
4313
4313
  export { riterate };
4314
4314
  }
4315
4315
  declare module "fn/misc/roundDecimal" {
@@ -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;
@@ -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,7 +4831,7 @@ 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;
@@ -4854,12 +4854,12 @@ 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
4861
  selectElementText: (ele: any, win?: any) => void;
4862
- selector: (ele: string | HTMLElement) => HTMLElement;
4862
+ selector: (ele: any) => any;
4863
4863
  setCookie: (name: any, value: any, days: any) => void;
4864
4864
  setCssVar: (varname: any, value: any) => void;
4865
4865
  setNavigationVars: (url: any, title: any, data?: any, repl?: boolean) => void;
package/dist/bundle.js CHANGED
@@ -3615,7 +3615,7 @@
3615
3615
  * @memberof bbn.fn
3616
3616
  * @returns {*}
3617
3617
  */
3618
- const fdatetime = function (d, wrong_result) {
3618
+ const fdatetime = function (d, wrong_result = false) {
3619
3619
  let r = (0, date_1.date)(d);
3620
3620
  if (!(0, isDate_3.isDate)(r)) {
3621
3621
  return wrong_result && (0, isString_6.isString)(wrong_result) ? wrong_result : '';
@@ -3649,7 +3649,7 @@
3649
3649
  * @param {String} wrong_result
3650
3650
  * @returns
3651
3651
  */
3652
- const fdate = function (d, wrong_result) {
3652
+ const fdate = function (d, wrong_result = false) {
3653
3653
  // Retro compatibility
3654
3654
  if (wrong_result === true) {
3655
3655
  return (0, fdatetime_1.fdatetime)(d);
@@ -3670,7 +3670,7 @@
3670
3670
  Object.defineProperty(exports, "__esModule", { value: true });
3671
3671
  exports.calendar = void 0;
3672
3672
  dayjs.extend(window['dayjs_plugin_calendar']);
3673
- const calendar = function (d, wrong_result) {
3673
+ const calendar = function (d, wrong_result = false) {
3674
3674
  if (undefined === dayjs) {
3675
3675
  return (0, fdate_1.fdate)(d, wrong_result);
3676
3676
  }
@@ -4426,7 +4426,7 @@
4426
4426
  "use strict";
4427
4427
  Object.defineProperty(exports, "__esModule", { value: true });
4428
4428
  exports.defaultAjaxErrorFunction = void 0;
4429
- const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
4429
+ const defaultAjaxErrorFunction = function (jqXHR, textStatus = null, errorThrown = null) {
4430
4430
  (0, log_10.log)(textStatus, errorThrown);
4431
4431
  };
4432
4432
  exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
@@ -4435,7 +4435,7 @@
4435
4435
  "use strict";
4436
4436
  Object.defineProperty(exports, "__esModule", { value: true });
4437
4437
  exports.defaultAlertFunction = void 0;
4438
- const defaultAlertFunction = function (msg, title) {
4438
+ const defaultAlertFunction = function (msg, title = null) {
4439
4439
  /** @todo */
4440
4440
  alert(msg);
4441
4441
  };
@@ -4445,7 +4445,7 @@
4445
4445
  "use strict";
4446
4446
  Object.defineProperty(exports, "__esModule", { value: true });
4447
4447
  exports.defaultConfirmFunction = void 0;
4448
- const defaultConfirmFunction = function (text, yesFn, noFn) {
4448
+ const defaultConfirmFunction = function (text, yesFn, noFn = null) {
4449
4449
  let ok = 0;
4450
4450
  if (confirm(text)) {
4451
4451
  if ((0, isFunction_6.isFunction)(yesFn)) {
@@ -4463,7 +4463,7 @@
4463
4463
  "use strict";
4464
4464
  Object.defineProperty(exports, "__esModule", { value: true });
4465
4465
  exports.defaultEndLoadingFunction = void 0;
4466
- const defaultEndLoadingFunction = function (url, timestamp, data, res) {
4466
+ const defaultEndLoadingFunction = function (url, timestamp, data = null, res = null) {
4467
4467
  return true;
4468
4468
  };
4469
4469
  exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
@@ -4499,7 +4499,7 @@
4499
4499
  "use strict";
4500
4500
  Object.defineProperty(exports, "__esModule", { value: true });
4501
4501
  exports.defaultPostLinkFunction = void 0;
4502
- const defaultPostLinkFunction = function (r, ele) {
4502
+ const defaultPostLinkFunction = function (r, ele = null) {
4503
4503
  return true;
4504
4504
  };
4505
4505
  exports.defaultPostLinkFunction = defaultPostLinkFunction;
@@ -4508,7 +4508,7 @@
4508
4508
  "use strict";
4509
4509
  Object.defineProperty(exports, "__esModule", { value: true });
4510
4510
  exports.defaultPreLinkFunction = void 0;
4511
- const defaultPreLinkFunction = function (url, force, ele) {
4511
+ const defaultPreLinkFunction = function (url, force = false, ele = null) {
4512
4512
  (0, log_12.log)("defaultPreLinkFunction", url, force, ele);
4513
4513
  return true;
4514
4514
  };
@@ -4527,7 +4527,7 @@
4527
4527
  "use strict";
4528
4528
  Object.defineProperty(exports, "__esModule", { value: true });
4529
4529
  exports.defaultStartLoadingFunction = void 0;
4530
- const defaultStartLoadingFunction = function (url, tst, data, requestId = null) {
4530
+ const defaultStartLoadingFunction = function (url, tst, data = null, requestId = null) {
4531
4531
  return true;
4532
4532
  };
4533
4533
  exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
@@ -5701,7 +5701,7 @@
5701
5701
  "use strict";
5702
5702
  Object.defineProperty(exports, "__esModule", { value: true });
5703
5703
  exports.getAncestors = void 0;
5704
- const getAncestors = function (ele, selector) {
5704
+ const getAncestors = function (ele, selector = null) {
5705
5705
  let r = [];
5706
5706
  if (typeof ele === 'string') {
5707
5707
  ele = document.querySelector(ele);
@@ -8423,7 +8423,7 @@
8423
8423
  * @param {Array} ignoreList
8424
8424
  * @returns
8425
8425
  */
8426
- const objectToFormData = function (obj, key = '', ignoreList) {
8426
+ const objectToFormData = function (obj, key = '', ignoreList = null) {
8427
8427
  let formData = new FormData();
8428
8428
  let appendFormData = (data, key = '') => {
8429
8429
  if (!ignoreList || ((0, isArray_15.isArray)(ignoreList) && !ignoreList.includes(key))) {
@@ -8504,7 +8504,7 @@
8504
8504
  * @todo Add method description for selector
8505
8505
  * @global
8506
8506
  * @memberof bbn.fn
8507
- * @returns {*}
8507
+ * @returns {HTMLElement | undefined}
8508
8508
  */
8509
8509
  const selector = function (ele) {
8510
8510
  return typeof ele === "string" ? document.querySelector(ele) : ele;
@@ -9089,7 +9089,7 @@
9089
9089
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
9090
9090
  * @returns {Object}
9091
9091
  */
9092
- const riterate = function (obj, fn, noPrivate) {
9092
+ const riterate = function (obj, fn, noPrivate = false) {
9093
9093
  return (0, iterate_10.iterate)(obj, fn, noPrivate, true);
9094
9094
  };
9095
9095
  exports.riterate = riterate;
@@ -9536,7 +9536,7 @@
9536
9536
  * @param {Number} seconds
9537
9537
  * @returns {Boolean}
9538
9538
  */
9539
- const timestamp = function (seconds) {
9539
+ const timestamp = function (seconds = false) {
9540
9540
  let r = new Date().getTime();
9541
9541
  return seconds ? Math.round(r / 1000) : r;
9542
9542
  };
@@ -1,2 +1,2 @@
1
- declare const calendar: (d?: Date | number | string, wrong_result?: string) => any;
1
+ declare const calendar: (d: any, wrong_result?: boolean) => any;
2
2
  export { calendar };
@@ -3,7 +3,7 @@ import { date } from './date';
3
3
  import { isDate } from '../type/isDate';
4
4
  import { isString } from '../type/isString';
5
5
  dayjs.extend(window['dayjs_plugin_calendar']);
6
- const calendar = function (d, wrong_result) {
6
+ const calendar = function (d, wrong_result = false) {
7
7
  if (undefined === dayjs) {
8
8
  return fdate(d, wrong_result);
9
9
  }
@@ -7,5 +7,5 @@
7
7
  * @param {String} wrong_result
8
8
  * @returns
9
9
  */
10
- declare const fdate: (d: Date | number | string, wrong_result?: boolean | string) => any;
10
+ declare const fdate: (d: any, wrong_result?: boolean) => any;
11
11
  export { fdate };
@@ -11,7 +11,7 @@ import { isString } from '../type/isString';
11
11
  * @param {String} wrong_result
12
12
  * @returns
13
13
  */
14
- const fdate = function (d, wrong_result) {
14
+ const fdate = function (d, wrong_result = false) {
15
15
  // Retro compatibility
16
16
  if (wrong_result === true) {
17
17
  return fdatetime(d);
@@ -5,5 +5,5 @@
5
5
  * @memberof bbn.fn
6
6
  * @returns {*}
7
7
  */
8
- declare const fdatetime: (d?: Date | number | string, wrong_result?: boolean | string) => any;
8
+ declare const fdatetime: (d: any, wrong_result?: boolean) => any;
9
9
  export { fdatetime };
@@ -8,7 +8,7 @@ import { isString } from '../type/isString';
8
8
  * @memberof bbn.fn
9
9
  * @returns {*}
10
10
  */
11
- const fdatetime = function (d, wrong_result) {
11
+ const fdatetime = function (d, wrong_result = false) {
12
12
  let r = date(d);
13
13
  if (!isDate(r)) {
14
14
  return wrong_result && isString(wrong_result) ? wrong_result : '';
@@ -11,7 +11,7 @@
11
11
  * @param {Number} seconds
12
12
  * @returns {Boolean}
13
13
  */
14
- const timestamp = function (seconds) {
14
+ const timestamp = function (seconds = false) {
15
15
  let r = new Date().getTime();
16
16
  return seconds ? Math.round(r / 1000) : r;
17
17
  };
@@ -1,2 +1,2 @@
1
- declare const defaultAjaxAbortFunction: (message: string, url?: string) => void;
1
+ declare const defaultAjaxAbortFunction: (message: any, url?: string) => void;
2
2
  export { defaultAjaxAbortFunction };
@@ -1,2 +1,2 @@
1
- declare const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
1
+ declare const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: any, errorThrown?: any) => void;
2
2
  export { defaultAjaxErrorFunction };
@@ -1,5 +1,5 @@
1
1
  import { log } from '../browser/log';
2
- const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
2
+ const defaultAjaxErrorFunction = function (jqXHR, textStatus = null, errorThrown = null) {
3
3
  log(textStatus, errorThrown);
4
4
  };
5
5
  export { defaultAjaxErrorFunction };
@@ -1,2 +1,2 @@
1
- declare const defaultAlertFunction: (msg: string, title?: string) => void;
1
+ declare const defaultAlertFunction: (msg: any, title?: any) => void;
2
2
  export { defaultAlertFunction };
@@ -1,4 +1,4 @@
1
- const defaultAlertFunction = function (msg, title) {
1
+ const defaultAlertFunction = function (msg, title = null) {
2
2
  /** @todo */
3
3
  alert(msg);
4
4
  };
@@ -1,2 +1,2 @@
1
- declare const defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
1
+ declare const defaultConfirmFunction: (text: any, yesFn: any, noFn?: any) => void;
2
2
  export { defaultConfirmFunction };
@@ -1,5 +1,5 @@
1
1
  import { isFunction } from "../type/isFunction";
2
- const defaultConfirmFunction = function (text, yesFn, noFn) {
2
+ const defaultConfirmFunction = function (text, yesFn, noFn = null) {
3
3
  let ok = 0;
4
4
  if (confirm(text)) {
5
5
  if (isFunction(yesFn)) {
@@ -1,2 +1,2 @@
1
- declare const defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
1
+ declare const defaultEndLoadingFunction: (url: any, timestamp: any, data?: any, res?: any) => boolean;
2
2
  export { defaultEndLoadingFunction };
@@ -1,4 +1,4 @@
1
- const defaultEndLoadingFunction = function (url, timestamp, data, res) {
1
+ const defaultEndLoadingFunction = function (url, timestamp, data = null, res = null) {
2
2
  return true;
3
3
  };
4
4
  export { defaultEndLoadingFunction };
@@ -1,2 +1,2 @@
1
- declare const defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
1
+ declare const defaultPostLinkFunction: (r: any, ele?: any) => boolean;
2
2
  export { defaultPostLinkFunction };
@@ -1,4 +1,4 @@
1
- const defaultPostLinkFunction = function (r, ele) {
1
+ const defaultPostLinkFunction = function (r, ele = null) {
2
2
  return true;
3
3
  };
4
4
  export { defaultPostLinkFunction };
@@ -1,2 +1,2 @@
1
- declare const defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => any;
1
+ declare const defaultPreLinkFunction: (url: any, force?: boolean, ele?: any) => boolean;
2
2
  export { defaultPreLinkFunction };
@@ -1,5 +1,5 @@
1
1
  import { log } from '../browser/log';
2
- const defaultPreLinkFunction = function (url, force, ele) {
2
+ const defaultPreLinkFunction = function (url, force = false, ele = null) {
3
3
  log("defaultPreLinkFunction", url, force, ele);
4
4
  return true;
5
5
  };
@@ -1,2 +1,2 @@
1
- declare const defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
1
+ declare const defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
2
2
  export { defaultStartLoadingFunction };
@@ -1,4 +1,4 @@
1
- const defaultStartLoadingFunction = function (url, tst, data, requestId = null) {
1
+ const defaultStartLoadingFunction = function (url, tst, data = null, requestId = null) {
2
2
  return true;
3
3
  };
4
4
  export { defaultStartLoadingFunction };
@@ -39,5 +39,5 @@
39
39
  * @param {String} prefix The optional object's name of the fields in the form
40
40
  * @returns {undefined}
41
41
  */
42
- declare const addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
42
+ declare const addInputs: (form: any, params?: any, prefix?: string) => void;
43
43
  export { addInputs };
@@ -41,5 +41,5 @@
41
41
  *
42
42
  * @returns {Object}
43
43
  */
44
- declare const formdata: (form: HTMLFormElement) => {};
44
+ declare const formdata: (form: any) => {};
45
45
  export { formdata };
@@ -8,5 +8,5 @@
8
8
  * @param {Array} ignoreList
9
9
  * @returns
10
10
  */
11
- declare const objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
11
+ declare const objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
12
12
  export { objectToFormData };
@@ -13,7 +13,7 @@ import { isNull } from '../type/isNull';
13
13
  * @param {Array} ignoreList
14
14
  * @returns
15
15
  */
16
- const objectToFormData = function (obj, key = '', ignoreList) {
16
+ const objectToFormData = function (obj, key = '', ignoreList = null) {
17
17
  let formData = new FormData();
18
18
  let appendFormData = (data, key = '') => {
19
19
  if (!ignoreList || (isArray(ignoreList) && !ignoreList.includes(key))) {
@@ -1,2 +1,2 @@
1
- declare const getAncestors: (ele: Element | String, selector?: true | string) => Element[];
1
+ declare const getAncestors: (ele: any, selector?: any) => any[];
2
2
  export { getAncestors };
@@ -1,4 +1,4 @@
1
- const getAncestors = function (ele, selector) {
1
+ const getAncestors = function (ele, selector = null) {
2
2
  let r = [];
3
3
  if (typeof ele === 'string') {
4
4
  ele = document.querySelector(ele);
@@ -6,5 +6,5 @@
6
6
  * @memberof bbn.fn
7
7
  * @returns {*}
8
8
  */
9
- declare const getPath: (element: any) => string;
9
+ declare const getPath: (element: any) => any;
10
10
  export { getPath };
@@ -1,2 +1,2 @@
1
- declare const getText: (ele: any) => string;
1
+ declare const getText: (ele: any) => any;
2
2
  export { getText };
@@ -13,5 +13,5 @@
13
13
  * @param {String} st
14
14
  * @returns {String}
15
15
  */
16
- declare const html2text: (st: any) => string;
16
+ declare const html2text: (st: any) => any;
17
17
  export { html2text };
@@ -4,7 +4,7 @@
4
4
  * @todo Add method description for selector
5
5
  * @global
6
6
  * @memberof bbn.fn
7
- * @returns {*}
7
+ * @returns {HTMLElement | undefined}
8
8
  */
9
- declare const selector: (ele: string | HTMLElement) => HTMLElement | undefined;
9
+ declare const selector: (ele: any) => any;
10
10
  export { selector };
@@ -4,7 +4,7 @@
4
4
  * @todo Add method description for selector
5
5
  * @global
6
6
  * @memberof bbn.fn
7
- * @returns {*}
7
+ * @returns {HTMLElement | undefined}
8
8
  */
9
9
  const selector = function (ele) {
10
10
  return typeof ele === "string" ? document.querySelector(ele) : ele;
@@ -32,5 +32,5 @@
32
32
  * @param {Number} min The index at which the loop will start
33
33
  * @returns {undefined}
34
34
  */
35
- declare const fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
35
+ declare const fori: (arr: any, fn: any, max?: number, min?: number) => void;
36
36
  export { fori };
@@ -32,5 +32,5 @@
32
32
  * @param {Number} min The index at which the loop will start
33
33
  * @returns {undefined}
34
34
  */
35
- declare const forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
35
+ declare const forir: (arr: any, fn: any, max?: number, min?: number) => void;
36
36
  export { forir };
@@ -18,5 +18,5 @@
18
18
  * @param {Boolean} reverse If set to true the order of the keys will be reversed
19
19
  * @returns {Object}
20
20
  */
21
- declare const iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
21
+ declare const iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
22
22
  export { iterate };
@@ -17,5 +17,5 @@
17
17
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
18
18
  * @returns {Object}
19
19
  */
20
- declare const riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
20
+ declare const riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
21
21
  export { riterate };
@@ -18,7 +18,7 @@ import { iterate } from "./iterate";
18
18
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
19
19
  * @returns {Object}
20
20
  */
21
- const riterate = function (obj, fn, noPrivate) {
21
+ const riterate = function (obj, fn, noPrivate = false) {
22
22
  return iterate(obj, fn, noPrivate, true);
23
23
  };
24
24
  export { riterate };
package/dist/fn.d.ts CHANGED
@@ -5,7 +5,7 @@ declare const fn: {
5
5
  abort: (requestId: any) => void;
6
6
  abortURL: (url: any) => void;
7
7
  addColors: (colors: object) => void;
8
- addInputs: (form: HTMLFormElement, params?: object, prefix?: string) => void;
8
+ addInputs: (form: any, params?: any, prefix?: string) => void;
9
9
  addStyle: (ele: any, o: any) => void;
10
10
  adjustHeight: () => void;
11
11
  adjustSize: (type: any, eles: any) => void;
@@ -27,7 +27,7 @@ declare const fn: {
27
27
  autoExtend: (namespace: any, obj: any) => void;
28
28
  baseName: (path: string, suffix?: string) => string;
29
29
  br2nl: (st: any) => string;
30
- calendar: (d?: string | number | Date, wrong_result?: string) => any;
30
+ calendar: (d: any, wrong_result?: boolean) => any;
31
31
  callback: (url: any, res?: any, fn?: any, fn2?: any, ele?: any) => boolean;
32
32
  camelize: (str: any) => any;
33
33
  camelToCss: (str: any) => any;
@@ -52,18 +52,18 @@ declare const fn: {
52
52
  dateSQL: (v: any, dayOnly: any) => string;
53
53
  daysInMonth: (v: any) => number | false;
54
54
  deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
55
- defaultAjaxAbortFunction: (message: string, url?: string) => void;
56
- defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
57
- defaultAlertFunction: (msg: string, title?: string) => void;
58
- defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
59
- defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
55
+ defaultAjaxAbortFunction: (message: any, url?: string) => void;
56
+ defaultAjaxErrorFunction: (jqXHR: any, textStatus?: any, errorThrown?: any) => void;
57
+ defaultAlertFunction: (msg: any, title?: any) => void;
58
+ defaultConfirmFunction: (text: any, yesFn: any, noFn?: any) => void;
59
+ defaultEndLoadingFunction: (url: any, timestamp: any, data?: any, res?: any) => boolean;
60
60
  defaultErrorFunction: (message: any) => void;
61
61
  defaultHistoryFunction: (obj: any) => boolean;
62
62
  defaultLinkFunction: (responseObj: any, ele: any) => boolean;
63
- defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
64
- defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => any;
63
+ defaultPostLinkFunction: (r: any, ele?: any) => boolean;
64
+ defaultPreLinkFunction: (url: any, force?: boolean, ele?: any) => boolean;
65
65
  defaultResizeFunction: () => boolean;
66
- defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
66
+ defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
67
67
  deleteProp: (obj: object, prop: string) => void;
68
68
  diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
69
69
  dirName: (path: any) => string;
@@ -79,24 +79,24 @@ declare const fn: {
79
79
  escapeUrl: (url: any, params: any) => string;
80
80
  extend: (...originalArgs: (boolean | object)[]) => any;
81
81
  extendOut: (...args: object[]) => any;
82
- fdate: (d: string | number | Date, wrong_result?: string | boolean) => any;
83
- fdatetime: (d?: string | number | Date, wrong_result?: string | boolean) => any;
82
+ fdate: (d: any, wrong_result?: boolean) => any;
83
+ fdatetime: (d: any, wrong_result?: boolean) => any;
84
84
  fieldValue: (field: any) => any;
85
85
  fileExt: (filename: any) => any;
86
86
  filter: (arr: any[], prop: string | object | import("./fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
87
87
  filterToConditions: (filter: any, operator?: string) => import("./fn/object/filterToConditions").Filter;
88
88
  findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
89
- fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
90
- forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
89
+ fori: (arr: any, fn: any, max?: number, min?: number) => void;
90
+ forir: (arr: any, fn: any, max?: number, min?: number) => void;
91
91
  format: (str: any) => any;
92
92
  formatBytes: (bytes: any, decimals?: number) => string;
93
93
  formatDate: (date: any, format: any) => string;
94
94
  formatSize: (st: any, noValid: any) => any;
95
- formdata: (form: HTMLFormElement) => {};
95
+ formdata: (form: any) => {};
96
96
  fromXml: (xml: any, arrayTags: any) => {};
97
97
  ftime: (d: any, wrong_result: any) => any;
98
98
  getAllTags: () => any[];
99
- getAncestors: (ele: String | Element, selector?: string | true) => Element[];
99
+ getAncestors: (ele: any, selector?: any) => any[];
100
100
  getAttributes: (ele: any) => any;
101
101
  getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
102
102
  getBrowserVersion: () => string;
@@ -110,13 +110,13 @@ declare const fn: {
110
110
  getHtml: (ele: any, stripComments?: boolean) => any;
111
111
  getHTMLOfSelection: () => string;
112
112
  getLoader: (requestId: any) => BbnLoader;
113
- getPath: (element: any) => string;
113
+ getPath: (element: any) => any;
114
114
  getProp: (obj: any, prop: any) => any;
115
115
  getProperty: (obj: any, prop: any) => any;
116
116
  getRequestId: (url: any, data: any, datatype: any) => string;
117
117
  getRow: (arr: any[], prop: string | object, val?: any, operator?: string) => any;
118
118
  getScrollBarSize: () => number;
119
- getText: (ele: any) => string;
119
+ getText: (ele: any) => any;
120
120
  getTimeoff: () => number;
121
121
  happy: (...args: any[]) => any;
122
122
  hash: (obj: any) => string;
@@ -126,7 +126,7 @@ declare const fn: {
126
126
  b: number;
127
127
  };
128
128
  history: () => false | History;
129
- html2text: (st: any) => string;
129
+ html2text: (st: any) => any;
130
130
  imageToCanvas: (img: any) => HTMLCanvasElement;
131
131
  imgToBase64: (img: any, type?: string) => string;
132
132
  info: (...args: any[]) => any;
@@ -172,7 +172,7 @@ declare const fn: {
172
172
  isValidName: (...args: any[]) => boolean;
173
173
  isValue: (...args: any[]) => boolean;
174
174
  isVue: (...args: any[]) => boolean;
175
- iterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean, reverse?: boolean) => object;
175
+ iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
176
176
  lightenDarkenHex: (hex: any, amt: any) => string;
177
177
  link: (...args: any[]) => any;
178
178
  log: (...args: any[]) => any;
@@ -184,7 +184,7 @@ declare const fn: {
184
184
  multiorder: (arr: object[], orders: any) => object[];
185
185
  nl2br: (st: any, keepNl: any) => string;
186
186
  numProperties: (obj: object) => number;
187
- objectToFormData: (obj: object, key?: string, ignoreList?: string[]) => FormData;
187
+ objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
188
188
  order: (arr: any, prop: any, dir?: string) => any;
189
189
  outerHeight: (ele: HTMLElement) => number | false;
190
190
  outerWidth: (ele: HTMLElement) => number | false;
@@ -207,12 +207,12 @@ declare const fn: {
207
207
  replaceSelection: (html: any, selectInserted: any) => void;
208
208
  resize: () => void;
209
209
  rgb2hex: (rgb: any) => string;
210
- riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
210
+ riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
211
211
  roundDecimal: (value: number, decimals: number) => number;
212
212
  sanitize: (str: any, separator?: string) => any;
213
213
  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;
214
214
  selectElementText: (ele: any, win?: any) => void;
215
- selector: (ele: string | HTMLElement) => HTMLElement;
215
+ selector: (ele: any) => any;
216
216
  setCookie: (name: any, value: any, days: any) => void;
217
217
  setCssVar: (varname: any, value: any) => void;
218
218
  setNavigationVars: (url: any, title: any, data?: any, repl?: boolean) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",