@bbn/bbn 1.0.85 → 1.0.87

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 (45) hide show
  1. package/dist/bundle.d.ts +47 -47
  2. package/dist/bundle.js +93 -88
  3. package/dist/fn/browser/getEventData.js +1 -2
  4. package/dist/fn/datetime/calendar.d.ts +1 -1
  5. package/dist/fn/datetime/calendar.js +1 -1
  6. package/dist/fn/datetime/fdate.d.ts +1 -1
  7. package/dist/fn/datetime/fdate.js +1 -1
  8. package/dist/fn/datetime/fdatetime.d.ts +1 -1
  9. package/dist/fn/datetime/fdatetime.js +1 -1
  10. package/dist/fn/datetime/timestamp.js +1 -1
  11. package/dist/fn/default/defaultAjaxAbortFunction.d.ts +1 -1
  12. package/dist/fn/default/defaultAjaxErrorFunction.d.ts +1 -1
  13. package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
  14. package/dist/fn/default/defaultAlertFunction.d.ts +1 -1
  15. package/dist/fn/default/defaultAlertFunction.js +1 -1
  16. package/dist/fn/default/defaultConfirmFunction.d.ts +1 -1
  17. package/dist/fn/default/defaultConfirmFunction.js +1 -1
  18. package/dist/fn/default/defaultEndLoadingFunction.d.ts +1 -1
  19. package/dist/fn/default/defaultEndLoadingFunction.js +1 -1
  20. package/dist/fn/default/defaultPostLinkFunction.d.ts +1 -1
  21. package/dist/fn/default/defaultPostLinkFunction.js +1 -1
  22. package/dist/fn/default/defaultPreLinkFunction.d.ts +1 -1
  23. package/dist/fn/default/defaultPreLinkFunction.js +1 -1
  24. package/dist/fn/default/defaultStartLoadingFunction.d.ts +1 -1
  25. package/dist/fn/default/defaultStartLoadingFunction.js +1 -1
  26. package/dist/fn/form/addInputs.d.ts +1 -1
  27. package/dist/fn/form/formdata.d.ts +1 -1
  28. package/dist/fn/form/objectToFormData.d.ts +1 -1
  29. package/dist/fn/form/objectToFormData.js +1 -1
  30. package/dist/fn/html/getAncestors.d.ts +1 -1
  31. package/dist/fn/html/getAncestors.js +1 -1
  32. package/dist/fn/html/getPath.d.ts +1 -1
  33. package/dist/fn/html/getText.d.ts +1 -1
  34. package/dist/fn/html/html2text.d.ts +1 -1
  35. package/dist/fn/html/selector.d.ts +2 -2
  36. package/dist/fn/html/selector.js +1 -1
  37. package/dist/fn/init.js +80 -76
  38. package/dist/fn/loop/fori.d.ts +1 -1
  39. package/dist/fn/loop/forir.d.ts +1 -1
  40. package/dist/fn/loop/iterate.d.ts +1 -1
  41. package/dist/fn/loop/riterate.d.ts +1 -1
  42. package/dist/fn/loop/riterate.js +1 -1
  43. package/dist/fn/style/resize.js +1 -2
  44. package/dist/fn.d.ts +23 -23
  45. package/package.json +1 -1
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);
@@ -5948,7 +5948,7 @@
5948
5948
  };
5949
5949
  exports.getHTMLOfSelection = getHTMLOfSelection;
5950
5950
  });
5951
- define("fn/browser/getEventData", ["require", "exports", "fn/html/getHTMLOfSelection", "fn/loop/each", "fn/default/defaultErrorFunction"], function (require, exports, getHTMLOfSelection_1, each_15, defaultErrorFunction_1) {
5951
+ define("fn/browser/getEventData", ["require", "exports", "fn/html/getHTMLOfSelection", "fn/loop/each"], function (require, exports, getHTMLOfSelection_1, each_15) {
5952
5952
  "use strict";
5953
5953
  Object.defineProperty(exports, "__esModule", { value: true });
5954
5954
  exports.getEventData = void 0;
@@ -6032,7 +6032,7 @@
6032
6032
  }
6033
6033
  }
6034
6034
  else {
6035
- (0, defaultErrorFunction_1.defaultErrorFunction)(bbn._('Impossible to read the file') + ' ' + name);
6035
+ bbn.fn.defaultErrorFunction(bbn._('Impossible to read the file') + ' ' + name);
6036
6036
  }
6037
6037
  }
6038
6038
  else {
@@ -6899,7 +6899,7 @@
6899
6899
  };
6900
6900
  exports.submit = submit;
6901
6901
  });
