@dxtmisha/functional-basic 1.8.6 → 1.8.9

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/ai-description.md +14 -18
  3. package/ai-mcp-resources.json +5 -5
  4. package/ai-resources/prompts.json +8 -0
  5. package/ai-types.md +1720 -1045
  6. package/dist/classes/ApiCache.d.ts +2 -2
  7. package/dist/classes/ApiErrorStorage.d.ts +9 -1
  8. package/dist/classes/ApiHydration.d.ts +1 -0
  9. package/dist/classes/ApiInstance.d.ts +1 -0
  10. package/dist/classes/ApiStatus.d.ts +1 -0
  11. package/dist/classes/BroadcastMessage.d.ts +1 -0
  12. package/dist/classes/Cache.d.ts +1 -0
  13. package/dist/classes/CacheItem.d.ts +3 -0
  14. package/dist/classes/CookieBlock.d.ts +1 -1
  15. package/dist/classes/CookieBlockInstance.d.ts +2 -1
  16. package/dist/classes/CookieStorage.d.ts +2 -1
  17. package/dist/classes/DataStorage.d.ts +1 -1
  18. package/dist/classes/Datetime.d.ts +5 -4
  19. package/dist/classes/EventItem.d.ts +7 -28
  20. package/dist/classes/Formatters.d.ts +6 -10
  21. package/dist/classes/GeoFlag.d.ts +1 -1
  22. package/dist/classes/GeoInstance.d.ts +1 -0
  23. package/dist/classes/GeoIntl.d.ts +23 -36
  24. package/dist/classes/GeoPhone.d.ts +2 -0
  25. package/dist/classes/Global.d.ts +1 -1
  26. package/dist/classes/Hash.d.ts +1 -1
  27. package/dist/classes/Icons.d.ts +8 -8
  28. package/dist/classes/Loading.d.ts +8 -12
  29. package/dist/classes/LoadingInstance.d.ts +10 -22
  30. package/dist/classes/Meta.d.ts +4 -1
  31. package/dist/classes/MetaManager.d.ts +2 -0
  32. package/dist/classes/MetaOg.d.ts +7 -2
  33. package/dist/classes/MetaTwitter.d.ts +7 -2
  34. package/dist/classes/Query.d.ts +1 -1
  35. package/dist/classes/ResumableTimer.d.ts +4 -0
  36. package/dist/classes/ScrollbarWidth.d.ts +1 -0
  37. package/dist/classes/SearchList.d.ts +4 -0
  38. package/dist/classes/SearchListData.d.ts +3 -2
  39. package/dist/classes/SearchListMatcher.d.ts +3 -2
  40. package/dist/classes/ServerStorage.d.ts +5 -2
  41. package/dist/classes/StorageCallback.d.ts +2 -0
  42. package/dist/classes/Translate.d.ts +6 -8
  43. package/dist/classes/TranslateInstance.d.ts +4 -7
  44. package/dist/classes/UrlInstanceAbstract.d.ts +4 -0
  45. package/dist/functions/getMouseClient.d.ts +1 -1
  46. package/dist/functions/getMouseClientX.d.ts +1 -1
  47. package/dist/functions/getMouseClientY.d.ts +1 -1
  48. package/dist/library.js +11 -9
  49. package/package.json +4 -4
