@bbn/bbn 1.0.56 → 1.0.57
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/$.d.ts +2 -0
- package/dist/$.js +7 -0
- package/dist/_.d.ts +8 -0
- package/dist/_.js +24 -0
- package/dist/bundle.d.ts +417 -36
- package/dist/bundle.js +701 -662
- package/dist/env.d.ts +33 -0
- package/dist/env.js +43 -0
- package/dist/fn.d.ts +245 -0
- package/dist/fn.js +460 -0
- package/dist/index.js +13 -621
- package/dist/lng.d.ts +26 -0
- package/dist/lng.js +27 -0
- package/dist/vars.d.ts +55 -0
- package/dist/vars.js +63 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,629 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { addInputs } from './fn/addInputs';
|
|
8
|
-
import { addStyle } from './fn/addStyle';
|
|
9
|
-
import { adjustHeight } from './fn/adjustHeight';
|
|
10
|
-
import { adjustSize } from './fn/adjustSize';
|
|
11
|
-
import { adjustWidth } from './fn/adjustWidth';
|
|
12
|
-
import { ajax } from './fn/ajax';
|
|
13
|
-
import { analyzeFunction } from './fn/analyzeFunction';
|
|
14
|
-
import { animateCss } from './fn/animateCss';
|
|
15
|
-
import { arrayBuffer2String } from './fn/arrayBuffer2String';
|
|
16
|
-
import { arrayFromProp } from './fn/arrayFromProp';
|
|
17
|
-
import { autoExtend } from './fn/autoExtend';
|
|
18
|
-
import { baseName } from './fn/baseName';
|
|
19
|
-
import { br2nl } from './fn/br2nl';
|
|
20
|
-
import { calendar } from './fn/calendar';
|
|
21
|
-
import { callback } from './fn/callback';
|
|
22
|
-
import { camelize } from './fn/camelize';
|
|
23
|
-
import { camelToCss } from './fn/camelToCss';
|
|
24
|
-
import { canvasToImage } from './fn/canvasToImage';
|
|
25
|
-
import { center } from './fn/center';
|
|
26
|
-
import { checkProps } from './fn/checkProps';
|
|
27
|
-
import { checkPropsDetails } from './fn/checkPropsDetails';
|
|
28
|
-
import { checkPropsOrDie } from './fn/checkPropsOrDie';
|
|
29
|
-
import { checkType } from './fn/checkType';
|
|
30
|
-
import { circularReplacer } from './fn/circularReplacer';
|
|
31
|
-
import { clone } from './fn/clone';
|
|
32
|
-
import { colorToHex } from './fn/colorToHex';
|
|
33
|
-
import { compare } from './fn/compare';
|
|
34
|
-
import { compareConditions } from './fn/compareConditions';
|
|
35
|
-
import { copy } from './fn/copy';
|
|
36
|
-
import { correctCase } from './fn/correctCase';
|
|
37
|
-
import { count } from './fn/count';
|
|
38
|
-
import { crc32 } from './fn/crc32';
|
|
39
|
-
import { createObject } from './fn/createObject';
|
|
40
|
-
import { cssExists } from './fn/cssExists';
|
|
41
|
-
import { date } from './fn/date';
|
|
42
|
-
import { dateSQL } from './fn/dateSQL';
|
|
43
|
-
import { daysInMonth } from './fn/daysInMonth';
|
|
44
|
-
import { deepPath } from './fn/deepPath';
|
|
45
|
-
import { defaultAjaxAbortFunction } from './fn/defaultAjaxAbortFunction';
|
|
46
|
-
import { defaultAjaxErrorFunction } from './fn/defaultAjaxErrorFunction';
|
|
47
|
-
import { defaultAlertFunction } from './fn/defaultAlertFunction';
|
|
48
|
-
import { defaultConfirmFunction } from './fn/defaultConfirmFunction';
|
|
49
|
-
import { defaultEndLoadingFunction } from './fn/defaultEndLoadingFunction';
|
|
50
|
-
import { defaultErrorFunction } from './fn/defaultErrorFunction';
|
|
51
|
-
import { defaultHistoryFunction } from './fn/defaultHistoryFunction';
|
|
52
|
-
import { defaultLinkFunction } from './fn/defaultLinkFunction';
|
|
53
|
-
import { defaultPostLinkFunction } from './fn/defaultPostLinkFunction';
|
|
54
|
-
import { defaultPreLinkFunction } from './fn/defaultPreLinkFunction';
|
|
55
|
-
import { defaultResizeFunction } from './fn/defaultResizeFunction';
|
|
56
|
-
import { defaultStartLoadingFunction } from './fn/defaultStartLoadingFunction';
|
|
57
|
-
import { deleteProp } from './fn/deleteProp';
|
|
58
|
-
import { diffObj } from './fn/diffObj';
|
|
59
|
-
import { dirName } from './fn/dirName';
|
|
60
|
-
import { download } from './fn/download';
|
|
61
|
-
import { downloadContent } from './fn/downloadContent';
|
|
62
|
-
import { each } from './fn/each';
|
|
63
|
-
import { eraseCookie } from './fn/eraseCookie';
|
|
64
|
-
import { error } from './fn/error';
|
|
65
|
-
import { escapeDquotes } from './fn/escapeDquotes';
|
|
66
|
-
import { escapeRegExp } from './fn/escapeRegExp';
|
|
67
|
-
import { escapeSquotes } from './fn/escapeSquotes';
|
|
68
|
-
import { escapeTicks } from './fn/escapeTicks';
|
|
69
|
-
import { escapeUrl } from './fn/escapeUrl';
|
|
70
|
-
import { extend } from './fn/extend';
|
|
71
|
-
import { extendOut } from './fn/extendOut';
|
|
72
|
-
import { fdate } from './fn/fdate';
|
|
73
|
-
import { fdatetime } from './fn/fdatetime';
|
|
74
|
-
import { fieldValue } from './fn/fieldValue';
|
|
75
|
-
import { fileExt } from './fn/fileExt';
|
|
76
|
-
import { filter } from './fn/filter';
|
|
77
|
-
import { filterToConditions } from './fn/filterToConditions';
|
|
78
|
-
import { findAll } from './fn/findAll';
|
|
79
|
-
import { fori } from './fn/fori';
|
|
80
|
-
import { forir } from './fn/forir';
|
|
81
|
-
import { format } from './fn/format';
|
|
82
|
-
import { formatBytes } from './fn/formatBytes';
|
|
83
|
-
import { formatDate } from './fn/formatDate';
|
|
84
|
-
import { formatSize } from './fn/formatSize';
|
|
85
|
-
import { formdata } from './fn/formdata';
|
|
86
|
-
import { fromXml } from './fn/fromXml';
|
|
87
|
-
import { ftime } from './fn/ftime';
|
|
88
|
-
import { getAllTags } from './fn/getAllTags';
|
|
89
|
-
import { getAncestors } from './fn/getAncestors';
|
|
90
|
-
import { getAttributes } from './fn/getAttributes';
|
|
91
|
-
import { getBrowserName } from './fn/getBrowserName';
|
|
92
|
-
import { getBrowserVersion } from './fn/getBrowserVersion';
|
|
93
|
-
import { getCookie } from './fn/getCookie';
|
|
94
|
-
import { getCssVar } from './fn/getCssVar';
|
|
95
|
-
import { getDay } from './fn/getDay';
|
|
96
|
-
import { getDeviceType } from './fn/getDeviceType';
|
|
97
|
-
import { getEventData } from './fn/getEventData';
|
|
98
|
-
import { getField } from './fn/getField';
|
|
99
|
-
import { getFieldValues } from './fn/getFieldValues';
|
|
100
|
-
import { getHtml } from './fn/getHtml';
|
|
101
|
-
import { getHTMLOfSelection } from './fn/getHTMLOfSelection';
|
|
102
|
-
import { getLoader } from './fn/getLoader';
|
|
103
|
-
import { getPath } from './fn/getPath';
|
|
104
|
-
import { getProp } from './fn/getProp';
|
|
105
|
-
import { getProperty } from './fn/getProperty';
|
|
106
|
-
import { getRequestId } from './fn/getRequestId';
|
|
107
|
-
import { getRow } from './fn/getRow';
|
|
108
|
-
import { getScrollBarSize } from './fn/getScrollBarSize';
|
|
109
|
-
import { getText } from './fn/getText';
|
|
110
|
-
import { getTimeoff } from './fn/getTimeoff';
|
|
111
|
-
import { happy } from './fn/happy';
|
|
112
|
-
import { hash } from './fn/hash';
|
|
113
|
-
import { hex2rgb } from './fn/hex2rgb';
|
|
114
|
-
import { history } from './fn/history';
|
|
115
|
-
import { html2text } from './fn/html2text';
|
|
116
|
-
import { imageToCanvas } from './fn/imageToCanvas';
|
|
117
|
-
import { imgToBase64 } from './fn/imgToBase64';
|
|
118
|
-
import { info } from './fn/info';
|
|
119
|
-
import { init } from './fn/init';
|
|
120
|
-
import { isActiveInterface } from './fn/isActiveInterface';
|
|
121
|
-
import { isArray } from './fn/isArray';
|
|
122
|
-
import { isBlob } from './fn/isBlob';
|
|
123
|
-
import { isBoolean } from './fn/isBoolean';
|
|
124
|
-
import { isCanvas } from './fn/isCanvas';
|
|
125
|
-
import { isColor } from './fn/isColor';
|
|
126
|
-
import { isComment } from './fn/isComment';
|
|
127
|
-
import { isCp } from './fn/isCp';
|
|
128
|
-
import { isDate } from './fn/isDate';
|
|
129
|
-
import { isDesktopDevice } from './fn/isDesktopDevice';
|
|
130
|
-
import { isDimension } from './fn/isDimension';
|
|
131
|
-
import { isDom } from './fn/isDom';
|
|
132
|
-
import { isEmail } from './fn/isEmail';
|
|
133
|
-
import { isEmpty } from './fn/isEmpty';
|
|
134
|
-
import { isEvent } from './fn/isEvent';
|
|
135
|
-
import { isFocused } from './fn/isFocused';
|
|
136
|
-
import { isFunction } from './fn/isFunction';
|
|
137
|
-
import { isHostname } from './fn/isHostname';
|
|
138
|
-
import { isInside } from './fn/isInside';
|
|
139
|
-
import { isInt } from './fn/isInt';
|
|
140
|
-
import { isIP } from './fn/isIP';
|
|
141
|
-
import { isIterable } from './fn/isIterable';
|
|
142
|
-
import { isMobile } from './fn/isMobile';
|
|
143
|
-
import { isMobileDevice } from './fn/isMobileDevice';
|
|
144
|
-
import { isNull } from './fn/isNull';
|
|
145
|
-
import { isNumber } from './fn/isNumber';
|
|
146
|
-
import { isObject } from './fn/isObject';
|
|
147
|
-
import { isPercent } from './fn/isPercent';
|
|
148
|
-
import { isPrimitive } from './fn/isPrimitive';
|
|
149
|
-
import { isPromise } from './fn/isPromise';
|
|
150
|
-
import { isPropSize } from './fn/isPropSize';
|
|
151
|
-
import { isSame } from './fn/isSame';
|
|
152
|
-
import { isSQLDate } from './fn/isSQLDate';
|
|
153
|
-
import { isString } from './fn/isString';
|
|
154
|
-
import { isSymbol } from './fn/isSymbol';
|
|
155
|
-
import { isTabletDevice } from './fn/isTabletDevice';
|
|
156
|
-
import { isURL } from './fn/isURL';
|
|
157
|
-
import { isValidDimension } from './fn/isValidDimension';
|
|
158
|
-
import { isValidName } from './fn/isValidName';
|
|
159
|
-
import { isValue } from './fn/isValue';
|
|
160
|
-
import { isVue } from './fn/isVue';
|
|
161
|
-
import { iterate } from './fn/iterate';
|
|
162
|
-
import { lightenDarkenHex } from './fn/lightenDarkenHex';
|
|
163
|
-
import { link } from './fn/link';
|
|
164
|
-
import { log } from './fn/log';
|
|
165
|
-
import { makeReactive } from './fn/makeReactive';
|
|
166
|
-
import { map } from './fn/map';
|
|
167
|
-
import { md5 } from './fn/md5';
|
|
168
|
-
import { money } from './fn/money';
|
|
169
|
-
import { move } from './fn/move';
|
|
170
|
-
import { multiorder } from './fn/multiorder';
|
|
171
|
-
import { nl2br } from './fn/nl2br';
|
|
172
|
-
import { numProperties } from './fn/numProperties';
|
|
173
|
-
import { objectToFormData } from './fn/objectToFormData';
|
|
174
|
-
import { order } from './fn/order';
|
|
175
|
-
import { outerHeight } from './fn/outerHeight';
|
|
176
|
-
import { outerWidth } from './fn/outerWidth';
|
|
177
|
-
import { percent } from './fn/percent';
|
|
178
|
-
import { pickValue } from './fn/pickValue';
|
|
179
|
-
import { post } from './fn/post';
|
|
180
|
-
import { postOut } from './fn/postOut';
|
|
181
|
-
import { printf } from './fn/printf';
|
|
182
|
-
import { quotes2html } from './fn/quotes2html';
|
|
183
|
-
import { randomInt } from './fn/randomInt';
|
|
184
|
-
import { randomString } from './fn/randomString';
|
|
185
|
-
import { removeAccents } from './fn/removeAccents';
|
|
186
|
-
import { removeEmpty } from './fn/removeEmpty';
|
|
187
|
-
import { removeExtraSpaces } from './fn/removeExtraSpaces';
|
|
188
|
-
import { removeHtmlComments } from './fn/removeHtmlComments';
|
|
189
|
-
import { removePrivateProp } from './fn/removePrivateProp';
|
|
190
|
-
import { removeTrailingChars } from './fn/removeTrailingChars';
|
|
191
|
-
import { repeat } from './fn/repeat';
|
|
192
|
-
import { replaceAll } from './fn/replaceAll';
|
|
193
|
-
import { replaceSelection } from './fn/replaceSelection';
|
|
194
|
-
import { resize } from './fn/resize';
|
|
195
|
-
import { rgb2hex } from './fn/rgb2hex';
|
|
196
|
-
import { riterate } from './fn/riterate';
|
|
197
|
-
import { roundDecimal } from './fn/roundDecimal';
|
|
198
|
-
import { sanitize } from './fn/sanitize';
|
|
199
|
-
import { search } from './fn/search';
|
|
200
|
-
import { selectElementText } from './fn/selectElementText';
|
|
201
|
-
import { selector } from './fn/selector';
|
|
202
|
-
import { setCookie } from './fn/setCookie';
|
|
203
|
-
import { setCssVar } from './fn/setCssVar';
|
|
204
|
-
import { setNavigationVars } from './fn/setNavigationVars';
|
|
205
|
-
import { setProp } from './fn/setProp';
|
|
206
|
-
import { setProperty } from './fn/setProperty';
|
|
207
|
-
import { shorten } from './fn/shorten';
|
|
208
|
-
import { shortenObj } from './fn/shortenObj';
|
|
209
|
-
import { shuffle } from './fn/shuffle';
|
|
210
|
-
import { simpleHash } from './fn/simpleHash';
|
|
211
|
-
import { simpleHash1 } from './fn/simpleHash1';
|
|
212
|
-
import { simpleHash2 } from './fn/simpleHash2';
|
|
213
|
-
import { startChrono, stopChrono } from './fn/chrono';
|
|
214
|
-
import { stat } from './fn/stat';
|
|
215
|
-
import { string2ArrayBuffer } from './fn/string2ArrayBuffer';
|
|
216
|
-
import { submit } from './fn/submit';
|
|
217
|
-
import { substr } from './fn/substr';
|
|
218
|
-
import { sum } from './fn/sum';
|
|
219
|
-
import { timestamp } from './fn/timestamp';
|
|
220
|
-
import { toCSV } from './fn/toCSV';
|
|
221
|
-
import { toggleFullScreen } from './fn/toggleFullScreen';
|
|
222
|
-
import { translate } from './fn/translate';
|
|
223
|
-
import { treatAjaxArguments } from './fn/treatAjaxArguments';
|
|
224
|
-
import { trim } from './fn/trim';
|
|
225
|
-
import { uniqString } from './fn/uniqString';
|
|
226
|
-
import { unique } from './fn/unique';
|
|
227
|
-
import { upload } from './fn/upload';
|
|
228
|
-
import { warning } from './fn/warning';
|
|
1
|
+
import { _ } from './_';
|
|
2
|
+
import { $ } from './$';
|
|
3
|
+
import { lng } from './lng';
|
|
4
|
+
import { vars } from './vars';
|
|
5
|
+
import { env } from './env';
|
|
6
|
+
import { fn } from './fn';
|
|
229
7
|
const bbn = {
|
|
230
8
|
version: "1.0.1",
|
|
231
9
|
opt: {
|
|
232
10
|
_cat: {}
|
|
233
11
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
let st = args.shift();
|
|
242
|
-
let res = bbn.lng[st] || st;
|
|
243
|
-
if (args.length) {
|
|
244
|
-
let i = 0;
|
|
245
|
-
return res.replace(/\%([d|s])/g, (match, type) => {
|
|
246
|
-
let tmp = args[i++];
|
|
247
|
-
if (!tmp) {
|
|
248
|
-
tmp = type === 'd' ? 0 : '';
|
|
249
|
-
}
|
|
250
|
-
checkType(tmp, type === 'd' ? 'number' : 'string', bbn._("The value you gave did not correspond, check the loggg"));
|
|
251
|
-
return tmp;
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
return res;
|
|
255
|
-
},
|
|
256
|
-
$: (selector, context) => {
|
|
257
|
-
if (context && context.querySelectorAll) {
|
|
258
|
-
return context.querySelectorAll(selector);
|
|
259
|
-
}
|
|
260
|
-
return document.body.querySelectorAll(selector);
|
|
261
|
-
},
|
|
262
|
-
_popups: [],
|
|
263
|
-
lng: {
|
|
264
|
-
/* User-defined languages elements */
|
|
265
|
-
select_unselect_all: "Select/Clear all",
|
|
266
|
-
select_all: "Select all",
|
|
267
|
-
search: 'Search',
|
|
268
|
-
loading: 'Loading...',
|
|
269
|
-
choose: 'Choose',
|
|
270
|
-
error: 'Error',
|
|
271
|
-
server_response: 'Server response',
|
|
272
|
-
reload: 'Reload',
|
|
273
|
-
errorText: 'Something went wrong',
|
|
274
|
-
closeAll: "Close all",
|
|
275
|
-
closeOthers: "Close others",
|
|
276
|
-
pin: "Pin",
|
|
277
|
-
arrange: "Arrange",
|
|
278
|
-
cancel: "Cancel",
|
|
279
|
-
unpin: "Unpin",
|
|
280
|
-
yes: "Yes",
|
|
281
|
-
no: "No",
|
|
282
|
-
unknown: "Unknown",
|
|
283
|
-
untitled: "Untitled",
|
|
284
|
-
confirmation: "Confirmation",
|
|
285
|
-
Today: "Today",
|
|
286
|
-
Tomorrow: "Tomorrow",
|
|
287
|
-
Yesterday: "Yesterday"
|
|
288
|
-
},
|
|
289
|
-
app: {
|
|
290
|
-
popups: [],
|
|
291
|
-
},
|
|
292
|
-
vars: {
|
|
293
|
-
loggers: {
|
|
294
|
-
_num: 0
|
|
295
|
-
},
|
|
296
|
-
/* Usable datatypes through Ajax function */
|
|
297
|
-
datatypes: ['xml', 'html', 'script', 'json', 'jsonp', 'text', 'blob'],
|
|
298
|
-
/* The default value used by the function shorten */
|
|
299
|
-
shortenLen: 30,
|
|
300
|
-
/* Categorizing keyboard map */
|
|
301
|
-
keys: {
|
|
302
|
-
upDown: [33, 34, 35, 36, 38, 40],
|
|
303
|
-
leftRight: [36, 35, 37, 39],
|
|
304
|
-
dels: [8, 46, 45],
|
|
305
|
-
confirm: [13, 9],
|
|
306
|
-
alt: [20, 16, 17, 18, 144],
|
|
307
|
-
numbers: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105],
|
|
308
|
-
numsigns: [109, 110, 189, 190]
|
|
309
|
-
},
|
|
310
|
-
comparators: [">=", "<=", ">", "<", "="],
|
|
311
|
-
operators: ["+", "-", "/", "*"],
|
|
312
|
-
tags: ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'link', 'main', 'map', 'mark', 'menu', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'script', 'section', 'select', 'slot', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'var', 'video', 'wbr'],
|
|
313
|
-
colors: {
|
|
314
|
-
darkgrey: '#5a6a62',
|
|
315
|
-
black: '#000000',
|
|
316
|
-
anthracite: '#454545',
|
|
317
|
-
grey: '#d3d3d3',
|
|
318
|
-
white: '#ffffff',
|
|
319
|
-
beige: '#fdfdfd',
|
|
320
|
-
lightgrey: '#dcdcdc',
|
|
321
|
-
pastelblue: '#ddebf6',
|
|
322
|
-
cyan: '#00c8f8',
|
|
323
|
-
blue: '#6e9ecf',
|
|
324
|
-
indigo: '#3f51b5',
|
|
325
|
-
navy: '#354458',
|
|
326
|
-
webblue: '#2196f3',
|
|
327
|
-
teal: '#009688',
|
|
328
|
-
turquoise: '#1fda9a',
|
|
329
|
-
pastelgreen: '#e2efda',
|
|
330
|
-
palegreen: '#ccffcc',
|
|
331
|
-
green: '#00a03e',
|
|
332
|
-
olive: '#92b06a',
|
|
333
|
-
pastelorange: '#fff2cc',
|
|
334
|
-
yellow: '#fdf200',
|
|
335
|
-
orange: '#ff9900',
|
|
336
|
-
pink: '#eb65a0',
|
|
337
|
-
purple: '#a333c8',
|
|
338
|
-
red: '#db3340',
|
|
339
|
-
brown: '#8c6954'
|
|
340
|
-
},
|
|
341
|
-
reserved: ['abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'continue', 'const', 'debugger', 'default', 'delete', 'do', 'double', 'else', 'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for', 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int', 'interface', 'long', 'native', 'new', 'null', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void', 'while', 'with'],
|
|
342
|
-
mockText: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
343
|
-
regexp: {
|
|
344
|
-
url: new RegExp('^(https?:\\/\\/)?' + // protocol
|
|
345
|
-
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|' + // domain name
|
|
346
|
-
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR ip (v4) address
|
|
347
|
-
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
|
|
348
|
-
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
|
|
349
|
-
'(\\#[-a-z\\d_]*)?$', 'i'),
|
|
350
|
-
ip: new RegExp("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$"),
|
|
351
|
-
hostname: new RegExp("^[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?(\\.[a-z\\d]([a-z\\d\\-]{0,61}[a-z\\d])?)*$", 'i'),
|
|
352
|
-
}
|
|
353
|
-
},
|
|
354
|
-
env: {
|
|
355
|
-
siteTitle: window.document.title,
|
|
356
|
-
/* This variable should be set to true in debugging mode only */
|
|
357
|
-
logging: false,
|
|
358
|
-
/* Address of the CDN (where this file should be hosted) */
|
|
359
|
-
cdn: '',
|
|
360
|
-
/* Default language */
|
|
361
|
-
lang: 'en',
|
|
362
|
-
host: window.location.protocol + '//' + window.location.hostname,
|
|
363
|
-
url: window.location.href,
|
|
364
|
-
old_path: null,
|
|
365
|
-
/* True when non asynchronous Ajax loads */
|
|
366
|
-
loading: false,
|
|
367
|
-
/* Window width */
|
|
368
|
-
width: 0,
|
|
369
|
-
/* Window height */
|
|
370
|
-
height: 0,
|
|
371
|
-
/* Element currently focused (Element object) */
|
|
372
|
-
focused: false,
|
|
373
|
-
/* Last time user has been active */
|
|
374
|
-
last_focus: (new Date()).getTime(),
|
|
375
|
-
/* Sleep mode (tab or window unfocused */
|
|
376
|
-
sleep: false,
|
|
377
|
-
/**
|
|
378
|
-
* @var bbn.env.loaders Object where the props are MD5 of data and url while the values are the requests,
|
|
379
|
-
* for preventing the same call to be made at the same time
|
|
380
|
-
**/
|
|
381
|
-
loaders: [],
|
|
382
|
-
loadersHistory: [],
|
|
383
|
-
maxLoadersHistory: 20,
|
|
384
|
-
/* bbn.env.params is an array of each element of the path */
|
|
385
|
-
resizeTimer: false,
|
|
386
|
-
hashChanged: 0,
|
|
387
|
-
params: [],
|
|
388
|
-
isInit: false,
|
|
389
|
-
isFocused: false,
|
|
390
|
-
timeoff: Math.round((new Date()).getTime() / 1000),
|
|
391
|
-
loggingLevel: 5,
|
|
392
|
-
ignoreUnload: false,
|
|
393
|
-
historyDisabled: false,
|
|
394
|
-
nav: 'ajax'
|
|
395
|
-
},
|
|
396
|
-
fn: {
|
|
397
|
-
_addLoader,
|
|
398
|
-
_compareValues,
|
|
399
|
-
_deleteLoader,
|
|
400
|
-
abort,
|
|
401
|
-
abortURL,
|
|
402
|
-
addColors,
|
|
403
|
-
addInputs,
|
|
404
|
-
addStyle,
|
|
405
|
-
adjustHeight,
|
|
406
|
-
adjustSize,
|
|
407
|
-
adjustWidth,
|
|
408
|
-
ajax,
|
|
409
|
-
analyzeFunction,
|
|
410
|
-
animateCss,
|
|
411
|
-
arrayBuffer2String,
|
|
412
|
-
arrayFromProp,
|
|
413
|
-
autoExtend,
|
|
414
|
-
baseName,
|
|
415
|
-
br2nl,
|
|
416
|
-
calendar,
|
|
417
|
-
callback,
|
|
418
|
-
camelize,
|
|
419
|
-
camelToCss,
|
|
420
|
-
canvasToImage,
|
|
421
|
-
center,
|
|
422
|
-
checkProps,
|
|
423
|
-
checkPropsDetails,
|
|
424
|
-
checkPropsOrDie,
|
|
425
|
-
checkType,
|
|
426
|
-
circularReplacer,
|
|
427
|
-
clone,
|
|
428
|
-
colorToHex,
|
|
429
|
-
compare,
|
|
430
|
-
compareConditions,
|
|
431
|
-
copy,
|
|
432
|
-
correctCase,
|
|
433
|
-
count,
|
|
434
|
-
crc32,
|
|
435
|
-
createObject,
|
|
436
|
-
cssExists,
|
|
437
|
-
date,
|
|
438
|
-
dateSQL,
|
|
439
|
-
daysInMonth,
|
|
440
|
-
deepPath,
|
|
441
|
-
defaultAjaxAbortFunction,
|
|
442
|
-
defaultAjaxErrorFunction,
|
|
443
|
-
defaultAlertFunction,
|
|
444
|
-
defaultConfirmFunction,
|
|
445
|
-
defaultEndLoadingFunction,
|
|
446
|
-
defaultErrorFunction,
|
|
447
|
-
defaultHistoryFunction,
|
|
448
|
-
defaultLinkFunction,
|
|
449
|
-
defaultPostLinkFunction,
|
|
450
|
-
defaultPreLinkFunction,
|
|
451
|
-
defaultResizeFunction,
|
|
452
|
-
defaultStartLoadingFunction,
|
|
453
|
-
deleteProp,
|
|
454
|
-
diffObj,
|
|
455
|
-
dirName,
|
|
456
|
-
download,
|
|
457
|
-
downloadContent,
|
|
458
|
-
each,
|
|
459
|
-
eraseCookie,
|
|
460
|
-
error,
|
|
461
|
-
escapeDquotes,
|
|
462
|
-
escapeRegExp,
|
|
463
|
-
escapeSquotes,
|
|
464
|
-
escapeTicks,
|
|
465
|
-
escapeUrl,
|
|
466
|
-
extend,
|
|
467
|
-
extendOut,
|
|
468
|
-
fdate,
|
|
469
|
-
fdatetime,
|
|
470
|
-
fieldValue,
|
|
471
|
-
fileExt,
|
|
472
|
-
filter,
|
|
473
|
-
filterToConditions,
|
|
474
|
-
findAll,
|
|
475
|
-
fori,
|
|
476
|
-
forir,
|
|
477
|
-
format,
|
|
478
|
-
formatBytes,
|
|
479
|
-
formatDate,
|
|
480
|
-
formatSize,
|
|
481
|
-
formdata,
|
|
482
|
-
fromXml,
|
|
483
|
-
ftime,
|
|
484
|
-
getAllTags,
|
|
485
|
-
getAncestors,
|
|
486
|
-
getAttributes,
|
|
487
|
-
getBrowserName,
|
|
488
|
-
getBrowserVersion,
|
|
489
|
-
getCookie,
|
|
490
|
-
getCssVar,
|
|
491
|
-
getDay,
|
|
492
|
-
getDeviceType,
|
|
493
|
-
getEventData,
|
|
494
|
-
getField,
|
|
495
|
-
getFieldValues,
|
|
496
|
-
getHtml,
|
|
497
|
-
getHTMLOfSelection,
|
|
498
|
-
getLoader,
|
|
499
|
-
getPath,
|
|
500
|
-
getProp,
|
|
501
|
-
getProperty,
|
|
502
|
-
getRequestId,
|
|
503
|
-
getRow,
|
|
504
|
-
getScrollBarSize,
|
|
505
|
-
getText,
|
|
506
|
-
getTimeoff,
|
|
507
|
-
happy,
|
|
508
|
-
hash,
|
|
509
|
-
hex2rgb,
|
|
510
|
-
history,
|
|
511
|
-
html2text,
|
|
512
|
-
imageToCanvas,
|
|
513
|
-
imgToBase64,
|
|
514
|
-
info,
|
|
515
|
-
init,
|
|
516
|
-
isActiveInterface,
|
|
517
|
-
isArray,
|
|
518
|
-
isBlob,
|
|
519
|
-
isBoolean,
|
|
520
|
-
isCanvas,
|
|
521
|
-
isColor,
|
|
522
|
-
isComment,
|
|
523
|
-
isCp,
|
|
524
|
-
isDate,
|
|
525
|
-
isDesktopDevice,
|
|
526
|
-
isDimension,
|
|
527
|
-
isDom,
|
|
528
|
-
isEmail,
|
|
529
|
-
isEmpty,
|
|
530
|
-
isEvent,
|
|
531
|
-
isFocused,
|
|
532
|
-
isFunction,
|
|
533
|
-
isHostname,
|
|
534
|
-
isInside,
|
|
535
|
-
isInt,
|
|
536
|
-
isIP,
|
|
537
|
-
isIterable,
|
|
538
|
-
isMobile,
|
|
539
|
-
isMobileDevice,
|
|
540
|
-
isNull,
|
|
541
|
-
isNumber,
|
|
542
|
-
isObject,
|
|
543
|
-
isPercent,
|
|
544
|
-
isPrimitive,
|
|
545
|
-
isPromise,
|
|
546
|
-
isPropSize,
|
|
547
|
-
isSame,
|
|
548
|
-
isSQLDate,
|
|
549
|
-
isString,
|
|
550
|
-
isSymbol,
|
|
551
|
-
isTabletDevice,
|
|
552
|
-
isURL,
|
|
553
|
-
isValidDimension,
|
|
554
|
-
isValidName,
|
|
555
|
-
isValue,
|
|
556
|
-
isVue,
|
|
557
|
-
iterate,
|
|
558
|
-
lightenDarkenHex,
|
|
559
|
-
link,
|
|
560
|
-
log,
|
|
561
|
-
makeReactive,
|
|
562
|
-
map,
|
|
563
|
-
md5,
|
|
564
|
-
money,
|
|
565
|
-
move,
|
|
566
|
-
multiorder,
|
|
567
|
-
nl2br,
|
|
568
|
-
numProperties,
|
|
569
|
-
objectToFormData,
|
|
570
|
-
order,
|
|
571
|
-
outerHeight,
|
|
572
|
-
outerWidth,
|
|
573
|
-
percent,
|
|
574
|
-
pickValue,
|
|
575
|
-
post,
|
|
576
|
-
postOut,
|
|
577
|
-
printf,
|
|
578
|
-
quotes2html,
|
|
579
|
-
randomInt,
|
|
580
|
-
randomString,
|
|
581
|
-
removeAccents,
|
|
582
|
-
removeEmpty,
|
|
583
|
-
removeExtraSpaces,
|
|
584
|
-
removeHtmlComments,
|
|
585
|
-
removePrivateProp,
|
|
586
|
-
removeTrailingChars,
|
|
587
|
-
repeat,
|
|
588
|
-
replaceAll,
|
|
589
|
-
replaceSelection,
|
|
590
|
-
resize,
|
|
591
|
-
rgb2hex,
|
|
592
|
-
riterate,
|
|
593
|
-
roundDecimal,
|
|
594
|
-
sanitize,
|
|
595
|
-
search,
|
|
596
|
-
selectElementText,
|
|
597
|
-
selector,
|
|
598
|
-
setCookie,
|
|
599
|
-
setCssVar,
|
|
600
|
-
setNavigationVars,
|
|
601
|
-
setProp,
|
|
602
|
-
setProperty,
|
|
603
|
-
shorten,
|
|
604
|
-
shortenObj,
|
|
605
|
-
shuffle,
|
|
606
|
-
simpleHash,
|
|
607
|
-
simpleHash1,
|
|
608
|
-
simpleHash2,
|
|
609
|
-
startChrono,
|
|
610
|
-
stat,
|
|
611
|
-
stopChrono,
|
|
612
|
-
string2ArrayBuffer,
|
|
613
|
-
submit,
|
|
614
|
-
substr,
|
|
615
|
-
sum,
|
|
616
|
-
timestamp,
|
|
617
|
-
toCSV,
|
|
618
|
-
toggleFullScreen,
|
|
619
|
-
translate,
|
|
620
|
-
treatAjaxArguments,
|
|
621
|
-
trim,
|
|
622
|
-
uniqString,
|
|
623
|
-
unique,
|
|
624
|
-
upload,
|
|
625
|
-
warning,
|
|
626
|
-
}
|
|
12
|
+
app: {},
|
|
13
|
+
_,
|
|
14
|
+
$,
|
|
15
|
+
lng,
|
|
16
|
+
vars,
|
|
17
|
+
env,
|
|
18
|
+
fn
|
|
627
19
|
};
|
|
628
20
|
window.bbn = bbn;
|
|
629
21
|
export { bbn };
|
package/dist/lng.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const lng: {
|
|
2
|
+
select_unselect_all: string;
|
|
3
|
+
select_all: string;
|
|
4
|
+
search: string;
|
|
5
|
+
loading: string;
|
|
6
|
+
choose: string;
|
|
7
|
+
error: string;
|
|
8
|
+
server_response: string;
|
|
9
|
+
reload: string;
|
|
10
|
+
errorText: string;
|
|
11
|
+
closeAll: string;
|
|
12
|
+
closeOthers: string;
|
|
13
|
+
pin: string;
|
|
14
|
+
arrange: string;
|
|
15
|
+
cancel: string;
|
|
16
|
+
unpin: string;
|
|
17
|
+
yes: string;
|
|
18
|
+
no: string;
|
|
19
|
+
unknown: string;
|
|
20
|
+
untitled: string;
|
|
21
|
+
confirmation: string;
|
|
22
|
+
Today: string;
|
|
23
|
+
Tomorrow: string;
|
|
24
|
+
Yesterday: string;
|
|
25
|
+
};
|
|
26
|
+
export { lng };
|