@dxtmisha/functional-basic 1.3.5 → 1.3.7
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 +10 -0
- package/ai-description.txt +21 -7
- package/ai-types.txt +686 -103
- package/dist/library.js +633 -624
- package/dist/src/classes/Geo.d.ts +7 -0
- package/dist/src/classes/GeoInstance.d.ts +33 -0
- package/package.json +1 -1
package/ai-types.txt
CHANGED
|
@@ -64,7 +64,7 @@ import { ApiStatus } from './ApiStatus';
|
|
|
64
64
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
65
65
|
import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
66
66
|
/**
|
|
67
|
-
* Class for processing API
|
|
67
|
+
* Class for processing API response data.
|
|
68
68
|
*/
|
|
69
69
|
export declare class ApiDataReturn<T = any> {
|
|
70
70
|
constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
|
|
@@ -87,19 +87,19 @@ export declare class ApiDefault {
|
|
|
87
87
|
// File: src/classes/ApiError.d.ts
|
|
88
88
|
import { ApiErrorItem } from './ApiErrorItem';
|
|
89
89
|
import { ApiErrorStorage } from './ApiErrorStorage';
|
|
90
|
-
import { ApiMethodItem } from '../types/apiTypes';
|
|
90
|
+
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Manager for API error storage and items.
|
|
93
93
|
*/
|
|
94
94
|
export declare class ApiError {
|
|
95
95
|
static getStorage(): ApiErrorStorage;
|
|
96
|
-
static add(item:
|
|
96
|
+
static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
|
|
97
97
|
static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
|
|
98
98
|
}
|
|
99
99
|
// File: src/classes/ApiErrorItem.d.ts
|
|
100
100
|
import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
|
|
101
101
|
/**
|
|
102
|
-
* Class for
|
|
102
|
+
* Class for API error response extraction.
|
|
103
103
|
*/
|
|
104
104
|
export declare class ApiErrorItem {
|
|
105
105
|
constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
|
|
@@ -117,7 +117,7 @@ import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../type
|
|
|
117
117
|
*/
|
|
118
118
|
export declare class ApiErrorStorage {
|
|
119
119
|
find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
|
|
120
|
-
add(item:
|
|
120
|
+
add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
|
|
121
121
|
}
|
|
122
122
|
// File: src/classes/ApiHeaders.d.ts
|
|
123
123
|
import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
|
|
@@ -133,7 +133,7 @@ export declare class ApiHeaders {
|
|
|
133
133
|
import { ApiResponse } from './ApiResponse';
|
|
134
134
|
import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
|
|
135
135
|
/**
|
|
136
|
-
* Class for SSR
|
|
136
|
+
* Class for collecting API data for SSR hydration.
|
|
137
137
|
*/
|
|
138
138
|
export declare class ApiHydration {
|
|
139
139
|
initResponse(response: ApiResponse): void;
|
|
@@ -144,6 +144,7 @@ export declare class ApiHydration {
|
|
|
144
144
|
import { LoadingInstance } from './LoadingInstance';
|
|
145
145
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
146
146
|
import { ApiDefault } from './ApiDefault';
|
|
147
|
+
import { ApiErrorItem } from './ApiErrorItem';
|
|
147
148
|
import { ApiHeaders } from './ApiHeaders';
|
|
148
149
|
import { ApiHydration } from './ApiHydration';
|
|
149
150
|
import { ApiPreparation } from './ApiPreparation';
|
|
@@ -161,7 +162,7 @@ export type ApiInstanceOptions = {
|
|
|
161
162
|
hydrationClass?: typeof ApiHydration;
|
|
162
163
|
};
|
|
163
164
|
/**
|
|
164
|
-
* Core
|
|
165
|
+
* Core class for HTTP requests via Fetch API.
|
|
165
166
|
*/
|
|
166
167
|
export declare class ApiInstance {
|
|
167
168
|
constructor(url?: string, options?: ApiInstanceOptions);
|
|
@@ -191,7 +192,7 @@ export declare class ApiInstance {
|
|
|
191
192
|
// File: src/classes/ApiPreparation.d.ts
|
|
192
193
|
import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
|
|
193
194
|
/**
|
|
194
|
-
* Class for
|
|
195
|
+
* Class for preparing requests.
|
|
195
196
|
*/
|
|
196
197
|
export declare class ApiPreparation {
|
|
197
198
|
make(active: boolean, apiFetch: ApiFetch): Promise<void>;
|
|
@@ -203,7 +204,7 @@ export declare class ApiPreparation {
|
|
|
203
204
|
import { ApiDefault } from './ApiDefault';
|
|
204
205
|
import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
|
|
205
206
|
/**
|
|
206
|
-
* Class for API
|
|
207
|
+
* Class for API response handling.
|
|
207
208
|
*/
|
|
208
209
|
export declare class ApiResponse {
|
|
209
210
|
constructor(requestDefault: ApiDefault);
|
|
@@ -217,7 +218,7 @@ export declare class ApiResponse {
|
|
|
217
218
|
// File: src/classes/ApiStatus.d.ts
|
|
218
219
|
import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
|
|
219
220
|
/**
|
|
220
|
-
* Class for API status management.
|
|
221
|
+
* Class for API request status management.
|
|
221
222
|
*/
|
|
222
223
|
export declare class ApiStatus {
|
|
223
224
|
get(): ApiStatusItem | undefined;
|
|
@@ -239,7 +240,7 @@ export declare class ApiStatus {
|
|
|
239
240
|
// File: src/classes/BroadcastMessage.d.ts
|
|
240
241
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
241
242
|
/**
|
|
242
|
-
* Class for BroadcastChannel
|
|
243
|
+
* Class for BroadcastChannel messaging.
|
|
243
244
|
*/
|
|
244
245
|
export declare class BroadcastMessage<Message = any> {
|
|
245
246
|
constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
|
|
@@ -251,7 +252,7 @@ export declare class BroadcastMessage<Message = any> {
|
|
|
251
252
|
}
|
|
252
253
|
// File: src/classes/Cache.d.ts
|
|
253
254
|
/**
|
|
254
|
-
* @deprecated
|
|
255
|
+
* @deprecated Use alternative caching mechanisms.
|
|
255
256
|
*/
|
|
256
257
|
export declare class Cache {
|
|
257
258
|
get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
@@ -259,7 +260,7 @@ export declare class Cache {
|
|
|
259
260
|
}
|
|
260
261
|
// File: src/classes/CacheItem.d.ts
|
|
261
262
|
/**
|
|
262
|
-
* @deprecated
|
|
263
|
+
* @deprecated Use alternative caching mechanisms.
|
|
263
264
|
*/
|
|
264
265
|
export declare class CacheItem<T> {
|
|
265
266
|
constructor(callback: () => T);
|
|
@@ -268,8 +269,9 @@ export declare class CacheItem<T> {
|
|
|
268
269
|
getCacheAsync(comparison: any[]): Promise<T>;
|
|
269
270
|
}
|
|
270
271
|
// File: src/classes/CacheStatic.d.ts
|
|
272
|
+
import { Cache } from './Cache';
|
|
271
273
|
/**
|
|
272
|
-
* @deprecated
|
|
274
|
+
* @deprecated Use alternative caching mechanisms.
|
|
273
275
|
*/
|
|
274
276
|
export declare class CacheStatic {
|
|
275
277
|
static get<T>(name: string, callback: () => T, comparison?: any[]): T;
|
|
@@ -278,7 +280,7 @@ export declare class CacheStatic {
|
|
|
278
280
|
// File: src/classes/Cookie.d.ts
|
|
279
281
|
import { CookieOptions } from './CookieStorage';
|
|
280
282
|
/**
|
|
281
|
-
* Cookie
|
|
283
|
+
* Class for Cookie management.
|
|
282
284
|
*/
|
|
283
285
|
export declare class Cookie<T> {
|
|
284
286
|
static getInstance<T>(name: string): Cookie<T>;
|
|
@@ -290,7 +292,7 @@ export declare class Cookie<T> {
|
|
|
290
292
|
// File: src/classes/CookieBlock.d.ts
|
|
291
293
|
import { CookieBlockInstance } from './CookieBlockInstance';
|
|
292
294
|
/**
|
|
293
|
-
*
|
|
295
|
+
* Class for cookie access status.
|
|
294
296
|
*/
|
|
295
297
|
export declare class CookieBlock {
|
|
296
298
|
static getItem(): CookieBlockInstance;
|
|
@@ -315,7 +317,7 @@ export type CookieOptions = {
|
|
|
315
317
|
arguments?: string[] | Record<string, string | number | boolean>;
|
|
316
318
|
};
|
|
317
319
|
/**
|
|
318
|
-
* Cookie storage
|
|
320
|
+
* Class for Cookie storage management.
|
|
319
321
|
*/
|
|
320
322
|
export declare class CookieStorage {
|
|
321
323
|
static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
|
|
@@ -328,7 +330,7 @@ export declare class CookieStorage {
|
|
|
328
330
|
// File: src/classes/DataStorage.d.ts
|
|
329
331
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
330
332
|
/**
|
|
331
|
-
*
|
|
333
|
+
* Local/Session Storage manager.
|
|
332
334
|
*/
|
|
333
335
|
export declare class DataStorage<T> {
|
|
334
336
|
static setPrefix(newPrefix: string): void;
|
|
@@ -343,7 +345,7 @@ import { GeoIntl } from './GeoIntl';
|
|
|
343
345
|
import { NumberOrStringOrDate } from '../types/basicTypes';
|
|
344
346
|
import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
|
|
345
347
|
/**
|
|
346
|
-
*
|
|
348
|
+
* Class for date manipulation and formatting.
|
|
347
349
|
*/
|
|
348
350
|
export declare class Datetime {
|
|
349
351
|
constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
|
|
@@ -422,7 +424,7 @@ export declare class Datetime {
|
|
|
422
424
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
423
425
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
424
426
|
/**
|
|
425
|
-
*
|
|
427
|
+
* Global Error center.
|
|
426
428
|
*/
|
|
427
429
|
export declare class ErrorCenter {
|
|
428
430
|
static getItem(): ErrorCenterInstance;
|
|
@@ -435,11 +437,14 @@ export declare class ErrorCenter {
|
|
|
435
437
|
static on(cause: ErrorCenterCauseItem): void;
|
|
436
438
|
}
|
|
437
439
|
// File: src/classes/ErrorCenterHandler.d.ts
|
|
438
|
-
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
440
|
+
import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
441
|
+
/**
|
|
442
|
+
* Error handler manager.
|
|
443
|
+
*/
|
|
439
444
|
export declare class ErrorCenterHandler {
|
|
440
445
|
constructor(handlers?: ErrorCenterHandlerList);
|
|
441
446
|
has(group: ErrorCenterGroup): boolean;
|
|
442
|
-
get(group: ErrorCenterGroup):
|
|
447
|
+
get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
|
|
443
448
|
add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
|
|
444
449
|
addList(handlers: ErrorCenterHandlerList): this;
|
|
445
450
|
on(cause: ErrorCenterCauseItem): this;
|
|
@@ -447,6 +452,9 @@ export declare class ErrorCenterHandler {
|
|
|
447
452
|
// File: src/classes/ErrorCenterInstance.d.ts
|
|
448
453
|
import { ErrorCenterHandler } from './ErrorCenterHandler';
|
|
449
454
|
import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
|
|
455
|
+
/**
|
|
456
|
+
* Error center instance.
|
|
457
|
+
*/
|
|
450
458
|
export declare class ErrorCenterInstance {
|
|
451
459
|
constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
|
|
452
460
|
has(code: string, group?: string): boolean;
|
|
@@ -458,9 +466,9 @@ export declare class ErrorCenterInstance {
|
|
|
458
466
|
on(cause: ErrorCenterCauseItem): this;
|
|
459
467
|
}
|
|
460
468
|
// File: src/classes/EventItem.d.ts
|
|
461
|
-
import { ElementOrString, ElementOrWindow,
|
|
469
|
+
import { ElementOrString, ElementOrWindow, EventOptions, EventListenerDetail } from '../types/basicTypes';
|
|
462
470
|
/**
|
|
463
|
-
* Event
|
|
471
|
+
* Advanced Event Listener wrapper.
|
|
464
472
|
*/
|
|
465
473
|
export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
|
|
466
474
|
constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
|
|
@@ -479,9 +487,9 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
|
|
|
479
487
|
reset(): this;
|
|
480
488
|
}
|
|
481
489
|
// File: src/classes/Formatters.d.ts
|
|
482
|
-
import { FormattersOptionsList, FormattersListProp, FormattersItemProp,
|
|
490
|
+
import { FormattersType, FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
|
|
483
491
|
/**
|
|
484
|
-
*
|
|
492
|
+
* Data formatting utility.
|
|
485
493
|
*/
|
|
486
494
|
export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
|
|
487
495
|
constructor(options: Options, list?: List | undefined);
|
|
@@ -497,7 +505,7 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
|
|
|
497
505
|
import { GeoInstance } from './GeoInstance';
|
|
498
506
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
499
507
|
/**
|
|
500
|
-
*
|
|
508
|
+
* Static geographic data manager.
|
|
501
509
|
*/
|
|
502
510
|
export declare class Geo {
|
|
503
511
|
static getObject(): GeoInstance;
|
|
@@ -519,12 +527,13 @@ export declare class Geo {
|
|
|
519
527
|
static toStandard(item: GeoItem): string;
|
|
520
528
|
static set(code: string, save?: boolean): void;
|
|
521
529
|
static setTimezone(timezone: number): void;
|
|
530
|
+
static setValueDefault(code?: string): void;
|
|
522
531
|
}
|
|
523
532
|
// File: src/classes/GeoFlag.d.ts
|
|
524
533
|
import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
|
|
525
534
|
export declare const GEO_FLAG_ICON_NAME = "f";
|
|
526
535
|
/**
|
|
527
|
-
*
|
|
536
|
+
* Geographic flags and naming manager.
|
|
528
537
|
*/
|
|
529
538
|
export declare class GeoFlag {
|
|
530
539
|
static flags: Record<string, string>;
|
|
@@ -538,6 +547,10 @@ export declare class GeoFlag {
|
|
|
538
547
|
}
|
|
539
548
|
// File: src/classes/GeoInstance.d.ts
|
|
540
549
|
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
550
|
+
export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
|
|
551
|
+
/**
|
|
552
|
+
* Geographic data instance.
|
|
553
|
+
*/
|
|
541
554
|
export declare class GeoInstance {
|
|
542
555
|
constructor();
|
|
543
556
|
get(): GeoItemFull;
|
|
@@ -558,13 +571,14 @@ export declare class GeoInstance {
|
|
|
558
571
|
toStandard(item: GeoItem): string;
|
|
559
572
|
set(code: string, save?: boolean): void;
|
|
560
573
|
setTimezone(timezone: number): void;
|
|
574
|
+
setValueDefault(code?: string): void;
|
|
561
575
|
}
|
|
562
576
|
// File: src/classes/GeoIntl.d.ts
|
|
563
577
|
import { ErrorCenterInstance } from './ErrorCenterInstance';
|
|
564
578
|
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
565
579
|
import { GeoDate } from '../types/geoTypes';
|
|
566
580
|
/**
|
|
567
|
-
* Internationalization
|
|
581
|
+
* Internationalization wrapper.
|
|
568
582
|
*/
|
|
569
583
|
export declare class GeoIntl {
|
|
570
584
|
static isItem(code?: string): boolean;
|
|
@@ -599,6 +613,9 @@ export declare class GeoIntl {
|
|
|
599
613
|
}
|
|
600
614
|
// File: src/classes/GeoPhone.d.ts
|
|
601
615
|
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
616
|
+
/**
|
|
617
|
+
* Phone mask processing.
|
|
618
|
+
*/
|
|
602
619
|
export declare class GeoPhone {
|
|
603
620
|
static get(code: string): GeoPhoneValue | undefined;
|
|
604
621
|
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
@@ -609,6 +626,9 @@ export declare class GeoPhone {
|
|
|
609
626
|
static removeZero(phone: string): string;
|
|
610
627
|
}
|
|
611
628
|
// File: src/classes/Global.d.ts
|
|
629
|
+
/**
|
|
630
|
+
* Application global state.
|
|
631
|
+
*/
|
|
612
632
|
export declare class Global {
|
|
613
633
|
static getItem(): Record<string, any>;
|
|
614
634
|
static get<R = any>(name: string): R;
|
|
@@ -616,6 +636,9 @@ export declare class Global {
|
|
|
616
636
|
}
|
|
617
637
|
// File: src/classes/Hash.d.ts
|
|
618
638
|
import { HashInstance } from './HashInstance';
|
|
639
|
+
/**
|
|
640
|
+
* URL Hash management.
|
|
641
|
+
*/
|
|
619
642
|
export declare class Hash {
|
|
620
643
|
static getItem(): HashInstance;
|
|
621
644
|
static get<T>(name: string, defaultValue?: T | (() => T)): T;
|
|
@@ -634,7 +657,13 @@ export declare class HashInstance {
|
|
|
634
657
|
}
|
|
635
658
|
// File: src/classes/Icons.d.ts
|
|
636
659
|
export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
|
|
637
|
-
export type IconsConfig = {
|
|
660
|
+
export type IconsConfig = {
|
|
661
|
+
url?: string;
|
|
662
|
+
list?: Record<string, IconsItem>;
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
* Icons registry and loader.
|
|
666
|
+
*/
|
|
638
667
|
export declare class Icons {
|
|
639
668
|
static is(index: string): boolean;
|
|
640
669
|
static get(index: string, url?: string, wait?: number): Promise<string>;
|
|
@@ -651,6 +680,9 @@ export declare class Icons {
|
|
|
651
680
|
// File: src/classes/Loading.d.ts
|
|
652
681
|
import { LoadingInstance } from './LoadingInstance';
|
|
653
682
|
import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
|
|
683
|
+
/**
|
|
684
|
+
* Global loading state.
|
|
685
|
+
*/
|
|
654
686
|
export declare class Loading {
|
|
655
687
|
static is(): boolean;
|
|
656
688
|
static get(): number;
|
|
@@ -677,6 +709,9 @@ import { MetaManager } from './MetaManager';
|
|
|
677
709
|
import { MetaOg } from './MetaOg';
|
|
678
710
|
import { MetaTwitter } from './MetaTwitter';
|
|
679
711
|
import { MetaRobots, MetaTag } from '../types/metaTypes';
|
|
712
|
+
/**
|
|
713
|
+
* Unified meta tag management.
|
|
714
|
+
*/
|
|
680
715
|
export declare class Meta extends MetaManager<MetaTag[]> {
|
|
681
716
|
constructor();
|
|
682
717
|
getOg(): MetaOg;
|
|
@@ -704,7 +739,7 @@ export declare class Meta extends MetaManager<MetaTag[]> {
|
|
|
704
739
|
htmlTitle(): string;
|
|
705
740
|
}
|
|
706
741
|
// File: src/classes/MetaManager.d.ts
|
|
707
|
-
export declare class MetaManager<T extends readonly string[], Key extends any = any> {
|
|
742
|
+
export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
|
|
708
743
|
constructor(listMeta: T, isProperty?: boolean);
|
|
709
744
|
getListMeta(): T;
|
|
710
745
|
get(name: Key): string;
|
|
@@ -716,6 +751,9 @@ export declare class MetaManager<T extends readonly string[], Key extends any =
|
|
|
716
751
|
// File: src/classes/MetaOg.d.ts
|
|
717
752
|
import { MetaManager } from './MetaManager';
|
|
718
753
|
import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
|
|
754
|
+
/**
|
|
755
|
+
* Open Graph meta manager.
|
|
756
|
+
*/
|
|
719
757
|
export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
|
|
720
758
|
constructor();
|
|
721
759
|
getTitle(): string;
|
|
@@ -767,6 +805,9 @@ export declare class MetaStatic {
|
|
|
767
805
|
// File: src/classes/MetaTwitter.d.ts
|
|
768
806
|
import { MetaManager } from './MetaManager';
|
|
769
807
|
import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
|
|
808
|
+
/**
|
|
809
|
+
* Twitter Card manager.
|
|
810
|
+
*/
|
|
770
811
|
export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
771
812
|
constructor();
|
|
772
813
|
getCard(): MetaTwitterCard;
|
|
@@ -786,6 +827,9 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
|
|
|
786
827
|
}
|
|
787
828
|
// File: src/classes/ResumableTimer.d.ts
|
|
788
829
|
import { FunctionVoid } from '../types/basicTypes';
|
|
830
|
+
/**
|
|
831
|
+
* Pausable timer.
|
|
832
|
+
*/
|
|
789
833
|
export declare class ResumableTimer {
|
|
790
834
|
constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
|
|
791
835
|
resume(): this;
|
|
@@ -804,8 +848,12 @@ export declare class ScrollbarWidth {
|
|
|
804
848
|
// File: src/classes/SearchList.d.ts
|
|
805
849
|
import { SearchListData } from './SearchListData';
|
|
806
850
|
import { SearchListItem } from './SearchListItem';
|
|
851
|
+
import { SearchListMatcher } from './SearchListMatcher';
|
|
807
852
|
import { SearchListOptions } from './SearchListOptions';
|
|
808
853
|
import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
|
|
854
|
+
/**
|
|
855
|
+
* Searchable list manager.
|
|
856
|
+
*/
|
|
809
857
|
export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
|
|
810
858
|
constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
|
|
811
859
|
getData(): SearchListData<T, K>;
|
|
@@ -823,7 +871,7 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
|
|
|
823
871
|
// File: src/classes/SearchListData.d.ts
|
|
824
872
|
import { SearchListItem } from './SearchListItem';
|
|
825
873
|
import { SearchListOptions } from './SearchListOptions';
|
|
826
|
-
import {
|
|
874
|
+
import { SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
|
|
827
875
|
export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
|
|
828
876
|
constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
|
|
829
877
|
is(): boolean;
|
|
@@ -832,8 +880,8 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
|
|
|
832
880
|
getColumns(): K | undefined;
|
|
833
881
|
setList(list: SearchListValue<T>): this;
|
|
834
882
|
setColumns(columns?: SearchColumns<T>): this;
|
|
835
|
-
findCacheItem(item: T):
|
|
836
|
-
forEach(callback: (item:
|
|
883
|
+
findCacheItem(item: T): any | undefined;
|
|
884
|
+
forEach(callback: (item: any, value: any) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
|
|
837
885
|
toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
|
|
838
886
|
}
|
|
839
887
|
// File: src/classes/SearchListItem.d.ts
|
|
@@ -848,11 +896,10 @@ export declare class SearchListItem {
|
|
|
848
896
|
// File: src/classes/SearchListMatcher.d.ts
|
|
849
897
|
import { SearchListItem } from './SearchListItem';
|
|
850
898
|
import { SearchListOptions } from './SearchListOptions';
|
|
851
|
-
import { SearchCacheItem } from '../types/searchTypes';
|
|
852
899
|
export declare class SearchListMatcher {
|
|
853
900
|
constructor(item: SearchListItem, options: SearchListOptions);
|
|
854
901
|
is(): boolean;
|
|
855
|
-
isSelection(value:
|
|
902
|
+
isSelection(value: any): boolean;
|
|
856
903
|
get(): RegExp | undefined;
|
|
857
904
|
update(): void;
|
|
858
905
|
}
|
|
@@ -869,6 +916,9 @@ export declare class SearchListOptions {
|
|
|
869
916
|
setOptions(options: SearchOptions): this;
|
|
870
917
|
}
|
|
871
918
|
// File: src/classes/ServerStorage.d.ts
|
|
919
|
+
/**
|
|
920
|
+
* Server-side storage for hydration.
|
|
921
|
+
*/
|
|
872
922
|
export declare class ServerStorage {
|
|
873
923
|
static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
|
|
874
924
|
static reset(): void;
|
|
@@ -880,6 +930,9 @@ export declare class ServerStorage {
|
|
|
880
930
|
static toString(): string;
|
|
881
931
|
}
|
|
882
932
|
// File: src/classes/StorageCallback.d.ts
|
|
933
|
+
/**
|
|
934
|
+
* Storage observer.
|
|
935
|
+
*/
|
|
883
936
|
export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
|
|
884
937
|
static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
|
|
885
938
|
constructor(name: string, group?: string);
|
|
@@ -894,6 +947,9 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
|
|
|
894
947
|
// File: src/classes/Translate.d.ts
|
|
895
948
|
import { TranslateInstance } from './TranslateInstance';
|
|
896
949
|
import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
|
|
950
|
+
/**
|
|
951
|
+
* Translation service.
|
|
952
|
+
*/
|
|
897
953
|
export declare class Translate {
|
|
898
954
|
static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
|
|
899
955
|
static getItem(): TranslateInstance;
|
|
@@ -912,6 +968,9 @@ export declare class Translate {
|
|
|
912
968
|
}
|
|
913
969
|
// File: src/classes/TranslateFile.d.ts
|
|
914
970
|
import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
|
|
971
|
+
/**
|
|
972
|
+
* Translation file loader.
|
|
973
|
+
*/
|
|
915
974
|
export declare class TranslateFile {
|
|
916
975
|
constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
|
|
917
976
|
isFile(): boolean;
|
|
@@ -955,7 +1014,7 @@ export declare function copyObject<T>(value: T): T;
|
|
|
955
1014
|
// File: src/functions/copyObjectLite.d.ts
|
|
956
1015
|
export declare function copyObjectLite<T, R = T>(value: T, source?: any): R;
|
|
957
1016
|
// File: src/functions/createElement.d.ts
|
|
958
|
-
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?:
|
|
1017
|
+
export declare function createElement<T extends HTMLElement>(parentElement?: HTMLElement, tagName?: string, options?: Partial<T> | Record<keyof T, T[keyof T]> | ((element: T) => void), referenceElement?: HTMLElement): T | undefined;
|
|
959
1018
|
// File: src/functions/domQuerySelector.d.ts
|
|
960
1019
|
export declare function domQuerySelector<E extends Element = Element>(selectors: string): E | undefined;
|
|
961
1020
|
// File: src/functions/domQuerySelectorAll.d.ts
|
|
@@ -974,9 +1033,9 @@ export declare function eventStopPropagation(event: Event): void;
|
|
|
974
1033
|
import { FunctionArgs } from '../types/basicTypes';
|
|
975
1034
|
export declare function executeFunction<T>(callback: T | FunctionArgs<any, T>, ...args: any[]): T;
|
|
976
1035
|
// File: src/functions/executePromise.d.ts
|
|
977
|
-
export declare function executePromise<T>(callback: any, ...args: any[]): Promise<T>;
|
|
1036
|
+
export declare function executePromise<T>(callback: ((...args: any[]) => Promise<T>) | ((...args: any[]) => T) | T, ...args: any[]): Promise<T>;
|
|
978
1037
|
// File: src/functions/forEach.d.ts
|
|
979
|
-
export declare function forEach<T, R
|
|
1038
|
+
export declare function forEach<T, R>(data: any, callback: (item: T, key: any, dataMain: any) => R, saveUndefined?: boolean): R[];
|
|
980
1039
|
// File: src/functions/frame.d.ts
|
|
981
1040
|
export declare function frame(callback: () => void, next?: () => boolean, end?: () => void): void;
|
|
982
1041
|
// File: src/functions/getArrayHighlightMatch.d.ts
|
|
@@ -1075,7 +1134,7 @@ export declare function inArray<T>(array: T[], value: T): boolean;
|
|
|
1075
1134
|
// File: src/functions/initScrollbarOffset.d.ts
|
|
1076
1135
|
export declare function initScrollbarOffset(): Promise<void>;
|
|
1077
1136
|
// File: src/functions/intersectKey.d.ts
|
|
1078
|
-
export declare function intersectKey<T,
|
|
1137
|
+
export declare function intersectKey<T, C>(data?: T, comparison?: C): Record<string, any>;
|
|
1079
1138
|
// File: src/functions/isApiSuccess.d.ts
|
|
1080
1139
|
import { ApiData } from '../types/apiTypes';
|
|
1081
1140
|
export declare const isApiSuccess: <T>(data: ApiData<T>) => boolean;
|
|
@@ -1094,7 +1153,7 @@ export declare function isElementVisible<E extends ElementOrWindow>(elementSelec
|
|
|
1094
1153
|
// File: src/functions/isEnter.d.ts
|
|
1095
1154
|
export declare const isEnter: (event: KeyboardEvent, isInputElement?: boolean) => boolean;
|
|
1096
1155
|
// File: src/functions/isFilled.d.ts
|
|
1097
|
-
export declare function isFilled<T>(value: T, zeroTrue?: boolean):
|
|
1156
|
+
export declare function isFilled<T>(value: T, zeroTrue?: boolean): value is Exclude<T, any>;
|
|
1098
1157
|
// File: src/functions/isFloat.d.ts
|
|
1099
1158
|
export declare function isFloat(value: any): boolean;
|
|
1100
1159
|
// File: src/functions/isFunction.d.ts
|
|
@@ -1107,11 +1166,11 @@ export declare const isInput: (element: HTMLElement | EventTarget | null) => boo
|
|
|
1107
1166
|
// File: src/functions/isIntegerBetween.d.ts
|
|
1108
1167
|
export declare function isIntegerBetween(value: number, between: number): boolean;
|
|
1109
1168
|
// File: src/functions/isNull.d.ts
|
|
1110
|
-
export declare function isNull<T>(value: T):
|
|
1169
|
+
export declare function isNull<T>(value: T): value is Extract<T, any>;
|
|
1111
1170
|
// File: src/functions/isNumber.d.ts
|
|
1112
1171
|
export declare function isNumber(value: any): boolean;
|
|
1113
1172
|
// File: src/functions/isObject.d.ts
|
|
1114
|
-
export declare function isObject<T>(value: T):
|
|
1173
|
+
export declare function isObject<T>(value: T): value is Extract<T, Record<any, any>>;
|
|
1115
1174
|
// File: src/functions/isObjectNotArray.d.ts
|
|
1116
1175
|
export declare function isObjectNotArray<T>(value: T): boolean;
|
|
1117
1176
|
// File: src/functions/isOnLine.d.ts
|
|
@@ -1123,11 +1182,11 @@ export declare function isSelectedByList<T>(values: T | T[], selected: T | T[]):
|
|
|
1123
1182
|
// File: src/functions/isShare.d.ts
|
|
1124
1183
|
export declare function isShare(): boolean;
|
|
1125
1184
|
// File: src/functions/isString.d.ts
|
|
1126
|
-
export declare function isString<T>(value: T):
|
|
1185
|
+
export declare function isString<T>(value: T): value is Extract<T, string>;
|
|
1127
1186
|
// File: src/functions/isTab.d.ts
|
|
1128
1187
|
export declare const isTab: (event: KeyboardEvent) => boolean;
|
|
1129
1188
|
// File: src/functions/isWindow.d.ts
|
|
1130
|
-
export declare function isWindow<E>(element: E):
|
|
1189
|
+
export declare function isWindow<E>(element: E): element is Extract<E, Window>;
|
|
1131
1190
|
// File: src/functions/random.d.ts
|
|
1132
1191
|
export declare function random(min: number, max: number): number;
|
|
1133
1192
|
// File: src/functions/removeCommonPrefix.d.ts
|
|
@@ -1140,7 +1199,7 @@ export declare function replaceRecursive<I>(array: ObjectItem<I>, replacement?:
|
|
|
1140
1199
|
// File: src/functions/replaceTemplate.d.ts
|
|
1141
1200
|
export declare function replaceTemplate(value: string, replaces: Record<string, any>): string;
|
|
1142
1201
|
// File: src/functions/resizeImageByMax.d.ts
|
|
1143
|
-
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?:
|
|
1202
|
+
export declare function resizeImageByMax(image: HTMLImageElement | string, maxSize: number, type?: any, typeData?: string): string | undefined;
|
|
1144
1203
|
// File: src/functions/secondToTime.d.ts
|
|
1145
1204
|
export declare function secondToTime(second: number | string | undefined, hasHour?: boolean): string;
|
|
1146
1205
|
// File: src/functions/setElementItem.d.ts
|
|
@@ -1164,7 +1223,7 @@ export declare function toCamelCase(value: string): string;
|
|
|
1164
1223
|
// File: src/functions/toCamelCaseFirst.d.ts
|
|
1165
1224
|
export declare function toCamelCaseFirst(value: string): string;
|
|
1166
1225
|
// File: src/functions/toDate.d.ts
|
|
1167
|
-
export declare function toDate<T extends Date | number | string>(value?: T):
|
|
1226
|
+
export declare function toDate<T extends Date | number | string>(value?: T): Date;
|
|
1168
1227
|
// File: src/functions/toKebabCase.d.ts
|
|
1169
1228
|
export declare function toKebabCase(value: string): string;
|
|
1170
1229
|
// File: src/functions/toNumber.d.ts
|
|
@@ -1186,7 +1245,189 @@ export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
|
|
|
1186
1245
|
export declare function uniqueArray<T>(value: T[]): T[];
|
|
1187
1246
|
// File: src/functions/writeClipboardData.d.ts
|
|
1188
1247
|
export declare function writeClipboardData(text: string): Promise<void>;
|
|
1248
|
+
// File: src/library.d.ts
|
|
1249
|
+
export * from './classes/Api';
|
|
1250
|
+
export * from './classes/ApiCache';
|
|
1251
|
+
export * from './classes/ApiDataReturn';
|
|
1252
|
+
export * from './classes/ApiDefault';
|
|
1253
|
+
export * from './classes/ApiError';
|
|
1254
|
+
export * from './classes/ApiErrorItem';
|
|
1255
|
+
export * from './classes/ApiErrorStorage';
|
|
1256
|
+
export * from './classes/ApiHeaders';
|
|
1257
|
+
export * from './classes/ApiHydration';
|
|
1258
|
+
export * from './classes/ApiInstance';
|
|
1259
|
+
export * from './classes/ApiPreparation';
|
|
1260
|
+
export * from './classes/ApiResponse';
|
|
1261
|
+
export * from './classes/ApiStatus';
|
|
1262
|
+
export * from './classes/BroadcastMessage';
|
|
1263
|
+
export * from './classes/Cache';
|
|
1264
|
+
export * from './classes/CacheItem';
|
|
1265
|
+
export * from './classes/CacheStatic';
|
|
1266
|
+
export * from './classes/Cookie';
|
|
1267
|
+
export * from './classes/CookieBlock';
|
|
1268
|
+
export * from './classes/CookieBlockInstance';
|
|
1269
|
+
export * from './classes/CookieStorage';
|
|
1270
|
+
export * from './classes/DataStorage';
|
|
1271
|
+
export * from './classes/Datetime';
|
|
1272
|
+
export * from './classes/ErrorCenter';
|
|
1273
|
+
export * from './classes/ErrorCenterHandler';
|
|
1274
|
+
export * from './classes/ErrorCenterInstance';
|
|
1275
|
+
export * from './classes/EventItem';
|
|
1276
|
+
export * from './classes/Formatters';
|
|
1277
|
+
export * from './classes/Geo';
|
|
1278
|
+
export * from './classes/GeoFlag';
|
|
1279
|
+
export * from './classes/GeoInstance';
|
|
1280
|
+
export * from './classes/GeoIntl';
|
|
1281
|
+
export * from './classes/GeoPhone';
|
|
1282
|
+
export * from './classes/Global';
|
|
1283
|
+
export * from './classes/Hash';
|
|
1284
|
+
export * from './classes/HashInstance';
|
|
1285
|
+
export * from './classes/Icons';
|
|
1286
|
+
export * from './classes/Loading';
|
|
1287
|
+
export * from './classes/LoadingInstance';
|
|
1288
|
+
export * from './classes/Meta';
|
|
1289
|
+
export * from './classes/MetaManager';
|
|
1290
|
+
export * from './classes/MetaOg';
|
|
1291
|
+
export * from './classes/MetaStatic';
|
|
1292
|
+
export * from './classes/MetaTwitter';
|
|
1293
|
+
export * from './classes/ResumableTimer';
|
|
1294
|
+
export * from './classes/ScrollbarWidth';
|
|
1295
|
+
export * from './classes/SearchList';
|
|
1296
|
+
export * from './classes/SearchListData';
|
|
1297
|
+
export * from './classes/SearchListItem';
|
|
1298
|
+
export * from './classes/SearchListMatcher';
|
|
1299
|
+
export * from './classes/SearchListOptions';
|
|
1300
|
+
export * from './classes/ServerStorage';
|
|
1301
|
+
export * from './classes/StorageCallback';
|
|
1302
|
+
export * from './classes/Translate';
|
|
1303
|
+
export * from './classes/TranslateFile';
|
|
1304
|
+
export * from './classes/TranslateInstance';
|
|
1305
|
+
export * from './functions/addTagHighlightMatch';
|
|
1306
|
+
export * from './functions/anyToString';
|
|
1307
|
+
export * from './functions/applyTemplate';
|
|
1308
|
+
export * from './functions/arrFill';
|
|
1309
|
+
export * from './functions/blobToBase64';
|
|
1310
|
+
export * from './functions/capitalize';
|
|
1311
|
+
export * from './functions/copyObject';
|
|
1312
|
+
export * from './functions/copyObjectLite';
|
|
1313
|
+
export * from './functions/createElement';
|
|
1314
|
+
export * from './functions/domQuerySelector';
|
|
1315
|
+
export * from './functions/domQuerySelectorAll';
|
|
1316
|
+
export * from './functions/encodeAttribute';
|
|
1317
|
+
export * from './functions/encodeLiteAttribute';
|
|
1318
|
+
export * from './functions/ensureMaxSize';
|
|
1319
|
+
export * from './functions/escapeExp';
|
|
1320
|
+
export * from './functions/eventStopPropagation';
|
|
1321
|
+
export * from './functions/executeFunction';
|
|
1322
|
+
export * from './functions/executePromise';
|
|
1323
|
+
export * from './functions/forEach';
|
|
1324
|
+
export * from './functions/frame';
|
|
1325
|
+
export * from './functions/getArrayHighlightMatch';
|
|
1326
|
+
export * from './functions/getAttributes';
|
|
1327
|
+
export * from './functions/getClipboardData';
|
|
1328
|
+
export * from './functions/getColumn';
|
|
1329
|
+
export * from './functions/getCurrentDate';
|
|
1330
|
+
export * from './functions/getCurrentTime';
|
|
1331
|
+
export * from './functions/getElement';
|
|
1332
|
+
export * from './functions/getElementId';
|
|
1333
|
+
export * from './functions/getElementImage';
|
|
1334
|
+
export * from './functions/getElementItem';
|
|
1335
|
+
export * from './functions/getElementOrWindow';
|
|
1336
|
+
export * from './functions/getElementSafeScript';
|
|
1337
|
+
export * from './functions/getExactSearchExp';
|
|
1338
|
+
export * from './functions/getExp';
|
|
1339
|
+
export * from './functions/getFirst';
|
|
1340
|
+
export * from './functions/getHydrationData';
|
|
1341
|
+
export * from './functions/getItemByPath';
|
|
1342
|
+
export * from './functions/getKey';
|
|
1343
|
+
export * from './functions/getLength';
|
|
1344
|
+
export * from './functions/getLengthOfAllArray';
|
|
1345
|
+
export * from './functions/getMaxLengthAllArray';
|
|
1346
|
+
export * from './functions/getMinLengthAllArray';
|
|
1347
|
+
export * from './functions/getMouseClient';
|
|
1348
|
+
export * from './functions/getMouseClientX';
|
|
1349
|
+
export * from './functions/getMouseClientY';
|
|
1350
|
+
export * from './functions/getObjectByKeys';
|
|
1351
|
+
export * from './functions/getObjectNoUndefined';
|
|
1352
|
+
export * from './functions/getObjectOrNone';
|
|
1353
|
+
export * from './functions/getOnlyText';
|
|
1354
|
+
export * from './functions/getRandomText';
|
|
1355
|
+
export * from './functions/getRequestString';
|
|
1356
|
+
export * from './functions/getSearchExp';
|
|
1357
|
+
export * from './functions/getSeparatingSearchExp';
|
|
1358
|
+
export * from './functions/getStepPercent';
|
|
1359
|
+
export * from './functions/getStepValue';
|
|
1360
|
+
export * from './functions/goScroll';
|
|
1361
|
+
export * from './functions/goScrollSmooth';
|
|
1362
|
+
export * from './functions/goScrollTo';
|
|
1363
|
+
export * from './functions/handleShare';
|
|
1364
|
+
export * from './functions/inArray';
|
|
1365
|
+
export * from './functions/initScrollbarOffset';
|
|
1366
|
+
export * from './functions/intersectKey';
|
|
1367
|
+
export * from './functions/isApiSuccess';
|
|
1368
|
+
export * from './functions/isArray';
|
|
1369
|
+
export * from './functions/isDifferent';
|
|
1370
|
+
export * from './functions/isDomData';
|
|
1371
|
+
export * from './functions/isDomRuntime';
|
|
1372
|
+
export * from './functions/isElementVisible';
|
|
1373
|
+
export * from './functions/isEnter';
|
|
1374
|
+
export * from './functions/isFilled';
|
|
1375
|
+
export * from './functions/isFloat';
|
|
1376
|
+
export * from './functions/isFunction';
|
|
1377
|
+
export * from './functions/isInDom';
|
|
1378
|
+
export * from './functions/isInput';
|
|
1379
|
+
export * from './functions/isIntegerBetween';
|
|
1380
|
+
export * from './functions/isNull';
|
|
1381
|
+
export * from './functions/isNumber';
|
|
1382
|
+
export * from './functions/isObject';
|
|
1383
|
+
export * from './functions/isObjectNotArray';
|
|
1384
|
+
export * from './functions/isOnLine';
|
|
1385
|
+
export * from './functions/isSelected';
|
|
1386
|
+
export * from './functions/isSelectedByList';
|
|
1387
|
+
export * from './functions/isShare';
|
|
1388
|
+
export * from './functions/isString';
|
|
1389
|
+
export * from './functions/isTab';
|
|
1390
|
+
export * from './functions/isWindow';
|
|
1391
|
+
export * from './functions/random';
|
|
1392
|
+
export * from './functions/removeCommonPrefix';
|
|
1393
|
+
export * from './functions/replaceComponentName';
|
|
1394
|
+
export * from './functions/replaceRecursive';
|
|
1395
|
+
export * from './functions/replaceTemplate';
|
|
1396
|
+
export * from './functions/resizeImageByMax';
|
|
1397
|
+
export * from './functions/secondToTime';
|
|
1398
|
+
export * from './functions/setElementItem';
|
|
1399
|
+
export * from './functions/setValues';
|
|
1400
|
+
export * from './functions/sleep';
|
|
1401
|
+
export * from './functions/splice';
|
|
1402
|
+
export * from './functions/strFill';
|
|
1403
|
+
export * from './functions/strSplit';
|
|
1404
|
+
export * from './functions/toArray';
|
|
1405
|
+
export * from './functions/toCamelCase';
|
|
1406
|
+
export * from './functions/toCamelCaseFirst';
|
|
1407
|
+
export * from './functions/toDate';
|
|
1408
|
+
export * from './functions/toKebabCase';
|
|
1409
|
+
export * from './functions/toNumber';
|
|
1410
|
+
export * from './functions/toNumberByMax';
|
|
1411
|
+
export * from './functions/toPercent';
|
|
1412
|
+
export * from './functions/toPercentBy100';
|
|
1413
|
+
export * from './functions/toString';
|
|
1414
|
+
export * from './functions/transformation';
|
|
1415
|
+
export * from './functions/uint8ArrayToBase64';
|
|
1416
|
+
export * from './functions/uniqueArray';
|
|
1417
|
+
export * from './functions/writeClipboardData';
|
|
1418
|
+
export * from './types/apiTypes';
|
|
1419
|
+
export * from './types/basicTypes';
|
|
1420
|
+
export * from './types/errorCenter';
|
|
1421
|
+
export * from './types/formattersTypes';
|
|
1422
|
+
export * from './types/geoTypes';
|
|
1423
|
+
export * from './types/metaTypes';
|
|
1424
|
+
export * from './types/searchTypes';
|
|
1425
|
+
export * from './types/translateTypes';
|
|
1426
|
+
// File: src/media/errorCauseList.d.ts
|
|
1427
|
+
import { ErrorCenterCauseList } from '../types/errorCenter';
|
|
1428
|
+
export declare const errorCauseList: ErrorCenterCauseList;
|
|
1189
1429
|
// File: src/types/apiTypes.d.ts
|
|
1430
|
+
import { ApiErrorItem } from '../classes/ApiErrorItem';
|
|
1190
1431
|
export declare enum ApiMethodItem {
|
|
1191
1432
|
delete = "DELETE",
|
|
1192
1433
|
get = "GET",
|
|
@@ -1194,23 +1435,107 @@ export declare enum ApiMethodItem {
|
|
|
1194
1435
|
put = "PUT",
|
|
1195
1436
|
patch = "PATCH"
|
|
1196
1437
|
}
|
|
1197
|
-
export type ApiCacheItem<T = any> = {
|
|
1438
|
+
export type ApiCacheItem<T = any> = {
|
|
1439
|
+
value: T;
|
|
1440
|
+
age?: number;
|
|
1441
|
+
cacheAge: number;
|
|
1442
|
+
};
|
|
1198
1443
|
export type ApiCacheList = Record<string, ApiCacheItem>;
|
|
1199
|
-
export type ApiConfig = {
|
|
1444
|
+
export type ApiConfig = {
|
|
1445
|
+
urlRoot?: string;
|
|
1446
|
+
origin?: string;
|
|
1447
|
+
headers?: ApiHeadersValue;
|
|
1448
|
+
requestDefault?: ApiDefaultValue;
|
|
1449
|
+
preparation?: (apiFetch: ApiFetch) => Promise<void>;
|
|
1450
|
+
end?: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>;
|
|
1451
|
+
timeout?: number;
|
|
1452
|
+
devMode?: boolean;
|
|
1453
|
+
};
|
|
1200
1454
|
export type ApiData<T = any> = T extends any[] ? T : ApiDataItem<T>;
|
|
1201
|
-
export type ApiDataValidation = {
|
|
1202
|
-
|
|
1455
|
+
export type ApiDataValidation = {
|
|
1456
|
+
status?: ApiStatusType;
|
|
1457
|
+
code?: string | number;
|
|
1458
|
+
message?: string;
|
|
1459
|
+
error?: {
|
|
1460
|
+
code?: string | number;
|
|
1461
|
+
message?: string;
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
export type ApiDataItem<T = any> = T & ApiDataValidation & {
|
|
1465
|
+
data?: T;
|
|
1466
|
+
success?: boolean;
|
|
1467
|
+
statusObject?: ApiStatusItem;
|
|
1468
|
+
errorObject?: ApiErrorItem;
|
|
1469
|
+
};
|
|
1203
1470
|
export type ApiHeadersValue = Record<string, string> | (() => Record<string, string>);
|
|
1204
1471
|
export type ApiDefaultValue = Record<string, any> | (() => Record<string, any>);
|
|
1205
|
-
export type ApiFetch = {
|
|
1206
|
-
|
|
1472
|
+
export type ApiFetch = {
|
|
1473
|
+
api?: boolean;
|
|
1474
|
+
path?: string;
|
|
1475
|
+
pathFull?: string;
|
|
1476
|
+
method?: ApiMethod;
|
|
1477
|
+
request?: FormData | Record<string, any> | string;
|
|
1478
|
+
auth?: boolean;
|
|
1479
|
+
headers?: Record<string, string> | null;
|
|
1480
|
+
type?: string;
|
|
1481
|
+
toData?: boolean;
|
|
1482
|
+
global?: boolean;
|
|
1483
|
+
devMode?: boolean;
|
|
1484
|
+
hideError?: boolean;
|
|
1485
|
+
hideLoading?: boolean;
|
|
1486
|
+
retry?: number;
|
|
1487
|
+
retryDelay?: number;
|
|
1488
|
+
queryReturn?: (query: Response) => Promise<any | ApiDataValidation>;
|
|
1489
|
+
globalPreparation?: boolean;
|
|
1490
|
+
globalEnd?: boolean;
|
|
1491
|
+
init?: RequestInit;
|
|
1492
|
+
initError?: boolean;
|
|
1493
|
+
timeout?: number;
|
|
1494
|
+
controller?: AbortController;
|
|
1495
|
+
cache?: number;
|
|
1496
|
+
enableClientCache?: boolean;
|
|
1497
|
+
cacheId?: number | string;
|
|
1498
|
+
endResetLimit?: number;
|
|
1499
|
+
};
|
|
1500
|
+
export type ApiHydrationItem = {
|
|
1501
|
+
path: string;
|
|
1502
|
+
method: ApiMethod;
|
|
1503
|
+
request?: ApiFetch['request'];
|
|
1504
|
+
response: any;
|
|
1505
|
+
};
|
|
1207
1506
|
export type ApiHydrationList = ApiHydrationItem[];
|
|
1208
|
-
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1507
|
+
export type ApiErrorStorageItem = Record<string, any> & {
|
|
1508
|
+
url: string | RegExp;
|
|
1509
|
+
method: ApiMethodItem;
|
|
1510
|
+
code?: string;
|
|
1511
|
+
status?: number;
|
|
1512
|
+
validation?: (response: Response) => boolean;
|
|
1513
|
+
message?: string | ((response?: Response) => string);
|
|
1514
|
+
};
|
|
1209
1515
|
export type ApiErrorStorageList = ApiErrorStorageItem[];
|
|
1210
1516
|
export type ApiMethod = string | ApiMethodItem;
|
|
1211
|
-
export type ApiPreparationEnd = {
|
|
1212
|
-
|
|
1213
|
-
|
|
1517
|
+
export type ApiPreparationEnd = {
|
|
1518
|
+
reset?: boolean;
|
|
1519
|
+
data?: any;
|
|
1520
|
+
};
|
|
1521
|
+
export type ApiResponseItem = {
|
|
1522
|
+
path: string | RegExp;
|
|
1523
|
+
method: ApiMethod;
|
|
1524
|
+
request?: ApiFetch['request'] | '*any';
|
|
1525
|
+
response: any | ((request?: ApiFetch['request']) => any);
|
|
1526
|
+
disable?: any;
|
|
1527
|
+
isForGlobal?: boolean;
|
|
1528
|
+
lag?: any;
|
|
1529
|
+
};
|
|
1530
|
+
export type ApiStatusItem = {
|
|
1531
|
+
status?: number;
|
|
1532
|
+
statusText?: string;
|
|
1533
|
+
error?: string;
|
|
1534
|
+
lastResponse?: any;
|
|
1535
|
+
lastStatus?: ApiStatusType;
|
|
1536
|
+
lastCode?: string;
|
|
1537
|
+
lastMessage?: string;
|
|
1538
|
+
};
|
|
1214
1539
|
export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
|
|
1215
1540
|
// File: src/types/basicTypes.d.ts
|
|
1216
1541
|
export type Undefined = undefined | null;
|
|
@@ -1228,21 +1553,48 @@ export type FunctionVoid = () => void;
|
|
|
1228
1553
|
export type FunctionArgs<T, R> = (...args: T[]) => R;
|
|
1229
1554
|
export type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
|
|
1230
1555
|
export type ItemList<T = any> = Record<string, T>;
|
|
1231
|
-
export type Item<V> = {
|
|
1232
|
-
|
|
1233
|
-
|
|
1556
|
+
export type Item<V> = {
|
|
1557
|
+
index: string;
|
|
1558
|
+
value: V;
|
|
1559
|
+
};
|
|
1560
|
+
export type ItemValue<V> = {
|
|
1561
|
+
label: string;
|
|
1562
|
+
value: V;
|
|
1563
|
+
};
|
|
1564
|
+
export type ItemName<V> = {
|
|
1565
|
+
name: string | number;
|
|
1566
|
+
value: V;
|
|
1567
|
+
};
|
|
1234
1568
|
export type ElementOrWindow = HTMLElement | Window;
|
|
1235
1569
|
export type ElementOrString<E extends ElementOrWindow> = E | string;
|
|
1236
1570
|
export type EventOptions = AddEventListenerOptions | boolean | undefined;
|
|
1237
1571
|
export type EventListenerDetail<O extends Event, D extends Record<string, any>> = (event: O, detail?: D) => void;
|
|
1238
|
-
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1239
|
-
|
|
1572
|
+
export type EventActivityItem<E extends ElementOrWindow> = {
|
|
1573
|
+
element: E | undefined;
|
|
1574
|
+
type: string;
|
|
1575
|
+
listener?: (event: any | Event) => void;
|
|
1576
|
+
observer?: ResizeObserver;
|
|
1577
|
+
};
|
|
1578
|
+
export type ImageCoordinator = {
|
|
1579
|
+
x: number;
|
|
1580
|
+
y: number;
|
|
1581
|
+
};
|
|
1240
1582
|
// File: src/types/errorCenter.d.ts
|
|
1241
1583
|
export type ErrorCenterGroup = string | undefined;
|
|
1242
|
-
export type ErrorCenterCauseItem<D = any> = {
|
|
1584
|
+
export type ErrorCenterCauseItem<D = any> = {
|
|
1585
|
+
group?: ErrorCenterGroup;
|
|
1586
|
+
code: string;
|
|
1587
|
+
priority?: number;
|
|
1588
|
+
label?: string;
|
|
1589
|
+
message?: string;
|
|
1590
|
+
details?: D;
|
|
1591
|
+
};
|
|
1243
1592
|
export type ErrorCenterCauseList = ErrorCenterCauseItem[];
|
|
1244
1593
|
export type ErrorCenterHandlerCallback = (cause: ErrorCenterCauseItem) => void;
|
|
1245
|
-
export type ErrorCenterHandlerItem = {
|
|
1594
|
+
export type ErrorCenterHandlerItem = {
|
|
1595
|
+
group?: ErrorCenterGroup;
|
|
1596
|
+
handlers: ErrorCenterHandlerCallback[];
|
|
1597
|
+
};
|
|
1246
1598
|
export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
|
|
1247
1599
|
// File: src/types/formattersTypes.d.ts
|
|
1248
1600
|
import { ArrayToItem } from './basicTypes';
|
|
@@ -1255,20 +1607,45 @@ export declare enum FormattersType {
|
|
|
1255
1607
|
plural = "plural",
|
|
1256
1608
|
unit = "unit"
|
|
1257
1609
|
}
|
|
1258
|
-
export type FormattersOptionsCurrency = {
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
export type
|
|
1610
|
+
export type FormattersOptionsCurrency = {
|
|
1611
|
+
currencyPropName?: string;
|
|
1612
|
+
options?: string | Intl.NumberFormatOptions;
|
|
1613
|
+
numberOnly?: boolean;
|
|
1614
|
+
};
|
|
1615
|
+
export type FormattersOptionsDate = {
|
|
1616
|
+
type?: GeoDate;
|
|
1617
|
+
options?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions;
|
|
1618
|
+
hour24?: boolean;
|
|
1619
|
+
};
|
|
1620
|
+
export type FormattersOptionsName = {
|
|
1621
|
+
lastPropName?: string;
|
|
1622
|
+
firstPropName?: string;
|
|
1623
|
+
surname?: string;
|
|
1624
|
+
short?: boolean;
|
|
1625
|
+
};
|
|
1626
|
+
export type FormattersOptionsNumber = {
|
|
1627
|
+
options?: Intl.NumberFormatOptions;
|
|
1628
|
+
};
|
|
1629
|
+
export type FormattersOptionsPlural = {
|
|
1630
|
+
words: string;
|
|
1631
|
+
options?: Intl.PluralRulesOptions;
|
|
1632
|
+
optionsNumber?: Intl.NumberFormatOptions;
|
|
1633
|
+
};
|
|
1634
|
+
export type FormattersOptionsUnit = {
|
|
1635
|
+
unit: string | Intl.NumberFormatOptions;
|
|
1636
|
+
};
|
|
1264
1637
|
export type FormattersOptionsInformation<Type extends FormattersType> = any;
|
|
1265
|
-
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1638
|
+
export type FormattersOptionsItem<Type extends FormattersType = FormattersType, R = string> = {
|
|
1639
|
+
type?: Type;
|
|
1640
|
+
transformation?: (valueOriginal: any, item: any, options?: FormattersOptionsInformation<Type>) => R;
|
|
1641
|
+
options?: FormattersOptionsInformation<Type>;
|
|
1642
|
+
};
|
|
1266
1643
|
export type FormattersOptionsList = Record<string, FormattersOptionsItem>;
|
|
1267
1644
|
export type FormattersListItem = Record<string, any>;
|
|
1268
1645
|
export type FormattersList<Item extends FormattersListItem> = Item[];
|
|
1269
|
-
export type FormattersCapitalize<K extends string> =
|
|
1646
|
+
export type FormattersCapitalize<K extends string> = string;
|
|
1270
1647
|
export type FormattersColumns<T extends FormattersOptionsList> = (keyof T & string)[];
|
|
1271
|
-
export type FormattersKey<K, A extends string = 'Format'> =
|
|
1648
|
+
export type FormattersKey<K, A extends string = 'Format'> = string;
|
|
1272
1649
|
export type FormattersDataItem<T extends FormattersListItem, KT extends string[]> = any;
|
|
1273
1650
|
export type FormattersListFormat<T extends FormattersListItem, K extends string[]> = any;
|
|
1274
1651
|
export type FormattersListColumnItem<T extends FormattersListItem, O extends FormattersOptionsList> = any;
|
|
@@ -1281,43 +1658,249 @@ export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'mo
|
|
|
1281
1658
|
export type GeoFirstDay = 1 | 6 | 0;
|
|
1282
1659
|
export type GeoHours = '12' | '24';
|
|
1283
1660
|
export type GeoTimeZoneStyle = 'minute' | 'hour' | 'ISO8601' | 'RFC';
|
|
1284
|
-
export interface GeoItem {
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1661
|
+
export interface GeoItem {
|
|
1662
|
+
country: string;
|
|
1663
|
+
countryAlternative?: string[];
|
|
1664
|
+
language: string;
|
|
1665
|
+
languageAlternative?: string[];
|
|
1666
|
+
firstDay?: string | null;
|
|
1667
|
+
zone?: string | null;
|
|
1668
|
+
phoneCode?: string;
|
|
1669
|
+
phoneWithin?: string;
|
|
1670
|
+
phoneMask?: string | string[];
|
|
1671
|
+
nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
|
|
1672
|
+
}
|
|
1673
|
+
export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
|
|
1674
|
+
standard: string;
|
|
1675
|
+
firstDay: string;
|
|
1676
|
+
}
|
|
1677
|
+
export interface GeoFlagItem {
|
|
1678
|
+
language: string;
|
|
1679
|
+
country: string;
|
|
1680
|
+
standard: string;
|
|
1681
|
+
icon?: string;
|
|
1682
|
+
label: string;
|
|
1683
|
+
value: string;
|
|
1684
|
+
phoneCode?: string;
|
|
1685
|
+
}
|
|
1686
|
+
export interface GeoFlagNational extends GeoFlagItem {
|
|
1687
|
+
description: string;
|
|
1688
|
+
nationalLanguage: string;
|
|
1689
|
+
nationalCountry: string;
|
|
1690
|
+
}
|
|
1691
|
+
export interface GeoPhoneValue {
|
|
1692
|
+
phone: number;
|
|
1693
|
+
within: number;
|
|
1694
|
+
mask: string[];
|
|
1695
|
+
value: string;
|
|
1696
|
+
}
|
|
1697
|
+
export interface GeoPhoneMap {
|
|
1698
|
+
items: GeoPhoneValue[];
|
|
1699
|
+
info: GeoPhoneValue | undefined;
|
|
1700
|
+
value: string | undefined;
|
|
1701
|
+
mask: string[];
|
|
1702
|
+
maskFull: string[];
|
|
1703
|
+
next: Record<string, GeoPhoneMap>;
|
|
1704
|
+
}
|
|
1705
|
+
export interface GeoPhoneMapInfo {
|
|
1706
|
+
item?: GeoPhoneMap;
|
|
1707
|
+
phone?: string;
|
|
1708
|
+
}
|
|
1291
1709
|
// File: src/types/metaTypes.d.ts
|
|
1292
|
-
export declare enum MetaTag {
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
export declare enum
|
|
1301
|
-
|
|
1710
|
+
export declare enum MetaTag {
|
|
1711
|
+
title = "title",
|
|
1712
|
+
description = "description",
|
|
1713
|
+
keywords = "keywords",
|
|
1714
|
+
canonical = "canonical",
|
|
1715
|
+
robots = "robots",
|
|
1716
|
+
author = "author"
|
|
1717
|
+
}
|
|
1718
|
+
export declare enum MetaRobots {
|
|
1719
|
+
indexFollow = "index, follow",
|
|
1720
|
+
noIndexFollow = "noindex, follow",
|
|
1721
|
+
indexNoFollow = "index, nofollow",
|
|
1722
|
+
noIndexNoFollow = "noindex, nofollow",
|
|
1723
|
+
noArchive = "noarchive",
|
|
1724
|
+
noSnippet = "nosnippet",
|
|
1725
|
+
noImageIndex = "noimageindex",
|
|
1726
|
+
images = "images",
|
|
1727
|
+
noTranslate = "notranslate",
|
|
1728
|
+
noPreview = "nopreview",
|
|
1729
|
+
textOnly = "textonly",
|
|
1730
|
+
noIndexSubpages = "noindex, noarchive",
|
|
1731
|
+
none = "none"
|
|
1732
|
+
}
|
|
1733
|
+
export declare enum MetaOpenGraphTag {
|
|
1734
|
+
title = "og:title",
|
|
1735
|
+
type = "og:type",
|
|
1736
|
+
url = "og:url",
|
|
1737
|
+
image = "og:image",
|
|
1738
|
+
description = "og:description",
|
|
1739
|
+
locale = "og:locale",
|
|
1740
|
+
siteName = "og:site_name",
|
|
1741
|
+
localeAlternate = "og:locale:alternate",
|
|
1742
|
+
imageUrl = "og:image:url",
|
|
1743
|
+
imageSecureUrl = "og:image:secure_url",
|
|
1744
|
+
imageType = "og:image:type",
|
|
1745
|
+
imageWidth = "og:image:width",
|
|
1746
|
+
imageHeight = "og:image:height",
|
|
1747
|
+
imageAlt = "og:image:alt",
|
|
1748
|
+
video = "og:video",
|
|
1749
|
+
videoUrl = "og:video:url",
|
|
1750
|
+
videoSecureUrl = "og:video:secure_url",
|
|
1751
|
+
videoType = "og:video:type",
|
|
1752
|
+
videoWidth = "og:video:width",
|
|
1753
|
+
videoHeight = "og:video:height",
|
|
1754
|
+
audio = "og:audio",
|
|
1755
|
+
audioSecureUrl = "og:audio:secure_url",
|
|
1756
|
+
audioType = "og:audio:type",
|
|
1757
|
+
articlePublishedTime = "article:published_time",
|
|
1758
|
+
articleModifiedTime = "article:modified_time",
|
|
1759
|
+
articleExpirationTime = "article:expiration_time",
|
|
1760
|
+
articleAuthor = "article:author",
|
|
1761
|
+
articleSection = "article:section",
|
|
1762
|
+
articleTag = "article:tag",
|
|
1763
|
+
bookAuthor = "book:author",
|
|
1764
|
+
bookIsbn = "book:isbn",
|
|
1765
|
+
bookReleaseDate = "book:release_date",
|
|
1766
|
+
bookTag = "book:tag",
|
|
1767
|
+
musicDuration = "music:duration",
|
|
1768
|
+
musicAlbum = "music:album",
|
|
1769
|
+
musicAlbumDisc = "music:album:disc",
|
|
1770
|
+
musicAlbumTrack = "music:album:track",
|
|
1771
|
+
musicMusician = "music:musician",
|
|
1772
|
+
musicSong = "music:song",
|
|
1773
|
+
musicSongDisc = "music:song:disc",
|
|
1774
|
+
musicSongTrack = "music:song:track",
|
|
1775
|
+
musicReleaseDate = "music:release_date",
|
|
1776
|
+
musicCreator = "music:creator",
|
|
1777
|
+
videoActor = "video:actor",
|
|
1778
|
+
videoActorRole = "video:actor:role",
|
|
1779
|
+
videoDirector = "video:director",
|
|
1780
|
+
videoWriter = "video:writer",
|
|
1781
|
+
videoDuration = "video:duration",
|
|
1782
|
+
videoReleaseDate = "video:release_date",
|
|
1783
|
+
videoTag = "video:tag",
|
|
1784
|
+
videoSeries = "video:series",
|
|
1785
|
+
profileFirstName = "profile:first_name",
|
|
1786
|
+
profileLastName = "profile:last_name",
|
|
1787
|
+
profileUsername = "profile:username",
|
|
1788
|
+
profileGender = "profile:gender",
|
|
1789
|
+
productBrand = "product:brand",
|
|
1790
|
+
productAvailability = "product:availability",
|
|
1791
|
+
productCondition = "product:condition",
|
|
1792
|
+
productPriceAmount = "product:price:amount",
|
|
1793
|
+
productPriceCurrency = "product:price:currency",
|
|
1794
|
+
productRetailerItemId = "product:retailer_item_id",
|
|
1795
|
+
productCategory = "product:category",
|
|
1796
|
+
productEan = "product:ean",
|
|
1797
|
+
productIsbn = "product:isbn",
|
|
1798
|
+
productMfrPartNo = "product:mfr_part_no",
|
|
1799
|
+
productUpc = "product:upc",
|
|
1800
|
+
productWeightValue = "product:weight:value",
|
|
1801
|
+
productWeightUnits = "product:weight:units",
|
|
1802
|
+
productColor = "product:color",
|
|
1803
|
+
productMaterial = "product:material",
|
|
1804
|
+
productPattern = "product:pattern",
|
|
1805
|
+
productAgeGroup = "product:age_group",
|
|
1806
|
+
productGender = "product:gender"
|
|
1807
|
+
}
|
|
1808
|
+
export declare enum MetaOpenGraphType {
|
|
1809
|
+
website = "website",
|
|
1810
|
+
article = "article",
|
|
1811
|
+
video = "video.other",
|
|
1812
|
+
videoTvShow = "video.tv_show",
|
|
1813
|
+
videoEpisode = "video.episode",
|
|
1814
|
+
videoMovie = "video.movie",
|
|
1815
|
+
musicAlbum = "music.album",
|
|
1816
|
+
musicPlaylist = "music.playlist",
|
|
1817
|
+
musicSong = "music.song",
|
|
1818
|
+
musicRadioStation = "music.radio_station",
|
|
1819
|
+
app = "app",
|
|
1820
|
+
product = "product",
|
|
1821
|
+
business = "business.business",
|
|
1822
|
+
place = "place",
|
|
1823
|
+
event = "event",
|
|
1824
|
+
profile = "profile",
|
|
1825
|
+
book = "book"
|
|
1826
|
+
}
|
|
1827
|
+
export declare enum MetaTwitterTag {
|
|
1828
|
+
card = "twitter:card",
|
|
1829
|
+
site = "twitter:site",
|
|
1830
|
+
creator = "twitter:creator",
|
|
1831
|
+
url = "twitter:url",
|
|
1832
|
+
title = "twitter:title",
|
|
1833
|
+
description = "twitter:description",
|
|
1834
|
+
image = "twitter:image",
|
|
1835
|
+
imageAlt = "twitter:image:alt",
|
|
1836
|
+
imageSrc = "twitter:image:src",
|
|
1837
|
+
imageWidth = "twitter:image:width",
|
|
1838
|
+
imageHeight = "twitter:image:height",
|
|
1839
|
+
label1 = "twitter:label1",
|
|
1840
|
+
data1 = "twitter:data1",
|
|
1841
|
+
label2 = "twitter:label2",
|
|
1842
|
+
data2 = "twitter:data2",
|
|
1843
|
+
appNameIphone = "twitter:app:name:iphone",
|
|
1844
|
+
appIdIphone = "twitter:app:id:iphone",
|
|
1845
|
+
appUrlIphone = "twitter:app:url:iphone",
|
|
1846
|
+
appNameIpad = "twitter:app:name:ipad",
|
|
1847
|
+
appIdIpad = "twitter:app:id:ipad",
|
|
1848
|
+
appUrlIpad = "twitter:app:url:ipad",
|
|
1849
|
+
appNameGooglePlay = "twitter:app:name:googleplay",
|
|
1850
|
+
appIdGooglePlay = "twitter:app:id:googleplay",
|
|
1851
|
+
appUrlGooglePlay = "twitter:app:url:googleplay",
|
|
1852
|
+
player = "twitter:player",
|
|
1853
|
+
playerWidth = "twitter:player:width",
|
|
1854
|
+
playerHeight = "twitter:player:height",
|
|
1855
|
+
playerStream = "twitter:player:stream",
|
|
1856
|
+
playerStreamContentType = "twitter:player:stream:content_type"
|
|
1857
|
+
}
|
|
1858
|
+
export declare enum MetaTwitterCard {
|
|
1859
|
+
summary = "summary",
|
|
1860
|
+
summaryLargeImage = "summary_large_image",
|
|
1861
|
+
app = "app",
|
|
1862
|
+
player = "player",
|
|
1863
|
+
product = "product",
|
|
1864
|
+
gallery = "gallery",
|
|
1865
|
+
photo = "photo",
|
|
1866
|
+
leadGeneration = "lead_generation",
|
|
1867
|
+
audio = "audio",
|
|
1868
|
+
poll = "poll"
|
|
1869
|
+
}
|
|
1302
1870
|
// File: src/types/searchTypes.d.ts
|
|
1303
1871
|
export type SearchItem = Record<string, any>;
|
|
1304
|
-
export type SearchColumnPath<K, P> =
|
|
1305
|
-
export type SearchColumn<T extends SearchItem> =
|
|
1306
|
-
export type SearchColumns<T extends SearchItem> =
|
|
1307
|
-
export type
|
|
1308
|
-
export type SearchFormatKey<K> = any;
|
|
1872
|
+
export type SearchColumnPath<K, P> = string;
|
|
1873
|
+
export type SearchColumn<T extends SearchItem> = string;
|
|
1874
|
+
export type SearchColumns<T extends SearchItem> = string[];
|
|
1875
|
+
export type SearchFormatKey<K> = string;
|
|
1309
1876
|
export type SearchFormatItem<T extends SearchItem, KT extends string[]> = any;
|
|
1310
|
-
export type SearchFormatList<T extends SearchItem, K extends string[]> = any;
|
|
1877
|
+
export type SearchFormatList<T extends SearchItem, K extends string[]> = any[];
|
|
1311
1878
|
export type SearchListValue<T extends SearchItem> = T[] | undefined;
|
|
1312
|
-
export type SearchOptions = {
|
|
1313
|
-
|
|
1879
|
+
export type SearchOptions = {
|
|
1880
|
+
limit?: number;
|
|
1881
|
+
returnEverything?: boolean;
|
|
1882
|
+
delay?: number;
|
|
1883
|
+
findExactMatch?: boolean;
|
|
1884
|
+
classSearchName?: string;
|
|
1885
|
+
};
|
|
1886
|
+
export type SearchCacheItem<T extends SearchItem> = {
|
|
1887
|
+
item: T;
|
|
1888
|
+
value: string;
|
|
1889
|
+
};
|
|
1314
1890
|
export type SearchCache<T extends SearchItem> = SearchCacheItem<T>[];
|
|
1315
|
-
export type HighlightMatchItem = {
|
|
1891
|
+
export type HighlightMatchItem = {
|
|
1892
|
+
text: string;
|
|
1893
|
+
isMatch: boolean;
|
|
1894
|
+
};
|
|
1316
1895
|
// File: src/types/translateTypes.d.ts
|
|
1317
|
-
export type TranslateConfig = {
|
|
1896
|
+
export type TranslateConfig = {
|
|
1897
|
+
url?: string;
|
|
1898
|
+
propsName?: string;
|
|
1899
|
+
readApi?: boolean;
|
|
1900
|
+
};
|
|
1318
1901
|
export type TranslateCode = string | string[];
|
|
1319
|
-
export type TranslateList<T extends TranslateCode[]> =
|
|
1320
|
-
export type TranslateItemOrList<T extends TranslateCode> =
|
|
1902
|
+
export type TranslateList<T extends TranslateCode[]> = Record<string, string>;
|
|
1903
|
+
export type TranslateItemOrList<T extends TranslateCode> = any;
|
|
1321
1904
|
export type TranslateDataFileList = Record<string, string>;
|
|
1322
1905
|
export type TranslateDataFileItem = () => Promise<TranslateDataFileList>;
|
|
1323
1906
|
export type TranslateDataFile = Record<string, TranslateDataFileItem>;
|