@bbn/bbn 1.0.90 → 1.0.91
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/_.js +1 -1
- package/dist/bundle.js +770 -770
- package/dist/db.js +4 -4
- package/dist/fn/ajax/_addLoader.js +1 -1
- package/dist/fn/ajax/_deleteLoader.js +3 -3
- package/dist/fn/ajax/abort.js +1 -1
- package/dist/fn/ajax/abortURL.js +2 -2
- package/dist/fn/ajax/ajax.js +9 -9
- package/dist/fn/ajax/callback.js +3 -3
- package/dist/fn/ajax/download.js +6 -6
- package/dist/fn/ajax/downloadContent.js +4 -4
- package/dist/fn/ajax/getLoader.js +1 -1
- package/dist/fn/ajax/getRequestId.js +2 -2
- package/dist/fn/ajax/link.js +8 -8
- package/dist/fn/ajax/post.js +3 -3
- package/dist/fn/ajax/postOut.js +3 -3
- package/dist/fn/ajax/setNavigationVars.js +4 -4
- package/dist/fn/ajax/treatAjaxArguments.js +4 -4
- package/dist/fn/ajax/upload.js +2 -2
- package/dist/fn/browser/copy.js +2 -2
- package/dist/fn/browser/error.js +1 -1
- package/dist/fn/browser/getEventData.js +2 -2
- package/dist/fn/browser/happy.js +1 -1
- package/dist/fn/browser/info.js +1 -1
- package/dist/fn/browser/isDesktopDevice.js +1 -1
- package/dist/fn/browser/isMobile.js +2 -2
- package/dist/fn/browser/isMobileDevice.js +1 -1
- package/dist/fn/browser/isTabletDevice.js +1 -1
- package/dist/fn/browser/log.js +1 -1
- package/dist/fn/browser/toggleFullScreen.js +1 -1
- package/dist/fn/browser/warning.js +1 -1
- package/dist/fn/convert/imgToBase64.js +1 -1
- package/dist/fn/convert/toCSV.js +3 -3
- package/dist/fn/datetime/calendar.js +4 -4
- package/dist/fn/datetime/chrono.js +1 -1
- package/dist/fn/datetime/date.js +3 -3
- package/dist/fn/datetime/dateSQL.js +1 -1
- package/dist/fn/datetime/daysInMonth.js +1 -1
- package/dist/fn/datetime/fdate.js +4 -4
- package/dist/fn/datetime/fdatetime.js +3 -3
- package/dist/fn/datetime/ftime.js +3 -3
- package/dist/fn/datetime/getDay.js +1 -1
- package/dist/fn/default/defaultAjaxAbortFunction.js +1 -1
- package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
- package/dist/fn/default/defaultConfirmFunction.js +1 -1
- package/dist/fn/default/defaultErrorFunction.js +1 -1
- package/dist/fn/default/defaultPreLinkFunction.js +1 -1
- package/dist/fn/form/addInputs.js +1 -1
- package/dist/fn/form/formdata.js +4 -4
- package/dist/fn/form/objectToFormData.js +5 -5
- package/dist/fn/form/submit.js +2 -2
- package/dist/fn/html/adjustHeight.js +2 -2
- package/dist/fn/html/adjustSize.js +1 -1
- package/dist/fn/html/adjustWidth.js +2 -2
- package/dist/fn/html/getAllTags.js +1 -1
- package/dist/fn/html/getAttributes.js +1 -1
- package/dist/fn/html/getHTMLOfSelection.js +1 -1
- package/dist/fn/html/getHtml.js +1 -1
- package/dist/fn/html/getPath.js +1 -1
- package/dist/fn/html/isInside.js +3 -3
- package/dist/fn/html/makeReactive.js +8 -8
- package/dist/fn/init.js +11 -11
- package/dist/fn/loop/each.js +3 -3
- package/dist/fn/loop/fori.js +2 -2
- package/dist/fn/loop/forir.js +2 -2
- package/dist/fn/loop/iterate.js +1 -1
- package/dist/fn/loop/riterate.js +1 -1
- package/dist/fn/misc/analyzeFunction.js +1 -1
- package/dist/fn/misc/money.js +1 -1
- package/dist/fn/misc/translate.js +1 -1
- package/dist/fn/object/_compareValues.js +4 -4
- package/dist/fn/object/arrayFromProp.js +2 -2
- package/dist/fn/object/autoExtend.js +1 -1
- package/dist/fn/object/checkProps.js +1 -1
- package/dist/fn/object/checkPropsDetails.js +4 -4
- package/dist/fn/object/checkPropsOrDie.js +1 -1
- package/dist/fn/object/circularReplacer.js +3 -3
- package/dist/fn/object/clone.js +3 -3
- package/dist/fn/object/compare.js +5 -5
- package/dist/fn/object/compareConditions.js +4 -4
- package/dist/fn/object/count.js +1 -1
- package/dist/fn/object/createObject.js +1 -1
- package/dist/fn/object/deepPath.js +3 -3
- package/dist/fn/object/deleteProp.js +1 -1
- package/dist/fn/object/diffObj.js +6 -6
- package/dist/fn/object/extend.js +4 -4
- package/dist/fn/object/extendOut.js +1 -1
- package/dist/fn/object/filter.js +3 -3
- package/dist/fn/object/filterToConditions.js +3 -3
- package/dist/fn/object/findAll.js +3 -3
- package/dist/fn/object/getField.js +1 -1
- package/dist/fn/object/getFieldValues.js +3 -3
- package/dist/fn/object/getProp.js +1 -1
- package/dist/fn/object/getRow.js +1 -1
- package/dist/fn/object/map.js +1 -1
- package/dist/fn/object/multiorder.js +1 -1
- package/dist/fn/object/order.js +1 -1
- package/dist/fn/object/removeEmpty.js +3 -3
- package/dist/fn/object/removePrivateProp.js +1 -1
- package/dist/fn/object/search.js +5 -5
- package/dist/fn/object/setProperty.js +1 -1
- package/dist/fn/object/shortenObj.js +4 -4
- package/dist/fn/object/sum.js +2 -2
- package/dist/fn/string/baseName.js +2 -2
- package/dist/fn/string/br2nl.js +1 -1
- package/dist/fn/string/dirName.js +2 -2
- package/dist/fn/string/escapeDquotes.js +1 -1
- package/dist/fn/string/escapeSquotes.js +1 -1
- package/dist/fn/string/escapeTicks.js +1 -1
- package/dist/fn/string/escapeUrl.js +4 -4
- package/dist/fn/string/fileExt.js +1 -1
- package/dist/fn/string/format.js +1 -1
- package/dist/fn/string/formatSize.js +2 -2
- package/dist/fn/string/hash.js +5 -5
- package/dist/fn/string/nl2br.js +1 -1
- package/dist/fn/string/quotes2html.js +1 -1
- package/dist/fn/string/randomString.js +1 -1
- package/dist/fn/string/removeAccents.js +2 -2
- package/dist/fn/string/removeHtmlComments.js +1 -1
- package/dist/fn/string/removeTrailingChars.js +1 -1
- package/dist/fn/string/replaceAll.js +2 -2
- package/dist/fn/string/sanitize.js +2 -2
- package/dist/fn/string/shorten.js +2 -2
- package/dist/fn/string/simpleHash.js +2 -2
- package/dist/fn/string/substr.js +3 -3
- package/dist/fn/string/trim.js +1 -1
- package/dist/fn/string/uniqString.js +3 -3
- package/dist/fn/style/addColors.js +2 -2
- package/dist/fn/style/addStyle.js +2 -2
- package/dist/fn/style/cssExists.js +2 -2
- package/dist/fn/style/outerHeight.js +1 -1
- package/dist/fn/style/outerWidth.js +1 -1
- package/dist/fn/style/resize.js +2 -2
- package/dist/fn/type/checkType.js +7 -7
- package/dist/fn/type/isColor.js +1 -1
- package/dist/fn/type/isCp.js +1 -1
- package/dist/fn/type/isDimension.js +1 -1
- package/dist/fn/type/isEmail.js +1 -1
- package/dist/fn/type/isEmpty.js +2 -2
- package/dist/fn/type/isHostname.js +2 -2
- package/dist/fn/type/isIP.js +1 -1
- package/dist/fn/type/isPropSize.js +1 -1
- package/dist/fn/type/isSame.js +2 -2
- package/dist/fn/type/isValidDimension.js +2 -2
- package/dist/fn/type/isValidName.js +1 -1
- package/dist/fn/type/isValue.js +1 -1
- package/dist/fn.d.ts +3 -3
- package/dist/fn.js +226 -226
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/fn/string/substr.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isString } from "../type/isString";
|
|
2
|
-
import { isInt } from "../type/isInt";
|
|
3
|
-
import { log } from "../browser/log";
|
|
1
|
+
import { isString } from "../type/isString.js";
|
|
2
|
+
import { isInt } from "../type/isInt.js";
|
|
3
|
+
import { log } from "../browser/log.js";
|
|
4
4
|
/**
|
|
5
5
|
* Basic substring function accepting both positive and negative values.
|
|
6
6
|
*
|
package/dist/fn/string/trim.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isArray } from "../type/isArray";
|
|
2
|
-
import { each } from "../loop/each";
|
|
3
|
-
import { md5 } from "./md5";
|
|
1
|
+
import { isArray } from "../type/isArray.js";
|
|
2
|
+
import { each } from "../loop/each.js";
|
|
3
|
+
import { md5 } from "./md5.js";
|
|
4
4
|
/**
|
|
5
5
|
* Create a unique string in md5 format.
|
|
6
6
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { numProperties } from "../object/numProperties";
|
|
2
|
-
import { iterate } from "../loop/iterate";
|
|
1
|
+
import { numProperties } from "../object/numProperties.js";
|
|
2
|
+
import { iterate } from "../loop/iterate.js";
|
|
3
3
|
/**
|
|
4
4
|
* Adds the given color to the object bbn.var.colors in order to be able to use
|
|
5
5
|
* the css classes bbn-bg-myColor for the background and bbn-myColor for the text color.
|
package/dist/fn/style/resize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCssVar } from
|
|
2
|
-
import { each } from
|
|
1
|
+
import { getCssVar } from "./getCssVar.js";
|
|
2
|
+
import { each } from "../loop/each.js";
|
|
3
3
|
const resize = function () {
|
|
4
4
|
let diffW = bbn.env.width !== window.innerWidth;
|
|
5
5
|
let diffH = bbn.env.height !== window.innerHeight;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isArray } from
|
|
2
|
-
import { each } from
|
|
3
|
-
import { isFunction } from
|
|
4
|
-
import { isString } from
|
|
5
|
-
import { correctCase } from
|
|
6
|
-
import { error } from
|
|
7
|
-
import { log } from
|
|
1
|
+
import { isArray } from "./isArray.js";
|
|
2
|
+
import { each } from "../loop/each.js";
|
|
3
|
+
import { isFunction } from "./isFunction.js";
|
|
4
|
+
import { isString } from "./isString.js";
|
|
5
|
+
import { correctCase } from "../string/correctCase.js";
|
|
6
|
+
import { error } from "../browser/error.js";
|
|
7
|
+
import { log } from "../browser/log.js";
|
|
8
8
|
const checkType = function (value, type, msg, ...logs) {
|
|
9
9
|
let ok = false;
|
|
10
10
|
if (!isArray(type)) {
|
package/dist/fn/type/isColor.js
CHANGED
package/dist/fn/type/isCp.js
CHANGED
package/dist/fn/type/isEmail.js
CHANGED
package/dist/fn/type/isEmpty.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isArray } from "./isArray";
|
|
2
|
-
import { numProperties } from "../object/numProperties";
|
|
1
|
+
import { isArray } from "./isArray.js";
|
|
2
|
+
import { numProperties } from "../object/numProperties.js";
|
|
3
3
|
/**
|
|
4
4
|
* Checks if the argument is empty or not.
|
|
5
5
|
* @method isEmpty
|
package/dist/fn/type/isIP.js
CHANGED
package/dist/fn/type/isSame.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isNumber } from "./isNumber";
|
|
2
|
-
import { substr } from "../string/substr";
|
|
1
|
+
import { isNumber } from "./isNumber.js";
|
|
2
|
+
import { substr } from "../string/substr.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if the given value is a valid CSS dimension string, false otherwise.
|
|
5
5
|
*
|
package/dist/fn/type/isValue.js
CHANGED
package/dist/fn.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ declare const fn: {
|
|
|
83
83
|
fdatetime: (d: any, wrong_result?: boolean) => any;
|
|
84
84
|
fieldValue: (field: any) => any;
|
|
85
85
|
fileExt: (filename: any) => any;
|
|
86
|
-
filter: (arr: any[], prop: string | object | import("./fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
|
|
87
|
-
filterToConditions: (filter: any, operator?: string) => import("./fn/object/filterToConditions").Filter;
|
|
86
|
+
filter: (arr: any[], prop: string | object | import("./fn/object/filterToConditions.js").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
|
|
87
|
+
filterToConditions: (filter: any, operator?: string) => import("./fn/object/filterToConditions.js").Filter;
|
|
88
88
|
findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
|
|
89
89
|
fori: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
90
90
|
forir: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
@@ -210,7 +210,7 @@ declare const fn: {
|
|
|
210
210
|
riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
|
|
211
211
|
roundDecimal: (value: number, decimals: number) => number;
|
|
212
212
|
sanitize: (str: any, separator?: string) => any;
|
|
213
|
-
search: (arr: any[], prop: string | object | import("./fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string | number, startFrom?: number) => number;
|
|
213
|
+
search: (arr: any[], prop: string | object | import("./fn/object/filterToConditions.js").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string | number, startFrom?: number) => number;
|
|
214
214
|
selectElementText: (ele: any, win?: any) => void;
|
|
215
215
|
selector: (ele: any) => any;
|
|
216
216
|
setCookie: (name: any, value: any, days: any) => void;
|