@dxtmisha/functional-basic 1.3.12 → 1.3.15
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/CHANGELOG.md +17 -0
- package/ai-description.md +18 -0
- package/ai-doc.md +341 -0
- package/{ai-types.txt → ai-types.md} +357 -171
- package/dist/library.js +33 -12
- package/dist/src/classes/Geo.d.ts +14 -0
- package/dist/src/classes/GeoInstance.d.ts +16 -1
- package/dist/src/types/geoTypes.d.ts +6 -0
- package/package.json +4 -4
- package/ai-description.txt +0 -18
- package/ai-doc.txt +0 -54
|
@@ -16,7 +16,10 @@ import { ApiConfig, ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethodItem, A
|
|
|
16
16
|
import { ApiStatus } from './ApiStatus';
|
|
17
17
|
import { ApiResponse } from './ApiResponse';
|
|
18
18
|
import { ApiHydration } from './ApiHydration';
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Class for working with HTTP requests.
|
|
22
|
+
*/
|
|
20
23
|
export declare class Api {
|
|
21
24
|
static isLocalhost(): boolean;
|
|
22
25
|
static getItem(): ApiInstance;
|
|
@@ -43,9 +46,13 @@ export declare class Api {
|
|
|
43
46
|
static patch<T>(request: ApiFetch): Promise<T>;
|
|
44
47
|
static delete<T>(request: ApiFetch): Promise<T>;
|
|
45
48
|
}
|
|
49
|
+
|
|
46
50
|
// File: src/classes/ApiCache.d.ts
|
|
47
51
|
import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
|
|
48
|
-
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Class for caching API responses.
|
|
55
|
+
*/
|
|
49
56
|
export declare class ApiCache {
|
|
50
57
|
static init(getListener: (key: string) => Promise<ApiCacheItem | undefined>, setListener: (key: string, value: ApiCacheItem) => Promise<boolean>, removeListener: (key: string) => Promise<boolean>, cacheStepAgeClearOld?: number): void;
|
|
51
58
|
static reset(): void;
|
|
@@ -55,11 +62,15 @@ export declare class ApiCache {
|
|
|
55
62
|
static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
|
|
56
63
|
static remove(key: string): Promise<void>;
|
|
57
64
|
}
|
|
65
|
+
|
|
58
66
|
// File: src/classes/ApiDataReturn.d.ts
|
|
59
67
|
import { ApiStatus } from './ApiStatus';
|
|
60
68
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
61
69
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
62
|
-
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Class for processing API response data.
|
|
73
|
+
*/
|
|
63
74
|
export declare class ApiDataReturn<T = any> {
|
|
64
75
|
constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
|
|
65
76
|
init(): Promise<this>;
|
|
@@ -67,28 +78,40 @@ export declare class ApiDataReturn<T = any> {
|
|
|
67
78
|
getAndStatus(status: ApiStatus): ApiData<T>;
|
|
68
79
|
getData(): ApiData<T> | undefined;
|
|
69
80
|
}
|
|
81
|
+
|
|
70
82
|
// File: src/classes/ApiDefault.d.ts
|
|
71
83
|
import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
|
|
72
|
-
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Class for default API request data.
|
|
87
|
+
*/
|
|
73
88
|
export declare class ApiDefault {
|
|
74
89
|
is(): boolean;
|
|
75
90
|
get(): Record<string, any> | undefined;
|
|
76
91
|
request(request: ApiFetch['request']): ApiFetch['request'];
|
|
77
92
|
set(request: ApiDefaultValue): this;
|
|
78
93
|
}
|
|
94
|
+
|
|
79
95
|
// File: src/classes/ApiError.d.ts
|
|
80
96
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
81
97
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
82
|
-
import {
|
|
83
|
-
|
|
98
|
+
import { ApiMethodItem } from '../types/apiTypes';
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* API error utility class.
|
|
102
|
+
*/
|
|
84
103
|
export declare class ApiError {
|
|
85
104
|
static getStorage(): ApiErrorStorage;
|
|
86
|
-
static add(item:
|
|
105
|
+
static add(item: any, url?: string | RegExp, method?: ApiMethodItem): void;
|
|
87
106
|
static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
|
|
88
107
|
}
|
|
108
|
+
|
|
89
109
|
// File: src/classes/ApiErrorItem.d.ts
|
|
90
110
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
91
|
-
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Class for extracting data from API error responses.
|
|
114
|
+
*/
|
|
92
115
|
export declare class ApiErrorItem {
|
|
93
116
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
94
117
|
getMethod(): ApiMethodItem;
|
|
@@ -98,41 +121,54 @@ export declare class ApiErrorItem {
|
|
|
98
121
|
getMessage(): string | undefined;
|
|
99
122
|
getStatus(): number;
|
|
100
123
|
}
|
|
124
|
+
|
|
101
125
|
// File: src/classes/ApiErrorStorage.d.ts
|
|
102
126
|
import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
103
|
-
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Manager for API error states.
|
|
130
|
+
*/
|
|
104
131
|
export declare class ApiErrorStorage {
|
|
105
132
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
106
|
-
add(item:
|
|
133
|
+
add(item: any, url?: string | RegExp, method?: ApiMethodItem): this;
|
|
107
134
|
}
|
|
135
|
+
|
|
108
136
|
// File: src/classes/ApiHeaders.d.ts
|
|
109
137
|
import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
|
|
110
|
-
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Class for managing HTTP request headers.
|
|
141
|
+
*/
|
|
111
142
|
export declare class ApiHeaders {
|
|
112
143
|
get(value?: Record<string, string> | null, type?: string | undefined | null): Record<string, string> | undefined;
|
|
113
144
|
getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
|
|
114
145
|
set(headers: ApiHeadersValue): this;
|
|
115
146
|
}
|
|
147
|
+
|
|
116
148
|
// File: src/classes/ApiHydration.d.ts
|
|
117
149
|
import { ApiResponse } from './ApiResponse';
|
|
118
150
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
119
|
-
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Collects API data for SSR hydration.
|
|
154
|
+
*/
|
|
120
155
|
export declare class ApiHydration {
|
|
121
156
|
initResponse(response: ApiResponse): void;
|
|
122
157
|
toClient<T>(apiFetch: ApiFetch, response: T): void;
|
|
123
158
|
toString(): string;
|
|
124
159
|
}
|
|
160
|
+
|
|
125
161
|
// File: src/classes/ApiInstance.d.ts
|
|
126
162
|
import { LoadingInstance } from './LoadingInstance';
|
|
127
163
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
128
164
|
import { ApiDefault } from './ApiDefault';
|
|
129
|
-
import { ApiErrorItem } from './ApiErrorItem';
|
|
130
165
|
import { ApiHeaders } from './ApiHeaders';
|
|
131
166
|
import { ApiHydration } from './ApiHydration';
|
|
132
167
|
import { ApiPreparation } from './ApiPreparation';
|
|
133
168
|
import { ApiResponse } from './ApiResponse';
|
|
134
169
|
import { ApiStatus } from './ApiStatus';
|
|
135
170
|
import { ApiDefaultValue, ApiFetch, ApiHeadersValue, ApiMethod, ApiPreparationEnd } from '../types/apiTypes';
|
|
171
|
+
|
|
136
172
|
export type ApiInstanceOptions = {
|
|
137
173
|
headersClass?: typeof ApiHeaders;
|
|
138
174
|
requestDefaultClass?: typeof ApiDefault;
|
|
@@ -143,7 +179,10 @@ export type ApiInstanceOptions = {
|
|
|
143
179
|
errorCenterClass?: ErrorCenterInstance;
|
|
144
180
|
hydrationClass?: typeof ApiHydration;
|
|
145
181
|
};
|
|
146
|
-
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Core class for HTTP requests via Fetch API.
|
|
185
|
+
*/
|
|
147
186
|
export declare class ApiInstance {
|
|
148
187
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
149
188
|
isLocalhost(): boolean;
|
|
@@ -169,19 +208,27 @@ export declare class ApiInstance {
|
|
|
169
208
|
patch<T>(request: ApiFetch): Promise<T>;
|
|
170
209
|
delete<T>(request: ApiFetch): Promise<T>;
|
|
171
210
|
}
|
|
211
|
+
|
|
172
212
|
// File: src/classes/ApiPreparation.d.ts
|
|
173
213
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
174
|
-
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Class for request preparation.
|
|
217
|
+
*/
|
|
175
218
|
export declare class ApiPreparation {
|
|
176
219
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
177
220
|
makeEnd(active: boolean, query: Response, apiFetch: ApiFetch): Promise<ApiPreparationEnd>;
|
|
178
221
|
set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
|
|
179
222
|
setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
|
|
180
223
|
}
|
|
224
|
+
|
|
181
225
|
// File: src/classes/ApiResponse.d.ts
|
|
182
226
|
import { ApiDefault } from './ApiDefault';
|
|
183
227
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
184
|
-
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Class for API response management.
|
|
231
|
+
*/
|
|
185
232
|
export declare class ApiResponse {
|
|
186
233
|
constructor(requestDefault: ApiDefault);
|
|
187
234
|
get(path: string | undefined, method: ApiMethod, request?: ApiFetch['request'], devMode?: boolean): ApiResponseItem | undefined;
|
|
@@ -191,9 +238,13 @@ export declare class ApiResponse {
|
|
|
191
238
|
emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
|
|
192
239
|
emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
|
|
193
240
|
}
|
|
241
|
+
|
|
194
242
|
// File: src/classes/ApiStatus.d.ts
|
|
195
243
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
196
|
-
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Class for API request status.
|
|
247
|
+
*/
|
|
197
248
|
export declare class ApiStatus {
|
|
198
249
|
get(): ApiStatusItem | undefined;
|
|
199
250
|
getStatus(): number | undefined;
|
|
@@ -211,9 +262,13 @@ export declare class ApiStatus {
|
|
|
211
262
|
setLastCode(code?: string): this;
|
|
212
263
|
setLastMessage(message?: string): this;
|
|
213
264
|
}
|
|
265
|
+
|
|
214
266
|
// File: src/classes/BroadcastMessage.d.ts
|
|
215
267
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
216
|
-
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Class for BroadcastChannel messaging.
|
|
271
|
+
*/
|
|
217
272
|
export declare class BroadcastMessage<Message = any> {
|
|
218
273
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
219
274
|
getChannel(): BroadcastChannel | undefined;
|
|
@@ -222,30 +277,42 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
222
277
|
setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
|
|
223
278
|
destroy(): this;
|
|
224
279
|
}
|
|
280
|
+
|
|
225
281
|
// File: src/classes/Cache.d.ts
|
|
226
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* @deprecated Use alternative caching mechanisms.
|
|
284
|
+
*/
|
|
227
285
|
export declare class Cache {
|
|
228
286
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
229
287
|
getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
230
288
|
}
|
|
289
|
+
|
|
231
290
|
// File: src/classes/CacheItem.d.ts
|
|
232
|
-
/**
|
|
291
|
+
/**
|
|
292
|
+
* @deprecated
|
|
293
|
+
*/
|
|
233
294
|
export declare class CacheItem<T> {
|
|
234
295
|
constructor(callback: () => T);
|
|
235
296
|
getCache(comparison: any[]): T;
|
|
236
297
|
getCacheOld(): T | undefined;
|
|
237
298
|
getCacheAsync(comparison: any[]): Promise<T>;
|
|
238
299
|
}
|
|
300
|
+
|
|
239
301
|
// File: src/classes/CacheStatic.d.ts
|
|
240
|
-
|
|
241
|
-
|
|
302
|
+
/**
|
|
303
|
+
* @deprecated
|
|
304
|
+
*/
|
|
242
305
|
export declare class CacheStatic {
|
|
243
306
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
244
307
|
static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
|
|
245
308
|
}
|
|
309
|
+
|
|
246
310
|
// File: src/classes/Cookie.d.ts
|
|
247
311
|
import { CookieOptions } from './CookieStorage';
|
|
248
|
-
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Class for managing Cookies.
|
|
315
|
+
*/
|
|
249
316
|
export declare class Cookie<T> {
|
|
250
317
|
static getInstance<T>(name: string): Cookie<T>;
|
|
251
318
|
constructor(name: string);
|
|
@@ -253,20 +320,25 @@ export declare class Cookie<T> {
|
|
|
253
320
|
set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
|
|
254
321
|
remove(): void;
|
|
255
322
|
}
|
|
323
|
+
|
|
256
324
|
// File: src/classes/CookieBlock.d.ts
|
|
257
325
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
258
|
-
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Manages cookie access status.
|
|
329
|
+
*/
|
|
259
330
|
export declare class CookieBlock {
|
|
260
331
|
static getItem(): CookieBlockInstance;
|
|
261
332
|
static get(): boolean;
|
|
262
333
|
static set(value: boolean): void;
|
|
263
334
|
}
|
|
335
|
+
|
|
264
336
|
// File: src/classes/CookieBlockInstance.d.ts
|
|
265
|
-
/** Class for cookie access status. */
|
|
266
337
|
export declare class CookieBlockInstance {
|
|
267
338
|
get(): boolean;
|
|
268
339
|
set(value: boolean): void;
|
|
269
340
|
}
|
|
341
|
+
|
|
270
342
|
// File: src/classes/CookieStorage.d.ts
|
|
271
343
|
export type CookieSameSite = 'strict' | 'lax';
|
|
272
344
|
export type CookieOptions = {
|
|
@@ -279,7 +351,10 @@ export type CookieOptions = {
|
|
|
279
351
|
partitioned?: boolean;
|
|
280
352
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
281
353
|
};
|
|
282
|
-
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Cookie storage manager.
|
|
357
|
+
*/
|
|
283
358
|
export declare class CookieStorage {
|
|
284
359
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
285
360
|
static reset(): void;
|
|
@@ -288,9 +363,13 @@ export declare class CookieStorage {
|
|
|
288
363
|
static remove(name: string): void;
|
|
289
364
|
static update(): void;
|
|
290
365
|
}
|
|
366
|
+
|
|
291
367
|
// File: src/classes/DataStorage.d.ts
|
|
292
368
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
293
|
-
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* localStorage/sessionStorage manager.
|
|
372
|
+
*/
|
|
294
373
|
export declare class DataStorage<T> {
|
|
295
374
|
static setPrefix(newPrefix: string): void;
|
|
296
375
|
constructor(name: string, isSession?: boolean, errorCenter?: ErrorCenterInstance);
|
|
@@ -299,11 +378,15 @@ export declare class DataStorage<T> {
|
|
|
299
378
|
remove(): this;
|
|
300
379
|
update(): this;
|
|
301
380
|
}
|
|
381
|
+
|
|
302
382
|
// File: src/classes/Datetime.d.ts
|
|
303
383
|
import { GeoIntl } from './GeoIntl';
|
|
304
384
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
305
385
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
306
|
-
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Class for date operations.
|
|
389
|
+
*/
|
|
307
390
|
export declare class Datetime {
|
|
308
391
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
309
392
|
getIntl(): GeoIntl;
|
|
@@ -377,10 +460,14 @@ export declare class Datetime {
|
|
|
377
460
|
cloneDayNext(): Datetime;
|
|
378
461
|
cloneDayPrevious(): Datetime;
|
|
379
462
|
}
|
|
463
|
+
|
|
380
464
|
// File: src/classes/ErrorCenter.d.ts
|
|
381
465
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
382
466
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
383
|
-
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Centralized error handler.
|
|
470
|
+
*/
|
|
384
471
|
export declare class ErrorCenter {
|
|
385
472
|
static getItem(): ErrorCenterInstance;
|
|
386
473
|
static has(code: string, group?: string): boolean;
|
|
@@ -391,9 +478,10 @@ export declare class ErrorCenter {
|
|
|
391
478
|
static addHandlerList(handlers: ErrorCenterHandlerList): void;
|
|
392
479
|
static on(cause: ErrorCenterCauseItem): void;
|
|
393
480
|
}
|
|
481
|
+
|
|
394
482
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
395
483
|
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
396
|
-
|
|
484
|
+
|
|
397
485
|
export declare class ErrorCenterHandler {
|
|
398
486
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
399
487
|
has(group: ErrorCenterGroup): boolean;
|
|
@@ -402,10 +490,11 @@ export declare class ErrorCenterHandler {
|
|
|
402
490
|
addList(handlers: ErrorCenterHandlerList): this;
|
|
403
491
|
on(cause: ErrorCenterCauseItem): this;
|
|
404
492
|
}
|
|
493
|
+
|
|
405
494
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
406
495
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
407
496
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
408
|
-
|
|
497
|
+
|
|
409
498
|
export declare class ErrorCenterInstance {
|
|
410
499
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
411
500
|
has(code: string, group?: string): boolean;
|
|
@@ -416,9 +505,13 @@ export declare class ErrorCenterInstance {
|
|
|
416
505
|
addHandlerList(handlers: ErrorCenterHandlerList): this;
|
|
417
506
|
on(cause: ErrorCenterCauseItem): this;
|
|
418
507
|
}
|
|
508
|
+
|
|
419
509
|
// File: src/classes/EventItem.d.ts
|
|
420
|
-
import { ElementOrString, ElementOrWindow,
|
|
421
|
-
|
|
510
|
+
import { ElementOrString, ElementOrWindow, EventOptions, EventListenerDetail } from '../types/basicTypes';
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Event listener manager for DOM/Window.
|
|
514
|
+
*/
|
|
422
515
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
423
516
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
424
517
|
isActive(): boolean;
|
|
@@ -435,25 +528,31 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
435
528
|
toggle(activity: boolean): this;
|
|
436
529
|
reset(): this;
|
|
437
530
|
}
|
|
531
|
+
|
|
438
532
|
// File: src/classes/Formatters.d.ts
|
|
439
|
-
import { FormattersType,
|
|
440
|
-
|
|
533
|
+
import { FormattersType, FormattersOptionsList, FormattersReturn, FormattersListProp, FormattersItemProp } from '../types/formattersTypes';
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Data list formatting utility.
|
|
537
|
+
*/
|
|
441
538
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
442
539
|
constructor(options: Options, list?: List | undefined);
|
|
443
540
|
is(): boolean;
|
|
444
|
-
isArray():
|
|
445
|
-
list: FormattersList<Item>;
|
|
446
|
-
};
|
|
541
|
+
isArray(): boolean;
|
|
447
542
|
length(): number;
|
|
448
|
-
getList():
|
|
543
|
+
getList(): any;
|
|
449
544
|
getOptions(): Options;
|
|
450
545
|
setList(list?: List): this;
|
|
451
546
|
to(): FormattersReturn<List, Options>;
|
|
452
547
|
}
|
|
548
|
+
|
|
453
549
|
// File: src/classes/Geo.d.ts
|
|
454
550
|
import { GeoInstance } from './GeoInstance';
|
|
455
551
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
456
|
-
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Static geographic data manager.
|
|
555
|
+
*/
|
|
457
556
|
export declare class Geo {
|
|
458
557
|
static getObject(): GeoInstance;
|
|
459
558
|
static get(): GeoItemFull;
|
|
@@ -462,6 +561,8 @@ export declare class Geo {
|
|
|
462
561
|
static getStandard(): string;
|
|
463
562
|
static getFirstDay(): string;
|
|
464
563
|
static getLocation(): string;
|
|
564
|
+
static getLocationCountry(): string;
|
|
565
|
+
static getLocationLanguage(): string;
|
|
465
566
|
static getItem(): GeoItemFull;
|
|
466
567
|
static getList(): GeoItem[];
|
|
467
568
|
static getByCode(code?: string): GeoItemFull;
|
|
@@ -476,11 +577,16 @@ export declare class Geo {
|
|
|
476
577
|
static setTimezone(timezone: number): void;
|
|
477
578
|
static setValueDefault(code?: string | (() => string)): void;
|
|
478
579
|
}
|
|
580
|
+
|
|
479
581
|
// File: src/classes/GeoFlag.d.ts
|
|
480
582
|
import { GeoIntl } from './GeoIntl';
|
|
481
|
-
import { GeoFlagItem, GeoFlagNational
|
|
583
|
+
import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
|
|
584
|
+
|
|
482
585
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
483
|
-
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Manages country flags and geo info.
|
|
589
|
+
*/
|
|
484
590
|
export declare class GeoFlag {
|
|
485
591
|
static flags: Record<string, string>;
|
|
486
592
|
constructor(code?: string);
|
|
@@ -491,10 +597,15 @@ export declare class GeoFlag {
|
|
|
491
597
|
getNational(codes?: string[], sort?: boolean): GeoFlagNational[];
|
|
492
598
|
setCode(code: string): this;
|
|
493
599
|
}
|
|
600
|
+
|
|
494
601
|
// File: src/classes/GeoInstance.d.ts
|
|
495
602
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
603
|
+
|
|
496
604
|
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
497
|
-
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Geo data base class.
|
|
608
|
+
*/
|
|
498
609
|
export declare class GeoInstance {
|
|
499
610
|
constructor();
|
|
500
611
|
get(): GeoItemFull;
|
|
@@ -503,6 +614,8 @@ export declare class GeoInstance {
|
|
|
503
614
|
getStandard(): string;
|
|
504
615
|
getFirstDay(): string;
|
|
505
616
|
getLocation(): string;
|
|
617
|
+
getLocationCountry(): string;
|
|
618
|
+
getLocationLanguage(): string;
|
|
506
619
|
getItem(): GeoItemFull;
|
|
507
620
|
getList(): GeoItem[];
|
|
508
621
|
getByCode(code?: string): GeoItemFull;
|
|
@@ -517,11 +630,15 @@ export declare class GeoInstance {
|
|
|
517
630
|
setTimezone(timezone: number): void;
|
|
518
631
|
setValueDefault(code?: string | (() => string)): void;
|
|
519
632
|
}
|
|
633
|
+
|
|
520
634
|
// File: src/classes/GeoIntl.d.ts
|
|
521
635
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
522
636
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
523
637
|
import { GeoDate } from '../types/geoTypes';
|
|
524
|
-
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Internationalization wrapper.
|
|
641
|
+
*/
|
|
525
642
|
export declare class GeoIntl {
|
|
526
643
|
static isItem(code?: string): boolean;
|
|
527
644
|
static getLocation(code?: string): string;
|
|
@@ -553,9 +670,10 @@ export declare class GeoIntl {
|
|
|
553
670
|
time(value: NumberOrStringOrDate): string;
|
|
554
671
|
sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
|
|
555
672
|
}
|
|
673
|
+
|
|
556
674
|
// File: src/classes/GeoPhone.d.ts
|
|
557
675
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
558
|
-
|
|
676
|
+
|
|
559
677
|
export declare class GeoPhone {
|
|
560
678
|
static get(code: string): GeoPhoneValue | undefined;
|
|
561
679
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -565,16 +683,17 @@ export declare class GeoPhone {
|
|
|
565
683
|
static toMask(phone: string, masks?: string[]): string | undefined;
|
|
566
684
|
static removeZero(phone: string): string;
|
|
567
685
|
}
|
|
686
|
+
|
|
568
687
|
// File: src/classes/Global.d.ts
|
|
569
|
-
/** Global application data store. */
|
|
570
688
|
export declare class Global {
|
|
571
689
|
static getItem(): Record<string, any>;
|
|
572
690
|
static get<R = any>(name: string): R;
|
|
573
691
|
static add(data: Record<string, any>): void;
|
|
574
692
|
}
|
|
693
|
+
|
|
575
694
|
// File: src/classes/Hash.d.ts
|
|
576
695
|
import { HashInstance } from './HashInstance';
|
|
577
|
-
|
|
696
|
+
|
|
578
697
|
export declare class Hash {
|
|
579
698
|
static getItem(): HashInstance;
|
|
580
699
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -583,8 +702,8 @@ export declare class Hash {
|
|
|
583
702
|
static removeWatch<T>(name: string, callback: (value: T) => void): void;
|
|
584
703
|
static reload(): void;
|
|
585
704
|
}
|
|
705
|
+
|
|
586
706
|
// File: src/classes/HashInstance.d.ts
|
|
587
|
-
/** Class for URL hash data. */
|
|
588
707
|
export declare class HashInstance {
|
|
589
708
|
get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
590
709
|
set<T>(name: string, callback: T | (() => T)): this;
|
|
@@ -592,13 +711,11 @@ export declare class HashInstance {
|
|
|
592
711
|
removeWatch<T>(name: string, callback: (value: T) => void): this;
|
|
593
712
|
reload(): this;
|
|
594
713
|
}
|
|
714
|
+
|
|
595
715
|
// File: src/classes/Icons.d.ts
|
|
596
716
|
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
597
|
-
export type IconsConfig = {
|
|
598
|
-
|
|
599
|
-
list?: Record<string, IconsItem>;
|
|
600
|
-
};
|
|
601
|
-
/** Class for icons management. */
|
|
717
|
+
export type IconsConfig = { url?: string; list?: Record<string, IconsItem>; };
|
|
718
|
+
|
|
602
719
|
export declare class Icons {
|
|
603
720
|
static is(index: string): boolean;
|
|
604
721
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -612,23 +729,26 @@ export declare class Icons {
|
|
|
612
729
|
static setUrl(url: string): void;
|
|
613
730
|
static setConfig(config: IconsConfig): void;
|
|
614
731
|
}
|
|
732
|
+
|
|
615
733
|
// File: src/classes/Loading.d.ts
|
|
616
734
|
import { LoadingInstance } from './LoadingInstance';
|
|
617
735
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
618
|
-
|
|
736
|
+
|
|
619
737
|
export declare class Loading {
|
|
620
738
|
static is(): boolean;
|
|
621
739
|
static get(): number;
|
|
622
740
|
static getItem(): LoadingInstance;
|
|
623
741
|
static show(): void;
|
|
624
742
|
static hide(): void;
|
|
625
|
-
static registrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
626
|
-
static unregistrationEvent(listener: EventListenerDetail<CustomEvent,
|
|
743
|
+
static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
744
|
+
static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
|
|
627
745
|
}
|
|
746
|
+
|
|
628
747
|
// File: src/classes/LoadingInstance.d.ts
|
|
629
748
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
749
|
+
|
|
630
750
|
export type LoadingDetail = { loading: boolean; };
|
|
631
|
-
|
|
751
|
+
|
|
632
752
|
export declare class LoadingInstance {
|
|
633
753
|
constructor(eventName?: string);
|
|
634
754
|
is(): boolean;
|
|
@@ -638,12 +758,13 @@ export declare class LoadingInstance {
|
|
|
638
758
|
registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
639
759
|
unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
|
|
640
760
|
}
|
|
761
|
+
|
|
641
762
|
// File: src/classes/Meta.d.ts
|
|
642
763
|
import { MetaManager } from './MetaManager';
|
|
643
764
|
import { MetaOg } from './MetaOg';
|
|
644
765
|
import { MetaTwitter } from './MetaTwitter';
|
|
645
766
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
646
|
-
|
|
767
|
+
|
|
647
768
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
648
769
|
constructor();
|
|
649
770
|
getOg(): MetaOg;
|
|
@@ -670,22 +791,22 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
670
791
|
html(): string;
|
|
671
792
|
htmlTitle(): string;
|
|
672
793
|
}
|
|
794
|
+
|
|
673
795
|
// File: src/classes/MetaManager.d.ts
|
|
674
|
-
|
|
675
|
-
/** Base manager for meta tags. */
|
|
676
|
-
export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
|
|
796
|
+
export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
|
|
677
797
|
constructor(listMeta: T, isProperty?: boolean);
|
|
678
798
|
getListMeta(): T;
|
|
679
799
|
get(name: Key): string;
|
|
680
|
-
getItems():
|
|
800
|
+
getItems(): any;
|
|
681
801
|
html(): string;
|
|
682
802
|
set(name: Key, content: string): this;
|
|
683
|
-
setByList(metaList:
|
|
803
|
+
setByList(metaList: any): this;
|
|
684
804
|
}
|
|
805
|
+
|
|
685
806
|
// File: src/classes/MetaOg.d.ts
|
|
686
807
|
import { MetaManager } from './MetaManager';
|
|
687
808
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
688
|
-
|
|
809
|
+
|
|
689
810
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
690
811
|
constructor();
|
|
691
812
|
getTitle(): string;
|
|
@@ -703,12 +824,13 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
|
703
824
|
setLocale(locale: string): this;
|
|
704
825
|
setSiteName(siteName: string): this;
|
|
705
826
|
}
|
|
827
|
+
|
|
706
828
|
// File: src/classes/MetaStatic.d.ts
|
|
707
829
|
import { Meta } from './Meta';
|
|
708
830
|
import { MetaOg } from './MetaOg';
|
|
709
831
|
import { MetaTwitter } from './MetaTwitter';
|
|
710
832
|
import { MetaRobots } from '../types/metaTypes';
|
|
711
|
-
|
|
833
|
+
|
|
712
834
|
export declare class MetaStatic {
|
|
713
835
|
static getItem(): Meta;
|
|
714
836
|
static getOg(): MetaOg;
|
|
@@ -735,10 +857,11 @@ export declare class MetaStatic {
|
|
|
735
857
|
static html(): string;
|
|
736
858
|
static htmlTitle(): string;
|
|
737
859
|
}
|
|
860
|
+
|
|
738
861
|
// File: src/classes/MetaTwitter.d.ts
|
|
739
862
|
import { MetaManager } from './MetaManager';
|
|
740
863
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
741
|
-
|
|
864
|
+
|
|
742
865
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
743
866
|
constructor();
|
|
744
867
|
getCard(): MetaTwitterCard;
|
|
@@ -756,9 +879,10 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
756
879
|
setDescription(description: string): this;
|
|
757
880
|
setImage(image: string): this;
|
|
758
881
|
}
|
|
882
|
+
|
|
759
883
|
// File: src/classes/ResumableTimer.d.ts
|
|
760
884
|
import { FunctionVoid } from '../types/basicTypes';
|
|
761
|
-
|
|
885
|
+
|
|
762
886
|
export declare class ResumableTimer {
|
|
763
887
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
764
888
|
resume(): this;
|
|
@@ -766,22 +890,23 @@ export declare class ResumableTimer {
|
|
|
766
890
|
reset(): this;
|
|
767
891
|
clear(): this;
|
|
768
892
|
}
|
|
893
|
+
|
|
769
894
|
// File: src/classes/ScrollbarWidth.d.ts
|
|
770
895
|
import { DataStorage } from './DataStorage';
|
|
771
|
-
|
|
896
|
+
|
|
772
897
|
export declare class ScrollbarWidth {
|
|
773
898
|
static is(): Promise<boolean>;
|
|
774
899
|
static get(): Promise<number>;
|
|
775
900
|
static getStorage(): DataStorage<number>;
|
|
776
901
|
static getCalculate(): boolean;
|
|
777
902
|
}
|
|
903
|
+
|
|
778
904
|
// File: src/classes/SearchList.d.ts
|
|
779
905
|
import { SearchListData } from './SearchListData';
|
|
780
906
|
import { SearchListItem } from './SearchListItem';
|
|
781
|
-
import { SearchListMatcher } from './SearchListMatcher';
|
|
782
907
|
import { SearchListOptions } from './SearchListOptions';
|
|
783
908
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
784
|
-
|
|
909
|
+
|
|
785
910
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
786
911
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
787
912
|
getData(): SearchListData<T, K>;
|
|
@@ -796,15 +921,16 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
796
921
|
setOptions(options: SearchOptions): this;
|
|
797
922
|
to(): SearchFormatList<T, K>;
|
|
798
923
|
}
|
|
924
|
+
|
|
799
925
|
// File: src/classes/SearchListData.d.ts
|
|
800
926
|
import { SearchListItem } from './SearchListItem';
|
|
801
927
|
import { SearchListOptions } from './SearchListOptions';
|
|
802
|
-
import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
803
|
-
|
|
928
|
+
import { SearchCache, SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
929
|
+
|
|
804
930
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
805
931
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
806
|
-
is():
|
|
807
|
-
isList():
|
|
932
|
+
is(): boolean;
|
|
933
|
+
isList(): boolean;
|
|
808
934
|
getList(): SearchListValue<T>;
|
|
809
935
|
getColumns(): K | undefined;
|
|
810
936
|
setList(list: SearchListValue<T>): this;
|
|
@@ -813,21 +939,23 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
|
|
|
813
939
|
forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
|
|
814
940
|
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
815
941
|
}
|
|
942
|
+
|
|
816
943
|
// File: src/classes/SearchListItem.d.ts
|
|
817
944
|
import { SearchListOptions } from './SearchListOptions';
|
|
818
|
-
|
|
945
|
+
|
|
819
946
|
export declare class SearchListItem {
|
|
820
947
|
constructor(value: string | undefined, options: SearchListOptions);
|
|
821
|
-
is():
|
|
948
|
+
is(): boolean;
|
|
822
949
|
isSearch(): boolean;
|
|
823
950
|
get(): string;
|
|
824
951
|
set(value?: string): this;
|
|
825
952
|
}
|
|
953
|
+
|
|
826
954
|
// File: src/classes/SearchListMatcher.d.ts
|
|
827
955
|
import { SearchListItem } from './SearchListItem';
|
|
828
956
|
import { SearchListOptions } from './SearchListOptions';
|
|
829
957
|
import { SearchCacheItem } from '../types/searchTypes';
|
|
830
|
-
|
|
958
|
+
|
|
831
959
|
export declare class SearchListMatcher {
|
|
832
960
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
833
961
|
is(): boolean;
|
|
@@ -835,9 +963,10 @@ export declare class SearchListMatcher {
|
|
|
835
963
|
get(): RegExp | undefined;
|
|
836
964
|
update(): void;
|
|
837
965
|
}
|
|
966
|
+
|
|
838
967
|
// File: src/classes/SearchListOptions.d.ts
|
|
839
968
|
import { SearchOptions } from '../types/searchTypes';
|
|
840
|
-
|
|
969
|
+
|
|
841
970
|
export declare class SearchListOptions {
|
|
842
971
|
constructor(options?: SearchOptions | undefined);
|
|
843
972
|
getOptions(): SearchOptions;
|
|
@@ -848,8 +977,8 @@ export declare class SearchListOptions {
|
|
|
848
977
|
getClassName(): string;
|
|
849
978
|
setOptions(options: SearchOptions): this;
|
|
850
979
|
}
|
|
980
|
+
|
|
851
981
|
// File: src/classes/ServerStorage.d.ts
|
|
852
|
-
/** Server storage for SSR. */
|
|
853
982
|
export declare class ServerStorage {
|
|
854
983
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
855
984
|
static reset(): void;
|
|
@@ -860,8 +989,8 @@ export declare class ServerStorage {
|
|
|
860
989
|
static remove(key: string): void;
|
|
861
990
|
static toString(): string;
|
|
862
991
|
}
|
|
992
|
+
|
|
863
993
|
// File: src/classes/StorageCallback.d.ts
|
|
864
|
-
/** Callback storage. */
|
|
865
994
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
866
995
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
867
996
|
constructor(name: string, group?: string);
|
|
@@ -873,10 +1002,11 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
873
1002
|
preparation(): this;
|
|
874
1003
|
run(value: T): Promise<this>;
|
|
875
1004
|
}
|
|
1005
|
+
|
|
876
1006
|
// File: src/classes/Translate.d.ts
|
|
877
1007
|
import { TranslateInstance } from './TranslateInstance';
|
|
878
1008
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
879
|
-
|
|
1009
|
+
|
|
880
1010
|
export declare class Translate {
|
|
881
1011
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
882
1012
|
static getItem(): TranslateInstance;
|
|
@@ -893,9 +1023,10 @@ export declare class Translate {
|
|
|
893
1023
|
static setReadApi(value: boolean): void;
|
|
894
1024
|
static setConfig(config: TranslateConfig): void;
|
|
895
1025
|
}
|
|
1026
|
+
|
|
896
1027
|
// File: src/classes/TranslateFile.d.ts
|
|
897
1028
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
898
|
-
|
|
1029
|
+
|
|
899
1030
|
export declare class TranslateFile {
|
|
900
1031
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
901
1032
|
isFile(): boolean;
|
|
@@ -904,10 +1035,11 @@ export declare class TranslateFile {
|
|
|
904
1035
|
getList(): Promise<TranslateDataFileList | undefined>;
|
|
905
1036
|
add(data: TranslateDataFile): void;
|
|
906
1037
|
}
|
|
1038
|
+
|
|
907
1039
|
// File: src/classes/TranslateInstance.d.ts
|
|
908
1040
|
import { TranslateFile } from './TranslateFile';
|
|
909
1041
|
import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
910
|
-
|
|
1042
|
+
|
|
911
1043
|
export declare class TranslateInstance {
|
|
912
1044
|
constructor(url?: string, propsName?: string, files?: TranslateFile);
|
|
913
1045
|
get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
@@ -923,8 +1055,8 @@ export declare class TranslateInstance {
|
|
|
923
1055
|
setPropsName(name: string): this;
|
|
924
1056
|
setReadApi(value: boolean): this;
|
|
925
1057
|
}
|
|
1058
|
+
|
|
926
1059
|
// File: src/classes/UrlItem.d.ts
|
|
927
|
-
/** URL management utility. */
|
|
928
1060
|
export declare class UrlItem {
|
|
929
1061
|
static getInstance(): UrlItem;
|
|
930
1062
|
constructor(url?: string | URL);
|
|
@@ -944,263 +1076,372 @@ export declare class UrlItem {
|
|
|
944
1076
|
toString(): string;
|
|
945
1077
|
toJSON(): string;
|
|
946
1078
|
}
|
|
1079
|
+
|
|
947
1080
|
// File: src/functions/addTagHighlightMatch.d.ts
|
|
948
1081
|
export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
|
|
1082
|
+
|
|
949
1083
|
// File: src/functions/anyToString.d.ts
|
|
950
1084
|
export declare function anyToString<V>(value: V, isArrayString?: boolean, trim?: boolean): string;
|
|
1085
|
+
|
|
951
1086
|
// File: src/functions/applyTemplate.d.ts
|
|
952
1087
|
export declare const applyTemplate: (text: string, replacement?: Record<string, string | number | boolean> | string[]) => string;
|
|
1088
|
+
|
|
953
1089
|
// File: src/functions/arrFill.d.ts
|
|
954
1090
|
export declare function arrFill<T>(value: T, count: number): T[];
|
|
1091
|
+
|
|
955
1092
|
// File: src/functions/blobToBase64.d.ts
|
|
956
1093
|
export declare function blobToBase64(blob: Blob, clean?: boolean): Promise<string | undefined>;
|
|
1094
|
+
|
|
957
1095
|
// File: src/functions/capitalize.d.ts
|
|
958
1096
|
export declare function capitalize(value: string, isLocale?: boolean): string;
|
|
1097
|
+
|
|
959
1098
|
// File: src/functions/copyObject.d.ts
|
|
960
1099
|
export declare function copyObject<T>(value: T): T;
|
|
1100
|
+
|
|
961
1101
|
// File: src/functions/copyObjectLite.d.ts
|
|
962
1102
|
export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
|
|
1103
|
+
|
|
963
1104
|
// File: src/functions/createElement.d.ts
|
|
964
|
-
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?:
|
|
1105
|
+
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: any, referenceElement?: HTMLElement): T | undefined;
|
|
1106
|
+
|
|
965
1107
|
// File: src/functions/domQuerySelector.d.ts
|
|
966
1108
|
export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
|
|
1109
|
+
|
|
967
1110
|
// File: src/functions/domQuerySelectorAll.d.ts
|
|
968
1111
|
export declare function domQuerySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E> | undefined;
|
|
1112
|
+
|
|
969
1113
|
// File: src/functions/encodeAttribute.d.ts
|
|
970
1114
|
export declare function encodeAttribute(text: string): string;
|
|
1115
|
+
|
|
971
1116
|
// File: src/functions/encodeLiteAttribute.d.ts
|
|
972
1117
|
export declare function encodeLiteAttribute(text: string): string;
|
|
1118
|
+
|
|
973
1119
|
// File: src/functions/ensureMaxSize.d.ts
|
|
974
1120
|
export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?: string): Promise<string>;
|
|
1121
|
+
|
|
975
1122
|
// File: src/functions/escapeExp.d.ts
|
|
976
1123
|
export declare function escapeExp(value: string): string;
|
|
1124
|
+
|
|
977
1125
|
// File: src/functions/eventStopPropagation.d.ts
|
|
978
1126
|
export declare function eventStopPropagation(event: Event): void;
|
|
1127
|
+
|
|
979
1128
|
// File: src/functions/executeFunction.d.ts
|
|
980
1129
|
import { FunctionArgs } from '../types/basicTypes';
|
|
981
1130
|
export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
|
|
1131
|
+
|
|
982
1132
|
// File: src/functions/executePromise.d.ts
|
|
983
|
-
export declare function executePromise<T>(callback:
|
|
1133
|
+
export declare function executePromise<T>(callback: any, ...args: any[]): Promise<T>;
|
|
1134
|
+
|
|
984
1135
|
// File: src/functions/forEach.d.ts
|
|
985
|
-
export declare function forEach<T, R
|
|
1136
|
+
export declare function forEach<T, R>(data: any, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
|
|
1137
|
+
|
|
986
1138
|
// File: src/functions/frame.d.ts
|
|
987
1139
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
1140
|
+
|
|
988
1141
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
989
1142
|
import { HighlightMatchItem } from '../types/searchTypes';
|
|
990
1143
|
export declare function getArrayHighlightMatch(value: string, search?: string | RegExp): HighlightMatchItem[];
|
|
1144
|
+
|
|
991
1145
|
// File: src/functions/getAttributes.d.ts
|
|
992
1146
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
993
1147
|
export declare function getAttributes<E extends ElementOrWindow>(element?: ElementOrString<E>): Record<string, string | undefined>;
|
|
1148
|
+
|
|
994
1149
|
// File: src/functions/getClipboardData.d.ts
|
|
995
1150
|
export declare function getClipboardData(event?: ClipboardEvent): Promise<string>;
|
|
1151
|
+
|
|
996
1152
|
// File: src/functions/getColumn.d.ts
|
|
997
1153
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
998
1154
|
export declare function getColumn<T, K extends keyof T>(array: ObjectOrArray<T>, column: K): (T[K] | undefined)[];
|
|
1155
|
+
|
|
999
1156
|
// File: src/functions/getCurrentDate.d.ts
|
|
1000
1157
|
import { GeoDate } from '../types/geoTypes';
|
|
1001
1158
|
export declare function getCurrentDate(format?: GeoDate): string;
|
|
1159
|
+
|
|
1002
1160
|
// File: src/functions/getCurrentTime.d.ts
|
|
1003
1161
|
export declare function getCurrentTime(): number;
|
|
1162
|
+
|
|
1004
1163
|
// File: src/functions/getElement.d.ts
|
|
1005
1164
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1006
1165
|
export declare function getElement<E extends ElementOrWindow, R extends Exclude<E, Window>>(element?: ElementOrString<E>): R | undefined;
|
|
1166
|
+
|
|
1007
1167
|
// File: src/functions/getElementId.d.ts
|
|
1008
1168
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1009
1169
|
export declare function getElementId<E extends ElementOrWindow>(element?: ElementOrString<E>, selector?: string): string;
|
|
1010
1170
|
export declare function initGetElementId(newListener: () => string | number): void;
|
|
1171
|
+
|
|
1011
1172
|
// File: src/functions/getElementImage.d.ts
|
|
1012
1173
|
export declare function getElementImage(image: HTMLImageElement | string): HTMLImageElement | undefined;
|
|
1174
|
+
|
|
1013
1175
|
// File: src/functions/getElementItem.d.ts
|
|
1014
1176
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1015
1177
|
export declare function getElementItem<T extends ElementOrWindow, K extends keyof T, D>(element: ElementOrString<T>, index: K | string, defaultValue?: D): T[K] | D | undefined;
|
|
1178
|
+
|
|
1016
1179
|
// File: src/functions/getElementOrWindow.d.ts
|
|
1017
1180
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1018
1181
|
export declare function getElementOrWindow<E extends ElementOrWindow>(element?: ElementOrString<E>): E | undefined;
|
|
1182
|
+
|
|
1019
1183
|
// File: src/functions/getElementSafeScript.d.ts
|
|
1020
1184
|
export declare function getElementSafeScript(id: string, data: any): string;
|
|
1185
|
+
|
|
1021
1186
|
// File: src/functions/getExactSearchExp.d.ts
|
|
1022
1187
|
export declare function getExactSearchExp(search: string): RegExp;
|
|
1188
|
+
|
|
1023
1189
|
// File: src/functions/getExp.d.ts
|
|
1024
1190
|
export declare function getExp(value: string, flags?: string, pattern?: string): RegExp;
|
|
1191
|
+
|
|
1025
1192
|
// File: src/functions/getFirst.d.ts
|
|
1026
1193
|
export declare function getFirst<T>(value: T | T[] | Record<string, T>): T | undefined;
|
|
1194
|
+
|
|
1027
1195
|
// File: src/functions/getHydrationData.d.ts
|
|
1028
1196
|
export declare function getHydrationData<T>(id: string, defaultValue: T, remove?: boolean): T;
|
|
1197
|
+
|
|
1029
1198
|
// File: src/functions/getItemByPath.d.ts
|
|
1030
1199
|
export declare function getItemByPath<T extends Record<string, any>, R = string>(item: T, path: string): R | undefined;
|
|
1200
|
+
|
|
1031
1201
|
// File: src/functions/getKey.d.ts
|
|
1032
1202
|
export declare function getKey(event: KeyboardEvent): string | number | undefined;
|
|
1203
|
+
|
|
1033
1204
|
// File: src/functions/getLength.d.ts
|
|
1034
1205
|
export declare function getLength(value: any): number;
|
|
1206
|
+
|
|
1035
1207
|
// File: src/functions/getLengthOfAllArray.d.ts
|
|
1036
1208
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1037
1209
|
export declare function getLengthOfAllArray(value: ObjectOrArray<string>): number[];
|
|
1210
|
+
|
|
1038
1211
|
// File: src/functions/getMaxLengthAllArray.d.ts
|
|
1039
1212
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1040
1213
|
export declare function getMaxLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1214
|
+
|
|
1041
1215
|
// File: src/functions/getMinLengthAllArray.d.ts
|
|
1042
1216
|
import { ObjectOrArray } from '../types/basicTypes';
|
|
1043
1217
|
export declare function getMinLengthAllArray(data: ObjectOrArray<string>): number;
|
|
1218
|
+
|
|
1044
1219
|
// File: src/functions/getMouseClient.d.ts
|
|
1045
1220
|
import { ImageCoordinator } from '../types/basicTypes';
|
|
1046
1221
|
export declare function getMouseClient(event: MouseEvent & TouchEvent): ImageCoordinator;
|
|
1222
|
+
|
|
1047
1223
|
// File: src/functions/getMouseClientX.d.ts
|
|
1048
1224
|
export declare function getMouseClientX(event: MouseEvent & TouchEvent): number;
|
|
1225
|
+
|
|
1049
1226
|
// File: src/functions/getMouseClientY.d.ts
|
|
1050
1227
|
export declare function getMouseClientY(event: MouseEvent & TouchEvent): number;
|
|
1228
|
+
|
|
1051
1229
|
// File: src/functions/getObjectByKeys.d.ts
|
|
1052
1230
|
export declare function getObjectByKeys<T extends Record<string, any>, K extends keyof T>(data: T, keys: K[]): Pick<T, K>;
|
|
1231
|
+
|
|
1053
1232
|
// File: src/functions/getObjectNoUndefined.d.ts
|
|
1054
1233
|
export declare function getObjectNoUndefined<T extends Record<string | number, any>>(data: T, exception?: any): T;
|
|
1234
|
+
|
|
1055
1235
|
// File: src/functions/getObjectOrNone.d.ts
|
|
1056
1236
|
export declare function getObjectOrNone<T>(value: T): T & Record<string, any>;
|
|
1237
|
+
|
|
1057
1238
|
// File: src/functions/getOnlyText.d.ts
|
|
1058
1239
|
export declare function getOnlyText(text: any): string;
|
|
1240
|
+
|
|
1059
1241
|
// File: src/functions/getRandomText.d.ts
|
|
1060
1242
|
export declare function getRandomText(min: number, max: number, symbol?: string, lengthMin?: number, lengthMax?: number): string;
|
|
1243
|
+
|
|
1061
1244
|
// File: src/functions/getRequestString.d.ts
|
|
1062
1245
|
export declare function getRequestString(request: Record<string, any> | any[], sign?: string, separator?: string, subKey?: string): string;
|
|
1246
|
+
|
|
1063
1247
|
// File: src/functions/getSearchExp.d.ts
|
|
1064
1248
|
export declare function getSearchExp(search: string, limit?: number): RegExp;
|
|
1249
|
+
|
|
1065
1250
|
// File: src/functions/getSeparatingSearchExp.d.ts
|
|
1066
1251
|
export declare function getSeparatingSearchExp(search: string | RegExp, limit?: number): RegExp;
|
|
1252
|
+
|
|
1067
1253
|
// File: src/functions/getStepPercent.d.ts
|
|
1068
1254
|
export declare function getStepPercent(min: number | undefined, max: number): number;
|
|
1255
|
+
|
|
1069
1256
|
// File: src/functions/getStepValue.d.ts
|
|
1070
1257
|
export declare function getStepValue(min: number | undefined, max: number): number;
|
|
1258
|
+
|
|
1071
1259
|
// File: src/functions/goScroll.d.ts
|
|
1072
1260
|
export declare function goScroll(selector: string, elementTo: HTMLElement | undefined, elementCenter?: HTMLElement): void;
|
|
1261
|
+
|
|
1073
1262
|
// File: src/functions/goScrollSmooth.d.ts
|
|
1074
1263
|
export declare function goScrollSmooth<E extends HTMLElement>(element: E, options?: ScrollIntoViewOptions, shift?: number): void;
|
|
1264
|
+
|
|
1075
1265
|
// File: src/functions/goScrollTo.d.ts
|
|
1076
1266
|
export declare function goScrollTo(element?: HTMLElement, elementTo?: HTMLElement, behavior?: ScrollBehavior): void;
|
|
1267
|
+
|
|
1077
1268
|
// File: src/functions/handleShare.d.ts
|
|
1078
1269
|
export declare function handleShare(data: ShareData): Promise<boolean>;
|
|
1270
|
+
|
|
1079
1271
|
// File: src/functions/inArray.d.ts
|
|
1080
1272
|
export declare function inArray<T>(array: T[], value: T): boolean;
|
|
1273
|
+
|
|
1081
1274
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1082
1275
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1276
|
+
|
|
1083
1277
|
// File: src/functions/intersectKey.d.ts
|
|
1084
1278
|
export declare function intersectKey<T, KT extends keyof T, C, KC extends keyof C>(data?: T, comparison?: C): Record<KT & KC, T[KT]>;
|
|
1279
|
+
|
|
1085
1280
|
// File: src/functions/isApiSuccess.d.ts
|
|
1086
1281
|
import { ApiData } from '../types/apiTypes';
|
|
1087
1282
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
1283
|
+
|
|
1088
1284
|
// File: src/functions/isArray.d.ts
|
|
1089
1285
|
export declare function isArray<T, R>(value: T): value is Extract<T, R[]>;
|
|
1286
|
+
|
|
1090
1287
|
// File: src/functions/isDifferent.d.ts
|
|
1091
1288
|
import { ObjectItem } from '../types/basicTypes';
|
|
1092
1289
|
export declare function isDifferent<T>(value: ObjectItem<T>, old: ObjectItem<T>): boolean;
|
|
1290
|
+
|
|
1093
1291
|
// File: src/functions/isDomData.d.ts
|
|
1094
1292
|
export declare function isDomData(): boolean;
|
|
1293
|
+
|
|
1095
1294
|
// File: src/functions/isDomRuntime.d.ts
|
|
1096
1295
|
export declare function isDomRuntime(): boolean;
|
|
1296
|
+
|
|
1097
1297
|
// File: src/functions/isElementVisible.d.ts
|
|
1098
1298
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1099
1299
|
export declare function isElementVisible<E extends ElementOrWindow>(elementSelectors?: ElementOrString<E>): boolean;
|
|
1300
|
+
|
|
1100
1301
|
// File: src/functions/isEnter.d.ts
|
|
1101
1302
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1303
|
+
|
|
1102
1304
|
// File: src/functions/isFilled.d.ts
|
|
1103
1305
|
import { EmptyValue } from '../types/basicTypes';
|
|
1104
1306
|
export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, EmptyValue>;
|
|
1307
|
+
|
|
1105
1308
|
// File: src/functions/isFloat.d.ts
|
|
1106
1309
|
export declare function isFloat(value: any): boolean;
|
|
1310
|
+
|
|
1107
1311
|
// File: src/functions/isFunction.d.ts
|
|
1108
1312
|
import { FunctionArgs } from '../types/basicTypes';
|
|
1109
1313
|
export declare function isFunction<T>(callback: T): callback is Extract<T, FunctionArgs<any, any>>;
|
|
1314
|
+
|
|
1110
1315
|
// File: src/functions/isInDom.d.ts
|
|
1111
1316
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1112
1317
|
export declare function isInDom<E extends ElementOrWindow>(element?: ElementOrString<E>): boolean;
|
|
1318
|
+
|
|
1113
1319
|
// File: src/functions/isInput.d.ts
|
|
1114
1320
|
export declare const isInput: (element: HTMLElement | EventTarget | null) => boolean;
|
|
1321
|
+
|
|
1115
1322
|
// File: src/functions/isIntegerBetween.d.ts
|
|
1116
1323
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1324
|
+
|
|
1117
1325
|
// File: src/functions/isNull.d.ts
|
|
1118
1326
|
import { Undefined } from '../types/basicTypes';
|
|
1119
1327
|
export declare function isNull<T>(value: T): value is Extract<T, Undefined>;
|
|
1328
|
+
|
|
1120
1329
|
// File: src/functions/isNumber.d.ts
|
|
1121
1330
|
export declare function isNumber(value: any): boolean;
|
|
1331
|
+
|
|
1122
1332
|
// File: src/functions/isObject.d.ts
|
|
1123
1333
|
export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
|
|
1334
|
+
|
|
1124
1335
|
// File: src/functions/isObjectNotArray.d.ts
|
|
1125
1336
|
export declare function isObjectNotArray<T>(value: T): value is Exclude<Extract<T, Record<any, any>>, any[] | undefined | null>;
|
|
1337
|
+
|
|
1126
1338
|
// File: src/functions/isOnLine.d.ts
|
|
1127
1339
|
export declare function isOnLine(): boolean;
|
|
1340
|
+
|
|
1128
1341
|
// File: src/functions/isSelected.d.ts
|
|
1129
1342
|
export declare function isSelected<T, S>(value: T, selected: T | T[] | S): boolean;
|
|
1343
|
+
|
|
1130
1344
|
// File: src/functions/isSelectedByList.d.ts
|
|
1131
1345
|
export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]): boolean;
|
|
1346
|
+
|
|
1132
1347
|
// File: src/functions/isShare.d.ts
|
|
1133
1348
|
export declare function isShare(): boolean;
|
|
1349
|
+
|
|
1134
1350
|
// File: src/functions/isString.d.ts
|
|
1135
1351
|
export declare function isString<T>(value: T): value is Extract<T, string>;
|
|
1352
|
+
|
|
1136
1353
|
// File: src/functions/isTab.d.ts
|
|
1137
1354
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1355
|
+
|
|
1138
1356
|
// File: src/functions/isWindow.d.ts
|
|
1139
1357
|
export declare function isWindow<E>(element: E): element is Extract<E, Window>;
|
|
1358
|
+
|
|
1140
1359
|
// File: src/functions/random.d.ts
|
|
1141
1360
|
export declare function random(min: number, max: number): number;
|
|
1361
|
+
|
|
1142
1362
|
// File: src/functions/removeCommonPrefix.d.ts
|
|
1143
1363
|
export declare function removeCommonPrefix(mainStr: string, prefix: string): string;
|
|
1364
|
+
|
|
1144
1365
|
// File: src/functions/replaceComponentName.d.ts
|
|
1145
1366
|
export declare const replaceComponentName: (text: string | undefined, name: string, componentName: string) => string | undefined;
|
|
1367
|
+
|
|
1146
1368
|
// File: src/functions/replaceRecursive.d.ts
|
|
1147
1369
|
import { ObjectItem, ObjectOrArray } from '../types/basicTypes';
|
|
1148
1370
|
export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?: ObjectOrArray<I>, isMerge?: boolean): ObjectItem<I>;
|
|
1371
|
+
|
|
1149
1372
|
// File: src/functions/replaceTemplate.d.ts
|
|
1150
1373
|
import { FunctionReturn } from '../types/basicTypes';
|
|
1151
1374
|
export declare function replaceTemplate(value: string, replaces: Record<string, string | FunctionReturn<string>>): string;
|
|
1375
|
+
|
|
1152
1376
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1153
|
-
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?:
|
|
1377
|
+
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: any, typeData?: string): string | undefined;
|
|
1378
|
+
|
|
1154
1379
|
// File: src/functions/secondToTime.d.ts
|
|
1155
1380
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1381
|
+
|
|
1156
1382
|
// File: src/functions/setElementItem.d.ts
|
|
1157
1383
|
import { ElementOrString, ElementOrWindow } from '../types/basicTypes';
|
|
1158
1384
|
export declare function setElementItem<E extends ElementOrWindow, K extends keyof E, V extends E[K] = E[K]>(element: ElementOrString<E>, index: K, value: V | Record<string, V>): E | undefined;
|
|
1385
|
+
|
|
1159
1386
|
// File: src/functions/setValues.d.ts
|
|
1160
|
-
export declare function setValues<T>(selected: T | T[] | undefined, value: any,
|
|
1161
|
-
|
|
1162
|
-
maxlength?: number | undefined;
|
|
1163
|
-
alwaysChange?: boolean | undefined;
|
|
1164
|
-
notEmpty?: boolean | undefined;
|
|
1165
|
-
}): T | T[] | undefined;
|
|
1387
|
+
export declare function setValues<T>(selected: T | T[] | undefined, value: any, options: any): T | T[] | undefined;
|
|
1388
|
+
|
|
1166
1389
|
// File: src/functions/sleep.d.ts
|
|
1167
1390
|
export declare function sleep(ms: number): Promise<void>;
|
|
1391
|
+
|
|
1168
1392
|
// File: src/functions/splice.d.ts
|
|
1169
1393
|
import { ObjectItem } from '../types/basicTypes';
|
|
1170
1394
|
export declare function splice<I>(array: ObjectItem<I>, replacement?: ObjectItem<I> | I, indexStart?: string): ObjectItem<I>;
|
|
1395
|
+
|
|
1171
1396
|
// File: src/functions/strFill.d.ts
|
|
1172
1397
|
export declare function strFill(value: string, count: number): string;
|
|
1398
|
+
|
|
1173
1399
|
// File: src/functions/strSplit.d.ts
|
|
1174
1400
|
export declare function strSplit(value: number | string, separator: string, limit?: number): string[];
|
|
1401
|
+
|
|
1175
1402
|
// File: src/functions/toArray.d.ts
|
|
1176
1403
|
export declare function toArray<T>(value: T): T extends any[] ? T : [T];
|
|
1404
|
+
|
|
1177
1405
|
// File: src/functions/toCamelCase.d.ts
|
|
1178
1406
|
export declare function toCamelCase(value: string): string;
|
|
1407
|
+
|
|
1179
1408
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1180
1409
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1410
|
+
|
|
1181
1411
|
// File: src/functions/toDate.d.ts
|
|
1182
1412
|
export declare function toDate<T extends Date | number | string>(value?: T): (T & Date) | Date;
|
|
1413
|
+
|
|
1183
1414
|
// File: src/functions/toKebabCase.d.ts
|
|
1184
1415
|
export declare function toKebabCase(value: string): string;
|
|
1416
|
+
|
|
1185
1417
|
// File: src/functions/toNumber.d.ts
|
|
1186
1418
|
import { NumberOrString } from '../types/basicTypes';
|
|
1187
1419
|
export declare function toNumber(value?: NumberOrString): number;
|
|
1420
|
+
|
|
1188
1421
|
// File: src/functions/toNumberByMax.d.ts
|
|
1189
1422
|
export declare function toNumberByMax(value: string | number, max?: string | number, formatting?: boolean, language?: string): string | number;
|
|
1423
|
+
|
|
1190
1424
|
// File: src/functions/toPercent.d.ts
|
|
1191
1425
|
export declare function toPercent(maxValue: number, value: number): number;
|
|
1426
|
+
|
|
1192
1427
|
// File: src/functions/toPercentBy100.d.ts
|
|
1193
1428
|
export declare function toPercentBy100(maxValue: number, value: number): number;
|
|
1429
|
+
|
|
1194
1430
|
// File: src/functions/toString.d.ts
|
|
1195
1431
|
export declare function toString<T>(value: T): string;
|
|
1432
|
+
|
|
1196
1433
|
// File: src/functions/transformation.d.ts
|
|
1197
1434
|
export declare function transformation(value: any, isFunction?: boolean): any;
|
|
1435
|
+
|
|
1198
1436
|
// File: src/functions/uint8ArrayToBase64.d.ts
|
|
1199
1437
|
export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
1438
|
+
|
|
1200
1439
|
// File: src/functions/uniqueArray.d.ts
|
|
1201
1440
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1441
|
+
|
|
1202
1442
|
// File: src/functions/writeClipboardData.d.ts
|
|
1203
1443
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1444
|
+
|
|
1204
1445
|
// File: src/library.d.ts
|
|
1205
1446
|
export * from './classes/Api';
|
|
1206
1447
|
export * from './classes/ApiCache';
|
|
@@ -1380,62 +1621,22 @@ export * from './types/geoTypes';
|
|
|
1380
1621
|
export * from './types/metaTypes';
|
|
1381
1622
|
export * from './types/searchTypes';
|
|
1382
1623
|
export * from './types/translateTypes';
|
|
1624
|
+
|
|
1383
1625
|
// File: src/media/errorCauseList.d.ts
|
|
1384
1626
|
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1385
1627
|
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1628
|
+
|
|
1386
1629
|
// File: src/types/apiTypes.d.ts
|
|
1387
|
-
export declare enum ApiMethodItem {
|
|
1388
|
-
delete = "DELETE",
|
|
1389
|
-
get = "GET",
|
|
1390
|
-
post = "POST",
|
|
1391
|
-
put = "PUT",
|
|
1392
|
-
patch = "PATCH"
|
|
1393
|
-
}
|
|
1630
|
+
export declare enum ApiMethodItem { delete = "DELETE", get = "GET", post = "POST", put = "PUT", patch = "PATCH" }
|
|
1394
1631
|
export type ApiCacheItem<T = any> = { value: T; age?: number; cacheAge: number; };
|
|
1395
1632
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1396
|
-
export type ApiConfig = {
|
|
1397
|
-
urlRoot?: string;
|
|
1398
|
-
origin?: string;
|
|
1399
|
-
headers?: ApiHeadersValue;
|
|
1400
|
-
requestDefault?: ApiDefaultValue;
|
|
1401
|
-
preparation?: (apiFetch: ApiFetch) => Promise<void>;
|
|
1402
|
-
end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
|
|
1403
|
-
timeout?: number;
|
|
1404
|
-
devMode?: boolean;
|
|
1405
|
-
};
|
|
1633
|
+
export type ApiConfig = { urlRoot?: string; origin?: string; headers?: ApiHeadersValue; requestDefault?: ApiDefaultValue; preparation?: (apiFetch: ApiFetch) => Promise<void>; end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>; timeout?: number; devMode?: boolean; };
|
|
1406
1634
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1407
1635
|
export type ApiDataValidation = { status?: ApiStatusType; code?: string | number; message?: string; error?: { code?: string | number; message?: string; }; };
|
|
1408
1636
|
export type ApiDataItem<T = any> = T & ApiDataValidation & { data?: T; success?: boolean; statusObject?: ApiStatusItem; errorObject?: ApiErrorItem; };
|
|
1409
1637
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1410
1638
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1411
|
-
export type ApiFetch = {
|
|
1412
|
-
api?: boolean;
|
|
1413
|
-
path?: string;
|
|
1414
|
-
pathFull?: string;
|
|
1415
|
-
method?: ApiMethod;
|
|
1416
|
-
request?: FormData | Record<string, any> | string;
|
|
1417
|
-
auth?: boolean;
|
|
1418
|
-
headers?: Record<string, string> | null;
|
|
1419
|
-
type?: string;
|
|
1420
|
-
toData?: boolean;
|
|
1421
|
-
global?: boolean;
|
|
1422
|
-
devMode?: boolean;
|
|
1423
|
-
hideError?: boolean;
|
|
1424
|
-
hideLoading?: boolean;
|
|
1425
|
-
retry?: number;
|
|
1426
|
-
retryDelay?: number;
|
|
1427
|
-
queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
|
|
1428
|
-
globalPreparation?: boolean;
|
|
1429
|
-
globalEnd?: boolean;
|
|
1430
|
-
init?: RequestInit;
|
|
1431
|
-
initError?: boolean;
|
|
1432
|
-
timeout?: number;
|
|
1433
|
-
controller?: AbortController;
|
|
1434
|
-
cache?: number;
|
|
1435
|
-
enableClientCache?: boolean;
|
|
1436
|
-
cacheId?: number | string;
|
|
1437
|
-
endResetLimit?: number;
|
|
1438
|
-
};
|
|
1639
|
+
export type ApiFetch = { api?: boolean; path?: string; pathFull?: string; method?: ApiMethod; request?: FormData | Record<string, any> | string; auth?: boolean; headers?: Record<string, string> | null; type?: string; toData?: boolean; global?: boolean; devMode?: boolean; hideError?: boolean; hideLoading?: boolean; retry?: number; retryDelay?: number; queryReturn?: (query: Response) => Promise<any | ApiDataValidation>; globalPreparation?: boolean; globalEnd?: boolean; init?: RequestInit; initError?: boolean; timeout?: number; controller?: AbortController; cache?: number; enableClientCache?: boolean; cacheId?: number | string; endResetLimit?: number; };
|
|
1439
1640
|
export type ApiHydrationItem = { path: string; method: ApiMethod; request?: ApiFetch['request']; response: any; };
|
|
1440
1641
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1441
1642
|
export type ApiErrorStorageItem = Record<string, any> & { url: string | RegExp; method: ApiMethodItem; code?: string; status?: number; validation?: (response: Response) => boolean; message?: string | ((response?: Response) => string); };
|
|
@@ -1445,6 +1646,7 @@ export type ApiPreparationEnd = { reset?: boolean; data?: any; };
|
|
|
1445
1646
|
export type ApiResponseItem = { path: string | RegExp; method: ApiMethod; request?: ApiFetch['request'] | '*any'; response: any | ((request?: ApiFetch['request']) => any); disable?: any; isForGlobal?: boolean; lag?: any; };
|
|
1446
1647
|
export type ApiStatusItem = { status?: number; statusText?: string; error?: string; lastResponse?: any; lastStatus?: ApiStatusType; lastCode?: string; lastMessage?: string; };
|
|
1447
1648
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1649
|
+
|
|
1448
1650
|
// File: src/types/basicTypes.d.ts
|
|
1449
1651
|
export type Undefined = undefined | null;
|
|
1450
1652
|
export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
|
|
@@ -1470,6 +1672,7 @@ export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
|
1470
1672
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1471
1673
|
export type EventActivityItem<E extends ElementOrWindow> = { element: E | undefined; type: string; listener?: (event: any | Event) => void; observer?: ResizeObserver; };
|
|
1472
1674
|
export type ImageCoordinator = { x: number; y: number; };
|
|
1675
|
+
|
|
1473
1676
|
// File: src/types/errorCenter.d.ts
|
|
1474
1677
|
export type ErrorCenterGroup = string | undefined;
|
|
1475
1678
|
export type ErrorCenterCauseItem<D = any> = { group?: ErrorCenterGroup; code: string; priority?: number; label?: string; message?: string; details?: D; };
|
|
@@ -1477,38 +1680,26 @@ export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
|
1477
1680
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1478
1681
|
export type ErrorCenterHandlerItem = { group?: ErrorCenterGroup; handlers: ErrorCenterHandlerCallback[]; };
|
|
1479
1682
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1683
|
+
|
|
1480
1684
|
// File: src/types/formattersTypes.d.ts
|
|
1481
1685
|
import { ArrayToItem } from './basicTypes';
|
|
1482
1686
|
import { GeoDate } from './geoTypes';
|
|
1483
|
-
export declare enum FormattersType {
|
|
1484
|
-
currency = "currency",
|
|
1485
|
-
date = "date",
|
|
1486
|
-
name = "name",
|
|
1487
|
-
number = "number",
|
|
1488
|
-
plural = "plural",
|
|
1489
|
-
unit = "unit"
|
|
1490
|
-
}
|
|
1687
|
+
export declare enum FormattersType { currency = "currency", date = "date", name = "name", number = "number", plural = "plural", unit = "unit" }
|
|
1491
1688
|
export type FormattersOptionsCurrency = { currencyPropName?: string; options?: string | Intl.NumberFormatOptions; numberOnly?: boolean; };
|
|
1492
1689
|
export type FormattersOptionsDate = { type?: GeoDate; options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions; hour24?: boolean; };
|
|
1493
1690
|
export type FormattersOptionsName = { lastPropName?: string; firstPropName?: string; surname?: string; short?: boolean; };
|
|
1494
1691
|
export type FormattersOptionsNumber = { options?: Intl.NumberFormatOptions; };
|
|
1495
1692
|
export type FormattersOptionsPlural = { words: string; options?: Intl.PluralRulesOptions; optionsNumber?: Intl.NumberFormatOptions; };
|
|
1496
1693
|
export type FormattersOptionsUnit = { unit: string | Intl.NumberFormatOptions; };
|
|
1497
|
-
export type FormattersOptionsInformation<Type extends FormattersType> =
|
|
1694
|
+
export type FormattersOptionsInformation<Type extends FormattersType> = Record<string, any>;
|
|
1498
1695
|
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = { type?: Type; transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R; options?: FormattersOptionsInformation<Type>; };
|
|
1499
1696
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1500
1697
|
export type FormattersListItem = Record<string, any>;
|
|
1501
1698
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1502
|
-
export type FormattersCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<FormattersCapitalize<Rest>>}` : K;
|
|
1503
|
-
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1504
|
-
export type FormattersKey<K, A extends string = 'Format'> = K extends string ? `${FormattersCapitalize<K>}${A}` : never;
|
|
1505
|
-
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = { [K in keyof T | FormattersKey<KT[number]>]: K extends keyof T ? T[K] : string; };
|
|
1506
|
-
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = FormattersDataItem<T, K>[];
|
|
1507
|
-
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersDataItem<T, FormattersColumns<O>>;
|
|
1508
|
-
export type FormattersListColumns<T extends FormattersListItem, O extends FormattersOptionsList> = FormattersListFormat<T, FormattersColumns<O>>;
|
|
1509
1699
|
export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
|
|
1510
1700
|
export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
|
|
1511
|
-
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> =
|
|
1701
|
+
export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = any;
|
|
1702
|
+
|
|
1512
1703
|
// File: src/types/geoTypes.d.ts
|
|
1513
1704
|
export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
|
|
1514
1705
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
@@ -1521,36 +1712,31 @@ export interface GeoFlagNational extends GeoFlagItem { description: string; nati
|
|
|
1521
1712
|
export interface GeoPhoneValue { phone: number; within: number; mask: string[]; value: string; }
|
|
1522
1713
|
export interface GeoPhoneMap { items: GeoPhoneValue[]; info: GeoPhoneValue | undefined; value: string | undefined; mask: string[]; maskFull: string[]; next: Record<string, GeoPhoneMap>; }
|
|
1523
1714
|
export interface GeoPhoneMapInfo { item?: GeoPhoneMap; phone?: string; }
|
|
1715
|
+
|
|
1524
1716
|
// File: src/types/metaTypes.d.ts
|
|
1525
1717
|
export declare enum MetaTag { title = "title", description = "description", keywords = "keywords", canonical = "canonical", robots = "robots", author = "author" }
|
|
1526
1718
|
export declare enum MetaRobots { indexFollow = "index, follow", noIndexFollow = "noindex, follow", indexNoFollow = "index, nofollow", noIndexNoFollow = "noindex, nofollow", noArchive = "noarchive", noSnippet = "nosnippet", noImageIndex = "noimageindex", images = "images", noTranslate = "notranslate", noPreview = "nopreview", textonly = "textonly", noIndexSubpages = "noindex, noarchive", none = "none" }
|
|
1527
|
-
export declare enum MetaOpenGraphTag { title = "og:title", type = "og:type", url = "og:url", image = "og:image", description = "og:description", locale = "og:locale", siteName = "og:site_name"
|
|
1528
|
-
export declare enum MetaOpenGraphType { website = "website", article = "article"
|
|
1529
|
-
export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder"
|
|
1719
|
+
export declare enum MetaOpenGraphTag { title = "og:title", type = "og:type", url = "og:url", image = "og:image", description = "og:description", locale = "og:locale", siteName = "og:site_name" }
|
|
1720
|
+
export declare enum MetaOpenGraphType { website = "website", article = "article" }
|
|
1721
|
+
export declare enum MetaOpenGraphAvailability { inStock = "in stock", outOfStock = "out of stock", preorder = "preorder" }
|
|
1530
1722
|
export declare enum MetaOpenGraphCondition { new = "new", used = "used", refurbished = "refurbished" }
|
|
1531
1723
|
export declare enum MetaOpenGraphAge { newborn = "newborn", infant = "infant", toddler = "toddler", kids = "kids", adult = "adult" }
|
|
1532
1724
|
export declare enum MetaOpenGraphGender { female = "female", male = "male", unisex = "unisex" }
|
|
1533
|
-
export declare enum MetaTwitterTag { card = "twitter:card", site = "twitter:site", creator = "twitter:creator", url = "twitter:url", title = "twitter:title", description = "twitter:description", image = "twitter:image"
|
|
1534
|
-
export declare enum MetaTwitterCard { summary = "summary", summaryLargeImage = "summary_large_image", app = "app", player = "player"
|
|
1725
|
+
export declare enum MetaTwitterTag { card = "twitter:card", site = "twitter:site", creator = "twitter:creator", url = "twitter:url", title = "twitter:title", description = "twitter:description", image = "twitter:image" }
|
|
1726
|
+
export declare enum MetaTwitterCard { summary = "summary", summaryLargeImage = "summary_large_image", app = "app", player = "player" }
|
|
1727
|
+
|
|
1535
1728
|
// File: src/types/searchTypes.d.ts
|
|
1536
1729
|
export type SearchItem = Record<string, any>;
|
|
1537
|
-
export type
|
|
1538
|
-
export type SearchColumn<T extends SearchItem> = { [K in keyof T]-?: NonNullable<T[K]> extends object ? K | SearchColumnPath<K, keyof NonNullable<T[K]>> : K; }[keyof T];
|
|
1539
|
-
export type SearchColumns<T extends SearchItem> = (SearchColumn<T> & string)[];
|
|
1540
|
-
export type SearchFormatCapitalize<K extends string> = K extends `${infer First}.${infer Rest}` ? `${First}${Capitalize<SearchFormatCapitalize<Rest>>}` : K;
|
|
1541
|
-
export type SearchFormatKey<K> = K extends string ? `${SearchFormatCapitalize<K>}Search` : never;
|
|
1542
|
-
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = { [K in keyof T | SearchFormatKey<KT[number]>]: K extends keyof T ? T[K] : string; } & { searchActive?: boolean; };
|
|
1543
|
-
export type SearchFormatList<T extends SearchItem, K extends string[]> = SearchFormatItem<T, K>[];
|
|
1544
|
-
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
1730
|
+
export type SearchColumns<T extends SearchItem> = string[];
|
|
1545
1731
|
export type SearchOptions = { limit?: number; returnEverything?: boolean; delay?: number; findExactMatch?: boolean; classSearchName?: string; };
|
|
1546
1732
|
export type SearchCacheItem<T extends SearchItem> = { item: T; value: string; };
|
|
1547
1733
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1548
1734
|
export type HighlightMatchItem = { text: string; isMatch: boolean; };
|
|
1735
|
+
|
|
1549
1736
|
// File: src/types/translateTypes.d.ts
|
|
1550
1737
|
export type TranslateConfig = { url?: string; propsName?: string; readApi?: boolean; };
|
|
1551
1738
|
export type TranslateCode = string | string[];
|
|
1552
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
1553
|
-
export type TranslateItemOrList<T extends TranslateCode> = T extends string[] ? TranslateList<T> : string;
|
|
1739
|
+
export type TranslateList<T extends TranslateCode[]> = Record<string, string>;
|
|
1554
1740
|
export type TranslateDataFileList = Record<string, string>;
|
|
1555
1741
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|
|
1556
1742
|
export type TranslateDataFile = Record<string, TranslateDataFileItem>;
|