@bbn/bbn 1.0.70 → 1.0.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/$.js +1 -1
- package/dist/bundle.js +57 -53
- package/dist/db.js +4 -2
- package/dist/fn/ajax/_addLoader.js +2 -1
- package/dist/fn/ajax/ajax.js +1 -1
- package/dist/fn/ajax/download.js +1 -1
- package/dist/fn/default/defaultAjaxAbortFunction.js +2 -2
- package/dist/fn/html/makeReactive.js +2 -2
- package/dist/fn/type/checkType.js +2 -1
- package/dist/fn/type/isCp.js +2 -1
- package/package.json +3 -2
package/dist/$.js
CHANGED
package/dist/bundle.js
CHANGED
|
@@ -506,6 +506,7 @@
|
|
|
506
506
|
}
|
|
507
507
|
const typesList = [];
|
|
508
508
|
(0, each_1.each)(type, (t) => {
|
|
509
|
+
var _a;
|
|
509
510
|
if (t === String) {
|
|
510
511
|
t = 'string';
|
|
511
512
|
}
|
|
@@ -525,7 +526,7 @@
|
|
|
525
526
|
t = 'function';
|
|
526
527
|
}
|
|
527
528
|
if ((0, isFunction_2.isFunction)(t)) {
|
|
528
|
-
typesList.push(t.name || t.constructor
|
|
529
|
+
typesList.push(t.name || ((_a = t.constructor) === null || _a === void 0 ? void 0 : _a.name) || t.toString());
|
|
529
530
|
if (value instanceof t) {
|
|
530
531
|
ok = true;
|
|
531
532
|
return false;
|
|
@@ -585,7 +586,7 @@
|
|
|
585
586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
586
587
|
exports.$ = void 0;
|
|
587
588
|
const $ = (selector, context) => {
|
|
588
|
-
if (context
|
|
589
|
+
if (context === null || context === void 0 ? void 0 : context.querySelectorAll) {
|
|
589
590
|
return context.querySelectorAll(selector);
|
|
590
591
|
}
|
|
591
592
|
return document.body.querySelectorAll(selector);
|
|
@@ -820,7 +821,8 @@
|
|
|
820
821
|
this.selectOne = (table, field, where, order, start, limit) => {
|
|
821
822
|
return new Promise(resolve => {
|
|
822
823
|
this.select(table, [field], where, order, start, limit).then(d => {
|
|
823
|
-
|
|
824
|
+
var _a;
|
|
825
|
+
resolve((_a = d[field]) !== null && _a !== void 0 ? _a : undefined);
|
|
824
826
|
});
|
|
825
827
|
});
|
|
826
828
|
};
|
|
@@ -910,7 +912,8 @@
|
|
|
910
912
|
});
|
|
911
913
|
},
|
|
912
914
|
add(database, name, structure) {
|
|
913
|
-
|
|
915
|
+
var _a;
|
|
916
|
+
if (((_a = structure === null || structure === void 0 ? void 0 : structure.keys) === null || _a === void 0 ? void 0 : _a.PRIMARY) && (structure === null || structure === void 0 ? void 0 : structure.fields)) {
|
|
914
917
|
if (!db._structures[database]) {
|
|
915
918
|
db._structures[database] = {};
|
|
916
919
|
}
|
|
@@ -923,7 +926,7 @@
|
|
|
923
926
|
};
|
|
924
927
|
exports.db = db;
|
|
925
928
|
});
|
|
926
|
-
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr"], function (require, exports, substr_2) {
|
|
929
|
+
define("fn/ajax/_addLoader", ["require", "exports", "fn/string/substr", "fn/browser/log"], function (require, exports, substr_2, log_5) {
|
|
927
930
|
"use strict";
|
|
928
931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
929
932
|
exports._addLoader = void 0;
|
|
@@ -942,7 +945,7 @@
|
|
|
942
945
|
* @returns {Number} The timestamp (in ms)
|
|
943
946
|
*/
|
|
944
947
|
const _addLoader = function (requestId, prom, source) {
|
|
945
|
-
|
|
948
|
+
(0, log_5.log)('_addLoader', requestId);
|
|
946
949
|
/** @var {Number} tst Current timestamp */
|
|
947
950
|
let tst = new Date().getTime();
|
|
948
951
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
|
@@ -1023,7 +1026,7 @@
|
|
|
1023
1026
|
};
|
|
1024
1027
|
exports.getProperty = getProperty;
|
|
1025
1028
|
});
|
|
1026
|
-
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3,
|
|
1029
|
+
define("fn/string/removeAccents", ["require", "exports", "fn/type/isString", "fn/browser/log"], function (require, exports, isString_3, log_6) {
|
|
1027
1030
|
"use strict";
|
|
1028
1031
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1029
1032
|
exports.removeAccents = void 0;
|
|
@@ -1048,7 +1051,7 @@
|
|
|
1048
1051
|
st = st.toString();
|
|
1049
1052
|
}
|
|
1050
1053
|
else {
|
|
1051
|
-
(0,
|
|
1054
|
+
(0, log_6.log)(st);
|
|
1052
1055
|
throw new Error(bbn._("removeAccent expects a string"));
|
|
1053
1056
|
}
|
|
1054
1057
|
}
|
|
@@ -1364,13 +1367,14 @@
|
|
|
1364
1367
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1365
1368
|
exports.isCp = void 0;
|
|
1366
1369
|
const isCp = function (...args) {
|
|
1370
|
+
var _a;
|
|
1367
1371
|
if (!args.length) {
|
|
1368
1372
|
return false;
|
|
1369
1373
|
}
|
|
1370
1374
|
if ('cp' in bbn && 'isComponent' in bbn['cp'] && (typeof bbn['cp'].isComponent === 'function')) {
|
|
1371
1375
|
for (let a of args) {
|
|
1372
1376
|
let res = bbn.cp.isComponent(a);
|
|
1373
|
-
if (!res || (0, isDom_1.isDom)(a) || !a.$el
|
|
1377
|
+
if (!res || (0, isDom_1.isDom)(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
1374
1378
|
return false;
|
|
1375
1379
|
}
|
|
1376
1380
|
}
|
|
@@ -1380,7 +1384,7 @@
|
|
|
1380
1384
|
};
|
|
1381
1385
|
exports.isCp = isCp;
|
|
1382
1386
|
});
|
|
1383
|
-
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1,
|
|
1387
|
+
define("fn/object/circularReplacer", ["require", "exports", "fn/type/isDom", "fn/type/isCp", "fn/browser/log"], function (require, exports, isDom_2, isCp_1, log_7) {
|
|
1384
1388
|
"use strict";
|
|
1385
1389
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1386
1390
|
exports.circularReplacer = void 0;
|
|
@@ -1408,7 +1412,7 @@
|
|
|
1408
1412
|
}
|
|
1409
1413
|
}
|
|
1410
1414
|
else if ((0, isCp_1.isCp)(value)) {
|
|
1411
|
-
(0,
|
|
1415
|
+
(0, log_7.log)("IS CP");
|
|
1412
1416
|
value = "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1413
1417
|
}
|
|
1414
1418
|
else {
|
|
@@ -1462,7 +1466,7 @@
|
|
|
1462
1466
|
};
|
|
1463
1467
|
exports.simpleHash = simpleHash;
|
|
1464
1468
|
});
|
|
1465
|
-
define("fn/string/hash", ["require", "exports", "fn/browser/log", "fn/type/isDom", "fn/type/isCp", "fn/object/circularReplacer", "fn/string/simpleHash"], function (require, exports,
|
|
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, log_8, isDom_3, isCp_2, circularReplacer_1, simpleHash_1) {
|
|
1466
1470
|
"use strict";
|
|
1467
1471
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1468
1472
|
exports.hash = void 0;
|
|
@@ -1487,7 +1491,7 @@
|
|
|
1487
1491
|
}
|
|
1488
1492
|
}
|
|
1489
1493
|
else if ((0, isCp_2.isCp)(value)) {
|
|
1490
|
-
(0,
|
|
1494
|
+
(0, log_8.log)("IS CP");
|
|
1491
1495
|
st += "__BBN_CP__" + value.$options.name + "/" + value.$cid;
|
|
1492
1496
|
}
|
|
1493
1497
|
else {
|
|
@@ -3051,21 +3055,21 @@
|
|
|
3051
3055
|
};
|
|
3052
3056
|
exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
|
|
3053
3057
|
});
|
|
3054
|
-
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3058
|
+
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_9) {
|
|
3055
3059
|
"use strict";
|
|
3056
3060
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3057
3061
|
exports.defaultAjaxErrorFunction = void 0;
|
|
3058
3062
|
const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
|
|
3059
|
-
(0,
|
|
3063
|
+
(0, log_9.log)(textStatus, errorThrown);
|
|
3060
3064
|
};
|
|
3061
3065
|
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
3062
3066
|
});
|
|
3063
|
-
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
3067
|
+
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_10) {
|
|
3064
3068
|
"use strict";
|
|
3065
3069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3066
3070
|
exports.defaultAjaxAbortFunction = void 0;
|
|
3067
|
-
const defaultAjaxAbortFunction = function (message, url =
|
|
3068
|
-
(0,
|
|
3071
|
+
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
3072
|
+
(0, log_10.log)(message);
|
|
3069
3073
|
};
|
|
3070
3074
|
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
3071
3075
|
});
|
|
@@ -3171,7 +3175,7 @@
|
|
|
3171
3175
|
let requestId = (0, getRequestId_1.getRequestId)(url, data, datatype);
|
|
3172
3176
|
let loaderObj = (0, getLoader_2.getLoader)(requestId);
|
|
3173
3177
|
//log("IN AJAX", loaderObj? loaderObj.loader : "NO LOADER")
|
|
3174
|
-
if (loaderObj
|
|
3178
|
+
if (loaderObj === null || loaderObj === void 0 ? void 0 : loaderObj.loader) {
|
|
3175
3179
|
return loaderObj.loader;
|
|
3176
3180
|
}
|
|
3177
3181
|
if (bbn.env.token) {
|
|
@@ -3750,7 +3754,7 @@
|
|
|
3750
3754
|
};
|
|
3751
3755
|
exports.defaultAlertFunction = defaultAlertFunction;
|
|
3752
3756
|
});
|
|
3753
|
-
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,
|
|
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, log_11, defaultPostLinkFunction_1, defaultAlertFunction_1) {
|
|
3754
3758
|
"use strict";
|
|
3755
3759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3756
3760
|
exports.callback = void 0;
|
|
@@ -3837,7 +3841,7 @@
|
|
|
3837
3841
|
}
|
|
3838
3842
|
}
|
|
3839
3843
|
catch (e) {
|
|
3840
|
-
(0,
|
|
3844
|
+
(0, log_11.log)(e, res);
|
|
3841
3845
|
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
3842
3846
|
}
|
|
3843
3847
|
return r;
|
|
@@ -4492,12 +4496,12 @@
|
|
|
4492
4496
|
};
|
|
4493
4497
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
4494
4498
|
});
|
|
4495
|
-
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
4499
|
+
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_12) {
|
|
4496
4500
|
"use strict";
|
|
4497
4501
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4498
4502
|
exports.defaultErrorFunction = void 0;
|
|
4499
4503
|
const defaultErrorFunction = function (message) {
|
|
4500
|
-
(0,
|
|
4504
|
+
(0, log_12.log)(message);
|
|
4501
4505
|
};
|
|
4502
4506
|
exports.defaultErrorFunction = defaultErrorFunction;
|
|
4503
4507
|
});
|
|
@@ -4892,7 +4896,7 @@
|
|
|
4892
4896
|
};
|
|
4893
4897
|
exports.isCanvas = isCanvas;
|
|
4894
4898
|
});
|
|
4895
|
-
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) {
|
|
4896
4900
|
"use strict";
|
|
4897
4901
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4898
4902
|
exports.downloadContent = void 0;
|
|
@@ -4953,7 +4957,7 @@
|
|
|
4953
4957
|
src = content;
|
|
4954
4958
|
}
|
|
4955
4959
|
catch (e) {
|
|
4956
|
-
(0,
|
|
4960
|
+
(0, log_13.log)(e);
|
|
4957
4961
|
}
|
|
4958
4962
|
}
|
|
4959
4963
|
a.href = window.URL.createObjectURL(src);
|
|
@@ -5008,7 +5012,7 @@
|
|
|
5008
5012
|
return (0, ajax_1.ajax)(url, 'blob', params || { _bbn_download: 1 }, (d, headers) => {
|
|
5009
5013
|
if (!filename) {
|
|
5010
5014
|
let cd = 'attachment; filename=';
|
|
5011
|
-
if (headers
|
|
5015
|
+
if ((headers === null || headers === void 0 ? void 0 : headers['content-disposition']) && headers['content-disposition'].indexOf(cd) === 0) {
|
|
5012
5016
|
filename = (0, substr_7.substr)(headers['content-disposition'], cd.length + 1, headers['content-disposition'].length - cd.length - 2);
|
|
5013
5017
|
}
|
|
5014
5018
|
else {
|
|
@@ -5919,7 +5923,7 @@
|
|
|
5919
5923
|
};
|
|
5920
5924
|
exports.getDeviceType = getDeviceType;
|
|
5921
5925
|
});
|
|
5922
|
-
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) {
|
|
5923
5927
|
"use strict";
|
|
5924
5928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5925
5929
|
exports.getHTMLOfSelection = void 0;
|
|
@@ -5928,9 +5932,9 @@
|
|
|
5928
5932
|
let selection = window.getSelection();
|
|
5929
5933
|
if (selection.rangeCount > 0) {
|
|
5930
5934
|
range = selection.getRangeAt(0);
|
|
5931
|
-
(0,
|
|
5935
|
+
(0, log_14.log)('RANGE', range);
|
|
5932
5936
|
let clonedSelection = range.cloneContents();
|
|
5933
|
-
(0,
|
|
5937
|
+
(0, log_14.log)('clonedSelection', clonedSelection);
|
|
5934
5938
|
let div = document.createElement('div');
|
|
5935
5939
|
div.appendChild(clonedSelection);
|
|
5936
5940
|
return div.innerHTML;
|
|
@@ -6302,7 +6306,7 @@
|
|
|
6302
6306
|
};
|
|
6303
6307
|
exports.getTimeoff = getTimeoff;
|
|
6304
6308
|
});
|
|
6305
|
-
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) {
|
|
6306
6310
|
"use strict";
|
|
6307
6311
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6308
6312
|
exports.happy = void 0;
|
|
@@ -6323,7 +6327,7 @@
|
|
|
6323
6327
|
_bbn_console_level: 3,
|
|
6324
6328
|
_bbn_console_style: 'color: white; background: green; font-size: 18px;',
|
|
6325
6329
|
});
|
|
6326
|
-
|
|
6330
|
+
log_15.log.apply(this, args);
|
|
6327
6331
|
return this;
|
|
6328
6332
|
};
|
|
6329
6333
|
exports.happy = happy;
|
|
@@ -6435,7 +6439,7 @@
|
|
|
6435
6439
|
};
|
|
6436
6440
|
exports.imgToBase64 = imgToBase64;
|
|
6437
6441
|
});
|
|
6438
|
-
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) {
|
|
6439
6443
|
"use strict";
|
|
6440
6444
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6441
6445
|
exports.info = void 0;
|
|
@@ -6453,7 +6457,7 @@
|
|
|
6453
6457
|
_bbn_console_level: 4,
|
|
6454
6458
|
_bbn_console_style: 'color: #EEE; background: blue; font-size: 12px;',
|
|
6455
6459
|
});
|
|
6456
|
-
|
|
6460
|
+
log_16.log.apply(this, args);
|
|
6457
6461
|
return this;
|
|
6458
6462
|
};
|
|
6459
6463
|
exports.info = info;
|
|
@@ -6667,7 +6671,7 @@
|
|
|
6667
6671
|
};
|
|
6668
6672
|
exports.setNavigationVars = setNavigationVars;
|
|
6669
6673
|
});
|
|
6670
|
-
define("fn/ajax/link", ["require", "exports", "fn/ajax/treatAjaxArguments", "fn/ajax/getLoader", "fn/default/defaultPreLinkFunction", "fn/ajax/ajax", "fn/browser/log", "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/type/isObject", "fn/ajax/callback", "fn/ajax/setNavigationVars"], function (require, exports, treatAjaxArguments_1, getLoader_3, defaultPreLinkFunction_1, ajax_2, log_17, isObject_15, callback_1, setNavigationVars_1) {
|
|
6671
6675
|
"use strict";
|
|
6672
6676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6673
6677
|
exports.link = void 0;
|
|
@@ -6765,12 +6769,12 @@
|
|
|
6765
6769
|
let errSt = bbn._('The Ajax call to') + ' ' + cfg.url + ' ';
|
|
6766
6770
|
return (0, ajax_2.ajax)(cfg.url, cfg.datatype, cfg.obj, function (res) {
|
|
6767
6771
|
if (!res) {
|
|
6768
|
-
(0,
|
|
6772
|
+
(0, log_17.log)(errSt + bbn._('returned no answer'));
|
|
6769
6773
|
}
|
|
6770
6774
|
if ((0, isObject_15.isObject)(res)) {
|
|
6771
6775
|
// If there's nothing in the result, just an empty object, the callback stops here and the URL is not changed
|
|
6772
6776
|
if (Object.keys(res).length === 0) {
|
|
6773
|
-
(0,
|
|
6777
|
+
(0, log_17.log)(errSt + bbn._('returned an empty object'));
|
|
6774
6778
|
}
|
|
6775
6779
|
if (res.new_url) {
|
|
6776
6780
|
res.old_path = cfg.url;
|
|
@@ -6986,7 +6990,7 @@
|
|
|
6986
6990
|
};
|
|
6987
6991
|
exports.isMobile = isMobile;
|
|
6988
6992
|
});
|
|
6989
|
-
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_6, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9,
|
|
6993
|
+
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_6, addColors_1, link_1, submit_1, resize_1, isMobile_1, isTabletDevice_2, defaultHistoryFunction_1, isFunction_9, log_18) {
|
|
6990
6994
|
"use strict";
|
|
6991
6995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6992
6996
|
exports.init = void 0;
|
|
@@ -7153,7 +7157,7 @@
|
|
|
7153
7157
|
bbn.env.isInit = true;
|
|
7154
7158
|
document.dispatchEvent(new Event('bbninit'));
|
|
7155
7159
|
if (bbn.env.logging) {
|
|
7156
|
-
(0,
|
|
7160
|
+
(0, log_18.log)('Logging in bbn is enabled');
|
|
7157
7161
|
}
|
|
7158
7162
|
}
|
|
7159
7163
|
};
|
|
@@ -7836,7 +7840,7 @@
|
|
|
7836
7840
|
};
|
|
7837
7841
|
exports.lightenDarkenHex = lightenDarkenHex;
|
|
7838
7842
|
});
|
|
7839
|
-
define("fn/browser/warning", ["require", "exports", "fn/browser/log"], function (require, exports,
|
|
7843
|
+
define("fn/browser/warning", ["require", "exports", "fn/browser/log"], function (require, exports, log_19) {
|
|
7840
7844
|
"use strict";
|
|
7841
7845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7842
7846
|
exports.warning = void 0;
|
|
@@ -7860,23 +7864,23 @@
|
|
|
7860
7864
|
_bbn_console_style: 'color: #E64141; background: #F7E195; font-size: 14px',
|
|
7861
7865
|
};
|
|
7862
7866
|
args.unshift(obj);
|
|
7863
|
-
|
|
7867
|
+
log_19.log.apply(this, args);
|
|
7864
7868
|
};
|
|
7865
7869
|
exports.warning = warning;
|
|
7866
7870
|
});
|
|
7867
|
-
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,
|
|
7871
|
+
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) {
|
|
7868
7872
|
"use strict";
|
|
7869
7873
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7870
7874
|
exports.makeReactive = void 0;
|
|
7871
7875
|
const makeReactive = function (obj, onSet, parent, parentProp) {
|
|
7872
|
-
const parentString = parent
|
|
7876
|
+
const parentString = (parent === null || parent === void 0 ? void 0 : parent.$cid) || '';
|
|
7873
7877
|
const prefix = '__bbn_' + (parentString ? parentString + '_' : '');
|
|
7874
7878
|
if (obj && typeof obj === 'object' && [undefined, Object, Array].includes(obj.constructor)) {
|
|
7875
7879
|
if (obj.__bbnIsProxy && obj.__bbnParent === parent) {
|
|
7876
7880
|
return obj;
|
|
7877
7881
|
}
|
|
7878
7882
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
7879
|
-
(0,
|
|
7883
|
+
(0, log_20.log)(['MAKING bbn-loadbar', obj]);
|
|
7880
7884
|
}
|
|
7881
7885
|
if (!obj.__bbnWatchers) {
|
|
7882
7886
|
Reflect.defineProperty(obj, '__bbnWatchers', {
|
|
@@ -7900,7 +7904,7 @@
|
|
|
7900
7904
|
return function (...args) {
|
|
7901
7905
|
let res = realTarget[key](...args);
|
|
7902
7906
|
(0, warning_1.warning)('DOING ARRAY STUFF');
|
|
7903
|
-
(0,
|
|
7907
|
+
(0, log_20.log)(target.__bbnParent);
|
|
7904
7908
|
onSet(target, 'length', parent);
|
|
7905
7909
|
return res;
|
|
7906
7910
|
};
|
|
@@ -7910,7 +7914,7 @@
|
|
|
7910
7914
|
}
|
|
7911
7915
|
if (key === '__bbnRoot') {
|
|
7912
7916
|
let root = obj;
|
|
7913
|
-
while (root && root
|
|
7917
|
+
while (root && (root === null || root === void 0 ? void 0 : root.__bbnTarget)) {
|
|
7914
7918
|
root = root.__bbnTarget;
|
|
7915
7919
|
}
|
|
7916
7920
|
return root;
|
|
@@ -7967,7 +7971,7 @@
|
|
|
7967
7971
|
return Reflect.get(target, key);
|
|
7968
7972
|
}
|
|
7969
7973
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
7970
|
-
(0,
|
|
7974
|
+
(0, log_20.log)(['Setting proxy prop in ' + parent.$options.name, target, key, value]);
|
|
7971
7975
|
}
|
|
7972
7976
|
if (!(0, isSame_2.isSame)(realTarget[key], value)) {
|
|
7973
7977
|
if (key.indexOf('__bbn_') === 0) {
|
|
@@ -7995,7 +7999,7 @@
|
|
|
7995
7999
|
}
|
|
7996
8000
|
}
|
|
7997
8001
|
if (parent && parent.$options && parent.$options.name === 'bbn-loadbar') {
|
|
7998
|
-
(0,
|
|
8002
|
+
(0, log_20.log)([
|
|
7999
8003
|
'Setting proxy prop in ' +
|
|
8000
8004
|
parent.$options.name +
|
|
8001
8005
|
' ' +
|
|
@@ -9698,7 +9702,7 @@
|
|
|
9698
9702
|
};
|
|
9699
9703
|
exports.uniqString = uniqString;
|
|
9700
9704
|
});
|
|
9701
|
-
define("fn/ajax/upload", ["require", "exports", "fn/form/objectToFormData", "fn/browser/log"], function (require, exports, objectToFormData_1,
|
|
9705
|
+
define("fn/ajax/upload", ["require", "exports", "fn/form/objectToFormData", "fn/browser/log"], function (require, exports, objectToFormData_1, log_21) {
|
|
9702
9706
|
"use strict";
|
|
9703
9707
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9704
9708
|
exports.upload = void 0;
|
|
@@ -9739,13 +9743,13 @@
|
|
|
9739
9743
|
return fn()
|
|
9740
9744
|
.then((res) => {
|
|
9741
9745
|
if (success) {
|
|
9742
|
-
(0,
|
|
9746
|
+
(0, log_21.log)('SUCCESS', res);
|
|
9743
9747
|
success(res);
|
|
9744
9748
|
}
|
|
9745
9749
|
})
|
|
9746
9750
|
.catch((err) => {
|
|
9747
9751
|
if (failure) {
|
|
9748
|
-
(0,
|
|
9752
|
+
(0, log_21.log)('ERROR', err);
|
|
9749
9753
|
failure(err);
|
|
9750
9754
|
}
|
|
9751
9755
|
});
|
|
@@ -9753,7 +9757,7 @@
|
|
|
9753
9757
|
};
|
|
9754
9758
|
exports.upload = upload;
|
|
9755
9759
|
});
|
|
9756
|
-
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_7, 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,
|
|
9760
|
+
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_7, 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) {
|
|
9757
9761
|
"use strict";
|
|
9758
9762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9759
9763
|
exports.fn = void 0;
|
|
@@ -9921,7 +9925,7 @@
|
|
|
9921
9925
|
iterate: iterate_12.iterate,
|
|
9922
9926
|
lightenDarkenHex: lightenDarkenHex_1.lightenDarkenHex,
|
|
9923
9927
|
link: link_2.link,
|
|
9924
|
-
log:
|
|
9928
|
+
log: log_22.log,
|
|
9925
9929
|
makeReactive: makeReactive_1.makeReactive,
|
|
9926
9930
|
map: map_1.map,
|
|
9927
9931
|
md5: md5_4.md5,
|
|
@@ -10027,7 +10031,7 @@
|
|
|
10027
10031
|
Object.defineProperty(exports, "__cjsModule", { value: true });
|
|
10028
10032
|
Object.defineProperty(exports, "default", { value: require(name) });
|
|
10029
10033
|
}
|
|
10030
|
-
catch {
|
|
10034
|
+
catch (_a) {
|
|
10031
10035
|
throw Error(['module "', name, '" not found.'].join(''));
|
|
10032
10036
|
}
|
|
10033
10037
|
};
|
package/dist/db.js
CHANGED
|
@@ -78,7 +78,8 @@ const dbObject = function (dbName) {
|
|
|
78
78
|
this.selectOne = (table, field, where, order, start, limit) => {
|
|
79
79
|
return new Promise(resolve => {
|
|
80
80
|
this.select(table, [field], where, order, start, limit).then(d => {
|
|
81
|
-
|
|
81
|
+
var _a;
|
|
82
|
+
resolve((_a = d[field]) !== null && _a !== void 0 ? _a : undefined);
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
};
|
|
@@ -168,7 +169,8 @@ const db = {
|
|
|
168
169
|
});
|
|
169
170
|
},
|
|
170
171
|
add(database, name, structure) {
|
|
171
|
-
|
|
172
|
+
var _a;
|
|
173
|
+
if (((_a = structure === null || structure === void 0 ? void 0 : structure.keys) === null || _a === void 0 ? void 0 : _a.PRIMARY) && (structure === null || structure === void 0 ? void 0 : structure.fields)) {
|
|
172
174
|
if (!db._structures[database]) {
|
|
173
175
|
db._structures[database] = {};
|
|
174
176
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { substr } from "../string/substr";
|
|
2
|
+
import { log } from "../browser/log";
|
|
2
3
|
/**
|
|
3
4
|
* Creates and adds a "loader" object to the property bbn.env.loaders.
|
|
4
5
|
*
|
|
@@ -14,7 +15,7 @@ import { substr } from "../string/substr";
|
|
|
14
15
|
* @returns {Number} The timestamp (in ms)
|
|
15
16
|
*/
|
|
16
17
|
const _addLoader = function (requestId, prom, source) {
|
|
17
|
-
|
|
18
|
+
log('_addLoader', requestId);
|
|
18
19
|
/** @var {Number} tst Current timestamp */
|
|
19
20
|
let tst = new Date().getTime();
|
|
20
21
|
/** @var {String} url The original URL (part of requestId before : and md5) */
|
package/dist/fn/ajax/ajax.js
CHANGED
|
@@ -100,7 +100,7 @@ const ajax = function (url, datatype, data, success, failure, abort) {
|
|
|
100
100
|
let requestId = getRequestId(url, data, datatype);
|
|
101
101
|
let loaderObj = getLoader(requestId);
|
|
102
102
|
//log("IN AJAX", loaderObj? loaderObj.loader : "NO LOADER")
|
|
103
|
-
if (loaderObj
|
|
103
|
+
if (loaderObj === null || loaderObj === void 0 ? void 0 : loaderObj.loader) {
|
|
104
104
|
return loaderObj.loader;
|
|
105
105
|
}
|
|
106
106
|
if (bbn.env.token) {
|
package/dist/fn/ajax/download.js
CHANGED
|
@@ -42,7 +42,7 @@ const download = function (url, filename, params) {
|
|
|
42
42
|
return ajax(url, 'blob', params || { _bbn_download: 1 }, (d, headers) => {
|
|
43
43
|
if (!filename) {
|
|
44
44
|
let cd = 'attachment; filename=';
|
|
45
|
-
if (headers
|
|
45
|
+
if ((headers === null || headers === void 0 ? void 0 : headers['content-disposition']) && headers['content-disposition'].indexOf(cd) === 0) {
|
|
46
46
|
filename = substr(headers['content-disposition'], cd.length + 1, headers['content-disposition'].length - cd.length - 2);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { log } from
|
|
2
|
-
const defaultAjaxAbortFunction = function (message, url =
|
|
1
|
+
import { log } from "../browser/log";
|
|
2
|
+
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
3
3
|
log(message);
|
|
4
4
|
};
|
|
5
5
|
export { defaultAjaxAbortFunction };
|
|
@@ -7,7 +7,7 @@ import { warning } from '../browser/warning';
|
|
|
7
7
|
import { isFunction } from '../type/isFunction';
|
|
8
8
|
import { isSame } from '../type/isSame';
|
|
9
9
|
const makeReactive = function (obj, onSet, parent, parentProp) {
|
|
10
|
-
const parentString = parent
|
|
10
|
+
const parentString = (parent === null || parent === void 0 ? void 0 : parent.$cid) || '';
|
|
11
11
|
const prefix = '__bbn_' + (parentString ? parentString + '_' : '');
|
|
12
12
|
if (obj && typeof obj === 'object' && [undefined, Object, Array].includes(obj.constructor)) {
|
|
13
13
|
if (obj.__bbnIsProxy && obj.__bbnParent === parent) {
|
|
@@ -48,7 +48,7 @@ const makeReactive = function (obj, onSet, parent, parentProp) {
|
|
|
48
48
|
}
|
|
49
49
|
if (key === '__bbnRoot') {
|
|
50
50
|
let root = obj;
|
|
51
|
-
while (root && root
|
|
51
|
+
while (root && (root === null || root === void 0 ? void 0 : root.__bbnTarget)) {
|
|
52
52
|
root = root.__bbnTarget;
|
|
53
53
|
}
|
|
54
54
|
return root;
|
|
@@ -12,6 +12,7 @@ const checkType = function (value, type, msg, ...logs) {
|
|
|
12
12
|
}
|
|
13
13
|
const typesList = [];
|
|
14
14
|
each(type, (t) => {
|
|
15
|
+
var _a;
|
|
15
16
|
if (t === String) {
|
|
16
17
|
t = 'string';
|
|
17
18
|
}
|
|
@@ -31,7 +32,7 @@ const checkType = function (value, type, msg, ...logs) {
|
|
|
31
32
|
t = 'function';
|
|
32
33
|
}
|
|
33
34
|
if (isFunction(t)) {
|
|
34
|
-
typesList.push(t.name || t.constructor
|
|
35
|
+
typesList.push(t.name || ((_a = t.constructor) === null || _a === void 0 ? void 0 : _a.name) || t.toString());
|
|
35
36
|
if (value instanceof t) {
|
|
36
37
|
ok = true;
|
|
37
38
|
return false;
|
package/dist/fn/type/isCp.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { isDom } from './isDom';
|
|
2
2
|
const isCp = function (...args) {
|
|
3
|
+
var _a;
|
|
3
4
|
if (!args.length) {
|
|
4
5
|
return false;
|
|
5
6
|
}
|
|
6
7
|
if ('cp' in bbn && 'isComponent' in bbn['cp'] && (typeof bbn['cp'].isComponent === 'function')) {
|
|
7
8
|
for (let a of args) {
|
|
8
9
|
let res = bbn.cp.isComponent(a);
|
|
9
|
-
if (!res || isDom(a) || !a.$el
|
|
10
|
+
if (!res || isDom(a) || !((_a = a.$el) === null || _a === void 0 ? void 0 : _a.bbnCid)) {
|
|
10
11
|
return false;
|
|
11
12
|
}
|
|
12
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbn/bbn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.72",
|
|
4
4
|
"description": "Javascript toolkit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"bbn": "tsc && tsc-bundle tsconfig.json && git stage ./src/* && git stage ./*.ts && git stage ./*.json && git stage -f ./dist/bundle.js && git commit -m \"Latest changes\" && git push && npm version patch && npm publish",
|
|
12
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
13
|
+
"wtf": "echo \"Error: no test specified\" && exit 1"
|
|
13
14
|
},
|
|
14
15
|
"keywords": [
|
|
15
16
|
"toolkit"
|