@bbn/bbn 1.0.26 → 1.0.27

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 (237) hide show
  1. package/dist/bundle.d.ts +2 -2
  2. package/dist/bundle.js +24 -24
  3. package/dist/fn/_addLoader.js +6 -3
  4. package/dist/fn/_compareValues.js +14 -11
  5. package/dist/fn/_deleteLoader.js +10 -7
  6. package/dist/fn/abort.js +6 -3
  7. package/dist/fn/abortURL.js +7 -4
  8. package/dist/fn/addColors.js +8 -5
  9. package/dist/fn/addInputs.js +6 -3
  10. package/dist/fn/addStyle.js +8 -5
  11. package/dist/fn/adjustHeight.js +8 -5
  12. package/dist/fn/adjustSize.js +8 -5
  13. package/dist/fn/adjustWidth.js +8 -5
  14. package/dist/fn/ajax.js +34 -31
  15. package/dist/fn/analyzeFunction.js +6 -3
  16. package/dist/fn/animateCss.js +4 -1
  17. package/dist/fn/arrayBuffer2String.js +4 -1
  18. package/dist/fn/arrayFromProp.js +8 -5
  19. package/dist/fn/autoExtend.js +7 -4
  20. package/dist/fn/baseName.js +9 -6
  21. package/dist/fn/br2nl.js +6 -3
  22. package/dist/fn/calendar.d.ts +1 -1
  23. package/dist/fn/calendar.js +20 -11
  24. package/dist/fn/callback.js +19 -16
  25. package/dist/fn/camelToCss.js +4 -1
  26. package/dist/fn/camelize.js +4 -1
  27. package/dist/fn/canvasToImage.js +4 -1
  28. package/dist/fn/center.js +4 -1
  29. package/dist/fn/checkProps.js +6 -3
  30. package/dist/fn/checkPropsDetails.js +12 -9
  31. package/dist/fn/checkPropsOrDie.js +6 -3
  32. package/dist/fn/checkType.js +19 -16
  33. package/dist/fn/chrono.js +7 -3
  34. package/dist/fn/circularReplacer.js +10 -7
  35. package/dist/fn/clone.js +10 -7
  36. package/dist/fn/colorToHex.js +4 -1
  37. package/dist/fn/compare.js +21 -18
  38. package/dist/fn/compareConditions.js +13 -10
  39. package/dist/fn/copy.js +7 -4
  40. package/dist/fn/correctCase.js +4 -1
  41. package/dist/fn/count.js +6 -3
  42. package/dist/fn/crc32.js +4 -1
  43. package/dist/fn/createObject.js +6 -3
  44. package/dist/fn/cssExists.js +6 -3
  45. package/dist/fn/date.js +11 -8
  46. package/dist/fn/dateSQL.d.ts +1 -1
  47. package/dist/fn/dateSQL.js +11 -4
  48. package/dist/fn/daysInMonth.d.ts +1 -1
  49. package/dist/fn/daysInMonth.js +11 -4
  50. package/dist/fn/deepPath.js +10 -7
  51. package/dist/fn/defaultAjaxAbortFunction.js +6 -3
  52. package/dist/fn/defaultAjaxErrorFunction.js +4 -1
  53. package/dist/fn/defaultAlertFunction.js +4 -1
  54. package/dist/fn/defaultConfirmFunction.js +7 -4
  55. package/dist/fn/defaultEndLoadingFunction.js +4 -1
  56. package/dist/fn/defaultErrorFunction.js +6 -3
  57. package/dist/fn/defaultHistoryFunction.js +4 -1
  58. package/dist/fn/defaultLinkFunction.js +4 -1
  59. package/dist/fn/defaultPostLinkFunction.js +4 -1
  60. package/dist/fn/defaultPreLinkFunction.js +4 -1
  61. package/dist/fn/defaultResizeFunction.js +4 -1
  62. package/dist/fn/defaultStartLoadingFunction.js +4 -1
  63. package/dist/fn/deleteProp.js +7 -4
  64. package/dist/fn/diffObj.js +19 -16
  65. package/dist/fn/dirName.js +10 -7
  66. package/dist/fn/download.js +18 -15
  67. package/dist/fn/downloadContent.js +12 -9
  68. package/dist/fn/each.js +10 -7
  69. package/dist/fn/eraseCookie.js +4 -1
  70. package/dist/fn/error.js +6 -3
  71. package/dist/fn/escapeDquotes.js +6 -3
  72. package/dist/fn/escapeRegExp.js +4 -1
  73. package/dist/fn/escapeSquotes.js +6 -3
  74. package/dist/fn/escapeTicks.js +6 -3
  75. package/dist/fn/escapeUrl.js +11 -8
  76. package/dist/fn/extend.js +16 -13
  77. package/dist/fn/extendOut.js +7 -4
  78. package/dist/fn/fdate.js +18 -11
  79. package/dist/fn/fdatetime.js +16 -9
  80. package/dist/fn/fieldValue.js +4 -1
  81. package/dist/fn/fileExt.js +6 -3
  82. package/dist/fn/filter.js +15 -12
  83. package/dist/fn/filterToConditions.js +11 -8
  84. package/dist/fn/findAll.js +10 -7
  85. package/dist/fn/fori.js +9 -6
  86. package/dist/fn/forir.js +9 -6
  87. package/dist/fn/format.js +6 -3
  88. package/dist/fn/formatBytes.js +4 -1
  89. package/dist/fn/formatDate.d.ts +1 -1
  90. package/dist/fn/formatDate.js +9 -2
  91. package/dist/fn/formatSize.js +8 -5
  92. package/dist/fn/formdata.js +14 -11
  93. package/dist/fn/fromXml.js +4 -1
  94. package/dist/fn/ftime.js +18 -11
  95. package/dist/fn/getAllTags.js +6 -3
  96. package/dist/fn/getAncestors.js +4 -1
  97. package/dist/fn/getAttributes.js +6 -3
  98. package/dist/fn/getBrowserName.js +4 -1
  99. package/dist/fn/getBrowserVersion.js +4 -1
  100. package/dist/fn/getCookie.js +4 -1
  101. package/dist/fn/getCssVar.js +4 -1
  102. package/dist/fn/getDay.js +6 -3
  103. package/dist/fn/getDeviceType.js +4 -1
  104. package/dist/fn/getEventData.js +10 -7
  105. package/dist/fn/getField.js +6 -3
  106. package/dist/fn/getFieldValues.js +10 -7
  107. package/dist/fn/getHTMLOfSelection.js +7 -4
  108. package/dist/fn/getHtml.js +6 -3
  109. package/dist/fn/getLoader.js +6 -3
  110. package/dist/fn/getPath.js +6 -3
  111. package/dist/fn/getProp.js +7 -4
  112. package/dist/fn/getProperty.js +4 -1
  113. package/dist/fn/getRequestId.js +8 -5
  114. package/dist/fn/getRow.js +6 -3
  115. package/dist/fn/getScrollBarSize.js +4 -1
  116. package/dist/fn/getText.js +4 -1
  117. package/dist/fn/getTimeoff.js +4 -1
  118. package/dist/fn/happy.js +6 -3
  119. package/dist/fn/hash.js +14 -11
  120. package/dist/fn/hex2rgb.js +4 -1
  121. package/dist/fn/history.js +4 -1
  122. package/dist/fn/html2text.js +4 -1
  123. package/dist/fn/imageToCanvas.js +4 -1
  124. package/dist/fn/imgToBase64.js +6 -3
  125. package/dist/fn/info.js +6 -3
  126. package/dist/fn/init.js +58 -31
  127. package/dist/fn/isActiveInterface.js +4 -1
  128. package/dist/fn/isArray.js +4 -1
  129. package/dist/fn/isBlob.js +4 -1
  130. package/dist/fn/isBoolean.js +4 -1
  131. package/dist/fn/isCanvas.js +4 -1
  132. package/dist/fn/isColor.js +6 -3
  133. package/dist/fn/isComment.js +4 -1
  134. package/dist/fn/isCp.js +6 -3
  135. package/dist/fn/isDate.js +4 -1
  136. package/dist/fn/isDesktopDevice.js +4 -1
  137. package/dist/fn/isDimension.js +6 -3
  138. package/dist/fn/isDom.js +4 -1
  139. package/dist/fn/isEmail.js +6 -3
  140. package/dist/fn/isEmpty.js +8 -5
  141. package/dist/fn/isEvent.js +4 -1
  142. package/dist/fn/isFocused.js +4 -1
  143. package/dist/fn/isFunction.js +4 -1
  144. package/dist/fn/isHostname.js +8 -5
  145. package/dist/fn/isIP.js +6 -3
  146. package/dist/fn/isInside.js +10 -7
  147. package/dist/fn/isInt.js +4 -1
  148. package/dist/fn/isIterable.js +4 -1
  149. package/dist/fn/isMobile.js +7 -4
  150. package/dist/fn/isMobileDevice.js +4 -1
  151. package/dist/fn/isNull.js +4 -1
  152. package/dist/fn/isNumber.js +4 -1
  153. package/dist/fn/isObject.js +4 -1
  154. package/dist/fn/isPercent.js +4 -1
  155. package/dist/fn/isPrimitive.js +4 -1
  156. package/dist/fn/isPromise.js +4 -1
  157. package/dist/fn/isPropSize.js +6 -3
  158. package/dist/fn/isSQLDate.js +4 -1
  159. package/dist/fn/isSame.js +8 -5
  160. package/dist/fn/isString.js +4 -1
  161. package/dist/fn/isSymbol.js +4 -1
  162. package/dist/fn/isTabletDevice.js +4 -1
  163. package/dist/fn/isURL.js +4 -1
  164. package/dist/fn/isValidDimension.js +7 -4
  165. package/dist/fn/isValidName.js +6 -3
  166. package/dist/fn/isValue.js +6 -3
  167. package/dist/fn/isVue.js +4 -1
  168. package/dist/fn/iterate.js +8 -5
  169. package/dist/fn/lightenDarkenHex.js +4 -1
  170. package/dist/fn/link.js +22 -19
  171. package/dist/fn/log.js +6 -3
  172. package/dist/fn/makeReactive.js +31 -28
  173. package/dist/fn/map.js +6 -3
  174. package/dist/fn/md5.js +4 -1
  175. package/dist/fn/money.js +6 -3
  176. package/dist/fn/move.js +4 -1
  177. package/dist/fn/multiorder.js +6 -3
  178. package/dist/fn/nl2br.js +6 -3
  179. package/dist/fn/numProperties.js +4 -1
  180. package/dist/fn/objectToFormData.js +15 -12
  181. package/dist/fn/order.js +6 -3
  182. package/dist/fn/outerHeight.js +6 -3
  183. package/dist/fn/outerWidth.js +6 -3
  184. package/dist/fn/percent.js +4 -1
  185. package/dist/fn/pickValue.js +4 -1
  186. package/dist/fn/post.js +10 -7
  187. package/dist/fn/postOut.js +8 -5
  188. package/dist/fn/printf.js +4 -1
  189. package/dist/fn/quotes2html.js +7 -4
  190. package/dist/fn/randomInt.js +4 -1
  191. package/dist/fn/randomString.js +7 -4
  192. package/dist/fn/removeAccents.js +8 -5
  193. package/dist/fn/removeEmpty.js +11 -8
  194. package/dist/fn/removeExtraSpaces.js +4 -1
  195. package/dist/fn/removeHtmlComments.js +6 -3
  196. package/dist/fn/removePrivateProp.js +6 -3
  197. package/dist/fn/removeTrailingChars.js +9 -6
  198. package/dist/fn/repeat.js +4 -1
  199. package/dist/fn/replaceAll.js +7 -4
  200. package/dist/fn/replaceSelection.js +4 -1
  201. package/dist/fn/resize.js +10 -7
  202. package/dist/fn/rgb2hex.js +4 -1
  203. package/dist/fn/riterate.js +6 -3
  204. package/dist/fn/roundDecimal.js +4 -1
  205. package/dist/fn/sanitize.js +8 -5
  206. package/dist/fn/search.js +18 -15
  207. package/dist/fn/selectElementText.js +4 -1
  208. package/dist/fn/selector.js +4 -1
  209. package/dist/fn/setCookie.js +4 -1
  210. package/dist/fn/setCssVar.js +4 -1
  211. package/dist/fn/setNavigationVars.js +13 -10
  212. package/dist/fn/setProp.js +4 -1
  213. package/dist/fn/setProperty.js +6 -3
  214. package/dist/fn/shorten.js +8 -5
  215. package/dist/fn/shortenObj.js +12 -9
  216. package/dist/fn/shuffle.js +4 -1
  217. package/dist/fn/simpleHash.js +8 -5
  218. package/dist/fn/simpleHash1.js +4 -1
  219. package/dist/fn/simpleHash2.js +4 -1
  220. package/dist/fn/stat.js +4 -1
  221. package/dist/fn/string2ArrayBuffer.js +4 -1
  222. package/dist/fn/submit.js +9 -6
  223. package/dist/fn/substr.js +10 -7
  224. package/dist/fn/sum.js +7 -4
  225. package/dist/fn/timestamp.js +4 -1
  226. package/dist/fn/toCSV.js +11 -8
  227. package/dist/fn/toggleFullScreen.js +6 -3
  228. package/dist/fn/translate.js +6 -3
  229. package/dist/fn/treatAjaxArguments.js +13 -10
  230. package/dist/fn/trim.js +7 -4
  231. package/dist/fn/uniqString.js +10 -7
  232. package/dist/fn/unique.js +4 -1
  233. package/dist/fn/upload.js +33 -6
  234. package/dist/fn/warning.js +6 -3
  235. package/dist/index.d.ts +4 -4
  236. package/dist/index.js +471 -459
  237. package/package.json +1 -1
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isFunction = void 0;
1
4
  const isFunction = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isFunction = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isFunction };
