@bbn/bbn 1.0.89 → 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 (457) hide show
  1. package/dist/bundle.js +8 -8
  2. package/dist/index.js +7 -7
  3. package/package.json +3 -2
  4. package/dist/fn/_addLoader.d.ts +0 -2
  5. package/dist/fn/_addLoader.js +0 -37
  6. package/dist/fn/_compareValues.d.ts +0 -2
  7. package/dist/fn/_compareValues.js +0 -40
  8. package/dist/fn/_deleteLoader.d.ts +0 -2
  9. package/dist/fn/_deleteLoader.js +0 -25
  10. package/dist/fn/abort.d.ts +0 -2
  11. package/dist/fn/abort.js +0 -14
  12. package/dist/fn/abortURL.d.ts +0 -2
  13. package/dist/fn/abortURL.js +0 -13
  14. package/dist/fn/addColors.d.ts +0 -2
  15. package/dist/fn/addColors.js +0 -41
  16. package/dist/fn/addInputs.d.ts +0 -2
  17. package/dist/fn/addInputs.js +0 -40
  18. package/dist/fn/addStyle.d.ts +0 -2
  19. package/dist/fn/addStyle.js +0 -10
  20. package/dist/fn/adjustHeight.d.ts +0 -2
  21. package/dist/fn/adjustHeight.js +0 -10
  22. package/dist/fn/adjustSize.d.ts +0 -2
  23. package/dist/fn/adjustSize.js +0 -21
  24. package/dist/fn/adjustWidth.d.ts +0 -2
  25. package/dist/fn/adjustWidth.js +0 -10
  26. package/dist/fn/ajax.d.ts +0 -2
  27. package/dist/fn/ajax.js +0 -114
  28. package/dist/fn/analyzeFunction.d.ts +0 -11
  29. package/dist/fn/analyzeFunction.js +0 -141
  30. package/dist/fn/animateCss.d.ts +0 -2
  31. package/dist/fn/animateCss.js +0 -20
  32. package/dist/fn/arrayBuffer2String.d.ts +0 -2
  33. package/dist/fn/arrayBuffer2String.js +0 -4
  34. package/dist/fn/arrayFromProp.d.ts +0 -2
  35. package/dist/fn/arrayFromProp.js +0 -10
  36. package/dist/fn/autoExtend.d.ts +0 -2
  37. package/dist/fn/autoExtend.js +0 -13
  38. package/dist/fn/baseName.d.ts +0 -2
  39. package/dist/fn/baseName.js +0 -17
  40. package/dist/fn/br2nl.d.ts +0 -2
  41. package/dist/fn/br2nl.js +0 -5
  42. package/dist/fn/calendar.d.ts +0 -2
  43. package/dist/fn/calendar.js +0 -23
  44. package/dist/fn/callback.d.ts +0 -2
  45. package/dist/fn/callback.js +0 -82
  46. package/dist/fn/camelToCss.d.ts +0 -2
  47. package/dist/fn/camelToCss.js +0 -10
  48. package/dist/fn/camelize.d.ts +0 -2
  49. package/dist/fn/camelize.js +0 -9
  50. package/dist/fn/canvasToImage.d.ts +0 -2
  51. package/dist/fn/canvasToImage.js +0 -6
  52. package/dist/fn/center.d.ts +0 -2
  53. package/dist/fn/center.js +0 -24
  54. package/dist/fn/checkProps.d.ts +0 -2
  55. package/dist/fn/checkProps.js +0 -5
  56. package/dist/fn/checkPropsDetails.d.ts +0 -2
  57. package/dist/fn/checkPropsDetails.js +0 -50
  58. package/dist/fn/checkPropsOrDie.d.ts +0 -2
  59. package/dist/fn/checkPropsOrDie.js +0 -9
  60. package/dist/fn/checkType.d.ts +0 -2
  61. package/dist/fn/checkType.js +0 -59
  62. package/dist/fn/chrono.d.ts +0 -3
  63. package/dist/fn/chrono.js +0 -23
  64. package/dist/fn/circularReplacer.d.ts +0 -2
  65. package/dist/fn/circularReplacer.js +0 -33
  66. package/dist/fn/clone.d.ts +0 -2
  67. package/dist/fn/clone.js +0 -16
  68. package/dist/fn/colorToHex.d.ts +0 -2
  69. package/dist/fn/colorToHex.js +0 -6
  70. package/dist/fn/compare.d.ts +0 -2
  71. package/dist/fn/compare.js +0 -99
  72. package/dist/fn/compareConditions.d.ts +0 -2
  73. package/dist/fn/compareConditions.js +0 -42
  74. package/dist/fn/copy.d.ts +0 -2
  75. package/dist/fn/copy.js +0 -37
  76. package/dist/fn/correctCase.d.ts +0 -2
  77. package/dist/fn/correctCase.js +0 -4
  78. package/dist/fn/count.d.ts +0 -2
  79. package/dist/fn/count.js +0 -5
  80. package/dist/fn/crc32.d.ts +0 -2
  81. package/dist/fn/crc32.js +0 -18
  82. package/dist/fn/createObject.d.ts +0 -2
  83. package/dist/fn/createObject.js +0 -9
  84. package/dist/fn/cssExists.d.ts +0 -2
  85. package/dist/fn/cssExists.js +0 -30
  86. package/dist/fn/date.d.ts +0 -2
  87. package/dist/fn/date.js +0 -28
  88. package/dist/fn/dateSQL.d.ts +0 -2
  89. package/dist/fn/dateSQL.js +0 -8
  90. package/dist/fn/daysInMonth.d.ts +0 -2
  91. package/dist/fn/daysInMonth.js +0 -9
  92. package/dist/fn/deepPath.d.ts +0 -2
  93. package/dist/fn/deepPath.js +0 -23
  94. package/dist/fn/defaultAjaxAbortFunction.d.ts +0 -2
  95. package/dist/fn/defaultAjaxAbortFunction.js +0 -5
  96. package/dist/fn/defaultAjaxErrorFunction.d.ts +0 -2
  97. package/dist/fn/defaultAjaxErrorFunction.js +0 -4
  98. package/dist/fn/defaultAlertFunction.d.ts +0 -2
  99. package/dist/fn/defaultAlertFunction.js +0 -5
  100. package/dist/fn/defaultConfirmFunction.d.ts +0 -2
  101. package/dist/fn/defaultConfirmFunction.js +0 -14
  102. package/dist/fn/defaultEndLoadingFunction.d.ts +0 -2
  103. package/dist/fn/defaultEndLoadingFunction.js +0 -4
  104. package/dist/fn/defaultErrorFunction.d.ts +0 -2
  105. package/dist/fn/defaultErrorFunction.js +0 -5
  106. package/dist/fn/defaultHistoryFunction.d.ts +0 -2
  107. package/dist/fn/defaultHistoryFunction.js +0 -4
  108. package/dist/fn/defaultLinkFunction.d.ts +0 -2
  109. package/dist/fn/defaultLinkFunction.js +0 -4
  110. package/dist/fn/defaultPostLinkFunction.d.ts +0 -2
  111. package/dist/fn/defaultPostLinkFunction.js +0 -4
  112. package/dist/fn/defaultPreLinkFunction.d.ts +0 -2
  113. package/dist/fn/defaultPreLinkFunction.js +0 -4
  114. package/dist/fn/defaultResizeFunction.d.ts +0 -2
  115. package/dist/fn/defaultResizeFunction.js +0 -4
  116. package/dist/fn/defaultStartLoadingFunction.d.ts +0 -2
  117. package/dist/fn/defaultStartLoadingFunction.js +0 -4
  118. package/dist/fn/deleteProp.d.ts +0 -2
  119. package/dist/fn/deleteProp.js +0 -7
  120. package/dist/fn/diffObj.d.ts +0 -2
  121. package/dist/fn/diffObj.js +0 -91
  122. package/dist/fn/dirName.d.ts +0 -2
  123. package/dist/fn/dirName.js +0 -18
  124. package/dist/fn/download.d.ts +0 -2
  125. package/dist/fn/download.js +0 -36
  126. package/dist/fn/downloadContent.d.ts +0 -2
  127. package/dist/fn/downloadContent.js +0 -48
  128. package/dist/fn/each.d.ts +0 -2
  129. package/dist/fn/each.js +0 -23
  130. package/dist/fn/eraseCookie.d.ts +0 -2
  131. package/dist/fn/eraseCookie.js +0 -4
  132. package/dist/fn/error.d.ts +0 -2
  133. package/dist/fn/error.js +0 -17
  134. package/dist/fn/escapeDquotes.d.ts +0 -2
  135. package/dist/fn/escapeDquotes.js +0 -8
  136. package/dist/fn/escapeRegExp.d.ts +0 -2
  137. package/dist/fn/escapeRegExp.js +0 -4
  138. package/dist/fn/escapeSquotes.d.ts +0 -2
  139. package/dist/fn/escapeSquotes.js +0 -8
  140. package/dist/fn/escapeTicks.d.ts +0 -2
  141. package/dist/fn/escapeTicks.js +0 -8
  142. package/dist/fn/escapeUrl.d.ts +0 -2
  143. package/dist/fn/escapeUrl.js +0 -40
  144. package/dist/fn/extend.d.ts +0 -2
  145. package/dist/fn/extend.js +0 -71
  146. package/dist/fn/extendOut.d.ts +0 -2
  147. package/dist/fn/extendOut.js +0 -24
  148. package/dist/fn/fdate.d.ts +0 -2
  149. package/dist/fn/fdate.js +0 -19
  150. package/dist/fn/fdatetime.d.ts +0 -2
  151. package/dist/fn/fdatetime.js +0 -23
  152. package/dist/fn/fieldValue.d.ts +0 -2
  153. package/dist/fn/fieldValue.js +0 -24
  154. package/dist/fn/fileExt.d.ts +0 -2
  155. package/dist/fn/fileExt.js +0 -11
  156. package/dist/fn/filter.d.ts +0 -3
  157. package/dist/fn/filter.js +0 -47
  158. package/dist/fn/filterToConditions.d.ts +0 -11
  159. package/dist/fn/filterToConditions.js +0 -31
  160. package/dist/fn/findAll.d.ts +0 -2
  161. package/dist/fn/findAll.js +0 -18
  162. package/dist/fn/fori.d.ts +0 -2
  163. package/dist/fn/fori.js +0 -19
  164. package/dist/fn/forir.d.ts +0 -2
  165. package/dist/fn/forir.js +0 -19
  166. package/dist/fn/format.d.ts +0 -2
  167. package/dist/fn/format.js +0 -14
  168. package/dist/fn/formatBytes.d.ts +0 -2
  169. package/dist/fn/formatBytes.js +0 -8
  170. package/dist/fn/formatDate.d.ts +0 -2
  171. package/dist/fn/formatDate.js +0 -4
  172. package/dist/fn/formatSize.d.ts +0 -2
  173. package/dist/fn/formatSize.js +0 -12
  174. package/dist/fn/formdata.d.ts +0 -2
  175. package/dist/fn/formdata.js +0 -52
  176. package/dist/fn/fromXml.d.ts +0 -2
  177. package/dist/fn/fromXml.js +0 -44
  178. package/dist/fn/ftime.d.ts +0 -2
  179. package/dist/fn/ftime.js +0 -15
  180. package/dist/fn/getAllTags.d.ts +0 -2
  181. package/dist/fn/getAllTags.js +0 -5
  182. package/dist/fn/getAncestors.d.ts +0 -2
  183. package/dist/fn/getAncestors.js +0 -25
  184. package/dist/fn/getAttributes.d.ts +0 -2
  185. package/dist/fn/getAttributes.js +0 -12
  186. package/dist/fn/getBrowserName.d.ts +0 -2
  187. package/dist/fn/getBrowserName.js +0 -21
  188. package/dist/fn/getBrowserVersion.d.ts +0 -2
  189. package/dist/fn/getBrowserVersion.js +0 -22
  190. package/dist/fn/getCookie.d.ts +0 -2
  191. package/dist/fn/getCookie.js +0 -18
  192. package/dist/fn/getCssVar.d.ts +0 -2
  193. package/dist/fn/getCssVar.js +0 -7
  194. package/dist/fn/getDay.d.ts +0 -2
  195. package/dist/fn/getDay.js +0 -17
  196. package/dist/fn/getDeviceType.d.ts +0 -2
  197. package/dist/fn/getDeviceType.js +0 -11
  198. package/dist/fn/getEventData.d.ts +0 -2
  199. package/dist/fn/getEventData.js +0 -102
  200. package/dist/fn/getField.d.ts +0 -2
  201. package/dist/fn/getField.js +0 -9
  202. package/dist/fn/getFieldValues.d.ts +0 -2
  203. package/dist/fn/getFieldValues.js +0 -13
  204. package/dist/fn/getHTMLOfSelection.d.ts +0 -2
  205. package/dist/fn/getHTMLOfSelection.js +0 -18
  206. package/dist/fn/getHtml.d.ts +0 -2
  207. package/dist/fn/getHtml.js +0 -9
  208. package/dist/fn/getLoader.d.ts +0 -2
  209. package/dist/fn/getLoader.js +0 -9
  210. package/dist/fn/getPath.d.ts +0 -2
  211. package/dist/fn/getPath.js +0 -42
  212. package/dist/fn/getProp.d.ts +0 -2
  213. package/dist/fn/getProp.js +0 -7
  214. package/dist/fn/getProperty.d.ts +0 -2
  215. package/dist/fn/getProperty.js +0 -11
  216. package/dist/fn/getRequestId.d.ts +0 -2
  217. package/dist/fn/getRequestId.js +0 -14
  218. package/dist/fn/getRow.d.ts +0 -2
  219. package/dist/fn/getRow.js +0 -9
  220. package/dist/fn/getScrollBarSize.d.ts +0 -2
  221. package/dist/fn/getScrollBarSize.js +0 -25
  222. package/dist/fn/getText.d.ts +0 -2
  223. package/dist/fn/getText.js +0 -4
  224. package/dist/fn/getTimeoff.d.ts +0 -2
  225. package/dist/fn/getTimeoff.js +0 -7
  226. package/dist/fn/happy.d.ts +0 -2
  227. package/dist/fn/happy.js +0 -10
  228. package/dist/fn/hash.d.ts +0 -2
  229. package/dist/fn/hash.js +0 -36
  230. package/dist/fn/hex2rgb.d.ts +0 -6
  231. package/dist/fn/hex2rgb.js +0 -11
  232. package/dist/fn/history.d.ts +0 -2
  233. package/dist/fn/history.js +0 -4
  234. package/dist/fn/html2text.d.ts +0 -2
  235. package/dist/fn/html2text.js +0 -7
  236. package/dist/fn/imageToCanvas.d.ts +0 -2
  237. package/dist/fn/imageToCanvas.js +0 -8
  238. package/dist/fn/imgToBase64.d.ts +0 -2
  239. package/dist/fn/imgToBase64.js +0 -7
  240. package/dist/fn/info.d.ts +0 -2
  241. package/dist/fn/info.js +0 -11
  242. package/dist/fn/isActiveInterface.d.ts +0 -2
  243. package/dist/fn/isActiveInterface.js +0 -8
  244. package/dist/fn/isArray.d.ts +0 -2
  245. package/dist/fn/isArray.js +0 -11
  246. package/dist/fn/isBlob.d.ts +0 -2
  247. package/dist/fn/isBlob.js +0 -11
  248. package/dist/fn/isBoolean.d.ts +0 -2
  249. package/dist/fn/isBoolean.js +0 -11
  250. package/dist/fn/isCanvas.d.ts +0 -2
  251. package/dist/fn/isCanvas.js +0 -11
  252. package/dist/fn/isColor.d.ts +0 -2
  253. package/dist/fn/isColor.js +0 -16
  254. package/dist/fn/isComment.d.ts +0 -2
  255. package/dist/fn/isComment.js +0 -11
  256. package/dist/fn/isCp.d.ts +0 -2
  257. package/dist/fn/isCp.js +0 -17
  258. package/dist/fn/isDate.d.ts +0 -2
  259. package/dist/fn/isDate.js +0 -11
  260. package/dist/fn/isDesktopDevice.d.ts +0 -2
  261. package/dist/fn/isDesktopDevice.js +0 -5
  262. package/dist/fn/isDimension.d.ts +0 -2
  263. package/dist/fn/isDimension.js +0 -15
  264. package/dist/fn/isDom.d.ts +0 -2
  265. package/dist/fn/isDom.js +0 -11
  266. package/dist/fn/isEmail.d.ts +0 -2
  267. package/dist/fn/isEmail.js +0 -16
  268. package/dist/fn/isEmpty.d.ts +0 -2
  269. package/dist/fn/isEmpty.js +0 -18
  270. package/dist/fn/isEvent.d.ts +0 -2
  271. package/dist/fn/isEvent.js +0 -11
  272. package/dist/fn/isFocused.d.ts +0 -2
  273. package/dist/fn/isFocused.js +0 -4
  274. package/dist/fn/isFunction.d.ts +0 -2
  275. package/dist/fn/isFunction.js +0 -11
  276. package/dist/fn/isHostname.d.ts +0 -2
  277. package/dist/fn/isHostname.js +0 -16
  278. package/dist/fn/isIP.d.ts +0 -2
  279. package/dist/fn/isIP.js +0 -12
  280. package/dist/fn/isInside.d.ts +0 -2
  281. package/dist/fn/isInside.js +0 -23
  282. package/dist/fn/isInt.d.ts +0 -2
  283. package/dist/fn/isInt.js +0 -11
  284. package/dist/fn/isIterable.d.ts +0 -2
  285. package/dist/fn/isIterable.js +0 -4
  286. package/dist/fn/isMobile.d.ts +0 -2
  287. package/dist/fn/isMobile.js +0 -6
  288. package/dist/fn/isMobileDevice.d.ts +0 -2
  289. package/dist/fn/isMobileDevice.js +0 -5
  290. package/dist/fn/isNull.d.ts +0 -2
  291. package/dist/fn/isNull.js +0 -11
  292. package/dist/fn/isNumber.d.ts +0 -2
  293. package/dist/fn/isNumber.js +0 -11
  294. package/dist/fn/isObject.d.ts +0 -2
  295. package/dist/fn/isObject.js +0 -11
  296. package/dist/fn/isPercent.d.ts +0 -2
  297. package/dist/fn/isPercent.js +0 -11
  298. package/dist/fn/isPrimitive.d.ts +0 -2
  299. package/dist/fn/isPrimitive.js +0 -11
  300. package/dist/fn/isPromise.d.ts +0 -2
  301. package/dist/fn/isPromise.js +0 -11
  302. package/dist/fn/isPropSize.d.ts +0 -2
  303. package/dist/fn/isPropSize.js +0 -12
  304. package/dist/fn/isSQLDate.d.ts +0 -2
  305. package/dist/fn/isSQLDate.js +0 -12
  306. package/dist/fn/isSame.d.ts +0 -2
  307. package/dist/fn/isSame.js +0 -33
  308. package/dist/fn/isString.d.ts +0 -2
  309. package/dist/fn/isString.js +0 -11
  310. package/dist/fn/isSymbol.d.ts +0 -2
  311. package/dist/fn/isSymbol.js +0 -11
  312. package/dist/fn/isTabletDevice.d.ts +0 -2
  313. package/dist/fn/isTabletDevice.js +0 -5
  314. package/dist/fn/isURL.d.ts +0 -2
  315. package/dist/fn/isURL.js +0 -11
  316. package/dist/fn/isValidDimension.d.ts +0 -2
  317. package/dist/fn/isValidDimension.js +0 -13
  318. package/dist/fn/isValidName.d.ts +0 -2
  319. package/dist/fn/isValidName.js +0 -13
  320. package/dist/fn/isValue.d.ts +0 -2
  321. package/dist/fn/isValue.js +0 -12
  322. package/dist/fn/isVue.d.ts +0 -2
  323. package/dist/fn/isVue.js +0 -26
  324. package/dist/fn/iterate.d.ts +0 -2
  325. package/dist/fn/iterate.js +0 -16
  326. package/dist/fn/lightenDarkenHex.d.ts +0 -2
  327. package/dist/fn/lightenDarkenHex.js +0 -27
  328. package/dist/fn/link.d.ts +0 -2
  329. package/dist/fn/link.js +0 -105
  330. package/dist/fn/log.d.ts +0 -2
  331. package/dist/fn/log.js +0 -33
  332. package/dist/fn/makeReactive.d.ts +0 -2
  333. package/dist/fn/makeReactive.js +0 -185
  334. package/dist/fn/map.d.ts +0 -2
  335. package/dist/fn/map.js +0 -11
  336. package/dist/fn/md5.d.ts +0 -2
  337. package/dist/fn/md5.js +0 -121
  338. package/dist/fn/money.d.ts +0 -2
  339. package/dist/fn/money.js +0 -101
  340. package/dist/fn/move.d.ts +0 -2
  341. package/dist/fn/move.js +0 -11
  342. package/dist/fn/multiorder.d.ts +0 -2
  343. package/dist/fn/multiorder.js +0 -22
  344. package/dist/fn/nl2br.d.ts +0 -2
  345. package/dist/fn/nl2br.js +0 -5
  346. package/dist/fn/numProperties.d.ts +0 -2
  347. package/dist/fn/numProperties.js +0 -7
  348. package/dist/fn/objectToFormData.d.ts +0 -2
  349. package/dist/fn/objectToFormData.js +0 -35
  350. package/dist/fn/order.d.ts +0 -2
  351. package/dist/fn/order.js +0 -10
  352. package/dist/fn/outerHeight.d.ts +0 -2
  353. package/dist/fn/outerHeight.js +0 -10
  354. package/dist/fn/outerWidth.d.ts +0 -2
  355. package/dist/fn/outerWidth.js +0 -8
  356. package/dist/fn/percent.d.ts +0 -2
  357. package/dist/fn/percent.js +0 -4
  358. package/dist/fn/pickValue.d.ts +0 -2
  359. package/dist/fn/pickValue.js +0 -6
  360. package/dist/fn/post.d.ts +0 -2
  361. package/dist/fn/post.js +0 -12
  362. package/dist/fn/postOut.d.ts +0 -2
  363. package/dist/fn/postOut.js +0 -30
  364. package/dist/fn/printf.d.ts +0 -2
  365. package/dist/fn/printf.js +0 -7
  366. package/dist/fn/quotes2html.d.ts +0 -2
  367. package/dist/fn/quotes2html.js +0 -11
  368. package/dist/fn/randomInt.d.ts +0 -2
  369. package/dist/fn/randomInt.js +0 -4
  370. package/dist/fn/randomString.d.ts +0 -2
  371. package/dist/fn/randomString.js +0 -46
  372. package/dist/fn/removeAccents.d.ts +0 -2
  373. package/dist/fn/removeAccents.js +0 -15
  374. package/dist/fn/removeEmpty.d.ts +0 -2
  375. package/dist/fn/removeEmpty.js +0 -31
  376. package/dist/fn/removeExtraSpaces.d.ts +0 -2
  377. package/dist/fn/removeExtraSpaces.js +0 -4
  378. package/dist/fn/removeHtmlComments.d.ts +0 -2
  379. package/dist/fn/removeHtmlComments.js +0 -8
  380. package/dist/fn/removePrivateProp.d.ts +0 -2
  381. package/dist/fn/removePrivateProp.js +0 -19
  382. package/dist/fn/removeTrailingChars.d.ts +0 -2
  383. package/dist/fn/removeTrailingChars.js +0 -16
  384. package/dist/fn/repeat.d.ts +0 -2
  385. package/dist/fn/repeat.js +0 -4
  386. package/dist/fn/replaceAll.d.ts +0 -2
  387. package/dist/fn/replaceAll.js +0 -6
  388. package/dist/fn/replaceSelection.d.ts +0 -2
  389. package/dist/fn/replaceSelection.js +0 -42
  390. package/dist/fn/resize.d.ts +0 -2
  391. package/dist/fn/resize.js +0 -39
  392. package/dist/fn/rgb2hex.d.ts +0 -2
  393. package/dist/fn/rgb2hex.js +0 -10
  394. package/dist/fn/riterate.d.ts +0 -2
  395. package/dist/fn/riterate.js +0 -5
  396. package/dist/fn/roundDecimal.d.ts +0 -2
  397. package/dist/fn/roundDecimal.js +0 -4
  398. package/dist/fn/sanitize.d.ts +0 -2
  399. package/dist/fn/sanitize.js +0 -19
  400. package/dist/fn/search.d.ts +0 -3
  401. package/dist/fn/search.js +0 -79
  402. package/dist/fn/selectElementText.d.ts +0 -2
  403. package/dist/fn/selectElementText.js +0 -23
  404. package/dist/fn/selector.d.ts +0 -2
  405. package/dist/fn/selector.js +0 -4
  406. package/dist/fn/setCookie.d.ts +0 -2
  407. package/dist/fn/setCookie.js +0 -11
  408. package/dist/fn/setCssVar.d.ts +0 -2
  409. package/dist/fn/setCssVar.js +0 -8
  410. package/dist/fn/setNavigationVars.d.ts +0 -2
  411. package/dist/fn/setNavigationVars.js +0 -57
  412. package/dist/fn/setProp.d.ts +0 -2
  413. package/dist/fn/setProp.js +0 -8
  414. package/dist/fn/setProperty.d.ts +0 -2
  415. package/dist/fn/setProperty.js +0 -22
  416. package/dist/fn/shorten.d.ts +0 -2
  417. package/dist/fn/shorten.js +0 -17
  418. package/dist/fn/shortenObj.d.ts +0 -2
  419. package/dist/fn/shortenObj.js +0 -17
  420. package/dist/fn/shuffle.d.ts +0 -2
  421. package/dist/fn/shuffle.js +0 -13
  422. package/dist/fn/simpleHash.d.ts +0 -2
  423. package/dist/fn/simpleHash.js +0 -8
  424. package/dist/fn/simpleHash1.d.ts +0 -2
  425. package/dist/fn/simpleHash1.js +0 -10
  426. package/dist/fn/simpleHash2.d.ts +0 -2
  427. package/dist/fn/simpleHash2.js +0 -10
  428. package/dist/fn/stat.d.ts +0 -2
  429. package/dist/fn/stat.js +0 -49
  430. package/dist/fn/string2ArrayBuffer.d.ts +0 -2
  431. package/dist/fn/string2ArrayBuffer.js +0 -9
  432. package/dist/fn/submit.d.ts +0 -2
  433. package/dist/fn/submit.js +0 -33
  434. package/dist/fn/substr.d.ts +0 -2
  435. package/dist/fn/substr.js +0 -17
  436. package/dist/fn/sum.d.ts +0 -2
  437. package/dist/fn/sum.js +0 -13
  438. package/dist/fn/timestamp.d.ts +0 -2
  439. package/dist/fn/timestamp.js +0 -5
  440. package/dist/fn/toCSV.d.ts +0 -2
  441. package/dist/fn/toCSV.js +0 -40
  442. package/dist/fn/toggleFullScreen.d.ts +0 -2
  443. package/dist/fn/toggleFullScreen.js +0 -39
  444. package/dist/fn/translate.d.ts +0 -2
  445. package/dist/fn/translate.js +0 -8
  446. package/dist/fn/treatAjaxArguments.d.ts +0 -2
  447. package/dist/fn/treatAjaxArguments.js +0 -76
  448. package/dist/fn/trim.d.ts +0 -2
  449. package/dist/fn/trim.js +0 -20
  450. package/dist/fn/uniqString.d.ts +0 -2
  451. package/dist/fn/uniqString.js +0 -33
  452. package/dist/fn/unique.d.ts +0 -2
  453. package/dist/fn/unique.js +0 -6
  454. package/dist/fn/upload.d.ts +0 -2
  455. package/dist/fn/upload.js +0 -36
  456. package/dist/fn/warning.d.ts +0 -2
  457. package/dist/fn/warning.js +0 -12
