@dxtmisha/functional-basic 1.1.0 → 1.1.6

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 (178) hide show
  1. package/CHANGELOG.md +81 -0
  2. package/ai-description.txt +1 -0
  3. package/ai-types.txt +1062 -951
  4. package/dist/classes/Api.d.ts +201 -0
  5. package/dist/classes/ApiCache.d.ts +152 -0
  6. package/dist/classes/ApiDataReturn.d.ts +76 -0
  7. package/dist/classes/ApiDefault.d.ts +49 -0
  8. package/dist/classes/ApiHeaders.d.ts +37 -0
  9. package/dist/classes/ApiHydration.d.ts +39 -0
  10. package/dist/classes/ApiInstance.d.ts +283 -0
  11. package/dist/classes/ApiPreparation.d.ts +58 -0
  12. package/dist/classes/ApiResponse.d.ts +154 -0
  13. package/dist/classes/ApiStatus.d.ts +130 -0
  14. package/dist/classes/BroadcastMessage.d.ts +75 -0
  15. package/dist/classes/Cache.d.ts +38 -0
  16. package/dist/classes/CacheItem.d.ts +62 -0
  17. package/dist/classes/CacheStatic.d.ts +36 -0
  18. package/dist/classes/Cookie.d.ts +54 -0
  19. package/dist/classes/CookieBlock.d.ts +30 -0
  20. package/dist/classes/CookieBlockInstance.d.ts +23 -0
  21. package/dist/classes/CookieStorage.d.ts +174 -0
  22. package/dist/classes/DataStorage.d.ts +107 -0
  23. package/dist/classes/Datetime.d.ts +570 -0
  24. package/dist/classes/ErrorCenter.d.ts +72 -0
  25. package/dist/classes/ErrorCenterHandler.d.ts +64 -0
  26. package/dist/classes/ErrorCenterInstance.d.ts +85 -0
  27. package/dist/classes/EventItem.d.ts +251 -0
  28. package/dist/classes/Formatters.d.ts +161 -0
  29. package/dist/classes/Geo.d.ts +151 -0
  30. package/dist/classes/GeoFlag.d.ts +98 -0
  31. package/dist/classes/GeoInstance.d.ts +215 -0
  32. package/dist/classes/GeoIntl.d.ts +304 -0
  33. package/dist/classes/GeoPhone.d.ts +108 -0
  34. package/dist/classes/Global.d.ts +29 -0
  35. package/dist/classes/Hash.d.ts +57 -0
  36. package/dist/classes/HashInstance.d.ts +95 -0
  37. package/dist/classes/Icons.d.ts +128 -0
  38. package/dist/classes/Loading.d.ts +66 -0
  39. package/dist/classes/LoadingInstance.d.ts +99 -0
  40. package/dist/classes/Meta.d.ts +186 -0
  41. package/dist/classes/MetaManager.d.ts +121 -0
  42. package/dist/classes/MetaOg.d.ts +115 -0
  43. package/dist/classes/MetaStatic.d.ts +179 -0
  44. package/dist/classes/MetaTwitter.d.ts +115 -0
  45. package/dist/classes/ResumableTimer.d.ts +81 -0
  46. package/dist/classes/ScrollbarWidth.d.ts +51 -0
  47. package/dist/classes/SearchList.d.ts +128 -0
  48. package/dist/classes/SearchListData.d.ts +143 -0
  49. package/dist/classes/SearchListItem.d.ts +49 -0
  50. package/dist/classes/SearchListMatcher.d.ts +57 -0
  51. package/dist/classes/SearchListOptions.d.ts +66 -0
  52. package/dist/classes/ServerStorage.d.ts +106 -0
  53. package/dist/classes/StorageCallback.d.ts +84 -0
  54. package/dist/classes/Translate.d.ts +119 -0
  55. package/dist/classes/TranslateFile.d.ts +81 -0
  56. package/dist/classes/TranslateInstance.d.ts +206 -0
  57. package/dist/functions/addTagHighlightMatch.d.ts +11 -0
  58. package/dist/functions/anyToString.d.ts +10 -0
  59. package/dist/functions/applyTemplate.d.ts +10 -0
  60. package/dist/functions/arrFill.d.ts +9 -0
  61. package/dist/functions/blobToBase64.d.ts +9 -0
  62. package/dist/functions/capitalize.d.ts +9 -0
  63. package/dist/functions/copyObject.d.ts +10 -0
  64. package/dist/functions/copyObjectLite.d.ts +9 -0
  65. package/dist/functions/createElement.d.ts +21 -0
  66. package/dist/functions/domQuerySelector.d.ts +8 -0
  67. package/dist/functions/domQuerySelectorAll.d.ts +8 -0
  68. package/dist/functions/encodeAttribute.d.ts +8 -0
  69. package/dist/functions/encodeLiteAttribute.d.ts +8 -0
  70. package/dist/functions/ensureMaxSize.d.ts +10 -0
  71. package/dist/functions/escapeExp.d.ts +7 -0
  72. package/dist/functions/eventStopPropagation.d.ts +7 -0
  73. package/dist/functions/executeFunction.d.ts +12 -0
  74. package/dist/functions/executePromise.d.ts +11 -0
  75. package/dist/functions/forEach.d.ts +14 -0
  76. package/dist/functions/frame.d.ts +10 -0
  77. package/dist/functions/getArrayHighlightMatch.d.ts +10 -0
  78. package/dist/functions/getAttributes.d.ts +9 -0
  79. package/dist/functions/getClipboardData.d.ts +9 -0
  80. package/dist/functions/getColumn.d.ts +10 -0
  81. package/dist/functions/getCurrentDate.d.ts +19 -0
  82. package/dist/functions/getCurrentTime.d.ts +15 -0
  83. package/dist/functions/getElement.d.ts +9 -0
  84. package/dist/functions/getElementId.d.ts +26 -0
  85. package/dist/functions/getElementImage.d.ts +8 -0
  86. package/dist/functions/getElementItem.d.ts +12 -0
  87. package/dist/functions/getElementOrWindow.d.ts +8 -0
  88. package/dist/functions/getElementSafeScript.d.ts +9 -0
  89. package/dist/functions/getExactSearchExp.d.ts +8 -0
  90. package/dist/functions/getExp.d.ts +14 -0
  91. package/dist/functions/getHydrationData.d.ts +10 -0
  92. package/dist/functions/getItemByPath.d.ts +9 -0
  93. package/dist/functions/getKey.d.ts +8 -0
  94. package/dist/functions/getLengthOfAllArray.d.ts +8 -0
  95. package/dist/functions/getMaxLengthAllArray.d.ts +9 -0
  96. package/dist/functions/getMinLengthAllArray.d.ts +8 -0
  97. package/dist/functions/getMouseClient.d.ts +9 -0
  98. package/dist/functions/getMouseClientX.d.ts +8 -0
  99. package/dist/functions/getMouseClientY.d.ts +8 -0
  100. package/dist/functions/getObjectByKeys.d.ts +8 -0
  101. package/dist/functions/getObjectNoUndefined.d.ts +9 -0
  102. package/dist/functions/getObjectOrNone.d.ts +8 -0
  103. package/dist/functions/getOnlyText.d.ts +8 -0
  104. package/dist/functions/getRandomText.d.ts +12 -0
  105. package/dist/functions/getRequestString.d.ts +11 -0
  106. package/dist/functions/getSearchExp.d.ts +12 -0
  107. package/dist/functions/getSeparatingSearchExp.d.ts +9 -0
  108. package/dist/functions/getStepPercent.d.ts +9 -0
  109. package/dist/functions/getStepValue.d.ts +9 -0
  110. package/dist/functions/goScroll.d.ts +10 -0
  111. package/dist/functions/goScrollSmooth.d.ts +10 -0
  112. package/dist/functions/goScrollTo.d.ts +10 -0
  113. package/dist/functions/handleShare.d.ts +10 -0
  114. package/dist/functions/inArray.d.ts +9 -0
  115. package/dist/functions/initScrollbarOffset.d.ts +7 -0
  116. package/dist/functions/intersectKey.d.ts +9 -0
  117. package/dist/functions/isApiSuccess.d.ts +9 -0
  118. package/dist/functions/isArray.d.ts +8 -0
  119. package/dist/functions/isDifferent.d.ts +10 -0
  120. package/dist/functions/isDomData.d.ts +7 -0
  121. package/dist/functions/isDomRuntime.d.ts +10 -0
  122. package/dist/functions/isElementVisible.d.ts +11 -0
  123. package/dist/functions/isEnter.d.ts +9 -0
  124. package/dist/functions/isFilled.d.ts +10 -0
  125. package/dist/functions/isFloat.d.ts +8 -0
  126. package/dist/functions/isFunction.d.ts +9 -0
  127. package/dist/functions/isInDom.d.ts +9 -0
  128. package/dist/functions/isInput.d.ts +8 -0
  129. package/dist/functions/isIntegerBetween.d.ts +9 -0
  130. package/dist/functions/isNull.d.ts +9 -0
  131. package/dist/functions/isNumber.d.ts +8 -0
  132. package/dist/functions/isObject.d.ts +8 -0
  133. package/dist/functions/isObjectNotArray.d.ts +8 -0
  134. package/dist/functions/isOnLine.d.ts +7 -0
  135. package/dist/functions/isSelected.d.ts +9 -0
  136. package/dist/functions/isSelectedByList.d.ts +9 -0
  137. package/dist/functions/isShare.d.ts +7 -0
  138. package/dist/functions/isString.d.ts +8 -0
  139. package/dist/functions/isWindow.d.ts +7 -0
  140. package/dist/functions/random.d.ts +9 -0
  141. package/dist/functions/removeCommonPrefix.d.ts +9 -0
  142. package/dist/functions/replaceComponentName.d.ts +9 -0
  143. package/dist/functions/replaceRecursive.d.ts +11 -0
  144. package/dist/functions/replaceTemplate.d.ts +10 -0
  145. package/dist/functions/resizeImageByMax.d.ts +19 -0
  146. package/dist/functions/secondToTime.d.ts +9 -0
  147. package/dist/functions/setElementItem.d.ts +11 -0
  148. package/dist/functions/setValues.d.ts +18 -0
  149. package/dist/functions/sleep.d.ts +8 -0
  150. package/dist/functions/splice.d.ts +13 -0
  151. package/dist/functions/strFill.d.ts +9 -0
  152. package/dist/functions/strSplit.d.ts +12 -0
  153. package/dist/functions/toArray.d.ts +17 -0
  154. package/dist/functions/toCamelCase.d.ts +8 -0
  155. package/dist/functions/toCamelCaseFirst.d.ts +8 -0
  156. package/dist/functions/toDate.d.ts +8 -0
  157. package/dist/functions/toKebabCase.d.ts +15 -0
  158. package/dist/functions/toNumber.d.ts +19 -0
  159. package/dist/functions/toNumberByMax.d.ts +11 -0
  160. package/dist/functions/toPercent.d.ts +9 -0
  161. package/dist/functions/toPercentBy100.d.ts +9 -0
  162. package/dist/functions/toString.d.ts +8 -0
  163. package/dist/functions/transformation.d.ts +21 -0
  164. package/dist/functions/uint8ArrayToBase64.d.ts +8 -0
  165. package/dist/functions/uniqueArray.d.ts +8 -0
  166. package/dist/functions/writeClipboardData.d.ts +8 -0
  167. package/dist/library.d.ts +171 -8722
  168. package/dist/library.js +416 -338
  169. package/dist/media/errorCauseList.d.ts +2 -0
  170. package/dist/types/apiTypes.d.ts +217 -0
  171. package/dist/types/basicTypes.d.ts +131 -0
  172. package/dist/types/errorCenter.d.ts +42 -0
  173. package/dist/types/formattersTypes.d.ts +224 -0
  174. package/dist/types/geoTypes.d.ts +86 -0
  175. package/dist/types/metaTypes.d.ts +586 -0
  176. package/dist/types/searchTypes.d.ts +53 -0
  177. package/dist/types/translateTypes.d.ts +54 -0
  178. package/package.json +7 -5
