@bbn/bbn 1.0.88 → 1.0.90

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 (458) hide show
  1. package/dist/bundle.js +9 -9
  2. package/dist/db.js +1 -1
  3. package/dist/index.js +7 -7
  4. package/package.json +3 -2
  5. package/dist/fn/_addLoader.d.ts +0 -2
  6. package/dist/fn/_addLoader.js +0 -37
  7. package/dist/fn/_compareValues.d.ts +0 -2
  8. package/dist/fn/_compareValues.js +0 -40
  9. package/dist/fn/_deleteLoader.d.ts +0 -2
  10. package/dist/fn/_deleteLoader.js +0 -25
  11. package/dist/fn/abort.d.ts +0 -2
  12. package/dist/fn/abort.js +0 -14
  13. package/dist/fn/abortURL.d.ts +0 -2
  14. package/dist/fn/abortURL.js +0 -13
  15. package/dist/fn/addColors.d.ts +0 -2
  16. package/dist/fn/addColors.js +0 -41
  17. package/dist/fn/addInputs.d.ts +0 -2
  18. package/dist/fn/addInputs.js +0 -40
  19. package/dist/fn/addStyle.d.ts +0 -2
  20. package/dist/fn/addStyle.js +0 -10
  21. package/dist/fn/adjustHeight.d.ts +0 -2
  22. package/dist/fn/adjustHeight.js +0 -10
  23. package/dist/fn/adjustSize.d.ts +0 -2
  24. package/dist/fn/adjustSize.js +0 -21
  25. package/dist/fn/adjustWidth.d.ts +0 -2
  26. package/dist/fn/adjustWidth.js +0 -10
  27. package/dist/fn/ajax.d.ts +0 -2
  28. package/dist/fn/ajax.js +0 -114
  29. package/dist/fn/analyzeFunction.d.ts +0 -11
  30. package/dist/fn/analyzeFunction.js +0 -141
  31. package/dist/fn/animateCss.d.ts +0 -2
  32. package/dist/fn/animateCss.js +0 -20
  33. package/dist/fn/arrayBuffer2String.d.ts +0 -2
  34. package/dist/fn/arrayBuffer2String.js +0 -4
  35. package/dist/fn/arrayFromProp.d.ts +0 -2
  36. package/dist/fn/arrayFromProp.js +0 -10
  37. package/dist/fn/autoExtend.d.ts +0 -2
  38. package/dist/fn/autoExtend.js +0 -13
  39. package/dist/fn/baseName.d.ts +0 -2
  40. package/dist/fn/baseName.js +0 -17
  41. package/dist/fn/br2nl.d.ts +0 -2
  42. package/dist/fn/br2nl.js +0 -5
  43. package/dist/fn/calendar.d.ts +0 -2
  44. package/dist/fn/calendar.js +0 -23
  45. package/dist/fn/callback.d.ts +0 -2
  46. package/dist/fn/callback.js +0 -82
  47. package/dist/fn/camelToCss.d.ts +0 -2
  48. package/dist/fn/camelToCss.js +0 -10
  49. package/dist/fn/camelize.d.ts +0 -2
  50. package/dist/fn/camelize.js +0 -9
  51. package/dist/fn/canvasToImage.d.ts +0 -2
  52. package/dist/fn/canvasToImage.js +0 -6
  53. package/dist/fn/center.d.ts +0 -2
  54. package/dist/fn/center.js +0 -24
  55. package/dist/fn/checkProps.d.ts +0 -2
  56. package/dist/fn/checkProps.js +0 -5
  57. package/dist/fn/checkPropsDetails.d.ts +0 -2
  58. package/dist/fn/checkPropsDetails.js +0 -50
  59. package/dist/fn/checkPropsOrDie.d.ts +0 -2
  60. package/dist/fn/checkPropsOrDie.js +0 -9
  61. package/dist/fn/checkType.d.ts +0 -2
  62. package/dist/fn/checkType.js +0 -59
  63. package/dist/fn/chrono.d.ts +0 -3
  64. package/dist/fn/chrono.js +0 -23
  65. package/dist/fn/circularReplacer.d.ts +0 -2
  66. package/dist/fn/circularReplacer.js +0 -33
  67. package/dist/fn/clone.d.ts +0 -2
  68. package/dist/fn/clone.js +0 -16
  69. package/dist/fn/colorToHex.d.ts +0 -2
  70. package/dist/fn/colorToHex.js +0 -6
  71. package/dist/fn/compare.d.ts +0 -2
  72. package/dist/fn/compare.js +0 -99
  73. package/dist/fn/compareConditions.d.ts +0 -2
  74. package/dist/fn/compareConditions.js +0 -42
  75. package/dist/fn/copy.d.ts +0 -2
  76. package/dist/fn/copy.js +0 -37
  77. package/dist/fn/correctCase.d.ts +0 -2
  78. package/dist/fn/correctCase.js +0 -4
  79. package/dist/fn/count.d.ts +0 -2
  80. package/dist/fn/count.js +0 -5
  81. package/dist/fn/crc32.d.ts +0 -2
  82. package/dist/fn/crc32.js +0 -18
  83. package/dist/fn/createObject.d.ts +0 -2
  84. package/dist/fn/createObject.js +0 -9
  85. package/dist/fn/cssExists.d.ts +0 -2
  86. package/dist/fn/cssExists.js +0 -30
  87. package/dist/fn/date.d.ts +0 -2
  88. package/dist/fn/date.js +0 -28
  89. package/dist/fn/dateSQL.d.ts +0 -2
  90. package/dist/fn/dateSQL.js +0 -8
  91. package/dist/fn/daysInMonth.d.ts +0 -2
  92. package/dist/fn/daysInMonth.js +0 -9
  93. package/dist/fn/deepPath.d.ts +0 -2
  94. package/dist/fn/deepPath.js +0 -23
  95. package/dist/fn/defaultAjaxAbortFunction.d.ts +0 -2
  96. package/dist/fn/defaultAjaxAbortFunction.js +0 -5
  97. package/dist/fn/defaultAjaxErrorFunction.d.ts +0 -2
  98. package/dist/fn/defaultAjaxErrorFunction.js +0 -4
  99. package/dist/fn/defaultAlertFunction.d.ts +0 -2
  100. package/dist/fn/defaultAlertFunction.js +0 -5
  101. package/dist/fn/defaultConfirmFunction.d.ts +0 -2
  102. package/dist/fn/defaultConfirmFunction.js +0 -14
  103. package/dist/fn/defaultEndLoadingFunction.d.ts +0 -2
  104. package/dist/fn/defaultEndLoadingFunction.js +0 -4
  105. package/dist/fn/defaultErrorFunction.d.ts +0 -2
  106. package/dist/fn/defaultErrorFunction.js +0 -5
  107. package/dist/fn/defaultHistoryFunction.d.ts +0 -2
  108. package/dist/fn/defaultHistoryFunction.js +0 -4
  109. package/dist/fn/defaultLinkFunction.d.ts +0 -2
  110. package/dist/fn/defaultLinkFunction.js +0 -4
  111. package/dist/fn/defaultPostLinkFunction.d.ts +0 -2
  112. package/dist/fn/defaultPostLinkFunction.js +0 -4
  113. package/dist/fn/defaultPreLinkFunction.d.ts +0 -2
  114. package/dist/fn/defaultPreLinkFunction.js +0 -4
  115. package/dist/fn/defaultResizeFunction.d.ts +0 -2
  116. package/dist/fn/defaultResizeFunction.js +0 -4
  117. package/dist/fn/defaultStartLoadingFunction.d.ts +0 -2
  118. package/dist/fn/defaultStartLoadingFunction.js +0 -4
  119. package/dist/fn/deleteProp.d.ts +0 -2
  120. package/dist/fn/deleteProp.js +0 -7
  121. package/dist/fn/diffObj.d.ts +0 -2
  122. package/dist/fn/diffObj.js +0 -91
  123. package/dist/fn/dirName.d.ts +0 -2
  124. package/dist/fn/dirName.js +0 -18
  125. package/dist/fn/download.d.ts +0 -2
  126. package/dist/fn/download.js +0 -36
  127. package/dist/fn/downloadContent.d.ts +0 -2
  128. package/dist/fn/downloadContent.js +0 -48
  129. package/dist/fn/each.d.ts +0 -2
  130. package/dist/fn/each.js +0 -23
  131. package/dist/fn/eraseCookie.d.ts +0 -2
  132. package/dist/fn/eraseCookie.js +0 -4
  133. package/dist/fn/error.d.ts +0 -2
  134. package/dist/fn/error.js +0 -17
  135. package/dist/fn/escapeDquotes.d.ts +0 -2
  136. package/dist/fn/escapeDquotes.js +0 -8
  137. package/dist/fn/escapeRegExp.d.ts +0 -2
  138. package/dist/fn/escapeRegExp.js +0 -4
  139. package/dist/fn/escapeSquotes.d.ts +0 -2
  140. package/dist/fn/escapeSquotes.js +0 -8
  141. package/dist/fn/escapeTicks.d.ts +0 -2
  142. package/dist/fn/escapeTicks.js +0 -8
  143. package/dist/fn/escapeUrl.d.ts +0 -2
  144. package/dist/fn/escapeUrl.js +0 -40
  145. package/dist/fn/extend.d.ts +0 -2
  146. package/dist/fn/extend.js +0 -71
  147. package/dist/fn/extendOut.d.ts +0 -2
  148. package/dist/fn/extendOut.js +0 -24
  149. package/dist/fn/fdate.d.ts +0 -2
  150. package/dist/fn/fdate.js +0 -19
  151. package/dist/fn/fdatetime.d.ts +0 -2
  152. package/dist/fn/fdatetime.js +0 -23
  153. package/dist/fn/fieldValue.d.ts +0 -2
  154. package/dist/fn/fieldValue.js +0 -24
  155. package/dist/fn/fileExt.d.ts +0 -2
  156. package/dist/fn/fileExt.js +0 -11
  157. package/dist/fn/filter.d.ts +0 -3
  158. package/dist/fn/filter.js +0 -47
  159. package/dist/fn/filterToConditions.d.ts +0 -11
  160. package/dist/fn/filterToConditions.js +0 -31
  161. package/dist/fn/findAll.d.ts +0 -2
  162. package/dist/fn/findAll.js +0 -18
  163. package/dist/fn/fori.d.ts +0 -2
  164. package/dist/fn/fori.js +0 -19
  165. package/dist/fn/forir.d.ts +0 -2
  166. package/dist/fn/forir.js +0 -19
  167. package/dist/fn/format.d.ts +0 -2
  168. package/dist/fn/format.js +0 -14
  169. package/dist/fn/formatBytes.d.ts +0 -2
  170. package/dist/fn/formatBytes.js +0 -8
  171. package/dist/fn/formatDate.d.ts +0 -2
  172. package/dist/fn/formatDate.js +0 -4
  173. package/dist/fn/formatSize.d.ts +0 -2
  174. package/dist/fn/formatSize.js +0 -12
  175. package/dist/fn/formdata.d.ts +0 -2
  176. package/dist/fn/formdata.js +0 -52
  177. package/dist/fn/fromXml.d.ts +0 -2
  178. package/dist/fn/fromXml.js +0 -44
  179. package/dist/fn/ftime.d.ts +0 -2
  180. package/dist/fn/ftime.js +0 -15
  181. package/dist/fn/getAllTags.d.ts +0 -2
  182. package/dist/fn/getAllTags.js +0 -5
  183. package/dist/fn/getAncestors.d.ts +0 -2
  184. package/dist/fn/getAncestors.js +0 -25
  185. package/dist/fn/getAttributes.d.ts +0 -2
  186. package/dist/fn/getAttributes.js +0 -12
  187. package/dist/fn/getBrowserName.d.ts +0 -2
  188. package/dist/fn/getBrowserName.js +0 -21
  189. package/dist/fn/getBrowserVersion.d.ts +0 -2
  190. package/dist/fn/getBrowserVersion.js +0 -22
  191. package/dist/fn/getCookie.d.ts +0 -2
  192. package/dist/fn/getCookie.js +0 -18
  193. package/dist/fn/getCssVar.d.ts +0 -2
  194. package/dist/fn/getCssVar.js +0 -7
  195. package/dist/fn/getDay.d.ts +0 -2
  196. package/dist/fn/getDay.js +0 -17
  197. package/dist/fn/getDeviceType.d.ts +0 -2
  198. package/dist/fn/getDeviceType.js +0 -11
  199. package/dist/fn/getEventData.d.ts +0 -2
  200. package/dist/fn/getEventData.js +0 -102
  201. package/dist/fn/getField.d.ts +0 -2
  202. package/dist/fn/getField.js +0 -9
  203. package/dist/fn/getFieldValues.d.ts +0 -2
  204. package/dist/fn/getFieldValues.js +0 -13
  205. package/dist/fn/getHTMLOfSelection.d.ts +0 -2
  206. package/dist/fn/getHTMLOfSelection.js +0 -18
  207. package/dist/fn/getHtml.d.ts +0 -2
  208. package/dist/fn/getHtml.js +0 -9
  209. package/dist/fn/getLoader.d.ts +0 -2
  210. package/dist/fn/getLoader.js +0 -9
  211. package/dist/fn/getPath.d.ts +0 -2
  212. package/dist/fn/getPath.js +0 -42
  213. package/dist/fn/getProp.d.ts +0 -2
  214. package/dist/fn/getProp.js +0 -7
  215. package/dist/fn/getProperty.d.ts +0 -2
  216. package/dist/fn/getProperty.js +0 -11
  217. package/dist/fn/getRequestId.d.ts +0 -2
  218. package/dist/fn/getRequestId.js +0 -14
  219. package/dist/fn/getRow.d.ts +0 -2
  220. package/dist/fn/getRow.js +0 -9
  221. package/dist/fn/getScrollBarSize.d.ts +0 -2
  222. package/dist/fn/getScrollBarSize.js +0 -25
  223. package/dist/fn/getText.d.ts +0 -2
  224. package/dist/fn/getText.js +0 -4
  225. package/dist/fn/getTimeoff.d.ts +0 -2
  226. package/dist/fn/getTimeoff.js +0 -7
  227. package/dist/fn/happy.d.ts +0 -2
  228. package/dist/fn/happy.js +0 -10
  229. package/dist/fn/hash.d.ts +0 -2
  230. package/dist/fn/hash.js +0 -36
  231. package/dist/fn/hex2rgb.d.ts +0 -6
  232. package/dist/fn/hex2rgb.js +0 -11
  233. package/dist/fn/history.d.ts +0 -2
  234. package/dist/fn/history.js +0 -4
  235. package/dist/fn/html2text.d.ts +0 -2
  236. package/dist/fn/html2text.js +0 -7
  237. package/dist/fn/imageToCanvas.d.ts +0 -2
  238. package/dist/fn/imageToCanvas.js +0 -8
  239. package/dist/fn/imgToBase64.d.ts +0 -2
  240. package/dist/fn/imgToBase64.js +0 -7
  241. package/dist/fn/info.d.ts +0 -2
  242. package/dist/fn/info.js +0 -11
  243. package/dist/fn/isActiveInterface.d.ts +0 -2
  244. package/dist/fn/isActiveInterface.js +0 -8
  245. package/dist/fn/isArray.d.ts +0 -2
  246. package/dist/fn/isArray.js +0 -11
  247. package/dist/fn/isBlob.d.ts +0 -2
  248. package/dist/fn/isBlob.js +0 -11
  249. package/dist/fn/isBoolean.d.ts +0 -2
  250. package/dist/fn/isBoolean.js +0 -11
  251. package/dist/fn/isCanvas.d.ts +0 -2
  252. package/dist/fn/isCanvas.js +0 -11
  253. package/dist/fn/isColor.d.ts +0 -2
  254. package/dist/fn/isColor.js +0 -16
  255. package/dist/fn/isComment.d.ts +0 -2
  256. package/dist/fn/isComment.js +0 -11
  257. package/dist/fn/isCp.d.ts +0 -2
  258. package/dist/fn/isCp.js +0 -17
  259. package/dist/fn/isDate.d.ts +0 -2
  260. package/dist/fn/isDate.js +0 -11
  261. package/dist/fn/isDesktopDevice.d.ts +0 -2
  262. package/dist/fn/isDesktopDevice.js +0 -5
  263. package/dist/fn/isDimension.d.ts +0 -2
  264. package/dist/fn/isDimension.js +0 -15
  265. package/dist/fn/isDom.d.ts +0 -2
  266. package/dist/fn/isDom.js +0 -11
  267. package/dist/fn/isEmail.d.ts +0 -2
  268. package/dist/fn/isEmail.js +0 -16
  269. package/dist/fn/isEmpty.d.ts +0 -2
  270. package/dist/fn/isEmpty.js +0 -18
  271. package/dist/fn/isEvent.d.ts +0 -2
  272. package/dist/fn/isEvent.js +0 -11
  273. package/dist/fn/isFocused.d.ts +0 -2
  274. package/dist/fn/isFocused.js +0 -4
  275. package/dist/fn/isFunction.d.ts +0 -2
  276. package/dist/fn/isFunction.js +0 -11
  277. package/dist/fn/isHostname.d.ts +0 -2
  278. package/dist/fn/isHostname.js +0 -16
  279. package/dist/fn/isIP.d.ts +0 -2
  280. package/dist/fn/isIP.js +0 -12
  281. package/dist/fn/isInside.d.ts +0 -2
  282. package/dist/fn/isInside.js +0 -23
  283. package/dist/fn/isInt.d.ts +0 -2
  284. package/dist/fn/isInt.js +0 -11
  285. package/dist/fn/isIterable.d.ts +0 -2
  286. package/dist/fn/isIterable.js +0 -4
  287. package/dist/fn/isMobile.d.ts +0 -2
  288. package/dist/fn/isMobile.js +0 -6
  289. package/dist/fn/isMobileDevice.d.ts +0 -2
  290. package/dist/fn/isMobileDevice.js +0 -5
  291. package/dist/fn/isNull.d.ts +0 -2
  292. package/dist/fn/isNull.js +0 -11
  293. package/dist/fn/isNumber.d.ts +0 -2
  294. package/dist/fn/isNumber.js +0 -11
  295. package/dist/fn/isObject.d.ts +0 -2
  296. package/dist/fn/isObject.js +0 -11
  297. package/dist/fn/isPercent.d.ts +0 -2
  298. package/dist/fn/isPercent.js +0 -11
  299. package/dist/fn/isPrimitive.d.ts +0 -2
  300. package/dist/fn/isPrimitive.js +0 -11
  301. package/dist/fn/isPromise.d.ts +0 -2
  302. package/dist/fn/isPromise.js +0 -11
  303. package/dist/fn/isPropSize.d.ts +0 -2
  304. package/dist/fn/isPropSize.js +0 -12
  305. package/dist/fn/isSQLDate.d.ts +0 -2
  306. package/dist/fn/isSQLDate.js +0 -12
  307. package/dist/fn/isSame.d.ts +0 -2
  308. package/dist/fn/isSame.js +0 -33
  309. package/dist/fn/isString.d.ts +0 -2
  310. package/dist/fn/isString.js +0 -11
  311. package/dist/fn/isSymbol.d.ts +0 -2
  312. package/dist/fn/isSymbol.js +0 -11
  313. package/dist/fn/isTabletDevice.d.ts +0 -2
  314. package/dist/fn/isTabletDevice.js +0 -5
  315. package/dist/fn/isURL.d.ts +0 -2
  316. package/dist/fn/isURL.js +0 -11
  317. package/dist/fn/isValidDimension.d.ts +0 -2
  318. package/dist/fn/isValidDimension.js +0 -13
  319. package/dist/fn/isValidName.d.ts +0 -2
  320. package/dist/fn/isValidName.js +0 -13
  321. package/dist/fn/isValue.d.ts +0 -2
  322. package/dist/fn/isValue.js +0 -12
  323. package/dist/fn/isVue.d.ts +0 -2
  324. package/dist/fn/isVue.js +0 -26
  325. package/dist/fn/iterate.d.ts +0 -2
  326. package/dist/fn/iterate.js +0 -16
  327. package/dist/fn/lightenDarkenHex.d.ts +0 -2
  328. package/dist/fn/lightenDarkenHex.js +0 -27
  329. package/dist/fn/link.d.ts +0 -2
  330. package/dist/fn/link.js +0 -105
  331. package/dist/fn/log.d.ts +0 -2
  332. package/dist/fn/log.js +0 -33
  333. package/dist/fn/makeReactive.d.ts +0 -2
  334. package/dist/fn/makeReactive.js +0 -185
  335. package/dist/fn/map.d.ts +0 -2
  336. package/dist/fn/map.js +0 -11
  337. package/dist/fn/md5.d.ts +0 -2
  338. package/dist/fn/md5.js +0 -121
  339. package/dist/fn/money.d.ts +0 -2
  340. package/dist/fn/money.js +0 -101
  341. package/dist/fn/move.d.ts +0 -2
  342. package/dist/fn/move.js +0 -11
  343. package/dist/fn/multiorder.d.ts +0 -2
  344. package/dist/fn/multiorder.js +0 -22
  345. package/dist/fn/nl2br.d.ts +0 -2
  346. package/dist/fn/nl2br.js +0 -5
  347. package/dist/fn/numProperties.d.ts +0 -2
  348. package/dist/fn/numProperties.js +0 -7
  349. package/dist/fn/objectToFormData.d.ts +0 -2
  350. package/dist/fn/objectToFormData.js +0 -35
  351. package/dist/fn/order.d.ts +0 -2
  352. package/dist/fn/order.js +0 -10
  353. package/dist/fn/outerHeight.d.ts +0 -2
  354. package/dist/fn/outerHeight.js +0 -10
  355. package/dist/fn/outerWidth.d.ts +0 -2
  356. package/dist/fn/outerWidth.js +0 -8
  357. package/dist/fn/percent.d.ts +0 -2
  358. package/dist/fn/percent.js +0 -4
  359. package/dist/fn/pickValue.d.ts +0 -2
  360. package/dist/fn/pickValue.js +0 -6
  361. package/dist/fn/post.d.ts +0 -2
  362. package/dist/fn/post.js +0 -12
  363. package/dist/fn/postOut.d.ts +0 -2
  364. package/dist/fn/postOut.js +0 -30
  365. package/dist/fn/printf.d.ts +0 -2
  366. package/dist/fn/printf.js +0 -7
  367. package/dist/fn/quotes2html.d.ts +0 -2
  368. package/dist/fn/quotes2html.js +0 -11
  369. package/dist/fn/randomInt.d.ts +0 -2
  370. package/dist/fn/randomInt.js +0 -4
  371. package/dist/fn/randomString.d.ts +0 -2
  372. package/dist/fn/randomString.js +0 -46
  373. package/dist/fn/removeAccents.d.ts +0 -2
  374. package/dist/fn/removeAccents.js +0 -15
  375. package/dist/fn/removeEmpty.d.ts +0 -2
  376. package/dist/fn/removeEmpty.js +0 -31
  377. package/dist/fn/removeExtraSpaces.d.ts +0 -2
  378. package/dist/fn/removeExtraSpaces.js +0 -4
  379. package/dist/fn/removeHtmlComments.d.ts +0 -2
  380. package/dist/fn/removeHtmlComments.js +0 -8
  381. package/dist/fn/removePrivateProp.d.ts +0 -2
  382. package/dist/fn/removePrivateProp.js +0 -19
  383. package/dist/fn/removeTrailingChars.d.ts +0 -2
  384. package/dist/fn/removeTrailingChars.js +0 -16
  385. package/dist/fn/repeat.d.ts +0 -2
  386. package/dist/fn/repeat.js +0 -4
  387. package/dist/fn/replaceAll.d.ts +0 -2
  388. package/dist/fn/replaceAll.js +0 -6
  389. package/dist/fn/replaceSelection.d.ts +0 -2
  390. package/dist/fn/replaceSelection.js +0 -42
  391. package/dist/fn/resize.d.ts +0 -2
  392. package/dist/fn/resize.js +0 -39
  393. package/dist/fn/rgb2hex.d.ts +0 -2
  394. package/dist/fn/rgb2hex.js +0 -10
  395. package/dist/fn/riterate.d.ts +0 -2
  396. package/dist/fn/riterate.js +0 -5
  397. package/dist/fn/roundDecimal.d.ts +0 -2
  398. package/dist/fn/roundDecimal.js +0 -4
  399. package/dist/fn/sanitize.d.ts +0 -2
  400. package/dist/fn/sanitize.js +0 -19
  401. package/dist/fn/search.d.ts +0 -3
  402. package/dist/fn/search.js +0 -79
  403. package/dist/fn/selectElementText.d.ts +0 -2
  404. package/dist/fn/selectElementText.js +0 -23
  405. package/dist/fn/selector.d.ts +0 -2
  406. package/dist/fn/selector.js +0 -4
  407. package/dist/fn/setCookie.d.ts +0 -2
  408. package/dist/fn/setCookie.js +0 -11
  409. package/dist/fn/setCssVar.d.ts +0 -2
  410. package/dist/fn/setCssVar.js +0 -8
  411. package/dist/fn/setNavigationVars.d.ts +0 -2
  412. package/dist/fn/setNavigationVars.js +0 -57
  413. package/dist/fn/setProp.d.ts +0 -2
  414. package/dist/fn/setProp.js +0 -8
  415. package/dist/fn/setProperty.d.ts +0 -2
  416. package/dist/fn/setProperty.js +0 -22
  417. package/dist/fn/shorten.d.ts +0 -2
  418. package/dist/fn/shorten.js +0 -17
  419. package/dist/fn/shortenObj.d.ts +0 -2
  420. package/dist/fn/shortenObj.js +0 -17
  421. package/dist/fn/shuffle.d.ts +0 -2
  422. package/dist/fn/shuffle.js +0 -13
  423. package/dist/fn/simpleHash.d.ts +0 -2
  424. package/dist/fn/simpleHash.js +0 -8
  425. package/dist/fn/simpleHash1.d.ts +0 -2
  426. package/dist/fn/simpleHash1.js +0 -10
  427. package/dist/fn/simpleHash2.d.ts +0 -2
  428. package/dist/fn/simpleHash2.js +0 -10
  429. package/dist/fn/stat.d.ts +0 -2
  430. package/dist/fn/stat.js +0 -49
  431. package/dist/fn/string2ArrayBuffer.d.ts +0 -2
  432. package/dist/fn/string2ArrayBuffer.js +0 -9
  433. package/dist/fn/submit.d.ts +0 -2
  434. package/dist/fn/submit.js +0 -33
  435. package/dist/fn/substr.d.ts +0 -2
  436. package/dist/fn/substr.js +0 -17
  437. package/dist/fn/sum.d.ts +0 -2
  438. package/dist/fn/sum.js +0 -13
  439. package/dist/fn/timestamp.d.ts +0 -2
  440. package/dist/fn/timestamp.js +0 -5
  441. package/dist/fn/toCSV.d.ts +0 -2
  442. package/dist/fn/toCSV.js +0 -40
  443. package/dist/fn/toggleFullScreen.d.ts +0 -2
  444. package/dist/fn/toggleFullScreen.js +0 -39
  445. package/dist/fn/translate.d.ts +0 -2
  446. package/dist/fn/translate.js +0 -8
  447. package/dist/fn/treatAjaxArguments.d.ts +0 -2
  448. package/dist/fn/treatAjaxArguments.js +0 -76
  449. package/dist/fn/trim.d.ts +0 -2
  450. package/dist/fn/trim.js +0 -20
  451. package/dist/fn/uniqString.d.ts +0 -2
  452. package/dist/fn/uniqString.js +0 -33
  453. package/dist/fn/unique.d.ts +0 -2
  454. package/dist/fn/unique.js +0 -6
  455. package/dist/fn/upload.d.ts +0 -2
  456. package/dist/fn/upload.js +0 -36
  457. package/dist/fn/warning.d.ts +0 -2
  458. package/dist/fn/warning.js +0 -12