14
+ exports.isFunction = isFunction;
@@ -1,16 +1,19 @@
1
- import { isString } from './isString';
2
- import { isIP } from './isIP';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isHostname = void 0;
4
+ const isString_1 = require("./isString");
5
+ const isIP_1 = require("./isIP");
3
6
  const isHostname = function (...args) {
4
7
  if (!args.length)
5
8
  return false;
6
9
  for (let st of args) {
7
- if (!isString(st)) {
10
+ if (!(0, isString_1.isString)(st)) {
8
11
  return false;
9
12
  }
10
- if (!isIP(st) && !bbn.vars.regexp.hostname.test(st)) {
13
+ if (!(0, isIP_1.isIP)(st) && !bbn.vars.regexp.hostname.test(st)) {
11
14
  return false;
12
15
  }
13
16
  }
14
17
  return true;
15
18
  };
16
- export { isHostname };
19
+ exports.isHostname = isHostname;
package/dist/fn/isIP.js CHANGED
@@ -1,12 +1,15 @@
1
- import { isString } from './isString';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isIP = void 0;
4
+ const isString_1 = require("./isString");
2
5
  const isIP = function (...args) {
3
6
  if (!args.length)
4
7
  return false;
5
8
  for (let st of args) {
6
- if (!isString(st) || !bbn.vars.regexp.ip.test(st)) {
9
+ if (!(0, isString_1.isString)(st) || !bbn.vars.regexp.ip.test(st)) {
7
10
  return false;
8
11
  }
9
12
  }
10
13
  return true;
11
14
  };
12
- export { isIP };
15
+ exports.isIP = isIP;
@@ -1,12 +1,15 @@
1
- import { getAncestors } from './getAncestors';
2
- import { isString } from './isString';
3
- import { each } from './each';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isInside = void 0;
4
+ const getAncestors_1 = require("./getAncestors");
5
+ const isString_1 = require("./isString");
6
+ const each_1 = require("./each");
4
7
  const isInside = function (ele, ancestor) {
5
- let ancestors = getAncestors(ele);
8
+ let ancestors = (0, getAncestors_1.getAncestors)(ele);
6
9
  if (ancestors.length) {
7
- if (isString(ancestor)) {
10
+ if ((0, isString_1.isString)(ancestor)) {
8
11
  let ok = false;
9
- each(ancestors, (a) => {
12
+ (0, each_1.each)(ancestors, (a) => {
10
13
  if (a.matches && a.matches(ancestor)) {
11
14
  ok = true;
12
15
  return false;
@@ -20,4 +23,4 @@ const isInside = function (ele, ancestor) {
20
23
  }
21
24
  return false;
22
25
  };
23
- export { isInside };
26
+ exports.isInside = isInside;
package/dist/fn/isInt.js CHANGED
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isInt = void 0;
1
4
  const isInt = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isInt = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isInt };
14
+ exports.isInt = isInt;
@@ -1,4 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isIterable = void 0;
1
4
  const isIterable = function (v) {
2
5
  return v && typeof v === 'object' && Symbol.iterator in Object(v);
3
6
  };
4
- export { isIterable };
7
+ exports.isIterable = isIterable;
@@ -1,6 +1,9 @@
1
- import { isMobileDevice } from './isMobileDevice';
2
- import { isTabletDevice } from './isTabletDevice';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMobile = void 0;
4
+ const isMobileDevice_1 = require("./isMobileDevice");
5
+ const isTabletDevice_1 = require("./isTabletDevice");
3
6
  const isMobile = function () {
4
- return isMobileDevice() || isTabletDevice();
7
+ return (0, isMobileDevice_1.isMobileDevice)() || (0, isTabletDevice_1.isTabletDevice)();
5
8
  };
6
- export { isMobile };
9
+ exports.isMobile = isMobile;
@@ -1,4 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMobileDevice = void 0;
1
4
  const isMobileDevice = function () {
2
5
  return this.getDeviceType() === 'mobile';
3
6
  };
4
- export { isMobileDevice };
7
+ exports.isMobileDevice = isMobileDevice;
package/dist/fn/isNull.js CHANGED
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isNull = void 0;
1
4
  const isNull = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isNull = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isNull };
14
+ exports.isNull = isNull;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isNumber = void 0;
1
4
  const isNumber = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isNumber = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isNumber };
14
+ exports.isNumber = isNumber;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isObject = void 0;
1
4
  const isObject = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isObject = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isObject };
14
+ exports.isObject = isObject;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPercent = void 0;
1
4
  const isPercent = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isPercent = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isPercent };
14
+ exports.isPercent = isPercent;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPrimitive = void 0;
1
4
  const isPrimitive = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isPrimitive = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isPrimitive };
14
+ exports.isPrimitive = isPrimitive;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPromise = void 0;
1
4
  const isPromise = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isPromise = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isPromise };
14
+ exports.isPromise = isPromise;
@@ -1,7 +1,10 @@
1
- import { each } from './each';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPropSize = void 0;
4
+ const each_1 = require("./each");
2
5
  const isPropSize = function (name) {
3
6
  let isTrue = false;
4
- each(['width', 'height', 'gap', 'margin', 'padding', 'top', 'left', 'right', 'bottom'], (a) => {
7
+ (0, each_1.each)(['width', 'height', 'gap', 'margin', 'padding', 'top', 'left', 'right', 'bottom'], (a) => {
5
8
  if (name.indexOf(a) !== -1) {
6
9
  isTrue = true;
7
10
  return false;
@@ -9,4 +12,4 @@ const isPropSize = function (name) {
9
12
  });
10
13
  return isTrue;
11
14
  };
12
- export { isPropSize };
15
+ exports.isPropSize = isPropSize;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSQLDate = void 0;
1
4
  const isSQLDate = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -9,4 +12,4 @@ const isSQLDate = function (...args) {
9
12
  }
10
13
  return true;
11
14
  };
12
- export { isSQLDate };
15
+ exports.isSQLDate = isSQLDate;
package/dist/fn/isSame.js CHANGED
@@ -1,5 +1,8 @@
1
- import { hash } from './hash';
2
- import { each } from './each';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSame = void 0;
4
+ const hash_1 = require("./hash");
5
+ const each_1 = require("./each");
3
6
  const isSame = function (obj1, obj2, done) {
4
7
  if (!done) {
5
8
  done = [];
@@ -10,7 +13,7 @@ const isSame = function (obj1, obj2, done) {
10
13
  if (obj1 && obj2 && typeof obj1 === 'object' && typeof obj2 === 'object') {
11
14
  let tmp1 = Object.keys(obj1).sort(), tmp2 = Object.keys(obj2).sort();
12
15
  // Case where the keys are different
13
- if (hash(tmp1) !== hash(tmp2)) {
16
+ if ((0, hash_1.hash)(tmp1) !== (0, hash_1.hash)(tmp2)) {
14
17
  return false;
15
18
  }
16
19
  let ok = true;
@@ -20,7 +23,7 @@ const isSame = function (obj1, obj2, done) {
20
23
  }
21
24
  done.push(obj1);
22
25
  }
23
- each(tmp1, (a) => {
26
+ (0, each_1.each)(tmp1, (a) => {
24
27
  if (!isSame(obj1[a], obj2[a])) {
25
28
  ok = false;
26
29
  return false;
@@ -30,4 +33,4 @@ const isSame = function (obj1, obj2, done) {
30
33
  }
31
34
  return false;
32
35
  };
33
- export { isSame };
36
+ exports.isSame = isSame;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isString = void 0;
1
4
  const isString = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isString = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isString };
14
+ exports.isString = isString;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSymbol = void 0;
1
4
  const isSymbol = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isSymbol = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isSymbol };
14
+ exports.isSymbol = isSymbol;
@@ -1,4 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isTabletDevice = void 0;
1
4
  const isTabletDevice = function () {
2
5
  return this.getDeviceType() === 'tablet';
3
6
  };
4
- export { isTabletDevice };
7
+ exports.isTabletDevice = isTabletDevice;
package/dist/fn/isURL.js CHANGED
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isURL = void 0;
1
4
  const isURL = function (...args) {
2
5
  if (!args.length)
3
6
  return false;
@@ -8,4 +11,4 @@ const isURL = function (...args) {
8
11
  }
9
12
  return true;
10
13
  };
11
- export { isURL };
14
+ exports.isURL = isURL;
@@ -1,7 +1,10 @@
1
- import { isNumber } from './isNumber';
2
- import { substr } from './substr';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidDimension = void 0;
4
+ const isNumber_1 = require("./isNumber");
5
+ const substr_1 = require("./substr");
3
6
  const isValidDimension = function (st) {
4
- if (typeof st === 'string' && (st.length > 0) && ((st.indexOf('calc') === 0) || isNumber(substr(st, 0, 1)))) {
7
+ if (typeof st === 'string' && (st.length > 0) && ((st.indexOf('calc') === 0) || (0, isNumber_1.isNumber)((0, substr_1.substr)(st, 0, 1)))) {
5
8
  let el = document.createElement('div');
6
9
  el.style.width = st;
7
10
  let res = !!el.style.width.length;
@@ -10,4 +13,4 @@ const isValidDimension = function (st) {
10
13
  }
11
14
  return false;
12
15
  };
13
- export { isValidDimension };
16
+ exports.isValidDimension = isValidDimension;
@@ -1,13 +1,16 @@
1
- import { isString } from './isString';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValidName = void 0;
4
+ const isString_1 = require("./isString");
2
5
  const isValidName = function (...args) {
3
6
  if (!args.length) {
4
7
  return false;
5
8
  }
6
9
  for (let arg of args) {
7
- if (!isString(arg) || !/^[$A-Z_][0-9A-Z_$]*$/i.test(arg)) {
10
+ if (!(0, isString_1.isString)(arg) || !/^[$A-Z_][0-9A-Z_$]*$/i.test(arg)) {
8
11
  return false;
9
12
  }
10
13
  }
11
14
  return true;
12
15
  };
13
- export { isValidName };
16
+ exports.isValidName = isValidName;
@@ -1,12 +1,15 @@
1
- import { isNull } from './isNull';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isValue = void 0;
4
+ const isNull_1 = require("./isNull");
2
5
  const isValue = function (...args) {
3
6
  if (!args.length)
4
7
  return false;
5
8
  for (let a of args) {
6
- if (typeof a === 'object' && !isNull(a)) {
9
+ if (typeof a === 'object' && !(0, isNull_1.isNull)(a)) {
7
10
  return false;
8
11
  }
9
12
  }
10
13
  return true;
11
14
  };
12
- export { isValue };
15
+ exports.isValue = isValue;
package/dist/fn/isVue.js CHANGED
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isVue = void 0;
1
4
  const isVue = function (...args) {
2
5
  if (!args.length) {
3
6
  return false;
@@ -23,4 +26,4 @@ const isVue = function (...args) {
23
26
  }
24
27
  return true;
25
28
  };
26
- export { isVue };
29
+ exports.isVue = isVue;
@@ -1,12 +1,15 @@
1
- import { removePrivateProp } from './removePrivateProp';
2
- import { each } from './each';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.iterate = void 0;
4
+ const removePrivateProp_1 = require("./removePrivateProp");
5
+ const each_1 = require("./each");
3
6
  const iterate = function (obj, fn, noPrivate = false, reverse = false) {
4
7
  if (obj !== null && typeof obj === 'object') {
5
- let iter = Object.keys(noPrivate ? removePrivateProp(obj) : obj);
8
+ let iter = Object.keys(noPrivate ? (0, removePrivateProp_1.removePrivateProp)(obj) : obj);
6
9
  if (reverse) {
7
10
  iter.reverse();
8
11
  }
9
- each(iter, (prop) => {
12
+ (0, each_1.each)(iter, (prop) => {
10
13
  if (fn(obj[prop], prop) === false) {
11
14
  return false;
12
15
  }
@@ -14,4 +17,4 @@ const iterate = function (obj, fn, noPrivate = false, reverse = false) {
14
17
  }
15
18
  return obj;
16
19
  };
17
- export { iterate };
20
+ exports.iterate = iterate;
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.lightenDarkenHex = void 0;
1
4
  const lightenDarkenHex = function (hex, amt) {
2
5
  if (hex && amt) {
3
6
  let ht = hex[0] === '#';
@@ -24,4 +27,4 @@ const lightenDarkenHex = function (hex, amt) {
24
27
  return (ht ? '#' : '') + (g | (b << 8) | (r << 16)).toString(16);
25
28
  }
26
29
  };
27
- export { lightenDarkenHex };
30
+ exports.lightenDarkenHex = lightenDarkenHex;
package/dist/fn/link.js CHANGED
@@ -1,13 +1,16 @@
1
- import { treatAjaxArguments } from './treatAjaxArguments';
2
- import { getLoader } from './getLoader';
3
- import { defaultPreLinkFunction } from './defaultPreLinkFunction';
4
- import { ajax } from './ajax';
5
- import { log } from './log';
6
- import { isObject } from './isObject';
7
- import { callback } from './callback';
8
- import { setNavigationVars } from './setNavigationVars';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.link = void 0;
4
+ const treatAjaxArguments_1 = require("./treatAjaxArguments");
5
+ const getLoader_1 = require("./getLoader");
6
+ const defaultPreLinkFunction_1 = require("./defaultPreLinkFunction");
7
+ const ajax_1 = require("./ajax");
8
+ const log_1 = require("./log");
9
+ const isObject_1 = require("./isObject");
10
+ const callback_1 = require("./callback");
11
+ const setNavigationVars_1 = require("./setNavigationVars");
9
12
  const link = function (...args) {
10
- let cfg = treatAjaxArguments(args);
13
+ let cfg = (0, treatAjaxArguments_1.treatAjaxArguments)(args);
11
14
  let ok = true;
12
15
  /* If we can't find a correct link we load the current URL */
13
16
  if (!cfg) {
@@ -41,7 +44,7 @@ const link = function (...args) {
41
44
  }, 0);
42
45
  return false;
43
46
  }
44
- if (getLoader(cfg.url)) {
47
+ if ((0, getLoader_1.getLoader)(cfg.url)) {
45
48
  return false;
46
49
  }
47
50
  /* Opens an external page in a new window */
@@ -59,8 +62,8 @@ const link = function (...args) {
59
62
  if (cfg.successFn) {
60
63
  ok = cfg.successFn(cfg.url);
61
64
  }
62
- else if (defaultPreLinkFunction) {
63
- ok = defaultPreLinkFunction(cfg.url, cfg.force, cfg.ele);
65
+ else if (defaultPreLinkFunction_1.defaultPreLinkFunction) {
66
+ ok = (0, defaultPreLinkFunction_1.defaultPreLinkFunction)(cfg.url, cfg.force, cfg.ele);
64
67
  /*
65
68
  if (ok.data !== undefined) {
66
69
  extend(cfg.obj, ok.data);
@@ -74,14 +77,14 @@ const link = function (...args) {
74
77
  }
75
78
  /** todo Do we keep obj in the unique string or do we make that only one concurrent connection to the same address can occur at the same time? */
76
79
  let errSt = bbn._('The Ajax call to') + ' ' + cfg.url + ' ';
77
- return ajax(cfg.url, cfg.datatype, cfg.obj, function (res) {
80
+ return (0, ajax_1.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
78
81
  if (!res) {
79
- log(errSt + bbn._('returned no answer'));
82
+ (0, log_1.log)(errSt + bbn._('returned no answer'));
80
83
  }
81
- if (isObject(res)) {
84
+ if ((0, isObject_1.isObject)(res)) {
82
85
  // If there's nothing in the result, just an empty object, the callback stops here and the URL is not changed
83
86
  if (Object.keys(res).length === 0) {
84
- log(errSt + bbn._('returned an empty object'));
87
+ (0, log_1.log)(errSt + bbn._('returned an empty object'));
85
88
  }
86
89
  if (res.new_url) {
87
90
  res.old_path = cfg.url;
@@ -91,10 +94,10 @@ const link = function (...args) {
91
94
  res.old_path = cfg.url;
92
95
  }
93
96
  }
94
- if (callback(cfg.url, res, cfg.successFn, null, cfg.ele) && res.noNav === undefined) {
97
+ if ((0, callback_1.callback)(cfg.url, res, cfg.successFn, null, cfg.ele) && res.noNav === undefined) {
95
98
  // This solution is not very clean (we can't shorten a URL)
96
99
  if (bbn.env.path.indexOf(cfg.url) !== 0) {
97
- setNavigationVars(cfg.url, (res.title ? res.title + ' - ' : '') + bbn.env.siteTitle);
100
+ (0, setNavigationVars_1.setNavigationVars)(cfg.url, (res.title ? res.title + ' - ' : '') + bbn.env.siteTitle);
98
101
  }
99
102
  }
100
103
  }, cfg.errorFn || null);
@@ -102,4 +105,4 @@ const link = function (...args) {
102
105
  }
103
106
  return true;
104
107
  };
105
- export { link };
108
+ exports.link = link;
package/dist/fn/log.js CHANGED
@@ -1,11 +1,14 @@
1
- import { isFunction } from './isFunction';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.log = void 0;
4
+ const isFunction_1 = require("./isFunction");
2
5
  const log = function (...args) {
3
6
  if (window.console !== undefined) {
4
7
  let cfg;
5
8
  let level = 5;
6
9
  let fn = 'log';
7
10
  if (args[0] && typeof args[0] === 'object' && args[0]._bbn_console_style) {
8
- if (args[0]._bbn_console_mode && isFunction(console[args[0]._bbn_console_mode])) {
11
+ if (args[0]._bbn_console_mode && (0, isFunction_1.isFunction)(console[args[0]._bbn_console_mode])) {
9
12
  fn = args[0]._bbn_console_mode;
10
13
  }
11
14
  else {
@@ -30,4 +33,4 @@ const log = function (...args) {
30
33
  }
31
34
  return this;
32
35
  };
33
- export { log };
36
+ exports.log = log;