@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
@@ -1,18 +0,0 @@
1
- import { isString } from './isString';
2
- import { substr } from './substr';
3
- const dirName = function (path) {
4
- if (isString(path) && path) {
5
- while (substr(path, path.length - 1) === '/') {
6
- path = substr(path, 0, path.length - 1);
7
- }
8
- let pos = path.lastIndexOf('/');
9
- if (pos > 0) {
10
- return substr(path, 0, pos);
11
- }
12
- if (pos === 0) {
13
- return '/';
14
- }
15
- }
16
- return '';
17
- };
18
- export { dirName };
@@ -1,2 +0,0 @@
1
- declare const download: (url: string, filename?: string | object, params?: object) => any;
2
- export { download };
@@ -1,36 +0,0 @@
1
- import { ajax } from './ajax';
2
- import { substr } from './substr';
3
- import { baseName } from './baseName';
4
- import { isBlob } from './isBlob';
5
- import { fileExt } from './fileExt';
6
- import { downloadContent } from './downloadContent';
7
- import { defaultAjaxErrorFunction } from './defaultAjaxErrorFunction';
8
- const download = function (url, filename, params) {
9
- // We can intervert the arguments
10
- if (filename && (typeof (filename) === 'object')) {
11
- params = filename;
12
- filename = null;
13
- }
14
- return ajax(url, 'blob', params || { _bbn_download: 1 }, (d, headers) => {
15
- if (!filename) {
16
- let cd = 'attachment; filename=';
17
- if (headers && headers['content-disposition'] && headers['content-disposition'].indexOf(cd) === 0) {
18
- filename = substr(headers['content-disposition'], cd.length + 1, headers['content-disposition'].length - cd.length - 2);
19
- }
20
- else {
21
- filename = baseName(url);
22
- }
23
- }
24
- if (isBlob(d)) {
25
- let extension = fileExt(filename);
26
- let htmlExtensions = ['php', 'html'];
27
- if ((typeof filename === 'string') && ((('type' in d) && (d.type !== 'text/html')) || htmlExtensions.includes(extension))) {
28
- downloadContent(filename, d);
29
- return;
30
- }
31
- }
32
- }, e => {
33
- defaultAjaxErrorFunction(e);
34
- });
35
- };
36
- export { download };
@@ -1,2 +0,0 @@
1
- declare const downloadContent: (filename: string, content: any, type?: string) => void;
2
- export { downloadContent };
@@ -1,48 +0,0 @@
1
- import { isCanvas } from './isCanvas';
2
- import { isObject } from './isObject';
3
- import { isString } from './isString';
4
- import { log } from './log';
5
- const downloadContent = function (filename, content, type) {
6
- if (isCanvas(content)) {
7
- content.toBlob((blob) => {
8
- // blob ready, download it
9
- let a = document.createElement('a');
10
- a.download = filename;
11
- a.href = window.URL.createObjectURL(blob);
12
- a.className = 'bbn-no';
13
- a.click();
14
- // delete the internal blob reference, to let the browser clear memory from it
15
- window.URL.revokeObjectURL(a.href);
16
- }, type || 'image/png');
17
- return;
18
- }
19
- if (!type) {
20
- type = isObject(content) && content.type ? content.type : 'octet/stream';
21
- }
22
- else if (type.indexOf('/') === -1) {
23
- type = 'text/' + type;
24
- }
25
- let a = window.document.createElement('a');
26
- a.className = 'bbn-no';
27
- let src = null;
28
- if (isString(content)) {
29
- src = new Blob([content], { type: type });
30
- }
31
- else {
32
- try {
33
- src = content;
34
- }
35
- catch (e) {
36
- log(e);
37
- }
38
- }
39
- a.href = window.URL.createObjectURL(src);
40
- a.download = filename;
41
- // Append anchor to body.
42
- document.body.appendChild(a);
43
- a.click();
44
- window.URL.revokeObjectURL(a.href);
45
- // Remove anchor from body
46
- document.body.removeChild(a);
47
- };
48
- export { downloadContent };
package/dist/fn/each.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const each: (arr: any, fn: any) => any;
2
- export { each };
package/dist/fn/each.js DELETED
@@ -1,23 +0,0 @@
1
- import { isNumber } from './isNumber';
2
- import { isIterable } from './isIterable';
3
- import { iterate } from './iterate';
4
- const each = function (arr, fn) {
5
- if (isNumber(arr) && arr > 0) {
6
- for (let i = 0; i < arr; i++) {
7
- if (fn(i, i) === false) {
8
- return;
9
- }
10
- }
11
- return;
12
- }
13
- if (isIterable(arr)) {
14
- for (let i = 0; i < arr.length; i++) {
15
- if (fn(arr[i], i) === false) {
16
- return;
17
- }
18
- }
19
- return arr;
20
- }
21
- return iterate(arr, fn);
22
- };
23
- export { each };
@@ -1,2 +0,0 @@
1
- declare const eraseCookie: (name: any) => void;
2
- export { eraseCookie };
@@ -1,4 +0,0 @@
1
- const eraseCookie = function (name) {
2
- document.cookie = name + '=; Max-Age=-99999999;';
3
- };
4
- export { eraseCookie };
@@ -1,2 +0,0 @@
1
- declare const error: (errorMsg: any) => never;
2
- export { error };
package/dist/fn/error.js DELETED
@@ -1,17 +0,0 @@
1
- import { log } from './log';
2
- const error = function (errorMsg) {
3
- if (arguments.length > 1) {
4
- const args = [];
5
- for (let i = 1; i < arguments.length; i++) {
6
- args.push(arguments[i]);
7
- }
8
- args.unshift({
9
- _bbn_console_mode: 'error',
10
- _bbn_console_level: 1,
11
- _bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
12
- });
13
- log.apply(this, args);
14
- }
15
- throw new Error(errorMsg);
16
- };
17
- export { error };
@@ -1,2 +0,0 @@
1
- declare const escapeDquotes: (str: any) => any;
2
- export { escapeDquotes };
@@ -1,8 +0,0 @@
1
- import { isString } from './isString';
2
- const escapeDquotes = function (str) {
3
- if (!isString(str)) {
4
- return str;
5
- }
6
- return str.replace(/"/g, '\\"');
7
- };
8
- export { escapeDquotes };
@@ -1,2 +0,0 @@
1
- declare const escapeRegExp: (str: any) => any;
2
- export { escapeRegExp };
@@ -1,4 +0,0 @@
1
- const escapeRegExp = function (str) {
2
- return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
3
- };
4
- export { escapeRegExp };
@@ -1,2 +0,0 @@
1
- declare const escapeSquotes: (str: any) => any;
2
- export { escapeSquotes };
@@ -1,8 +0,0 @@
1
- import { isString } from './isString';
2
- const escapeSquotes = function (str) {
3
- if (!isString(str)) {
4
- return str;
5
- }
6
- return str.replace(/'/g, "\\'");
7
- };
8
- export { escapeSquotes };
@@ -1,2 +0,0 @@
1
- declare const escapeTicks: (str: any) => any;
2
- export { escapeTicks };
@@ -1,8 +0,0 @@
1
- import { isString } from './isString';
2
- const escapeTicks = function (str) {
3
- if (!isString(str)) {
4
- return str;
5
- }
6
- return str.replace(/`/g, '\\`');
7
- };
8
- export { escapeTicks };
@@ -1,2 +0,0 @@
1
- declare const escapeUrl: (url: any, params: any) => string;
2
- export { escapeUrl };
@@ -1,40 +0,0 @@
1
- import { each } from './each';
2
- import { dirName } from './dirName';
3
- import { baseName } from './baseName';
4
- import { isString } from './isString';
5
- const escapeUrl = function (url, params) {
6
- let st = '';
7
- if (url.match('^(http|https)://')) {
8
- st += 'http';
9
- url = url.substring(4);
10
- if (url.substr(0, 1) === 's') {
11
- st += 's';
12
- url = url.substring(1);
13
- }
14
- st += '://';
15
- url = url.substring(3);
16
- }
17
- each(dirName(url).split('/'), (a) => {
18
- st += encodeURIComponent(a) + '/';
19
- });
20
- let base = baseName(url);
21
- let sep = '?';
22
- let existingParams = '';
23
- if (base.indexOf(sep)) {
24
- let tmp = base.split('?');
25
- sep = '&';
26
- existingParams = '?' + tmp[1];
27
- base = tmp[0];
28
- }
29
- if (params && isString(params)) {
30
- if (params.match('^(\\&|\\?)')) {
31
- params = params.substring(1);
32
- }
33
- params = sep + params;
34
- }
35
- else {
36
- params = '';
37
- }
38
- return st + encodeURIComponent(base) + existingParams + params;
39
- };
40
- export { escapeUrl };
@@ -1,2 +0,0 @@
1
- declare const extend: (...originalArgs: (boolean | object)[]) => any;
2
- export { extend };
package/dist/fn/extend.js DELETED
@@ -1,71 +0,0 @@
1
- import { iterate } from './iterate';
2
- import { isArray } from './isArray';
3
- import { each } from './each';
4
- import { isObject } from './isObject';
5
- const extend = function (...originalArgs) {
6
- let deep = false;
7
- let args = [];
8
- for (let i = 0; i < originalArgs.length; i++) {
9
- if (originalArgs[i] === true) {
10
- deep = true;
11
- }
12
- else if (!originalArgs[i]) {
13
- continue;
14
- }
15
- else if (typeof originalArgs[i] !== 'object') {
16
- throw new Error(bbn._('Error in extend: all arguments should be object, you have given ') + typeof originalArgs[i]);
17
- }
18
- else {
19
- args.push(originalArgs[i]);
20
- }
21
- }
22
- if (!args.length) {
23
- throw new Error('No argument given');
24
- }
25
- let out = args[0];
26
- for (let i = 1; i < args.length; i++) {
27
- iterate(args[i], (a, key) => {
28
- if (deep) {
29
- if (isArray(a)) {
30
- out[key] = isArray(out[key]) ? out[key] : [];
31
- each(a, (b, i) => {
32
- if (b && typeof b === 'object') {
33
- let tmp = out[key][i];
34
- if (isArray(b)) {
35
- if (!isArray(tmp)) {
36
- tmp = [];
37
- }
38
- }
39
- else if (!isObject(tmp)) {
40
- tmp = {};
41
- }
42
- out[key][i] = extend(true, tmp, b);
43
- }
44
- else {
45
- out[key][i] = b;
46
- }
47
- });
48
- }
49
- else if (isObject(a)) {
50
- out[key] = extend(true, out[key] && typeof out[key] === 'object' ? out[key] : Object.create(Object.getPrototypeOf(a)), a);
51
- }
52
- else {
53
- out[key] = a;
54
- }
55
- }
56
- else if (out[key] !== a) {
57
- out[key] = a;
58
- }
59
- });
60
- if (args[i].__bbnNoData) {
61
- Object.defineProperty(out, '__bbnNoData', {
62
- value: true,
63
- enumerable: false,
64
- configurable: false,
65
- writable: false,
66
- });
67
- }
68
- }
69
- return out;
70
- };
71
- export { extend };
@@ -1,2 +0,0 @@
1
- declare const extendOut: (...args: object[]) => any;
2
- export { extendOut };
@@ -1,24 +0,0 @@
1
- import { isObject } from './isObject';
2
- const extendOut = function (...args) {
3
- let r = null;
4
- for (let a of args) {
5
- if (!isObject(a)) {
6
- throw new Error('Each argument for extendOut must be an object, ' + typeof a + ' given');
7
- }
8
- if (r === null) {
9
- r = a;
10
- }
11
- else {
12
- for (let n in a) {
13
- if (isObject(r[n], a[n])) {
14
- extendOut(r[n], a[n]);
15
- }
16
- else if (r[n] === undefined) {
17
- r[n] = a[n];
18
- }
19
- }
20
- }
21
- }
22
- return r;
23
- };
24
- export { extendOut };
@@ -1,2 +0,0 @@
1
- declare const fdate: (d: Date | number | string, wrong_result?: boolean | string) => any;
2
- export { fdate };
package/dist/fn/fdate.js DELETED
@@ -1,19 +0,0 @@
1
- import { fdatetime } from './fdatetime';
2
- import { date } from './date';
3
- import { isDate } from './isDate';
4
- import { isString } from './isString';
5
- const fdate = function (d, wrong_result) {
6
- // Retro compatibility
7
- if (wrong_result === true) {
8
- return fdatetime(d);
9
- }
10
- let r = date(d);
11
- if (!isDate(r)) {
12
- return wrong_result && isString(wrong_result) ? wrong_result : '';
13
- }
14
- if (undefined !== dayjs) {
15
- return dayjs(r).format('L');
16
- }
17
- return r.toLocaleDateString();
18
- };
19
- export { fdate };
@@ -1,2 +0,0 @@
1
- declare const fdatetime: (d?: Date | number | string, wrong_result?: boolean | string) => any;
2
- export { fdatetime };
@@ -1,23 +0,0 @@
1
- import { date } from './date';
2
- import { isDate } from './isDate';
3
- import { isString } from './isString';
4
- const fdatetime = function (d, wrong_result) {
5
- let r = date(d);
6
- if (!isDate(r)) {
7
- return wrong_result && isString(wrong_result) ? wrong_result : '';
8
- }
9
- if (undefined !== dayjs) {
10
- //return dayjs(r).format('lll');
11
- return dayjs(r).calendar(null, {
12
- sameDay: '[' + bbn._('Today') + '] HH:mm',
13
- nextDay: '[' + bbn._('Tomorrow') + '] HH:mm',
14
- nextWeek: 'ddd D HH:mm',
15
- lastDay: '[' + bbn._('Yesterday') + '] HH:mm',
16
- lastWeek: 'ddd D HH:mm',
17
- sameElse: 'DD/MM/YYYY HH:mm',
18
- });
19
- //return dayjs(r).format("DD/MM/YYYY HH:mm")
20
- }
21
- return r.toLocaleDateString();
22
- };
23
- export { fdatetime };
@@ -1,2 +0,0 @@
1
- declare const fieldValue: (field: any) => any;
2
- export { fieldValue };
@@ -1,24 +0,0 @@
1
- const fieldValue = function (field) {
2
- let v;
3
- if (field.type === 'checkbox') {
4
- if (field.checked) {
5
- v = field.value;
6
- if (!v) {
7
- v = 1;
8
- }
9
- }
10
- else {
11
- v = 0;
12
- }
13
- }
14
- else if (field.type === 'radio') {
15
- if (field.checked) {
16
- v = field.value;
17
- }
18
- }
19
- else {
20
- v = field.value;
21
- }
22
- return v;
23
- };
24
- export { fieldValue };
@@ -1,2 +0,0 @@
1
- declare const fileExt: (filename: any) => any;
2
- export { fileExt };
@@ -1,11 +0,0 @@
1
- import { isString } from './isString';
2
- const fileExt = function (filename) {
3
- if (filename && isString(filename)) {
4
- let bits = filename.split('.');
5
- if (bits[0] && bits.length > 1) {
6
- return bits[bits.length - 1].toLowerCase();
7
- }
8
- }
9
- return '';
10
- };
11
- export { fileExt };
@@ -1,3 +0,0 @@
1
- import { Filter } from './filterToConditions';
2
- declare const filter: (arr: any[], prop: string | object | Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
3
- export { filter };
package/dist/fn/filter.js DELETED
@@ -1,47 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { each } from './each';
3
- import { filterToConditions } from './filterToConditions';
4
- import { compareConditions } from './compareConditions';
5
- const filter = function (arr, prop, val = null, operator = '=') {
6
- if (!isArray(arr)) {
7
- bbn.fn.log("NOT ARRAY", arr);
8
- throw new Error('Error in filter: The first argument must be an array');
9
- }
10
- let cfg = {};
11
- const res = [];
12
- const isFn = typeof (prop) === 'function';
13
- if (!prop || !arr.length) {
14
- return arr;
15
- }
16
- if (arr.length) {
17
- if (typeof prop === 'object') {
18
- operator = val;
19
- cfg = prop;
20
- }
21
- else if (typeof prop === 'string') {
22
- cfg[prop] = val;
23
- }
24
- else if (!isFn) {
25
- throw new Error('Search function error: The prop argument should be a string or an object');
26
- }
27
- if (typeof (prop) === 'function') {
28
- each(arr, (a, i) => {
29
- if (prop(a, i)) {
30
- res.push(a);
31
- }
32
- });
33
- }
34
- else {
35
- cfg = filterToConditions(cfg, operator);
36
- if (cfg.conditions && cfg.logic) {
37
- each(arr, (a) => {
38
- if (compareConditions(a, cfg)) {
39
- res.push(a);
40
- }
41
- });
42
- }
43
- }
44
- return res;
45
- }
46
- };
47
- export { filter };
@@ -1,11 +0,0 @@
1
- interface Condition {
2
- field: string;
3
- operator?: string;
4
- value?: any;
5
- }
6
- interface Filter {
7
- conditions?: Condition[];
8
- logic?: string;
9
- }
10
- declare const filterToConditions: (filter: any, operator?: string) => Filter;
11
- export { Filter, filterToConditions };
@@ -1,31 +0,0 @@
1
- import { isObject } from './isObject';
2
- import { isArray } from './isArray';
3
- import { iterate } from './iterate';
4
- const filterToConditions = function (filter, operator = '=') {
5
- if (!isObject(filter)) {
6
- throw new Error('Error in filterToCondition: filter must be an object');
7
- }
8
- if (!filter.conditions || !isArray(filter.conditions)) {
9
- let tmp = [];
10
- iterate(filter, (a, n) => {
11
- if (isObject(a) && typeof a.conditions === 'object') {
12
- tmp.push(filterToConditions(a));
13
- }
14
- else {
15
- tmp.push({
16
- field: n,
17
- operator: operator,
18
- value: a,
19
- });
20
- }
21
- });
22
- filter = {
23
- conditions: tmp,
24
- };
25
- }
26
- if (!filter.logic) {
27
- filter.logic = 'AND';
28
- }
29
- return filter;
30
- };
31
- export { filterToConditions };
@@ -1,2 +0,0 @@
1
- declare const findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
2
- export { findAll };
@@ -1,18 +0,0 @@
1
- import { search } from './search';
2
- import { each } from './each';
3
- import { isArray } from './isArray';
4
- const findAll = function (arr, filter, deepProperty, res = []) {
5
- let idx;
6
- let start = 0;
7
- while ((idx = search(arr, filter, start)) > -1) {
8
- res.push(arr[idx]);
9
- start = idx + 1;
10
- }
11
- each(arr, (it) => {
12
- if (isArray(it[deepProperty])) {
13
- findAll(it[deepProperty], filter, deepProperty, res);
14
- }
15
- });
16
- return res;
17
- };
18
- export { findAll };
package/dist/fn/fori.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const fori: (arr: any[], fn: (a: any, i: number) => any, max?: number, min?: number) => void;
2
- export { fori };
package/dist/fn/fori.js DELETED
@@ -1,19 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { isNumber } from './isNumber';
3
- const fori = function (arr, fn, max = arr.length - 1, min = 0) {
4
- if (isArray(arr)) {
5
- let realMax = arr.length - 1;
6
- if (!isNumber(max) || !((0 < max) && (max <= realMax))) {
7
- max = realMax;
8
- }
9
- if (!isNumber(min) || !((0 <= min) && (min < realMax)) || (min > max)) {
10
- min = 0;
11
- }
12
- for (let i = min; i <= max; i++) {
13
- if (fn(arr[i], i) === false) {
14
- return;
15
- }
16
- }
17
- }
18
- };
19
- export { fori };
@@ -1,2 +0,0 @@
1
- declare const forir: (arr: any[], fn: (a: any, b: number) => any, max?: number, min?: number) => void;
2
- export { forir };
package/dist/fn/forir.js DELETED
@@ -1,19 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { isNumber } from './isNumber';
3
- const forir = function (arr, fn, max = arr.length - 1, min = 0) {
4
- if (isArray(arr)) {
5
- let realMax = arr.length - 1;
6
- if (!isNumber(max) || !((0 < max) && (max <= realMax))) {
7
- max = realMax;
8
- }
9
- if (!isNumber(min) || !((0 <= min) && (min < realMax)) || (min > max)) {
10
- min = 0;
11
- }
12
- for (let i = max; i >= min; i--) {
13
- if (fn(arr[i], i) === false) {
14
- return;
15
- }
16
- }
17
- }
18
- };
19
- export { forir };
@@ -1,2 +0,0 @@
1
- declare const format: (str: any) => any;
2
- export { format };