@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/db.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ } from
|
|
2
|
-
import { each } from
|
|
3
|
-
import { iterate } from
|
|
4
|
-
import { log } from
|
|
1
|
+
import { _ } from "./_.js";
|
|
2
|
+
import { each } from "./fn/loop/each.js";
|
|
3
|
+
import { iterate } from "./fn/loop/iterate.js";
|
|
4
|
+
import { log } from "./fn/browser/log.js";
|
|
5
5
|
const idb = window['indexedDB'] || window['webkitIndexedDB'] || window['mozIndexedDB'] || window['OIndexedDB'] || window['msIndexedDB'];
|
|
6
6
|
const dbObject = function (dbName) {
|
|
7
7
|
const conn = db._connections[dbName];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { search } from
|
|
2
|
-
import { getRow } from
|
|
3
|
-
import { isObject } from
|
|
1
|
+
import { search } from "../object/search.js";
|
|
2
|
+
import { getRow } from "../object/getRow.js";
|
|
3
|
+
import { isObject } from "../type/isObject.js";
|
|
4
4
|
/**
|
|
5
5
|
* Deletes a loader and changes its history state after the promise is fullfilled.
|
|
6
6
|
*
|
package/dist/fn/ajax/abort.js
CHANGED
package/dist/fn/ajax/abortURL.js
CHANGED
package/dist/fn/ajax/ajax.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isObject } from "../type/isObject";
|
|
2
|
-
import { replaceAll } from "../string/replaceAll";
|
|
3
|
-
import { getRequestId } from "./getRequestId";
|
|
4
|
-
import { getLoader } from "./getLoader";
|
|
5
|
-
import { extend } from "../object/extend";
|
|
6
|
-
import { numProperties } from "../object/numProperties";
|
|
7
|
-
import { _deleteLoader } from "./_deleteLoader";
|
|
8
|
-
import { isFunction } from "../type/isFunction";
|
|
9
|
-
import { _addLoader } from "./_addLoader";
|
|
1
|
+
import { isObject } from "../type/isObject.js";
|
|
2
|
+
import { replaceAll } from "../string/replaceAll.js";
|
|
3
|
+
import { getRequestId } from "./getRequestId.js";
|
|
4
|
+
import { getLoader } from "./getLoader.js";
|
|
5
|
+
import { extend } from "../object/extend.js";
|
|
6
|
+
import { numProperties } from "../object/numProperties.js";
|
|
7
|
+
import { _deleteLoader } from "./_deleteLoader.js";
|
|
8
|
+
import { isFunction } from "../type/isFunction.js";
|
|
9
|
+
import { _addLoader } from "./_addLoader.js";
|
|
10
10
|
/**
|
|
11
11
|
* Creates an XHR object and returns the Promise.
|
|
12
12
|
*
|
package/dist/fn/ajax/callback.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { error } from
|
|
2
|
-
import { isFunction } from
|
|
3
|
-
import { log } from
|
|
1
|
+
import { error } from "../browser/error.js";
|
|
2
|
+
import { isFunction } from "../type/isFunction.js";
|
|
3
|
+
import { log } from "../browser/log.js";
|
|
4
4
|
/**
|
|
5
5
|
* Executes a serie of predefined actions once an Ajax request has been done.
|
|
6
6
|
*
|
package/dist/fn/ajax/download.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ajax } from "./ajax";
|
|
2
|
-
import { substr } from "../string/substr";
|
|
3
|
-
import { baseName } from "../string/baseName";
|
|
4
|
-
import { isBlob } from "../type/isBlob";
|
|
5
|
-
import { fileExt } from "../string/fileExt";
|
|
6
|
-
import { downloadContent } from "./downloadContent";
|
|
1
|
+
import { ajax } from "./ajax.js";
|
|
2
|
+
import { substr } from "../string/substr.js";
|
|
3
|
+
import { baseName } from "../string/baseName.js";
|
|
4
|
+
import { isBlob } from "../type/isBlob.js";
|
|
5
|
+
import { fileExt } from "../string/fileExt.js";
|
|
6
|
+
import { downloadContent } from "./downloadContent.js";
|
|
7
7
|
/**
|
|
8
8
|
* Downloads a file with given filename from a URL.
|
|
9
9
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isCanvas } from
|
|
2
|
-
import { isObject } from
|
|
3
|
-
import { isString } from
|
|
4
|
-
import { log } from
|
|
1
|
+
import { isCanvas } from "../type/isCanvas.js";
|
|
2
|
+
import { isObject } from "../type/isObject.js";
|
|
3
|
+
import { isString } from "../type/isString.js";
|
|
4
|
+
import { log } from "../browser/log.js";
|
|
5
5
|
/**
|
|
6
6
|
* Downloads a file with given filename from the given content.
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { iterate } from
|
|
2
|
-
import { md5 } from
|
|
1
|
+
import { iterate } from "../loop/iterate.js";
|
|
2
|
+
import { md5 } from "../string/md5.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns a unique ID for a "loader" based on the URL, the data keys and the datatype.
|
|
5
5
|
*
|
package/dist/fn/ajax/link.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { treatAjaxArguments } from
|
|
2
|
-
import { getLoader } from
|
|
3
|
-
import { ajax } from
|
|
4
|
-
import { log } from
|
|
5
|
-
import { extend } from
|
|
6
|
-
import { isObject } from
|
|
7
|
-
import { callback } from
|
|
8
|
-
import { setNavigationVars } from
|
|
1
|
+
import { treatAjaxArguments } from "./treatAjaxArguments.js";
|
|
2
|
+
import { getLoader } from "./getLoader.js";
|
|
3
|
+
import { ajax } from "./ajax.js";
|
|
4
|
+
import { log } from "../browser/log.js";
|
|
5
|
+
import { extend } from "../object/extend.js";
|
|
6
|
+
import { isObject } from "../type/isObject.js";
|
|
7
|
+
import { callback } from "./callback.js";
|
|
8
|
+
import { setNavigationVars } from "./setNavigationVars.js";
|
|
9
9
|
/**
|
|
10
10
|
* Follows a link and if needed by sending the corresponding Ajax request and executing bbn.fn.defaultPreLinkFunction.
|
|
11
11
|
*
|
package/dist/fn/ajax/post.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { treatAjaxArguments } from
|
|
2
|
-
import { ajax } from
|
|
3
|
-
import { callback } from
|
|
1
|
+
import { treatAjaxArguments } from "./treatAjaxArguments.js";
|
|
2
|
+
import { ajax } from "./ajax.js";
|
|
3
|
+
import { callback } from "./callback.js";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a POST XHR through bbn.fn.ajax then launches bbn.fn.callback with the result.
|
|
6
6
|
*
|
package/dist/fn/ajax/postOut.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createObject } from "../object/createObject";
|
|
2
|
-
import { addInputs } from "../form/addInputs";
|
|
3
|
-
import { setProperty } from "../object/setProperty";
|
|
1
|
+
import { createObject } from "../object/createObject.js";
|
|
2
|
+
import { addInputs } from "../form/addInputs.js";
|
|
3
|
+
import { setProperty } from "../object/setProperty.js";
|
|
4
4
|
/**
|
|
5
5
|
* Posts a request in a new window.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { substr } from
|
|
2
|
-
import { filter } from
|
|
3
|
-
import { extend } from
|
|
4
|
-
import { html2text } from
|
|
1
|
+
import { substr } from "../string/substr.js";
|
|
2
|
+
import { filter } from "../object/filter.js";
|
|
3
|
+
import { extend } from "../object/extend.js";
|
|
4
|
+
import { html2text } from "../html/html2text.js";
|
|
5
5
|
/**
|
|
6
6
|
* Changes the URL and the associated variables and updates the history.
|
|
7
7
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isObject } from "../type/isObject";
|
|
2
|
-
import { isFunction } from "../type/isFunction";
|
|
3
|
-
import { substr } from "../string/substr";
|
|
4
|
-
import { numProperties } from "../object/numProperties";
|
|
1
|
+
import { isObject } from "../type/isObject.js";
|
|
2
|
+
import { isFunction } from "../type/isFunction.js";
|
|
3
|
+
import { substr } from "../string/substr.js";
|
|
4
|
+
import { numProperties } from "../object/numProperties.js";
|
|
5
5
|
/**
|
|
6
6
|
* Transforms unordered arguments into a configuratiuon object for Ajax shortcut functions.
|
|
7
7
|
*
|
package/dist/fn/ajax/upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { objectToFormData } from
|
|
2
|
-
import { log } from
|
|
1
|
+
import { objectToFormData } from "../form/objectToFormData.js";
|
|
2
|
+
import { log } from "../browser/log.js";
|
|
3
3
|
/**
|
|
4
4
|
* Uploads a file synchronously through an XHR indicating progress.
|
|
5
5
|
*
|
package/dist/fn/browser/copy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isObject } from
|
|
2
|
-
import { isFunction } from
|
|
1
|
+
import { isObject } from "../type/isObject.js";
|
|
2
|
+
import { isFunction } from "../type/isFunction.js";
|
|
3
3
|
/**
|
|
4
4
|
* Copies to the clipboard the value of the given string.
|
|
5
5
|
* @method copy
|
package/dist/fn/browser/error.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getHTMLOfSelection } from
|
|
2
|
-
import { each } from
|
|
1
|
+
import { getHTMLOfSelection } from "../html/getHTMLOfSelection.js";
|
|
2
|
+
import { each } from "../loop/each.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns a promise having the event's data as argument.
|
|
5
5
|
* @method getEventData
|
package/dist/fn/browser/happy.js
CHANGED
package/dist/fn/browser/info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isMobileDevice } from
|
|
2
|
-
import { isTabletDevice } from
|
|
1
|
+
import { isMobileDevice } from "./isMobileDevice.js";
|
|
2
|
+
import { isTabletDevice } from "./isTabletDevice.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if the current browser is on a mobile device (smartphone or tablet).
|
|
5
5
|
* @method isMobile
|
package/dist/fn/browser/log.js
CHANGED
package/dist/fn/convert/toCSV.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { each } from "../loop/each";
|
|
2
|
-
import { isArray } from "../type/isArray";
|
|
3
|
-
import { replaceAll } from "../string/replaceAll";
|
|
1
|
+
import { each } from "../loop/each.js";
|
|
2
|
+
import { isArray } from "../type/isArray.js";
|
|
3
|
+
import { replaceAll } from "../string/replaceAll.js";
|
|
4
4
|
/**
|
|
5
5
|
* Returns a CSV string from the given array of arrays or objects.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { fdate } from
|
|
2
|
-
import { date } from
|
|
3
|
-
import { isDate } from
|
|
4
|
-
import { isString } from
|
|
1
|
+
import { fdate } from "./fdate.js";
|
|
2
|
+
import { date } from "./date.js";
|
|
3
|
+
import { isDate } from "../type/isDate.js";
|
|
4
|
+
import { isString } from "../type/isString.js";
|
|
5
5
|
dayjs.extend(window['dayjs_plugin_calendar']);
|
|
6
6
|
const calendar = function (d, wrong_result = false) {
|
|
7
7
|
if (undefined === dayjs) {
|
package/dist/fn/datetime/date.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isNumber } from
|
|
2
|
-
import { substr } from
|
|
3
|
-
import { isDate } from
|
|
1
|
+
import { isNumber } from "../type/isNumber.js";
|
|
2
|
+
import { substr } from "../string/substr.js";
|
|
3
|
+
import { isDate } from "../type/isDate.js";
|
|
4
4
|
/**
|
|
5
5
|
* Returns a date object from the given argument.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { fdatetime } from
|
|
2
|
-
import { date } from
|
|
3
|
-
import { isDate } from
|
|
4
|
-
import { isString } from
|
|
1
|
+
import { fdatetime } from "./fdatetime.js";
|
|
2
|
+
import { date } from "./date.js";
|
|
3
|
+
import { isDate } from "../type/isDate.js";
|
|
4
|
+
import { isString } from "../type/isString.js";
|
|
5
5
|
/**
|
|
6
6
|
* @method fdate
|
|
7
7
|
* @todo Add method description for fdate
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { date } from
|
|
2
|
-
import { isDate } from
|
|
3
|
-
import { isString } from
|
|
1
|
+
import { date } from "./date.js";
|
|
2
|
+
import { isDate } from "../type/isDate.js";
|
|
3
|
+
import { isString } from "../type/isString.js";
|
|
4
4
|
/**
|
|
5
5
|
* @method fdatetime
|
|
6
6
|
* @todo Add method description for fdatetime
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { date } from
|
|
2
|
-
import { isDate } from
|
|
3
|
-
import { isString } from
|
|
1
|
+
import { date } from "./date.js";
|
|
2
|
+
import { isDate } from "../type/isDate.js";
|
|
3
|
+
import { isString } from "../type/isString.js";
|
|
4
4
|
/**
|
|
5
5
|
* @method ftime
|
|
6
6
|
* @todo Add method description for ftime
|
package/dist/fn/form/formdata.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { each } from
|
|
2
|
-
import { fieldValue } from
|
|
3
|
-
import { replaceAll } from
|
|
4
|
-
import { substr } from
|
|
1
|
+
import { each } from "../loop/each.js";
|
|
2
|
+
import { fieldValue } from "./fieldValue.js";
|
|
3
|
+
import { replaceAll } from "../string/replaceAll.js";
|
|
4
|
+
import { substr } from "../string/substr.js";
|
|
5
5
|
/**
|
|
6
6
|
* Returns all the data contained in a form as a single object.
|
|
7
7
|
*
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isArray } from
|
|
2
|
-
import { each } from
|
|
3
|
-
import { isObject } from
|
|
4
|
-
import { iterate } from
|
|
5
|
-
import { isNull } from
|
|
1
|
+
import { isArray } from "../type/isArray.js";
|
|
2
|
+
import { each } from "../loop/each.js";
|
|
3
|
+
import { isObject } from "../type/isObject.js";
|
|
4
|
+
import { iterate } from "../loop/iterate.js";
|
|
5
|
+
import { isNull } from "../type/isNull.js";
|
|
6
6
|
/**
|
|
7
7
|
* @method objectToFormData
|
|
8
8
|
* @todo Add method description for objectToFormData
|
package/dist/fn/form/submit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isIterable } from
|
|
2
|
-
import { adjustSize } from
|
|
1
|
+
import { isIterable } from "../type/isIterable.js";
|
|
2
|
+
import { adjustSize } from "./adjustSize.js";
|
|
3
3
|
const adjustHeight = function () {
|
|
4
4
|
let args = arguments;
|
|
5
5
|
if (args.length === 1 && isIterable(args[0])) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isIterable } from
|
|
2
|
-
import { adjustSize } from
|
|
1
|
+
import { isIterable } from "../type/isIterable.js";
|
|
2
|
+
import { adjustSize } from "./adjustSize.js";
|
|
3
3
|
const adjustWidth = function () {
|
|
4
4
|
let args = arguments;
|
|
5
5
|
if (args.length === 1 && isIterable(args[0])) {
|
package/dist/fn/html/getHtml.js
CHANGED
package/dist/fn/html/getPath.js
CHANGED
package/dist/fn/html/isInside.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getAncestors } from
|
|
2
|
-
import { isString } from
|
|
3
|
-
import { each } from
|
|
1
|
+
import { getAncestors } from "./getAncestors.js";
|
|
2
|
+
import { isString } from "../type/isString.js";
|
|
3
|
+
import { each } from "../loop/each.js";
|
|
4
4
|
const isInside = function (ele, ancestor) {
|
|
5
5
|
let ancestors = getAncestors(ele);
|
|
6
6
|
if (ancestors.length) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { log } from
|
|
2
|
-
import { createObject } from
|
|
3
|
-
import { isSymbol } from
|
|
4
|
-
import { isNumber } from
|
|
5
|
-
import { isArray } from
|
|
6
|
-
import { warning } from
|
|
7
|
-
import { isFunction } from
|
|
8
|
-
import { isSame } from
|
|
1
|
+
import { log } from "../browser/log.js";
|
|
2
|
+
import { createObject } from "../object/createObject.js";
|
|
3
|
+
import { isSymbol } from "../type/isSymbol.js";
|
|
4
|
+
import { isNumber } from "../type/isNumber.js";
|
|
5
|
+
import { isArray } from "../type/isArray.js";
|
|
6
|
+
import { warning } from "../browser/warning.js";
|
|
7
|
+
import { isFunction } from "../type/isFunction.js";
|
|
8
|
+
import { isSame } from "../type/isSame.js";
|
|
9
9
|
const makeReactive = function (obj, onSet, parent, parentProp) {
|
|
10
10
|
const parentString = (parent === null || parent === void 0 ? void 0 : parent.$cid) || '';
|
|
11
11
|
const prefix = '__bbn_' + (parentString ? parentString + '_' : '');
|