@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.
Files changed (150) hide show
  1. package/dist/_.js +1 -1
  2. package/dist/bundle.js +770 -770
  3. package/dist/db.js +4 -4
  4. package/dist/fn/ajax/_addLoader.js +1 -1
  5. package/dist/fn/ajax/_deleteLoader.js +3 -3
  6. package/dist/fn/ajax/abort.js +1 -1
  7. package/dist/fn/ajax/abortURL.js +2 -2
  8. package/dist/fn/ajax/ajax.js +9 -9
  9. package/dist/fn/ajax/callback.js +3 -3
  10. package/dist/fn/ajax/download.js +6 -6
  11. package/dist/fn/ajax/downloadContent.js +4 -4
  12. package/dist/fn/ajax/getLoader.js +1 -1
  13. package/dist/fn/ajax/getRequestId.js +2 -2
  14. package/dist/fn/ajax/link.js +8 -8
  15. package/dist/fn/ajax/post.js +3 -3
  16. package/dist/fn/ajax/postOut.js +3 -3
  17. package/dist/fn/ajax/setNavigationVars.js +4 -4
  18. package/dist/fn/ajax/treatAjaxArguments.js +4 -4
  19. package/dist/fn/ajax/upload.js +2 -2
  20. package/dist/fn/browser/copy.js +2 -2
  21. package/dist/fn/browser/error.js +1 -1
  22. package/dist/fn/browser/getEventData.js +2 -2
  23. package/dist/fn/browser/happy.js +1 -1
  24. package/dist/fn/browser/info.js +1 -1
  25. package/dist/fn/browser/isDesktopDevice.js +1 -1
  26. package/dist/fn/browser/isMobile.js +2 -2
  27. package/dist/fn/browser/isMobileDevice.js +1 -1
  28. package/dist/fn/browser/isTabletDevice.js +1 -1
  29. package/dist/fn/browser/log.js +1 -1
  30. package/dist/fn/browser/toggleFullScreen.js +1 -1
  31. package/dist/fn/browser/warning.js +1 -1
  32. package/dist/fn/convert/imgToBase64.js +1 -1
  33. package/dist/fn/convert/toCSV.js +3 -3
  34. package/dist/fn/datetime/calendar.js +4 -4
  35. package/dist/fn/datetime/chrono.js +1 -1
  36. package/dist/fn/datetime/date.js +3 -3
  37. package/dist/fn/datetime/dateSQL.js +1 -1
  38. package/dist/fn/datetime/daysInMonth.js +1 -1
  39. package/dist/fn/datetime/fdate.js +4 -4
  40. package/dist/fn/datetime/fdatetime.js +3 -3
  41. package/dist/fn/datetime/ftime.js +3 -3
  42. package/dist/fn/datetime/getDay.js +1 -1
  43. package/dist/fn/default/defaultAjaxAbortFunction.js +1 -1
  44. package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
  45. package/dist/fn/default/defaultConfirmFunction.js +1 -1
  46. package/dist/fn/default/defaultErrorFunction.js +1 -1
  47. package/dist/fn/default/defaultPreLinkFunction.js +1 -1
  48. package/dist/fn/form/addInputs.js +1 -1
  49. package/dist/fn/form/formdata.js +4 -4
  50. package/dist/fn/form/objectToFormData.js +5 -5
  51. package/dist/fn/form/submit.js +2 -2
  52. package/dist/fn/html/adjustHeight.js +2 -2
  53. package/dist/fn/html/adjustSize.js +1 -1
  54. package/dist/fn/html/adjustWidth.js +2 -2
  55. package/dist/fn/html/getAllTags.js +1 -1
  56. package/dist/fn/html/getAttributes.js +1 -1
  57. package/dist/fn/html/getHTMLOfSelection.js +1 -1
  58. package/dist/fn/html/getHtml.js +1 -1
  59. package/dist/fn/html/getPath.js +1 -1
  60. package/dist/fn/html/isInside.js +3 -3
  61. package/dist/fn/html/makeReactive.js +8 -8
  62. package/dist/fn/init.js +11 -11
  63. package/dist/fn/loop/each.js +3 -3
  64. package/dist/fn/loop/fori.js +2 -2
  65. package/dist/fn/loop/forir.js +2 -2
  66. package/dist/fn/loop/iterate.js +1 -1
  67. package/dist/fn/loop/riterate.js +1 -1
  68. package/dist/fn/misc/analyzeFunction.js +1 -1
  69. package/dist/fn/misc/money.js +1 -1
  70. package/dist/fn/misc/translate.js +1 -1
  71. package/dist/fn/object/_compareValues.js +4 -4
  72. package/dist/fn/object/arrayFromProp.js +2 -2
  73. package/dist/fn/object/autoExtend.js +1 -1
  74. package/dist/fn/object/checkProps.js +1 -1
  75. package/dist/fn/object/checkPropsDetails.js +4 -4
  76. package/dist/fn/object/checkPropsOrDie.js +1 -1
  77. package/dist/fn/object/circularReplacer.js +3 -3
  78. package/dist/fn/object/clone.js +3 -3
  79. package/dist/fn/object/compare.js +5 -5
  80. package/dist/fn/object/compareConditions.js +4 -4
  81. package/dist/fn/object/count.js +1 -1
  82. package/dist/fn/object/createObject.js +1 -1
  83. package/dist/fn/object/deepPath.js +3 -3
  84. package/dist/fn/object/deleteProp.js +1 -1
  85. package/dist/fn/object/diffObj.js +6 -6
  86. package/dist/fn/object/extend.js +4 -4
  87. package/dist/fn/object/extendOut.js +1 -1
  88. package/dist/fn/object/filter.js +3 -3
  89. package/dist/fn/object/filterToConditions.js +3 -3
  90. package/dist/fn/object/findAll.js +3 -3
  91. package/dist/fn/object/getField.js +1 -1
  92. package/dist/fn/object/getFieldValues.js +3 -3
  93. package/dist/fn/object/getProp.js +1 -1
  94. package/dist/fn/object/getRow.js +1 -1
  95. package/dist/fn/object/map.js +1 -1
  96. package/dist/fn/object/multiorder.js +1 -1
  97. package/dist/fn/object/order.js +1 -1
  98. package/dist/fn/object/removeEmpty.js +3 -3
  99. package/dist/fn/object/removePrivateProp.js +1 -1
  100. package/dist/fn/object/search.js +5 -5
  101. package/dist/fn/object/setProperty.js +1 -1
  102. package/dist/fn/object/shortenObj.js +4 -4
  103. package/dist/fn/object/sum.js +2 -2
  104. package/dist/fn/string/baseName.js +2 -2
  105. package/dist/fn/string/br2nl.js +1 -1
  106. package/dist/fn/string/dirName.js +2 -2
  107. package/dist/fn/string/escapeDquotes.js +1 -1
  108. package/dist/fn/string/escapeSquotes.js +1 -1
  109. package/dist/fn/string/escapeTicks.js +1 -1
  110. package/dist/fn/string/escapeUrl.js +4 -4
  111. package/dist/fn/string/fileExt.js +1 -1
  112. package/dist/fn/string/format.js +1 -1
  113. package/dist/fn/string/formatSize.js +2 -2
  114. package/dist/fn/string/hash.js +5 -5
  115. package/dist/fn/string/nl2br.js +1 -1
  116. package/dist/fn/string/quotes2html.js +1 -1
  117. package/dist/fn/string/randomString.js +1 -1
  118. package/dist/fn/string/removeAccents.js +2 -2
  119. package/dist/fn/string/removeHtmlComments.js +1 -1
  120. package/dist/fn/string/removeTrailingChars.js +1 -1
  121. package/dist/fn/string/replaceAll.js +2 -2
  122. package/dist/fn/string/sanitize.js +2 -2
  123. package/dist/fn/string/shorten.js +2 -2
  124. package/dist/fn/string/simpleHash.js +2 -2
  125. package/dist/fn/string/substr.js +3 -3
  126. package/dist/fn/string/trim.js +1 -1
  127. package/dist/fn/string/uniqString.js +3 -3
  128. package/dist/fn/style/addColors.js +2 -2
  129. package/dist/fn/style/addStyle.js +2 -2
  130. package/dist/fn/style/cssExists.js +2 -2
  131. package/dist/fn/style/outerHeight.js +1 -1
  132. package/dist/fn/style/outerWidth.js +1 -1
  133. package/dist/fn/style/resize.js +2 -2
  134. package/dist/fn/type/checkType.js +7 -7
  135. package/dist/fn/type/isColor.js +1 -1
  136. package/dist/fn/type/isCp.js +1 -1
  137. package/dist/fn/type/isDimension.js +1 -1
  138. package/dist/fn/type/isEmail.js +1 -1
  139. package/dist/fn/type/isEmpty.js +2 -2
  140. package/dist/fn/type/isHostname.js +2 -2
  141. package/dist/fn/type/isIP.js +1 -1
  142. package/dist/fn/type/isPropSize.js +1 -1
  143. package/dist/fn/type/isSame.js +2 -2
  144. package/dist/fn/type/isValidDimension.js +2 -2
  145. package/dist/fn/type/isValidName.js +1 -1
  146. package/dist/fn/type/isValue.js +1 -1
  147. package/dist/fn.d.ts +3 -3
  148. package/dist/fn.js +226 -226
  149. package/dist/index.js +6 -6
  150. package/package.json +1 -1
