@bbn/bbn 1.0.79 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +43 -44
- package/dist/fn/ajax/_addLoader.js +0 -2
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -926,7 +926,7 @@
|
|
|
926
926
|
};
|
|
927
927
|
exports.db = db;
|
|
928
928
|
});
|
|
929
|
-
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr"
|
|
929
|
+
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr"], function (require, exports, substr_2) {
|
|
930
930
|
"use strict";
|
|
931
931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
932
932
|
exports._addLoader = void 0;
|
|
@@ -945,7 +945,6 @@
|
|
|
945
945
|
* @returns {Number} The timestamp (in ms)
|
|
946
946
|
*/
|
|
947
947
|
const _addLoader = function (requestId, prom, source) {
|
|
948
|
-
(0, log_5.log)('_addLoader', requestId);
|
|
949
948
|
/** @var {Number} tst Current timestamp */
|
|
950
949
|
let tst = new Date().getTime();
|
|
951
950
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
|
@@ -1026,7 +1025,7 @@
|
|
|
1026
1025
|
};
|
|
1027
1026
|
exports.getProperty = getProperty;
|
|
1028
1027
|
});
|
|
1029
|
-
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3,
|
|
1028
|
+
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3, log_5) {
|
|
1030
1029
|
"use strict";
|
|
1031
1030
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1032
1031
|
exports.removeAccents = void 0;
|
|
@@ -1051,7 +1050,7 @@
|
|
|
1051
1050
|
st = st.toString();
|
|
1052
1051
|
}
|
|
1053
1052
|
else {
|
|
1054
|
-
(0,
|
|
1053
|
+
(0, log_5.log)(st);
|
|
1055
1054
|
throw new Error(bbn._("removeAccent expects a string"));
|
|
1056
1055
|
}
|
|
1057
1056
|
}
|
|
@@ -1384,7 +1383,7 @@
|
|
|
1384
1383
|
};
|
|
1385
1384
|
exports.isCp = isCp;
|
|
1386
1385
|
});
|
|
1387
|
-
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1,
|
|
1386
|
+
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1, log_6) {
|
|
1388
1387
|
"use strict";
|
|
1389
1388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1390
1389
|
exports.circularReplacer = void 0;
|
|
@@ -1412,7 +1411,7 @@
|
|
|
1412
1411
|
}
|
|
1413
1412
|
}
|
|
1414
1413
|
else if ((0, isCp_1.isCp)(value)) {
|
|
1415
|
-
(0,
|
|
1414
|
+
(0, log_6.log)("IS CP");
|
|
1416
1415
|
value = "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1417
1416
|
}
|
|
1418
1417
|
else {
|
|
@@ -1466,7 +1465,7 @@
|
|
|
1466
1465
|
};
|
|
1467
1466
|
exports.simpleHash = simpleHash;
|
|
1468
1467
|
});
|
|
1469
|
-
define("fn/string/hash", ["require", "exports", "fn/browser/log", "fn/type/isDom", "fn/type/isCp", "fn/object/circularReplacer", "fn/string/simpleHash"], function (require, exports,
|
|
1468
|
+
define("fn/string/hash", ["require", "exports", "fn/browser/log", "fn/type/isDom", "fn/type/isCp", "fn/object/circularReplacer", "fn/string/simpleHash"], function (require, exports, log_7, isDom_3, isCp_2, circularReplacer_1, simpleHash_1) {
|
|
1470
1469
|
"use strict";
|
|
1471
1470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1472
1471
|
exports.hash = void 0;
|
|
@@ -1491,7 +1490,7 @@
|
|
|
1491
1490
|
}
|
|
1492
1491
|
}
|
|
1493
1492
|
else if ((0, isCp_2.isCp)(value)) {
|
|
1494
|
-
(0,
|
|
1493
|
+
(0, log_7.log)("IS CP");
|
|
1495
1494
|
st += "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1496
1495
|
}
|
|
1497
1496
|
else {
|
|
@@ -3055,21 +3054,21 @@
|
|
|
3055
3054
|
};
|
|
3056
3055
|
exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
|
|
3057
3056
|
});
|
|
3058
|
-
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3057
|
+
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_8) {
|
|
3059
3058
|
"use strict";
|
|
3060
3059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3061
3060
|
exports.defaultAjaxErrorFunction = void 0;
|
|
3062
3061
|
const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
|
|
3063
|
-
(0,
|
|
3062
|
+
(0, log_8.log)(textStatus, errorThrown);
|
|
3064
3063
|
};
|
|
3065
3064
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
3066
3065
|
});
|
|
3067
|
-
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3066
|
+
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_9) {
|
|
3068
3067
|
"use strict";
|
|
3069
3068
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3070
3069
|
exports.defaultAjaxAbortFunction = void 0;
|
|
3071
3070
|
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
3072
|
-
(0,
|
|
3071
|
+
(0, log_9.log)(message);
|
|
3073
3072
|
};
|
|
3074
3073
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
3075
3074
|
});
|
|
@@ -3754,7 +3753,7 @@
|
|
|
3754
3753
|
};
|
|
3755
3754
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
3756
3755
|
});
|
|
3757
|
-
define("fn/ajax/callback", ["require", "exports", "fn/browser/error", "fn/default/defaultLinkFunction", "fn/type/isFunction", "fn/browser/log", "fn/default/defaultPostLinkFunction", "fn/default/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4,
|
|
3756
|
+
define("fn/ajax/callback", ["require", "exports", "fn/browser/error", "fn/default/defaultLinkFunction", "fn/type/isFunction", "fn/browser/log", "fn/default/defaultPostLinkFunction", "fn/default/defaultAlertFunction"], function (require, exports, error_2, defaultLinkFunction_1, isFunction_4, log_10, defaultPostLinkFunction_1, defaultAlertFunction_1) {
|
|
3758
3757
|
"use strict";
|
|
3759
3758
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3760
3759
|
exports.callback = void 0;
|
|
@@ -3841,7 +3840,7 @@
|
|
|
3841
3840
|
}
|
|
3842
3841
|
}
|
|
3843
3842
|
catch (e) {
|
|
3844
|
-
(0,
|
|
3843
|
+
(0, log_10.log)(e, res);
|
|
3845
3844
|
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
3846
3845
|
}
|
|
3847
3846
|
return r;
|
|
@@ -4496,12 +4495,12 @@
|
|
|
4496
4495
|
};
|
|
4497
4496
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
4498
4497
|
});
|
|
4499
|
-
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
4498
|
+
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_11) {
|
|
4500
4499
|
"use strict";
|
|
4501
4500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4502
4501
|
exports.defaultErrorFunction = void 0;
|
|
4503
4502
|
const defaultErrorFunction = function (message) {
|
|
4504
|
-
(0,
|
|
4503
|
+
(0, log_11.log)(message);
|
|
4505
4504
|
};
|
|
4506
4505
|
exports.defaultErrorFunction = defaultErrorFunction;
|
|
4507
4506
|
});
|
|
@@ -4514,12 +4513,12 @@
|
|
|
4514
4513
|
};
|
|
4515
4514
|
exports.defaultHistoryFunction = defaultHistoryFunction;
|
|
4516
4515
|
});
|
|
4517
|
-
define("fn/default/defaultPreLinkFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
4516
|
+
define("fn/default/defaultPreLinkFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_12) {
|
|
4518
4517
|
"use strict";
|
|
4519
4518
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4520
4519
|
exports.defaultPreLinkFunction = void 0;
|
|
4521
4520
|
const defaultPreLinkFunction = function (url, force, ele) {
|
|
4522
|
-
(0,
|
|
4521
|
+
(0, log_12.log)("defaultPreLinkFunction", url, force, ele);
|
|
4523
4522
|
return true;
|
|
4524
4523
|
};
|
|
4525
4524
|
exports.defaultPreLinkFunction = defaultPreLinkFunction;
|
|
@@ -4897,7 +4896,7 @@
|
|
|
4897
4896
|
};
|
|
4898
4897
|
exports.isCanvas = isCanvas;
|
|
4899
4898
|
});
|
|
4900
|
-
define("fn/ajax/downloadContent", ["require", "exports", "fn/type/isCanvas", "fn/type/isObject", "fn/type/isString", "fn/browser/log"], function (require, exports, isCanvas_1, isObject_12, isString_11,
|
|
4899
|
+
define("fn/ajax/downloadContent", ["require", "exports", "fn/type/isCanvas", "fn/type/isObject", "fn/type/isString", "fn/browser/log"], function (require, exports, isCanvas_1, isObject_12, isString_11, log_13) {
|
|
4901
4900
|
"use strict";
|
|
4902
4901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4903
4902
|
exports.downloadContent = void 0;
|
|
@@ -4958,7 +4957,7 @@
|
|
|
4958
4957
|
src = content;
|
|
4959
4958
|
}
|
|
4960
4959
|
catch (e) {
|
|
4961
|
-
(0,
|
|
4960
|
+
(0, log_13.log)(e);
|
|
4962
4961
|
}
|
|
4963
4962
|
}
|
|
4964
4963
|
a.href = window.URL.createObjectURL(src);
|
|
@@ -5924,7 +5923,7 @@
|
|
|
5924
5923
|
};
|
|
5925
5924
|
exports.getDeviceType = getDeviceType;
|
|
5926
5925
|
});
|
|
5927
|
-
define("fn/html/getHTMLOfSelection", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
5926
|
+
define("fn/html/getHTMLOfSelection", ["require", "exports", "fn/browser/log"], function (require, exports, log_14) {
|
|
5928
5927
|
"use strict";
|
|
5929
5928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5930
5929
|
exports.getHTMLOfSelection = void 0;
|
|
@@ -5933,9 +5932,9 @@
|
|
|
5933
5932
|
let selection = window.getSelection();
|
|
5934
5933
|
if (selection.rangeCount > 0) {
|
|
5935
5934
|
range = selection.getRangeAt(0);
|
|
5936
|
-
(0,
|
|
5935
|
+
(0, log_14.log)('RANGE', range);
|
|
5937
5936
|
let clonedSelection = range.cloneContents();
|
|
5938
|
-
(0,
|
|
5937
|
+
(0, log_14.log)('clonedSelection', clonedSelection);
|
|
5939
5938
|
let div = document.createElement('div');
|
|
5940
5939
|
div.appendChild(clonedSelection);
|
|
5941
5940
|
return div.innerHTML;
|
|
@@ -6307,7 +6306,7 @@
|
|
|
6307
6306
|
};
|
|
6308
6307
|
exports.getTimeoff = getTimeoff;
|
|
6309
6308
|
});
|
|
6310
|
-
define("fn/browser/happy", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
6309
|
+
define("fn/browser/happy", ["require", "exports", "fn/browser/log"], function (require, exports, log_15) {
|
|
6311
6310
|
"use strict";
|
|
6312
6311
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6313
6312
|
exports.happy = void 0;
|
|
@@ -6328,7 +6327,7 @@
|
|
|
6328
6327
|
_bbn_console_level: 3,
|
|
6329
6328
|
_bbn_console_style: 'color: white; background: green; font-size: 18px;',
|
|
6330
6329
|
});
|
|
6331
|
-
|
|
6330
|
+
log_15.log.apply(this, args);
|
|
6332
6331
|
return this;
|
|
6333
6332
|
};
|
|
6334
6333
|
exports.happy = happy;
|
|
@@ -6440,7 +6439,7 @@
|
|
|
6440
6439
|
};
|
|
6441
6440
|
exports.imgToBase64 = imgToBase64;
|
|
6442
6441
|
});
|
|
6443
|
-
define("fn/browser/info", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
6442
|
+
define("fn/browser/info", ["require", "exports", "fn/browser/log"], function (require, exports, log_16) {
|
|
6444
6443
|
"use strict";
|
|
6445
6444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6446
6445
|
exports.info = void 0;
|
|
@@ -6458,7 +6457,7 @@
|
|
|
6458
6457
|
_bbn_console_level: 4,
|
|
6459
6458
|
_bbn_console_style: 'color: #EEE; background: blue; font-size: 12px;',
|
|
6460
6459
|
});
|
|
6461
|
-
|
|
6460
|
+
log_16.log.apply(this, args);
|
|
6462
6461
|
return this;
|
|
6463
6462
|
};
|
|
6464
6463
|
exports.info = info;
|
|
@@ -6672,7 +6671,7 @@
|
|
|
6672
6671
|
};
|
|
6673
6672
|
exports.setNavigationVars = setNavigationVars;
|
|
6674
6673
|
});
|
|
6675
|
-
define("fn/ajax/link", ["require", "exports", "fn/ajax/treatAjaxArguments", "fn/ajax/getLoader", "fn/default/defaultPreLinkFunction", "fn/ajax/ajax", "fn/browser/log", "fn/object/extend", "fn/type/isObject", "fn/ajax/callback", "fn/ajax/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, ajax_2,
|
|
6674
|
+
define("fn/ajax/link", ["require", "exports", "fn/ajax/treatAjaxArguments", "fn/ajax/getLoader", "fn/default/defaultPreLinkFunction", "fn/ajax/ajax", "fn/browser/log", "fn/object/extend", "fn/type/isObject", "fn/ajax/callback", "fn/ajax/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, ajax_2, log_17, extend_6, isObject_15, callback_1, setNavigationVars_1) {
|
|
6676
6675
|
"use strict";
|
|
6677
6676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6678
6677
|
exports.link = void 0;
|
|
@@ -6768,12 +6767,12 @@
|
|
|
6768
6767
|
let errSt = bbn._('The Ajax call to') + ' ' + cfg.url + ' ';
|
|
6769
6768
|
return (0, ajax_2.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
|
|
6770
6769
|
if (!res) {
|
|
6771
|
-
(0,
|
|
6770
|
+
(0, log_17.log)(errSt + bbn._('returned no answer'));
|
|
6772
6771
|
}
|
|
6773
6772
|
if ((0, isObject_15.isObject)(res)) {
|
|
6774
6773
|
// If there's nothing in the result, just an empty object, the callback stops here and the URL is not changed
|
|
6775
6774
|
if (Object.keys(res).length === 0) {
|
|
6776
|
-
(0,
|
|
6775
|
+
(0, log_17.log)(errSt + bbn._('returned an empty object'));
|
|
6777
6776
|
}
|
|
6778
6777
|
if (res.new_url) {
|
|
6779
6778
|
res.old_path = cfg.url;
|
|
@@ -6989,7 +6988,7 @@
|
|
|
6989
6988
|
};
|
|
6990
6989
|
exports.isMobile = isMobile;
|
|
6991
6990
|
});
|
|
6992
|
-
define("fn/init", ["require", "exports", "fn/string/substr", "fn/loop/each", "fn/object/extend", "fn/style/addColors", "fn/ajax/link", "fn/form/submit", "fn/style/resize", "fn/browser/isMobile", "fn/browser/isTabletDevice", "fn/default/defaultHistoryFunction", "fn/type/isFunction", "fn/browser/log"], function (require, exports, substr_11, each_18, extend_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9,
|
|
6991
|
+
define("fn/init", ["require", "exports", "fn/string/substr", "fn/loop/each", "fn/object/extend", "fn/style/addColors", "fn/ajax/link", "fn/form/submit", "fn/style/resize", "fn/browser/isMobile", "fn/browser/isTabletDevice", "fn/default/defaultHistoryFunction", "fn/type/isFunction", "fn/browser/log"], function (require, exports, substr_11, each_18, extend_7, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9, log_18) {
|
|
6993
6992
|
"use strict";
|
|
6994
6993
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6995
6994
|
exports.init = void 0;
|
|
@@ -7156,7 +7155,7 @@
|
|
|
7156
7155
|
bbn.env.isInit = true;
|
|
7157
7156
|
document.dispatchEvent(new Event('bbninit'));
|
|
7158
7157
|
if (bbn.env.logging) {
|
|
7159
|
-
(0,
|
|
7158
|
+
(0, log_18.log)('Logging in bbn is enabled');
|
|
7160
7159
|
}
|
|
7161
7160
|
}
|
|
7162
7161
|
};
|
|
@@ -7839,7 +7838,7 @@
|
|
|
7839
7838
|
};
|
|
7840
7839
|
exports.lightenDarkenHex = lightenDarkenHex;
|
|
7841
7840
|
});
|
|
7842
|
-
define("fn/browser/warning", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
7841
|
+
define("fn/browser/warning", ["require", "exports", "fn/browser/log"], function (require, exports, log_19) {
|
|
7843
7842
|
"use strict";
|
|
7844
7843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7845
7844
|
exports.warning = void 0;
|
|
@@ -7863,11 +7862,11 @@
|
|
|
7863
7862
|
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
7864
7863
|
};
|
|
7865
7864
|
args.unshift(obj);
|
|
7866
|
-
|
|
7865
|
+
log_19.log.apply(this, args);
|
|
7867
7866
|
};
|
|
7868
7867
|
exports.warning = warning;
|
|
7869
7868
|
});
|
|
7870
|
-
define("fn/html/makeReactive", ["require", "exports", "fn/browser/log", "fn/object/createObject", "fn/type/isSymbol", "fn/type/isNumber", "fn/type/isArray", "fn/browser/warning", "fn/type/isFunction", "fn/type/isSame"], function (require, exports,
|
|
7869
|
+
define("fn/html/makeReactive", ["require", "exports", "fn/browser/log", "fn/object/createObject", "fn/type/isSymbol", "fn/type/isNumber", "fn/type/isArray", "fn/browser/warning", "fn/type/isFunction", "fn/type/isSame"], function (require, exports, log_20, createObject_2, isSymbol_1, isNumber_8, isArray_13, warning_1, isFunction_10, isSame_2) {
|
|
7871
7870
|
"use strict";
|
|
7872
7871
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7873
7872
|
exports.makeReactive = void 0;
|
|
@@ -7879,7 +7878,7 @@
|
|
|
7879
7878
|
return obj;
|
|
7880
7879
|
}
|
|
7881
7880
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
7882
|
-
(0,
|
|
7881
|
+
(0, log_20.log)(['MAKING bbn-loadbar', obj]);
|
|
7883
7882
|
}
|
|
7884
7883
|
if (!obj.__bbnWatchers) {
|
|
7885
7884
|
Reflect.defineProperty(obj, '__bbnWatchers', {
|
|
@@ -7903,7 +7902,7 @@
|
|
|
7903
7902
|
return function (...args) {
|
|
7904
7903
|
let res = realTarget[key](...args);
|
|
7905
7904
|
(0, warning_1.warning)('DOING ARRAY STUFF');
|
|
7906
|
-
(0,
|
|
7905
|
+
(0, log_20.log)(target.__bbnParent);
|
|
7907
7906
|
onSet(target, 'length', parent);
|
|
7908
7907
|
return res;
|
|
7909
7908
|
};
|
|
@@ -7970,7 +7969,7 @@
|
|
|
7970
7969
|
return Reflect.get(target, key);
|
|
7971
7970
|
}
|
|
7972
7971
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
7973
|
-
(0,
|
|
7972
|
+
(0, log_20.log)(['Setting proxy prop in ' + parent.$options.name, target, key, value]);
|
|
7974
7973
|
}
|
|
7975
7974
|
if (!(0, isSame_2.isSame)(realTarget[key], value)) {
|
|
7976
7975
|
if (key.indexOf('__bbn_') === 0) {
|
|
@@ -7998,7 +7997,7 @@
|
|
|
7998
7997
|
}
|
|
7999
7998
|
}
|
|
8000
7999
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
8001
|
-
(0,
|
|
8000
|
+
(0, log_20.log)([
|
|
8002
8001
|
'Setting proxy prop in ' +
|
|
8003
8002
|
parent.$options.name +
|
|
8004
8003
|
' ' +
|
|
@@ -9710,7 +9709,7 @@
|
|
|
9710
9709
|
};
|
|
9711
9710
|
exports.uniqString = uniqString;
|
|
9712
9711
|
});
|
|
9713
|
-
define("fn/ajax/upload", ["require", "exports", "fn/form/objectToFormData", "fn/browser/log"], function (require, exports, objectToFormData_1,
|
|
9712
|
+
define("fn/ajax/upload", ["require", "exports", "fn/form/objectToFormData", "fn/browser/log"], function (require, exports, objectToFormData_1, log_21) {
|
|
9714
9713
|
"use strict";
|
|
9715
9714
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9716
9715
|
exports.upload = void 0;
|
|
@@ -9751,13 +9750,13 @@
|
|
|
9751
9750
|
return fn()
|
|
9752
9751
|
.then((res) => {
|
|
9753
9752
|
if (success) {
|
|
9754
|
-
(0,
|
|
9753
|
+
(0, log_21.log)('SUCCESS', res);
|
|
9755
9754
|
success(res);
|
|
9756
9755
|
}
|
|
9757
9756
|
})
|
|
9758
9757
|
.catch((err) => {
|
|
9759
9758
|
if (failure) {
|
|
9760
|
-
(0,
|
|
9759
|
+
(0, log_21.log)('ERROR', err);
|
|
9761
9760
|
failure(err);
|
|
9762
9761
|
}
|
|
9763
9762
|
});
|
|
@@ -9765,7 +9764,7 @@
|
|
|
9765
9764
|
};
|
|
9766
9765
|
exports.upload = upload;
|
|
9767
9766
|
});
|
|
9768
|
-
define("fn", ["require", "exports", "fn/ajax/_addLoader", "fn/object/_compareValues", "fn/ajax/_deleteLoader", "fn/ajax/abort", "fn/ajax/abortURL", "fn/style/addColors", "fn/form/addInputs", "fn/style/addStyle", "fn/html/adjustHeight", "fn/html/adjustSize", "fn/html/adjustWidth", "fn/ajax/ajax", "fn/misc/analyzeFunction", "fn/style/animateCss", "fn/convert/arrayBuffer2String", "fn/object/arrayFromProp", "fn/object/autoExtend", "fn/string/baseName", "fn/string/br2nl", "fn/datetime/calendar", "fn/ajax/callback", "fn/string/camelize", "fn/string/camelToCss", "fn/convert/canvasToImage", "fn/style/center", "fn/object/checkProps", "fn/object/checkPropsDetails", "fn/object/checkPropsOrDie", "fn/type/checkType", "fn/object/circularReplacer", "fn/object/clone", "fn/convert/colorToHex", "fn/object/compare", "fn/object/compareConditions", "fn/browser/copy", "fn/string/correctCase", "fn/object/count", "fn/string/crc32", "fn/object/createObject", "fn/style/cssExists", "fn/datetime/date", "fn/datetime/dateSQL", "fn/datetime/daysInMonth", "fn/object/deepPath", "fn/default/defaultAjaxAbortFunction", "fn/default/defaultAjaxErrorFunction", "fn/default/defaultAlertFunction", "fn/default/defaultConfirmFunction", "fn/default/defaultEndLoadingFunction", "fn/default/defaultErrorFunction", "fn/default/defaultHistoryFunction", "fn/default/defaultLinkFunction", "fn/default/defaultPostLinkFunction", "fn/default/defaultPreLinkFunction", "fn/default/defaultResizeFunction", "fn/default/defaultStartLoadingFunction", "fn/object/deleteProp", "fn/object/diffObj", "fn/string/dirName", "fn/ajax/download", "fn/ajax/downloadContent", "fn/loop/each", "fn/browser/eraseCookie", "fn/browser/error", "fn/string/escapeDquotes", "fn/string/escapeRegExp", "fn/string/escapeSquotes", "fn/string/escapeTicks", "fn/string/escapeUrl", "fn/object/extend", "fn/object/extendOut", "fn/datetime/fdate", "fn/datetime/fdatetime", "fn/form/fieldValue", "fn/string/fileExt", "fn/object/filter", "fn/object/filterToConditions", "fn/object/findAll", "fn/loop/fori", "fn/loop/forir", "fn/string/format", "fn/string/formatBytes", "fn/datetime/formatDate", "fn/string/formatSize", "fn/form/formdata", "fn/convert/fromXml", "fn/datetime/ftime", "fn/html/getAllTags", "fn/html/getAncestors", "fn/html/getAttributes", "fn/browser/getBrowserName", "fn/browser/getBrowserVersion", "fn/browser/getCookie", "fn/style/getCssVar", "fn/datetime/getDay", "fn/browser/getDeviceType", "fn/browser/getEventData", "fn/object/getField", "fn/object/getFieldValues", "fn/html/getHtml", "fn/html/getHTMLOfSelection", "fn/ajax/getLoader", "fn/html/getPath", "fn/object/getProp", "fn/object/getProperty", "fn/ajax/getRequestId", "fn/object/getRow", "fn/style/getScrollBarSize", "fn/html/getText", "fn/misc/getTimeoff", "fn/browser/happy", "fn/string/hash", "fn/convert/hex2rgb", "fn/browser/history", "fn/html/html2text", "fn/convert/imageToCanvas", "fn/convert/imgToBase64", "fn/browser/info", "fn/init", "fn/browser/isActiveInterface", "fn/type/isArray", "fn/type/isBlob", "fn/type/isBoolean", "fn/type/isCanvas", "fn/type/isColor", "fn/type/isComment", "fn/type/isCp", "fn/type/isDate", "fn/browser/isDesktopDevice", "fn/type/isDimension", "fn/type/isDom", "fn/type/isEmail", "fn/type/isEmpty", "fn/type/isEvent", "fn/browser/isFocused", "fn/type/isFunction", "fn/type/isHostname", "fn/html/isInside", "fn/type/isInt", "fn/type/isIP", "fn/type/isIterable", "fn/browser/isMobile", "fn/browser/isMobileDevice", "fn/type/isNull", "fn/type/isNumber", "fn/type/isObject", "fn/type/isPercent", "fn/type/isPrimitive", "fn/type/isPromise", "fn/type/isPropSize", "fn/type/isSame", "fn/type/isSQLDate", "fn/type/isString", "fn/type/isSymbol", "fn/browser/isTabletDevice", "fn/type/isURL", "fn/type/isValidDimension", "fn/type/isValidName", "fn/type/isValue", "fn/type/isVue", "fn/loop/iterate", "fn/style/lightenDarkenHex", "fn/ajax/link", "fn/browser/log", "fn/html/makeReactive", "fn/object/map", "fn/string/md5", "fn/misc/money", "fn/object/move", "fn/object/multiorder", "fn/string/nl2br", "fn/object/numProperties", "fn/form/objectToFormData", "fn/object/order", "fn/style/outerHeight", "fn/style/outerWidth", "fn/misc/percent", "fn/object/pickValue", "fn/ajax/post", "fn/ajax/postOut", "fn/string/printf", "fn/string/quotes2html", "fn/misc/randomInt", "fn/string/randomString", "fn/string/removeAccents", "fn/object/removeEmpty", "fn/string/removeExtraSpaces", "fn/string/removeHtmlComments", "fn/object/removePrivateProp", "fn/string/removeTrailingChars", "fn/string/repeat", "fn/string/replaceAll", "fn/browser/replaceSelection", "fn/style/resize", "fn/convert/rgb2hex", "fn/loop/riterate", "fn/misc/roundDecimal", "fn/string/sanitize", "fn/object/search", "fn/browser/selectElementText", "fn/html/selector", "fn/browser/setCookie", "fn/style/setCssVar", "fn/ajax/setNavigationVars", "fn/object/setProp", "fn/object/setProperty", "fn/string/shorten", "fn/object/shortenObj", "fn/object/shuffle", "fn/string/simpleHash", "fn/string/simpleHash1", "fn/string/simpleHash2", "fn/datetime/chrono", "fn/convert/string2ArrayBuffer", "fn/form/submit", "fn/string/substr", "fn/object/sum", "fn/datetime/timestamp", "fn/convert/toCSV", "fn/browser/toggleFullScreen", "fn/misc/translate", "fn/ajax/treatAjaxArguments", "fn/string/trim", "fn/string/uniqString", "fn/object/unique", "fn/ajax/upload", "fn/browser/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_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_2, 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_4, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_1, getProp_1, getProperty_4, getRequestId_2, getRow_3, 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_3, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_11, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_10, isObject_18, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_27, isSymbol_2, isTabletDevice_3, isURL_1, isValidDimension_2, isValidName_1, isValue_2, isVue_1, iterate_12, lightenDarkenHex_1, link_2,
|
|
9767
|
+
define("fn", ["require", "exports", "fn/ajax/_addLoader", "fn/object/_compareValues", "fn/ajax/_deleteLoader", "fn/ajax/abort", "fn/ajax/abortURL", "fn/style/addColors", "fn/form/addInputs", "fn/style/addStyle", "fn/html/adjustHeight", "fn/html/adjustSize", "fn/html/adjustWidth", "fn/ajax/ajax", "fn/misc/analyzeFunction", "fn/style/animateCss", "fn/convert/arrayBuffer2String", "fn/object/arrayFromProp", "fn/object/autoExtend", "fn/string/baseName", "fn/string/br2nl", "fn/datetime/calendar", "fn/ajax/callback", "fn/string/camelize", "fn/string/camelToCss", "fn/convert/canvasToImage", "fn/style/center", "fn/object/checkProps", "fn/object/checkPropsDetails", "fn/object/checkPropsOrDie", "fn/type/checkType", "fn/object/circularReplacer", "fn/object/clone", "fn/convert/colorToHex", "fn/object/compare", "fn/object/compareConditions", "fn/browser/copy", "fn/string/correctCase", "fn/object/count", "fn/string/crc32", "fn/object/createObject", "fn/style/cssExists", "fn/datetime/date", "fn/datetime/dateSQL", "fn/datetime/daysInMonth", "fn/object/deepPath", "fn/default/defaultAjaxAbortFunction", "fn/default/defaultAjaxErrorFunction", "fn/default/defaultAlertFunction", "fn/default/defaultConfirmFunction", "fn/default/defaultEndLoadingFunction", "fn/default/defaultErrorFunction", "fn/default/defaultHistoryFunction", "fn/default/defaultLinkFunction", "fn/default/defaultPostLinkFunction", "fn/default/defaultPreLinkFunction", "fn/default/defaultResizeFunction", "fn/default/defaultStartLoadingFunction", "fn/object/deleteProp", "fn/object/diffObj", "fn/string/dirName", "fn/ajax/download", "fn/ajax/downloadContent", "fn/loop/each", "fn/browser/eraseCookie", "fn/browser/error", "fn/string/escapeDquotes", "fn/string/escapeRegExp", "fn/string/escapeSquotes", "fn/string/escapeTicks", "fn/string/escapeUrl", "fn/object/extend", "fn/object/extendOut", "fn/datetime/fdate", "fn/datetime/fdatetime", "fn/form/fieldValue", "fn/string/fileExt", "fn/object/filter", "fn/object/filterToConditions", "fn/object/findAll", "fn/loop/fori", "fn/loop/forir", "fn/string/format", "fn/string/formatBytes", "fn/datetime/formatDate", "fn/string/formatSize", "fn/form/formdata", "fn/convert/fromXml", "fn/datetime/ftime", "fn/html/getAllTags", "fn/html/getAncestors", "fn/html/getAttributes", "fn/browser/getBrowserName", "fn/browser/getBrowserVersion", "fn/browser/getCookie", "fn/style/getCssVar", "fn/datetime/getDay", "fn/browser/getDeviceType", "fn/browser/getEventData", "fn/object/getField", "fn/object/getFieldValues", "fn/html/getHtml", "fn/html/getHTMLOfSelection", "fn/ajax/getLoader", "fn/html/getPath", "fn/object/getProp", "fn/object/getProperty", "fn/ajax/getRequestId", "fn/object/getRow", "fn/style/getScrollBarSize", "fn/html/getText", "fn/misc/getTimeoff", "fn/browser/happy", "fn/string/hash", "fn/convert/hex2rgb", "fn/browser/history", "fn/html/html2text", "fn/convert/imageToCanvas", "fn/convert/imgToBase64", "fn/browser/info", "fn/init", "fn/browser/isActiveInterface", "fn/type/isArray", "fn/type/isBlob", "fn/type/isBoolean", "fn/type/isCanvas", "fn/type/isColor", "fn/type/isComment", "fn/type/isCp", "fn/type/isDate", "fn/browser/isDesktopDevice", "fn/type/isDimension", "fn/type/isDom", "fn/type/isEmail", "fn/type/isEmpty", "fn/type/isEvent", "fn/browser/isFocused", "fn/type/isFunction", "fn/type/isHostname", "fn/html/isInside", "fn/type/isInt", "fn/type/isIP", "fn/type/isIterable", "fn/browser/isMobile", "fn/browser/isMobileDevice", "fn/type/isNull", "fn/type/isNumber", "fn/type/isObject", "fn/type/isPercent", "fn/type/isPrimitive", "fn/type/isPromise", "fn/type/isPropSize", "fn/type/isSame", "fn/type/isSQLDate", "fn/type/isString", "fn/type/isSymbol", "fn/browser/isTabletDevice", "fn/type/isURL", "fn/type/isValidDimension", "fn/type/isValidName", "fn/type/isValue", "fn/type/isVue", "fn/loop/iterate", "fn/style/lightenDarkenHex", "fn/ajax/link", "fn/browser/log", "fn/html/makeReactive", "fn/object/map", "fn/string/md5", "fn/misc/money", "fn/object/move", "fn/object/multiorder", "fn/string/nl2br", "fn/object/numProperties", "fn/form/objectToFormData", "fn/object/order", "fn/style/outerHeight", "fn/style/outerWidth", "fn/misc/percent", "fn/object/pickValue", "fn/ajax/post", "fn/ajax/postOut", "fn/string/printf", "fn/string/quotes2html", "fn/misc/randomInt", "fn/string/randomString", "fn/string/removeAccents", "fn/object/removeEmpty", "fn/string/removeExtraSpaces", "fn/string/removeHtmlComments", "fn/object/removePrivateProp", "fn/string/removeTrailingChars", "fn/string/repeat", "fn/string/replaceAll", "fn/browser/replaceSelection", "fn/style/resize", "fn/convert/rgb2hex", "fn/loop/riterate", "fn/misc/roundDecimal", "fn/string/sanitize", "fn/object/search", "fn/browser/selectElementText", "fn/html/selector", "fn/browser/setCookie", "fn/style/setCssVar", "fn/ajax/setNavigationVars", "fn/object/setProp", "fn/object/setProperty", "fn/string/shorten", "fn/object/shortenObj", "fn/object/shuffle", "fn/string/simpleHash", "fn/string/simpleHash1", "fn/string/simpleHash2", "fn/datetime/chrono", "fn/convert/string2ArrayBuffer", "fn/form/submit", "fn/string/substr", "fn/object/sum", "fn/datetime/timestamp", "fn/convert/toCSV", "fn/browser/toggleFullScreen", "fn/misc/translate", "fn/ajax/treatAjaxArguments", "fn/string/trim", "fn/string/uniqString", "fn/object/unique", "fn/ajax/upload", "fn/browser/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_1, center_1, checkProps_1, checkPropsDetails_3, checkPropsOrDie_1, checkType_6, circularReplacer_2, clone_2, colorToHex_1, compare_2, compareConditions_3, copy_1, correctCase_2, count_1, crc32_1, createObject_4, cssExists_1, date_8, dateSQL_1, daysInMonth_1, deepPath_1, defaultAjaxAbortFunction_2, defaultAjaxErrorFunction_3, defaultAlertFunction_2, defaultConfirmFunction_1, defaultEndLoadingFunction_2, defaultErrorFunction_2, 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_4, getEventData_1, getField_1, getFieldValues_1, getHtml_1, getHTMLOfSelection_2, getLoader_4, getPath_1, getProp_1, getProperty_4, getRequestId_2, getRow_3, 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_3, isDate_8, isDesktopDevice_1, isDimension_1, isDom_5, isEmail_1, isEmpty_2, isEvent_1, isFocused_1, isFunction_11, isHostname_1, isInside_1, isInt_2, isIP_2, isIterable_5, isMobile_2, isMobileDevice_2, isNull_4, isNumber_10, isObject_18, isPercent_1, isPrimitive_1, isPromise_1, isPropSize_1, isSame_3, isSQLDate_1, isString_27, 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_8, 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, chrono_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) {
|
|
9769
9768
|
"use strict";
|
|
9770
9769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9771
9770
|
exports.fn = void 0;
|
|
@@ -9933,7 +9932,7 @@
|
|
|
9933
9932
|
iterate: iterate_12.iterate,
|
|
9934
9933
|
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
9935
9934
|
link: link_2.link,
|
|
9936
|
-
log:
|
|
9935
|
+
log: log_22.log,
|
|
9937
9936
|
makeReactive: makeReactive_1.makeReactive,
|
|
9938
9937
|
map: map_1.map,
|
|
9939
9938
|
md5: md5_4.md5,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { substr } from "../string/substr";
|
|
2
|
-
import { log } from "../browser/log";
|
|
3
2
|
/**
|
|
4
3
|
* Creates and adds a "loader" object to the property bbn.env.loaders.
|
|
5
4
|
*
|
|
@@ -15,7 +14,6 @@ import { log } from "../browser/log";
|
|
|
15
14
|
* @returns {Number} The timestamp (in ms)
|
|
16
15
|
*/
|
|
17
16
|
const _addLoader = function (requestId, prom, source) {
|
|
18
|
-
log('_addLoader', requestId);
|
|
19
17
|
/** @var {Number} tst Current timestamp */
|
|
20
18
|
let tst = new Date().getTime();
|
|
21
19
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|