package/dist/fn/printf.js DELETED
@@ -1,7 +0,0 @@
1
- const printf = function (format) {
2
- var args = Array.prototype.slice.call(arguments, 1);
3
- return format.replace(/{(\d+)}/g, function (match, number) {
4
- return typeof args[number] != 'undefined' ? args[number] : match;
5
- });
6
- };
7
- export { printf };
@@ -1,2 +0,0 @@
1
- declare const quotes2html: (st: string, type?: string) => string;
2
- export { quotes2html };
@@ -1,11 +0,0 @@
1
- import { replaceAll } from './replaceAll';
2
- const quotes2html = function (st, type) {
3
- if (!type || type.toLowerCase().indexOf('s') === 0) {
4
- st = replaceAll("'", ''', st);
5
- }
6
- if (!type || type.toLowerCase().indexOf('d') === 0) {
7
- st = replaceAll('"', '"', st);
8
- }
9
- return st;
10
- };
11
- export { quotes2html };
@@ -1,2 +0,0 @@
1
- declare const randomInt: (min: number, max: number) => number;
2
- export { randomInt };
@@ -1,4 +0,0 @@
1
- const randomInt = function (min, max) {
2
- return Math.floor(Math.random() * (max - min + 1) + min);
3
- };
4
- export { randomInt };
@@ -1,2 +0,0 @@
1
- declare const randomString: (min?: number, max?: string | number, types?: string) => string;
2
- export { randomString };
@@ -1,46 +0,0 @@
1
- import { randomInt } from './randomInt';
2
- const randomString = function (min, max, types) {
3
- let length;
4
- let type;
5
- let chars = {
6
- n: '0123456789',
7
- l: 'abcdefghijklmnopqrstuvwxyz',
8
- u: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
9
- };
10
- if (!types) {
11
- types = 'nlu';
12
- }
13
- if (!min) {
14
- length = randomInt(8, 14);
15
- }
16
- if (typeof max === 'string') {
17
- types = 'n';
18
- delete chars.l;
19
- delete chars.u;
20
- chars.n = max;
21
- if (!length) {
22
- length = min;
23
- }
24
- }
25
- else if (typeof max === 'number' && min < max) {
26
- length = randomInt(min, max);
27
- }
28
- else if (min) {
29
- length = min;
30
- }
31
- let result = '';
32
- for (let i = 0; i < length; i++) {
33
- // Not a number for the first char
34
- if (i === 0) {
35
- if (types !== 'n') {
36
- type = types.indexOf('u') === -1 ? 'l' : 'u';
37
- }
38
- }
39
- else {
40
- type = types[Math.floor(Math.random() * types.length)];
41
- }
42
- result += chars[type][Math.floor(Math.random() * chars[type].length)];
43
- }
44
- return result;
45
- };
46
- export { randomString };
@@ -1,2 +0,0 @@
1
- declare const removeAccents: (st: string) => string;
2
- export { removeAccents };
@@ -1,15 +0,0 @@
1
- import { isString } from './isString';
2
- import { log } from './log';
3
- const removeAccents = function (st) {
4
- if (!isString(st)) {
5
- if (st.toString) {
6
- st = st.toString();
7
- }
8
- else {
9
- log(st);
10
- throw new Error(bbn._('removeAccent expects a string'));
11
- }
12
- }
13
- return st.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
14
- };
15
- export { removeAccents };
@@ -1,2 +0,0 @@
1
- declare const removeEmpty: (arr: any[]) => any[];
2
- export { removeEmpty };
@@ -1,31 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { isObject } from './isObject';
3
- import { numProperties } from './numProperties';
4
- const removeEmpty = function (arr) {
5
- var tmp = [];
6
- if (isArray(arr)) {
7
- for (let i = 0; i < arr.length; i++) {
8
- let ok = false;
9
- if (arr[i]) {
10
- if (isArray(arr[i])) {
11
- if (arr[i].length) {
12
- ok = true;
13
- }
14
- }
15
- else if (isObject(arr[i])) {
16
- if (numProperties(arr[i])) {
17
- ok = true;
18
- }
19
- }
20
- else {
21
- ok = true;
22
- }
23
- }
24
- if (ok) {
25
- tmp.push(arr[i]);
26
- }
27
- }
28
- }
29
- return tmp;
30
- };
31
- export { removeEmpty };
@@ -1,2 +0,0 @@
1
- declare const removeExtraSpaces: (str: string) => string;
2
- export { removeExtraSpaces };
@@ -1,4 +0,0 @@
1
- const removeExtraSpaces = function (str) {
2
- return str.replace(/\s+/g, ' ').trim();
3
- };
4
- export { removeExtraSpaces };
@@ -1,2 +0,0 @@
1
- declare const removeHtmlComments: (str: string) => string;
2
- export { removeHtmlComments };
@@ -1,8 +0,0 @@
1
- import { isString } from './isString';
2
- const removeHtmlComments = function (str) {
3
- if (!isString(str)) {
4
- return str;
5
- }
6
- return str.replace(/<!--[\s\S]*?-->/g, '');
7
- };
8
- export { removeHtmlComments };
@@ -1,2 +0,0 @@
1
- declare const removePrivateProp: (obj: object, deep?: boolean) => any;
2
- export { removePrivateProp };
@@ -1,19 +0,0 @@
1
- import { substr } from './substr';
2
- const removePrivateProp = function (obj, deep = false) {
3
- let r = null;
4
- if (typeof obj === 'object') {
5
- r = {};
6
- for (var n in obj) {
7
- if (substr(n, 0, 1).match(/^[A-z0-9]$/) && (n in obj)) {
8
- if (deep && typeof obj[n] === 'object') {
9
- r[n] = removePrivateProp(obj[n], true);
10
- }
11
- else {
12
- r[n] = obj[n];
13
- }
14
- }
15
- }
16
- }
17
- return r || false;
18
- };
19
- export { removePrivateProp };
@@ -1,2 +0,0 @@
1
- declare const removeTrailingChars: (st: string, char?: string) => string;
2
- export { removeTrailingChars };
@@ -1,16 +0,0 @@
1
- import { substr } from './substr';
2
- const removeTrailingChars = function (st, char) {
3
- if (!char) {
4
- char = ' ';
5
- }
6
- if (char.length) {
7
- while (substr(st, -char.length) === char) {
8
- st = substr(st, 0, st.length - char.length);
9
- }
10
- while (substr(st, 0, char.length) === char) {
11
- st = substr(st, char.length);
12
- }
13
- }
14
- return st;
15
- };
16
- export { removeTrailingChars };
@@ -1,2 +0,0 @@
1
- declare const repeat: (st: string, num: number) => string;
2
- export { repeat };
package/dist/fn/repeat.js DELETED
@@ -1,4 +0,0 @@
1
- const repeat = function (st, num) {
2
- return st.repeat(num);
3
- };
4
- export { repeat };
@@ -1,2 +0,0 @@
1
- declare const replaceAll: (find: string, replace: string, str: string, flags?: string) => string;
2
- export { replaceAll };
@@ -1,6 +0,0 @@
1
- import { isObject } from './isObject';
2
- import { escapeRegExp } from './escapeRegExp';
3
- const replaceAll = function (find, replace, str, flags = '') {
4
- return str.toString().replace(isObject(find) ? find : new RegExp(escapeRegExp(find), 'g' + flags), replace);
5
- };
6
- export { replaceAll };
@@ -1,2 +0,0 @@
1
- declare const replaceSelection: (html: any, selectInserted: any) => void;
2
- export { replaceSelection };
@@ -1,42 +0,0 @@
1
- const replaceSelection = function (html, selectInserted) {
2
- let sel, range, fragment;
3
- sel = window.getSelection();
4
- // Test that the Selection object contains at least one Range
5
- if (sel.getRangeAt && sel.rangeCount) {
6
- // Get the first Range (only Firefox supports more than one)
7
- range = window.getSelection().getRangeAt(0);
8
- range.deleteContents();
9
- // Create a DocumentFragment to insert and populate it with HTML
10
- // Need to test for the existence of range.createContextualFragment
11
- // because it's non-standard and IE 9 does not support it
12
- if (range.createContextualFragment) {
13
- fragment = range.createContextualFragment(html);
14
- }
15
- else {
16
- // In IE 9 we need to use innerHTML of a temporary element
17
- const div = document.createElement('div');
18
- let child;
19
- div.innerHTML = html;
20
- fragment = document.createDocumentFragment();
21
- while ((child = div.firstChild)) {
22
- fragment.appendChild(child);
23
- }
24
- }
25
- const firstInsertedNode = fragment.firstChild;
26
- const lastInsertedNode = fragment.lastChild;
27
- range.insertNode(fragment);
28
- sel.removeAllRanges();
29
- if (selectInserted) {
30
- if (firstInsertedNode) {
31
- range.setStartBefore(firstInsertedNode);
32
- range.setEndAfter(lastInsertedNode);
33
- }
34
- sel.addRange(range);
35
- }
36
- else {
37
- range.setStartAfter(lastInsertedNode);
38
- sel.addRange(range);
39
- }
40
- }
41
- };
42
- export { replaceSelection };
@@ -1,2 +0,0 @@
1
- declare const resize: () => void;
2
- export { resize };
package/dist/fn/resize.js DELETED
@@ -1,39 +0,0 @@
1
- import { getCssVar } from './getCssVar';
2
- import { each } from './each';
3
- import { defaultResizeFunction } from './defaultResizeFunction';
4
- const resize = function () {
5
- let diffW = bbn.env.width !== window.innerWidth;
6
- let diffH = bbn.env.height !== window.innerHeight;
7
- if (diffW || diffH) {
8
- if (diffW) {
9
- bbn.env.width =
10
- window.innerWidth || window.document.documentElement.clientWidth || window.document.body.clientWidth;
11
- document.documentElement.style.setProperty('--vw', bbn.env.width * 0.01 + 'px');
12
- }
13
- if (diffH) {
14
- bbn.env.height =
15
- window.innerHeight || window.document.documentElement.clientHeight || window.document.body.clientHeight;
16
- document.documentElement.style.setProperty('--vh', bbn.env.height * 0.01 + 'px');
17
- }
18
- let smallWidth = parseInt(getCssVar('mobile-limit')) || 650;
19
- let newCls = 'bbn-screen-' + (bbn.env.width < smallWidth ? 'small' : 'regular');
20
- let classes = (document.body.className || '').split(' ');
21
- let done = false;
22
- each(classes, (cls, idx) => {
23
- let bits = cls.split('-');
24
- if (bits.length === 3 && cls.indexOf('bbn-screen-') === 0) {
25
- done = true;
26
- if (cls !== newCls) {
27
- classes.splice(idx, 1, newCls);
28
- }
29
- return false;
30
- }
31
- });
32
- if (!done) {
33
- classes.push(newCls);
34
- }
35
- document.body.className = classes.join(' ');
36
- defaultResizeFunction();
37
- }
38
- };
39
- export { resize };
@@ -1,2 +0,0 @@
1
- declare const rgb2hex: (rgb: any) => string;
2
- export { rgb2hex };
@@ -1,10 +0,0 @@
1
- const rgb2hex = function (rgb) {
2
- rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
3
- return rgb && rgb.length === 4
4
- ? '#' +
5
- ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) +
6
- ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) +
7
- ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2)
8
- : '';
9
- };
10
- export { rgb2hex };
@@ -1,2 +0,0 @@
1
- declare const riterate: (obj: object, fn: (a: any, b: string) => any, noPrivate?: boolean) => object;
2
- export { riterate };
@@ -1,5 +0,0 @@
1
- import { iterate } from './iterate';
2
- const riterate = function (obj, fn, noPrivate) {
3
- return iterate(obj, fn, noPrivate, true);
4
- };
5
- export { riterate };
@@ -1,2 +0,0 @@
1
- declare const roundDecimal: (value: number, decimals: number) => number;
2
- export { roundDecimal };
@@ -1,4 +0,0 @@
1
- const roundDecimal = function (value, decimals) {
2
- return Math.round(Math.pow(Math.pow(value, decimals), -decimals));
3
- };
4
- export { roundDecimal };
@@ -1,2 +0,0 @@
1
- declare const sanitize: (str: any, separator?: string) => any;
2
- export { sanitize };
@@ -1,19 +0,0 @@
1
- import { removeAccents } from './removeAccents';
2
- import { trim } from './trim';
3
- const sanitize = function (str, separator = '_') {
4
- let escaped = ['[', ']', '{', '}', '(', ')', '-', '+', '*', '/'];
5
- let exp = '[';
6
- for (let i = 0; i < separator.length; i++) {
7
- if (escaped.includes(separator[i])) {
8
- exp += '\\';
9
- }
10
- exp += separator[i];
11
- }
12
- exp += ']+';
13
- let re = new RegExp(exp, 'g');
14
- let res = removeAccents(str)
15
- .replace(/[^a-z0-9]/gi, separator)
16
- .replace(re, separator);
17
- return trim(res, separator);
18
- };
19
- export { sanitize };
@@ -1,3 +0,0 @@
1
- import { Filter } from './filterToConditions';
2
- declare const search: (arr: any[], prop: string | object | Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: number | string, startFrom?: number) => number;
3
- export { search };
package/dist/fn/search.js DELETED
@@ -1,79 +0,0 @@
1
- import { isIterable } from './isIterable';
2
- import { compareConditions } from './compareConditions';
3
- import { filterToConditions } from './filterToConditions';
4
- import { isObject } from './isObject';
5
- import { numProperties } from './numProperties';
6
- import { isNumber } from './isNumber';
7
- const search = function (arr, prop, val = null, operator = '=', startFrom = 0) {
8
- if (!isIterable(arr)) {
9
- throw new Error(bbn._('The first argument for a search should be iterable') + ' ' + typeof arr + ' ' + bbn._('given'));
10
- }
11
- if (!arr.length) {
12
- return -1;
13
- }
14
- let filter;
15
- let isFn = false;
16
- if (typeof prop === 'string') {
17
- filter = {
18
- conditions: [
19
- {
20
- field: prop,
21
- value: val,
22
- operator: operator || '=',
23
- },
24
- ]
25
- };
26
- }
27
- else if (!prop) {
28
- isFn = true;
29
- filter = a => {
30
- return compareConditions({ value: a }, filterToConditions({
31
- logic: 'AND',
32
- conditions: [
33
- {
34
- field: 'value',
35
- operator: operator || '=',
36
- value: val,
37
- },
38
- ],
39
- }));
40
- };
41
- }
42
- else {
43
- startFrom = typeof (operator) === 'number' ? operator : 0;
44
- operator = val;
45
- if (isObject(prop)) {
46
- filter = prop;
47
- }
48
- else if (typeof (prop) === 'function') {
49
- isFn = true;
50
- filter = prop;
51
- }
52
- }
53
- if (isFn || (isObject(filter) && numProperties(filter))) {
54
- if (isNumber(operator)) {
55
- startFrom = typeof (operator) === 'number' ? operator : 0;
56
- operator = undefined;
57
- }
58
- if (!isNumber(startFrom)) {
59
- startFrom = 0;
60
- }
61
- if (typeof filter === 'function') {
62
- for (let i = startFrom; i < arr.length; i++) {
63
- if (filter(arr[i])) {
64
- return i;
65
- }
66
- }
67
- }
68
- else {
69
- filter = filterToConditions(filter);
70
- for (let i = startFrom; i < arr.length; i++) {
71
- if (compareConditions(arr[i], filter)) {
72
- return i;
73
- }
74
- }
75
- }
76
- }
77
- return -1;
78
- };
79
- export { search };
@@ -1,2 +0,0 @@
1
- declare const selectElementText: (ele: HTMLElement, win?: Window) => void;
2
- export { selectElementText };
@@ -1,23 +0,0 @@
1
- const selectElementText = function (ele, win) {
2
- win = win || window;
3
- if (ele instanceof HTMLInputElement) {
4
- ele.select();
5
- return;
6
- }
7
- let doc = win.document;
8
- let sel;
9
- let range;
10
- if (win.getSelection && doc.createRange) {
11
- sel = win.getSelection();
12
- range = doc.createRange();
13
- range.selectNodeContents(ele);
14
- sel.removeAllRanges();
15
- sel.addRange(range);
16
- }
17
- else if (('createTextRange' in doc.body) && (typeof doc.body.createTextRange === 'function')) {
18
- range = doc.body.createTextRange();
19
- range.moveToElementText(ele);
20
- range.select();
21
- }
22
- };
23
- export { selectElementText };
@@ -1,2 +0,0 @@
1
- declare const selector: (ele: string | HTMLElement) => HTMLElement | undefined;
2
- export { selector };
@@ -1,4 +0,0 @@
1
- const selector = function (ele) {
2
- return typeof ele === 'string' ? document.querySelector(ele) : ele;
3
- };
4
- export { selector };
@@ -1,2 +0,0 @@
1
- declare const setCookie: (name: any, value: any, days: any) => void;
2
- export { setCookie };
@@ -1,11 +0,0 @@
1
- const setCookie = function (name, value, days) {
2
- let expires = '';
3
- if (days) {
4
- let date = new Date();
5
- date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
6
- expires = '; expires=' + date.toUTCString();
7
- }
8
- let st = escape(JSON.stringify({ value: value }));
9
- document.cookie = name + '=' + st + expires + '; path=/';
10
- };
11
- export { setCookie };
@@ -1,2 +0,0 @@
1
- declare const setCssVar: (varname: any, value: any) => void;
2
- export { setCssVar };
@@ -1,8 +0,0 @@
1
- const setCssVar = function (varname, value) {
2
- if (varname.indexOf('--') !== 0) {
3
- varname = '--' + varname;
4
- }
5
- /** @todo To Fix */
6
- //document.documentElement.setProperty(varname, value);
7
- };
8
- export { setCssVar };
@@ -1,2 +0,0 @@
1
- declare const setNavigationVars: (url: any, title: any, data?: object, repl?: boolean) => void;
2
- export { setNavigationVars };
@@ -1,57 +0,0 @@
1
- import { substr } from './substr';
2
- import { filter } from './filter';
3
- import { extend } from './extend';
4
- import { html2text } from './html2text';
5
- const setNavigationVars = function (url, title, data, repl) {
6
- // Current path becomes old path
7
- bbn.env.old_path = bbn.env.path;
8
- // URL includes the domain
9
- bbn.env.url = ['https:/', 'http://'].includes(substr(url, 0, 7)) ? url : bbn.env.root + url;
10
- // Path does not
11
- bbn.env.path = substr(bbn.env.url, bbn.env.root.length);
12
- // Params will include each part of the URL
13
- bbn.env.params = filter(bbn.env.path.split('/'), (v) => {
14
- return v !== '';
15
- });
16
- // Managing history
17
- let h = window.history;
18
- if (h) {
19
- // Current state
20
- let state = h.state;
21
- // Future state
22
- let obj = {
23
- url: bbn.env.path,
24
- old_path: bbn.env.old_path || null,
25
- data: data || {},
26
- reload: false
27
- };
28
- // If same URL we replace
29
- if (state && state.url === bbn.env.path) {
30
- if (state.data) {
31
- extend(obj.data, state.data);
32
- }
33
- if (state.title && !title) {
34
- title = state.title;
35
- }
36
- repl = true;
37
- }
38
- // If no title the global title
39
- if (!title) {
40
- title = bbn.env.siteTitle;
41
- }
42
- // Otherwise we add the global title at the end
43
- else {
44
- title = html2text(title);
45
- }
46
- // Replacing state
47
- if (repl) {
48
- obj.reload = true;
49
- h.replaceState(obj, title, bbn.env.url);
50
- }
51
- // Adding state
52
- else {
53
- h.pushState(obj, title, bbn.env.url);
54
- }
55
- }
56
- };
57
- export { setNavigationVars };
@@ -1,2 +0,0 @@
1
- declare const setProp: (obj: object, prop: string, value: any, writable?: boolean, configurable?: boolean) => void;
2
- export { setProp };
@@ -1,8 +0,0 @@
1
- const setProp = function (obj, prop, value, writable = true, configurable = true) {
2
- Object.defineProperty(obj, prop, {
3
- value: value,
4
- writable: writable,
5
- configurable: configurable,
6
- });
7
- };
8
- export { setProp };
@@ -1,2 +0,0 @@
1
- declare const setProperty: (obj: object, prop: string, value: any, force?: boolean) => void;
2
- export { setProperty };
@@ -1,22 +0,0 @@
1
- import { each } from './each';
2
- const setProperty = function (obj, prop, value, force) {
3
- if (typeof obj === 'object' && typeof prop === 'string') {
4
- let o = obj;
5
- const bits = prop.split('.');
6
- each(bits, (v, i) => {
7
- if (!o) {
8
- if (!force) {
9
- throw new Error(bbn._('The object is invalid'));
10
- }
11
- o = {};
12
- }
13
- if (bits.length - 1 === i) {
14
- o[v] = value;
15
- }
16
- else {
17
- o = o[v];
18
- }
19
- });
20
- }
21
- };
22
- export { setProperty };
@@ -1,2 +0,0 @@
1
- declare const shorten: (st: string, len?: number, adj?: string) => string;
2
- export { shorten };