package/dist/db.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ } from './_';
2
- import { each } from './fn/loop/each';
3
- import { iterate } from './fn/loop/iterate';
4
- import { log } from './fn/browser/log';
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,4 +1,4 @@
1
- import { substr } from "../string/substr";
1
+ import { substr } from "../string/substr.js";
2
2
  /**
3
3
  * Creates and adds a "loader" object to the property bbn.env.loaders.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { search } from '../object/search';
2
- import { getRow } from '../object/getRow';
3
- import { isObject } from '../type/isObject';
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
  *
@@ -1,4 +1,4 @@
1
- import { getLoader } from './getLoader';
1
+ import { getLoader } from "./getLoader.js";
2
2
  /**
3
3
  * Aborts (client side) the XHR corresponding to the given ID if it still exists.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { each } from '../loop/each';
2
- import { filter } from '../object/filter';
1
+ import { each } from "../loop/each.js";
2
+ import { filter } from "../object/filter.js";
3
3
  /**
4
4
  * Aborts (client side) all the XHR using the given URL if it still exists.
5
5
  *
@@ -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
  *
@@ -1,6 +1,6 @@
1
- import { error } from '../browser/error';
2
- import { isFunction } from '../type/isFunction';
3
- import { log } from '../browser/log';
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
  *
@@ -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 '../type/isCanvas';
2
- import { isObject } from '../type/isObject';
3
- import { isString } from '../type/isString';
4
- import { log } from '../browser/log';
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,4 +1,4 @@
1
- import { search } from '../object/search';
1
+ import { search } from "../object/search.js";
2
2
  /**
3
3
  * Finds the loader object corresponding to the given unique ID and returns it if found.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { iterate } from '../loop/iterate';
2
- import { md5 } from '../string/md5';
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
  *
@@ -1,11 +1,11 @@
1
- import { treatAjaxArguments } from './treatAjaxArguments';
2
- import { getLoader } from './getLoader';
3
- import { ajax } from './ajax';
4
- import { log } from '../browser/log';
5
- import { extend } from '../object/extend';
6
- import { isObject } from '../type/isObject';
7
- import { callback } from './callback';
8
- import { setNavigationVars } from './setNavigationVars';
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
  *
@@ -1,6 +1,6 @@
1
- import { treatAjaxArguments } from './treatAjaxArguments';
2
- import { ajax } from './ajax';
3
- import { callback } from './callback';
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
  *
@@ -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 '../string/substr';
2
- import { filter } from '../object/filter';
3
- import { extend } from '../object/extend';
4
- import { html2text } from '../html/html2text';
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
  *
@@ -1,5 +1,5 @@
1
- import { objectToFormData } from '../form/objectToFormData';
2
- import { log } from '../browser/log';
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
  *
@@ -1,5 +1,5 @@
1
- import { isObject } from '../type/isObject';
2
- import { isFunction } from '../type/isFunction';
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
@@ -1,4 +1,4 @@
1
- import { log } from './log';
1
+ import { log } from "./log.js";
2
2
  /**
3
3
  * Throws an error.
4
4
  * @method error
@@ -1,5 +1,5 @@
1
- import { getHTMLOfSelection } from '../html/getHTMLOfSelection';
2
- import { each } from '../loop/each';
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
@@ -1,4 +1,4 @@
1
- import { log } from './log';
1
+ import { log } from "./log.js";
2
2
  /**
3
3
  * Logs the given argument in the browser's console highlighting it with a green background.
4
4
  * @method happy
@@ -1,4 +1,4 @@
1
- import { log } from './log';
1
+ import { log } from "./log.js";
2
2
  /**
3
3
  * Logs the given argument in the browser's console highlighting it with a blue background.
4
4
  * @method info
@@ -1,4 +1,4 @@
1
- import { getDeviceType } from '../browser/getDeviceType';
1
+ import { getDeviceType } from "../browser/getDeviceType.js";
2
2
  /**
3
3
  * Returns true if the current device type is a desktop.
4
4
  * @method isDesktopDevice
@@ -1,5 +1,5 @@
1
- import { isMobileDevice } from './isMobileDevice';
2
- import { isTabletDevice } from './isTabletDevice';
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
@@ -1,4 +1,4 @@
1
- import { getDeviceType } from '../browser/getDeviceType';
1
+ import { getDeviceType } from "../browser/getDeviceType.js";
2
2
  const isMobileDevice = function () {
3
3
  return getDeviceType() === 'mobile';
4
4
  };
@@ -1,4 +1,4 @@
1
- import { getDeviceType } from '../browser/getDeviceType';
1
+ import { getDeviceType } from "../browser/getDeviceType.js";
2
2
  /**
3
3
  * Returns true if the current device type is a tablet.
4
4
  * @method isTabletDevice
@@ -1,4 +1,4 @@
1
- import { isFunction } from '../type/isFunction';
1
+ import { isFunction } from "../type/isFunction.js";
2
2
  /**
3
3
  * Logs the given arguments in the browser's console.
4
4
  * @method log
@@ -1,4 +1,4 @@
1
- import { resize } from '../style/resize';
1
+ import { resize } from "../style/resize.js";
2
2
  const toggleFullScreen = function () {
3
3
  if ('mozRequestFullScreen' in window.document.documentElement) {
4
4
  if (window.document['mozFullScreen']) {
@@ -1,4 +1,4 @@
1
- import { log } from './log';
1
+ import { log } from "./log.js";
2
2
  /**
3
3
  * Logs the given argument in the browser's console highlighting it with a yellow background and red color.
4
4
  * @method warning
@@ -1,4 +1,4 @@
1
- import { imageToCanvas } from './imageToCanvas';
1
+ import { imageToCanvas } from "./imageToCanvas.js";
2
2
  const imgToBase64 = function (img, type = 'image/png') {
3
3
  let canvas = imageToCanvas(img);
4
4
  return canvas.toDataURL(type);
@@ -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 './fdate';
2
- import { date } from './date';
3
- import { isDate } from '../type/isDate';
4
- import { isString } from '../type/isString';
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) {
@@ -1,4 +1,4 @@
1
- import { each } from '../loop/each';
1
+ import { each } from "../loop/each.js";
2
2
  const _private = [];
3
3
  /**
4
4
  * Starts a timer and gives it a name.
@@ -1,6 +1,6 @@
1
- import { isNumber } from '../type/isNumber';
2
- import { substr } from '../string/substr';
3
- import { isDate } from '../type/isDate';
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,4 +1,4 @@
1
- import { date } from './date';
1
+ import { date } from "./date.js";
2
2
  /**
3
3
  * Returns a date with SQL format.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { date } from './date';
1
+ import { date } from "./date.js";
2
2
  /**
3
3
  * Returns the number of days of the month given in the date.
4
4
  * @method daysInMonth
@@ -1,7 +1,7 @@
1
- import { fdatetime } from './fdatetime';
2
- import { date } from './date';
3
- import { isDate } from '../type/isDate';
4
- import { isString } from '../type/isString';
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 './date';
2
- import { isDate } from '../type/isDate';
3
- import { isString } from '../type/isString';
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 './date';
2
- import { isDate } from '../type/isDate';
3
- import { isString } from '../type/isString';
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
@@ -1,4 +1,4 @@
1
- import { date } from './date';
1
+ import { date } from "./date.js";
2
2
  /**
3
3
  * @method getDay
4
4
  * @ignore
@@ -1,4 +1,4 @@
1
- import { log } from "../browser/log";
1
+ import { log } from "../browser/log.js";
2
2
  const defaultAjaxAbortFunction = function (message, url = "") {
3
3
  log(message);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { log } from '../browser/log';
1
+ import { log } from "../browser/log.js";
2
2
  const defaultAjaxErrorFunction = function (jqXHR, textStatus = null, errorThrown = null) {
3
3
  log(textStatus, errorThrown);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { isFunction } from "../type/isFunction";
1
+ import { isFunction } from "../type/isFunction.js";
2
2
  const defaultConfirmFunction = function (text, yesFn, noFn = null) {
3
3
  let ok = 0;
4
4
  if (confirm(text)) {
@@ -1,4 +1,4 @@
1
- import { log } from '../browser/log';
1
+ import { log } from "../browser/log.js";
2
2
  const defaultErrorFunction = function (message) {
3
3
  log(message);
4
4
  };
@@ -1,4 +1,4 @@
1
- import { log } from '../browser/log';
1
+ import { log } from "../browser/log.js";
2
2
  const defaultPreLinkFunction = function (url, force = false, ele = null) {
3
3
  log("defaultPreLinkFunction", url, force, ele);
4
4
  return true;
@@ -1,4 +1,4 @@
1
- import { iterate } from '../loop/iterate';
1
+ import { iterate } from "../loop/iterate.js";
2
2
  /**
3
3
  * Adds the given data to the given form by inserting hidden inputs.
4
4
  *
@@ -1,7 +1,7 @@
1
- import { each } from '../loop/each';
2
- import { fieldValue } from './fieldValue';
3
- import { replaceAll } from '../string/replaceAll';
4
- import { substr } from '../string/substr';
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 '../type/isArray';
2
- import { each } from '../loop/each';
3
- import { isObject } from '../type/isObject';
4
- import { iterate } from '../loop/iterate';
5
- import { isNull } from '../type/isNull';
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
@@ -1,5 +1,5 @@
1
- import { formdata } from './formdata';
2
- import { post } from '../ajax/post';
1
+ import { formdata } from "./formdata.js";
2
+ import { post } from "../ajax/post.js";
3
3
  /**
4
4
  * Submit a form's data through an Ajax request.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { isIterable } from '../type/isIterable';
2
- import { adjustSize } from './adjustSize';
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,4 +1,4 @@
1
- import { each } from '../loop/each';
1
+ import { each } from "../loop/each.js";
2
2
  const adjustSize = function (type, eles) {
3
3
  let max = 0, idx;
4
4
  each(eles, (el) => {
@@ -1,5 +1,5 @@
1
- import { isIterable } from '../type/isIterable';
2
- import { adjustSize } from './adjustSize';
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])) {
@@ -1,4 +1,4 @@
1
- import { unique } from '../object/unique';
1
+ import { unique } from "../object/unique.js";
2
2
  /**
3
3
  * Gets all the tag names present in the DOM
4
4
  * @returns array
@@ -1,4 +1,4 @@
1
- import { error } from '../browser/error';
1
+ import { error } from "../browser/error.js";
2
2
  /**
3
3
  * Check if the property contain sizing
4
4
  * @return {Boolean}
@@ -1,4 +1,4 @@
1
- import { log } from '../browser/log';
1
+ import { log } from "../browser/log.js";
2
2
  const getHTMLOfSelection = function () {
3
3
  let range;
4
4
  let selection = window.getSelection();
@@ -1,4 +1,4 @@
1
- import { removeHtmlComments } from '../string/removeHtmlComments';
1
+ import { removeHtmlComments } from "../string/removeHtmlComments.js";
2
2
  const getHtml = function (ele, stripComments = false) {
3
3
  let st = ele.innerHTML();
4
4
  if (stripComments) {
@@ -1,4 +1,4 @@
1
- import { replaceAll } from '../string/replaceAll';
1
+ import { replaceAll } from "../string/replaceAll.js";
2
2
  /**
3
3
  * @method getPath
4
4
  * @todo Add method description for getPath
@@ -1,6 +1,6 @@
1
- import { getAncestors } from './getAncestors';
2
- import { isString } from '../type/isString';
3
- import { each } from '../loop/each';
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 '../browser/log';
2
- import { createObject } from '../object/createObject';
3
- import { isSymbol } from '../type/isSymbol';
4
- import { isNumber } from '../type/isNumber';
5
- import { isArray } from '../type/isArray';
6
- import { warning } from '../browser/warning';
7
- import { isFunction } from '../type/isFunction';
8
- import { isSame } from '../type/isSame';
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 + '_' : '');