@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,44 +0,0 @@
1
- const fromXml = function (xml, arrayTags) {
2
- let dom = null;
3
- if (window.DOMParser)
4
- dom = new DOMParser().parseFromString(xml, 'text/xml');
5
- else if (window['ActiveXObject']) {
6
- dom = new window['ActiveXObject']('Microsoft.XMLDOM');
7
- dom.async = false;
8
- if (!dom.loadXML(xml))
9
- throw dom.parseError.reason + ' ' + dom.parseError.srcText;
10
- }
11
- else
12
- throw new Error('cannot parse xml string!');
13
- function parseNode(xmlNode, result) {
14
- if (xmlNode.nodeName == '#text') {
15
- let v = xmlNode.nodeValue;
16
- if (v.trim())
17
- result['#text'] = v;
18
- return;
19
- }
20
- let jsonNode = {}, existing = result[xmlNode.nodeName];
21
- if (existing) {
22
- if (!Array.isArray(existing))
23
- result[xmlNode.nodeName] = [existing, jsonNode];
24
- else
25
- result[xmlNode.nodeName].push(jsonNode);
26
- }
27
- else {
28
- if (arrayTags && arrayTags.indexOf(xmlNode.nodeName) != -1)
29
- result[xmlNode.nodeName] = [jsonNode];
30
- else
31
- result[xmlNode.nodeName] = jsonNode;
32
- }
33
- if (xmlNode.attributes)
34
- for (let attribute of xmlNode.attributes)
35
- jsonNode[attribute.nodeName] = attribute.nodeValue;
36
- for (let node of xmlNode.childNodes)
37
- parseNode(node, jsonNode);
38
- }
39
- let result = {};
40
- for (let node of dom.childNodes)
41
- parseNode(node, result);
42
- return result;
43
- };
44
- export { fromXml };
@@ -1,2 +0,0 @@
1
- declare const ftime: (d: any, wrong_result: any) => any;
2
- export { ftime };
package/dist/fn/ftime.js DELETED
@@ -1,15 +0,0 @@
1
- import { date } from './date';
2
- import { isDate } from './isDate';
3
- import { isString } from './isString';
4
- dayjs.extend(window['dayjs_plugin_calendar']);
5
- const ftime = function (d, wrong_result) {
6
- let r = date(d);
7
- if (!isDate(r)) {
8
- return wrong_result && isString(wrong_result) ? wrong_result : '';
9
- }
10
- if (undefined !== dayjs) {
11
- return dayjs(r).calendar();
12
- }
13
- return r.toLocaleDateString();
14
- };
15
- export { ftime };
@@ -1,2 +0,0 @@
1
- declare const getAllTags: () => any[];
2
- export { getAllTags };
@@ -1,5 +0,0 @@
1
- import { unique } from './unique';
2
- const getAllTags = function () {
3
- return unique(Array.prototype.map.apply(document.all, [(a) => a.tagName.toLowerCase()]));
4
- };
5
- export { getAllTags };
@@ -1,2 +0,0 @@
1
- declare const getAncestors: (ele: Element | String, selector?: true | string) => Element[];
2
- export { getAncestors };
@@ -1,25 +0,0 @@
1
- const getAncestors = function (ele, selector) {
2
- let r = [];
3
- if (typeof ele === 'string') {
4
- ele = document.querySelector(ele);
5
- }
6
- if (ele instanceof HTMLElement) {
7
- if (ele.parentElement) {
8
- if (typeof selector === 'string') {
9
- while ((ele = ele.parentElement.closest(selector))) {
10
- r.push(ele);
11
- }
12
- }
13
- else {
14
- if (selector === true) {
15
- r.push(ele);
16
- }
17
- while ((ele = ele.parentElement)) {
18
- r.push(ele);
19
- }
20
- }
21
- }
22
- }
23
- return r;
24
- };
25
- export { getAncestors };
@@ -1,2 +0,0 @@
1
- declare const getAttributes: (ele: any) => any;
2
- export { getAttributes };
@@ -1,12 +0,0 @@
1
- import { error } from './error';
2
- const getAttributes = function (ele) {
3
- if (!ele.getAttributeNames) {
4
- error('The element is not a proper HTML Element');
5
- }
6
- let res = Object.create(null);
7
- ele.getAttributeNames().forEach((name) => {
8
- res[name] = ele.getAttribute(name);
9
- });
10
- return res;
11
- };
12
- export { getAttributes };
@@ -1,2 +0,0 @@
1
- declare const getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
2
- export { getBrowserName };
@@ -1,21 +0,0 @@
1
- const getBrowserName = function () {
2
- const userAgent = navigator.userAgent.toLowerCase();
3
- switch (true) {
4
- case userAgent.includes('edge'):
5
- case userAgent.includes('edg/'):
6
- return 'Edge';
7
- case userAgent.includes('opr') && !!window['opr']:
8
- return 'Opera';
9
- case userAgent.includes('chrome') && !!window['chrome']:
10
- return 'Chrome';
11
- case userAgent.includes('trident'):
12
- return 'Internet Explorer';
13
- case userAgent.includes('firefox'):
14
- return 'Firefox';
15
- case userAgent.includes('safari'):
16
- return 'Safari';
17
- default:
18
- return 'Other';
19
- }
20
- };
21
- export { getBrowserName };
@@ -1,2 +0,0 @@
1
- declare const getBrowserVersion: () => string;
2
- export { getBrowserVersion };
@@ -1,22 +0,0 @@
1
- const getBrowserVersion = function () {
2
- const userAgent = navigator.userAgent.toLowerCase();
3
- switch (true) {
4
- case userAgent.includes('edge/'):
5
- return userAgent.split('edge/')[1].split(' ')[0];
6
- case userAgent.includes('edg/'):
7
- return userAgent.split('edg/')[1].split(' ')[0];
8
- case userAgent.includes('opr/') && !!window['opr']:
9
- return userAgent.split('opr/')[1].split(' ')[0];
10
- case userAgent.includes('chrome/') && !!window['chrome']:
11
- return userAgent.split('chrome/')[1].split(' ')[0];
12
- case userAgent.includes('trident/'):
13
- return userAgent.split('trident/')[1].split(' ')[0];
14
- case userAgent.includes('firefox/'):
15
- return userAgent.split('firefox/')[1].split(' ')[0];
16
- case userAgent.includes('safari/'):
17
- return userAgent.split('version/')[1].split(' ')[0];
18
- default:
19
- return '';
20
- }
21
- };
22
- export { getBrowserVersion };
@@ -1,2 +0,0 @@
1
- declare const getCookie: (name: any) => any;
2
- export { getCookie };
@@ -1,18 +0,0 @@
1
- const getCookie = function (name) {
2
- let nameEqual = name + '=';
3
- let ca = document.cookie.split(';');
4
- for (let i = 0; i < ca.length; i++) {
5
- let c = ca[i];
6
- while (c.charAt(0) == ' ') {
7
- c = c.substring(1, c.length);
8
- }
9
- if (c.indexOf(nameEqual) == 0) {
10
- let st = c.substring(nameEqual.length, c.length);
11
- if (st) {
12
- return JSON.parse(unescape(st)).value;
13
- }
14
- }
15
- }
16
- return null;
17
- };
18
- export { getCookie };
@@ -1,2 +0,0 @@
1
- declare const getCssVar: (varname: any) => string;
2
- export { getCssVar };
@@ -1,7 +0,0 @@
1
- const getCssVar = function (varname) {
2
- if (varname.indexOf('--') !== 0) {
3
- varname = '--' + varname;
4
- }
5
- return getComputedStyle(document.documentElement).getPropertyValue(varname);
6
- };
7
- export { getCssVar };
@@ -1,2 +0,0 @@
1
- declare const getDay: (v: any) => number | false;
2
- export { getDay };
package/dist/fn/getDay.js DELETED
@@ -1,17 +0,0 @@
1
- import { date } from './date';
2
- const getDay = function (v) {
3
- const biss = 1972;
4
- let d = date(v);
5
- if (d) {
6
- let t = d.getTime(), y = d.getYear(), m = d.getMonth(), days = (y - 1970) * 365;
7
- if (m < 2) {
8
- y--;
9
- }
10
- for (var i = biss; i <= y; i += 4) {
11
- days++;
12
- }
13
- return days + Math.floor(t / (24 * 3600000));
14
- }
15
- return false;
16
- };
17
- export { getDay };
@@ -1,2 +0,0 @@
1
- declare const getDeviceType: () => "mobile" | "tablet" | "desktop";
2
- export { getDeviceType };
@@ -1,11 +0,0 @@
1
- const getDeviceType = function () {
2
- const userAgent = navigator.userAgent.toLowerCase();
3
- if (/iPhone|Android/i.test(navigator.userAgent)) {
4
- return 'mobile';
5
- }
6
- if (/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent)) {
7
- return 'tablet';
8
- }
9
- return 'desktop';
10
- };
11
- export { getDeviceType };
@@ -1,2 +0,0 @@
1
- declare const getEventData: (e: any) => Promise<unknown>;
2
- export { getEventData };
@@ -1,102 +0,0 @@
1
- import { getHTMLOfSelection } from './getHTMLOfSelection';
2
- import { each } from './each';
3
- import { defaultErrorFunction } from './defaultErrorFunction';
4
- const getEventData = function (e) {
5
- let dt = e.dataTransfer || e.clipboardData;
6
- let t = dt.getData('Text');
7
- let res = { raw: t, files: [], str: [] };
8
- let p = new Promise((ok, err) => {
9
- let done = !(dt instanceof DataTransfer);
10
- if (!t && e.type === 'copy') {
11
- let sel = window.getSelection();
12
- res.raw = sel.toString();
13
- let html = getHTMLOfSelection();
14
- res.str.push({
15
- type: 'text/plain',
16
- data: res.raw,
17
- });
18
- if (html !== res.raw) {
19
- res.str.push({
20
- type: 'text/html',
21
- data: html,
22
- });
23
- }
24
- else if (res.raw.trim().indexOf('<') === 0) {
25
- res.str.push({
26
- type: 'text/html',
27
- data: "<meta charset='utf-8'><code style=\"white-space: pre; font-family: 'Courier New', sans-serif\">\n" +
28
- res.raw +
29
- '\n</code>',
30
- });
31
- }
32
- done = true;
33
- ok(res);
34
- }
35
- if (!done) {
36
- let strings = [];
37
- let num = dt.items.length;
38
- each(dt.items, (item, idx) => {
39
- let kind = item.kind;
40
- let type = item.type;
41
- if (kind === 'file') {
42
- let cp = dt.files[idx];
43
- if (!type && cp.name) {
44
- let bits = cp.name.split('.');
45
- type = bits[bits.length - 1];
46
- }
47
- let name = cp ? cp.name : bbn._('untitled');
48
- let size = cp ? cp.size : null;
49
- let lastModified = cp ? cp.lastModified : null;
50
- let blob = item.getAsFile();
51
- if (blob) {
52
- done = true;
53
- num--;
54
- res.files.push({
55
- type: type,
56
- data: blob,
57
- name: name,
58
- size: size,
59
- mdate: lastModified,
60
- });
61
- strings.push(name);
62
- if (!num) {
63
- if (!res.raw) {
64
- res.raw = strings.join(', ');
65
- }
66
- ok(res);
67
- }
68
- }
69
- else {
70
- defaultErrorFunction(bbn._('Impossible to read the file') + ' ' + name);
71
- }
72
- }
73
- else {
74
- done = true;
75
- item.getAsString((data) => {
76
- num--;
77
- res.str.push({
78
- type: type,
79
- data: data,
80
- });
81
- if (type === 'text/plain') {
82
- strings.push(name);
83
- }
84
- if (!num) {
85
- if (!res.raw) {
86
- res.raw = strings.join(', ');
87
- }
88
- ok(res);
89
- }
90
- });
91
- }
92
- });
93
- }
94
- if (!done) {
95
- setTimeout(() => {
96
- ok(res);
97
- });
98
- }
99
- });
100
- return p;
101
- };
102
- export { getEventData };
@@ -1,2 +0,0 @@
1
- declare const getField: (arr: any[], field: string, prop?: object | string, val?: any, operator?: string) => any;
2
- export { getField };
@@ -1,9 +0,0 @@
1
- import { getRow } from './getRow';
2
- const getField = function (arr, field, prop = '', val = null, operator = '=') {
3
- let r;
4
- if (field && (r = getRow(arr, prop, val, operator))) {
5
- return r[field];
6
- }
7
- return undefined;
8
- };
9
- export { getField };
@@ -1,2 +0,0 @@
1
- declare const getFieldValues: (arr: object[], field: string, prop: any, val: any, operator: any) => any[];
2
- export { getFieldValues };
@@ -1,13 +0,0 @@
1
- import { checkType } from './checkType';
2
- import { filter } from './filter';
3
- import { each } from './each';
4
- const getFieldValues = function (arr, field, prop, val, operator) {
5
- checkType(field, 'string');
6
- if (prop) {
7
- arr = filter(arr, prop, val, operator);
8
- }
9
- let res = [];
10
- each(arr, (a) => (res.indexOf(a[field]) === -1 ? res.push(a[field]) : null));
11
- return res;
12
- };
13
- export { getFieldValues };
@@ -1,2 +0,0 @@
1
- declare const getHTMLOfSelection: () => string;
2
- export { getHTMLOfSelection };
@@ -1,18 +0,0 @@
1
- import { log } from './log';
2
- const getHTMLOfSelection = function () {
3
- let range;
4
- let selection = window.getSelection();
5
- if (selection.rangeCount > 0) {
6
- range = selection.getRangeAt(0);
7
- log('RANGE', range);
8
- let clonedSelection = range.cloneContents();
9
- log('clonedSelection', clonedSelection);
10
- let div = document.createElement('div');
11
- div.appendChild(clonedSelection);
12
- return div.innerHTML;
13
- }
14
- else {
15
- return '';
16
- }
17
- };
18
- export { getHTMLOfSelection };
@@ -1,2 +0,0 @@
1
- declare const getHtml: (ele: any, stripComments?: boolean) => any;
2
- export { getHtml };
@@ -1,9 +0,0 @@
1
- import { removeHtmlComments } from './removeHtmlComments';
2
- const getHtml = function (ele, stripComments = false) {
3
- let st = ele.innerHTML();
4
- if (stripComments) {
5
- st = removeHtmlComments(st);
6
- }
7
- return st.trim();
8
- };
9
- export { getHtml };
@@ -1,2 +0,0 @@
1
- declare const getLoader: (requestId: string) => BbnLoader | null;
2
- export { getLoader };
@@ -1,9 +0,0 @@
1
- import { search } from './search';
2
- const getLoader = function (requestId) {
3
- let idx = search(bbn.env.loaders, { key: requestId });
4
- if (idx > -1) {
5
- return bbn.env.loaders[idx];
6
- }
7
- return null;
8
- };
9
- export { getLoader };
@@ -1,2 +0,0 @@
1
- declare const getPath: (element: any) => string;
2
- export { getPath };
@@ -1,42 +0,0 @@
1
- import { replaceAll } from './replaceAll';
2
- const getPath = function (element) {
3
- let path,
4
- //node = $(element),
5
- node = element, done = 0;
6
- while (node.length) {
7
- //let realNode = node[0],
8
- let realNode = node, name = realNode.localName;
9
- if (!name)
10
- break;
11
- if (realNode === document.body)
12
- break;
13
- if (realNode.id) {
14
- return '#' + realNode.id;
15
- }
16
- if (!done) {
17
- if (realNode.className && realNode.className !== ' ') {
18
- name += '.' + replaceAll(' ', '.', replaceAll(' ', ' ', realNode.className));
19
- }
20
- done = 1;
21
- }
22
- //var parent = node.parent(),
23
- let parent = node.parentNode,
24
- //sameTagSiblings = parent.children(name);
25
- sameTagSiblings = parent.children.filter((val) => {
26
- return val.tagName === name;
27
- });
28
- if (sameTagSiblings.length > 1) {
29
- //var allSiblings = parent.children(),
30
- let allSiblings = parent.children,
31
- //index = allSiblings.index(realNode) + 1;
32
- index = allSiblings.indexOf(realNode) + 1;
33
- if (index > 1) {
34
- name += ':nth-child(' + index + ')';
35
- }
36
- }
37
- path = name + (path ? '>' + path : '');
38
- node = parent;
39
- }
40
- return path;
41
- };
42
- export { getPath };
@@ -1,2 +0,0 @@
1
- declare const getProp: (obj: any, prop: any) => any;
2
- export { getProp };
@@ -1,7 +0,0 @@
1
- import { checkType } from './checkType';
2
- const getProp = function (obj, prop) {
3
- checkType(obj, 'object', bbn._('The obj must be an object in setProp'));
4
- checkType(prop, 'string', bbn._('The prop must be a string in setProp'));
5
- return obj[prop];
6
- };
7
- export { getProp };
@@ -1,2 +0,0 @@
1
- declare const getProperty: (obj: any, prop: any) => any;
2
- export { getProperty };
@@ -1,11 +0,0 @@
1
- const getProperty = function (obj, prop) {
2
- if (typeof obj === 'object' && typeof prop === 'string') {
3
- return prop.split('.').reduce((o, i) => {
4
- if (o) {
5
- return o[i];
6
- }
7
- return undefined;
8
- }, obj);
9
- }
10
- };
11
- export { getProperty };
@@ -1,2 +0,0 @@
1
- declare const getRequestId: (url: any, data: any, datatype: any) => string;
2
- export { getRequestId };
@@ -1,14 +0,0 @@
1
- import { iterate } from './iterate';
2
- import { md5 } from './md5';
3
- const getRequestId = function (url, data, datatype) {
4
- let d = {};
5
- if (data) {
6
- iterate(data, (a, n) => {
7
- if (n.indexOf('_bbn') === -1) {
8
- d[n] = a;
9
- }
10
- });
11
- }
12
- return url + ':' + md5((datatype || 'json') + JSON.stringify(d));
13
- };
14
- export { getRequestId };
@@ -1,2 +0,0 @@
1
- declare const getRow: (arr: any[], prop: object | string, val?: any, operator?: string) => any | false;
2
- export { getRow };
package/dist/fn/getRow.js DELETED
@@ -1,9 +0,0 @@
1
- import { search } from './search';
2
- const getRow = function (arr, prop, val = null, operator = '=') {
3
- var idx = search(arr, prop, val, operator);
4
- if (idx > -1) {
5
- return arr[idx];
6
- }
7
- return false;
8
- };
9
- export { getRow };
@@ -1,2 +0,0 @@
1
- declare const getScrollBarSize: () => number;
2
- export { getScrollBarSize };
@@ -1,25 +0,0 @@
1
- const getScrollBarSize = function () {
2
- if (bbn.env.scrollBarSize === undefined) {
3
- let outer = document.createElement('div');
4
- outer.style.visibility = 'hidden';
5
- outer.style.width = '100px';
6
- if ('msOverflowStyle' in outer.style) {
7
- outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps
8
- }
9
- document.body.appendChild(outer);
10
- let widthNoScroll = outer.offsetWidth;
11
- // force scrollbars
12
- outer.style.overflow = 'scroll';
13
- // add innerdiv
14
- let inner = document.createElement('div');
15
- inner.style.width = '100%';
16
- outer.appendChild(inner);
17
- let widthWithScroll = inner.offsetWidth;
18
- // remove divs
19
- outer.parentNode.removeChild(outer);
20
- let sz = widthNoScroll - widthWithScroll;
21
- bbn.env.scrollBarSize = sz ? sz + 1 : 0;
22
- }
23
- return bbn.env.scrollBarSize;
24
- };
25
- export { getScrollBarSize };
@@ -1,2 +0,0 @@
1
- declare const getText: (ele: any) => string;
2
- export { getText };
@@ -1,4 +0,0 @@
1
- const getText = function (ele) {
2
- return ele.innerText().trim();
3
- };
4
- export { getText };
@@ -1,2 +0,0 @@
1
- declare const getTimeoff: () => number;
2
- export { getTimeoff };
@@ -1,7 +0,0 @@
1
- const getTimeoff = function () {
2
- if (!bbn.env.isFocused) {
3
- return Math.round(new Date().getTime() / 1000 - bbn.env.timeoff);
4
- }
5
- return 0;
6
- };
7
- export { getTimeoff };
@@ -1,2 +0,0 @@
1
- declare const happy: (...args: any[]) => any;
2
- export { happy };
package/dist/fn/happy.js DELETED
@@ -1,10 +0,0 @@
1
- import { log } from './log';
2
- const happy = function (...args) {
3
- args.unshift({
4
- _bbn_console_level: 3,
5
- _bbn_console_style: 'color: white; background: green; font-size: 18px;',
6
- });
7
- log.apply(this, args);
8
- return this;
9
- };
10
- export { happy };
package/dist/fn/hash.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const hash: (obj: any) => string;
2
- export { hash };