@bbn/bbn 1.0.85 → 1.0.87
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 +47 -47
- package/dist/bundle.js +93 -88
- package/dist/fn/browser/getEventData.js +1 -2
- package/dist/fn/datetime/calendar.d.ts +1 -1
- package/dist/fn/datetime/calendar.js +1 -1
- package/dist/fn/datetime/fdate.d.ts +1 -1
- package/dist/fn/datetime/fdate.js +1 -1
- package/dist/fn/datetime/fdatetime.d.ts +1 -1
- package/dist/fn/datetime/fdatetime.js +1 -1
- package/dist/fn/datetime/timestamp.js +1 -1
- package/dist/fn/default/defaultAjaxAbortFunction.d.ts +1 -1
- package/dist/fn/default/defaultAjaxErrorFunction.d.ts +1 -1
- package/dist/fn/default/defaultAjaxErrorFunction.js +1 -1
- package/dist/fn/default/defaultAlertFunction.d.ts +1 -1
- package/dist/fn/default/defaultAlertFunction.js +1 -1
- package/dist/fn/default/defaultConfirmFunction.d.ts +1 -1
- package/dist/fn/default/defaultConfirmFunction.js +1 -1
- package/dist/fn/default/defaultEndLoadingFunction.d.ts +1 -1
- package/dist/fn/default/defaultEndLoadingFunction.js +1 -1
- package/dist/fn/default/defaultPostLinkFunction.d.ts +1 -1
- package/dist/fn/default/defaultPostLinkFunction.js +1 -1
- package/dist/fn/default/defaultPreLinkFunction.d.ts +1 -1
- package/dist/fn/default/defaultPreLinkFunction.js +1 -1
- package/dist/fn/default/defaultStartLoadingFunction.d.ts +1 -1
- package/dist/fn/default/defaultStartLoadingFunction.js +1 -1
- package/dist/fn/form/addInputs.d.ts +1 -1
- package/dist/fn/form/formdata.d.ts +1 -1
- package/dist/fn/form/objectToFormData.d.ts +1 -1
- package/dist/fn/form/objectToFormData.js +1 -1
- package/dist/fn/html/getAncestors.d.ts +1 -1
- package/dist/fn/html/getAncestors.js +1 -1
- package/dist/fn/html/getPath.d.ts +1 -1
- package/dist/fn/html/getText.d.ts +1 -1
- package/dist/fn/html/html2text.d.ts +1 -1
- package/dist/fn/html/selector.d.ts +2 -2
- package/dist/fn/html/selector.js +1 -1
- package/dist/fn/init.js +80 -76
- package/dist/fn/loop/fori.d.ts +1 -1
- package/dist/fn/loop/forir.d.ts +1 -1
- package/dist/fn/loop/iterate.d.ts +1 -1
- package/dist/fn/loop/riterate.d.ts +1 -1
- package/dist/fn/loop/riterate.js +1 -1
- package/dist/fn/style/resize.js +1 -2
- package/dist/fn.d.ts +23 -23
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const defaultStartLoadingFunction: (url:
|
|
1
|
+
declare const defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
|
|
2
2
|
export { defaultStartLoadingFunction };
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
* @param {String} prefix The optional object's name of the fields in the form
|
|
40
40
|
* @returns {undefined}
|
|
41
41
|
*/
|
|
42
|
-
declare const addInputs: (form:
|
|
42
|
+
declare const addInputs: (form: any, params?: any, prefix?: string) => void;
|
|
43
43
|
export { addInputs };
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
* @param {Array} ignoreList
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
declare const objectToFormData: (obj:
|
|
11
|
+
declare const objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
|
|
12
12
|
export { objectToFormData };
|
|
@@ -13,7 +13,7 @@ import { isNull } from '../type/isNull';
|
|
|
13
13
|
* @param {Array} ignoreList
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
const objectToFormData = function (obj, key = '', ignoreList) {
|
|
16
|
+
const objectToFormData = function (obj, key = '', ignoreList = null) {
|
|
17
17
|
let formData = new FormData();
|
|
18
18
|
let appendFormData = (data, key = '') => {
|
|
19
19
|
if (!ignoreList || (isArray(ignoreList) && !ignoreList.includes(key))) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getAncestors: (ele:
|
|
1
|
+
declare const getAncestors: (ele: any, selector?: any) => any[];
|
|
2
2
|
export { getAncestors };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getText: (ele: any) =>
|
|
1
|
+
declare const getText: (ele: any) => any;
|
|
2
2
|
export { getText };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @todo Add method description for selector
|
|
5
5
|
* @global
|
|
6
6
|
* @memberof bbn.fn
|
|
7
|
-
* @returns {
|
|
7
|
+
* @returns {HTMLElement | undefined}
|
|
8
8
|
*/
|
|
9
|
-
declare const selector: (ele:
|
|
9
|
+
declare const selector: (ele: any) => any;
|
|
10
10
|
export { selector };
|
package/dist/fn/html/selector.js
CHANGED
package/dist/fn/init.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { substr } from
|
|
2
|
-
import { each } from
|
|
3
|
-
import { extend } from
|
|
4
|
-
import { addColors } from
|
|
5
|
-
import { link } from
|
|
6
|
-
import { submit } from
|
|
7
|
-
import { resize } from
|
|
8
|
-
import { isMobile } from
|
|
9
|
-
import { isTabletDevice } from
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { log } from './browser/log';
|
|
1
|
+
import { substr } from "./string/substr";
|
|
2
|
+
import { each } from "./loop/each";
|
|
3
|
+
import { extend } from "./object/extend";
|
|
4
|
+
import { addColors } from "./style/addColors";
|
|
5
|
+
import { link } from "./ajax/link";
|
|
6
|
+
import { submit } from "./form/submit";
|
|
7
|
+
import { resize } from "./style/resize";
|
|
8
|
+
import { isMobile } from "./browser/isMobile";
|
|
9
|
+
import { isTabletDevice } from "./browser/isTabletDevice";
|
|
10
|
+
import { isFunction } from "./type/isFunction";
|
|
11
|
+
import { log } from "./browser/log";
|
|
13
12
|
/**
|
|
14
13
|
* Initializes the library bbn basing on the given configuration object.
|
|
15
14
|
* - Gives to the environment the dimension of the window.innerWidth and window.innerHeight
|
|
@@ -26,61 +25,62 @@ import { log } from './browser/log';
|
|
|
26
25
|
const init = function (cfg, force) {
|
|
27
26
|
let parts;
|
|
28
27
|
if (!bbn.env.isInit || force) {
|
|
29
|
-
bbn.env.root =
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
bbn.env.root =
|
|
29
|
+
document.baseURI.length > 0 ? document.baseURI : bbn.env.host;
|
|
30
|
+
if (bbn.env.root.length && substr(bbn.env.root, -1) !== "/") {
|
|
31
|
+
bbn.env.root += "/";
|
|
32
32
|
}
|
|
33
|
-
if (!bbn.env.isInit && typeof dayjs !==
|
|
33
|
+
if (!bbn.env.isInit && typeof dayjs !== "undefined") {
|
|
34
34
|
each([
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
35
|
+
"advancedFormat",
|
|
36
|
+
"arraySupport",
|
|
37
|
+
"badMutable",
|
|
38
|
+
"buddhistEra",
|
|
39
|
+
"calendar",
|
|
40
|
+
"customParseFormat",
|
|
41
|
+
"dayOfYear",
|
|
42
|
+
"devHelper",
|
|
43
|
+
"duration",
|
|
44
|
+
"isBetween",
|
|
45
|
+
"isLeapYear",
|
|
46
|
+
"isSameOrAfter",
|
|
47
|
+
"isSameOrBefore",
|
|
48
|
+
"isToday",
|
|
49
|
+
"isTomorrow",
|
|
50
|
+
"isYesterday",
|
|
51
|
+
"isoWeek",
|
|
52
|
+
"isoWeeksInYear",
|
|
53
|
+
"localeData",
|
|
54
|
+
"localizedFormat",
|
|
55
|
+
"minMax",
|
|
56
|
+
"objectSupport",
|
|
57
|
+
"pluralGetSet",
|
|
58
|
+
"quarterOfYear",
|
|
59
|
+
"relativeTime",
|
|
60
|
+
"timezone",
|
|
61
|
+
"toArray",
|
|
62
|
+
"toObject",
|
|
63
|
+
"updateLocale",
|
|
64
|
+
"utc",
|
|
65
|
+
"weekOfYear",
|
|
66
|
+
"weekYear",
|
|
67
|
+
"weekday",
|
|
68
68
|
], (plugin) => {
|
|
69
|
-
if (window[
|
|
70
|
-
dayjs.extend(window[
|
|
69
|
+
if (window["dayjs_plugin_" + plugin]) {
|
|
70
|
+
dayjs.extend(window["dayjs_plugin_" + plugin]);
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
/* The server's path (difference between the host and the current dir */
|
|
75
|
-
if (typeof cfg ===
|
|
75
|
+
if (typeof cfg === "object") {
|
|
76
76
|
extend(true, bbn, cfg);
|
|
77
77
|
}
|
|
78
78
|
bbn.env.path = substr(bbn.env.url, bbn.env.root.length);
|
|
79
|
-
parts = bbn.env.path.split(
|
|
79
|
+
parts = bbn.env.path.split("/");
|
|
80
80
|
//$.each(parts, function(i, v){
|
|
81
81
|
each(parts, (v, i) => {
|
|
82
82
|
v = decodeURI(v.trim());
|
|
83
|
-
if (v !==
|
|
83
|
+
if (v !== "") {
|
|
84
84
|
bbn.env.params.push(v);
|
|
85
85
|
}
|
|
86
86
|
});
|
|
@@ -97,59 +97,63 @@ const init = function (cfg, force) {
|
|
|
97
97
|
bbn.env.isFocused = false;
|
|
98
98
|
bbn.env.timeoff = Math.round(new Date().getTime() / 1000);
|
|
99
99
|
};
|
|
100
|
-
document.addEventListener(
|
|
101
|
-
if (e.target instanceof HTMLElement &&
|
|
100
|
+
document.addEventListener("focusin", (e) => {
|
|
101
|
+
if (e.target instanceof HTMLElement &&
|
|
102
|
+
!e.target.classList.contains("bbn-no")) {
|
|
102
103
|
bbn.env.focused = e.target;
|
|
103
104
|
}
|
|
104
105
|
bbn.env.last_focus = new Date().getTime();
|
|
105
106
|
});
|
|
106
|
-
document.addEventListener(
|
|
107
|
+
document.addEventListener("click", (e) => {
|
|
107
108
|
bbn.env.last_focus = new Date().getTime();
|
|
108
|
-
if (bbn.env.nav !==
|
|
109
|
+
if (bbn.env.nav !== "ajax") {
|
|
109
110
|
return;
|
|
110
111
|
}
|
|
111
112
|
let target = e.target;
|
|
112
|
-
if (target instanceof HTMLElement &&
|
|
113
|
+
if (target instanceof HTMLElement && target.tagName !== "A") {
|
|
113
114
|
let p = target;
|
|
114
|
-
while (p && p.tagName !==
|
|
115
|
-
if (p.tagName ===
|
|
115
|
+
while (p && p.tagName !== "A") {
|
|
116
|
+
if (p.tagName === "BODY") {
|
|
116
117
|
break;
|
|
117
118
|
}
|
|
118
119
|
p = p.parentElement;
|
|
119
120
|
}
|
|
120
|
-
if (p && p.tagName ===
|
|
121
|
+
if (p && p.tagName === "A") {
|
|
121
122
|
target = p;
|
|
122
123
|
}
|
|
123
124
|
else {
|
|
124
125
|
target = null;
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
|
-
if (target instanceof HTMLElement &&
|
|
128
|
+
if (target instanceof HTMLElement &&
|
|
129
|
+
target.hasAttribute("href") &&
|
|
130
|
+
!target.hasAttribute("target") &&
|
|
131
|
+
!target.classList.contains("bbn-no")) {
|
|
128
132
|
e.preventDefault();
|
|
129
133
|
e.stopPropagation();
|
|
130
|
-
link(target.getAttribute(
|
|
134
|
+
link(target.getAttribute("href"));
|
|
131
135
|
return false;
|
|
132
136
|
}
|
|
133
137
|
});
|
|
134
|
-
each(document.querySelectorAll(
|
|
135
|
-
ele.addEventListener(
|
|
138
|
+
each(document.querySelectorAll("form:not(.bbn-no), form:not(.bbn-form)"), (ele) => {
|
|
139
|
+
ele.addEventListener("submit", (e) => {
|
|
136
140
|
submit(ele, e);
|
|
137
141
|
});
|
|
138
142
|
});
|
|
139
|
-
window.addEventListener(
|
|
143
|
+
window.addEventListener("hashchange", () => {
|
|
140
144
|
bbn.env.hashChanged = new Date().getTime();
|
|
141
145
|
}, false);
|
|
142
|
-
window.addEventListener(
|
|
146
|
+
window.addEventListener("resize", () => {
|
|
143
147
|
resize();
|
|
144
148
|
});
|
|
145
|
-
window.addEventListener(
|
|
149
|
+
window.addEventListener("orientationchange", () => {
|
|
146
150
|
resize();
|
|
147
151
|
});
|
|
148
152
|
resize();
|
|
149
153
|
if (isMobile()) {
|
|
150
|
-
document.body.classList.add(
|
|
154
|
+
document.body.classList.add("bbn-mobile");
|
|
151
155
|
if (isTabletDevice()) {
|
|
152
|
-
document.body.classList.add(
|
|
156
|
+
document.body.classList.add("bbn-tablet");
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
159
|
if (window.history) {
|
|
@@ -157,9 +161,9 @@ const init = function (cfg, force) {
|
|
|
157
161
|
let h = window.history;
|
|
158
162
|
if (!bbn.env.historyDisabled && h) {
|
|
159
163
|
//e.preventDefault();
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (
|
|
164
|
+
if (bbn.fn.defaultHistoryFunction(h.state)) {
|
|
165
|
+
let state = h.state;
|
|
166
|
+
if (state) {
|
|
163
167
|
//link(substr(state.url, bbn.env.root.length), $.extend({title: state.title}, state.data));
|
|
164
168
|
link(state.url, extend({ title: state.title || bbn.env.siteTitle }, state.data || {}));
|
|
165
169
|
}
|
|
@@ -171,9 +175,9 @@ const init = function (cfg, force) {
|
|
|
171
175
|
};
|
|
172
176
|
}
|
|
173
177
|
bbn.env.isInit = true;
|
|
174
|
-
document.dispatchEvent(new Event(
|
|
178
|
+
document.dispatchEvent(new Event("bbninit"));
|
|
175
179
|
if (bbn.env.logging) {
|
|
176
|
-
log(
|
|
180
|
+
log("Logging in bbn is enabled");
|
|
177
181
|
}
|
|
178
182
|
}
|
|
179
183
|
};
|
package/dist/fn/loop/fori.d.ts
CHANGED
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
* @param {Number} min The index at which the loop will start
|
|
33
33
|
* @returns {undefined}
|
|
34
34
|
*/
|
|
35
|
-
declare const fori: (arr: any
|
|
35
|
+
declare const fori: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
36
36
|
export { fori };
|
package/dist/fn/loop/forir.d.ts
CHANGED
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
* @param {Number} min The index at which the loop will start
|
|
33
33
|
* @returns {undefined}
|
|
34
34
|
*/
|
|
35
|
-
declare const forir: (arr: any
|
|
35
|
+
declare const forir: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
36
36
|
export { forir };
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* @param {Boolean} reverse If set to true the order of the keys will be reversed
|
|
19
19
|
* @returns {Object}
|
|
20
20
|
*/
|
|
21
|
-
declare const iterate: (obj:
|
|
21
|
+
declare const iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
|
|
22
22
|
export { iterate };
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* @param {Boolean} noPrivate If set to true the _private_ properties won't be included
|
|
18
18
|
* @returns {Object}
|
|
19
19
|
*/
|
|
20
|
-
declare const riterate: (obj:
|
|
20
|
+
declare const riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
|
|
21
21
|
export { riterate };
|
package/dist/fn/loop/riterate.js
CHANGED
|
@@ -18,7 +18,7 @@ import { iterate } from "./iterate";
|
|
|
18
18
|
* @param {Boolean} noPrivate If set to true the _private_ properties won't be included
|
|
19
19
|
* @returns {Object}
|
|
20
20
|
*/
|
|
21
|
-
const riterate = function (obj, fn, noPrivate) {
|
|
21
|
+
const riterate = function (obj, fn, noPrivate = false) {
|
|
22
22
|
return iterate(obj, fn, noPrivate, true);
|
|
23
23
|
};
|
|
24
24
|
export { riterate };
|
package/dist/fn/style/resize.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getCssVar } from './getCssVar';
|
|
2
2
|
import { each } from '../loop/each';
|
|
3
|
-
import { defaultResizeFunction } from '../default/defaultResizeFunction';
|
|
4
3
|
const resize = function () {
|
|
5
4
|
let diffW = bbn.env.width !== window.innerWidth;
|
|
6
5
|
let diffH = bbn.env.height !== window.innerHeight;
|
|
@@ -32,8 +31,8 @@ const resize = function () {
|
|
|
32
31
|
if (!done) {
|
|
33
32
|
classes.push(newCls);
|
|
34
33
|
}
|
|
34
|
+
bbn.fn.defaultResizeFunction();
|
|
35
35
|
document.body.className = classes.join(' ');
|
|
36
|
-
defaultResizeFunction();
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
38
|
export { resize };
|
package/dist/fn.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const fn: {
|
|
|
5
5
|
abort: (requestId: any) => void;
|
|
6
6
|
abortURL: (url: any) => void;
|
|
7
7
|
addColors: (colors: object) => void;
|
|
8
|
-
addInputs: (form:
|
|
8
|
+
addInputs: (form: any, params?: any, prefix?: string) => void;
|
|
9
9
|
addStyle: (ele: any, o: any) => void;
|
|
10
10
|
adjustHeight: () => void;
|
|
11
11
|
adjustSize: (type: any, eles: any) => void;
|
|
@@ -27,7 +27,7 @@ declare const fn: {
|
|
|
27
27
|
autoExtend: (namespace: any, obj: any) => void;
|
|
28
28
|
baseName: (path: string, suffix?: string) => string;
|
|
29
29
|
br2nl: (st: any) => string;
|
|
30
|
-
calendar: (d
|
|
30
|
+
calendar: (d: any, wrong_result?: boolean) => any;
|
|
31
31
|
callback: (url: any, res?: any, fn?: any, fn2?: any, ele?: any) => boolean;
|
|
32
32
|
camelize: (str: any) => any;
|
|
33
33
|
camelToCss: (str: any) => any;
|
|
@@ -52,18 +52,18 @@ declare const fn: {
|
|
|
52
52
|
dateSQL: (v: any, dayOnly: any) => string;
|
|
53
53
|
daysInMonth: (v: any) => number | false;
|
|
54
54
|
deepPath: (arr: any[], filter: object, deepProperty: string, res?: any[]) => false | any[];
|
|
55
|
-
defaultAjaxAbortFunction: (message:
|
|
56
|
-
defaultAjaxErrorFunction: (jqXHR: any, textStatus?:
|
|
57
|
-
defaultAlertFunction: (msg:
|
|
58
|
-
defaultConfirmFunction: (text:
|
|
59
|
-
defaultEndLoadingFunction: (url:
|
|
55
|
+
defaultAjaxAbortFunction: (message: any, url?: string) => void;
|
|
56
|
+
defaultAjaxErrorFunction: (jqXHR: any, textStatus?: any, errorThrown?: any) => void;
|
|
57
|
+
defaultAlertFunction: (msg: any, title?: any) => void;
|
|
58
|
+
defaultConfirmFunction: (text: any, yesFn: any, noFn?: any) => void;
|
|
59
|
+
defaultEndLoadingFunction: (url: any, timestamp: any, data?: any, res?: any) => boolean;
|
|
60
60
|
defaultErrorFunction: (message: any) => void;
|
|
61
61
|
defaultHistoryFunction: (obj: any) => boolean;
|
|
62
62
|
defaultLinkFunction: (responseObj: any, ele: any) => boolean;
|
|
63
|
-
defaultPostLinkFunction: (r:
|
|
64
|
-
defaultPreLinkFunction: (url:
|
|
63
|
+
defaultPostLinkFunction: (r: any, ele?: any) => boolean;
|
|
64
|
+
defaultPreLinkFunction: (url: any, force?: boolean, ele?: any) => boolean;
|
|
65
65
|
defaultResizeFunction: () => boolean;
|
|
66
|
-
defaultStartLoadingFunction: (url:
|
|
66
|
+
defaultStartLoadingFunction: (url: any, tst: any, data?: any, requestId?: any) => boolean;
|
|
67
67
|
deleteProp: (obj: object, prop: string) => void;
|
|
68
68
|
diffObj: (obj1: object, obj2: object, unchanged?: boolean, notRoot?: boolean) => any;
|
|
69
69
|
dirName: (path: any) => string;
|
|
@@ -79,24 +79,24 @@ declare const fn: {
|
|
|
79
79
|
escapeUrl: (url: any, params: any) => string;
|
|
80
80
|
extend: (...originalArgs: (boolean | object)[]) => any;
|
|
81
81
|
extendOut: (...args: object[]) => any;
|
|
82
|
-
fdate: (d:
|
|
83
|
-
fdatetime: (d
|
|
82
|
+
fdate: (d: any, wrong_result?: boolean) => any;
|
|
83
|
+
fdatetime: (d: any, wrong_result?: boolean) => any;
|
|
84
84
|
fieldValue: (field: any) => any;
|
|
85
85
|
fileExt: (filename: any) => any;
|
|
86
86
|
filter: (arr: any[], prop: string | object | import("./fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string) => any[];
|
|
87
87
|
filterToConditions: (filter: any, operator?: string) => import("./fn/object/filterToConditions").Filter;
|
|
88
88
|
findAll: (arr: any, filter: any, deepProperty: any, res?: any[]) => any[];
|
|
89
|
-
fori: (arr: any
|
|
90
|
-
forir: (arr: any
|
|
89
|
+
fori: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
90
|
+
forir: (arr: any, fn: any, max?: number, min?: number) => void;
|
|
91
91
|
format: (str: any) => any;
|
|
92
92
|
formatBytes: (bytes: any, decimals?: number) => string;
|
|
93
93
|
formatDate: (date: any, format: any) => string;
|
|
94
94
|
formatSize: (st: any, noValid: any) => any;
|
|
95
|
-
formdata: (form:
|
|
95
|
+
formdata: (form: any) => {};
|
|
96
96
|
fromXml: (xml: any, arrayTags: any) => {};
|
|
97
97
|
ftime: (d: any, wrong_result: any) => any;
|
|
98
98
|
getAllTags: () => any[];
|
|
99
|
-
getAncestors: (ele:
|
|
99
|
+
getAncestors: (ele: any, selector?: any) => any[];
|
|
100
100
|
getAttributes: (ele: any) => any;
|
|
101
101
|
getBrowserName: () => "Edge" | "Opera" | "Chrome" | "Internet Explorer" | "Firefox" | "Safari" | "Other";
|
|
102
102
|
getBrowserVersion: () => string;
|
|
@@ -110,13 +110,13 @@ declare const fn: {
|
|
|
110
110
|
getHtml: (ele: any, stripComments?: boolean) => any;
|
|
111
111
|
getHTMLOfSelection: () => string;
|
|
112
112
|
getLoader: (requestId: any) => BbnLoader;
|
|
113
|
-
getPath: (element: any) =>
|
|
113
|
+
getPath: (element: any) => any;
|
|
114
114
|
getProp: (obj: any, prop: any) => any;
|
|
115
115
|
getProperty: (obj: any, prop: any) => any;
|
|
116
116
|
getRequestId: (url: any, data: any, datatype: any) => string;
|
|
117
117
|
getRow: (arr: any[], prop: string | object, val?: any, operator?: string) => any;
|
|
118
118
|
getScrollBarSize: () => number;
|
|
119
|
-
getText: (ele: any) =>
|
|
119
|
+
getText: (ele: any) => any;
|
|
120
120
|
getTimeoff: () => number;
|
|
121
121
|
happy: (...args: any[]) => any;
|
|
122
122
|
hash: (obj: any) => string;
|
|
@@ -126,7 +126,7 @@ declare const fn: {
|
|
|
126
126
|
b: number;
|
|
127
127
|
};
|
|
128
128
|
history: () => false | History;
|
|
129
|
-
html2text: (st: any) =>
|
|
129
|
+
html2text: (st: any) => any;
|
|
130
130
|
imageToCanvas: (img: any) => HTMLCanvasElement;
|
|
131
131
|
imgToBase64: (img: any, type?: string) => string;
|
|
132
132
|
info: (...args: any[]) => any;
|
|
@@ -172,7 +172,7 @@ declare const fn: {
|
|
|
172
172
|
isValidName: (...args: any[]) => boolean;
|
|
173
173
|
isValue: (...args: any[]) => boolean;
|
|
174
174
|
isVue: (...args: any[]) => boolean;
|
|
175
|
-
iterate: (obj:
|
|
175
|
+
iterate: (obj: any, fn: any, noPrivate?: boolean, reverse?: boolean) => any;
|
|
176
176
|
lightenDarkenHex: (hex: any, amt: any) => string;
|
|
177
177
|
link: (...args: any[]) => any;
|
|
178
178
|
log: (...args: any[]) => any;
|
|
@@ -184,7 +184,7 @@ declare const fn: {
|
|
|
184
184
|
multiorder: (arr: object[], orders: any) => object[];
|
|
185
185
|
nl2br: (st: any, keepNl: any) => string;
|
|
186
186
|
numProperties: (obj: object) => number;
|
|
187
|
-
objectToFormData: (obj:
|
|
187
|
+
objectToFormData: (obj: any, key?: string, ignoreList?: any) => FormData;
|
|
188
188
|
order: (arr: any, prop: any, dir?: string) => any;
|
|
189
189
|
outerHeight: (ele: HTMLElement) => number | false;
|
|
190
190
|
outerWidth: (ele: HTMLElement) => number | false;
|
|
@@ -207,12 +207,12 @@ declare const fn: {
|
|
|
207
207
|
replaceSelection: (html: any, selectInserted: any) => void;
|
|
208
208
|
resize: () => void;
|
|
209
209
|
rgb2hex: (rgb: any) => string;
|
|
210
|
-
riterate: (obj:
|
|
210
|
+
riterate: (obj: any, fn: any, noPrivate?: boolean) => any;
|
|
211
211
|
roundDecimal: (value: number, decimals: number) => number;
|
|
212
212
|
sanitize: (str: any, separator?: string) => any;
|
|
213
213
|
search: (arr: any[], prop: string | object | import("./fn/object/filterToConditions").Filter | ((a: any, i: string | number | symbol) => boolean), val?: any, operator?: string | number, startFrom?: number) => number;
|
|
214
214
|
selectElementText: (ele: any, win?: any) => void;
|
|
215
|
-
selector: (ele:
|
|
215
|
+
selector: (ele: any) => any;
|
|
216
216
|
setCookie: (name: any, value: any, days: any) => void;
|
|
217
217
|
setCssVar: (varname: any, value: any) => void;
|
|
218
218
|
setNavigationVars: (url: any, title: any, data?: any, repl?: boolean) => void;
|