6902
- define("fn/style/resize", ["require", "exports", "fn/style/getCssVar", "fn/loop/each", "fn/default/defaultResizeFunction"], function (require, exports, getCssVar_1, each_17, defaultResizeFunction_1) {
6902
+ define("fn/style/resize", ["require", "exports", "fn/style/getCssVar", "fn/loop/each"], function (require, exports, getCssVar_1, each_17) {
6903
6903
  "use strict";
6904
6904
  Object.defineProperty(exports, "__esModule", { value: true });
6905
6905
  exports.resize = void 0;
@@ -6934,8 +6934,8 @@
6934
6934
  if (!done) {
6935
6935
  classes.push(newCls);
6936
6936
  }
6937
+ bbn.fn.defaultResizeFunction();
6937
6938
  document.body.className = classes.join(' ');
6938
- (0, defaultResizeFunction_1.defaultResizeFunction)();
6939
6939
  }
6940
6940
  };
6941
6941
  exports.resize = resize;
@@ -6991,7 +6991,7 @@
6991
6991
  };
6992
6992
  exports.isMobile = isMobile;
6993
6993
  });
6994
- define("fn/init", ["require", "exports", "fn/string/substr", "fn/loop/each", "fn/object/extend", "fn/style/addColors", "fn/ajax/link", "fn/form/submit", "fn/style/resize", "fn/browser/isMobile", "fn/browser/isTabletDevice", "fn/default/defaultHistoryFunction", "fn/type/isFunction", "fn/browser/log"], function (require, exports, substr_11, each_18, extend_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9, log_18) {
6994
+ define("fn/init", ["require", "exports", "fn/string/substr", "fn/loop/each", "fn/object/extend", "fn/style/addColors", "fn/ajax/link", "fn/form/submit", "fn/style/resize", "fn/browser/isMobile", "fn/browser/isTabletDevice", "fn/type/isFunction", "fn/browser/log"], function (require, exports, substr_11, each_18, extend_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, isFunction_9, log_18) {
6995
6995
  "use strict";
6996
6996
  Object.defineProperty(exports, "__esModule", { value: true });
6997
6997
  exports.init = void 0;
@@ -7011,61 +7011,62 @@
7011
7011
  const init = function (cfg, force) {
7012
7012
  let parts;
7013
7013
  if (!bbn.env.isInit || force) {
7014
- bbn.env.root = document.baseURI.length > 0 ? document.baseURI : bbn.env.host;
7015
- if (bbn.env.root.length && (0, substr_11.substr)(bbn.env.root, -1) !== '/') {
7016
- bbn.env.root += '/';
7014
+ bbn.env.root =
7015
+ document.baseURI.length > 0 ? document.baseURI : bbn.env.host;
7016
+ if (bbn.env.root.length && (0, substr_11.substr)(bbn.env.root, -1) !== "/") {
7017
+ bbn.env.root += "/";
7017
7018
  }
7018
- if (!bbn.env.isInit && typeof dayjs !== 'undefined') {
7019
+ if (!bbn.env.isInit && typeof dayjs !== "undefined") {
7019
7020
  (0, each_18.each)([
7020
- 'advancedFormat',
7021
- 'arraySupport',
7022
- 'badMutable',
7023
- 'buddhistEra',
7024
- 'calendar',
7025
- 'customParseFormat',
7026
- 'dayOfYear',
7027
- 'devHelper',
7028
- 'duration',
7029
- 'isBetween',
7030
- 'isLeapYear',
7031
- 'isSameOrAfter',
7032
- 'isSameOrBefore',
7033
- 'isToday',
7034
- 'isTomorrow',
7035
- 'isYesterday',
7036
- 'isoWeek',
7037
- 'isoWeeksInYear',
7038
- 'localeData',
7039
- 'localizedFormat',
7040
- 'minMax',
7041
- 'objectSupport',
7042
- 'pluralGetSet',
7043
- 'quarterOfYear',
7044
- 'relativeTime',
7045
- 'timezone',
7046
- 'toArray',
7047
- 'toObject',
7048
- 'updateLocale',
7049
- 'utc',
7050
- 'weekOfYear',
7051
- 'weekYear',
7052
- 'weekday',
7021
+ "advancedFormat",
7022
+ "arraySupport",
7023
+ "badMutable",
7024
+ "buddhistEra",
7025
+ "calendar",
7026
+ "customParseFormat",
7027
+ "dayOfYear",
7028
+ "devHelper",
7029
+ "duration",
7030
+ "isBetween",
7031
+ "isLeapYear",
7032
+ "isSameOrAfter",
7033
+ "isSameOrBefore",
7034
+ "isToday",
7035
+ "isTomorrow",
7036
+ "isYesterday",
7037
+ "isoWeek",
7038
+ "isoWeeksInYear",
7039
+ "localeData",
7040
+ "localizedFormat",
7041
+ "minMax",
7042
+ "objectSupport",
7043
+ "pluralGetSet",
7044
+ "quarterOfYear",
7045
+ "relativeTime",
7046
+ "timezone",
7047
+ "toArray",
7048
+ "toObject",
7049
+ "updateLocale",
7050
+ "utc",
7051
+ "weekOfYear",
7052
+ "weekYear",
7053
+ "weekday",
7053
7054
  ], (plugin) => {
7054
- if (window['dayjs_plugin_' + plugin]) {
7055
- dayjs.extend(window['dayjs_plugin_' + plugin]);
7055
+ if (window["dayjs_plugin_" + plugin]) {
7056
+ dayjs.extend(window["dayjs_plugin_" + plugin]);
7056
7057
  }
7057
7058
  });
7058
7059
  }
7059
7060
  /* The server's path (difference between the host and the current dir */
7060
- if (typeof cfg === 'object') {
7061
+ if (typeof cfg === "object") {
7061
7062
  (0, extend_7.extend)(true, bbn, cfg);
7062
7063
  }
7063
7064
  bbn.env.path = (0, substr_11.substr)(bbn.env.url, bbn.env.root.length);
7064
- parts = bbn.env.path.split('/');
7065
+ parts = bbn.env.path.split("/");
7065
7066
  //$.each(parts, function(i, v){
7066
7067
  (0, each_18.each)(parts, (v, i) => {
7067
7068
  v = decodeURI(v.trim());
7068
- if (v !== '') {
7069
+ if (v !== "") {
7069
7070
  bbn.env.params.push(v);
7070
7071
  }
7071
7072
  });
@@ -7082,59 +7083,63 @@
7082
7083
  bbn.env.isFocused = false;
7083
7084
  bbn.env.timeoff = Math.round(new Date().getTime() / 1000);
7084
7085
  };
7085
- document.addEventListener('focusin', (e) => {
7086
- if (e.target instanceof HTMLElement && !e.target.classList.contains('bbn-no')) {
7086
+ document.addEventListener("focusin", (e) => {
7087
+ if (e.target instanceof HTMLElement &&
7088
+ !e.target.classList.contains("bbn-no")) {
7087
7089
  bbn.env.focused = e.target;
7088
7090
  }
7089
7091
  bbn.env.last_focus = new Date().getTime();
7090
7092
  });
7091
- document.addEventListener('click', (e) => {
7093
+ document.addEventListener("click", (e) => {
7092
7094
  bbn.env.last_focus = new Date().getTime();
7093
- if (bbn.env.nav !== 'ajax') {
7095
+ if (bbn.env.nav !== "ajax") {
7094
7096
  return;
7095
7097
  }
7096
7098
  let target = e.target;
7097
- if (target instanceof HTMLElement && (target.tagName !== 'A')) {
7099
+ if (target instanceof HTMLElement && target.tagName !== "A") {
7098
7100
  let p = target;
7099
- while (p && p.tagName !== 'A') {
7100
- if (p.tagName === 'BODY') {
7101
+ while (p && p.tagName !== "A") {
7102
+ if (p.tagName === "BODY") {
7101
7103
  break;
7102
7104
  }
7103
7105
  p = p.parentElement;
7104
7106
  }
7105
- if (p && p.tagName === 'A') {
7107
+ if (p && p.tagName === "A") {
7106
7108
  target = p;
7107
7109
  }
7108
7110
  else {
7109
7111
  target = null;
7110
7112
  }
7111
7113
  }
7112
- if (target instanceof HTMLElement && target.hasAttribute('href') && !target.hasAttribute('target') && !target.classList.contains('bbn-no')) {
7114
+ if (target instanceof HTMLElement &&
7115
+ target.hasAttribute("href") &&
7116
+ !target.hasAttribute("target") &&
7117
+ !target.classList.contains("bbn-no")) {
7113
7118
  e.preventDefault();
7114
7119
  e.stopPropagation();
7115
- (0, link_1.link)(target.getAttribute('href'));
7120
+ (0, link_1.link)(target.getAttribute("href"));
7116
7121
  return false;
7117
7122
  }
7118
7123
  });
7119
- (0, each_18.each)(document.querySelectorAll('form:not(.bbn-no), form:not(.bbn-form)'), (ele) => {
7120
- ele.addEventListener('submit', (e) => {
7124
+ (0, each_18.each)(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"), (ele) => {
7125
+ ele.addEventListener("submit", (e) => {
7121
7126
  (0, submit_1.submit)(ele, e);
7122
7127
  });
7123
7128
  });
7124
- window.addEventListener('hashchange', () => {
7129
+ window.addEventListener("hashchange", () => {
7125
7130
  bbn.env.hashChanged = new Date().getTime();
7126
7131
  }, false);
7127
- window.addEventListener('resize', () => {
7132
+ window.addEventListener("resize", () => {
7128
7133
  (0, resize_1.resize)();
7129
7134
  });
7130
- window.addEventListener('orientationchange', () => {
7135
+ window.addEventListener("orientationchange", () => {
7131
7136
  (0, resize_1.resize)();
7132
7137
  });
7133
7138
  (0, resize_1.resize)();
7134
7139
  if ((0, isMobile_1.isMobile)()) {
7135
- document.body.classList.add('bbn-mobile');
7140
+ document.body.classList.add("bbn-mobile");
7136
7141
  if ((0, isTabletDevice_2.isTabletDevice)()) {
7137
- document.body.classList.add('bbn-tablet');
7142
+ document.body.classList.add("bbn-tablet");
7138
7143
  }
7139
7144
  }
7140
7145
  if (window.history) {
@@ -7142,9 +7147,9 @@
7142
7147
  let h = window.history;
7143
7148
  if (!bbn.env.historyDisabled && h) {
7144
7149
  //e.preventDefault();
7145
- let state = h.state;
7146
- if (state) {
7147
- if ((0, defaultHistoryFunction_1.defaultHistoryFunction)(state)) {
7150
+ if (bbn.fn.defaultHistoryFunction(h.state)) {
7151
+ let state = h.state;
7152
+ if (state) {
7148
7153
  //link(substr(state.url, bbn.env.root.length), $.extend({title: state.title}, state.data));
7149
7154
  (0, link_1.link)(state.url, (0, extend_7.extend)({ title: state.title || bbn.env.siteTitle }, state.data || {}));
7150
7155
  }
@@ -7156,9 +7161,9 @@
7156
7161
  };
7157
7162
  }
7158
7163
  bbn.env.isInit = true;
7159
- document.dispatchEvent(new Event('bbninit'));
7164
+ document.dispatchEvent(new Event("bbninit"));
7160
7165
  if (bbn.env.logging) {
7161
- (0, log_18.log)('Logging in bbn is enabled');
7166
+ (0, log_18.log)("Logging in bbn is enabled");
7162
7167
  }
7163
7168
  }
7164
7169
  };
@@ -8423,7 +8428,7 @@
8423
8428
  * @param {Array} ignoreList
8424
8429
  * @returns
8425
8430
  */
8426
- const objectToFormData = function (obj, key = '', ignoreList) {
8431
+ const objectToFormData = function (obj, key = '', ignoreList = null) {
8427
8432
  let formData = new FormData();
8428
8433
  let appendFormData = (data, key = '') => {
8429
8434
  if (!ignoreList || ((0, isArray_15.isArray)(ignoreList) && !ignoreList.includes(key))) {
@@ -8504,7 +8509,7 @@
8504
8509
  * @todo Add method description for selector
8505
8510
  * @global
8506
8511
  * @memberof bbn.fn
8507
- * @returns {*}
8512
+ * @returns {HTMLElement | undefined}
8508
8513
  */
8509
8514
  const selector = function (ele) {
8510
8515
  return typeof ele === "string" ? document.querySelector(ele) : ele;
@@ -9089,7 +9094,7 @@
9089
9094
  * @param {Boolean} noPrivate If set to true the _private_ properties won't be included
9090
9095
  * @returns {Object}
9091
9096
  */
9092
- const riterate = function (obj, fn, noPrivate) {
9097
+ const riterate = function (obj, fn, noPrivate = false) {
9093
9098
  return (0, iterate_10.iterate)(obj, fn, noPrivate, true);
9094
9099
  };
9095
9100
  exports.riterate = riterate;
@@ -9536,7 +9541,7 @@
9536
9541
  * @param {Number} seconds
9537
9542
  * @returns {Boolean}
9538
9543
  */
9539
- const timestamp = function (seconds) {
9544
+ const timestamp = function (seconds = false) {
9540
9545
  let r = new Date().getTime();
9541
9546
  return seconds ? Math.round(r / 1000) : r;
9542
9547
  };
@@ -9769,7 +9774,7 @@
9769
9774
  };
9770
9775
  exports.upload = upload;
9771
9776
  });
9772
- define("fn", ["require", "exports", "fn/ajax/_addLoader", "fn/object/_compareValues", "fn/ajax/_deleteLoader", "fn/ajax/abort", "fn/ajax/abortURL", "fn/style/addColors", "fn/form/addInputs", "fn/style/addStyle", "fn/html/adjustHeight", "fn/html/adjustSize", "fn/html/adjustWidth", "fn/ajax/ajax", "fn/misc/analyzeFunction", "fn/style/animateCss", "fn/convert/arrayBuffer2String", "fn/object/arrayFromProp", "fn/object/autoExtend", "fn/string/baseName", "fn/string/br2nl", "fn/datetime/calendar", "fn/ajax/callback", "fn/string/camelize", "fn/string/camelToCss", "fn/convert/canvasToImage", "fn/style/center", "fn/object/checkProps", "fn/object/checkPropsDetails", "fn/object/checkPropsOrDie", "fn/type/checkType", "fn/object/circularReplacer", "fn/object/clone", "fn/convert/colorToHex", "fn/object/compare", "fn/object/compareConditions", "fn/browser/copy", "fn/string/correctCase", "fn/object/count", "fn/string/crc32", "fn/object/createObject", "fn/style/cssExists", "fn/datetime/date", "fn/datetime/dateSQL", "fn/datetime/daysInMonth", "fn/object/deepPath", "fn/default/defaultAjaxAbortFunction", "fn/default/defaultAjaxErrorFunction", "fn/default/defaultAlertFunction", "fn/default/defaultConfirmFunction", "fn/default/defaultEndLoadingFunction", "fn/default/defaultErrorFunction", "fn/default/defaultHistoryFunction", "fn/default/defaultLinkFunction", "fn/default/defaultPostLinkFunction", "fn/default/defaultPreLinkFunction", "fn/default/defaultResizeFunction", "fn/default/defaultStartLoadingFunction", "fn/object/deleteProp", "fn/object/diffObj", "fn/string/dirName", "fn/ajax/download", "fn/ajax/downloadContent", "fn/loop/each", "fn/browser/eraseCookie", "fn/browser/error", "fn/string/escapeDquotes", "fn/string/escapeRegExp", "fn/string/escapeSquotes", "fn/string/escapeTicks", "fn/string/escapeUrl", "fn/object/extend", "fn/object/extendOut", "fn/datetime/fdate", "fn/datetime/fdatetime", "fn/form/fieldValue", "fn/string/fileExt", "fn/object/filter", "fn/object/filterToConditions", "fn/object/findAll", "fn/loop/fori", "fn/loop/forir", "fn/string/format", "fn/string/formatBytes", "fn/datetime/formatDate", "fn/string/formatSize", "fn/form/formdata", "fn/convert/fromXml", "fn/datetime/ftime", "fn/html/getAllTags", "fn/html/getAncestors", "fn/html/getAttributes", "fn/browser/getBrowserName", "fn/browser/getBrowserVersion", "fn/browser/getCookie", "fn/style/getCssVar", "fn/datetime/getDay", "fn/browser/getDeviceType", "fn/browser/getEventData", "fn/object/getField", "fn/object/getFieldValues", "fn/html/getHtml", "fn/html/getHTMLOfSelection", "fn/ajax/getLoader", "fn/html/getPath", "fn/object/getProp", "fn/object/getProperty", "fn/ajax/getRequestId", "fn/object/getRow", "fn/style/getScrollBarSize", "fn/html/getText", "fn/misc/getTimeoff", "fn/browser/happy", "fn/string/hash", "fn/convert/hex2rgb", "fn/browser/history", "fn/html/html2text", "fn/convert/imageToCanvas", "fn/convert/imgToBase64", "fn/browser/info", "fn/init", "fn/browser/isActiveInterface", "fn/type/isArray", "fn/type/isBlob", "fn/type/isBoolean", "fn/type/isCanvas", "fn/type/isColor", "fn/type/isComment", "fn/type/isCp", "fn/type/isDate", "fn/browser/isDesktopDevice", "fn/type/isDimension", "fn/type/isDom", "fn/type/isEmail", "fn/type/isEmpty", "fn/type/isEvent", "fn/browser/isFocused", "fn/type/isFunction", "fn/type/isHostname", "fn/html/isInside", "fn/type/isInt", "fn/type/isIP", "fn/type/isIterable", "fn/browser/isMobile", "fn/browser/isMobileDevice", "fn/type/isNull", "fn/type/isNumber", "fn/type/isObject", "fn/type/isPercent", "fn/type/isPrimitive", "fn/type/isPromise", "fn/type/isPropSize", "fn/type/isSame", "fn/type/isSQLDate", "fn/type/isString", "fn/type/isSymbol", "fn/browser/isTabletDevice", "fn/type/isURL", "fn/type/isValidDimension", "fn/type/isValidName", "fn/type/isValue", "fn/type/isVue", "fn/loop/iterate", "fn/style/lightenDarkenHex", "fn/ajax/link", "fn/browser/log", "fn/html/makeReactive", "fn/object/map", "fn/string/md5", "fn/misc/money", "fn/object/move", "fn/object/multiorder", "fn/string/nl2br", "fn/object/numProperties", "fn/form/objectToFormData", "fn/object/order", "fn/style/outerHeight", "fn/style/outerWidth", "fn/misc/percent", "fn/object/pickValue", "fn/ajax/post", "fn/ajax/postOut", "fn/string/printf", "fn/string/quotes2html", "fn/misc/randomInt", "fn/string/randomString", "fn/string/removeAccents", "fn/object/removeEmpty", "fn/string/removeExtraSpaces", "fn/string/removeHtmlComments", "fn/object/removePrivateProp", "fn/string/removeTrailingChars", "fn/string/repeat", "fn/string/replaceAll", "fn/browser/replaceSelection", "fn/style/resize", "fn/convert/rgb2hex", "fn/loop/riterate", "fn/misc/roundDecimal", "fn/string/sanitize", "fn/object/search", "fn/browser/selectElementText", "fn/html/selector", "fn/browser/setCookie", "fn/style/setCssVar", "fn/ajax/setNavigationVars", "fn/object/setProp", "fn/object/setProperty", "fn/string/shorten", "fn/object/shortenObj", "fn/object/shuffle", "fn/string/simpleHash", "fn/string/simpleHash1", "fn/string/simpleHash2", "fn/datetime/chrono", "fn/convert/string2ArrayBuffer", "fn/form/submit", "fn/string/substr", "fn/object/sum", "fn/datetime/timestamp", "fn/convert/toCSV", "fn/browser/toggleFullScreen", "fn/misc/translate", "fn/ajax/treatAjaxArguments", "fn/string/trim", "fn/string/uniqString", "fn/object/unique", "fn/ajax/upload", "fn/browser/warning"], function (require, exports, _addLoader_2, _compareValues_3, _deleteLoader_2, abort_1, abortURL_1, addColors_2, addInputs_2, addStyle_1, adjustHeight_1, adjustSize_3, adjustWidth_1, ajax_4, analyzeFunction_1, animateCss_1, arrayBuffer2String_1, arrayFromProp_1, autoExtend_1, baseName_3, br2nl_1, calendar_1, callback_3, camelize_1, camelToCss_1, canvasToImage_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_1, defaultAjaxErrorFunction_1, defaultAlertFunction_1, defaultConfirmFunction_1, defaultEndLoadingFunction_1, defaultErrorFunction_2, defaultHistoryFunction_2, defaultLinkFunction_1, defaultPostLinkFunction_1, defaultPreLinkFunction_1, defaultResizeFunction_2, defaultStartLoadingFunction_1, deleteProp_1, diffObj_1, dirName_2, download_1, downloadContent_2, each_28, eraseCookie_1, error_4, escapeDquotes_1, escapeRegExp_3, escapeSquotes_1, escapeTicks_1, escapeUrl_1, extend_8, extendOut_1, fdate_2, fdatetime_2, fieldValue_2, fileExt_2, filter_6, filterToConditions_3, findAll_1, fori_1, forir_1, format_1, formatBytes_1, formatDate_1, formatSize_1, formdata_2, fromXml_1, ftime_1, getAllTags_1, getAncestors_2, getAttributes_1, getBrowserName_1, getBrowserVersion_1, getCookie_1, getCssVar_2, getDay_1, getDeviceType_4, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_1, getProp_1, getProperty_4, getRequestId_2, getRow_3, getScrollBarSize_1, getText_1, getTimeoff_1, happy_1, hash_2, hex2rgb_1, history_1, html2text_2, imageToCanvas_2, imgToBase64_1, info_1, init_1, isActiveInterface_1, isArray_19, isBlob_2, isBoolean_1, isCanvas_2, isColor_1, isComment_1, isCp_3, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_11, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_10, isObject_18, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_27, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_12, lightenDarkenHex_1, link_2, log_22, makeReactive_1, map_1, md5_4, money_1, move_1, multiorder_1, nl2br_1, numProperties_8, objectToFormData_2, order_1, outerHeight_1, outerWidth_1, percent_1, pickValue_1, post_2, postOut_1, printf_1, quotes2html_1, randomInt_2, randomString_1, removeAccents_4, removeEmpty_1, removeExtraSpaces_1, removeHtmlComments_2, removePrivateProp_2, removeTrailingChars_1, repeat_1, replaceAll_8, replaceSelection_1, resize_3, rgb2hex_1, riterate_1, roundDecimal_1, sanitize_1, search_6, selectElementText_1, selector_3, setCookie_1, setCssVar_1, setNavigationVars_2, setProp_1, setProperty_2, shorten_2, shortenObj_1, shuffle_1, simpleHash_2, simpleHash1_2, simpleHash2_2, chrono_1, string2ArrayBuffer_1, submit_2, substr_16, sum_1, timestamp_1, toCSV_1, toggleFullScreen_1, translate_1, treatAjaxArguments_3, trim_2, uniqString_1, unique_2, upload_1, warning_2) {
9777
+ define("fn", ["require", "exports", "fn/ajax/_addLoader", "fn/object/_compareValues", "fn/ajax/_deleteLoader", "fn/ajax/abort", "fn/ajax/abortURL", "fn/style/addColors", "fn/form/addInputs", "fn/style/addStyle", "fn/html/adjustHeight", "fn/html/adjustSize", "fn/html/adjustWidth", "fn/ajax/ajax", "fn/misc/analyzeFunction", "fn/style/animateCss", "fn/convert/arrayBuffer2String", "fn/object/arrayFromProp", "fn/object/autoExtend", "fn/string/baseName", "fn/string/br2nl", "fn/datetime/calendar", "fn/ajax/callback", "fn/string/camelize", "fn/string/camelToCss", "fn/convert/canvasToImage", "fn/style/center", "fn/object/checkProps", "fn/object/checkPropsDetails", "fn/object/checkPropsOrDie", "fn/type/checkType", "fn/object/circularReplacer", "fn/object/clone", "fn/convert/colorToHex", "fn/object/compare", "fn/object/compareConditions", "fn/browser/copy", "fn/string/correctCase", "fn/object/count", "fn/string/crc32", "fn/object/createObject", "fn/style/cssExists", "fn/datetime/date", "fn/datetime/dateSQL", "fn/datetime/daysInMonth", "fn/object/deepPath", "fn/default/defaultAjaxAbortFunction", "fn/default/defaultAjaxErrorFunction", "fn/default/defaultAlertFunction", "fn/default/defaultConfirmFunction", "fn/default/defaultEndLoadingFunction", "fn/default/defaultErrorFunction", "fn/default/defaultHistoryFunction", "fn/default/defaultLinkFunction", "fn/default/defaultPostLinkFunction", "fn/default/defaultPreLinkFunction", "fn/default/defaultResizeFunction", "fn/default/defaultStartLoadingFunction", "fn/object/deleteProp", "fn/object/diffObj", "fn/string/dirName", "fn/ajax/download", "fn/ajax/downloadContent", "fn/loop/each", "fn/browser/eraseCookie", "fn/browser/error", "fn/string/escapeDquotes", "fn/string/escapeRegExp", "fn/string/escapeSquotes", "fn/string/escapeTicks", "fn/string/escapeUrl", "fn/object/extend", "fn/object/extendOut", "fn/datetime/fdate", "fn/datetime/fdatetime", "fn/form/fieldValue", "fn/string/fileExt", "fn/object/filter", "fn/object/filterToConditions", "fn/object/findAll", "fn/loop/fori", "fn/loop/forir", "fn/string/format", "fn/string/formatBytes", "fn/datetime/formatDate", "fn/string/formatSize", "fn/form/formdata", "fn/convert/fromXml", "fn/datetime/ftime", "fn/html/getAllTags", "fn/html/getAncestors", "fn/html/getAttributes", "fn/browser/getBrowserName", "fn/browser/getBrowserVersion", "fn/browser/getCookie", "fn/style/getCssVar", "fn/datetime/getDay", "fn/browser/getDeviceType", "fn/browser/getEventData", "fn/object/getField", "fn/object/getFieldValues", "fn/html/getHtml", "fn/html/getHTMLOfSelection", "fn/ajax/getLoader", "fn/html/getPath", "fn/object/getProp", "fn/object/getProperty", "fn/ajax/getRequestId", "fn/object/getRow", "fn/style/getScrollBarSize", "fn/html/getText", "fn/misc/getTimeoff", "fn/browser/happy", "fn/string/hash", "fn/convert/hex2rgb", "fn/browser/history", "fn/html/html2text", "fn/convert/imageToCanvas", "fn/convert/imgToBase64", "fn/browser/info", "fn/init", "fn/browser/isActiveInterface", "fn/type/isArray", "fn/type/isBlob", "fn/type/isBoolean", "fn/type/isCanvas", "fn/type/isColor", "fn/type/isComment", "fn/type/isCp", "fn/type/isDate", "fn/browser/isDesktopDevice", "fn/type/isDimension", "fn/type/isDom", "fn/type/isEmail", "fn/type/isEmpty", "fn/type/isEvent", "fn/browser/isFocused", "fn/type/isFunction", "fn/type/isHostname", "fn/html/isInside", "fn/type/isInt", "fn/type/isIP", "fn/type/isIterable", "fn/browser/isMobile", "fn/browser/isMobileDevice", "fn/type/isNull", "fn/type/isNumber", "fn/type/isObject", "fn/type/isPercent", "fn/type/isPrimitive", "fn/type/isPromise", "fn/type/isPropSize", "fn/type/isSame", "fn/type/isSQLDate", "fn/type/isString", "fn/type/isSymbol", "fn/browser/isTabletDevice", "fn/type/isURL", "fn/type/isValidDimension", "fn/type/isValidName", "fn/type/isValue", "fn/type/isVue", "fn/loop/iterate", "fn/style/lightenDarkenHex", "fn/ajax/link", "fn/browser/log", "fn/html/makeReactive", "fn/object/map", "fn/string/md5", "fn/misc/money", "fn/object/move", "fn/object/multiorder", "fn/string/nl2br", "fn/object/numProperties", "fn/form/objectToFormData", "fn/object/order", "fn/style/outerHeight", "fn/style/outerWidth", "fn/misc/percent", "fn/object/pickValue", "fn/ajax/post", "fn/ajax/postOut", "fn/string/printf", "fn/string/quotes2html", "fn/misc/randomInt", "fn/string/randomString", "fn/string/removeAccents", "fn/object/removeEmpty", "fn/string/removeExtraSpaces", "fn/string/removeHtmlComments", "fn/object/removePrivateProp", "fn/string/removeTrailingChars", "fn/string/repeat", "fn/string/replaceAll", "fn/browser/replaceSelection", "fn/style/resize", "fn/convert/rgb2hex", "fn/loop/riterate", "fn/misc/roundDecimal", "fn/string/sanitize", "fn/object/search", "fn/browser/selectElementText", "fn/html/selector", "fn/browser/setCookie", "fn/style/setCssVar", "fn/ajax/setNavigationVars", "fn/object/setProp", "fn/object/setProperty", "fn/string/shorten", "fn/object/shortenObj", "fn/object/shuffle", "fn/string/simpleHash", "fn/string/simpleHash1", "fn/string/simpleHash2", "fn/datetime/chrono", "fn/convert/string2ArrayBuffer", "fn/form/submit", "fn/string/substr", "fn/object/sum", "fn/datetime/timestamp", "fn/convert/toCSV", "fn/browser/toggleFullScreen", "fn/misc/translate", "fn/ajax/treatAjaxArguments", "fn/string/trim", "fn/string/uniqString", "fn/object/unique", "fn/ajax/upload", "fn/browser/warning"], function (require, exports, _addLoader_2, _compareValues_3, _deleteLoader_2, abort_1, abortURL_1, addColors_2, addInputs_2, addStyle_1, adjustHeight_1, adjustSize_3, adjustWidth_1, ajax_4, analyzeFunction_1, animateCss_1, arrayBuffer2String_1, arrayFromProp_1, autoExtend_1, baseName_3, br2nl_1, calendar_1, callback_3, camelize_1, camelToCss_1, canvasToImage_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_1, defaultAjaxErrorFunction_1, defaultAlertFunction_1, defaultConfirmFunction_1, defaultEndLoadingFunction_1, defaultErrorFunction_1, defaultHistoryFunction_1, defaultLinkFunction_1, defaultPostLinkFunction_1, defaultPreLinkFunction_1, defaultResizeFunction_1, defaultStartLoadingFunction_1, deleteProp_1, diffObj_1, dirName_2, download_1, downloadContent_2, each_28, eraseCookie_1, error_4, escapeDquotes_1, escapeRegExp_3, escapeSquotes_1, escapeTicks_1, escapeUrl_1, extend_8, extendOut_1, fdate_2, fdatetime_2, fieldValue_2, fileExt_2, filter_6, filterToConditions_3, findAll_1, fori_1, forir_1, format_1, formatBytes_1, formatDate_1, formatSize_1, formdata_2, fromXml_1, ftime_1, getAllTags_1, getAncestors_2, getAttributes_1, getBrowserName_1, getBrowserVersion_1, getCookie_1, getCssVar_2, getDay_1, getDeviceType_4, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_1, getProp_1, getProperty_4, getRequestId_2, getRow_3, getScrollBarSize_1, getText_1, getTimeoff_1, happy_1, hash_2, hex2rgb_1, history_1, html2text_2, imageToCanvas_2, imgToBase64_1, info_1, init_1, isActiveInterface_1, isArray_19, isBlob_2, isBoolean_1, isCanvas_2, isColor_1, isComment_1, isCp_3, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_11, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_10, isObject_18, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_27, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_12, lightenDarkenHex_1, link_2, log_22, makeReactive_1, map_1, md5_4, money_1, move_1, multiorder_1, nl2br_1, numProperties_8, objectToFormData_2, order_1, outerHeight_1, outerWidth_1, percent_1, pickValue_1, post_2, postOut_1, printf_1, quotes2html_1, randomInt_2, randomString_1, removeAccents_4, removeEmpty_1, removeExtraSpaces_1, removeHtmlComments_2, removePrivateProp_2, removeTrailingChars_1, repeat_1, replaceAll_8, replaceSelection_1, resize_3, rgb2hex_1, riterate_1, roundDecimal_1, sanitize_1, search_6, selectElementText_1, selector_3, setCookie_1, setCssVar_1, setNavigationVars_2, setProp_1, setProperty_2, shorten_2, shortenObj_1, shuffle_1, simpleHash_2, simpleHash1_2, simpleHash2_2, chrono_1, string2ArrayBuffer_1, submit_2, substr_16, sum_1, timestamp_1, toCSV_1, toggleFullScreen_1, translate_1, treatAjaxArguments_3, trim_2, uniqString_1, unique_2, upload_1, warning_2) {
9773
9778
  "use strict";
9774
9779
  Object.defineProperty(exports, "__esModule", { value: true });
9775
9780
  exports.fn = void 0;
@@ -9823,12 +9828,12 @@
9823
9828
  defaultAlertFunction: defaultAlertFunction_1.defaultAlertFunction,
9824
9829
  defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
9825
9830
  defaultEndLoadingFunction: defaultEndLoadingFunction_1.defaultEndLoadingFunction,
9826
- defaultErrorFunction: defaultErrorFunction_2.defaultErrorFunction,
9827
- defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
9831
+ defaultErrorFunction: defaultErrorFunction_1.defaultErrorFunction,
9832
+ defaultHistoryFunction: defaultHistoryFunction_1.defaultHistoryFunction,
9828
9833
  defaultLinkFunction: defaultLinkFunction_1.defaultLinkFunction,
9829
9834
  defaultPostLinkFunction: defaultPostLinkFunction_1.defaultPostLinkFunction,
9830
9835
  defaultPreLinkFunction: defaultPreLinkFunction_1.defaultPreLinkFunction,
9831
- defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
9836
+ defaultResizeFunction: defaultResizeFunction_1.defaultResizeFunction,
9832
9837
  defaultStartLoadingFunction: defaultStartLoadingFunction_1.defaultStartLoadingFunction,
9833
9838
  deleteProp: deleteProp_1.deleteProp,
9834
9839
  diffObj: diffObj_1.diffObj,
@@ -1,6 +1,5 @@
1
1
  import { getHTMLOfSelection } from '../html/getHTMLOfSelection';
2
2
  import { each } from '../loop/each';
3
- import { defaultErrorFunction } from '../default/defaultErrorFunction';
4
3
  /**
5
4
  * Returns a promise having the event's data as argument.
6
5
  * @method getEventData
@@ -81,7 +80,7 @@ const getEventData = function (e) {
81
80
  }
82
81
  }
83
82
  else {
84
- defaultErrorFunction(bbn._('Impossible to read the file') + ' ' + name);
83
+ bbn.fn.defaultErrorFunction(bbn._('Impossible to read the file') + ' ' + name);
85
84
  }
86
85
  }
87
86
  else {
@@ -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
  };