@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,20 +0,0 @@
1
- const animateCss = function (ele, animationName, callback) {
2
- let animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
3
- /*$(ele).addClass('animated ' + animationName).one(animationEnd, function(){
4
- if ( typeof callback == 'function' ){ // make sure the callback is a function
5
- callback.call(this); // brings the scope to the callback
6
- }
7
- $(this).removeClass('animated ' + animationName);
8
- })*/
9
- ele.classList.add('animated');
10
- ele.classList.add(animationName);
11
- ele.addEventListener(animationEnd, (e) => {
12
- e.target.removeEventListener(e.type, arguments.callee);
13
- if (typeof callback == 'function') {
14
- // make sure the callback is a function
15
- callback.call(this); // brings the scope to the callback
16
- }
17
- e.target.classList.remove(animationName);
18
- });
19
- };
20
- export { animateCss };
@@ -1,2 +0,0 @@
1
- declare const arrayBuffer2String: (buf: any) => any;
2
- export { arrayBuffer2String };
@@ -1,4 +0,0 @@
1
- const arrayBuffer2String = function (buf) {
2
- return String.fromCharCode.apply(null, new Uint16Array(buf));
3
- };
4
- export { arrayBuffer2String };
@@ -1,2 +0,0 @@
1
- declare const arrayFromProp: (arr: any, prop: any) => any[];
2
- export { arrayFromProp };
@@ -1,10 +0,0 @@
1
- import { each } from './each';
2
- import { getProperty } from './getProperty';
3
- const arrayFromProp = function (arr, prop) {
4
- let r = [];
5
- each(arr, (a, i) => {
6
- r.push(getProperty(a, prop));
7
- });
8
- return r;
9
- };
10
- export { arrayFromProp };
@@ -1,2 +0,0 @@
1
- declare const autoExtend: (namespace: any, obj: any) => void;
2
- export { autoExtend };
@@ -1,13 +0,0 @@
1
- import { extend } from './extend';
2
- const autoExtend = function (namespace, obj) {
3
- if (!bbn[namespace]) {
4
- bbn[namespace] = {};
5
- //$.extend(true, bbn[namespace], obj);
6
- extend(bbn[namespace], obj);
7
- }
8
- else {
9
- // $.extend(true, bbn[namespace], obj);
10
- extend(bbn[namespace], obj);
11
- }
12
- };
13
- export { autoExtend };
@@ -1,2 +0,0 @@
1
- declare const baseName: (path: string, suffix?: string) => string;
2
- export { baseName };
@@ -1,17 +0,0 @@
1
- import { isString } from './isString';
2
- import { substr } from './substr';
3
- const baseName = function (path, suffix) {
4
- if (path && isString(path)) {
5
- let bits = path.split('/');
6
- let res = bits.pop();
7
- if (!suffix) {
8
- return res;
9
- }
10
- let len = suffix.length;
11
- if (res && substr(res, -len) === suffix) {
12
- return substr(res, 0, res.length - len);
13
- }
14
- }
15
- return '';
16
- };
17
- export { baseName };
@@ -1,2 +0,0 @@
1
- declare const br2nl: (st: any) => string;
2
- export { br2nl };
package/dist/fn/br2nl.js DELETED
@@ -1,5 +0,0 @@
1
- import { replaceAll } from './replaceAll';
2
- const br2nl = function (st) {
3
- return replaceAll('<br />', '\n', replaceAll('<br/>', '\n', replaceAll('<br>', '\n', st)));
4
- };
5
- export { br2nl };
@@ -1,2 +0,0 @@
1
- declare const calendar: (d?: Date | number | string, wrong_result?: string) => any;
2
- export { calendar };
@@ -1,23 +0,0 @@
1
- import { fdate } from './fdate';
2
- import { date } from './date';
3
- import { isDate } from './isDate';
4
- import { isString } from './isString';
5
- dayjs.extend(window['dayjs_plugin_calendar']);
6
- const calendar = function (d, wrong_result) {
7
- if (undefined === dayjs) {
8
- return fdate(d, wrong_result);
9
- }
10
- let r = date(d);
11
- if (!isDate(r)) {
12
- return wrong_result && isString(wrong_result) ? wrong_result : '';
13
- }
14
- return dayjs(r).calendar(null, {
15
- sameDay: '[' + bbn._('Today') + ']',
16
- nextDay: '[' + bbn._('Tomorrow') + ']',
17
- nextWeek: 'ddd D',
18
- lastDay: '[' + bbn._('Yesterday') + ']',
19
- lastWeek: 'ddd D',
20
- sameElse: 'L',
21
- });
22
- };
23
- export { calendar };
@@ -1,2 +0,0 @@
1
- declare const callback: (url: string, res?: BbnAjaxResult, fn?: (a: BbnAjaxResult, b?: HTMLElement) => any, fn2?: (a: BbnAjaxResult) => any, ele?: HTMLElement | HTMLInputElement | HTMLTextAreaElement) => boolean;
2
- export { callback };
@@ -1,82 +0,0 @@
1
- import { error } from './error';
2
- import { defaultLinkFunction } from './defaultLinkFunction';
3
- import { isFunction } from './isFunction';
4
- import { log } from './log';
5
- import { defaultPostLinkFunction } from './defaultPostLinkFunction';
6
- import { defaultAlertFunction } from './defaultAlertFunction';
7
- const callback = function (url, res = null, fn = null, fn2 = null, ele = null) {
8
- let tmp = false;
9
- if (res) {
10
- tmp = true;
11
- let t = typeof res;
12
- let isObj = t.toLowerCase() === 'object';
13
- let errTitle;
14
- if (isObj && res.prescript) {
15
- /* var ok can be changed to false in prescript execution */
16
- try {
17
- eval(res.prescript);
18
- }
19
- catch (e) {
20
- error(e.message || '');
21
- }
22
- }
23
- if (isObj && res.url === undefined) {
24
- res.url = url;
25
- }
26
- /* Case where a callback is defined */
27
- if (fn) {
28
- tmp = fn(res, ele);
29
- }
30
- else {
31
- tmp = defaultLinkFunction(res, ele);
32
- }
33
- if (ele && isObj && (res.content !== undefined)) {
34
- if ('value' in ele) {
35
- ele.value = res.content;
36
- }
37
- else {
38
- ele.innerHTML = res.content;
39
- }
40
- }
41
- if (tmp && isObj && res.script) {
42
- if (typeof (res.script) === 'function') {
43
- tmp = res.script(res.data ? res.data : {}, ele || null);
44
- }
45
- else {
46
- tmp = ((data, ele) => {
47
- let r = null;
48
- try {
49
- r = eval(res.script);
50
- if (isFunction(r)) {
51
- r = r(data, ele);
52
- }
53
- }
54
- catch (e) {
55
- log(e, res);
56
- error(isFunction(e.getMessage) ? e.getMessage() : null);
57
- }
58
- return r;
59
- })(res.data ? res.data : {}, ele ? ele : false);
60
- }
61
- }
62
- /* Case where a callback is defined */
63
- if (tmp && fn2) {
64
- fn2(res);
65
- }
66
- else if (isObj && defaultPostLinkFunction) {
67
- defaultPostLinkFunction(res, ele);
68
- }
69
- if (tmp && isObj && res.postscript) {
70
- eval(res.postscript);
71
- }
72
- if (isObj && res.error) {
73
- errTitle = res.errorTitle || bbn.lng.server_response;
74
- defaultAlertFunction(res.error, errTitle);
75
- }
76
- }
77
- else {
78
- defaultAlertFunction(bbn.lng.errorText, bbn.lng.error);
79
- }
80
- return tmp;
81
- };
82
- export { callback };
@@ -1,2 +0,0 @@
1
- declare const camelToCss: (str: any) => any;
2
- export { camelToCss };
@@ -1,10 +0,0 @@
1
- const camelToCss = function (str) {
2
- return str
3
- .replace(/([A-Z])/g, function (st) {
4
- return '-' + st.toLowerCase();
5
- })
6
- .replace('/^./', function (st) {
7
- return st.toLowerCase();
8
- });
9
- };
10
- export { camelToCss };
@@ -1,2 +0,0 @@
1
- declare const camelize: (str: any) => any;
2
- export { camelize };
@@ -1,9 +0,0 @@
1
- const camelize = function (str) {
2
- return str.replace(/^([A-Z])|[\s-](\w)/g, function (match, p1, p2, offset) {
3
- if (p2) {
4
- return p2.toUpperCase();
5
- }
6
- return p1.toLowerCase();
7
- });
8
- };
9
- export { camelize };
@@ -1,2 +0,0 @@
1
- declare const canvasToImage: (canvas: any) => HTMLImageElement;
2
- export { canvasToImage };
@@ -1,6 +0,0 @@
1
- const canvasToImage = function (canvas) {
2
- let img = new Image();
3
- img.src = canvas.toDataURL('image/png');
4
- return img;
5
- };
6
- export { canvasToImage };
@@ -1,2 +0,0 @@
1
- declare const center: (ele: any) => any;
2
- export { center };
package/dist/fn/center.js DELETED
@@ -1,24 +0,0 @@
1
- const center = function (ele) {
2
- //ele = $(ele);
3
- let parent = ele.parentNode,
4
- //w = parent.width(),
5
- w = parent.clientWidth,
6
- //h = parent.height();
7
- h = parent.clientHeight;
8
- while (parent && (!w || !h)) {
9
- /*parent = parent.parent(),
10
- w = parent.width(),
11
- h = parent.height();*/
12
- parent = ele.parentNode;
13
- w = parent.clientWidth;
14
- h = parent.clientHeight;
15
- }
16
- //ele.css("position","absolute");
17
- ele.style.position = 'absolute';
18
- //ele.css("top", Math.max(0, ((h - ele.outerHeight()) / 2) + parent.scrollTop()) + "px");
19
- ele.style.top = Math.max(0, (h - ele.offsetHeight) / 2 + parent.scrollTop) + 'px';
20
- //ele.css("left", Math.max(0, ((w - ele.outerWidth()) / 2) + parent.scrollLeft()) + "px");
21
- ele.style.left = Math.max(0, (h - ele.offsetWidth) / 2 + parent.scrollLeft) + 'px';
22
- return ele;
23
- };
24
- export { center };
@@ -1,2 +0,0 @@
1
- declare const checkProps: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
2
- export { checkProps };
@@ -1,5 +0,0 @@
1
- import { checkPropsDetails } from './checkPropsDetails';
2
- const checkProps = function (obj, props, checkEmpty = false) {
3
- return checkPropsDetails(obj, props, checkEmpty).result;
4
- };
5
- export { checkProps };
@@ -1,2 +0,0 @@
1
- declare const checkPropsDetails: (obj: object, props: string | string[], checkEmpty?: boolean) => BbnResError;
2
- export { checkPropsDetails };
@@ -1,50 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { isObject } from './isObject';
3
- import { each } from './each';
4
- import { substr } from './substr';
5
- const checkPropsDetails = function (obj, props, checkEmpty = false) {
6
- let res = {
7
- error: false,
8
- result: true,
9
- };
10
- if (typeof (props) === 'string') {
11
- props = [props];
12
- }
13
- if (!isArray(props)) {
14
- res.error = bbn._('checkProps must receive a string or an array as props argument');
15
- }
16
- if (!isObject(obj)) {
17
- res.error = bbn._('checkProps must receive an object as obj argument');
18
- }
19
- if (!res.error) {
20
- let check;
21
- each(props, (varName) => {
22
- varName = varName.trim().split(':');
23
- let type = varName[1] || false;
24
- varName = varName[0];
25
- if (obj[varName] === undefined) {
26
- res.error = varName + ' ' + bbn._('is not defined');
27
- }
28
- else if (type) {
29
- check = 'is' + substr(type, 0, 1).toUpperCase() + substr(type, 1).toLowerCase();
30
- if (bbn.fn[check] === undefined) {
31
- res.error = type + ' ' + bbn._('is not a valid type');
32
- }
33
- else if (!bbn.fn[check](obj[varName])) {
34
- res.error = varName + ' ' + bbn._('is not a') + ' ' + type;
35
- }
36
- }
37
- else if (checkEmpty && !obj[varName]) {
38
- res.error = varName + ' ' + bbn._('is empty');
39
- }
40
- if (res.error) {
41
- return false;
42
- }
43
- });
44
- }
45
- if (res.error) {
46
- res.result = false;
47
- }
48
- return res;
49
- };
50
- export { checkPropsDetails };
@@ -1,2 +0,0 @@
1
- declare const checkPropsOrDie: (obj: object, props: string | string[], checkEmpty?: boolean) => boolean;
2
- export { checkPropsOrDie };
@@ -1,9 +0,0 @@
1
- import { checkPropsDetails } from './checkPropsDetails';
2
- const checkPropsOrDie = function (obj, props, checkEmpty = false) {
3
- let res = checkPropsDetails(obj, props, checkEmpty);
4
- if (res.error) {
5
- throw new Error(res.error);
6
- }
7
- return true;
8
- };
9
- export { checkPropsOrDie };
@@ -1,2 +0,0 @@
1
- declare const checkType: (value: any, type: object | string, msg?: string, ...logs: any[]) => void;
2
- export { checkType };
@@ -1,59 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { each } from './each';
3
- import { isFunction } from './isFunction';
4
- import { isString } from './isString';
5
- import { correctCase } from './correctCase';
6
- import { error } from './error';
7
- import { log } from './log';
8
- const checkType = function (value, type, msg, ...logs) {
9
- let ok = false;
10
- if (!isArray(type)) {
11
- type = [type];
12
- }
13
- const typesList = [];
14
- each(type, (t) => {
15
- if (t === String) {
16
- t = 'string';
17
- }
18
- else if (t === Number) {
19
- t = 'number';
20
- }
21
- else if (t === Array) {
22
- t = 'array';
23
- }
24
- else if (t === Boolean) {
25
- t = 'boolean';
26
- }
27
- else if (t === Object) {
28
- t = 'object';
29
- }
30
- else if (t === Function) {
31
- t = 'function';
32
- }
33
- if (isFunction(t)) {
34
- typesList.push(t.name || t.constructor?.name || t.toString());
35
- if (value instanceof t) {
36
- ok = true;
37
- return false;
38
- }
39
- }
40
- else if (!isString(t) || !isFunction(bbn.fn['is' + correctCase(t)])) {
41
- error(`The type ${t} is not recognized`);
42
- }
43
- else if (bbn.fn['is' + correctCase(t)](value)) {
44
- ok = true;
45
- return false;
46
- }
47
- else {
48
- typesList.push(t);
49
- }
50
- });
51
- if (!ok) {
52
- log(['Value given', value, 'type', typeof value, 'expected', typesList.join(' or ')]);
53
- if (logs.length) {
54
- log(logs);
55
- }
56
- throw new Error((msg ? msg + ' - ' : '') + bbn._('The value should be a %s', typesList.join(' ' + bbn._('or a') + ' ')));
57
- }
58
- };
59
- export { checkType };
@@ -1,3 +0,0 @@
1
- declare const startChrono: (name: any) => void;
2
- declare const stopChrono: (name: any) => number;
3
- export { startChrono, stopChrono };
package/dist/fn/chrono.js DELETED
@@ -1,23 +0,0 @@
1
- import { each } from './each';
2
- const _private = [];
3
- const startChrono = function (name) {
4
- let now = new Date().getTime();
5
- let h1 = 3600 * 1000;
6
- if (_private.length) {
7
- each(_private, (t, n) => {
8
- if (now - t > h1) {
9
- delete _private[n];
10
- }
11
- });
12
- now = new Date().getTime();
13
- }
14
- _private[name] = now;
15
- };
16
- const stopChrono = function (name) {
17
- if (_private[name]) {
18
- let now = new Date().getTime();
19
- let diff = now - _private[name];
20
- return diff;
21
- }
22
- };
23
- export { startChrono, stopChrono };
@@ -1,2 +0,0 @@
1
- declare const circularReplacer: () => (key: any, value: any) => any;
2
- export { circularReplacer };
@@ -1,33 +0,0 @@
1
- import { isDom } from './isDom';
2
- import { isCp } from './isCp';
3
- import { log } from './log';
4
- const circularReplacer = function () {
5
- const visited = new WeakSet();
6
- return (key, value) => {
7
- if (typeof value === 'object' && value !== null) {
8
- if (visited.has(value)) {
9
- return;
10
- }
11
- visited.add(value);
12
- if (![undefined, Object, Array, null].includes(value.constructor)) {
13
- if (isDom(value)) {
14
- if (value.bbnId) {
15
- value = '__BBN_DOM__' + value.tagName + '/' + value.bbnId + value.bbnHash;
16
- }
17
- else {
18
- value = '__BBN_DOM__' + value.tagName + '/' + value.className;
19
- }
20
- }
21
- else if (isCp(value)) {
22
- log('IS CP');
23
- value = '__BBN_CP__' + value.$options.name + '/' + value.$cid;
24
- }
25
- else {
26
- value = value.constructor.toString();
27
- }
28
- }
29
- }
30
- return value;
31
- };
32
- };
33
- export { circularReplacer };
@@ -1,2 +0,0 @@
1
- declare const clone: (obj: any) => any;
2
- export { clone };
package/dist/fn/clone.js DELETED
@@ -1,16 +0,0 @@
1
- import { isArray } from './isArray';
2
- import { isObject } from './isObject';
3
- import { extend } from './extend';
4
- const clone = function (obj) {
5
- if (isArray(obj)) {
6
- return obj.slice().map((a) => {
7
- return typeof a === 'object' ? clone(a) : a;
8
- });
9
- }
10
- if (isObject(obj)) {
11
- const o = Object.create(Object.getPrototypeOf(obj));
12
- return extend(true, o, obj);
13
- }
14
- return obj;
15
- };
16
- export { clone };
@@ -1,2 +0,0 @@
1
- declare const colorToHex: (color: any) => string | CanvasGradient | CanvasPattern;
2
- export { colorToHex };
@@ -1,6 +0,0 @@
1
- const colorToHex = function (color) {
2
- let canvas = document.createElement('canvas').getContext('2d');
3
- canvas.fillStyle = color;
4
- return canvas.fillStyle;
5
- };
6
- export { colorToHex };
@@ -1,2 +0,0 @@
1
- declare const compare: (v1: any, v2: any, operator: any) => boolean;
2
- export { compare };
@@ -1,99 +0,0 @@
1
- import { isEmpty } from './isEmpty';
2
- import { removeAccents } from './removeAccents';
3
- import { isNull } from './isNull';
4
- import { isObject } from './isObject';
5
- import { isSame } from './isSame';
6
- const compare = function (v1, v2, operator) {
7
- switch (operator) {
8
- case '===':
9
- case '=':
10
- case 'equal':
11
- case 'eq':
12
- case 'is':
13
- return v1 === v2;
14
- case '!==':
15
- case 'notequal':
16
- case 'neq':
17
- case 'isnot':
18
- return v1 !== v2;
19
- case '!=':
20
- case 'different':
21
- return v1 != v2;
22
- case 'contains':
23
- case 'contain':
24
- case 'icontains':
25
- case 'icontain':
26
- if (isEmpty(v1) || isEmpty(v2)) {
27
- return false;
28
- }
29
- return removeAccents(v1).toLowerCase().indexOf(removeAccents(v2).toLowerCase()) !== -1;
30
- case 'doesnotcontain':
31
- case 'donotcontain':
32
- if (isNull(v1) || isNull(v2)) {
33
- return true;
34
- }
35
- return removeAccents(v1.toLowerCase()).indexOf(removeAccents(v2.toLowerCase())) === -1;
36
- case 'starts':
37
- case 'start':
38
- if (isNull(v1) || isNull(v2)) {
39
- return false;
40
- }
41
- if (typeof v1 !== 'string') {
42
- v1 = v1.toString() || '';
43
- }
44
- if (typeof v2 !== 'string') {
45
- v2 = v2.toString() || '';
46
- }
47
- return v1.indexOf(v2) === 0;
48
- case 'startswith':
49
- case 'startsi':
50
- case 'starti':
51
- case 'istarts':
52
- case 'istart':
53
- if (isNull(v1) || isNull(v2)) {
54
- return false;
55
- }
56
- return removeAccents(v1).toLowerCase().indexOf(removeAccents(v2).toLowerCase()) === 0;
57
- case 'endswith':
58
- case 'endsi':
59
- case 'endi':
60
- case 'iends':
61
- case 'iend':
62
- if (isNull(v1) || isNull(v2)) {
63
- return false;
64
- }
65
- return v1.lastIndexOf(v2) === v1.length - v2.length;
66
- case 'like':
67
- if (isNull(v1) || isNull(v2)) {
68
- return false;
69
- }
70
- return removeAccents(v1).toLowerCase() === removeAccents(v2).toLowerCase();
71
- case 'gt':
72
- case '>':
73
- return v1 > v2;
74
- case 'gte':
75
- case '>=':
76
- return v1 >= v2;
77
- case 'lt':
78
- case '<':
79
- return v1 < v2;
80
- case 'lte':
81
- case '<=':
82
- return v1 <= v2;
83
- case 'isnull':
84
- return v1 === null;
85
- case 'isnotnull':
86
- return v1 !== null;
87
- case 'isempty':
88
- return v1 === '';
89
- case 'isnotempty':
90
- return v1 !== '';
91
- case '==':
92
- if (isObject(v1, v2)) {
93
- return isSame(v1, v2);
94
- }
95
- default:
96
- return v1 == v2;
97
- }
98
- };
99
- export { compare };
@@ -1,2 +0,0 @@
1
- declare const compareConditions: (data: any, filter: any) => boolean;
2
- export { compareConditions };