@dxtmisha/functional-basic 1.4.2 → 1.5.0

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/ai-types.md CHANGED
@@ -46,7 +46,6 @@ export declare class Api {
46
46
  static patch<T>(request: ApiFetch): Promise<T>;
47
47
  static delete<T>(request: ApiFetch): Promise<T>;
48
48
  }
49
-
50
49
  // File: src/classes/ApiCache.d.ts
51
50
  import { ApiCacheItem, ApiCacheList, ApiFetch } from '../types/apiTypes';
52
51
  /**
@@ -61,13 +60,12 @@ export declare class ApiCache {
61
60
  static setByFetch<T>(fetch: ApiFetch, value: T): Promise<void>;
62
61
  static remove(key: string): Promise<void>;
63
62
  }
64
-
65
63
  // File: src/classes/ApiDataReturn.d.ts
66
64
  import { ApiStatus } from './ApiStatus';
67
65
  import { ApiErrorItem } from './ApiErrorItem';
68
66
  import { ApiData, ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
69
67
  /**
70
- * Class for processing API response data.
68
+ * Class for handling API request response data.
71
69
  */
72
70
  export declare class ApiDataReturn<T = any> {
73
71
  constructor(apiFetch: ApiFetch, query: Response, end: ApiPreparationEnd, error?: ApiErrorItem | undefined);
@@ -76,11 +74,10 @@ export declare class ApiDataReturn<T = any> {
76
74
  getAndStatus(status: ApiStatus): ApiData<T>;
77
75
  getData(): ApiData<T> | undefined;
78
76
  }
79
-
80
77
  // File: src/classes/ApiDefault.d.ts
81
78
  import { ApiDefaultValue, ApiFetch } from '../types/apiTypes';
82
79
  /**
83
- * Class for managing default API request data.
80
+ * Class for working with default API request data.
84
81
  */
85
82
  export declare class ApiDefault {
86
83
  is(): boolean;
@@ -88,7 +85,6 @@ export declare class ApiDefault {
88
85
  request(request: ApiFetch['request']): ApiFetch['request'];
89
86
  set(request: ApiDefaultValue): this;
90
87
  }
91
-
92
88
  // File: src/classes/ApiError.d.ts
93
89
  import { ApiErrorItem } from './ApiErrorItem';
94
90
  import { ApiErrorStorage } from './ApiErrorStorage';
@@ -101,11 +97,10 @@ export declare class ApiError {
101
97
  static add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): void;
102
98
  static getItem(method: ApiMethodItem, response: Response): Promise<ApiErrorItem>;
103
99
  }
104
-
105
100
  // File: src/classes/ApiErrorItem.d.ts
106
101
  import { ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
107
102
  /**
108
- * Class for managing and extracting data from API error responses.
103
+ * Class for managing and extracting data from an API error response.
109
104
  */
110
105
  export declare class ApiErrorItem {
111
106
  constructor(method: ApiMethodItem, response: Response, error: ApiErrorStorageItem);
@@ -116,17 +111,15 @@ export declare class ApiErrorItem {
116
111
  getMessage(): string | undefined;
117
112
  getStatus(): number;
118
113
  }
119
-
120
114
  // File: src/classes/ApiErrorStorage.d.ts
121
115
  import { ApiErrorStorageList, ApiErrorStorageItem, ApiMethodItem } from '../types/apiTypes';
122
116
  /**
123
- * Manager for handling API error states.
117
+ * Manager for handling and identifying API error states.
124
118
  */
125
119
  export declare class ApiErrorStorage {
126
120
  find(method: ApiMethodItem, response: Response): Promise<ApiErrorStorageItem>;
127
121
  add(item: Partial<ApiErrorStorageItem> | Partial<ApiErrorStorageItem>[], url?: string | RegExp, method?: ApiMethodItem): this;
128
122
  }
129
-
130
123
  // File: src/classes/ApiHeaders.d.ts
131
124
  import { ApiFetch, ApiHeadersValue } from '../types/apiTypes';
132
125
  /**
@@ -137,19 +130,17 @@ export declare class ApiHeaders {
137
130
  getByRequest(request: ApiFetch['request'], value?: Record<string, string> | null, type?: string): Record<string, string> | undefined;
138
131
  set(headers: ApiHeadersValue): this;
139
132
  }
140
-
141
133
  // File: src/classes/ApiHydration.d.ts
142
134
  import { ApiResponse } from './ApiResponse';
143
135
  import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
144
136
  /**
145
- * Class for collecting API data for SSR client-side hydration.
137
+ * Class for collecting API data for hydration (SSR).
146
138
  */
147
139
  export declare class ApiHydration {
148
140
  initResponse(response: ApiResponse): void;
149
141
  toClient<T>(apiFetch: ApiFetch, response: T): void;
150
142
  toString(): string;
151
143
  }
152
-
153
144
  // File: src/classes/ApiInstance.d.ts
154
145
  import { LoadingInstance } from './LoadingInstance';
155
146
  import { ErrorCenterInstance } from './ErrorCenterInstance';
@@ -172,7 +163,7 @@ export type ApiInstanceOptions = {
172
163
  wrapper?: <R>(callback: () => Promise<R>, apiFetch: ApiFetch) => Promise<R>;
173
164
  };
174
165
  /**
175
- * Core class for managing HTTP requests using the Fetch API.
166
+ * Core class for managing HTTP requests using Fetch API.
176
167
  */
177
168
  export declare class ApiInstance {
178
169
  constructor(url?: string, options?: ApiInstanceOptions);
@@ -200,7 +191,6 @@ export declare class ApiInstance {
200
191
  patch<T>(request: ApiFetch): Promise<T>;
201
192
  delete<T>(request: ApiFetch): Promise<T>;
202
193
  }
203
-
204
194
  // File: src/classes/ApiPreparation.d.ts
205
195
  import { ApiFetch, ApiPreparationEnd } from '../types/apiTypes';
206
196
  /**
@@ -212,7 +202,6 @@ export declare class ApiPreparation {
212
202
  set(callback: (apiFetch: ApiFetch) => Promise<void>): this;
213
203
  setEnd(callback: (query: Response, apiFetch: ApiFetch) => Promise<ApiPreparationEnd>): this;
214
204
  }
215
-
216
205
  // File: src/classes/ApiResponse.d.ts
217
206
  import { ApiDefault } from './ApiDefault';
218
207
  import { ApiFetch, ApiMethod, ApiResponseItem } from '../types/apiTypes';
@@ -228,7 +217,6 @@ export declare class ApiResponse {
228
217
  emulator<T>(apiFetch: ApiFetch): Promise<T | undefined>;
229
218
  emulatorAsync<T>(apiFetch: ApiFetch): T | undefined;
230
219
  }
231
-
232
220
  // File: src/classes/ApiStatus.d.ts
233
221
  import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
234
222
  /**
@@ -251,11 +239,10 @@ export declare class ApiStatus {
251
239
  setLastCode(code?: string): this;
252
240
  setLastMessage(message?: string): this;
253
241
  }
254
-
255
242
  // File: src/classes/BroadcastMessage.d.ts
256
243
  import { ErrorCenterInstance } from './ErrorCenterInstance';
257
244
  /**
258
- * Class for working with BroadcastChannel messages.
245
+ * Class for working with BroadcastChannel.
259
246
  */
260
247
  export declare class BroadcastMessage<Message = any> {
261
248
  constructor(name: string, callback?: ((event: MessageEvent<Message>) => void) | undefined, callbackError?: ((event: MessageEvent<Message>) => void) | undefined, errorCenter?: ErrorCenterInstance);
@@ -265,21 +252,19 @@ export declare class BroadcastMessage<Message = any> {
265
252
  setCallbackError(callbackError: (event: MessageEvent<Message>) => void): this;
266
253
  destroy(): this;
267
254
  }
268
-
269
255
  // File: src/classes/Cache.d.ts
270
256
  /**
271
257
  * Simple in-memory cache class.
272
- * @deprecated Use alternative caching mechanisms.
258
+ * @deprecated Use alternative caching.
273
259
  */
274
260
  export declare class Cache {
275
261
  get<T>(name: string, callback: () => T, comparison?: any[]): T;
276
262
  getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
277
263
  }
278
-
279
264
  // File: src/classes/CacheItem.d.ts
280
265
  /**
281
266
  * Class for managing a single cached value.
282
- * @deprecated Use alternative caching mechanisms.
267
+ * @deprecated Use alternative caching.
283
268
  */
284
269
  export declare class CacheItem<T> {
285
270
  constructor(callback: () => T);
@@ -287,18 +272,16 @@ export declare class CacheItem<T> {
287
272
  getCacheOld(): T | undefined;
288
273
  getCacheAsync(comparison: any[]): Promise<T>;
289
274
  }
290
-
291
275
  // File: src/classes/CacheStatic.d.ts
292
276
  import { Cache } from './Cache';
293
277
  /**
294
278
  * Static cache class.
295
- * @deprecated Use alternative caching mechanisms.
279
+ * @deprecated Use alternative caching.
296
280
  */
297
281
  export declare class CacheStatic {
298
282
  static get<T>(name: string, callback: () => T, comparison?: any[]): T;
299
283
  static getAsync<T>(name: string, callback: () => T, comparison?: any[]): Promise<T>;
300
284
  }
301
-
302
285
  // File: src/classes/Cookie.d.ts
303
286
  import { CookieOptions } from './CookieStorage';
304
287
  /**
@@ -311,7 +294,6 @@ export declare class Cookie<T> {
311
294
  set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
312
295
  remove(): void;
313
296
  }
314
-
315
297
  // File: src/classes/CookieBlock.d.ts
316
298
  import { CookieBlockInstance } from './CookieBlockInstance';
317
299
  /**
@@ -322,7 +304,6 @@ export declare class CookieBlock {
322
304
  static get(): boolean;
323
305
  static set(value: boolean): void;
324
306
  }
325
-
326
307
  // File: src/classes/CookieBlockInstance.d.ts
327
308
  /**
328
309
  * Class for changing cookie access status.
@@ -331,7 +312,6 @@ export declare class CookieBlockInstance {
331
312
  get(): boolean;
332
313
  set(value: boolean): void;
333
314
  }
334
-
335
315
  // File: src/classes/CookieStorage.d.ts
336
316
  export type CookieSameSite = 'strict' | 'lax';
337
317
  export type CookieOptions = {
@@ -355,7 +335,6 @@ export declare class CookieStorage {
355
335
  static remove(name: string): void;
356
336
  static update(): void;
357
337
  }
358
-
359
338
  // File: src/classes/DataStorage.d.ts
360
339
  import { ErrorCenterInstance } from './ErrorCenterInstance';
361
340
  /**
@@ -369,7 +348,6 @@ export declare class DataStorage<T> {
369
348
  remove(): this;
370
349
  update(): this;
371
350
  }
372
-
373
351
  // File: src/classes/Datetime.d.ts
374
352
  import { GeoIntl } from './GeoIntl';
375
353
  import { NumberOrStringOrDate } from '../types/basicTypes';
@@ -450,12 +428,11 @@ export declare class Datetime {
450
428
  cloneDayNext(): Datetime;
451
429
  cloneDayPrevious(): Datetime;
452
430
  }
453
-
454
431
  // File: src/classes/ErrorCenter.d.ts
455
432
  import { ErrorCenterInstance } from './ErrorCenterInstance';
456
433
  import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
457
434
  /**
458
- * Class for managing error storage and handling.
435
+ * Class for managing error storage.
459
436
  */
460
437
  export declare class ErrorCenter {
461
438
  static getItem(): ErrorCenterInstance;
@@ -465,9 +442,9 @@ export declare class ErrorCenter {
465
442
  static addList(causes: ErrorCenterCauseList): void;
466
443
  static addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): void;
467
444
  static addHandlerList(handlers: ErrorCenterHandlerList): void;
445
+ static addCallback(callback: ErrorCenterHandlerCallback): void;
468
446
  static on(cause: ErrorCenterCauseItem): void;
469
447
  }
470
-
471
448
  // File: src/classes/ErrorCenterHandler.d.ts
472
449
  import { ErrorCenterCauseItem, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerItem, ErrorCenterHandlerList } from '../types/errorCenter';
473
450
  /**
@@ -479,14 +456,14 @@ export declare class ErrorCenterHandler {
479
456
  get(group: ErrorCenterGroup): ErrorCenterHandlerItem | undefined;
480
457
  add(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
481
458
  addList(handlers: ErrorCenterHandlerList): this;
459
+ addCallback(callback: ErrorCenterHandlerCallback): this;
482
460
  on(cause: ErrorCenterCauseItem): this;
483
461
  }
484
-
485
462
  // File: src/classes/ErrorCenterInstance.d.ts
486
463
  import { ErrorCenterHandler } from './ErrorCenterHandler';
487
464
  import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
488
465
  /**
489
- * Class for managing error storage and handling within an instance.
466
+ * Class for managing error storage within an instance.
490
467
  */
491
468
  export declare class ErrorCenterInstance {
492
469
  constructor(causes?: ErrorCenterCauseList, handler?: ErrorCenterHandler);
@@ -496,13 +473,13 @@ export declare class ErrorCenterInstance {
496
473
  addList(causes: ErrorCenterCauseList): this;
497
474
  addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): this;
498
475
  addHandlerList(handlers: ErrorCenterHandlerList): this;
476
+ addCallback(callback: ErrorCenterHandlerCallback): this;
499
477
  on(cause: ErrorCenterCauseItem): this;
500
478
  }
501
-
502
479
  // File: src/classes/EventItem.d.ts
503
480
  import { ElementOrString, ElementOrWindow, EventListenerDetail, EventOptions } from '../types/basicTypes';
504
481
  /**
505
- * Advanced wrapper for managing event listeners on DOM elements.
482
+ * Wrapper for managing DOM event listeners.
506
483
  */
507
484
  export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
508
485
  constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
@@ -520,11 +497,10 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
520
497
  toggle(activity: boolean): this;
521
498
  reset(): this;
522
499
  }
523
-
524
500
  // File: src/classes/Formatters.d.ts
525
- import { FormattersType, FormattersOptionsList, FormattersOptionsCurrency, FormattersOptionsDate, FormattersOptionsName, FormattersOptionsNumber, FormattersOptionsPlural, FormattersOptionsUnit, FormattersReturn, FormattersListProp, FormattersItemProp } from '../types/formattersTypes';
501
+ import { FormattersOptionsList, FormattersListProp, FormattersItemProp, FormattersReturn } from '../types/formattersTypes';
526
502
  /**
527
- * Class for formatting a list of data.
503
+ * Class for formatting data lists.
528
504
  */
529
505
  export declare class Formatters<Options extends FormattersOptionsList = FormattersOptionsList, List extends FormattersListProp = FormattersListProp, Item extends FormattersItemProp<List> = FormattersItemProp<List>> {
530
506
  constructor(options: Options, list?: List | undefined);
@@ -538,12 +514,11 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
538
514
  setList(list?: List): this;
539
515
  to(): FormattersReturn<List, Options>;
540
516
  }
541
-
542
517
  // File: src/classes/Geo.d.ts
543
518
  import { GeoInstance } from './GeoInstance';
544
519
  import { GeoItem, GeoItemFull } from '../types/geoTypes';
545
520
  /**
546
- * Static class for working with geographical data.
521
+ * Static class for geographical data.
547
522
  */
548
523
  export declare class Geo {
549
524
  static getObject(): GeoInstance;
@@ -569,13 +544,11 @@ export declare class Geo {
569
544
  static setTimezone(timezone: number): void;
570
545
  static setValueDefault(code?: string | (() => string)): void;
571
546
  }
572
-
573
547
  // File: src/classes/GeoFlag.d.ts
574
- import { GeoIntl } from './GeoIntl';
575
- import { GeoFlagItem, GeoFlagNational } from '../types/geoTypes';
548
+ import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
576
549
  export declare const GEO_FLAG_ICON_NAME = "f";
577
550
  /**
578
- * Class for working with flags and geographic information.
551
+ * Class for working with flags and geography.
579
552
  */
580
553
  export declare class GeoFlag {
581
554
  static flags: Record<string, string>;
@@ -590,12 +563,11 @@ export declare class GeoFlag {
590
563
  getNationalLanguage(codes?: string[], sort?: boolean): GeoFlagNational[];
591
564
  setCode(code: string): this;
592
565
  }
593
-
594
566
  // File: src/classes/GeoInstance.d.ts
595
567
  import { GeoItem, GeoItemFull } from '../types/geoTypes';
596
568
  export declare const UI_GEO_COOKIE_KEY = "ui-geo-code";
597
569
  /**
598
- * Base class for working with geographic data.
570
+ * Base class for geographic data.
599
571
  */
600
572
  export declare class GeoInstance {
601
573
  constructor();
@@ -621,13 +593,12 @@ export declare class GeoInstance {
621
593
  setTimezone(timezone: number): void;
622
594
  setValueDefault(code?: string | (() => string)): void;
623
595
  }
624
-
625
596
  // File: src/classes/GeoIntl.d.ts
626
597
  import { ErrorCenterInstance } from './ErrorCenterInstance';
627
- import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
598
+ import { NumberOrStringOrDate, NumberOrString } from '../types/basicTypes';
628
599
  import { GeoDate } from '../types/geoTypes';
629
600
  /**
630
- * Geo internationalization utility class.
601
+ * Intl API wrapper for internationalization.
631
602
  */
632
603
  export declare class GeoIntl {
633
604
  static isItem(code?: string): boolean;
@@ -654,17 +625,16 @@ export declare class GeoIntl {
654
625
  relativeLimit(value: NumberOrStringOrDate, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): string;
655
626
  relativeByValue(value: NumberOrString, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): string;
656
627
  month(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['month']): string;
657
- months(style?: Intl.DateTimeFormatOptions['month']): ItemValue<number | undefined>[];
628
+ months(style?: Intl.DateTimeFormatOptions['month']): any[];
658
629
  weekday(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['weekday']): string;
659
- weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ItemValue<number | undefined>[];
630
+ weekdays(style?: Intl.DateTimeFormatOptions['weekday']): any[];
660
631
  time(value: NumberOrStringOrDate): string;
661
632
  sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
662
633
  }
663
-
664
634
  // File: src/classes/GeoPhone.d.ts
665
635
  import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
666
636
  /**
667
- * Class for storing and processing phone number masks.
637
+ * Class for phone mask processing.
668
638
  */
669
639
  export declare class GeoPhone {
670
640
  static get(code: string): GeoPhoneValue | undefined;
@@ -675,21 +645,42 @@ export declare class GeoPhone {
675
645
  static toMask(phone: string, masks?: string[]): string | undefined;
676
646
  static removeZero(phone: string): string;
677
647
  }
678
-
648
+ // File: src/classes/GeoUnit.d.ts
649
+ import { NumberOrString } from '../types/basicTypes';
650
+ /**
651
+ * Class for localized unit formatting.
652
+ */
653
+ export declare class GeoUnit {
654
+ static getInstance(code?: string): GeoUnit;
655
+ constructor(code?: string);
656
+ getLocation(): string;
657
+ millimeter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
658
+ centimeter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
659
+ meter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
660
+ kilometer(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
661
+ squareMeter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
662
+ hectare(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
663
+ gram(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
664
+ kilogram(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
665
+ tonne(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
666
+ milliliter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
667
+ liter(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
668
+ celsius(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
669
+ kilometerPerHour(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
670
+ }
679
671
  // File: src/classes/Global.d.ts
680
672
  /**
681
- * Static class for global data storage.
673
+ * Static class for application-wide data.
682
674
  */
683
675
  export declare class Global {
684
676
  static getItem(): Record<string, any>;
685
677
  static get<R = any>(name: string): R;
686
678
  static add(data: Record<string, any>): void;
687
679
  }
688
-
689
680
  // File: src/classes/Hash.d.ts
690
681
  import { HashInstance } from './HashInstance';
691
682
  /**
692
- * Static class for working with URL hash data.
683
+ * Static class for URL hash parameters.
693
684
  */
694
685
  export declare class Hash {
695
686
  static getItem(): HashInstance;
@@ -699,14 +690,13 @@ export declare class Hash {
699
690
  static removeWatch<T>(name: string, callback: (value: T) => void): void;
700
691
  static reload(): void;
701
692
  }
702
-
703
693
  // File: src/classes/HashInstance.d.ts
704
694
  import { UrlInstanceAbstract } from './UrlInstanceAbstract';
705
695
  /**
706
- * Class for working with URL hash data.
696
+ * Class for URL hash parameters.
707
697
  */
708
- export declare class HashInstance extends UrlInstanceAbstract {}
709
-
698
+ export declare class HashInstance extends UrlInstanceAbstract {
699
+ }
710
700
  // File: src/classes/Icons.d.ts
711
701
  export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
712
702
  export type IconsConfig = {
@@ -729,7 +719,6 @@ export declare class Icons {
729
719
  static setUrl(url: string): void;
730
720
  static setConfig(config: IconsConfig): void;
731
721
  }
732
-
733
722
  // File: src/classes/Loading.d.ts
734
723
  import { LoadingInstance } from './LoadingInstance';
735
724
  import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
@@ -742,23 +731,16 @@ export declare class Loading {
742
731
  static getItem(): LoadingInstance;
743
732
  static show(): void;
744
733
  static hide(): void;
745
- static registrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
746
- static unregistrationEvent(listener: EventListenerDetail<CustomEvent, any>, element?: ElementOrString<HTMLElement>): void;
734
+ static registrationEvent(listener: EventListenerDetail<CustomEvent, { loading: boolean }>, element?: ElementOrString<HTMLElement>): void;
735
+ static unregistrationEvent(listener: EventListenerDetail<CustomEvent, { loading: boolean }>, element?: ElementOrString<HTMLElement>): void;
747
736
  }
748
-
749
737
  // File: src/classes/LoadingInstance.d.ts
750
- import { EventItem } from './EventItem';
751
738
  import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
752
739
  export type LoadingDetail = {
753
740
  loading: boolean;
754
741
  };
755
- export type LoadingRegistrationItem = {
756
- item: EventItem<Window, CustomEvent, LoadingDetail>;
757
- listener: EventListenerDetail<CustomEvent, LoadingDetail>;
758
- element?: ElementOrString<HTMLElement>;
759
- };
760
742
  /**
761
- * Class for global loading management instance.
743
+ * Class for global loading management.
762
744
  */
763
745
  export declare class LoadingInstance {
764
746
  constructor(eventName?: string);
@@ -769,14 +751,13 @@ export declare class LoadingInstance {
769
751
  registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
770
752
  unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
771
753
  }
772
-
773
754
  // File: src/classes/Meta.d.ts
774
755
  import { MetaManager } from './MetaManager';
775
756
  import { MetaOg } from './MetaOg';
776
757
  import { MetaTwitter } from './MetaTwitter';
777
758
  import { MetaRobots, MetaTag } from '../types/metaTypes';
778
759
  /**
779
- * Class for managing meta tags (HTML, OG, Twitter).
760
+ * Class for managing meta tags.
780
761
  */
781
762
  export declare class Meta extends MetaManager<MetaTag[]> {
782
763
  constructor();
@@ -804,29 +785,24 @@ export declare class Meta extends MetaManager<MetaTag[]> {
804
785
  html(): string;
805
786
  htmlTitle(): string;
806
787
  }
807
-
808
788
  // File: src/classes/MetaManager.d.ts
809
- type MetaList<T extends readonly string[]> = {
810
- [K in T[number]]?: string;
811
- };
812
789
  /**
813
- * Base class for meta tag management.
790
+ * Class for meta tags management.
814
791
  */
815
- export declare class MetaManager<T extends readonly string[], Key extends keyof MetaList<T> = keyof MetaList<T>> {
792
+ export declare class MetaManager<T extends readonly string[], Key extends keyof any = any> {
816
793
  constructor(listMeta: T, isProperty?: boolean);
817
794
  getListMeta(): T;
818
795
  get(name: Key): string;
819
- getItems(): MetaList<T>;
796
+ getItems(): Record<string, string>;
820
797
  html(): string;
821
798
  set(name: Key, content: string): this;
822
- setByList(metaList: MetaList<T>): this;
799
+ setByList(metaList: Record<string, string>): this;
823
800
  }
824
-
825
801
  // File: src/classes/MetaOg.d.ts
826
802
  import { MetaManager } from './MetaManager';
827
803
  import { MetaOpenGraphTag, MetaOpenGraphType } from '../types/metaTypes';
828
804
  /**
829
- * Class for managing Open Graph meta tags.
805
+ * Class for Open Graph tags.
830
806
  */
831
807
  export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
832
808
  constructor();
@@ -845,14 +821,13 @@ export declare class MetaOg extends MetaManager<MetaOpenGraphTag[]> {
845
821
  setLocale(locale: string): this;
846
822
  setSiteName(siteName: string): this;
847
823
  }
848
-
849
824
  // File: src/classes/MetaStatic.d.ts
850
825
  import { Meta } from './Meta';
851
826
  import { MetaOg } from './MetaOg';
852
827
  import { MetaTwitter } from './MetaTwitter';
853
828
  import { MetaRobots } from '../types/metaTypes';
854
829
  /**
855
- * Static interface for meta tag management.
830
+ * Static class for meta tags.
856
831
  */
857
832
  export declare class MetaStatic {
858
833
  static getItem(): Meta;
@@ -880,12 +855,11 @@ export declare class MetaStatic {
880
855
  static html(): string;
881
856
  static htmlTitle(): string;
882
857
  }
883
-
884
858
  // File: src/classes/MetaTwitter.d.ts
885
859
  import { MetaManager } from './MetaManager';
886
860
  import { MetaTwitterCard, MetaTwitterTag } from '../types/metaTypes';
887
861
  /**
888
- * Class for managing Twitter Card meta tags.
862
+ * Class for Twitter Card tags.
889
863
  */
890
864
  export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
891
865
  constructor();
@@ -904,11 +878,10 @@ export declare class MetaTwitter extends MetaManager<MetaTwitterTag[]> {
904
878
  setDescription(description: string): this;
905
879
  setImage(image: string): this;
906
880
  }
907
-
908
881
  // File: src/classes/Query.d.ts
909
882
  import { QueryInstance } from './QueryInstance';
910
883
  /**
911
- * Static class for working with URL query parameters.
884
+ * Static class for URL query parameters.
912
885
  */
913
886
  export declare class Query {
914
887
  static getItem(): QueryInstance;
@@ -918,18 +891,17 @@ export declare class Query {
918
891
  static removeWatch<T>(name: string, callback: (value: T) => void): void;
919
892
  static reload(): void;
920
893
  }
921
-
922
894
  // File: src/classes/QueryInstance.d.ts
923
895
  import { UrlInstanceAbstract } from './UrlInstanceAbstract';
924
896
  /**
925
- * Class for working with URL query parameters.
897
+ * Class for URL query parameters.
926
898
  */
927
- export declare class QueryInstance extends UrlInstanceAbstract {}
928
-
899
+ export declare class QueryInstance extends UrlInstanceAbstract {
900
+ }
929
901
  // File: src/classes/ResumableTimer.d.ts
930
902
  import { FunctionVoid } from '../types/basicTypes';
931
903
  /**
932
- * Timer that can be paused and resumed.
904
+ * Timer class with pause/resume support.
933
905
  */
934
906
  export declare class ResumableTimer {
935
907
  constructor(callback: FunctionVoid, delay?: number, blockStart?: boolean);
@@ -938,11 +910,10 @@ export declare class ResumableTimer {
938
910
  reset(): this;
939
911
  clear(): this;
940
912
  }
941
-
942
913
  // File: src/classes/ScrollbarWidth.d.ts
943
914
  import { DataStorage } from './DataStorage';
944
915
  /**
945
- * Class for measuring scrollbar width.
916
+ * Class for getting the scroll width.
946
917
  */
947
918
  export declare class ScrollbarWidth {
948
919
  static is(): Promise<boolean>;
@@ -950,15 +921,13 @@ export declare class ScrollbarWidth {
950
921
  static getStorage(): DataStorage<number>;
951
922
  static getCalculate(): boolean;
952
923
  }
953
-
954
924
  // File: src/classes/SearchList.d.ts
955
925
  import { SearchListData } from './SearchListData';
956
926
  import { SearchListItem } from './SearchListItem';
957
- import { SearchListMatcher } from './SearchListMatcher';
958
927
  import { SearchListOptions } from './SearchListOptions';
959
928
  import { SearchColumns, SearchFormatList, SearchItem, SearchListValue, SearchOptions } from '../types/searchTypes';
960
929
  /**
961
- * Main manager for searchable lists.
930
+ * Main class for searchable lists.
962
931
  */
963
932
  export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>> {
964
933
  constructor(list: SearchListValue<T>, columns?: K, value?: string, options?: SearchOptions);
@@ -974,13 +943,12 @@ export declare class SearchList<T extends SearchItem, K extends SearchColumns<T>
974
943
  setOptions(options: SearchOptions): this;
975
944
  to(): SearchFormatList<T, K>;
976
945
  }
977
-
978
946
  // File: src/classes/SearchListData.d.ts
979
947
  import { SearchListItem } from './SearchListItem';
980
948
  import { SearchListOptions } from './SearchListOptions';
981
- import { SearchCacheItem, SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
949
+ import { SearchColumns, SearchFormatItem, SearchFormatList, SearchItem, SearchListValue } from '../types/searchTypes';
982
950
  /**
983
- * Manager for search data and caching.
951
+ * Class for managing search data list.
984
952
  */
985
953
  export declare class SearchListData<T extends SearchItem, K extends SearchColumns<T>> {
986
954
  constructor(list: SearchListValue<T>, columns: K | undefined, item: SearchListItem, options: SearchListOptions);
@@ -995,15 +963,12 @@ export declare class SearchListData<T extends SearchItem, K extends SearchColumn
995
963
  getColumns(): K | undefined;
996
964
  setList(list: SearchListValue<T>): this;
997
965
  setColumns(columns?: SearchColumns<T>): this;
998
- findCacheItem(item: T): SearchCacheItem<T> | undefined;
999
- forEach(callback: (item: SearchCacheItem<T>['item'], value: SearchCacheItem<T>['value']) => SearchFormatItem<T, K> | undefined): SearchFormatList<T, K>;
1000
966
  toFormatItem(item: T, selection: boolean): SearchFormatItem<T, K>;
1001
967
  }
1002
-
1003
968
  // File: src/classes/SearchListItem.d.ts
1004
969
  import { SearchListOptions } from './SearchListOptions';
1005
970
  /**
1006
- * State for a single search item.
971
+ * Class representing search item value.
1007
972
  */
1008
973
  export declare class SearchListItem {
1009
974
  constructor(value: string | undefined, options: SearchListOptions);
@@ -1014,26 +979,23 @@ export declare class SearchListItem {
1014
979
  get(): string;
1015
980
  set(value?: string): this;
1016
981
  }
1017
-
1018
982
  // File: src/classes/SearchListMatcher.d.ts
1019
983
  import { SearchListItem } from './SearchListItem';
1020
984
  import { SearchListOptions } from './SearchListOptions';
1021
- import { SearchCacheItem } from '../types/searchTypes';
1022
985
  /**
1023
- * Logic for matching search items.
986
+ * Class for matching search queries.
1024
987
  */
1025
988
  export declare class SearchListMatcher {
1026
989
  constructor(item: SearchListItem, options: SearchListOptions);
1027
990
  is(): boolean;
1028
- isSelection(value: SearchCacheItem<any>['value']): boolean;
991
+ isSelection(value: any): boolean;
1029
992
  get(): RegExp | undefined;
1030
993
  update(): void;
1031
994
  }
1032
-
1033
995
  // File: src/classes/SearchListOptions.d.ts
1034
996
  import { SearchOptions } from '../types/searchTypes';
1035
997
  /**
1036
- * Class for managing search options.
998
+ * Class for search options.
1037
999
  */
1038
1000
  export declare class SearchListOptions {
1039
1001
  constructor(options?: SearchOptions | undefined);
@@ -1045,10 +1007,9 @@ export declare class SearchListOptions {
1045
1007
  getClassName(): string;
1046
1008
  setOptions(options: SearchOptions): this;
1047
1009
  }
1048
-
1049
1010
  // File: src/classes/ServerStorage.d.ts
1050
1011
  /**
1051
- * SSR-safe storage management.
1012
+ * Class for storage during SSR.
1052
1013
  */
1053
1014
  export declare class ServerStorage {
1054
1015
  static init(listener: () => Record<string, any> | undefined): typeof ServerStorage;
@@ -1060,10 +1021,9 @@ export declare class ServerStorage {
1060
1021
  static remove(key: string): void;
1061
1022
  static toString(): string;
1062
1023
  }
1063
-
1064
1024
  // File: src/classes/StorageCallback.d.ts
1065
1025
  /**
1066
- * Helper for managing storage callbacks.
1026
+ * Class for storage callback lists.
1067
1027
  */
1068
1028
  export declare class StorageCallback<T = any, Callback = (value: T) => void | Promise<void>> {
1069
1029
  static getInstance<T>(name: string, group?: string): StorageCallback<T, (value: T) => void | Promise<void>>;
@@ -1076,12 +1036,11 @@ export declare class StorageCallback<T = any, Callback = (value: T) => void | Pr
1076
1036
  preparation(): this;
1077
1037
  run(value: T): Promise<this>;
1078
1038
  }
1079
-
1080
1039
  // File: src/classes/Translate.d.ts
1081
1040
  import { TranslateInstance } from './TranslateInstance';
1082
1041
  import { TranslateCode, TranslateConfig, TranslateDataFile, TranslateList } from '../types/translateTypes';
1083
1042
  /**
1084
- * Static interface for translations.
1043
+ * Class for translations.
1085
1044
  */
1086
1045
  export declare class Translate {
1087
1046
  static get(name: string, replacement?: string[] | Record<string, string | number>): Promise<string>;
@@ -1099,11 +1058,10 @@ export declare class Translate {
1099
1058
  static setReadApi(value: boolean): void;
1100
1059
  static setConfig(config: TranslateConfig): void;
1101
1060
  }
1102
-
1103
1061
  // File: src/classes/TranslateFile.d.ts
1104
1062
  import { TranslateDataFile, TranslateDataFileList } from '../types/translateTypes';
1105
1063
  /**
1106
- * Class for managing translation files.
1064
+ * Class for translation files.
1107
1065
  */
1108
1066
  export declare class TranslateFile {
1109
1067
  constructor(data?: TranslateDataFile, language?: string | (() => string), location?: string | (() => string));
@@ -1113,12 +1071,11 @@ export declare class TranslateFile {
1113
1071
  getList(): Promise<TranslateDataFileList | undefined>;
1114
1072
  add(data: TranslateDataFile): void;
1115
1073
  }
1116
-
1117
1074
  // File: src/classes/TranslateInstance.d.ts
1118
1075
  import { TranslateFile } from './TranslateFile';
1119
1076
  import { TranslateCode, TranslateDataFile, TranslateList } from '../types/translateTypes';
1120
1077
  /**
1121
- * Manager for translation instances.
1078
+ * Class for translations.
1122
1079
  */
1123
1080
  export declare class TranslateInstance {
1124
1081
  constructor(url?: string, propsName?: string, files?: TranslateFile);
@@ -1135,10 +1092,9 @@ export declare class TranslateInstance {
1135
1092
  setPropsName(name: string): this;
1136
1093
  setReadApi(value: boolean): this;
1137
1094
  }
1138
-
1139
1095
  // File: src/classes/UrlInstanceAbstract.d.ts
1140
1096
  /**
1141
- * Abstract class for URL-based state management.
1097
+ * Abstract class for URL-based states.
1142
1098
  */
1143
1099
  export declare abstract class UrlInstanceAbstract {
1144
1100
  get<T>(name: string, defaultValue?: T | (() => T)): T;
@@ -1147,10 +1103,9 @@ export declare abstract class UrlInstanceAbstract {
1147
1103
  removeWatch<T>(name: string, callback: (value: T) => void): this;
1148
1104
  reload(): this;
1149
1105
  }
1150
-
1151
1106
  // File: src/classes/UrlItem.d.ts
1152
1107
  /**
1153
- * Utility for URL manipulation.
1108
+ * Utility class for URLs.
1154
1109
  */
1155
1110
  export declare class UrlItem {
1156
1111
  static getInstance(): UrlItem;
@@ -1177,7 +1132,6 @@ export declare class UrlItem {
1177
1132
  toString(): string;
1178
1133
  toJSON(): string;
1179
1134
  }
1180
-
1181
1135
  // File: src/functions/addTagHighlightMatch.d.ts
1182
1136
  export declare function addTagHighlightMatch(value: string, search?: string | RegExp, className?: string, shouldEscape?: boolean): string;
1183
1137
  // File: src/functions/anyToString.d.ts
@@ -1435,7 +1389,6 @@ export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
1435
1389
  export declare function uniqueArray<T>(value: T[]): T[];
1436
1390
  // File: src/functions/writeClipboardData.d.ts
1437
1391
  export declare function writeClipboardData(text: string): Promise<void>;
1438
-
1439
1392
  // File: src/library.d.ts
1440
1393
  export * from './classes/Api';
1441
1394
  export * from './classes/ApiCache';
@@ -1470,6 +1423,7 @@ export * from './classes/GeoFlag';
1470
1423
  export * from './classes/GeoInstance';
1471
1424
  export * from './classes/GeoIntl';
1472
1425
  export * from './classes/GeoPhone';
1426
+ export * from './classes/GeoUnit';
1473
1427
  export * from './classes/Global';
1474
1428
  export * from './classes/Hash';
1475
1429
  export * from './classes/HashInstance';
@@ -1618,11 +1572,9 @@ export * from './types/geoTypes';
1618
1572
  export * from './types/metaTypes';
1619
1573
  export * from './types/searchTypes';
1620
1574
  export * from './types/translateTypes';
1621
-
1622
1575
  // File: src/media/errorCauseList.d.ts
1623
1576
  import { ErrorCenterCauseList } from '../types/errorCenter';
1624
1577
  export declare const errorCauseList: ErrorCenterCauseList;
1625
-
1626
1578
  // File: src/types/apiTypes.d.ts
1627
1579
  import { ApiErrorItem } from '../classes/ApiErrorItem';
1628
1580
  export declare enum ApiMethodItem {
@@ -1736,7 +1688,6 @@ export type ApiStatusItem = {
1736
1688
  lastMessage?: string;
1737
1689
  };
1738
1690
  export type ApiStatusType = 'success' | 'error' | 'warning' | 'info';
1739
-
1740
1691
  // File: src/types/basicTypes.d.ts
1741
1692
  export type Undefined = undefined | null;
1742
1693
  export type EmptyValue = Undefined | 0 | false | '' | 'undefined' | 'null' | '0' | 'false' | '[]';
@@ -1779,7 +1730,6 @@ export type ImageCoordinator = {
1779
1730
  x: number;
1780
1731
  y: number;
1781
1732
  };
1782
-
1783
1733
  // File: src/types/errorCenter.d.ts
1784
1734
  export type ErrorCenterGroup = string | undefined;
1785
1735
  export type ErrorCenterCauseItem<D = any> = {
@@ -1797,7 +1747,6 @@ export type ErrorCenterHandlerItem = {
1797
1747
  handlers: ErrorCenterHandlerCallback[];
1798
1748
  };
1799
1749
  export type ErrorCenterHandlerList = ErrorCenterHandlerItem[];
1800
-
1801
1750
  // File: src/types/formattersTypes.d.ts
1802
1751
  import { ArrayToItem } from './basicTypes';
1803
1752
  import { GeoDate } from './geoTypes';
@@ -1857,7 +1806,6 @@ export type FormattersListColumns<T extends FormattersListItem, O extends Format
1857
1806
  export type FormattersListProp = FormattersList<FormattersListItem> | FormattersListItem;
1858
1807
  export type FormattersItemProp<List extends FormattersListProp> = ArrayToItem<List>;
1859
1808
  export type FormattersReturn<List extends FormattersListProp, Options extends FormattersOptionsList = FormattersOptionsList, Item extends FormattersItemProp<List> = FormattersItemProp<List>> = List extends any[] ? FormattersListColumns<Item, Options> : (FormattersListColumnItem<Item, Options> | undefined);
1860
-
1861
1809
  // File: src/types/geoTypes.d.ts
1862
1810
  export type GeoDate = 'full' | 'datetime' | 'date' | 'year-month' | 'year' | 'month' | 'day' | 'day-month' | 'time' | 'hour-minute' | 'hour' | 'minute' | 'second';
1863
1811
  export type GeoFirstDay = 1 | 6 | 0;
@@ -1874,6 +1822,21 @@ export interface GeoItem {
1874
1822
  phoneWithin?: string;
1875
1823
  phoneMask?: string | string[];
1876
1824
  nameFormat?: 'fl' | 'fsl' | 'lf' | 'lsf' | string;
1825
+ unit?: {
1826
+ 'millimeter'?: string;
1827
+ 'centimeter'?: string;
1828
+ 'meter'?: string;
1829
+ 'kilometer'?: string;
1830
+ 'square-meter'?: string;
1831
+ 'hectare'?: string;
1832
+ 'gram'?: string;
1833
+ 'kilogram'?: string;
1834
+ 'tonne'?: string;
1835
+ 'milliliter'?: string;
1836
+ 'liter'?: string;
1837
+ 'celsius'?: string;
1838
+ 'kilometer-per-hour'?: string;
1839
+ };
1877
1840
  }
1878
1841
  export interface GeoItemFull extends Omit<GeoItem, 'firstDay'> {
1879
1842
  standard: string;
@@ -1916,7 +1879,6 @@ export interface GeoPhoneMapInfo {
1916
1879
  item?: GeoPhoneMap;
1917
1880
  phone?: string;
1918
1881
  }
1919
-
1920
1882
  // File: src/types/metaTypes.d.ts
1921
1883
  export declare enum MetaTag {
1922
1884
  title = "title",
@@ -2103,7 +2065,6 @@ export declare enum MetaTwitterCard {
2103
2065
  audio = "audio",
2104
2066
  poll = "poll"
2105
2067
  }
2106
-
2107
2068
  // File: src/types/searchTypes.d.ts
2108
2069
  export type SearchItem = Record<string, any>;
2109
2070
  export type SearchColumnPath<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
@@ -2136,7 +2097,6 @@ export type HighlightMatchItem = {
2136
2097
  text: string;
2137
2098
  isMatch: boolean;
2138
2099
  };
2139
-
2140
2100
  // File: src/types/translateTypes.d.ts
2141
2101
  export type TranslateConfig = {
2142
2102
  url?: string;