@bbn/bbn 1.0.80 → 1.0.81
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 +28 -28
- package/dist/bundle.js +92 -92
- package/dist/fn/ajax/ajax.js +6 -10
- package/dist/fn/ajax/callback.js +5 -8
- package/dist/fn/ajax/download.js +1 -2
- package/dist/fn/ajax/link.js +2 -3
- package/package.json +1 -1
package/dist/bundle.d.ts
CHANGED
|
@@ -1530,22 +1530,6 @@ declare module "fn/object/extend" {
|
|
|
1530
1530
|
const extend: (...originalArgs: (boolean | object)[]) => any;
|
|
1531
1531
|
export { extend };
|
|
1532
1532
|
}
|
|
1533
|
-
declare module "fn/default/defaultEndLoadingFunction" {
|
|
1534
|
-
const defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
|
|
1535
|
-
export { defaultEndLoadingFunction };
|
|
1536
|
-
}
|
|
1537
|
-
declare module "fn/default/defaultAjaxErrorFunction" {
|
|
1538
|
-
const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
|
|
1539
|
-
export { defaultAjaxErrorFunction };
|
|
1540
|
-
}
|
|
1541
|
-
declare module "fn/default/defaultAjaxAbortFunction" {
|
|
1542
|
-
const defaultAjaxAbortFunction: (message: string, url?: string) => void;
|
|
1543
|
-
export { defaultAjaxAbortFunction };
|
|
1544
|
-
}
|
|
1545
|
-
declare module "fn/default/defaultStartLoadingFunction" {
|
|
1546
|
-
const defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
|
|
1547
|
-
export { defaultStartLoadingFunction };
|
|
1548
|
-
}
|
|
1549
1533
|
declare module "fn/ajax/ajax" {
|
|
1550
1534
|
/**
|
|
1551
1535
|
* Creates an XHR object and returns the Promise.
|
|
@@ -1803,18 +1787,6 @@ declare module "fn/datetime/calendar" {
|
|
|
1803
1787
|
const calendar: (d?: Date | number | string, wrong_result?: string) => any;
|
|
1804
1788
|
export { calendar };
|
|
1805
1789
|
}
|
|
1806
|
-
declare module "fn/default/defaultLinkFunction" {
|
|
1807
|
-
const defaultLinkFunction: (responseObj: any, ele: any) => boolean;
|
|
1808
|
-
export { defaultLinkFunction };
|
|
1809
|
-
}
|
|
1810
|
-
declare module "fn/default/defaultPostLinkFunction" {
|
|
1811
|
-
const defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
|
|
1812
|
-
export { defaultPostLinkFunction };
|
|
1813
|
-
}
|
|
1814
|
-
declare module "fn/default/defaultAlertFunction" {
|
|
1815
|
-
const defaultAlertFunction: (msg: string, title?: string) => void;
|
|
1816
|
-
export { defaultAlertFunction };
|
|
1817
|
-
}
|
|
1818
1790
|
declare module "fn/ajax/callback" {
|
|
1819
1791
|
/**
|
|
1820
1792
|
* Executes a serie of predefined actions once an Ajax request has been done.
|
|
@@ -2184,10 +2156,26 @@ declare module "fn/object/deepPath" {
|
|
|
2184
2156
|
const deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
|
|
2185
2157
|
export { deepPath };
|
|
2186
2158
|
}
|
|
2159
|
+
declare module "fn/default/defaultAjaxAbortFunction" {
|
|
2160
|
+
const defaultAjaxAbortFunction: (message: string, url?: string) => void;
|
|
2161
|
+
export { defaultAjaxAbortFunction };
|
|
2162
|
+
}
|
|
2163
|
+
declare module "fn/default/defaultAjaxErrorFunction" {
|
|
2164
|
+
const defaultAjaxErrorFunction: (jqXHR: any, textStatus?: string, errorThrown?: object) => void;
|
|
2165
|
+
export { defaultAjaxErrorFunction };
|
|
2166
|
+
}
|
|
2167
|
+
declare module "fn/default/defaultAlertFunction" {
|
|
2168
|
+
const defaultAlertFunction: (msg: string, title?: string) => void;
|
|
2169
|
+
export { defaultAlertFunction };
|
|
2170
|
+
}
|
|
2187
2171
|
declare module "fn/default/defaultConfirmFunction" {
|
|
2188
2172
|
const defaultConfirmFunction: (text: string, yesFn: () => any, noFn: () => any) => void;
|
|
2189
2173
|
export { defaultConfirmFunction };
|
|
2190
2174
|
}
|
|
2175
|
+
declare module "fn/default/defaultEndLoadingFunction" {
|
|
2176
|
+
const defaultEndLoadingFunction: (url: string, timestamp: number, data?: object, res?: object) => boolean;
|
|
2177
|
+
export { defaultEndLoadingFunction };
|
|
2178
|
+
}
|
|
2191
2179
|
declare module "fn/default/defaultErrorFunction" {
|
|
2192
2180
|
const defaultErrorFunction: (message: any) => void;
|
|
2193
2181
|
export { defaultErrorFunction };
|
|
@@ -2196,6 +2184,14 @@ declare module "fn/default/defaultHistoryFunction" {
|
|
|
2196
2184
|
const defaultHistoryFunction: (obj: any) => boolean;
|
|
2197
2185
|
export { defaultHistoryFunction };
|
|
2198
2186
|
}
|
|
2187
|
+
declare module "fn/default/defaultLinkFunction" {
|
|
2188
|
+
const defaultLinkFunction: (responseObj: any, ele: any) => boolean;
|
|
2189
|
+
export { defaultLinkFunction };
|
|
2190
|
+
}
|
|
2191
|
+
declare module "fn/default/defaultPostLinkFunction" {
|
|
2192
|
+
const defaultPostLinkFunction: (r: object, ele?: HTMLElement) => boolean;
|
|
2193
|
+
export { defaultPostLinkFunction };
|
|
2194
|
+
}
|
|
2199
2195
|
declare module "fn/default/defaultPreLinkFunction" {
|
|
2200
2196
|
const defaultPreLinkFunction: (url: string, force?: boolean, ele?: HTMLElement) => any;
|
|
2201
2197
|
export { defaultPreLinkFunction };
|
|
@@ -2204,6 +2200,10 @@ declare module "fn/default/defaultResizeFunction" {
|
|
|
2204
2200
|
const defaultResizeFunction: () => boolean;
|
|
2205
2201
|
export { defaultResizeFunction };
|
|
2206
2202
|
}
|
|
2203
|
+
declare module "fn/default/defaultStartLoadingFunction" {
|
|
2204
|
+
const defaultStartLoadingFunction: (url: string, tst: number, data?: object, requestId?: string) => boolean;
|
|
2205
|
+
export { defaultStartLoadingFunction };
|
|
2206
|
+
}
|
|
2207
2207
|
declare module "fn/object/deleteProp" {
|
|
2208
2208
|
/**
|
|
2209
2209
|
* Gets the given property from the given object
|
package/dist/bundle.js
CHANGED
|
@@ -3045,43 +3045,7 @@
|
|
|
3045
3045
|
};
|
|
3046
3046
|
exports.extend = extend;
|
|
3047
3047
|
});
|
|
3048
|
-
define("fn/
|
|
3049
|
-
"use strict";
|
|
3050
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3051
|
-
exports.defaultEndLoadingFunction = void 0;
|
|
3052
|
-
const defaultEndLoadingFunction = function (url, timestamp, data, res) {
|
|
3053
|
-
return true;
|
|
3054
|
-
};
|
|
3055
|
-
exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
|
|
3056
|
-
});
|
|
3057
|
-
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_8) {
|
|
3058
|
-
"use strict";
|
|
3059
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3060
|
-
exports.defaultAjaxErrorFunction = void 0;
|
|
3061
|
-
const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
|
|
3062
|
-
(0, log_8.log)(textStatus, errorThrown);
|
|
3063
|
-
};
|
|
3064
|
-
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
3065
|
-
});
|
|
3066
|
-
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_9) {
|
|
3067
|
-
"use strict";
|
|
3068
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3069
|
-
exports.defaultAjaxAbortFunction = void 0;
|
|
3070
|
-
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
3071
|
-
(0, log_9.log)(message);
|
|
3072
|
-
};
|
|
3073
|
-
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
3074
|
-
});
|
|
3075
|
-
define("fn/default/defaultStartLoadingFunction", ["require", "exports"], function (require, exports) {
|
|
3076
|
-
"use strict";
|
|
3077
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3078
|
-
exports.defaultStartLoadingFunction = void 0;
|
|
3079
|
-
const defaultStartLoadingFunction = function (url, tst, data, requestId = null) {
|
|
3080
|
-
return true;
|
|
3081
|
-
};
|
|
3082
|
-
exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
|
|
3083
|
-
});
|
|
3084
|
-
define("fn/ajax/ajax", ["require", "exports", "fn/type/isObject", "fn/string/replaceAll", "fn/ajax/getRequestId", "fn/ajax/getLoader", "fn/object/extend", "fn/object/numProperties", "fn/ajax/_deleteLoader", "fn/default/defaultEndLoadingFunction", "fn/type/isFunction", "fn/default/defaultAjaxErrorFunction", "fn/default/defaultAjaxAbortFunction", "fn/ajax/_addLoader", "fn/default/defaultStartLoadingFunction"], function (require, exports, isObject_8, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, defaultEndLoadingFunction_1, isFunction_3, defaultAjaxErrorFunction_1, defaultAjaxAbortFunction_1, _addLoader_1, defaultStartLoadingFunction_1) {
|
|
3048
|
+
define("fn/ajax/ajax", ["require", "exports", "fn/type/isObject", "fn/string/replaceAll", "fn/ajax/getRequestId", "fn/ajax/getLoader", "fn/object/extend", "fn/object/numProperties", "fn/ajax/_deleteLoader", "fn/type/isFunction", "fn/ajax/_addLoader"], function (require, exports, isObject_8, replaceAll_1, getRequestId_1, getLoader_2, extend_1, numProperties_4, _deleteLoader_1, isFunction_3, _addLoader_1) {
|
|
3085
3049
|
"use strict";
|
|
3086
3050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3087
3051
|
exports.ajax = void 0;
|
|
@@ -3202,7 +3166,7 @@
|
|
|
3202
3166
|
.apply(null, args)
|
|
3203
3167
|
.then((res) => {
|
|
3204
3168
|
(0, _deleteLoader_1._deleteLoader)(requestId, res);
|
|
3205
|
-
|
|
3169
|
+
bbn.fn.defaultEndLoadingFunction(url, tst, data, res);
|
|
3206
3170
|
switch (res.status) {
|
|
3207
3171
|
case 200:
|
|
3208
3172
|
if ((0, isFunction_3.isFunction)(success)) {
|
|
@@ -3210,21 +3174,21 @@
|
|
|
3210
3174
|
}
|
|
3211
3175
|
break;
|
|
3212
3176
|
default:
|
|
3213
|
-
|
|
3177
|
+
bbn.fn.defaultAjaxErrorFunction(loader, res);
|
|
3214
3178
|
}
|
|
3215
3179
|
return res;
|
|
3216
3180
|
})
|
|
3217
3181
|
.catch((err) => {
|
|
3218
3182
|
let isAbort = axios.isCancel(err);
|
|
3219
3183
|
(0, _deleteLoader_1._deleteLoader)(requestId, err.message || err.response.data, isAbort);
|
|
3220
|
-
|
|
3184
|
+
bbn.fn.defaultEndLoadingFunction(url, tst, data, err);
|
|
3221
3185
|
if (isAbort) {
|
|
3222
3186
|
let ok = 1;
|
|
3223
3187
|
if ((0, isFunction_3.isFunction)(abort)) {
|
|
3224
3188
|
ok = abort(err.message, url);
|
|
3225
3189
|
}
|
|
3226
3190
|
if (ok) {
|
|
3227
|
-
|
|
3191
|
+
bbn.fn.defaultAjaxAbortFunction(err.message, url);
|
|
3228
3192
|
}
|
|
3229
3193
|
}
|
|
3230
3194
|
else {
|
|
@@ -3233,12 +3197,12 @@
|
|
|
3233
3197
|
ok = failure(err.request, err);
|
|
3234
3198
|
}
|
|
3235
3199
|
if (ok) {
|
|
3236
|
-
|
|
3200
|
+
bbn.fn.defaultAjaxErrorFunction(err.request, err.response ? err.response.data : "", err.response ? err.response.status : err);
|
|
3237
3201
|
}
|
|
3238
3202
|
}
|
|
3239
3203
|
});
|
|
3240
3204
|
let tst = (0, _addLoader_1._addLoader)(requestId, loader, source);
|
|
3241
|
-
|
|
3205
|
+
bbn.fn.defaultStartLoadingFunction(url, tst, data, requestId);
|
|
3242
3206
|
return loader;
|
|
3243
3207
|
}
|
|
3244
3208
|
};
|
|
@@ -3725,35 +3689,7 @@
|
|
|
3725
3689
|
};
|
|
3726
3690
|
exports.calendar = calendar;
|
|
3727
3691
|
});
|
|
3728
|
-
define("fn/
|
|
3729
|
-
"use strict";
|
|
3730
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3731
|
-
exports.defaultLinkFunction = void 0;
|
|
3732
|
-
const defaultLinkFunction = function (responseObj, ele) {
|
|
3733
|
-
return true;
|
|
3734
|
-
};
|
|
3735
|
-
exports.defaultLinkFunction = defaultLinkFunction;
|
|
3736
|
-
});
|
|
3737
|
-
define("fn/default/defaultPostLinkFunction", ["require", "exports"], function (require, exports) {
|
|
3738
|
-
"use strict";
|
|
3739
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3740
|
-
exports.defaultPostLinkFunction = void 0;
|
|
3741
|
-
const defaultPostLinkFunction = function (r, ele) {
|
|
3742
|
-
return true;
|
|
3743
|
-
};
|
|
3744
|
-
exports.defaultPostLinkFunction = defaultPostLinkFunction;
|
|
3745
|
-
});
|
|
3746
|
-
define("fn/default/defaultAlertFunction", ["require", "exports"], function (require, exports) {
|
|
3747
|
-
"use strict";
|
|
3748
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3749
|
-
exports.defaultAlertFunction = void 0;
|
|
3750
|
-
const defaultAlertFunction = function (msg, title) {
|
|
3751
|
-
/** @todo */
|
|
3752
|
-
alert(msg);
|
|
3753
|
-
};
|
|
3754
|
-
exports.defaultAlertFunction = defaultAlertFunction;
|
|
3755
|
-
});
|
|
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) {
|
|
3692
|
+
define("fn/ajax/callback", ["require", "exports", "fn/browser/error", "fn/type/isFunction", "fn/browser/log"], function (require, exports, error_2, isFunction_4, log_8) {
|
|
3757
3693
|
"use strict";
|
|
3758
3694
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3759
3695
|
exports.callback = void 0;
|
|
@@ -3816,7 +3752,7 @@
|
|
|
3816
3752
|
tmp = fn(res, ele);
|
|
3817
3753
|
}
|
|
3818
3754
|
else {
|
|
3819
|
-
tmp =
|
|
3755
|
+
tmp = bbn.fn.defaultLinkFunction(res, ele);
|
|
3820
3756
|
}
|
|
3821
3757
|
if (ele && isObj && (res.content !== undefined)) {
|
|
3822
3758
|
if ('value' in ele) {
|
|
@@ -3840,7 +3776,7 @@
|
|
|
3840
3776
|
}
|
|
3841
3777
|
}
|
|
3842
3778
|
catch (e) {
|
|
3843
|
-
(0,
|
|
3779
|
+
(0, log_8.log)(e, res);
|
|
3844
3780
|
(0, error_2.error)((0, isFunction_4.isFunction)(e.getMessage) ? e.getMessage() : null);
|
|
3845
3781
|
}
|
|
3846
3782
|
return r;
|
|
@@ -3851,19 +3787,19 @@
|
|
|
3851
3787
|
if (tmp && fn2 && (0, isFunction_4.isFunction)(fn2)) {
|
|
3852
3788
|
fn2(res);
|
|
3853
3789
|
}
|
|
3854
|
-
else if (isObj &&
|
|
3855
|
-
|
|
3790
|
+
else if (isObj && bbn.fn.defaultPostLinkFunction) {
|
|
3791
|
+
bbn.fn.defaultPostLinkFunction(res, ele);
|
|
3856
3792
|
}
|
|
3857
3793
|
if (tmp && isObj && res.postscript) {
|
|
3858
3794
|
eval(res.postscript);
|
|
3859
3795
|
}
|
|
3860
3796
|
if (isObj && res.error) {
|
|
3861
3797
|
errTitle = res.errorTitle || bbn.lng.server_response;
|
|
3862
|
-
|
|
3798
|
+
bbn.fn.defaultAlertFunction(res.error, errTitle);
|
|
3863
3799
|
}
|
|
3864
3800
|
}
|
|
3865
3801
|
else {
|
|
3866
|
-
|
|
3802
|
+
bbn.fn.defaultAlertFunction(bbn.lng.errorText, bbn.lng.error);
|
|
3867
3803
|
}
|
|
3868
3804
|
return tmp;
|
|
3869
3805
|
};
|
|
@@ -4477,6 +4413,34 @@
|
|
|
4477
4413
|
};
|
|
4478
4414
|
exports.deepPath = deepPath;
|
|
4479
4415
|
});
|
|
4416
|
+
define("fn/default/defaultAjaxAbortFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_9) {
|
|
4417
|
+
"use strict";
|
|
4418
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4419
|
+
exports.defaultAjaxAbortFunction = void 0;
|
|
4420
|
+
const defaultAjaxAbortFunction = function (message, url = "") {
|
|
4421
|
+
(0, log_9.log)(message);
|
|
4422
|
+
};
|
|
4423
|
+
exports.defaultAjaxAbortFunction = defaultAjaxAbortFunction;
|
|
4424
|
+
});
|
|
4425
|
+
define("fn/default/defaultAjaxErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_10) {
|
|
4426
|
+
"use strict";
|
|
4427
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4428
|
+
exports.defaultAjaxErrorFunction = void 0;
|
|
4429
|
+
const defaultAjaxErrorFunction = function (jqXHR, textStatus, errorThrown) {
|
|
4430
|
+
(0, log_10.log)(textStatus, errorThrown);
|
|
4431
|
+
};
|
|
4432
|
+
exports.defaultAjaxErrorFunction = defaultAjaxErrorFunction;
|
|
4433
|
+
});
|
|
4434
|
+
define("fn/default/defaultAlertFunction", ["require", "exports"], function (require, exports) {
|
|
4435
|
+
"use strict";
|
|
4436
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4437
|
+
exports.defaultAlertFunction = void 0;
|
|
4438
|
+
const defaultAlertFunction = function (msg, title) {
|
|
4439
|
+
/** @todo */
|
|
4440
|
+
alert(msg);
|
|
4441
|
+
};
|
|
4442
|
+
exports.defaultAlertFunction = defaultAlertFunction;
|
|
4443
|
+
});
|
|
4480
4444
|
define("fn/default/defaultConfirmFunction", ["require", "exports", "fn/type/isFunction"], function (require, exports, isFunction_6) {
|
|
4481
4445
|
"use strict";
|
|
4482
4446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4495,6 +4459,15 @@
|
|
|
4495
4459
|
};
|
|
4496
4460
|
exports.defaultConfirmFunction = defaultConfirmFunction;
|
|
4497
4461
|
});
|
|
4462
|
+
define("fn/default/defaultEndLoadingFunction", ["require", "exports"], function (require, exports) {
|
|
4463
|
+
"use strict";
|
|
4464
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4465
|
+
exports.defaultEndLoadingFunction = void 0;
|
|
4466
|
+
const defaultEndLoadingFunction = function (url, timestamp, data, res) {
|
|
4467
|
+
return true;
|
|
4468
|
+
};
|
|
4469
|
+
exports.defaultEndLoadingFunction = defaultEndLoadingFunction;
|
|
4470
|
+
});
|
|
4498
4471
|
define("fn/default/defaultErrorFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_11) {
|
|
4499
4472
|
"use strict";
|
|
4500
4473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4513,6 +4486,24 @@
|
|
|
4513
4486
|
};
|
|
4514
4487
|
exports.defaultHistoryFunction = defaultHistoryFunction;
|
|
4515
4488
|
});
|
|
4489
|
+
define("fn/default/defaultLinkFunction", ["require", "exports"], function (require, exports) {
|
|
4490
|
+
"use strict";
|
|
4491
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4492
|
+
exports.defaultLinkFunction = void 0;
|
|
4493
|
+
const defaultLinkFunction = function (responseObj, ele) {
|
|
4494
|
+
return true;
|
|
4495
|
+
};
|
|
4496
|
+
exports.defaultLinkFunction = defaultLinkFunction;
|
|
4497
|
+
});
|
|
4498
|
+
define("fn/default/defaultPostLinkFunction", ["require", "exports"], function (require, exports) {
|
|
4499
|
+
"use strict";
|
|
4500
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4501
|
+
exports.defaultPostLinkFunction = void 0;
|
|
4502
|
+
const defaultPostLinkFunction = function (r, ele) {
|
|
4503
|
+
return true;
|
|
4504
|
+
};
|
|
4505
|
+
exports.defaultPostLinkFunction = defaultPostLinkFunction;
|
|
4506
|
+
});
|
|
4516
4507
|
define("fn/default/defaultPreLinkFunction", ["require", "exports", "fn/browser/log"], function (require, exports, log_12) {
|
|
4517
4508
|
"use strict";
|
|
4518
4509
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4532,6 +4523,15 @@
|
|
|
4532
4523
|
};
|
|
4533
4524
|
exports.defaultResizeFunction = defaultResizeFunction;
|
|
4534
4525
|
});
|
|
4526
|
+
define("fn/default/defaultStartLoadingFunction", ["require", "exports"], function (require, exports) {
|
|
4527
|
+
"use strict";
|
|
4528
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4529
|
+
exports.defaultStartLoadingFunction = void 0;
|
|
4530
|
+
const defaultStartLoadingFunction = function (url, tst, data, requestId = null) {
|
|
4531
|
+
return true;
|
|
4532
|
+
};
|
|
4533
|
+
exports.defaultStartLoadingFunction = defaultStartLoadingFunction;
|
|
4534
|
+
});
|
|
4535
4535
|
define("fn/object/deleteProp", ["require", "exports", "fn/type/checkType"], function (require, exports, checkType_2) {
|
|
4536
4536
|
"use strict";
|
|
4537
4537
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4971,7 +4971,7 @@
|
|
|
4971
4971
|
};
|
|
4972
4972
|
exports.downloadContent = downloadContent;
|
|
4973
4973
|
});
|
|
4974
|
-
define("fn/ajax/download", ["require", "exports", "fn/ajax/ajax", "fn/string/substr", "fn/string/baseName", "fn/type/isBlob", "fn/string/fileExt", "fn/ajax/downloadContent"
|
|
4974
|
+
define("fn/ajax/download", ["require", "exports", "fn/ajax/ajax", "fn/string/substr", "fn/string/baseName", "fn/type/isBlob", "fn/string/fileExt", "fn/ajax/downloadContent"], function (require, exports, ajax_1, substr_7, baseName_1, isBlob_1, fileExt_1, downloadContent_1) {
|
|
4975
4975
|
"use strict";
|
|
4976
4976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4977
4977
|
exports.download = void 0;
|
|
@@ -5028,7 +5028,7 @@
|
|
|
5028
5028
|
}
|
|
5029
5029
|
}
|
|
5030
5030
|
}, e => {
|
|
5031
|
-
|
|
5031
|
+
bbn.fn.defaultAjaxErrorFunction(e);
|
|
5032
5032
|
});
|
|
5033
5033
|
};
|
|
5034
5034
|
exports.download = download;
|
|
@@ -6671,7 +6671,7 @@
|
|
|
6671
6671
|
};
|
|
6672
6672
|
exports.setNavigationVars = setNavigationVars;
|
|
6673
6673
|
});
|
|
6674
|
-
define("fn/ajax/link", ["require", "exports", "fn/ajax/treatAjaxArguments", "fn/ajax/getLoader", "fn/
|
|
6674
|
+
define("fn/ajax/link", ["require", "exports", "fn/ajax/treatAjaxArguments", "fn/ajax/getLoader", "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, ajax_2, log_17, extend_6, isObject_15, callback_1, setNavigationVars_1) {
|
|
6675
6675
|
"use strict";
|
|
6676
6676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6677
6677
|
exports.link = void 0;
|
|
@@ -6752,8 +6752,8 @@
|
|
|
6752
6752
|
if (cfg.successFn) {
|
|
6753
6753
|
ok = cfg.successFn(cfg.url);
|
|
6754
6754
|
}
|
|
6755
|
-
else if (
|
|
6756
|
-
ok =
|
|
6755
|
+
else if (bbn.fn.defaultPreLinkFunction) {
|
|
6756
|
+
ok = bbn.fn.defaultPreLinkFunction(cfg.url, cfg.force, cfg.ele);
|
|
6757
6757
|
if (ok.data !== undefined) {
|
|
6758
6758
|
(0, extend_6.extend)(cfg.obj, ok.data);
|
|
6759
6759
|
ok = 1;
|
|
@@ -9764,7 +9764,7 @@
|
|
|
9764
9764
|
};
|
|
9765
9765
|
exports.upload = upload;
|
|
9766
9766
|
});
|
|
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,
|
|
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_1, defaultAjaxErrorFunction_1, defaultAlertFunction_1, defaultConfirmFunction_1, defaultEndLoadingFunction_1, defaultErrorFunction_2, defaultHistoryFunction_2, defaultLinkFunction_1, defaultPostLinkFunction_1, defaultPreLinkFunction_1, defaultResizeFunction_2, defaultStartLoadingFunction_1, 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) {
|
|
9768
9768
|
"use strict";
|
|
9769
9769
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9770
9770
|
exports.fn = void 0;
|
|
@@ -9813,18 +9813,18 @@
|
|
|
9813
9813
|
dateSQL: dateSQL_1.dateSQL,
|
|
9814
9814
|
daysInMonth: daysInMonth_1.daysInMonth,
|
|
9815
9815
|
deepPath: deepPath_1.deepPath,
|
|
9816
|
-
defaultAjaxAbortFunction:
|
|
9817
|
-
defaultAjaxErrorFunction:
|
|
9818
|
-
defaultAlertFunction:
|
|
9816
|
+
defaultAjaxAbortFunction: defaultAjaxAbortFunction_1.defaultAjaxAbortFunction,
|
|
9817
|
+
defaultAjaxErrorFunction: defaultAjaxErrorFunction_1.defaultAjaxErrorFunction,
|
|
9818
|
+
defaultAlertFunction: defaultAlertFunction_1.defaultAlertFunction,
|
|
9819
9819
|
defaultConfirmFunction: defaultConfirmFunction_1.defaultConfirmFunction,
|
|
9820
|
-
defaultEndLoadingFunction:
|
|
9820
|
+
defaultEndLoadingFunction: defaultEndLoadingFunction_1.defaultEndLoadingFunction,
|
|
9821
9821
|
defaultErrorFunction: defaultErrorFunction_2.defaultErrorFunction,
|
|
9822
9822
|
defaultHistoryFunction: defaultHistoryFunction_2.defaultHistoryFunction,
|
|
9823
|
-
defaultLinkFunction:
|
|
9824
|
-
defaultPostLinkFunction:
|
|
9825
|
-
defaultPreLinkFunction:
|
|
9823
|
+
defaultLinkFunction: defaultLinkFunction_1.defaultLinkFunction,
|
|
9824
|
+
defaultPostLinkFunction: defaultPostLinkFunction_1.defaultPostLinkFunction,
|
|
9825
|
+
defaultPreLinkFunction: defaultPreLinkFunction_1.defaultPreLinkFunction,
|
|
9826
9826
|
defaultResizeFunction: defaultResizeFunction_2.defaultResizeFunction,
|
|
9827
|
-
defaultStartLoadingFunction:
|
|
9827
|
+
defaultStartLoadingFunction: defaultStartLoadingFunction_1.defaultStartLoadingFunction,
|
|
9828
9828
|
deleteProp: deleteProp_1.deleteProp,
|
|
9829
9829
|
diffObj: diffObj_1.diffObj,
|
|
9830
9830
|
dirName: dirName_2.dirName,
|
package/dist/fn/ajax/ajax.js
CHANGED
|
@@ -5,12 +5,8 @@ import { getLoader } from "./getLoader";
|
|
|
5
5
|
import { extend } from "../object/extend";
|
|
6
6
|
import { numProperties } from "../object/numProperties";
|
|
7
7
|
import { _deleteLoader } from "./_deleteLoader";
|
|
8
|
-
import { defaultEndLoadingFunction } from "../default/defaultEndLoadingFunction";
|
|
9
8
|
import { isFunction } from "../type/isFunction";
|
|
10
|
-
import { defaultAjaxErrorFunction } from "../default/defaultAjaxErrorFunction";
|
|
11
|
-
import { defaultAjaxAbortFunction } from "../default/defaultAjaxAbortFunction";
|
|
12
9
|
import { _addLoader } from "./_addLoader";
|
|
13
|
-
import { defaultStartLoadingFunction } from "../default/defaultStartLoadingFunction";
|
|
14
10
|
/**
|
|
15
11
|
* Creates an XHR object and returns the Promise.
|
|
16
12
|
*
|
|
@@ -128,7 +124,7 @@ const ajax = function (url, datatype, data, success, failure, abort) {
|
|
|
128
124
|
.apply(null, args)
|
|
129
125
|
.then((res) => {
|
|
130
126
|
_deleteLoader(requestId, res);
|
|
131
|
-
defaultEndLoadingFunction(url, tst, data, res);
|
|
127
|
+
bbn.fn.defaultEndLoadingFunction(url, tst, data, res);
|
|
132
128
|
switch (res.status) {
|
|
133
129
|
case 200:
|
|
134
130
|
if (isFunction(success)) {
|
|
@@ -136,21 +132,21 @@ const ajax = function (url, datatype, data, success, failure, abort) {
|
|
|
136
132
|
}
|
|
137
133
|
break;
|
|
138
134
|
default:
|
|
139
|
-
defaultAjaxErrorFunction(loader, res);
|
|
135
|
+
bbn.fn.defaultAjaxErrorFunction(loader, res);
|
|
140
136
|
}
|
|
141
137
|
return res;
|
|
142
138
|
})
|
|
143
139
|
.catch((err) => {
|
|
144
140
|
let isAbort = axios.isCancel(err);
|
|
145
141
|
_deleteLoader(requestId, err.message || err.response.data, isAbort);
|
|
146
|
-
defaultEndLoadingFunction(url, tst, data, err);
|
|
142
|
+
bbn.fn.defaultEndLoadingFunction(url, tst, data, err);
|
|
147
143
|
if (isAbort) {
|
|
148
144
|
let ok = 1;
|
|
149
145
|
if (isFunction(abort)) {
|
|
150
146
|
ok = abort(err.message, url);
|
|
151
147
|
}
|
|
152
148
|
if (ok) {
|
|
153
|
-
defaultAjaxAbortFunction(err.message, url);
|
|
149
|
+
bbn.fn.defaultAjaxAbortFunction(err.message, url);
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
152
|
else {
|
|
@@ -159,12 +155,12 @@ const ajax = function (url, datatype, data, success, failure, abort) {
|
|
|
159
155
|
ok = failure(err.request, err);
|
|
160
156
|
}
|
|
161
157
|
if (ok) {
|
|
162
|
-
defaultAjaxErrorFunction(err.request, err.response ? err.response.data : "", err.response ? err.response.status : err);
|
|
158
|
+
bbn.fn.defaultAjaxErrorFunction(err.request, err.response ? err.response.data : "", err.response ? err.response.status : err);
|
|
163
159
|
}
|
|
164
160
|
}
|
|
165
161
|
});
|
|
166
162
|
let tst = _addLoader(requestId, loader, source);
|
|
167
|
-
defaultStartLoadingFunction(url, tst, data, requestId);
|
|
163
|
+
bbn.fn.defaultStartLoadingFunction(url, tst, data, requestId);
|
|
168
164
|
return loader;
|
|
169
165
|
}
|
|
170
166
|
};
|
package/dist/fn/ajax/callback.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { error } from '../browser/error';
|
|
2
|
-
import { defaultLinkFunction } from '../default/defaultLinkFunction';
|
|
3
2
|
import { isFunction } from '../type/isFunction';
|
|
4
3
|
import { log } from '../browser/log';
|
|
5
|
-
import { defaultPostLinkFunction } from '../default/defaultPostLinkFunction';
|
|
6
|
-
import { defaultAlertFunction } from '../default/defaultAlertFunction';
|
|
7
4
|
/**
|
|
8
5
|
* Executes a serie of predefined actions once an Ajax request has been done.
|
|
9
6
|
*
|
|
@@ -63,7 +60,7 @@ const callback = function (url, res, fn = null, fn2 = null, ele = null) {
|
|
|
63
60
|
tmp = fn(res, ele);
|
|
64
61
|
}
|
|
65
62
|
else {
|
|
66
|
-
tmp = defaultLinkFunction(res, ele);
|
|
63
|
+
tmp = bbn.fn.defaultLinkFunction(res, ele);
|
|
67
64
|
}
|
|
68
65
|
if (ele && isObj && (res.content !== undefined)) {
|
|
69
66
|
if ('value' in ele) {
|
|
@@ -98,19 +95,19 @@ const callback = function (url, res, fn = null, fn2 = null, ele = null) {
|
|
|
98
95
|
if (tmp && fn2 && isFunction(fn2)) {
|
|
99
96
|
fn2(res);
|
|
100
97
|
}
|
|
101
|
-
else if (isObj && defaultPostLinkFunction) {
|
|
102
|
-
defaultPostLinkFunction(res, ele);
|
|
98
|
+
else if (isObj && bbn.fn.defaultPostLinkFunction) {
|
|
99
|
+
bbn.fn.defaultPostLinkFunction(res, ele);
|
|
103
100
|
}
|
|
104
101
|
if (tmp && isObj && res.postscript) {
|
|
105
102
|
eval(res.postscript);
|
|
106
103
|
}
|
|
107
104
|
if (isObj && res.error) {
|
|
108
105
|
errTitle = res.errorTitle || bbn.lng.server_response;
|
|
109
|
-
defaultAlertFunction(res.error, errTitle);
|
|
106
|
+
bbn.fn.defaultAlertFunction(res.error, errTitle);
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
109
|
else {
|
|
113
|
-
defaultAlertFunction(bbn.lng.errorText, bbn.lng.error);
|
|
110
|
+
bbn.fn.defaultAlertFunction(bbn.lng.errorText, bbn.lng.error);
|
|
114
111
|
}
|
|
115
112
|
return tmp;
|
|
116
113
|
};
|
package/dist/fn/ajax/download.js
CHANGED
|
@@ -4,7 +4,6 @@ import { baseName } from '../string/baseName';
|
|
|
4
4
|
import { isBlob } from '../type/isBlob';
|
|
5
5
|
import { fileExt } from '../string/fileExt';
|
|
6
6
|
import { downloadContent } from './downloadContent';
|
|
7
|
-
import { defaultAjaxErrorFunction } from '../default/defaultAjaxErrorFunction';
|
|
8
7
|
/**
|
|
9
8
|
* Downloads a file with given filename from a URL.
|
|
10
9
|
*
|
|
@@ -58,7 +57,7 @@ const download = function (url, filename, params) {
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}, e => {
|
|
61
|
-
defaultAjaxErrorFunction(e);
|
|
60
|
+
bbn.fn.defaultAjaxErrorFunction(e);
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
63
|
export { download };
|
package/dist/fn/ajax/link.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { treatAjaxArguments } from './treatAjaxArguments';
|
|
2
2
|
import { getLoader } from './getLoader';
|
|
3
|
-
import { defaultPreLinkFunction } from '../default/defaultPreLinkFunction';
|
|
4
3
|
import { ajax } from './ajax';
|
|
5
4
|
import { log } from '../browser/log';
|
|
6
5
|
import { extend } from '../object/extend';
|
|
@@ -84,8 +83,8 @@ const link = function (...args) {
|
|
|
84
83
|
if (cfg.successFn) {
|
|
85
84
|
ok = cfg.successFn(cfg.url);
|
|
86
85
|
}
|
|
87
|
-
else if (defaultPreLinkFunction) {
|
|
88
|
-
ok = defaultPreLinkFunction(cfg.url, cfg.force, cfg.ele);
|
|
86
|
+
else if (bbn.fn.defaultPreLinkFunction) {
|
|
87
|
+
ok = bbn.fn.defaultPreLinkFunction(cfg.url, cfg.force, cfg.ele);
|
|
89
88
|
if (ok.data !== undefined) {
|
|
90
89
|
extend(cfg.obj, ok.data);
|
|
91
90
|
ok = 1;
|