@@ -0,0 +1,570 @@
1
+ import { GeoIntl } from './GeoIntl';
2
+ import { NumberOrStringOrDate } from '../types/basicTypes';
3
+ import { GeoDate, GeoFirstDay, GeoHours, GeoTimeZoneStyle } from '../types/geoTypes';
4
+ /**
5
+ * A class for working with dates.
6
+ *
7
+ * Класс для работы с датами.
8
+ *
9
+ * @remarks
10
+ * Creating a `Datetime` instance without a specific date (using the current time)
11
+ * for rendering in SSR may lead to hydration mismatches because the time or time zone
12
+ * on the server may differ from the time on the client.
13
+ *
14
+ * Создание экземпляра `Datetime` без указания конкретной даты (использование текущего времени)
15
+ * для отрисовки в SSR может привести к ошибкам гидратации, так как время или часовой пояс
16
+ * сервера могут отличаться от времени на стороне клиента.
17
+ */
18
+ export declare class Datetime {
19
+ protected type: GeoDate;
20
+ protected code: string;
21
+ protected date: Date;
22
+ protected hour24: boolean;
23
+ protected watch?: (date: Date, type: GeoDate, hour24: boolean) => void;
24
+ /**
25
+ * Constructor
26
+ * @param date date for processing/ дата для обработки
27
+ * @param type type of date format for output/ тип формата даты вывода
28
+ * @param code country and language code/ код страны и языка
29
+ */
30
+ constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
31
+ /**
32
+ * Returns an object for working with formatting.
33
+ *
34
+ * Возвращает объект для работы с форматированием.
35
+ * @returns GeoIntl formatting object/ объект форматирования
36
+ */
37
+ getIntl(): GeoIntl;
38
+ /**
39
+ * Returns a Date object.
40
+ *
41
+ * Возвращает объект Date.
42
+ * @returns Date date object/ объект даты
43
+ */
44
+ getDate(): Date;
45
+ /**
46
+ * Returns the type of data output.
47
+ *
48
+ * Возвращает тип вывода данных.
49
+ * @returns GeoDate output type/ тип вывода
50
+ */
51
+ getType(): GeoDate;
52
+ /**
53
+ * Returns the format of hours.
54
+ *
55
+ * Возвращает формат часов.
56
+ * @returns GeoHours hour format/ формат часов
57
+ */
58
+ getHoursType(): GeoHours;
59
+ /**
60
+ * Whether to use 24-hour time format.
61
+ *
62
+ * Использовать ли 24-часовой формат времени.
63
+ * @returns boolean 24-hour format flag/ флаг 24-часового формата
64
+ */
65
+ getHour24(): boolean;
66
+ /**
67
+ * The method returns the difference, in minutes, between
68
+ * a date as evaluated in the UTC time zone, and the same date as evaluated
69
+ * in the local time zone.
70
+ *
71
+ * Метод возвращает смещение часового пояса относительно часового пояса UTC
72
+ * в минутах для текущей локали.
73
+ * @returns number time zone offset in minutes/ смещение часового пояса в минутах
74
+ */
75
+ getTimeZoneOffset(): number;
76
+ /**
77
+ * Returns the time zone as a string.
78
+ *
79
+ * Возвращает временную зону в виде строки.
80
+ * @param style the style of the returned data/ стиль возвращаемых данных
81
+ * @returns string time zone string/ строка временной зоны
82
+ */
83
+ getTimeZone(style?: GeoTimeZoneStyle): string;
84
+ /**
85
+ * Returns the code of the first day of the week.
86
+ *
87
+ * Возвращает код первого дня недели.
88
+ * @returns GeoFirstDay first day code/ код первого дня недели
89
+ */
90
+ getFirstDayCode(): GeoFirstDay;
91
+ /**
92
+ * The method returns the year of the specified date according to local time.
93
+ *
94
+ * Метод возвращает год указанной даты по местному времени.
95
+ * @returns year / год
96
+ */
97
+ getYear(): number;
98
+ /**
99
+ * The method returns the month in the specified date according to local time,
100
+ * as a one-based value (1-12).
101
+ *
102
+ * Метод возвращает месяц указанной даты по местному времени, нумерация
103
+ * месяцев начинается с единицы (1-12).
104
+ * @returns month (1-12) / месяц (1-12)
105
+ */
106
+ getMonth(): number;
107
+ /**
108
+ * The method returns the day of the month for the specified date according to local time.
109
+ *
110
+ * Метод возвращает день месяца указанной даты по местному времени
111
+ * @returns day of month (1-31) / день месяца (1-31)
112
+ */
113
+ getDay(): number;
114
+ /**
115
+ * The method returns the hour for the specified date, according to local time.
116
+ *
117
+ * Метод возвращает часы указанной даты по местному времени.
118
+ * @returns hours (0-23) / часы (0-23)
119
+ */
120
+ getHour(): number;
121
+ /**
122
+ * The method returns the minutes in the specified date according to local time.
123
+ *
124
+ * Метод возвращает минуты указанной даты по местному времени.
125
+ * @returns minutes (0-59) / минуты (0-59)
126
+ */
127
+ getMinute(): number;
128
+ /**
129
+ * The method returns the seconds in the specified date according to local time.
130
+ *
131
+ * Метод возвращает секунды указанной даты по местному времени.
132
+ * @returns seconds (0-59) / секунды (0-59)
133
+ */
134
+ getSecond(): number;
135
+ /**
136
+ * Returns the last day of the month as a number.
137
+ *
138
+ * Возвращает последний день месяца в виде числа.
139
+ * @returns last day of month (28-31) / последний день месяца (28-31)
140
+ */
141
+ getMaxDay(): number;
142
+ /**
143
+ * Enables language-sensitive date and time formatting.
144
+ *
145
+ * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
146
+ * @param type type of date format for output/ тип формата даты вывода
147
+ * @param styleOptions the representation of the month/ представление месяца
148
+ * @returns string formatted date string/ отформатированная строка даты
149
+ */
150
+ locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): string;
151
+ /**
152
+ * Returns the formatted year.
153
+ *
154
+ * Возвращает отформатированный год.
155
+ * @param style the representation of the year/ представление года
156
+ * @returns string formatted year/ отформатированный год
157
+ */
158
+ localeYear(style?: Intl.DateTimeFormatOptions['year']): string;
159
+ /**
160
+ * Returns the formatted month.
161
+ *
162
+ * Возвращает отформатированный месяц.
163
+ * @param style the representation of the month/ представление месяца
164
+ * @returns string formatted month/ отформатированный месяц
165
+ */
166
+ localeMonth(style?: Intl.DateTimeFormatOptions['month']): string;
167
+ /**
168
+ * Returns the formatted day.
169
+ *
170
+ * Возвращает отформатированный день.
171
+ * @param style the representation of the day/ представление дня
172
+ * @returns string formatted day/ отформатированный день
173
+ */
174
+ localeDay(style?: Intl.DateTimeFormatOptions['day']): string;
175
+ /**
176
+ * Returns the formatted hour.
177
+ *
178
+ * Возвращает отформатированный час.
179
+ * @param style the representation of the hour/ представление часа
180
+ * @returns string formatted hour/ отформатированный час
181
+ */
182
+ localeHour(style?: Intl.DateTimeFormatOptions['hour']): string;
183
+ /**
184
+ * Returns the formatted minute.
185
+ *
186
+ * Возвращает отформатированную минуту.
187
+ * @param style the representation of the minute/ представление минуты
188
+ * @returns string formatted minute/ отформатированная минута
189
+ */
190
+ localeMinute(style?: Intl.DateTimeFormatOptions['minute']): string;
191
+ /**
192
+ * Returns the formatted second.
193
+ *
194
+ * Возвращает отформатированную секунду.
195
+ * @param style the representation of the second/ представление секунды
196
+ * @returns string formatted second/ отформатированная секунда
197
+ */
198
+ localeSecond(style?: Intl.DateTimeFormatOptions['second']): string;
199
+ /**
200
+ * Output of standard data.
201
+ *
202
+ * Вывод стандартных данных.
203
+ * @param timeZone add time zone (default: true) / добавить временную зону (по умолчанию: true)
204
+ * @returns standard format string / строка в стандартном формате
205
+ */
206
+ standard(timeZone?: boolean): string;
207
+ /**
208
+ * Change the date completely.
209
+ *
210
+ * Изменять полностью дату.
211
+ * @param value an integer value representing the number /
212
+ * целочисленное значение, представляющее число
213
+ * @returns this instance / текущий экземпляр
214
+ */
215
+ setDate(value: NumberOrStringOrDate): this;
216
+ /**
217
+ * Change the type of data output.
218
+ *
219
+ * Изменить тип вывода данных.
220
+ * @param value type of output / тип вывод
221
+ * @returns this instance / текущий экземпляр
222
+ */
223
+ setType(value: GeoDate): this;
224
+ /**
225
+ * Whether to use a 24-hour time format.
226
+ *
227
+ * Использовать ли 24-часовой формат времени.
228
+ * @param value If true, output the 24-hour time format /
229
+ * если true, выводить 24-часовой формат времени
230
+ * @returns this instance / текущий экземпляр
231
+ */
232
+ setHour24(value: boolean): this;
233
+ /**
234
+ * To change the location.
235
+ *
236
+ * Изменить местоположение.
237
+ * @param code country and language code / код страны и языка
238
+ * @returns this instance / текущий экземпляр
239
+ */
240
+ setCode(code: string): this;
241
+ /**
242
+ * The function is called when the data is updated.
243
+ *
244
+ * Функция вызывается при обновлении данных.
245
+ * @param watch the function calls / функция вызывает
246
+ * @returns this instance / текущий экземпляр
247
+ */
248
+ setWatch(watch: (date: Date, type: GeoDate, hour24: boolean) => void): this;
249
+ /**
250
+ * The method sets the full year for a specified date according to local time.
251
+ *
252
+ * Метод устанавливает полный год указанной даты по местному времени.
253
+ * @param value value / значения
254
+ * @returns this instance / текущий экземпляр
255
+ */
256
+ setYear(value: number): this;
257
+ /**
258
+ * The method sets the month for a specified date according to the currently set year.
259
+ *
260
+ * Метод устанавливает месяц указанной даты по местному времени.
261
+ * @param value month (1-12) / месяц (1-12)
262
+ * @returns this instance / текущий экземпляр
263
+ */
264
+ setMonth(value: number): this;
265
+ /**
266
+ * The method changes the day of the month of a given Date instance, based on local time.
267
+ *
268
+ * Метод устанавливает день месяца указанной даты по местному времени.
269
+ * @param value value / значения
270
+ * @returns this instance / текущий экземпляр
271
+ */
272
+ setDay(value: number): this;
273
+ /**
274
+ * The method sets the hours for a specified date according to local time.
275
+ *
276
+ * Метод устанавливает часы указанной даты по местному времени.
277
+ * @param value value / значения
278
+ * @returns this instance / текущий экземпляр
279
+ */
280
+ setHour(value: number): this;
281
+ /**
282
+ * The method sets the minutes for a specified date according to local time
283
+ *
284
+ * Метод устанавливает минуты указанной даты по местному времени
285
+ * @param value value / значения
286
+ * @returns this instance / текущий экземпляр
287
+ */
288
+ setMinute(value: number): this;
289
+ /**
290
+ * The method sets the seconds for a specified date according to local time.
291
+ *
292
+ * Метод устанавливает секунды указанной даты по местному времени.
293
+ * @param value value / значения
294
+ * @returns this instance / текущий экземпляр
295
+ */
296
+ setSecond(value: number): this;
297
+ /**
298
+ * Shift the date by a given value in years.
299
+ *
300
+ * Сдвинуть дату на заданное значение в годах.
301
+ * @param value values for moving / значения для перемещения
302
+ * @returns this instance / текущий экземпляр
303
+ */
304
+ moveByYear(value: number): this;
305
+ /**
306
+ * Shift the date by a given value in months.
307
+ *
308
+ * Сдвинуть дату на заданное значение в месяцах.
309
+ * @param value values for moving (in months) / значения для перемещения (в месяцах)
310
+ * @returns this instance / текущий экземпляр
311
+ */
312
+ moveByMonth(value: number): this;
313
+ /**
314
+ * Shift the date by a given value in days.
315
+ *
316
+ * Сдвинуть дату на заданное значение в днях.
317
+ * @param value values for moving / значения для перемещения
318
+ * @returns this instance / текущий экземпляр
319
+ */
320
+ moveByDay(value: number): this;
321
+ /**
322
+ * Shift the date by a given value in hours.
323
+ *
324
+ * Сдвинуть дату на заданное значение в часах.
325
+ * @param value values for moving / значения для перемещения
326
+ * @returns this instance / текущий экземпляр
327
+ */
328
+ moveByHour(value: number): this;
329
+ /**
330
+ * Shift the date by a given value in minutes.
331
+ *
332
+ * Сдвинуть дату на заданное значение в минутах.
333
+ * @param value values for moving / значения для перемещения
334
+ * @returns this instance / текущий экземпляр
335
+ */
336
+ moveByMinute(value: number): this;
337
+ /**
338
+ * Shift the date by a given value in seconds.
339
+ *
340
+ * Сдвинуть дату на заданное значение в секундах.
341
+ * @param value values for moving / значения для перемещения
342
+ * @returns this instance / текущий экземпляр
343
+ */
344
+ moveBySecond(value: number): this;
345
+ /**
346
+ * Sets the date to January (first month).
347
+ *
348
+ * Устанавливает дату на январь (первый месяц).
349
+ * @returns this instance / текущий экземпляр
350
+ */
351
+ moveMonthFirst(): this;
352
+ /**
353
+ * Sets the date to December (last month).
354
+ *
355
+ * Устанавливает дату на декабрь (последний месяц).
356
+ * @returns this instance / текущий экземпляр
357
+ */
358
+ moveMonthLast(): this;
359
+ /**
360
+ * Translate to the first day of the next month.
361
+ *
362
+ * Переводить на первый день следующего месяца.
363
+ * @returns this instance / текущий экземпляр
364
+ */
365
+ moveMonthNext(): this;
366
+ /**
367
+ * Translate to the first day of the previous month.
368
+ *
369
+ * Переводить на первый день предыдущего месяца.
370
+ * @returns this instance / текущий экземпляр
371
+ */
372
+ moveMonthPrevious(): this;
373
+ /**
374
+ * Translate to the first day of the week.
375
+ *
376
+ * Переводить на первый день недели.
377
+ * @returns this instance / текущий экземпляр
378
+ */
379
+ moveWeekdayFirst(): this;
380
+ /**
381
+ * Translate to the last day of the week.
382
+ *
383
+ * Переводить на последний день недели.
384
+ * @returns this instance / текущий экземпляр
385
+ */
386
+ moveWeekdayLast(): this;
387
+ /**
388
+ * Translate to the first day of the first week of the month.
389
+ *
390
+ * Переводить на первый день первой недели месяца.
391
+ * @returns this instance / текущий экземпляр
392
+ */
393
+ moveWeekdayFirstByMonth(): this;
394
+ /**
395
+ * Translate to the first day of the first full week of the following month.
396
+ *
397
+ * Переводить на первый день первой полной недели следующего месяца.
398
+ * @returns this instance / текущий экземпляр
399
+ */
400
+ moveWeekdayLastByMonth(): this;
401
+ /**
402
+ * Translate to the next week.
403
+ *
404
+ * Переводить на следующую неделю.
405
+ * @returns this instance / текущий экземпляр
406
+ */
407
+ moveWeekdayNext(): this;
408
+ /**
409
+ * Translate to the previous week.
410
+ *
411
+ * Переводить на предыдущую неделю.
412
+ * @returns this instance / текущий экземпляр
413
+ */
414
+ moveWeekdayPrevious(): this;
415
+ /**
416
+ * Translate to the first day of the month.
417
+ *
418
+ * Переводить на первый день месяца.
419
+ * @returns this instance / текущий экземпляр
420
+ */
421
+ moveDayFirst(): this;
422
+ /**
423
+ * Translate to the last day of the month.
424
+ *
425
+ * Переводить на последний день месяца.
426
+ * @returns this instance / текущий экземпляр
427
+ */
428
+ moveDayLast(): this;
429
+ /**
430
+ * Translate to the next day.
431
+ *
432
+ * Переводить на следующий день.
433
+ * @returns this instance / текущий экземпляр
434
+ */
435
+ moveDayNext(): this;
436
+ /**
437
+ * Translate to the previous day.
438
+ *
439
+ * Переводить на предыдущий день.
440
+ * @returns this instance / текущий экземпляр
441
+ */
442
+ moveDayPrevious(): this;
443
+ /**
444
+ * Clone the Date object.
445
+ *
446
+ * Клонировать объект Date.
447
+ * @returns Date cloned Date object/ клонированный объект Date
448
+ */
449
+ clone(): Date;
450
+ /**
451
+ * Clone the GeoDate object.
452
+ *
453
+ * Клонировать объект GeoDate.
454
+ * @returns Datetime cloned Datetime object/ клонированный объект Datetime
455
+ */
456
+ cloneClass(): Datetime;
457
+ /**
458
+ * Clone the Datetime object and set the month to January.
459
+ *
460
+ * Клонировать объект Datetime и установить месяц на январь.
461
+ * @returns Datetime cloned Datetime with January month/ клонированный Datetime с январем
462
+ */
463
+ cloneMonthFirst(): Datetime;
464
+ /**
465
+ * Clone the GeoDate object and move the month to the end of the year.
466
+ *
467
+ * Клонировать объект GeoDate и перевести месяц на конец года.
468
+ * @returns Datetime cloned Datetime with December month/ клонированный Datetime с декабрем
469
+ */
470
+ cloneMonthLast(): Datetime;
471
+ /**
472
+ * Clone the GeoDate object and transfer it one month ahead.
473
+ *
474
+ * Клонировать объект GeoDate и перевести на 1 месяц вперед.
475
+ * @returns Datetime cloned Datetime with next month/ клонированный Datetime со следующим месяцем
476
+ */
477
+ cloneMonthNext(): Datetime;
478
+ /**
479
+ * Clone the GeoDate object and transfer it one month back.
480
+ *
481
+ * Клонировать объект GeoDate и перевести на 1 месяц назад.
482
+ * @returns Datetime cloned Datetime with previous month/ клонированный Datetime с предыдущим месяцем
483
+ */
484
+ cloneMonthPrevious(): Datetime;
485
+ /**
486
+ * Returns the first day of the week according to the current date.
487
+ *
488
+ * Возвращает первый день недели по текущей дате.
489
+ * @returns Datetime cloned Datetime with first day of week/ клонированный Datetime с первым днем недели
490
+ */
491
+ cloneWeekdayFirst(): Datetime;
492
+ /**
493
+ * Returns the last day of the week according to the current date.
494
+ *
495
+ * Возвращает последний день недели по текущей дате.
496
+ * @returns Datetime cloned Datetime with last day of week/ клонированный Datetime с последним днем недели
497
+ */
498
+ cloneWeekdayLast(): Datetime;
499
+ /**
500
+ * Returns the first day of the week according to the current month.
501
+ *
502
+ * Возвращает первый день недели по текущему месяцу.
503
+ * @returns Datetime cloned Datetime with first day of week in month/ клонированный Datetime с первым днем недели в месяце
504
+ */
505
+ cloneWeekdayFirstByMonth(): Datetime;
506
+ /**
507
+ * Returns the last day of the week according to the current month.
508
+ *
509
+ * Возвращает последний день недели по текущему месяцу.
510
+ * @returns Datetime cloned Datetime with last day of week in month/ клонированный Datetime с последним днем недели в месяце
511
+ */
512
+ cloneWeekdayLastByMonth(): Datetime;
513
+ /**
514
+ * Returns the next week according to the current date.
515
+ *
516
+ * Возвращает следующую неделю по текущей дате.
517
+ * @returns Datetime cloned Datetime with next week/ клонированный Datetime со следующей неделей
518
+ */
519
+ cloneWeekdayNext(): Datetime;
520
+ /**
521
+ * Returns the previous week according to the current date.
522
+ *
523
+ * Возвращает предыдущую неделю по текущей дате.
524
+ * @returns Datetime cloned Datetime with previous week/ клонированный Datetime с предыдущей неделей
525
+ */
526
+ cloneWeekdayPrevious(): Datetime;
527
+ /**
528
+ * Clone the GeoDate object and move the day to the beginning of the month.
529
+ *
530
+ * Клонировать объект GeoDate и перевести день на начало месяца.
531
+ * @returns Datetime cloned Datetime with first day of month/ клонированный Datetime с первым днем месяца
532
+ */
533
+ cloneDayFirst(): Datetime;
534
+ /**
535
+ * Clone the GeoDate object and move the day to the end of the month.
536
+ *
537
+ * Клонировать объект GeoDate и перевести день на конец месяца.
538
+ * @returns Datetime cloned Datetime with last day of month/ клонированный Datetime с последним днем месяца
539
+ */
540
+ cloneDayLast(): Datetime;
541
+ /**
542
+ * Clone the GeoDate object and move by 1 day.
543
+ *
544
+ * Клонировать объект GeoDate и перевести на 1 день.
545
+ * @returns Datetime cloned Datetime with next day/ клонированный Datetime со следующим днем
546
+ */
547
+ cloneDayNext(): Datetime;
548
+ /**
549
+ * Clone the GeoDate object and go back by 1 day.
550
+ *
551
+ * Клонировать объект GeoDate и вернуться на 1 день.
552
+ * @returns Datetime cloned Datetime with previous day/ клонированный Datetime с предыдущим днем
553
+ */
554
+ cloneDayPrevious(): Datetime;
555
+ /**
556
+ * Returns the time zone hour format.
557
+ *
558
+ * Возвращает часовой формат временной зоны.
559
+ * @param hour hour/ час
560
+ * @returns string formatted hour/ форматированный час
561
+ */
562
+ protected toTimeZoneHourFormat(hour: number): string;
563
+ /**
564
+ * Updating all values.
565
+ *
566
+ * Обновление всех значений.
567
+ * @returns this instance/ текущий экземпляр
568
+ */
569
+ protected update(): this;
570
+ }
@@ -0,0 +1,72 @@
1
+ import { ErrorCenterInstance } from './ErrorCenterInstance';
2
+ import { ErrorCenterCauseItem, ErrorCenterCauseList, ErrorCenterGroup, ErrorCenterHandlerCallback, ErrorCenterHandlerList } from '../types/errorCenter';
3
+ /**
4
+ * Class for managing error storage and handling.
5
+ *
6
+ * Класс для управления хранилищем ошибок и их обработкой.
7
+ */
8
+ export declare class ErrorCenter {
9
+ /** Instance of the error center / Экземпляр центра ошибок */
10
+ protected static item: ErrorCenterInstance;
11
+ /**
12
+ * Returns a request-isolated instance of ErrorCenterInstance.
13
+ *
14
+ * Возвращает изолированный в рамках запроса экземпляр ErrorCenterInstance.
15
+ * @returns ErrorCenterInstance instance / экземпляр ErrorCenterInstance
16
+ */
17
+ static getItem(): ErrorCenterInstance;
18
+ /**
19
+ * Checks if a cause with specific code exists.
20
+ *
21
+ * Проверяет наличие причины с конкретным кодом.
22
+ * @param code error code / код ошибки
23
+ * @param group error group / группа ошибки
24
+ * @returns true if cause exists / true, если причина существует
25
+ */
26
+ static has(code: string, group?: string): boolean;
27
+ /**
28
+ * Gets a specific error cause by code and group.
29
+ *
30
+ * Получает конкретную причину ошибки по коду и группе.
31
+ * @param code error code / код ошибки
32
+ * @param group error group / группа ошибки
33
+ * @returns error cause item or undefined / элемент причины ошибки или undefined
34
+ */
35
+ static get(code: string, group?: string): ErrorCenterCauseItem | undefined;
36
+ /**
37
+ * Adds an error cause to the storage.
38
+ *
39
+ * Добавляет причину ошибки в хранилище.
40
+ * @param cause error cause item / элемент причины ошибки
41
+ */
42
+ static add(cause: ErrorCenterCauseItem): void;
43
+ /**
44
+ * Adds a list of error causes to the storage.
45
+ *
46
+ * Добавляет список причин ошибок в хранилище.
47
+ * @param causes error causes list / список причин ошибок
48
+ */
49
+ static addList(causes: ErrorCenterCauseList): void;
50
+ /**
51
+ * Registers a new handler.
52
+ *
53
+ * Регистрирует новый обработчик.
54
+ * @param group target group / целевая группа
55
+ * @param handler handler callback / обратный вызов обработчика
56
+ */
57
+ static addHandler(group: ErrorCenterGroup, handler: ErrorCenterHandlerCallback): void;
58
+ /**
59
+ * Registers a list of handlers.
60
+ *
61
+ * Регистрирует список обработчиков.
62
+ * @param handlers handlers list / список обработчиков
63
+ */
64
+ static addHandlerList(handlers: ErrorCenterHandlerList): void;
65
+ /**
66
+ * Triggers error handling for a group.
67
+ *
68
+ * Вызывает обработку ошибки для группы.
69
+ * @param cause error cause details / детали причины ошибки
70
+ */
71
+ static on(cause: ErrorCenterCauseItem): void;
72
+ }