@@ -131,7 +131,7 @@ export declare class ApiCache {
131
131
  * Сохраняет данные в кэш с использованием слушателя.
132
132
  * @param key cache key / ключ кэша
133
133
  * @param value data to be stored / данные для хранения
134
- * @returns Promise<void>
134
+ * @returns Promise<void> / ничего не возвращает
135
135
  */
136
136
  protected static setItemOrListener(key: string, value: ApiCacheItem): Promise<void>;
137
137
  /**
@@ -139,7 +139,7 @@ export declare class ApiCache {
139
139
  *
140
140
  * Удаляет данные из кэша с использованием слушателя.
141
141
  * @param key cache key / ключ кэша
142
- * @returns Promise<void>
142
+ * @returns Promise<void> / ничего не возвращает
143
143
  */
144
144
  protected static removeItemOrListener(key: string): Promise<void>;
145
145
  /**
@@ -64,12 +64,20 @@ export declare class ApiErrorStorage {
64
64
  * @returns extracted error code or undefined / извлеченный код ошибки или undefined
65
65
  */
66
66
  protected getBody(response: Response): Promise<any>;
67
+ /**
68
+ * Retrieves data from the response body by key.
69
+ *
70
+ * Получает данные из тела ответа по ключу.
71
+ * @param body response body / тело ответа
72
+ * @param key property key / ключ свойства
73
+ * @returns extracted value or undefined / извлеченное значение или undefined
74
+ */
67
75
  protected getDataByKey<R = string>(body: any, key: string): R | undefined;
68
76
  /**
69
77
  * Attempts to extract an error code from the response body in JSON format.
70
78
  *
71
79
  * Пытается извлечь код ошибки из тела ответа в формате JSON.
72
- * @param response fetch response / Ответ fetch
80
+ * @param body response body / тело ответа
73
81
  * @returns extracted error code or undefined / извлеченный код ошибки или undefined
74
82
  */
75
83
  protected getCode(body: any): string | undefined;
@@ -6,6 +6,7 @@ import { ApiFetch, ApiHydrationList } from '../types/apiTypes';
6
6
  * Класс для сбора данных API для последующей гидратации на стороне клиента при SSR.
7
7
  */
8
8
  export declare class ApiHydration {
9
+ /** Hydration data list / Список данных гидратации */
9
10
  protected list: ApiHydrationList;
10
11
  /**
11
12
  * Initializes the response with hydration data.
@@ -57,6 +57,7 @@ export declare class ApiInstance {
57
57
  protected hydration: ApiHydration;
58
58
  /** Timeout for the request in milliseconds / Таймаут запроса в миллисекундах */
59
59
  protected timeout: number;
60
+ /** Base URL origin / Базовый origin URL */
60
61
  protected origin?: string;
61
62
  /** Wrapper function for requests / Функция-обертка для запросов */
62
63
  protected wrapper?: <R>(callback: () => Promise<R>, apiFetch: ApiFetch) => Promise<R>;
@@ -5,6 +5,7 @@ import { ApiStatusItem, ApiStatusType } from '../types/apiTypes';
5
5
  * Класс для управления статусом запросов API.
6
6
  */
7
7
  export declare class ApiStatus {
8
+ /** API status item data / Данные элемента статуса API */
8
9
  protected value?: ApiStatusItem;
9
10
  /**
10
11
  * Returns the last status item data.
@@ -7,6 +7,7 @@ import { ErrorCenterInstance } from './ErrorCenterInstance';
7
7
  export declare class BroadcastMessage<Message = any> {
8
8
  protected callback?: ((event: MessageEvent<Message>) => void) | undefined;
9
9
  protected callbackError?: ((event: MessageEvent<Message>) => void) | undefined;
10
+ /** BroadcastChannel instance / Экземпляр BroadcastChannel */
10
11
  protected channel?: BroadcastChannel;
11
12
  /**
12
13
  * Constructor that initializes the broadcast channel with event handlers.
@@ -5,6 +5,7 @@
5
5
  * @deprecated This class is obsolete and should not be used / Этот класс устарел и не рекомендуется к использованию
6
6
  */
7
7
  export declare class Cache {
8
+ /** Map of cached items / Карта кэшированных элементов */
8
9
  private cache;
9
10
  /**
10
11
  * Returns a cached value for the given name. If not cached, executes the callback and stores the result.
@@ -6,8 +6,11 @@
6
6
  */
7
7
  export declare class CacheItem<T> {
8
8
  private readonly callback;
9
+ /** Cached value / Кэшированное значение */
9
10
  private cache?;
11
+ /** Previous cached value / Предыдущее кэшированное значение */
10
12
  private cacheOld?;
13
+ /** Dependency comparison array / Массив сравнения зависимостей */
11
14
  private comparisons;
12
15
  /**
13
16
  * Creates a new CacheItem instance.
@@ -24,7 +24,7 @@ export declare class CookieBlock {
24
24
  *
25
25
  * Изменение статуса.
26
26
  * @param value value to be changed/ значение, на которое будет изменен
27
- * @returns void
27
+ * @returns void / ничего не возвращает
28
28
  */
29
29
  static set(value: boolean): void;
30
30
  }
@@ -4,6 +4,7 @@
4
4
  * Класс для изменения статуса доступа к куки.
5
5
  */
6
6
  export declare class CookieBlockInstance {
7
+ /** Data storage for cookie block status / Хранилище данных для статуса блокировки куки */
7
8
  private storage;
8
9
  /**
9
10
  * Obtaining status.
@@ -17,7 +18,7 @@ export declare class CookieBlockInstance {
17
18
  *
18
19
  * Изменение статуса.
19
20
  * @param value value to be changed/ значение, на которое будет изменен
20
- * @returns void
21
+ * @returns void / ничего не возвращает
21
22
  */
22
23
  set(value: boolean): void;
23
24
  }
@@ -42,6 +42,7 @@ export declare class CookieStorage {
42
42
  *
43
43
  * Инициализирует хранилище слушателями.
44
44
  * @param getListener Storage mechanism for getting data / механизм хранения для получения данных
45
+ * @param getListenerRaw Storage mechanism for getting raw cookie string / механизм хранения для получения сырой строки cookie
45
46
  * @param setListener Storage mechanism for setting data / механизм хранения для сохранения данных
46
47
  */
47
48
  static init(getListener?: (key: string) => any | undefined, getListenerRaw?: () => string, setListener?: (key: string, value: any, cookie: string, options?: CookieOptions) => void): void;
@@ -75,7 +76,7 @@ export declare class CookieStorage {
75
76
  *
76
77
  * Удаление данных из хранилища.
77
78
  * @param name cookie name / имя cookie
78
- * @returns void
79
+ * @returns void / ничего не возвращает
79
80
  */
80
81
  static remove(name: string): void;
81
82
  /**
@@ -15,7 +15,7 @@ export declare class DataStorage<T> {
15
15
  *
16
16
  * Изменение префикса в названиях ключей. Вызывать нужно в начале кода.
17
17
  * @param newPrefix new prefix/ новый префикс
18
- * @returns void
18
+ * @returns void / ничего не возвращает
19
19
  */
20
20
  static setPrefix(newPrefix: string): void;
21
21
  /**
@@ -18,8 +18,11 @@ import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTy
18
18
  export declare class Datetime {
19
19
  protected type: GeoDate;
20
20
  protected code: string;
21
+ /** Date object / Объект даты */
21
22
  protected date: Date;
23
+ /** Whether 24-hour format is used / Использовать ли 24-часовой формат */
22
24
  protected hour24: boolean;
25
+ /** Callback on date update / Колбэк при изменении даты */
23
26
  protected watch?: (date: Date, type: GeoDate, hour24: boolean) => void;
24
27
  /**
25
28
  * Constructor
@@ -208,8 +211,7 @@ export declare class Datetime {
208
211
  * Change the date completely.
209
212
  *
210
213
  * Изменять полностью дату.
211
- * @param value an integer value representing the number /
212
- * целочисленное значение, представляющее число
214
+ * @param value an integer value representing the number / целочисленное значение, представляющее число
213
215
  * @returns this instance / текущий экземпляр
214
216
  */
215
217
  setDate(value: NumberOrStringOrDate): this;
@@ -225,8 +227,7 @@ export declare class Datetime {
225
227
  * Whether to use a 24-hour time format.
226
228
  *
227
229
  * Использовать ли 24-часовой формат времени.
228
- * @param value If true, output the 24-hour time format /
229
- * если true, выводить 24-часовой формат времени
230
+ * @param value If true, output the 24-hour time format / если true, выводить 24-часовой формат времени
230
231
  * @returns this instance / текущий экземпляр
231
232
  */
232
233
  setHour24(value: boolean): this;
@@ -83,40 +83,19 @@ export declare class EventItem<E extends ElementOrWindow, O extends Event, D ext
83
83
  protected listener?: EventListenerDetail<O, D> | undefined;
84
84
  protected options?: EventOptions;
85
85
  protected detail?: D | undefined;
86
- /**
87
- * Element.
88
- *
89
- * Элемент.
90
- */
86
+ /** Target element / Целевой элемент */
91
87
  protected element?: E;
92
- /**
93
- * Element for checking. If the element is missing in the DOM, the event is turned off.
94
- *
95
- * Элемент для проверки. Если элемент отсутствует в DOM, событие выключается.
96
- */
88
+ /** Element for checking control / Элемент для проверки контроля */
97
89
  protected elementControl?: ElementOrWindow;
90
+ /** Flag whether control element was explicitly set / Флаг явной установки управляющего элемента */
98
91
  protected elementControlEdit?: boolean;
99
- /**
100
- * A case-sensitive string representing the event type to listen for.
101
- *
102
- * Чувствительная к регистру строка, представляющая тип обрабатываемого события.
103
- */
92
+ /** Event types array / Массив типов событий */
104
93
  protected type: string[];
105
- /**
106
- * The object that receives a notification (an object that implements the Event interface)
107
- * when an event of the specified type occurs. This must be null, an object with a
108
- * handleEvent() method, or a JavaScript function.
109
- *
110
- * Объект, который принимает уведомление, когда событие указанного типа произошло.
111
- * Это должен быть объект, реализующий интерфейс EventListener или просто функция JavaScript.
112
- */
94
+ /** Event listener callback wrapper / Обертка колбэка слушателя событий */
113
95
  protected listenerRecent: (event?: O | ResizeObserverEntry) => void;
114
- /**
115
- * Event states.
116
- *
117
- * Состояния события.
118
- */
96
+ /** Active state flag / Флаг активности */
119
97
  protected activity: boolean;
98
+ /** Active listener items list / Список активных элементов слушателя */
120
99
  protected activityItems: EventActivityItem<E>[];
121
100
  /**
122
101
  * Constructor for EventItem.
@@ -88,10 +88,9 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
88
88
  * @param valueOriginal original value to format/ исходное значение для форматирования
89
89
  * @param item entire item context/ весь контекст элемента
90
90
  * @param type type of formatter to use/ тип используемого форматировщика
91
- * @param options additional options for the specific formatter/
92
- * дополнительные параметры для конкретного форматировщика
91
+ * @param options additional options for the specific formatter / дополнительные параметры для конкретного форматировщика
93
92
  * @protected
94
- * @returns Formatted string/ отформатированная строка
93
+ * @returns Formatted string / отформатированная строка
95
94
  */
96
95
  protected transformation<Type extends FormattersType>(valueOriginal: any, item: any, type?: Type, options?: FormattersOptionsInformation<Type>): string;
97
96
  /**
@@ -120,11 +119,9 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
120
119
  *
121
120
  * Форматирует полное имя из нескольких имен свойств.
122
121
  * @param item item context containing name components/ контекст элемента, содержащий компоненты имени
123
- * @param options name formatting options (prop names for first, last, surname)/
124
- * параметры форматирования имени (имена свойств для имени, фамилии, отчества)
122
+ * @param options name formatting options (prop names for first, last, surname) / параметры форматирования имени (имена свойств для имени, фамилии, отчества)
125
123
  * @protected
126
- * @returns Formatted name string or empty string if components are missing/
127
- * отформатированная строка имени или пустая строка, если компоненты отсутствуют
124
+ * @returns Formatted name string or empty string if components are missing / отформатированная строка имени или пустая строка, если компоненты отсутствуют
128
125
  */
129
126
  protected formatName(item: Item, options?: FormattersOptionsName): string;
130
127
  /**
@@ -142,10 +139,9 @@ export declare class Formatters<Options extends FormattersOptionsList = Formatte
142
139
  *
143
140
  * Форматирует значение на основе правил множественного числа.
144
141
  * @param value numeric value for pluralization/ числовое значение для плюрализации
145
- * @param options plural formatting options (words and rules)/
146
- * параметры форматирования множественного числа (слова и правила)
142
+ * @param options plural formatting options (words and rules) / параметры форматирования множественного числа (слова и правила)
147
143
  * @protected
148
- * @returns Formatted plural string/ отформатированная строка множественного числа
144
+ * @returns Formatted plural string / отформатированная строка множественного числа
149
145
  */
150
146
  protected formatPlural(value: any, options?: FormattersOptionsPlural): string;
151
147
  /**
@@ -98,7 +98,7 @@ export declare class GeoFlag {
98
98
  *
99
99
  * Изменяет текущую локаль/местоположение.
100
100
  * @param code country and language code / код страны и языка
101
- * @returns this
101
+ * @returns this / текущий экземпляр
102
102
  */
103
103
  setCode(code: string): this;
104
104
  /**
@@ -179,6 +179,7 @@ export declare class GeoInstance {
179
179
  *
180
180
  * Преобразует гео-объект в его стандартное строковое представление (язык-страна).
181
181
  * @param item geo item data / данные гео-объекта
182
+ * @param language optional language override / опциональное переопределение языка
182
183
  * @returns standard code string / строка стандартного кода
183
184
  */
184
185
  toStandard(item: GeoItem, language?: string): string;
@@ -19,31 +19,28 @@ export declare class GeoIntl {
19
19
  * Checks if an instance of the class exists for the specified country code.
20
20
  *
21
21
  * Проверяет, существует ли экземпляр класса для указанного кода страны.
22
- * @param code country code, full form language-country or one of them/
23
- * код страны, полный вид язык-страна или один из них
22
+ * @param code country code, full form language-country or one of them / код страны, полный вид язык-страна или один из них
24
23
  */
25
24
  static isItem(code?: string): boolean;
26
25
  /**
27
26
  * Returns the standard location code.
28
27
  *
29
28
  * Возвращает стандартный код местоположения.
30
- * @param code country code, full form language-country or one of them/
31
- * код страны, полный вид язык-страна или один из них
29
+ * @param code country code, full form language-country or one of them / код страны, полный вид язык-страна или один из них
32
30
  */
33
31
  static getLocation(code?: string): string;
34
32
  /**
35
33
  * Returns an instance of the class according to the specified country code.
36
34
  *
37
35
  * Возвращает экземпляр класса по указанному коду страны.
38
- * @param code country code, full form language-country or one of them/
39
- * код страны, полный вид язык-страна или один из них
36
+ * @param code country code, full form language-country or one of them / код страны, полный вид язык-страна или один из них
40
37
  */
41
38
  static getInstance(code?: string): GeoIntl;
39
+ /** Full geo item data / Полные данные гео-объекта */
42
40
  private readonly geo;
43
41
  /**
44
42
  * Constructor
45
- * @param code country code, full form language-country or one of them/
46
- * код страны, полный вид язык-страна или один из них
43
+ * @param code country code, full form language-country or one of them / код страны, полный вид язык-страна или один из них
47
44
  * @param errorCenter error center instance/ экземпляр центра ошибок
48
45
  */
49
46
  constructor(code?: string, errorCenter?: ErrorCenterInstance);
@@ -63,9 +60,8 @@ export declare class GeoIntl {
63
60
  * The consistent translation of language, region and script display names.
64
61
  *
65
62
  * Последовательный перевод отображаемых названий языка, региона и скрипта.
66
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
67
- * @param typeOptions an object with some or all of the following properties/
68
- * объект с некоторыми или всеми из следующих свойств
63
+ * @param value the code to provide depends on the type / предоставляемый код зависит от типа
64
+ * @param typeOptions an object with some or all of the following properties / объект с некоторыми или всеми из следующих свойств
69
65
  */
70
66
  display(value?: string, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): string;
71
67
  /**
@@ -115,20 +111,17 @@ export declare class GeoIntl {
115
111
  * Currency formatting.
116
112
  *
117
113
  * Форматирование валюты.
118
- * @param value a number, bigint, or string, to format/ число для форматирования
119
- * @param currencyOptions the currency to use in currency formatting/
120
- * валюта для использования в форматировании валюты
121
- * @param numberOnly do not display the currency symbol/ не выводить значок валюты
114
+ * @param value a number, bigint, or string, to format / число для форматирования
115
+ * @param currencyOptions the currency to use in currency formatting / валюта для использования в форматировании валюты
116
+ * @param numberOnly do not display the currency symbol / не выводить значок валюты
122
117
  */
123
118
  currency(value: NumberOrString, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
124
119
  /**
125
120
  * Returns the currency symbol if it exists, otherwise the currency code.
126
121
  *
127
122
  * Возвращает символ для валюты, если он есть, или сам код валюты.
128
- * @param currency the currency to use in currency formatting/
129
- * валюта для использования в форматировании валюты
130
- * @param currencyDisplay how to display the currency in currency formatting/
131
- * как отобразить валюту в формате валюты
123
+ * @param currency the currency to use in currency formatting / валюта для использования в форматировании валюты
124
+ * @param currencyDisplay how to display the currency in currency formatting / как отобразить валюту в формате валюты
132
125
  */
133
126
  currencySymbol(currency: string, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): string;
134
127
  /**
@@ -160,16 +153,14 @@ export declare class GeoIntl {
160
153
  * Number as a percentage (unit).
161
154
  *
162
155
  * Число в виде процента (единица).
163
- * @param value a number, bigint, or string, to format/ число для форматирования
164
- * @param options an object with some or all properties/
165
- * объект с некоторыми или всеми свойствами
156
+ * @param value a number, bigint, or string, to format / число для форматирования
157
+ * @param options an object with some or all properties / объект с некоторыми или всеми свойствами
166
158
  */
167
159
  percentBy100(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
168
160
  /**
169
161
  * Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
170
- * @param value a number, bigint, or string, to format/ число для форматирования
171
- * @param words list of words for formatting (in the format one|two|few|many|other|zero)/
172
- * список слов для форматирования (в формате `one|two|few|many|other|zero`)
162
+ * @param value a number, bigint, or string, to format / число для форматирования
163
+ * @param words list of words for formatting (in the format one|two|few|many|other|zero) / список слов для форматирования (в формате `one|two|few|many|other|zero`)
173
164
  * @param options Property for PluralRules/ свойство для PluralRules
174
165
  * @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
175
166
  */
@@ -189,9 +180,8 @@ export declare class GeoIntl {
189
180
  * Enables language-sensitive relative time formatting.
190
181
  *
191
182
  * Включает форматирование относительного времени с учетом языка.
192
- * @param value a number, bigint, or string, to format/ число для форматирования
193
- * @param styleOptions the length of the internationalized message/
194
- * длина интернационализированного сообщения
183
+ * @param value a number, bigint, or string, to format / число для форматирования
184
+ * @param styleOptions the length of the internationalized message / длина интернационализированного сообщения
195
185
  * @param todayValue current day/ текущий день
196
186
  * @returns formatted relative time/ отформатированное относительное время
197
187
  */
@@ -204,12 +194,10 @@ export declare class GeoIntl {
204
194
  * Включает форматирование относительного времени с учетом языка.
205
195
  * Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
206
196
  * если значение вышло за пределы допустимого.
207
- * @param value a number, bigint, or string, to format/ число для форматирования
208
- * @param limit values that determine the output limit (values per day)/
209
- * значения, по которым определяем предел вывода (значения в день)
210
- * @param todayValue current day/ текущий день
211
- * @param relativeOptions the length of the internationalized message/
212
- * длина интернационализированного сообщения
197
+ * @param value a number, bigint, or string, to format / число для форматирования
198
+ * @param limit values that determine the output limit (values per day) / значения, по которым определяем предел вывода (значения в день)
199
+ * @param todayValue current day / текущий день
200
+ * @param relativeOptions the length of the internationalized message / длина интернационализированного сообщения
213
201
  * @param dateOptions the representation of the month/ представление месяца
214
202
  * @param type type of data format/ тип формата data
215
203
  * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
@@ -289,8 +277,7 @@ export declare class GeoIntl {
289
277
  * The object enables language-sensitive number formatting.
290
278
  *
291
279
  * Объект включает форматирование чисел с учетом языка.
292
- * @param options an object with some or all properties/
293
- * объект с некоторыми или всеми свойствами
280
+ * @param options an object with some or all properties / объект с некоторыми или всеми свойствами
294
281
  */
295
282
  private numberObject;
296
283
  /**
@@ -5,7 +5,9 @@ import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
5
5
  * Класс для хранения и обработка маски телефона.
6
6
  */
7
7
  export declare class GeoPhone {
8
+ /** Phone masks list / Список масок телефонов */
8
9
  protected static list?: GeoPhoneValue[];
10
+ /** Phone codes map / Карта телефонных кодов */
9
11
  protected static map?: Record<string, GeoPhoneMap>;
10
12
  /**
11
13
  * Getting an object with information about the phone code and country.
@@ -23,7 +23,7 @@ export declare class Global {
23
23
  *
24
24
  * Добавляет данные, этот метод работает только 1 раз.
25
25
  * @param data global data/ глобальные данные
26
- * @returns void
26
+ * @returns void / ничего не возвращает
27
27
  */
28
28
  static add(data: Record<string, any>): void;
29
29
  }
@@ -51,7 +51,7 @@ export declare class Hash {
51
51
  * Update hash variable from URL string.
52
52
  *
53
53
  * Обновление переменной хэша из строки URL.
54
- * @returns void
54
+ * @returns void / ничего не возвращает
55
55
  */
56
56
  static reload(): void;
57
57
  }
@@ -1,4 +1,6 @@
1
+ /** Icon item type definition / Определение типа элемента иконки */
1
2
  export type IconsItem = string | Promise<string | any> | (() => Promise<string | any>);
3
+ /** Icon configuration object / Объект конфигурации иконок */
2
4
  export type IconsConfig = {
3
5
  /** URL to the icons storage / URL к хранилищу иконок */
4
6
  url?: string;
@@ -11,7 +13,9 @@ export type IconsConfig = {
11
13
  * Класс для управления иконками.
12
14
  */
13
15
  export declare class Icons {
16
+ /** Registered icons map / Карта зарегистрированных иконок */
14
17
  protected static icons: Record<string, IconsItem>;
18
+ /** Base icons storage URL / Базовый URL хранилища иконок */
15
19
  protected static url: string;
16
20
  /**
17
21
  * Checks if the given icon is in the list of connected icons.
@@ -25,10 +29,8 @@ export declare class Icons {
25
29
  *
26
30
  * Возвращает иконку по названию.
27
31
  * @param index icon name/ название иконки
28
- * @param url path to the storage location of the icon, if the icon does not exist/
29
- * путь к месту хранения иконки, если иконка не существует
30
- * @param wait waiting time for picture loading (ms)/
31
- * время ожидания загрузки картинки (мс)
32
+ * @param url path to the storage location of the icon, if the icon does not exist / путь к месту хранения иконки, если иконка не существует
33
+ * @param wait waiting time for picture loading (ms) / время ожидания загрузки картинки (мс)
32
34
  * @returns icon path or content/ путь к иконке или контент
33
35
  */
34
36
  static get(index: string, url?: string, wait?: number): Promise<string>;
@@ -37,8 +39,7 @@ export declare class Icons {
37
39
  *
38
40
  * Возвращает иконку, если она уже загружена или является строкой.
39
41
  * @param index icon name/ название иконки
40
- * @param url path to the storage location of the icon, if the icon does not exist/
41
- * путь к месту хранения иконки, если иконка не существует
42
+ * @param url path to the storage location of the icon, if the icon does not exist / путь к месту хранения иконки, если иконка не существует
42
43
  * @returns icon path or content/ путь к иконке или контент
43
44
  */
44
45
  static getAsync(index: string, url?: string): string;
@@ -113,8 +114,7 @@ export declare class Icons {
113
114
  *
114
115
  * Возвращает исходные данные иконки по названию.
115
116
  * @param index icon name/ название иконки
116
- * @param url path to the storage location of the icon, if the icon does not exist/
117
- * путь к месту хранения иконки, если иконка не существует
117
+ * @param url path to the storage location of the icon, if the icon does not exist / путь к месту хранения иконки, если иконка не существует
118
118
  * @returns icon path or content/ путь к иконке или контент
119
119
  */
120
120
  protected static getRaw(index: string, url?: string): IconsItem;
@@ -31,36 +31,32 @@ export declare class Loading {
31
31
  * Shows the loader.
32
32
  *
33
33
  * Показывает загрузчик.
34
- * @returns void
34
+ * @returns void / ничего не возвращает
35
35
  */
36
36
  static show(): void;
37
37
  /**
38
38
  * Hides the loader.
39
39
  *
40
40
  * Скрывает загрузчик.
41
- * @returns void
41
+ * @returns void / ничего не возвращает
42
42
  */
43
43
  static hide(): void;
44
44
  /**
45
45
  * Event registration to listen for data changes.
46
46
  *
47
47
  * Регистрация события для прослушивания изменений данных.
48
- * @param listener the object that receives a notification (an object that implements the
49
- * Event interface) when an event of the specified type occurs/ объект, который принимает
50
- * уведомление, когда событие указанного типа произошло
51
- * @param element element/ элемент
52
- * @returns void
48
+ * @param listener the object that receives a notification when an event occurs / объект, который принимает уведомление, когда событие указанного типа произошло
49
+ * @param element element / элемент
50
+ * @returns void / ничего не возвращает
53
51
  */
54
52
  static registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
55
53
  /**
56
54
  * Unregistration of an event.
57
55
  *
58
56
  * Отмена регистрации события.
59
- * @param listener the object that receives a notification (an object that implements the
60
- * Event interface) when an event of the specified type occurs/ объект, который принимает
61
- * уведомление, когда событие указанного типа произошло
62
- * @param element element/ элемент
63
- * @returns void
57
+ * @param listener the object that receives a notification when an event occurs / объект, который принимает уведомление, когда событие указанного типа произошло
58
+ * @param element element / элемент
59
+ * @returns void / ничего не возвращает
64
60
  */
65
61
  static unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
66
62
  }
@@ -1,19 +1,11 @@
1
1
  import { EventItem } from './EventItem';
2
2
  import { ElementOrString, EventListenerDetail } from '../types/basicTypes';
3
- /**
4
- * Data for the loading event.
5
- *
6
- * Данные для события загрузки.
7
- */
3
+ /** Data for the loading event / Данные для события загрузки */
8
4
  export type LoadingDetail = {
9
5
  /** Loading status / Статус загрузки */
10
6
  loading: boolean;
11
7
  };
12
- /**
13
- * Registration item for the loading event.
14
- *
15
- * Элемент регистрации для события загрузки.
16
- */
8
+ /** Registration item for the loading event / Элемент регистрации для события загрузки */
17
9
  export type LoadingRegistrationItem = {
18
10
  /** Event item / Элемент события */
19
11
  item: EventItem<Window, CustomEvent, LoadingDetail>;
@@ -58,36 +50,32 @@ export declare class LoadingInstance {
58
50
  * Shows the loader.
59
51
  *
60
52
  * Показывает загрузчик.
61
- * @returns void
53
+ * @returns void / ничего не возвращает
62
54
  */
63
55
  show(): void;
64
56
  /**
65
57
  * Hides the loader.
66
58
  *
67
59
  * Скрывает загрузчик.
68
- * @returns void
60
+ * @returns void / ничего не возвращает
69
61
  */
70
62
  hide(): void;
71
63
  /**
72
64
  * Event registration to listen for data changes.
73
65
  *
74
66
  * Регистрация события для прослушивания изменений данных.
75
- * @param listener the object that receives a notification (an object that implements the
76
- * Event interface) when an event of the specified type occurs/ объект, который принимает
77
- * уведомление, когда событие указанного типа произошло
78
- * @param element element/ элемент
79
- * @returns void
67
+ * @param listener the object that receives a notification when an event occurs / объект, который принимает уведомление, когда событие указанного типа произошло
68
+ * @param element element / элемент
69
+ * @returns void / ничего не возвращает
80
70
  */
81
71
  registrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
82
72
  /**
83
73
  * Unregistration of an event.
84
74
  *
85
75
  * Отмена регистрации события.
86
- * @param listener the object that receives a notification (an object that implements the
87
- * Event interface) when an event of the specified type occurs/ объект, который принимает
88
- * уведомление, когда событие указанного типа произошло
89
- * @param element element/ элемент
90
- * @returns void
76
+ * @param listener the object that receives a notification when an event occurs / объект, который принимает уведомление, когда событие указанного типа произошло
77
+ * @param element element / элемент
78
+ * @returns void / ничего не возвращает
91
79
  */
92
80
  unregistrationEvent(listener: EventListenerDetail<CustomEvent, LoadingDetail>, element?: ElementOrString<HTMLElement>): void;
93
81
  /**