@bbn/bbn 1.0.19 → 1.0.21
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.d.ts +376 -1
- package/dist/bundle.js +398 -231
- package/dist/index.d.ts +376 -1
- package/dist/index.js +398 -231
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -5787,237 +5787,404 @@ var bbn = (() => {
|
|
|
5787
5787
|
define("index", ["require", "exports", "fn/_addLoader", "fn/_compareValues", "fn/_deleteLoader", "fn/abort", "fn/abortURL", "fn/addColors", "fn/addInputs", "fn/addStyle", "fn/adjustHeight", "fn/adjustSize", "fn/adjustWidth", "fn/ajax", "fn/analyzeFunction", "fn/animateCss", "fn/arrayBuffer2String", "fn/arrayFromProp", "fn/autoExtend", "fn/baseName", "fn/br2nl", "fn/calendar", "fn/callback", "fn/camelize", "fn/camelToCss", "fn/canvasToImage", "fn/center", "fn/checkProps", "fn/checkPropsDetails", "fn/checkPropsOrDie", "fn/checkType", "fn/circularReplacer", "fn/clone", "fn/colorToHex", "fn/compare", "fn/compareConditions", "fn/copy", "fn/correctCase", "fn/count", "fn/crc32", "fn/createObject", "fn/cssExists", "fn/date", "fn/dateSQL", "fn/daysInMonth", "fn/deepPath", "fn/defaultAjaxAbortFunction", "fn/defaultAjaxErrorFunction", "fn/defaultAlertFunction", "fn/defaultConfirmFunction", "fn/defaultEndLoadingFunction", "fn/defaultErrorFunction", "fn/defaultHistoryFunction", "fn/defaultLinkFunction", "fn/defaultPostLinkFunction", "fn/defaultPreLinkFunction", "fn/defaultResizeFunction", "fn/defaultStartLoadingFunction", "fn/deleteProp", "fn/diffObj", "fn/dirName", "fn/download", "fn/downloadContent", "fn/each", "fn/eraseCookie", "fn/error", "fn/escapeDquotes", "fn/escapeRegExp", "fn/escapeSquotes", "fn/escapeTicks", "fn/escapeUrl", "fn/extend", "fn/extendOut", "fn/fdate", "fn/fdatetime", "fn/fieldValue", "fn/fileExt", "fn/filter", "fn/filterToConditions", "fn/findAll", "fn/fori", "fn/forir", "fn/format", "fn/formatBytes", "fn/formatDate", "fn/formatSize", "fn/formdata", "fn/fromXml", "fn/ftime", "fn/getAllTags", "fn/getAncestors", "fn/getAttributes", "fn/getBrowserName", "fn/getBrowserVersion", "fn/getCookie", "fn/getCssVar", "fn/getDay", "fn/getDeviceType", "fn/getEventData", "fn/getField", "fn/getFieldValues", "fn/getHtml", "fn/getHTMLOfSelection", "fn/getLoader", "fn/getPath", "fn/getProp", "fn/getProperty", "fn/getRequestId", "fn/getRow", "fn/getScrollBarSize", "fn/getText", "fn/getTimeoff", "fn/happy", "fn/hash", "fn/hex2rgb", "fn/history", "fn/html2text", "fn/imageToCanvas", "fn/imgToBase64", "fn/info", "fn/init", "fn/isActiveInterface", "fn/isArray", "fn/isBlob", "fn/isBoolean", "fn/isCanvas", "fn/isColor", "fn/isComment", "fn/isCp", "fn/isDate", "fn/isDesktopDevice", "fn/isDimension", "fn/isDom", "fn/isEmail", "fn/isEmpty", "fn/isEvent", "fn/isFocused", "fn/isFunction", "fn/isHostname", "fn/isInside", "fn/isInt", "fn/isIP", "fn/isIterable", "fn/isMobile", "fn/isMobileDevice", "fn/isNull", "fn/isNumber", "fn/isObject", "fn/isPercent", "fn/isPrimitive", "fn/isPromise", "fn/isPropSize", "fn/isSame", "fn/isSQLDate", "fn/isString", "fn/isSymbol", "fn/isTabletDevice", "fn/isURL", "fn/isValidDimension", "fn/isValidName", "fn/isValue", "fn/isVue", "fn/iterate", "fn/lightenDarkenHex", "fn/link", "fn/log", "fn/makeReactive", "fn/map", "fn/md5", "fn/money", "fn/move", "fn/multiorder", "fn/nl2br", "fn/numProperties", "fn/objectToFormData", "fn/order", "fn/outerHeight", "fn/outerWidth", "fn/percent", "fn/pickValue", "fn/post", "fn/postOut", "fn/printf", "fn/quotes2html", "fn/randomInt", "fn/randomString", "fn/removeAccents", "fn/removeEmpty", "fn/removeExtraSpaces", "fn/removeHtmlComments", "fn/removePrivateProp", "fn/removeTrailingChars", "fn/repeat", "fn/replaceAll", "fn/replaceSelection", "fn/resize", "fn/rgb2hex", "fn/riterate", "fn/roundDecimal", "fn/sanitize", "fn/search", "fn/selectElementText", "fn/selector", "fn/setCookie", "fn/setCssVar", "fn/setNavigationVars", "fn/setProp", "fn/setProperty", "fn/shorten", "fn/shortenObj", "fn/shuffle", "fn/simpleHash", "fn/simpleHash1", "fn/simpleHash2", "fn/startChrono", "fn/stat", "fn/stopChrono", "fn/string2ArrayBuffer", "fn/submit", "fn/substr", "fn/sum", "fn/timestamp", "fn/toCSV", "fn/toggleFullScreen", "fn/translate", "fn/treatAjaxArguments", "fn/trim", "fn/uniqString", "fn/unique", "fn/upload", "fn/warning"], function (require, exports, _addLoader_2, _compareValues_3, _deleteLoader_2, abort_1, abortURL_1, addColors_2, addInputs_2, addStyle_1, adjustHeight_1, adjustSize_3, adjustWidth_1, ajax_4, analyzeFunction_1, animateCss_1, arrayBuffer2String_1, arrayFromProp_1, autoExtend_1, baseName_3, br2nl_1, calendar_1, callback_3, camelize_1, camelToCss_1, canvasToImage_2, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_3, circularReplacer_2, clone_2, colorToHex_1, compare_1, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_7, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_1, defaultHistoryFunction_2, defaultLinkFunction_2, defaultPostLinkFunction_2, defaultPreLinkFunction_2, defaultResizeFunction_2, defaultStartLoadingFunction_2, deleteProp_1, diffObj_1, dirName_2, download_1, downloadContent_2, each_28, eraseCookie_1, error_4, escapeDquotes_1, escapeRegExp_3, escapeSquotes_1, escapeTicks_1, escapeUrl_1, extend_8, extendOut_1, fdate_2, fdatetime_2, fieldValue_2, fileExt_2, filter_6, filterToConditions_3, findAll_1, fori_1, forir_1, format_1, formatBytes_1, formatDate_1, formatSize_1, formdata_2, fromXml_1, ftime_1, getAllTags_1, getAncestors_2, getAttributes_1, getBrowserName_1, getBrowserVersion_1, getCookie_1, getCssVar_2, getDay_1, getDeviceType_1, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_2, getProp_1, getProperty_4, getRequestId_2, getRow_2, getScrollBarSize_1, getText_1, getTimeoff_1, happy_1, hash_2, hex2rgb_1, history_1, html2text_2, imageToCanvas_2, imgToBase64_1, info_1, init_1, isActiveInterface_1, isArray_19, isBlob_2, isBoolean_1, isCanvas_2, isColor_1, isComment_1, isCp_6, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_14, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_9, isObject_20, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_32, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_12, lightenDarkenHex_1, link_2, log_22, makeReactive_1, map_1, md5_4, money_1, move_1, multiorder_1, nl2br_1, numProperties_9, objectToFormData_2, order_1, outerHeight_1, outerWidth_1, percent_1, pickValue_1, post_2, postOut_1, printf_1, quotes2html_1, randomInt_2, randomString_1, removeAccents_4, removeEmpty_1, removeExtraSpaces_1, removeHtmlComments_2, removePrivateProp_2, removeTrailingChars_1, repeat_1, replaceAll_8, replaceSelection_1, resize_3, rgb2hex_1, riterate_1, roundDecimal_1, sanitize_1, search_6, selectElementText_1, selector_3, setCookie_1, setCssVar_1, setNavigationVars_2, setProp_1, setProperty_1, shorten_2, shortenObj_1, shuffle_1, simpleHash_2, simpleHash1_2, simpleHash2_2, startChrono_1, stat_1, stopChrono_1, string2ArrayBuffer_1, submit_2, substr_16, sum_1, timestamp_1, toCSV_1, toggleFullScreen_1, translate_1, treatAjaxArguments_3, trim_2, uniqString_1, unique_2, upload_1, warning_2) {
|
|
5788
5788
|
"use strict";
|
|
5789
5789
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5790
|
-
exports.
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
5790
|
+
exports.default = {
|
|
5791
|
+
version: "1.0.1",
|
|
5792
|
+
opt: {
|
|
5793
|
+
_cat: {}
|
|
5794
|
+
},
|
|
5795
|
+
/**
|
|
5796
|
+
* Translate an expression using the object bbn.lng
|
|
5797
|
+
*
|
|
5798
|
+
* @param {String} st
|
|
5799
|
+
* @returns {String}
|
|
5800
|
+
*/
|
|
5801
|
+
_(st) {
|
|
5802
|
+
bbn.fn.checkType(st, 'string', "Undeerscore function takes strings as arguments");
|
|
5803
|
+
let res = bbn.lng[st] || st;
|
|
5804
|
+
let args = Array.prototype.slice.call(arguments, 1);
|
|
5805
|
+
if (args.length) {
|
|
5806
|
+
let i = 0;
|
|
5807
|
+
return res.replace(/\%([d|s])/g, (match, type) => {
|
|
5808
|
+
let tmp = args[i++];
|
|
5809
|
+
if (!tmp) {
|
|
5810
|
+
tmp = type === 'd' ? 0 : '';
|
|
5811
|
+
}
|
|
5812
|
+
bbn.fn.checkType(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
|
|
5813
|
+
return tmp;
|
|
5814
|
+
});
|
|
5815
|
+
}
|
|
5816
|
+
return res;
|
|
5817
|
+
},
|
|
5818
|
+
$(selector, context) {
|
|
5819
|
+
if (context && context.querySelectorAll) {
|
|
5820
|
+
return context.querySelectorAll(selector);
|
|
5821
|
+
}
|
|
5822
|
+
return document.body.querySelectorAll(selector);
|
|
5823
|
+
},
|
|
5824
|
+
_popups: [],
|
|
5825
|
+
lng: {
|
|
5826
|
+
/* User-defined languages elements */
|
|
5827
|
+
select_unselect_all: "Select/Clear all",
|
|
5828
|
+
select_all: "Select all",
|
|
5829
|
+
search: 'Search',
|
|
5830
|
+
loading: 'Loading...',
|
|
5831
|
+
choose: 'Choose',
|
|
5832
|
+
error: 'Error',
|
|
5833
|
+
server_response: 'Server response',
|
|
5834
|
+
reload: 'Reload',
|
|
5835
|
+
errorText: 'Something went wrong',
|
|
5836
|
+
closeAll: "Close all",
|
|
5837
|
+
closeOthers: "Close others",
|
|
5838
|
+
pin: "Pin",
|
|
5839
|
+
arrange: "Arrange",
|
|
5840
|
+
cancel: "Cancel",
|
|
5841
|
+
unpin: "Unpin",
|
|
5842
|
+
yes: "Yes",
|
|
5843
|
+
no: "No",
|
|
5844
|
+
unknown: "Unknown",
|
|
5845
|
+
untitled: "Untitled",
|
|
5846
|
+
confirmation: "Confirmation",
|
|
5847
|
+
Today: "Today",
|
|
5848
|
+
Tomorrow: "Tomorrow",
|
|
5849
|
+
Yesterday: "Yesterday"
|
|
5850
|
+
},
|
|
5851
|
+
app: {
|
|
5852
|
+
popups: [],
|
|
5853
|
+
},
|
|
5854
|
+
vars: {
|
|
5855
|
+
loggers: {
|
|
5856
|
+
_num: 0
|
|
5857
|
+
},
|
|
5858
|
+
/* Usable datatypes through Ajax function */
|
|
5859
|
+
datatypes: ['xml', 'html', 'script', 'json', 'jsonp', 'text', 'blob'],
|
|
5860
|
+
/* The default value used by the function shorten */
|
|
5861
|
+
shortenLen: 30,
|
|
5862
|
+
/* Categorizing keyboard map */
|
|
5863
|
+
keys: {
|
|
5864
|
+
upDown: [33, 34, 35, 36, 38, 40],
|
|
5865
|
+
leftRight: [36, 35, 37, 39],
|
|
5866
|
+
dels: [8, 46, 45],
|
|
5867
|
+
confirm: [13, 9],
|
|
5868
|
+
alt: [20, 16, 17, 18, 144],
|
|
5869
|
+
numbers: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105],
|
|
5870
|
+
numsigns: [109, 110, 189, 190]
|
|
5871
|
+
},
|
|
5872
|
+
comparators: [">=", "<=", ">", "<", "="],
|
|
5873
|
+
operators: ["+", "-", "/", "*"],
|
|
5874
|
+
tags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
|
|
5875
|
+
colors: {
|
|
5876
|
+
darkgrey: '#5a6a62',
|
|
5877
|
+
black: '#000000',
|
|
5878
|
+
anthracite: '#454545',
|
|
5879
|
+
grey: '#d3d3d3',
|
|
5880
|
+
white: '#ffffff',
|
|
5881
|
+
beige: '#fdfdfd',
|
|
5882
|
+
lightgrey: '#dcdcdc',
|
|
5883
|
+
pastelblue: '#ddebf6',
|
|
5884
|
+
cyan: '#00c8f8',
|
|
5885
|
+
blue: '#6e9ecf',
|
|
5886
|
+
indigo: '#3f51b5',
|
|
5887
|
+
navy: '#354458',
|
|
5888
|
+
webblue: '#2196f3',
|
|
5889
|
+
teal: '#009688',
|
|
5890
|
+
turquoise: '#1fda9a',
|
|
5891
|
+
pastelgreen: '#e2efda',
|
|
5892
|
+
palegreen: '#ccffcc',
|
|
5893
|
+
green: '#00a03e',
|
|
5894
|
+
olive: '#92b06a',
|
|
5895
|
+
pastelorange: '#fff2cc',
|
|
5896
|
+
yellow: '#fdf200',
|
|
5897
|
+
orange: '#ff9900',
|
|
5898
|
+
pink: '#eb65a0',
|
|
5899
|
+
purple: '#a333c8',
|
|
5900
|
+
red: '#db3340',
|
|
5901
|
+
brown: '#8c6954'
|
|
5902
|
+
},
|
|
5903
|
+
mockText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
5904
|
+
regexp: {
|
|
5905
|
+
url: new RegExp('^(https?:\\/\\/)?' + // protocol
|
|
5906
|
+
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
|
|
5907
|
+
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
|
|
5908
|
+
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
|
|
5909
|
+
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
|
5910
|
+
'(\\#[-a-z\\d_]*)?$', 'i'),
|
|
5911
|
+
ip: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
|
|
5912
|
+
hostname: new RegExp("^[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?(\\.[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?)*$", 'i'),
|
|
5913
|
+
}
|
|
5914
|
+
},
|
|
5915
|
+
env: {
|
|
5916
|
+
siteTitle: window.document.title,
|
|
5917
|
+
/* This variable should be set to true in debugging mode only */
|
|
5918
|
+
logging: false,
|
|
5919
|
+
/* Address of the CDN (where this file should be hosted) */
|
|
5920
|
+
cdn: '',
|
|
5921
|
+
/* Default language */
|
|
5922
|
+
lang: 'en',
|
|
5923
|
+
host: window.location.protocol + '//' + window.location.hostname,
|
|
5924
|
+
url: window.location.href,
|
|
5925
|
+
old_path: null,
|
|
5926
|
+
/* True when non asynchronous Ajax loads */
|
|
5927
|
+
loading: false,
|
|
5928
|
+
/* Window width */
|
|
5929
|
+
width: 0,
|
|
5930
|
+
/* Window height */
|
|
5931
|
+
height: 0,
|
|
5932
|
+
/* Element currently focused (Element object) */
|
|
5933
|
+
focused: false,
|
|
5934
|
+
/* Last time user has been active */
|
|
5935
|
+
last_focus: (new Date()).getTime(),
|
|
5936
|
+
/* Sleep mode (tab or window unfocused */
|
|
5937
|
+
sleep: false,
|
|
5938
|
+
/**
|
|
5939
|
+
* @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
|
|
5940
|
+
* for preventing the same call to be made at the same time
|
|
5941
|
+
**/
|
|
5942
|
+
loaders: [],
|
|
5943
|
+
loadersHistory: [],
|
|
5944
|
+
maxLoadersHistory: 20,
|
|
5945
|
+
/* bbn.env.params is an array of each element of the path */
|
|
5946
|
+
resizeTimer: false,
|
|
5947
|
+
hashChanged: 0,
|
|
5948
|
+
params: [],
|
|
5949
|
+
isInit: false,
|
|
5950
|
+
isFocused: false,
|
|
5951
|
+
timeoff: Math.round((new Date()).getTime() / 1000),
|
|
5952
|
+
loggingLevel: 5,
|
|
5953
|
+
ignoreUnload: false,
|
|
5954
|
+
historyDisabled: false,
|
|
5955
|
+
nav: 'ajax'
|
|
5956
|
+
},
|
|
5957
|
+
fn: {
|
|
5958
|
+
_addLoader: _addLoader_2._addLoader,
|
|
5959
|
+
_compareValues: _compareValues_3._compareValues,
|
|
5960
|
+
_deleteLoader: _deleteLoader_2._deleteLoader,
|
|
5961
|
+
abort: abort_1.abort,
|
|
5962
|
+
abortURL: abortURL_1.abortURL,
|
|
5963
|
+
addColors: addColors_2.addColors,
|
|
5964
|
+
addInputs: addInputs_2.addInputs,
|
|
5965
|
+
addStyle: addStyle_1.addStyle,
|
|
5966
|
+
adjustHeight: adjustHeight_1.adjustHeight,
|
|
5967
|
+
adjustSize: adjustSize_3.adjustSize,
|
|
5968
|
+
adjustWidth: adjustWidth_1.adjustWidth,
|
|
5969
|
+
ajax: ajax_4.ajax,
|
|
5970
|
+
analyzeFunction: analyzeFunction_1.analyzeFunction,
|
|
5971
|
+
animateCss: animateCss_1.animateCss,
|
|
5972
|
+
arrayBuffer2String: arrayBuffer2String_1.arrayBuffer2String,
|
|
5973
|
+
arrayFromProp: arrayFromProp_1.arrayFromProp,
|
|
5974
|
+
autoExtend: autoExtend_1.autoExtend,
|
|
5975
|
+
baseName: baseName_3.baseName,
|
|
5976
|
+
br2nl: br2nl_1.br2nl,
|
|
5977
|
+
calendar: calendar_1.calendar,
|
|
5978
|
+
callback: callback_3.callback,
|
|
5979
|
+
camelize: camelize_1.camelize,
|
|
5980
|
+
camelToCss: camelToCss_1.camelToCss,
|
|
5981
|
+
canvasToImage: canvasToImage_2.canvasToImage,
|
|
5982
|
+
center: center_1.center,
|
|
5983
|
+
checkProps: checkProps_1.checkProps,
|
|
5984
|
+
checkPropsDetails: checkPropsDetails_3.checkPropsDetails,
|
|
5985
|
+
checkPropsOrDie: checkPropsOrDie_1.checkPropsOrDie,
|
|
5986
|
+
checkType: checkType_3.checkType,
|
|
5987
|
+
circularReplacer: circularReplacer_2.circularReplacer,
|
|
5988
|
+
clone: clone_2.clone,
|
|
5989
|
+
colorToHex: colorToHex_1.colorToHex,
|
|
5990
|
+
compare: compare_1.compare,
|
|
5991
|
+
compareConditions: compareConditions_3.compareConditions,
|
|
5992
|
+
copy: copy_1.copy,
|
|
5993
|
+
correctCase: correctCase_2.correctCase,
|
|
5994
|
+
count: count_1.count,
|
|
5995
|
+
crc32: crc32_1.crc32,
|
|
5996
|
+
createObject: createObject_4.createObject,
|
|
5997
|
+
cssExists: cssExists_1.cssExists,
|
|
5998
|
+
date: date_7.date,
|
|
5999
|
+
dateSQL: dateSQL_1.dateSQL,
|
|
6000
|
+
daysInMonth: daysInMonth_1.daysInMonth,
|
|
6001
|
+
deepPath: deepPath_1.deepPath,
|
|
6002
|
+
defaultAjaxAbortFunction: defaultAjaxAbortFunction_2.defaultAjaxAbortFunction,
|
|
6003
|
+
defaultAjaxErrorFunction: defaultAjaxErrorFunction_3.defaultAjaxErrorFunction,
|
|
6004
|
+
defaultAlertFunction: defaultAlertFunction_2.defaultAlertFunction,
|
|
6005
|
+
defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
|
|
6006
|
+
defaultEndLoadingFunction: defaultEndLoadingFunction_2.defaultEndLoadingFunction,
|
|
6007
|
+
defaultErrorFunction: defaultErrorFunction_1.defaultErrorFunction,
|
|
6008
|
+
defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
|
|
6009
|
+
defaultLinkFunction: defaultLinkFunction_2.defaultLinkFunction,
|
|
6010
|
+
defaultPostLinkFunction: defaultPostLinkFunction_2.defaultPostLinkFunction,
|
|
6011
|
+
defaultPreLinkFunction: defaultPreLinkFunction_2.defaultPreLinkFunction,
|
|
6012
|
+
defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
|
|
6013
|
+
defaultStartLoadingFunction: defaultStartLoadingFunction_2.defaultStartLoadingFunction,
|
|
6014
|
+
deleteProp: deleteProp_1.deleteProp,
|
|
6015
|
+
diffObj: diffObj_1.diffObj,
|
|
6016
|
+
dirName: dirName_2.dirName,
|
|
6017
|
+
download: download_1.download,
|
|
6018
|
+
downloadContent: downloadContent_2.downloadContent,
|
|
6019
|
+
each: each_28.each,
|
|
6020
|
+
eraseCookie: eraseCookie_1.eraseCookie,
|
|
6021
|
+
error: error_4.error,
|
|
6022
|
+
escapeDquotes: escapeDquotes_1.escapeDquotes,
|
|
6023
|
+
escapeRegExp: escapeRegExp_3.escapeRegExp,
|
|
6024
|
+
escapeSquotes: escapeSquotes_1.escapeSquotes,
|
|
6025
|
+
escapeTicks: escapeTicks_1.escapeTicks,
|
|
6026
|
+
escapeUrl: escapeUrl_1.escapeUrl,
|
|
6027
|
+
extend: extend_8.extend,
|
|
6028
|
+
extendOut: extendOut_1.extendOut,
|
|
6029
|
+
fdate: fdate_2.fdate,
|
|
6030
|
+
fdatetime: fdatetime_2.fdatetime,
|
|
6031
|
+
fieldValue: fieldValue_2.fieldValue,
|
|
6032
|
+
fileExt: fileExt_2.fileExt,
|
|
6033
|
+
filter: filter_6.filter,
|
|
6034
|
+
filterToConditions: filterToConditions_3.filterToConditions,
|
|
6035
|
+
findAll: findAll_1.findAll,
|
|
6036
|
+
fori: fori_1.fori,
|
|
6037
|
+
forir: forir_1.forir,
|
|
6038
|
+
format: format_1.format,
|
|
6039
|
+
formatBytes: formatBytes_1.formatBytes,
|
|
6040
|
+
formatDate: formatDate_1.formatDate,
|
|
6041
|
+
formatSize: formatSize_1.formatSize,
|
|
6042
|
+
formdata: formdata_2.formdata,
|
|
6043
|
+
fromXml: fromXml_1.fromXml,
|
|
6044
|
+
ftime: ftime_1.ftime,
|
|
6045
|
+
getAllTags: getAllTags_1.getAllTags,
|
|
6046
|
+
getAncestors: getAncestors_2.getAncestors,
|
|
6047
|
+
getAttributes: getAttributes_1.getAttributes,
|
|
6048
|
+
getBrowserName: getBrowserName_1.getBrowserName,
|
|
6049
|
+
getBrowserVersion: getBrowserVersion_1.getBrowserVersion,
|
|
6050
|
+
getCookie: getCookie_1.getCookie,
|
|
6051
|
+
getCssVar: getCssVar_2.getCssVar,
|
|
6052
|
+
getDay: getDay_1.getDay,
|
|
6053
|
+
getDeviceType: getDeviceType_1.getDeviceType,
|
|
6054
|
+
getEventData: getEventData_1.getEventData,
|
|
6055
|
+
getField: getField_1.getField,
|
|
6056
|
+
getFieldValues: getFieldValues_1.getFieldValues,
|
|
6057
|
+
getHtml: getHtml_1.getHtml,
|
|
6058
|
+
getHTMLOfSelection: getHTMLOfSelection_2.getHTMLOfSelection,
|
|
6059
|
+
getLoader: getLoader_4.getLoader,
|
|
6060
|
+
getPath: getPath_2.getPath,
|
|
6061
|
+
getProp: getProp_1.getProp,
|
|
6062
|
+
getProperty: getProperty_4.getProperty,
|
|
6063
|
+
getRequestId: getRequestId_2.getRequestId,
|
|
6064
|
+
getRow: getRow_2.getRow,
|
|
6065
|
+
getScrollBarSize: getScrollBarSize_1.getScrollBarSize,
|
|
6066
|
+
getText: getText_1.getText,
|
|
6067
|
+
getTimeoff: getTimeoff_1.getTimeoff,
|
|
6068
|
+
happy: happy_1.happy,
|
|
6069
|
+
hash: hash_2.hash,
|
|
6070
|
+
hex2rgb: hex2rgb_1.hex2rgb,
|
|
6071
|
+
history: history_1.history,
|
|
6072
|
+
html2text: html2text_2.html2text,
|
|
6073
|
+
imageToCanvas: imageToCanvas_2.imageToCanvas,
|
|
6074
|
+
imgToBase64: imgToBase64_1.imgToBase64,
|
|
6075
|
+
info: info_1.info,
|
|
6076
|
+
init: init_1.init,
|
|
6077
|
+
isActiveInterface: isActiveInterface_1.isActiveInterface,
|
|
6078
|
+
isArray: isArray_19.isArray,
|
|
6079
|
+
isBlob: isBlob_2.isBlob,
|
|
6080
|
+
isBoolean: isBoolean_1.isBoolean,
|
|
6081
|
+
isCanvas: isCanvas_2.isCanvas,
|
|
6082
|
+
isColor: isColor_1.isColor,
|
|
6083
|
+
isComment: isComment_1.isComment,
|
|
6084
|
+
isCp: isCp_6.isCp,
|
|
6085
|
+
isDate: isDate_8.isDate,
|
|
6086
|
+
isDesktopDevice: isDesktopDevice_1.isDesktopDevice,
|
|
6087
|
+
isDimension: isDimension_1.isDimension,
|
|
6088
|
+
isDom: isDom_5.isDom,
|
|
6089
|
+
isEmail: isEmail_1.isEmail,
|
|
6090
|
+
isEmpty: isEmpty_2.isEmpty,
|
|
6091
|
+
isEvent: isEvent_1.isEvent,
|
|
6092
|
+
isFocused: isFocused_1.isFocused,
|
|
6093
|
+
isFunction: isFunction_14.isFunction,
|
|
6094
|
+
isHostname: isHostname_1.isHostname,
|
|
6095
|
+
isInside: isInside_1.isInside,
|
|
6096
|
+
isInt: isInt_2.isInt,
|
|
6097
|
+
isIP: isIP_2.isIP,
|
|
6098
|
+
isIterable: isIterable_5.isIterable,
|
|
6099
|
+
isMobile: isMobile_2.isMobile,
|
|
6100
|
+
isMobileDevice: isMobileDevice_2.isMobileDevice,
|
|
6101
|
+
isNull: isNull_4.isNull,
|
|
6102
|
+
isNumber: isNumber_9.isNumber,
|
|
6103
|
+
isObject: isObject_20.isObject,
|
|
6104
|
+
isPercent: isPercent_1.isPercent,
|
|
6105
|
+
isPrimitive: isPrimitive_1.isPrimitive,
|
|
6106
|
+
isPromise: isPromise_1.isPromise,
|
|
6107
|
+
isPropSize: isPropSize_1.isPropSize,
|
|
6108
|
+
isSame: isSame_3.isSame,
|
|
6109
|
+
isSQLDate: isSQLDate_1.isSQLDate,
|
|
6110
|
+
isString: isString_32.isString,
|
|
6111
|
+
isSymbol: isSymbol_2.isSymbol,
|
|
6112
|
+
isTabletDevice: isTabletDevice_3.isTabletDevice,
|
|
6113
|
+
isURL: isURL_1.isURL,
|
|
6114
|
+
isValidDimension: isValidDimension_2.isValidDimension,
|
|
6115
|
+
isValidName: isValidName_1.isValidName,
|
|
6116
|
+
isValue: isValue_2.isValue,
|
|
6117
|
+
isVue: isVue_1.isVue,
|
|
6118
|
+
iterate: iterate_12.iterate,
|
|
6119
|
+
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
6120
|
+
link: link_2.link,
|
|
6121
|
+
log: log_22.log,
|
|
6122
|
+
makeReactive: makeReactive_1.makeReactive,
|
|
6123
|
+
map: map_1.map,
|
|
6124
|
+
md5: md5_4.md5,
|
|
6125
|
+
money: money_1.money,
|
|
6126
|
+
move: move_1.move,
|
|
6127
|
+
multiorder: multiorder_1.multiorder,
|
|
6128
|
+
nl2br: nl2br_1.nl2br,
|
|
6129
|
+
numProperties: numProperties_9.numProperties,
|
|
6130
|
+
objectToFormData: objectToFormData_2.objectToFormData,
|
|
6131
|
+
order: order_1.order,
|
|
6132
|
+
outerHeight: outerHeight_1.outerHeight,
|
|
6133
|
+
outerWidth: outerWidth_1.outerWidth,
|
|
6134
|
+
percent: percent_1.percent,
|
|
6135
|
+
pickValue: pickValue_1.pickValue,
|
|
6136
|
+
post: post_2.post,
|
|
6137
|
+
postOut: postOut_1.postOut,
|
|
6138
|
+
printf: printf_1.printf,
|
|
6139
|
+
quotes2html: quotes2html_1.quotes2html,
|
|
6140
|
+
randomInt: randomInt_2.randomInt,
|
|
6141
|
+
randomString: randomString_1.randomString,
|
|
6142
|
+
removeAccents: removeAccents_4.removeAccents,
|
|
6143
|
+
removeEmpty: removeEmpty_1.removeEmpty,
|
|
6144
|
+
removeExtraSpaces: removeExtraSpaces_1.removeExtraSpaces,
|
|
6145
|
+
removeHtmlComments: removeHtmlComments_2.removeHtmlComments,
|
|
6146
|
+
removePrivateProp: removePrivateProp_2.removePrivateProp,
|
|
6147
|
+
removeTrailingChars: removeTrailingChars_1.removeTrailingChars,
|
|
6148
|
+
repeat: repeat_1.repeat,
|
|
6149
|
+
replaceAll: replaceAll_8.replaceAll,
|
|
6150
|
+
replaceSelection: replaceSelection_1.replaceSelection,
|
|
6151
|
+
resize: resize_3.resize,
|
|
6152
|
+
rgb2hex: rgb2hex_1.rgb2hex,
|
|
6153
|
+
riterate: riterate_1.riterate,
|
|
6154
|
+
roundDecimal: roundDecimal_1.roundDecimal,
|
|
6155
|
+
sanitize: sanitize_1.sanitize,
|
|
6156
|
+
search: search_6.search,
|
|
6157
|
+
selectElementText: selectElementText_1.selectElementText,
|
|
6158
|
+
selector: selector_3.selector,
|
|
6159
|
+
setCookie: setCookie_1.setCookie,
|
|
6160
|
+
setCssVar: setCssVar_1.setCssVar,
|
|
6161
|
+
setNavigationVars: setNavigationVars_2.setNavigationVars,
|
|
6162
|
+
setProp: setProp_1.setProp,
|
|
6163
|
+
setProperty: setProperty_1.setProperty,
|
|
6164
|
+
shorten: shorten_2.shorten,
|
|
6165
|
+
shortenObj: shortenObj_1.shortenObj,
|
|
6166
|
+
shuffle: shuffle_1.shuffle,
|
|
6167
|
+
simpleHash: simpleHash_2.simpleHash,
|
|
6168
|
+
simpleHash1: simpleHash1_2.simpleHash1,
|
|
6169
|
+
simpleHash2: simpleHash2_2.simpleHash2,
|
|
6170
|
+
startChrono: startChrono_1.startChrono,
|
|
6171
|
+
stat: stat_1.stat,
|
|
6172
|
+
stopChrono: stopChrono_1.stopChrono,
|
|
6173
|
+
string2ArrayBuffer: string2ArrayBuffer_1.string2ArrayBuffer,
|
|
6174
|
+
submit: submit_2.submit,
|
|
6175
|
+
substr: substr_16.substr,
|
|
6176
|
+
sum: sum_1.sum,
|
|
6177
|
+
timestamp: timestamp_1.timestamp,
|
|
6178
|
+
toCSV: toCSV_1.toCSV,
|
|
6179
|
+
toggleFullScreen: toggleFullScreen_1.toggleFullScreen,
|
|
6180
|
+
translate: translate_1.translate,
|
|
6181
|
+
treatAjaxArguments: treatAjaxArguments_3.treatAjaxArguments,
|
|
6182
|
+
trim: trim_2.trim,
|
|
6183
|
+
uniqString: uniqString_1.uniqString,
|
|
6184
|
+
unique: unique_2.unique,
|
|
6185
|
+
upload: upload_1.upload,
|
|
6186
|
+
warning: warning_2.warning,
|
|
6187
|
+
}
|
|
6021
6188
|
};
|
|
6022
6189
|
});
|
|
6023
6190
|
|