@@ -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 };
@@ -1,17 +0,0 @@
1
- import { isString } from './isString';
2
- import { substr } from './substr';
3
- const shorten = function (st, len, adj) {
4
- if (typeof st.toLowerCase() === 'string') {
5
- if (!len) {
6
- len = bbn.vars.shortenLen;
7
- }
8
- if (adj === undefined || !isString(adj)) {
9
- adj = '...';
10
- }
11
- if (st.length > len) {
12
- st = substr(st, 0, len) + adj;
13
- }
14
- }
15
- return st;
16
- };
17
- export { shorten };
@@ -1,2 +0,0 @@
1
- declare const shortenObj: (obj: any, max?: number) => object;
2
- export { shortenObj };
@@ -1,17 +0,0 @@
1
- import { clone } from './clone';
2
- import { each } from './each';
3
- import { isString } from './isString';
4
- import { shorten } from './shorten';
5
- const shortenObj = function (obj, max = 100) {
6
- let o = clone(obj);
7
- each(o, (a, n) => {
8
- if (isString(a) && a.length > max) {
9
- o[n] = shorten(a, max);
10
- }
11
- else if (a && typeof a === 'object') {
12
- o[n] = shortenObj(a);
13
- }
14
- });
15
- return o;
16
- };
17
- export { shortenObj };
@@ -1,2 +0,0 @@
1
- declare const shuffle: (array: any[]) => any[];
2
- export { shuffle };
@@ -1,13 +0,0 @@
1
- const shuffle = function (array) {
2
- let currentIndex = array.length, randomIndex;
3
- // While there remain elements to shuffle.
4
- while (currentIndex != 0) {
5
- // Pick a remaining element.
6
- randomIndex = Math.floor(Math.random() * currentIndex);
7
- currentIndex--;
8
- // And swap it with the current element.
9
- [array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]];
10
- }
11
- return array;
12
- };
13
- export { shuffle };
@@ -1,2 +0,0 @@
1
- declare const simpleHash: (str: any) => string;
2
- export { simpleHash };
@@ -1,8 +0,0 @@
1
- import { simpleHash1 } from './simpleHash1';
2
- import { simpleHash2 } from './simpleHash2';
3
- const simpleHash = function (str) {
4
- const part1 = simpleHash1(str).toString(16).padStart(8, '0');
5
- const part2 = simpleHash2(str).toString(16).padStart(8, '0');
6
- return part1 + part2;
7
- };
8
- export { simpleHash };
@@ -1,2 +0,0 @@
1
- declare const simpleHash1: (str: string) => number;
2
- export { simpleHash1 };
@@ -1,10 +0,0 @@
1
- const simpleHash1 = function (str) {
2
- let hash = 0;
3
- for (let i = 0; i < str.length; i++) {
4
- const char = str.charCodeAt(i);
5
- hash = (hash << 5) - hash + char;
6
- hash |= 0; // Convert to 32-bit integer
7
- }
8
- return hash;
9
- };
10
- export { simpleHash1 };
@@ -1,2 +0,0 @@
1
- declare const simpleHash2: (str: string) => number;
2
- export { simpleHash2 };
@@ -1,10 +0,0 @@
1
- const simpleHash2 = function (str) {
2
- let hash = 0;
3
- for (let i = 0; i < str.length; i++) {
4
- const char = str.charCodeAt(i);
5
- hash = char + (hash << 6) + (hash << 16) - hash;
6
- hash |= 0; // Convert to 32-bit integer
7
- }
8
- return hash;
9
- };
10
- export { simpleHash2 };
package/dist/fn/stat.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const stat: (returnStat: any) => void;
2
- export { stat };
package/dist/fn/stat.js DELETED
@@ -1,49 +0,0 @@
1
- const stat = function (returnStat) {
2
- return;
3
- /*
4
- if (bbn.env.logging) {
5
- var logs = bbn.vars.loggers;
6
- for (var i = 0; i < arguments.length; i++) {
7
- var a = arguments[i],
8
- type = typeof a;
9
- if (type === 'boolean' || type === 'undefined') {
10
- break;
11
- } else {
12
- if (type === 'object') {
13
- a = getPath(a);
14
- } else {
15
- a = a.toString();
16
- }
17
- if (!logs[a]) {
18
- logs[a] = {
19
- _num: 0,
20
- };
21
- }
22
- logs[a]._num++;
23
- logs = logs[a];
24
- }
25
- }
26
- if (arguments[arguments.length - 1] === true) {
27
- var treat = function (obj) {
28
- var v = {};
29
- for (var n in obj) {
30
- if (n.indexOf('_') !== 0) {
31
- v[n + '(' + obj[n]._num + ')'] = treat(obj[n]);
32
- }
33
- }
34
- return v;
35
- };
36
- return treat(logs);
37
- }
38
- if (arguments[arguments.length - 1] === false) {
39
- for (var n in logs) {
40
- delete logs[n];
41
- }
42
- logs._num = 0;
43
- return;
44
- }
45
- return returnStat;
46
- }
47
- */
48
- };
49
- export { stat };
@@ -1,2 +0,0 @@
1
- declare const string2ArrayBuffer: (str: string) => ArrayBuffer;
2
- export { string2ArrayBuffer };
@@ -1,9 +0,0 @@
1
- const string2ArrayBuffer = function (str) {
2
- var buf = new ArrayBuffer(str.length * 2); // 2 bytes for each char
3
- var bufView = new Uint16Array(buf);
4
- for (var i = 0, strLen = str.length; i < strLen; i++) {
5
- bufView[i] = str.charCodeAt(i);
6
- }
7
- return buf;
8
- };
9
- export { string2ArrayBuffer };
@@ -1,2 +0,0 @@
1
- declare const submit: (form: HTMLFormElement, e?: Event, fn?: Function) => void;
2
- export { submit };