@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.
- package/dist/bundle.js +8 -8
- package/dist/index.js +7 -7
- package/package.json +3 -2
- package/dist/fn/_addLoader.d.ts +0 -2
- package/dist/fn/_addLoader.js +0 -37
- package/dist/fn/_compareValues.d.ts +0 -2
- package/dist/fn/_compareValues.js +0 -40
- package/dist/fn/_deleteLoader.d.ts +0 -2
- package/dist/fn/_deleteLoader.js +0 -25
- package/dist/fn/abort.d.ts +0 -2
- package/dist/fn/abort.js +0 -14
- package/dist/fn/abortURL.d.ts +0 -2
- package/dist/fn/abortURL.js +0 -13
- package/dist/fn/addColors.d.ts +0 -2
- package/dist/fn/addColors.js +0 -41
- package/dist/fn/addInputs.d.ts +0 -2
- package/dist/fn/addInputs.js +0 -40
- package/dist/fn/addStyle.d.ts +0 -2
- package/dist/fn/addStyle.js +0 -10
- package/dist/fn/adjustHeight.d.ts +0 -2
- package/dist/fn/adjustHeight.js +0 -10
- package/dist/fn/adjustSize.d.ts +0 -2
- package/dist/fn/adjustSize.js +0 -21
- package/dist/fn/adjustWidth.d.ts +0 -2
- package/dist/fn/adjustWidth.js +0 -10
- package/dist/fn/ajax.d.ts +0 -2
- package/dist/fn/ajax.js +0 -114
- package/dist/fn/analyzeFunction.d.ts +0 -11
- package/dist/fn/analyzeFunction.js +0 -141
- package/dist/fn/animateCss.d.ts +0 -2
- package/dist/fn/animateCss.js +0 -20
- package/dist/fn/arrayBuffer2String.d.ts +0 -2
- package/dist/fn/arrayBuffer2String.js +0 -4
- package/dist/fn/arrayFromProp.d.ts +0 -2
- package/dist/fn/arrayFromProp.js +0 -10
- package/dist/fn/autoExtend.d.ts +0 -2
- package/dist/fn/autoExtend.js +0 -13
- package/dist/fn/baseName.d.ts +0 -2
- package/dist/fn/baseName.js +0 -17
- package/dist/fn/br2nl.d.ts +0 -2
- package/dist/fn/br2nl.js +0 -5
- package/dist/fn/calendar.d.ts +0 -2
- package/dist/fn/calendar.js +0 -23
- package/dist/fn/callback.d.ts +0 -2
- package/dist/fn/callback.js +0 -82
- package/dist/fn/camelToCss.d.ts +0 -2
- package/dist/fn/camelToCss.js +0 -10
- package/dist/fn/camelize.d.ts +0 -2
- package/dist/fn/camelize.js +0 -9
- package/dist/fn/canvasToImage.d.ts +0 -2
- package/dist/fn/canvasToImage.js +0 -6
- package/dist/fn/center.d.ts +0 -2
- package/dist/fn/center.js +0 -24
- package/dist/fn/checkProps.d.ts +0 -2
- package/dist/fn/checkProps.js +0 -5
- package/dist/fn/checkPropsDetails.d.ts +0 -2
- package/dist/fn/checkPropsDetails.js +0 -50
- package/dist/fn/checkPropsOrDie.d.ts +0 -2
- package/dist/fn/checkPropsOrDie.js +0 -9
- package/dist/fn/checkType.d.ts +0 -2
- package/dist/fn/checkType.js +0 -59
- package/dist/fn/chrono.d.ts +0 -3
- package/dist/fn/chrono.js +0 -23
- package/dist/fn/circularReplacer.d.ts +0 -2
- package/dist/fn/circularReplacer.js +0 -33
- package/dist/fn/clone.d.ts +0 -2
- package/dist/fn/clone.js +0 -16
- package/dist/fn/colorToHex.d.ts +0 -2
- package/dist/fn/colorToHex.js +0 -6
- package/dist/fn/compare.d.ts +0 -2
- package/dist/fn/compare.js +0 -99
- package/dist/fn/compareConditions.d.ts +0 -2
- package/dist/fn/compareConditions.js +0 -42
- package/dist/fn/copy.d.ts +0 -2
- package/dist/fn/copy.js +0 -37
- package/dist/fn/correctCase.d.ts +0 -2
- package/dist/fn/correctCase.js +0 -4
- package/dist/fn/count.d.ts +0 -2
- package/dist/fn/count.js +0 -5
- package/dist/fn/crc32.d.ts +0 -2
- package/dist/fn/crc32.js +0 -18
- package/dist/fn/createObject.d.ts +0 -2
- package/dist/fn/createObject.js +0 -9
- package/dist/fn/cssExists.d.ts +0 -2
- package/dist/fn/cssExists.js +0 -30
- package/dist/fn/date.d.ts +0 -2
- package/dist/fn/date.js +0 -28
- package/dist/fn/dateSQL.d.ts +0 -2
- package/dist/fn/dateSQL.js +0 -8
- package/dist/fn/daysInMonth.d.ts +0 -2
- package/dist/fn/daysInMonth.js +0 -9
- package/dist/fn/deepPath.d.ts +0 -2
- package/dist/fn/deepPath.js +0 -23
- package/dist/fn/defaultAjaxAbortFunction.d.ts +0 -2
- package/dist/fn/defaultAjaxAbortFunction.js +0 -5
- package/dist/fn/defaultAjaxErrorFunction.d.ts +0 -2
- package/dist/fn/defaultAjaxErrorFunction.js +0 -4
- package/dist/fn/defaultAlertFunction.d.ts +0 -2
- package/dist/fn/defaultAlertFunction.js +0 -5
- package/dist/fn/defaultConfirmFunction.d.ts +0 -2
- package/dist/fn/defaultConfirmFunction.js +0 -14
- package/dist/fn/defaultEndLoadingFunction.d.ts +0 -2
- package/dist/fn/defaultEndLoadingFunction.js +0 -4
- package/dist/fn/defaultErrorFunction.d.ts +0 -2
- package/dist/fn/defaultErrorFunction.js +0 -5
- package/dist/fn/defaultHistoryFunction.d.ts +0 -2
- package/dist/fn/defaultHistoryFunction.js +0 -4
- package/dist/fn/defaultLinkFunction.d.ts +0 -2
- package/dist/fn/defaultLinkFunction.js +0 -4
- package/dist/fn/defaultPostLinkFunction.d.ts +0 -2
- package/dist/fn/defaultPostLinkFunction.js +0 -4
- package/dist/fn/defaultPreLinkFunction.d.ts +0 -2
- package/dist/fn/defaultPreLinkFunction.js +0 -4
- package/dist/fn/defaultResizeFunction.d.ts +0 -2
- package/dist/fn/defaultResizeFunction.js +0 -4
- package/dist/fn/defaultStartLoadingFunction.d.ts +0 -2
- package/dist/fn/defaultStartLoadingFunction.js +0 -4
- package/dist/fn/deleteProp.d.ts +0 -2
- package/dist/fn/deleteProp.js +0 -7
- package/dist/fn/diffObj.d.ts +0 -2
- package/dist/fn/diffObj.js +0 -91
- package/dist/fn/dirName.d.ts +0 -2
- package/dist/fn/dirName.js +0 -18
- package/dist/fn/download.d.ts +0 -2
- package/dist/fn/download.js +0 -36
- package/dist/fn/downloadContent.d.ts +0 -2
- package/dist/fn/downloadContent.js +0 -48
- package/dist/fn/each.d.ts +0 -2
- package/dist/fn/each.js +0 -23
- package/dist/fn/eraseCookie.d.ts +0 -2
- package/dist/fn/eraseCookie.js +0 -4
- package/dist/fn/error.d.ts +0 -2
- package/dist/fn/error.js +0 -17
- package/dist/fn/escapeDquotes.d.ts +0 -2
- package/dist/fn/escapeDquotes.js +0 -8
- package/dist/fn/escapeRegExp.d.ts +0 -2
- package/dist/fn/escapeRegExp.js +0 -4
- package/dist/fn/escapeSquotes.d.ts +0 -2
- package/dist/fn/escapeSquotes.js +0 -8
- package/dist/fn/escapeTicks.d.ts +0 -2
- package/dist/fn/escapeTicks.js +0 -8
- package/dist/fn/escapeUrl.d.ts +0 -2
- package/dist/fn/escapeUrl.js +0 -40
- package/dist/fn/extend.d.ts +0 -2
- package/dist/fn/extend.js +0 -71
- package/dist/fn/extendOut.d.ts +0 -2
- package/dist/fn/extendOut.js +0 -24
- package/dist/fn/fdate.d.ts +0 -2
- package/dist/fn/fdate.js +0 -19
- package/dist/fn/fdatetime.d.ts +0 -2
- package/dist/fn/fdatetime.js +0 -23
- package/dist/fn/fieldValue.d.ts +0 -2
- package/dist/fn/fieldValue.js +0 -24
- package/dist/fn/fileExt.d.ts +0 -2
- package/dist/fn/fileExt.js +0 -11
- package/dist/fn/filter.d.ts +0 -3
- package/dist/fn/filter.js +0 -47
- package/dist/fn/filterToConditions.d.ts +0 -11
- package/dist/fn/filterToConditions.js +0 -31
- package/dist/fn/findAll.d.ts +0 -2
- package/dist/fn/findAll.js +0 -18
- package/dist/fn/fori.d.ts +0 -2
- package/dist/fn/fori.js +0 -19
- package/dist/fn/forir.d.ts +0 -2
- package/dist/fn/forir.js +0 -19
- package/dist/fn/format.d.ts +0 -2
- package/dist/fn/format.js +0 -14
- package/dist/fn/formatBytes.d.ts +0 -2
- package/dist/fn/formatBytes.js +0 -8
- package/dist/fn/formatDate.d.ts +0 -2
- package/dist/fn/formatDate.js +0 -4
- package/dist/fn/formatSize.d.ts +0 -2
- package/dist/fn/formatSize.js +0 -12
- package/dist/fn/formdata.d.ts +0 -2
- package/dist/fn/formdata.js +0 -52
- package/dist/fn/fromXml.d.ts +0 -2
- package/dist/fn/fromXml.js +0 -44
- package/dist/fn/ftime.d.ts +0 -2
- package/dist/fn/ftime.js +0 -15
- package/dist/fn/getAllTags.d.ts +0 -2
- package/dist/fn/getAllTags.js +0 -5
- package/dist/fn/getAncestors.d.ts +0 -2
- package/dist/fn/getAncestors.js +0 -25
- package/dist/fn/getAttributes.d.ts +0 -2
- package/dist/fn/getAttributes.js +0 -12
- package/dist/fn/getBrowserName.d.ts +0 -2
- package/dist/fn/getBrowserName.js +0 -21
- package/dist/fn/getBrowserVersion.d.ts +0 -2
- package/dist/fn/getBrowserVersion.js +0 -22
- package/dist/fn/getCookie.d.ts +0 -2
- package/dist/fn/getCookie.js +0 -18
- package/dist/fn/getCssVar.d.ts +0 -2
- package/dist/fn/getCssVar.js +0 -7
- package/dist/fn/getDay.d.ts +0 -2
- package/dist/fn/getDay.js +0 -17
- package/dist/fn/getDeviceType.d.ts +0 -2
- package/dist/fn/getDeviceType.js +0 -11
- package/dist/fn/getEventData.d.ts +0 -2
- package/dist/fn/getEventData.js +0 -102
- package/dist/fn/getField.d.ts +0 -2
- package/dist/fn/getField.js +0 -9
- package/dist/fn/getFieldValues.d.ts +0 -2
- package/dist/fn/getFieldValues.js +0 -13
- package/dist/fn/getHTMLOfSelection.d.ts +0 -2
- package/dist/fn/getHTMLOfSelection.js +0 -18
- package/dist/fn/getHtml.d.ts +0 -2
- package/dist/fn/getHtml.js +0 -9
- package/dist/fn/getLoader.d.ts +0 -2
- package/dist/fn/getLoader.js +0 -9
- package/dist/fn/getPath.d.ts +0 -2
- package/dist/fn/getPath.js +0 -42
- package/dist/fn/getProp.d.ts +0 -2
- package/dist/fn/getProp.js +0 -7
- package/dist/fn/getProperty.d.ts +0 -2
- package/dist/fn/getProperty.js +0 -11
- package/dist/fn/getRequestId.d.ts +0 -2
- package/dist/fn/getRequestId.js +0 -14
- package/dist/fn/getRow.d.ts +0 -2
- package/dist/fn/getRow.js +0 -9
- package/dist/fn/getScrollBarSize.d.ts +0 -2
- package/dist/fn/getScrollBarSize.js +0 -25
- package/dist/fn/getText.d.ts +0 -2
- package/dist/fn/getText.js +0 -4
- package/dist/fn/getTimeoff.d.ts +0 -2
- package/dist/fn/getTimeoff.js +0 -7
- package/dist/fn/happy.d.ts +0 -2
- package/dist/fn/happy.js +0 -10
- package/dist/fn/hash.d.ts +0 -2
- package/dist/fn/hash.js +0 -36
- package/dist/fn/hex2rgb.d.ts +0 -6
- package/dist/fn/hex2rgb.js +0 -11
- package/dist/fn/history.d.ts +0 -2
- package/dist/fn/history.js +0 -4
- package/dist/fn/html2text.d.ts +0 -2
- package/dist/fn/html2text.js +0 -7
- package/dist/fn/imageToCanvas.d.ts +0 -2
- package/dist/fn/imageToCanvas.js +0 -8
- package/dist/fn/imgToBase64.d.ts +0 -2
- package/dist/fn/imgToBase64.js +0 -7
- package/dist/fn/info.d.ts +0 -2
- package/dist/fn/info.js +0 -11
- package/dist/fn/isActiveInterface.d.ts +0 -2
- package/dist/fn/isActiveInterface.js +0 -8
- package/dist/fn/isArray.d.ts +0 -2
- package/dist/fn/isArray.js +0 -11
- package/dist/fn/isBlob.d.ts +0 -2
- package/dist/fn/isBlob.js +0 -11
- package/dist/fn/isBoolean.d.ts +0 -2
- package/dist/fn/isBoolean.js +0 -11
- package/dist/fn/isCanvas.d.ts +0 -2
- package/dist/fn/isCanvas.js +0 -11
- package/dist/fn/isColor.d.ts +0 -2
- package/dist/fn/isColor.js +0 -16
- package/dist/fn/isComment.d.ts +0 -2
- package/dist/fn/isComment.js +0 -11
- package/dist/fn/isCp.d.ts +0 -2
- package/dist/fn/isCp.js +0 -17
- package/dist/fn/isDate.d.ts +0 -2
- package/dist/fn/isDate.js +0 -11
- package/dist/fn/isDesktopDevice.d.ts +0 -2
- package/dist/fn/isDesktopDevice.js +0 -5
- package/dist/fn/isDimension.d.ts +0 -2
- package/dist/fn/isDimension.js +0 -15
- package/dist/fn/isDom.d.ts +0 -2
- package/dist/fn/isDom.js +0 -11
- package/dist/fn/isEmail.d.ts +0 -2
- package/dist/fn/isEmail.js +0 -16
- package/dist/fn/isEmpty.d.ts +0 -2
- package/dist/fn/isEmpty.js +0 -18
- package/dist/fn/isEvent.d.ts +0 -2
- package/dist/fn/isEvent.js +0 -11
- package/dist/fn/isFocused.d.ts +0 -2
- package/dist/fn/isFocused.js +0 -4
- package/dist/fn/isFunction.d.ts +0 -2
- package/dist/fn/isFunction.js +0 -11
- package/dist/fn/isHostname.d.ts +0 -2
- package/dist/fn/isHostname.js +0 -16
- package/dist/fn/isIP.d.ts +0 -2
- package/dist/fn/isIP.js +0 -12
- package/dist/fn/isInside.d.ts +0 -2
- package/dist/fn/isInside.js +0 -23
- package/dist/fn/isInt.d.ts +0 -2
- package/dist/fn/isInt.js +0 -11
- package/dist/fn/isIterable.d.ts +0 -2
- package/dist/fn/isIterable.js +0 -4
- package/dist/fn/isMobile.d.ts +0 -2
- package/dist/fn/isMobile.js +0 -6
- package/dist/fn/isMobileDevice.d.ts +0 -2
- package/dist/fn/isMobileDevice.js +0 -5
- package/dist/fn/isNull.d.ts +0 -2
- package/dist/fn/isNull.js +0 -11
- package/dist/fn/isNumber.d.ts +0 -2
- package/dist/fn/isNumber.js +0 -11
- package/dist/fn/isObject.d.ts +0 -2
- package/dist/fn/isObject.js +0 -11
- package/dist/fn/isPercent.d.ts +0 -2
- package/dist/fn/isPercent.js +0 -11
- package/dist/fn/isPrimitive.d.ts +0 -2
- package/dist/fn/isPrimitive.js +0 -11
- package/dist/fn/isPromise.d.ts +0 -2
- package/dist/fn/isPromise.js +0 -11
- package/dist/fn/isPropSize.d.ts +0 -2
- package/dist/fn/isPropSize.js +0 -12
- package/dist/fn/isSQLDate.d.ts +0 -2
- package/dist/fn/isSQLDate.js +0 -12
- package/dist/fn/isSame.d.ts +0 -2
- package/dist/fn/isSame.js +0 -33
- package/dist/fn/isString.d.ts +0 -2
- package/dist/fn/isString.js +0 -11
- package/dist/fn/isSymbol.d.ts +0 -2
- package/dist/fn/isSymbol.js +0 -11
- package/dist/fn/isTabletDevice.d.ts +0 -2
- package/dist/fn/isTabletDevice.js +0 -5
- package/dist/fn/isURL.d.ts +0 -2
- package/dist/fn/isURL.js +0 -11
- package/dist/fn/isValidDimension.d.ts +0 -2
- package/dist/fn/isValidDimension.js +0 -13
- package/dist/fn/isValidName.d.ts +0 -2
- package/dist/fn/isValidName.js +0 -13
- package/dist/fn/isValue.d.ts +0 -2
- package/dist/fn/isValue.js +0 -12
- package/dist/fn/isVue.d.ts +0 -2
- package/dist/fn/isVue.js +0 -26
- package/dist/fn/iterate.d.ts +0 -2
- package/dist/fn/iterate.js +0 -16
- package/dist/fn/lightenDarkenHex.d.ts +0 -2
- package/dist/fn/lightenDarkenHex.js +0 -27
- package/dist/fn/link.d.ts +0 -2
- package/dist/fn/link.js +0 -105
- package/dist/fn/log.d.ts +0 -2
- package/dist/fn/log.js +0 -33
- package/dist/fn/makeReactive.d.ts +0 -2
- package/dist/fn/makeReactive.js +0 -185
- package/dist/fn/map.d.ts +0 -2
- package/dist/fn/map.js +0 -11
- package/dist/fn/md5.d.ts +0 -2
- package/dist/fn/md5.js +0 -121
- package/dist/fn/money.d.ts +0 -2
- package/dist/fn/money.js +0 -101
- package/dist/fn/move.d.ts +0 -2
- package/dist/fn/move.js +0 -11
- package/dist/fn/multiorder.d.ts +0 -2
- package/dist/fn/multiorder.js +0 -22
- package/dist/fn/nl2br.d.ts +0 -2
- package/dist/fn/nl2br.js +0 -5
- package/dist/fn/numProperties.d.ts +0 -2
- package/dist/fn/numProperties.js +0 -7
- package/dist/fn/objectToFormData.d.ts +0 -2
- package/dist/fn/objectToFormData.js +0 -35
- package/dist/fn/order.d.ts +0 -2
- package/dist/fn/order.js +0 -10
- package/dist/fn/outerHeight.d.ts +0 -2
- package/dist/fn/outerHeight.js +0 -10
- package/dist/fn/outerWidth.d.ts +0 -2
- package/dist/fn/outerWidth.js +0 -8
- package/dist/fn/percent.d.ts +0 -2
- package/dist/fn/percent.js +0 -4
- package/dist/fn/pickValue.d.ts +0 -2
- package/dist/fn/pickValue.js +0 -6
- package/dist/fn/post.d.ts +0 -2
- package/dist/fn/post.js +0 -12
- package/dist/fn/postOut.d.ts +0 -2
- package/dist/fn/postOut.js +0 -30
- package/dist/fn/printf.d.ts +0 -2
- package/dist/fn/printf.js +0 -7
- package/dist/fn/quotes2html.d.ts +0 -2
- package/dist/fn/quotes2html.js +0 -11
- package/dist/fn/randomInt.d.ts +0 -2
- package/dist/fn/randomInt.js +0 -4
- package/dist/fn/randomString.d.ts +0 -2
- package/dist/fn/randomString.js +0 -46
- package/dist/fn/removeAccents.d.ts +0 -2
- package/dist/fn/removeAccents.js +0 -15
- package/dist/fn/removeEmpty.d.ts +0 -2
- package/dist/fn/removeEmpty.js +0 -31
- package/dist/fn/removeExtraSpaces.d.ts +0 -2
- package/dist/fn/removeExtraSpaces.js +0 -4
- package/dist/fn/removeHtmlComments.d.ts +0 -2
- package/dist/fn/removeHtmlComments.js +0 -8
- package/dist/fn/removePrivateProp.d.ts +0 -2
- package/dist/fn/removePrivateProp.js +0 -19
- package/dist/fn/removeTrailingChars.d.ts +0 -2
- package/dist/fn/removeTrailingChars.js +0 -16
- package/dist/fn/repeat.d.ts +0 -2
- package/dist/fn/repeat.js +0 -4
- package/dist/fn/replaceAll.d.ts +0 -2
- package/dist/fn/replaceAll.js +0 -6
- package/dist/fn/replaceSelection.d.ts +0 -2
- package/dist/fn/replaceSelection.js +0 -42
- package/dist/fn/resize.d.ts +0 -2
- package/dist/fn/resize.js +0 -39
- package/dist/fn/rgb2hex.d.ts +0 -2
- package/dist/fn/rgb2hex.js +0 -10
- package/dist/fn/riterate.d.ts +0 -2
- package/dist/fn/riterate.js +0 -5
- package/dist/fn/roundDecimal.d.ts +0 -2
- package/dist/fn/roundDecimal.js +0 -4
- package/dist/fn/sanitize.d.ts +0 -2
- package/dist/fn/sanitize.js +0 -19
- package/dist/fn/search.d.ts +0 -3
- package/dist/fn/search.js +0 -79
- package/dist/fn/selectElementText.d.ts +0 -2
- package/dist/fn/selectElementText.js +0 -23
- package/dist/fn/selector.d.ts +0 -2
- package/dist/fn/selector.js +0 -4
- package/dist/fn/setCookie.d.ts +0 -2
- package/dist/fn/setCookie.js +0 -11
- package/dist/fn/setCssVar.d.ts +0 -2
- package/dist/fn/setCssVar.js +0 -8
- package/dist/fn/setNavigationVars.d.ts +0 -2
- package/dist/fn/setNavigationVars.js +0 -57
- package/dist/fn/setProp.d.ts +0 -2
- package/dist/fn/setProp.js +0 -8
- package/dist/fn/setProperty.d.ts +0 -2
- package/dist/fn/setProperty.js +0 -22
- package/dist/fn/shorten.d.ts +0 -2
- package/dist/fn/shorten.js +0 -17
- package/dist/fn/shortenObj.d.ts +0 -2
- package/dist/fn/shortenObj.js +0 -17
- package/dist/fn/shuffle.d.ts +0 -2
- package/dist/fn/shuffle.js +0 -13
- package/dist/fn/simpleHash.d.ts +0 -2
- package/dist/fn/simpleHash.js +0 -8
- package/dist/fn/simpleHash1.d.ts +0 -2
- package/dist/fn/simpleHash1.js +0 -10
- package/dist/fn/simpleHash2.d.ts +0 -2
- package/dist/fn/simpleHash2.js +0 -10
- package/dist/fn/stat.d.ts +0 -2
- package/dist/fn/stat.js +0 -49
- package/dist/fn/string2ArrayBuffer.d.ts +0 -2
- package/dist/fn/string2ArrayBuffer.js +0 -9
- package/dist/fn/submit.d.ts +0 -2
- package/dist/fn/submit.js +0 -33
- package/dist/fn/substr.d.ts +0 -2
- package/dist/fn/substr.js +0 -17
- package/dist/fn/sum.d.ts +0 -2
- package/dist/fn/sum.js +0 -13
- package/dist/fn/timestamp.d.ts +0 -2
- package/dist/fn/timestamp.js +0 -5
- package/dist/fn/toCSV.d.ts +0 -2
- package/dist/fn/toCSV.js +0 -40
- package/dist/fn/toggleFullScreen.d.ts +0 -2
- package/dist/fn/toggleFullScreen.js +0 -39
- package/dist/fn/translate.d.ts +0 -2
- package/dist/fn/translate.js +0 -8
- package/dist/fn/treatAjaxArguments.d.ts +0 -2
- package/dist/fn/treatAjaxArguments.js +0 -76
- package/dist/fn/trim.d.ts +0 -2
- package/dist/fn/trim.js +0 -20
- package/dist/fn/uniqString.d.ts +0 -2
- package/dist/fn/uniqString.js +0 -33
- package/dist/fn/unique.d.ts +0 -2
- package/dist/fn/unique.js +0 -6
- package/dist/fn/upload.d.ts +0 -2
- package/dist/fn/upload.js +0 -36
- package/dist/fn/warning.d.ts +0 -2
- package/dist/fn/warning.js +0 -12
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { isArray } from './isArray';
|
|
2
|
-
import { each } from './each';
|
|
3
|
-
import { compare } from './compare';
|
|
4
|
-
import { getProperty } from './getProperty';
|
|
5
|
-
const compareConditions = function (data, filter) {
|
|
6
|
-
if (!filter.conditions || !filter.logic || !isArray(filter.conditions)) {
|
|
7
|
-
throw new Error('Error in compareConditions: the filter should an abject with conditions and logic properties and conditions should be an array of objects');
|
|
8
|
-
}
|
|
9
|
-
let ok = filter.logic === 'AND' ? true : false;
|
|
10
|
-
each(filter.conditions, (a) => {
|
|
11
|
-
let comparator;
|
|
12
|
-
if (a.conditions && isArray(a.conditions)) {
|
|
13
|
-
comparator = compareConditions(data, a);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
comparator = compare(getProperty(data, a.field), a.value, a.operator);
|
|
17
|
-
if (comparator) {
|
|
18
|
-
let bits = a.field.split('.');
|
|
19
|
-
let prop = bits.pop();
|
|
20
|
-
if (bits.length) {
|
|
21
|
-
each(bits, (b) => (data = data[b]));
|
|
22
|
-
}
|
|
23
|
-
// Case where both are undefined: value and prop which doesn't exist; they are not the same!
|
|
24
|
-
if (getProperty(data, prop) === undefined && a.value !== undefined) {
|
|
25
|
-
comparator = false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
if (comparator) {
|
|
30
|
-
if (filter.logic === 'OR') {
|
|
31
|
-
ok = true;
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (filter.logic === 'AND') {
|
|
36
|
-
ok = false;
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return ok;
|
|
41
|
-
};
|
|
42
|
-
export { compareConditions };
|
package/dist/fn/copy.d.ts
DELETED
package/dist/fn/copy.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { isObject } from './isObject';
|
|
2
|
-
import { isFunction } from './isFunction';
|
|
3
|
-
const copy = function (st) {
|
|
4
|
-
return new Promise((resolve) => {
|
|
5
|
-
if (st) {
|
|
6
|
-
if (navigator && navigator.clipboard) {
|
|
7
|
-
if (st instanceof Blob) {
|
|
8
|
-
navigator.clipboard.write([new ClipboardItem({ [st.type.toString()]: st })]).then(() => {
|
|
9
|
-
resolve(true);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
else if (isObject(st) && isFunction(st.toBlob)) {
|
|
13
|
-
st.toBlob((blob) => {
|
|
14
|
-
navigator.clipboard.write([new ClipboardItem({ [blob.type.toString()]: blob })]).then(() => {
|
|
15
|
-
resolve(true);
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
navigator.clipboard.writeText(st);
|
|
21
|
-
resolve(true);
|
|
22
|
-
}
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
let input = document.createElement('textarea');
|
|
26
|
-
input.style.opacity = '0';
|
|
27
|
-
input.value = st;
|
|
28
|
-
document.body.appendChild(input);
|
|
29
|
-
input.select();
|
|
30
|
-
document.execCommand('copy');
|
|
31
|
-
document.body.removeChild(input);
|
|
32
|
-
resolve(true);
|
|
33
|
-
}
|
|
34
|
-
resolve(false);
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
export { copy };
|
package/dist/fn/correctCase.d.ts
DELETED
package/dist/fn/correctCase.js
DELETED
package/dist/fn/count.d.ts
DELETED
package/dist/fn/count.js
DELETED
package/dist/fn/crc32.d.ts
DELETED
package/dist/fn/crc32.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// this is a test
|
|
2
|
-
const crc32Table = [];
|
|
3
|
-
for (let i = 0; i < 256; i++) {
|
|
4
|
-
let c = i;
|
|
5
|
-
for (let j = 0; j < 8; j++) {
|
|
6
|
-
c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
|
|
7
|
-
}
|
|
8
|
-
crc32Table.push(c);
|
|
9
|
-
}
|
|
10
|
-
const crc32 = function (str) {
|
|
11
|
-
let crc = 0 ^ -1;
|
|
12
|
-
for (let i = 0; i < str.length; i++) {
|
|
13
|
-
const charCode = str.charCodeAt(i);
|
|
14
|
-
crc = (crc >>> 8) ^ crc32Table[(crc ^ charCode) & 0xff];
|
|
15
|
-
}
|
|
16
|
-
return (crc ^ -1) >>> 0; // Make sure the result is a 32-bit positive integer
|
|
17
|
-
};
|
|
18
|
-
export { crc32 };
|
package/dist/fn/createObject.js
DELETED
package/dist/fn/cssExists.d.ts
DELETED
package/dist/fn/cssExists.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//import { log } from './log';
|
|
2
|
-
import { escapeRegExp } from './escapeRegExp';
|
|
3
|
-
const cssExists = function (f) {
|
|
4
|
-
let ok;
|
|
5
|
-
let rules;
|
|
6
|
-
let css = document.styleSheets;
|
|
7
|
-
for (let sx = 0; sx < css.length; sx++) {
|
|
8
|
-
ok = 1;
|
|
9
|
-
try {
|
|
10
|
-
rules = css[sx].rules || css[sx].cssRules;
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
ok = false;
|
|
14
|
-
if (e.name !== 'SecurityError') {
|
|
15
|
-
throw e;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
if (ok) {
|
|
19
|
-
//log(rules);
|
|
20
|
-
for (let cx = 0; cx < rules.length; cx++) {
|
|
21
|
-
//log(rules[cx].selectorText);
|
|
22
|
-
if (new RegExp('(^|\\s)' + escapeRegExp(f) + '(\\{|\\s)', 'g').test(rules[cx].selectorText)) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
};
|
|
30
|
-
export { cssExists };
|
package/dist/fn/date.d.ts
DELETED
package/dist/fn/date.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isNumber } from './isNumber';
|
|
2
|
-
import { substr } from './substr';
|
|
3
|
-
import { isDate } from './isDate';
|
|
4
|
-
const date = function (v) {
|
|
5
|
-
let d = false, t = typeof v;
|
|
6
|
-
if (v === undefined) {
|
|
7
|
-
return new Date();
|
|
8
|
-
}
|
|
9
|
-
if (t === 'number' || (isNumber(v) && v !== '')) {
|
|
10
|
-
if (v < 10000000000) {
|
|
11
|
-
v = v * 1000;
|
|
12
|
-
}
|
|
13
|
-
return new Date(v);
|
|
14
|
-
}
|
|
15
|
-
if (t === 'string') {
|
|
16
|
-
if (v.length === 10) {
|
|
17
|
-
return new Date(parseInt(substr(v, 0, 4)), parseInt(substr(v, 5, 2)) - 1, parseInt(substr(v, 8, 2)), 12);
|
|
18
|
-
}
|
|
19
|
-
else if (v.length === 19) {
|
|
20
|
-
return new Date(parseInt(substr(v, 0, 4)), parseInt(substr(v, 5, 2)) - 1, parseInt(substr(v, 8, 2)), parseInt(substr(v, 11, 2)), parseInt(substr(v, 14, 2)), parseInt(substr(v, 17, 2)));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
else if (isDate(v)) {
|
|
24
|
-
return v;
|
|
25
|
-
}
|
|
26
|
-
return d;
|
|
27
|
-
};
|
|
28
|
-
export { date };
|
package/dist/fn/dateSQL.d.ts
DELETED
package/dist/fn/dateSQL.js
DELETED
package/dist/fn/daysInMonth.d.ts
DELETED
package/dist/fn/daysInMonth.js
DELETED
package/dist/fn/deepPath.d.ts
DELETED
package/dist/fn/deepPath.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { search } from './search';
|
|
2
|
-
import { each } from './each';
|
|
3
|
-
import { isArray } from './isArray';
|
|
4
|
-
const deepPath = function (arr, filter, deepProperty, res = []) {
|
|
5
|
-
let idx;
|
|
6
|
-
let start = 0;
|
|
7
|
-
if ((idx = search(arr, filter, start)) > -1) {
|
|
8
|
-
res.push(idx);
|
|
9
|
-
return res;
|
|
10
|
-
}
|
|
11
|
-
each(arr, (it, i) => {
|
|
12
|
-
if (isArray(it[deepProperty])) {
|
|
13
|
-
let r = res.slice();
|
|
14
|
-
r.push(i);
|
|
15
|
-
let tmp = deepPath(it[deepProperty], filter, deepProperty, r);
|
|
16
|
-
if (tmp !== false) {
|
|
17
|
-
return tmp;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return false;
|
|
22
|
-
};
|
|
23
|
-
export { deepPath };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { isFunction } from './isFunction';
|
|
2
|
-
const defaultConfirmFunction = function (text, yesFn, noFn) {
|
|
3
|
-
let ok = 0;
|
|
4
|
-
if (confirm(text)) {
|
|
5
|
-
if (isFunction(yesFn)) {
|
|
6
|
-
yesFn();
|
|
7
|
-
ok = 1;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
if (!ok && isFunction(noFn)) {
|
|
11
|
-
noFn();
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export { defaultConfirmFunction };
|
package/dist/fn/deleteProp.d.ts
DELETED
package/dist/fn/deleteProp.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { checkType } from './checkType';
|
|
2
|
-
const deleteProp = 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
|
-
delete obj[prop];
|
|
6
|
-
};
|
|
7
|
-
export { deleteProp };
|
package/dist/fn/diffObj.d.ts
DELETED
package/dist/fn/diffObj.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { isDate } from './isDate';
|
|
2
|
-
import { createObject } from './createObject';
|
|
3
|
-
import { isFunction } from './isFunction';
|
|
4
|
-
import { isValue } from './isValue';
|
|
5
|
-
import { isDom } from './isDom';
|
|
6
|
-
import { numProperties } from './numProperties';
|
|
7
|
-
let diffObjProcessed = [];
|
|
8
|
-
const diffObj = function (obj1, obj2, unchanged = false, notRoot = false) {
|
|
9
|
-
if (!notRoot) {
|
|
10
|
-
diffObjProcessed = [];
|
|
11
|
-
}
|
|
12
|
-
let VALUE_CREATED = 'created', VALUE_UPDATED = 'updated', VALUE_DELETED = 'deleted', VALUE_UNCHANGED = 'unchanged', _compareValues = function (value1, value2) {
|
|
13
|
-
if (value1 === value2) {
|
|
14
|
-
return VALUE_UNCHANGED;
|
|
15
|
-
}
|
|
16
|
-
if (isDate(value1) && isDate(value2) && value1.getTime() === value2.getTime()) {
|
|
17
|
-
return VALUE_UNCHANGED;
|
|
18
|
-
}
|
|
19
|
-
if ('undefined' == typeof value1) {
|
|
20
|
-
return VALUE_CREATED;
|
|
21
|
-
}
|
|
22
|
-
if ('undefined' == typeof value2) {
|
|
23
|
-
return VALUE_DELETED;
|
|
24
|
-
}
|
|
25
|
-
return VALUE_UPDATED;
|
|
26
|
-
};
|
|
27
|
-
if (notRoot === undefined) {
|
|
28
|
-
notRoot = false;
|
|
29
|
-
}
|
|
30
|
-
let diff = createObject();
|
|
31
|
-
if (!isFunction(obj1) && !isFunction(obj2)) {
|
|
32
|
-
if (isValue(obj1) || isValue(obj2)) {
|
|
33
|
-
let res = _compareValues(obj1, obj2);
|
|
34
|
-
if (unchanged || res !== VALUE_UNCHANGED) {
|
|
35
|
-
let ret = createObject();
|
|
36
|
-
Object.defineProperty(ret, 'type', {
|
|
37
|
-
value: res,
|
|
38
|
-
enumerable: false,
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(ret, 'data', {
|
|
41
|
-
value: obj1 === undefined ? obj2 : obj1,
|
|
42
|
-
enumerable: false,
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(ret, '_bbnDiffObjProof', {
|
|
45
|
-
value: true,
|
|
46
|
-
enumerable: false,
|
|
47
|
-
});
|
|
48
|
-
if (obj1 !== undefined) {
|
|
49
|
-
Object.defineProperty(ret, 'newData', {
|
|
50
|
-
value: obj2,
|
|
51
|
-
enumerable: false,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
return ret;
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
if (isDom(obj1) || isDom(obj2)) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
if (diffObjProcessed.includes(obj1) || diffObjProcessed.includes(obj2)) {
|
|
62
|
-
//error(bbn._("Can't compare objects because they contain circular references"));
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
diffObjProcessed.push(obj1, obj2);
|
|
66
|
-
for (let key in obj1) {
|
|
67
|
-
if (isFunction(obj1[key])) {
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
let value2 = undefined;
|
|
71
|
-
if ('undefined' != typeof obj2[key]) {
|
|
72
|
-
value2 = obj2[key];
|
|
73
|
-
}
|
|
74
|
-
let res = diffObj(obj1[key], value2, unchanged, true);
|
|
75
|
-
if (res) {
|
|
76
|
-
diff[key] = res;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
for (let key in obj2) {
|
|
80
|
-
if (isFunction(obj2[key]) || 'undefined' != typeof obj1[key]) {
|
|
81
|
-
continue;
|
|
82
|
-
}
|
|
83
|
-
let res = diffObj(undefined, obj2[key], unchanged, true);
|
|
84
|
-
if (res) {
|
|
85
|
-
diff[key] = res;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return !notRoot || unchanged || numProperties(diff) ? diff : false;
|
|
90
|
-
};
|
|
91
|
-
export { diffObj };
|
package/dist/fn/dirName.d.ts
DELETED
package/dist/fn/dirName.js
DELETED
|
@@ -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 };
|
package/dist/fn/download.d.ts
DELETED
package/dist/fn/download.js
DELETED
|
@@ -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,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