@dxtmisha/functional 1.0.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 (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +767 -0
  3. package/dist/Icons-C2lZhD4l.js +1284 -0
  4. package/dist/classes/Api.d.ts +305 -0
  5. package/dist/classes/Cache.d.ts +34 -0
  6. package/dist/classes/CacheItem.d.ts +55 -0
  7. package/dist/classes/CacheStatic.d.ts +17 -0
  8. package/dist/classes/Cookie.d.ts +52 -0
  9. package/dist/classes/CookieBlock.d.ts +22 -0
  10. package/dist/classes/DataStorage.d.ts +70 -0
  11. package/dist/classes/Datetime.d.ts +482 -0
  12. package/dist/classes/EventItem.d.ts +160 -0
  13. package/dist/classes/Geo.d.ts +168 -0
  14. package/dist/classes/GeoFlag.d.ts +79 -0
  15. package/dist/classes/GeoIntl.d.ts +262 -0
  16. package/dist/classes/GeoPhone.d.ts +107 -0
  17. package/dist/classes/Global.d.ts +21 -0
  18. package/dist/classes/Hash.d.ts +59 -0
  19. package/dist/classes/Icons.d.ts +90 -0
  20. package/dist/classes/Loading.d.ts +49 -0
  21. package/dist/classes/ScrollbarWidth.d.ts +33 -0
  22. package/dist/classes/Translate.d.ts +116 -0
  23. package/dist/classes/design/DesignAbstract.d.ts +61 -0
  24. package/dist/classes/design/DesignAsyncAbstract.d.ts +28 -0
  25. package/dist/classes/design/DesignChanged.d.ts +42 -0
  26. package/dist/classes/design/DesignComp.d.ts +4 -0
  27. package/dist/classes/design/DesignComponents.d.ts +81 -0
  28. package/dist/classes/design/DesignConstructorAbstract.d.ts +150 -0
  29. package/dist/classes/ref/DatetimeRef.d.ts +119 -0
  30. package/dist/classes/ref/EventRef.d.ts +23 -0
  31. package/dist/classes/ref/GeoFlagRef.d.ts +52 -0
  32. package/dist/classes/ref/GeoIntlRef.d.ts +173 -0
  33. package/dist/classes/ref/GeoRef.d.ts +52 -0
  34. package/dist/classes/ref/ListDataRef.d.ts +228 -0
  35. package/dist/classes/ref/RouterItemRef.d.ts +36 -0
  36. package/dist/classes/ref/ScrollbarWidthRef.d.ts +24 -0
  37. package/dist/composables/ref/useApiRef.d.ts +25 -0
  38. package/dist/composables/ref/useCookieRef.d.ts +11 -0
  39. package/dist/composables/ref/useGeoIntlRef.d.ts +7 -0
  40. package/dist/composables/ref/useHashRef.d.ts +9 -0
  41. package/dist/composables/ref/useLazyRef.d.ts +33 -0
  42. package/dist/composables/ref/useLoadingRef.d.ts +7 -0
  43. package/dist/composables/ref/useSessionRef.d.ts +9 -0
  44. package/dist/composables/ref/useStorageRef.d.ts +10 -0
  45. package/dist/composables/ref/useTranslateRef.d.ts +16 -0
  46. package/dist/flags.d.ts +1 -0
  47. package/dist/flags.js +8 -0
  48. package/dist/functions/anyToString.d.ts +7 -0
  49. package/dist/functions/applyTemplate.d.ts +10 -0
  50. package/dist/functions/arrFill.d.ts +8 -0
  51. package/dist/functions/copyObject.d.ts +8 -0
  52. package/dist/functions/createElement.d.ts +13 -0
  53. package/dist/functions/domQuerySelector.d.ts +7 -0
  54. package/dist/functions/domQuerySelectorAll.d.ts +7 -0
  55. package/dist/functions/eventStopPropagation.d.ts +7 -0
  56. package/dist/functions/executeFunction.d.ts +8 -0
  57. package/dist/functions/executePromise.d.ts +7 -0
  58. package/dist/functions/executeUse.d.ts +11 -0
  59. package/dist/functions/forEach.d.ts +11 -0
  60. package/dist/functions/frame.d.ts +16 -0
  61. package/dist/functions/getAttributes.d.ts +8 -0
  62. package/dist/functions/getClipboardData.d.ts +11 -0
  63. package/dist/functions/getColumn.d.ts +10 -0
  64. package/dist/functions/getElement.d.ts +8 -0
  65. package/dist/functions/getElementId.d.ts +9 -0
  66. package/dist/functions/getElementItem.d.ts +11 -0
  67. package/dist/functions/getElementOrWindow.d.ts +8 -0
  68. package/dist/functions/getExp.d.ts +13 -0
  69. package/dist/functions/getItemByPath.d.ts +8 -0
  70. package/dist/functions/getKey.d.ts +7 -0
  71. package/dist/functions/getLengthOfAllArray.d.ts +8 -0
  72. package/dist/functions/getMaxLengthAllArray.d.ts +8 -0
  73. package/dist/functions/getMinLengthAllArray.d.ts +8 -0
  74. package/dist/functions/getMouseClient.d.ts +8 -0
  75. package/dist/functions/getMouseClientX.d.ts +7 -0
  76. package/dist/functions/getMouseClientY.d.ts +7 -0
  77. package/dist/functions/getObjectByKeys.d.ts +8 -0
  78. package/dist/functions/getObjectNoUndefined.d.ts +8 -0
  79. package/dist/functions/getObjectOrNone.d.ts +7 -0
  80. package/dist/functions/getRandomText.d.ts +11 -0
  81. package/dist/functions/getRequestString.d.ts +9 -0
  82. package/dist/functions/getStepPercent.d.ts +8 -0
  83. package/dist/functions/getStepValue.d.ts +8 -0
  84. package/dist/functions/goScroll.d.ts +10 -0
  85. package/dist/functions/inArray.d.ts +8 -0
  86. package/dist/functions/initScrollbarOffset.d.ts +6 -0
  87. package/dist/functions/intersectKey.d.ts +8 -0
  88. package/dist/functions/isArray.d.ts +7 -0
  89. package/dist/functions/isDifferent.d.ts +9 -0
  90. package/dist/functions/isDomRuntime.d.ts +10 -0
  91. package/dist/functions/isFilled.d.ts +9 -0
  92. package/dist/functions/isFloat.d.ts +7 -0
  93. package/dist/functions/isFunction.d.ts +8 -0
  94. package/dist/functions/isInDom.d.ts +8 -0
  95. package/dist/functions/isIntegerBetween.d.ts +8 -0
  96. package/dist/functions/isNull.d.ts +8 -0
  97. package/dist/functions/isNumber.d.ts +7 -0
  98. package/dist/functions/isObject.d.ts +7 -0
  99. package/dist/functions/isObjectNotArray.d.ts +7 -0
  100. package/dist/functions/isSelected.d.ts +8 -0
  101. package/dist/functions/isSelectedByList.d.ts +8 -0
  102. package/dist/functions/isString.d.ts +7 -0
  103. package/dist/functions/isWindow.d.ts +7 -0
  104. package/dist/functions/random.d.ts +8 -0
  105. package/dist/functions/ref/getBindRef.d.ts +13 -0
  106. package/dist/functions/ref/getComputedAsync.d.ts +9 -0
  107. package/dist/functions/ref/getRef.d.ts +8 -0
  108. package/dist/functions/ref/render.d.ts +13 -0
  109. package/dist/functions/ref/setRef.d.ts +9 -0
  110. package/dist/functions/ref/toComputed.d.ts +8 -0
  111. package/dist/functions/ref/toRefItem.d.ts +9 -0
  112. package/dist/functions/render/getBind.d.ts +14 -0
  113. package/dist/functions/render/getClassName.d.ts +8 -0
  114. package/dist/functions/render/getIndexForRender.d.ts +10 -0
  115. package/dist/functions/replaceRecursive.d.ts +10 -0
  116. package/dist/functions/replaceTemplate.d.ts +9 -0
  117. package/dist/functions/secondToTime.d.ts +7 -0
  118. package/dist/functions/setElementItem.d.ts +10 -0
  119. package/dist/functions/setValues.d.ts +17 -0
  120. package/dist/functions/splice.d.ts +12 -0
  121. package/dist/functions/strFill.d.ts +8 -0
  122. package/dist/functions/toArray.d.ts +17 -0
  123. package/dist/functions/toBind.d.ts +10 -0
  124. package/dist/functions/toBinds.d.ts +9 -0
  125. package/dist/functions/toCamelCase.d.ts +7 -0
  126. package/dist/functions/toCamelCaseFirst.d.ts +7 -0
  127. package/dist/functions/toDate.d.ts +7 -0
  128. package/dist/functions/toKebabCase.d.ts +15 -0
  129. package/dist/functions/toNumber.d.ts +8 -0
  130. package/dist/functions/toNumberByMax.d.ts +9 -0
  131. package/dist/functions/toPercent.d.ts +8 -0
  132. package/dist/functions/toPercentBy100.d.ts +8 -0
  133. package/dist/functions/transformation.d.ts +21 -0
  134. package/dist/functions/uniqueArray.d.ts +7 -0
  135. package/dist/functions/writeClipboardData.d.ts +7 -0
  136. package/dist/library.d.ts +135 -0
  137. package/dist/library.js +4254 -0
  138. package/dist/types/basicTypes.d.ts +126 -0
  139. package/dist/types/constructorTypes.d.ts +114 -0
  140. package/dist/types/geoTypes.d.ts +86 -0
  141. package/dist/types/listTypes.d.ts +61 -0
  142. package/dist/types/refTypes.d.ts +36 -0
  143. package/package.json +77 -0
@@ -0,0 +1,482 @@
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
+ export declare class Datetime {
10
+ protected type: GeoDate;
11
+ protected code: string;
12
+ protected date: Date;
13
+ protected hour24: boolean;
14
+ protected watch?: (date: Date, type: GeoDate, hour24: boolean) => void;
15
+ /**
16
+ * Constructor
17
+ * @param date date for processing/ дата для обработки
18
+ * @param type type of date format for output/ тип формата даты вывода
19
+ * @param code country and language code/ код страны и языка
20
+ */
21
+ constructor(date?: NumberOrStringOrDate, type?: GeoDate, code?: string);
22
+ /**
23
+ * Returns an object for working with formatting.
24
+ *
25
+ * Возвращает объект для работы с форматированием.
26
+ */
27
+ getIntl(): GeoIntl;
28
+ /**
29
+ * Returns a Date object.
30
+ *
31
+ * Возвращает объект Date.
32
+ */
33
+ getDate(): Date;
34
+ /**
35
+ * Returns the type of data output.
36
+ *
37
+ * Возвращает тип вывода данных.
38
+ */
39
+ getType(): string;
40
+ /**
41
+ * Returns the format of hours.
42
+ *
43
+ * Возвращает формат часов.
44
+ */
45
+ getHoursType(): GeoHours;
46
+ /**
47
+ * Whether to use 12-hour time.
48
+ *
49
+ * Использовать ли 12-часовой формат времени.
50
+ */
51
+ getHour24(): boolean;
52
+ /**
53
+ * The method returns the difference, in minutes, between
54
+ * a date as evaluated in the UTC time zone, and the same date as evaluated
55
+ * in the local time zone.
56
+ *
57
+ * Метод возвращает смещение часового пояса относительно часового пояса UTC
58
+ * в минутах для текущей локали.
59
+ */
60
+ getTimeZoneOffset(): number;
61
+ /**
62
+ * Returns the time zone as a string.
63
+ *
64
+ * Возвращает временную зону в виде строки.
65
+ * @param style the style of the returned data/ стиль возвращаемых данных
66
+ */
67
+ getTimeZone(style?: GeoTimeZoneStyle): string;
68
+ /**
69
+ * Returns the code of the first day of the week.
70
+ *
71
+ * Возвращает код первого дня недели.
72
+ */
73
+ getFirstDayCode(): GeoFirstDay;
74
+ /**
75
+ * The method returns the year of the specified date according to local time.
76
+ *
77
+ * Метод возвращает год указанной даты по местному времени.
78
+ */
79
+ getYear(): number;
80
+ /**
81
+ * The method returns the month in the specified date according to local time,
82
+ * as a zero-based value.
83
+ *
84
+ * Метод возвращает месяц указанной даты по местному времени, нумерация
85
+ * месяцев начинается с нуля для первого месяца в году.
86
+ */
87
+ getMonth(): number;
88
+ /**
89
+ * The method returns the day of the month for the specified date according to local time.
90
+ *
91
+ * Метод возвращает день месяца указанной даты по местному времени
92
+ */
93
+ getDay(): number;
94
+ /**
95
+ * The method returns the hour for the specified date, according to local time.
96
+ *
97
+ * Метод возвращает часы указанной даты по местному времени.
98
+ */
99
+ getHour(): number;
100
+ /**
101
+ * The method returns the minutes in the specified date according to local time.
102
+ *
103
+ * Метод возвращает минуты указанной даты по местному времени.
104
+ */
105
+ getMinute(): number;
106
+ /**
107
+ * The method returns the seconds in the specified date according to local time.
108
+ *
109
+ * Метод возвращает секунды указанной даты по местному времени.
110
+ */
111
+ getSecond(): number;
112
+ /**
113
+ * Returns the last day of the week.
114
+ *
115
+ * Возвращает последний день недели.
116
+ */
117
+ getMaxDay(): number;
118
+ /**
119
+ * Enables language-sensitive date and time formatting.
120
+ *
121
+ * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
122
+ * @param type type of date format for output/ тип формата даты вывода
123
+ * @param styleOptions the representation of the month/ представление месяца
124
+ */
125
+ locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): string;
126
+ /**
127
+ * Returns the formatted year.
128
+ *
129
+ * Возвращает отформатированный год.
130
+ * @param style the representation of the month/ представление месяца
131
+ */
132
+ localeYear(style?: Intl.DateTimeFormatOptions['year']): string;
133
+ /**
134
+ * Returns the formatted month.
135
+ *
136
+ * Возвращает отформатированный месяц.
137
+ * @param style the representation of the month/ представление месяца
138
+ */
139
+ localeMonth(style?: Intl.DateTimeFormatOptions['month']): string;
140
+ /**
141
+ * Returns the formatted day.
142
+ *
143
+ * Возвращает отформатированный день.
144
+ * @param style the representation of the month/ представление месяца
145
+ */
146
+ localeDay(style?: Intl.DateTimeFormatOptions['day']): string;
147
+ /**
148
+ * Returns the formatted hour.
149
+ *
150
+ * Возвращает отформатированный час.
151
+ * @param style the representation of the month/ представление месяца
152
+ */
153
+ localeHour(style?: Intl.DateTimeFormatOptions['hour']): string;
154
+ /**
155
+ * Returns the formatted minute.
156
+ *
157
+ * Возвращает отформатированную минуту.
158
+ * @param style the representation of the month/ представление месяца
159
+ */
160
+ localeMinute(style?: Intl.DateTimeFormatOptions['minute']): string;
161
+ /**
162
+ * Returns the formatted second.
163
+ *
164
+ * Возвращает отформатированную секунду.
165
+ * @param style the representation of the month/ представление месяца
166
+ */
167
+ localeSecond(style?: Intl.DateTimeFormatOptions['second']): string;
168
+ /**
169
+ * Output of standard data.
170
+ *
171
+ * Вывод стандартных данных.
172
+ * @param timeZone add time zone/ добавить временную зону
173
+ */
174
+ standard(timeZone?: boolean): string;
175
+ /**
176
+ * Change the date completely.
177
+ *
178
+ * Изменять полностью дату.
179
+ * @param value an integer value representing the number/
180
+ * целочисленное значение, представляющее число
181
+ */
182
+ setDate(value: NumberOrStringOrDate): this;
183
+ /**
184
+ * Change the type of data output.
185
+ *
186
+ * Изменить тип вывода данных.
187
+ * @param value type of output/ тип вывод
188
+ */
189
+ setType(value: GeoDate): this;
190
+ /**
191
+ * Whether to use 12-hour time.
192
+ *
193
+ * Использовать ли 12-часовой формат времени.
194
+ * @param value If true, output the 12-hour time format/
195
+ * если true, выводить 12-часовой формат времени
196
+ */
197
+ setHour24(value: boolean): this;
198
+ /**
199
+ * To change the location.
200
+ *
201
+ * Изменить местоположение.
202
+ * @param code country and language code/ код страны и языка
203
+ */
204
+ setCode(code: string): this;
205
+ /**
206
+ * The function is called when the data is updated.
207
+ *
208
+ * Функция вызывается при обновлении данных.
209
+ * @param watch the function calls/ функция вызывает
210
+ */
211
+ setWatch(watch: (date: Date, type: GeoDate, hour24: boolean) => void): this;
212
+ /**
213
+ * The method sets the full year for a specified date according to local time.
214
+ *
215
+ * Метод устанавливает полный год указанной даты по местному времени.
216
+ * @param value value/ значения
217
+ */
218
+ setYear(value: number): this;
219
+ /**
220
+ * The method sets the month for a specified date according to the currently set year.
221
+ *
222
+ * Метод устанавливает месяц указанной даты по местному времени.
223
+ * @param value value/ значения
224
+ */
225
+ setMonth(value: number): this;
226
+ /**
227
+ * The method changes the day of the month of a given Date instance, based on local time.
228
+ *
229
+ * Метод устанавливает день месяца указанной даты по местному времени.
230
+ * @param value value/ значения
231
+ */
232
+ setDay(value: number): this;
233
+ /**
234
+ * The method sets the hours for a specified date according to local time.
235
+ *
236
+ * Метод устанавливает часы указанной даты по местному времени.
237
+ * @param value value/ значения
238
+ */
239
+ setHour(value: number): this;
240
+ /**
241
+ * The method sets the minutes for a specified date according to local time
242
+ *
243
+ * Метод устанавливает минуты указанной даты по местному времени
244
+ * @param value value / значения
245
+ */
246
+ setMinute(value: number): this;
247
+ /**
248
+ * The method sets the seconds for a specified date according to local time.
249
+ *
250
+ * Метод устанавливает секунды указанной даты по местному времени.
251
+ * @param value value/ значения
252
+ */
253
+ setSecond(value: number): this;
254
+ /**
255
+ * Shift the date by a given value in years.
256
+ *
257
+ * Сдвинуть дату на заданное значение в годах.
258
+ * @param value values for moving/ значения для перемещения
259
+ */
260
+ moveByYear(value: number): this;
261
+ /**
262
+ * Shift the date by a given value in months.
263
+ *
264
+ * Сдвинуть дату на заданное значение в месяцах.
265
+ * @param value values for moving/ значения для перемещения
266
+ */
267
+ moveByMonth(value: number): this;
268
+ /**
269
+ * Shift the date by a given value in days.
270
+ *
271
+ * Сдвинуть дату на заданное значение в днях.
272
+ * @param value values for moving/ значения для перемещения
273
+ */
274
+ moveByDay(value: number): this;
275
+ /**
276
+ * Shift the date by a given value in hours.
277
+ *
278
+ * Сдвинуть дату на заданное значение в часах.
279
+ * @param value values for moving/ значения для перемещения
280
+ */
281
+ moveByHour(value: number): this;
282
+ /**
283
+ * Shift the date by a given value in minutes.
284
+ *
285
+ * Сдвинуть дату на заданное значение в минутах.
286
+ * @param value values for moving/ значения для перемещения
287
+ */
288
+ moveByMinute(value: number): this;
289
+ /**
290
+ * Shift the date by a given value in seconds.
291
+ *
292
+ * Сдвинуть дату на заданное значение в секундах.
293
+ * @param value values for moving/ значения для перемещения
294
+ */
295
+ moveBySecond(value: number): this;
296
+ /**
297
+ * Translate to the first month.
298
+ *
299
+ * Переводить на первый месяц.
300
+ */
301
+ moveMonthFirst(): this;
302
+ /**
303
+ * Translate to the first month.
304
+ *
305
+ * Переводить на первый месяц.
306
+ */
307
+ moveMonthLast(): this;
308
+ /**
309
+ * Translate to the first day of the next month.
310
+ *
311
+ * Переводить на первый день следующего месяца.
312
+ */
313
+ moveMonthNext(): this;
314
+ /**
315
+ * Translate to the first day of the previous month.
316
+ *
317
+ * Переводить на первый день предыдущего месяца.
318
+ */
319
+ moveMonthPrevious(): this;
320
+ /**
321
+ * Translate to the first day of the week.
322
+ *
323
+ * Переводить на первый день недели.
324
+ */
325
+ moveWeekdayFirst(): this;
326
+ /**
327
+ * Translate to the last day of the week.
328
+ *
329
+ * Переводить на последний день недели.
330
+ */
331
+ moveWeekdayLast(): this;
332
+ /**
333
+ * Translate to the first day of the first week of the month.
334
+ *
335
+ * Переводить на первый день первой недели месяца.
336
+ */
337
+ moveWeekdayFirstByMonth(): this;
338
+ /**
339
+ * Translate to the first day of the first full week of the following month.
340
+ *
341
+ * Переводить на первый день первой полной недели следующего месяца.
342
+ */
343
+ moveWeekdayLastByMonth(): this;
344
+ /**
345
+ * Translate to the next week.
346
+ *
347
+ * Переводить на следующую неделю.
348
+ */
349
+ moveWeekdayNext(): this;
350
+ /**
351
+ * Translate to the previous week.
352
+ *
353
+ * Переводить на предыдущую неделю.
354
+ */
355
+ moveWeekdayPrevious(): this;
356
+ /**
357
+ * Translate to the first day of the month.
358
+ *
359
+ * Переводить на первый день месяца.
360
+ */
361
+ moveDayFirst(): this;
362
+ /**
363
+ * Translate to the last day of the month.
364
+ *
365
+ * Переводить на последний день месяца.
366
+ */
367
+ moveDayLast(): this;
368
+ /**
369
+ * Translate to the next day.
370
+ *
371
+ * Переводить на следующий день.
372
+ */
373
+ moveDayNext(): this;
374
+ /**
375
+ * Translate to the previous day.
376
+ *
377
+ * Переводить на предыдущий день.
378
+ */
379
+ moveDayPrevious(): this;
380
+ /**
381
+ * Clone the Date object.
382
+ *
383
+ * Клонировать объект Date.
384
+ */
385
+ clone(): Date;
386
+ /**
387
+ * Clone the GeoDate object.
388
+ *
389
+ * Клонировать объект GeoDate.
390
+ */
391
+ cloneClass(): Datetime;
392
+ /**
393
+ * Clone the GeoDate object and set the month to January.
394
+ *
395
+ * Клонировать объект GeoDate и установить месяц на январь.
396
+ */
397
+ cloneMonthFirst(): Datetime;
398
+ /**
399
+ * Clone the GeoDate object and move the month to the end of the year.
400
+ *
401
+ * Клонировать объект GeoDate и перевести месяц на конец года.
402
+ */
403
+ cloneMonthLast(): Datetime;
404
+ /**
405
+ * Clone the GeoDate object and transfer it one month ahead.
406
+ *
407
+ * Клонировать объект GeoDate и перевести на 1 месяц вперед.
408
+ */
409
+ cloneMonthNext(): Datetime;
410
+ /**
411
+ * Clone the GeoDate object and transfer it one month back.
412
+ *
413
+ * Клонировать объект GeoDate и перевести на 1 месяц назад.
414
+ */
415
+ cloneMonthPrevious(): Datetime;
416
+ /**
417
+ * Returns the first day of the week according to the current date.
418
+ *
419
+ * Возвращает первый день недели по текущей дате.
420
+ */
421
+ cloneWeekdayFirst(): Datetime;
422
+ /**
423
+ * Returns the last day of the week according to the current date.
424
+ *
425
+ * Возвращает последний день недели по текущей дате.
426
+ */
427
+ cloneWeekdayLast(): Datetime;
428
+ /**
429
+ * Returns the first day of the week according to the current month.
430
+ *
431
+ * Возвращает первый день недели по текущему месяцу.
432
+ */
433
+ cloneWeekdayFirstByMonth(): Datetime;
434
+ /**
435
+ * Returns the last day of the week according to the current month.
436
+ *
437
+ * Возвращает последний день недели по текущему месяцу.
438
+ */
439
+ cloneWeekdayLastByMonth(): Datetime;
440
+ /**
441
+ * Returns the next week according to the current date.
442
+ *
443
+ * Возвращает следующую неделю по текущей дате.
444
+ */
445
+ cloneWeekdayNext(): Datetime;
446
+ /**
447
+ * Returns the previous week according to the current date.
448
+ *
449
+ * Возвращает предыдущую неделю по текущей дате.
450
+ */
451
+ cloneWeekdayPrevious(): Datetime;
452
+ /**
453
+ * Clone the GeoDate object and move the day to the beginning of the month.
454
+ *
455
+ * Клонировать объект GeoDate и перевести день на начало месяца.
456
+ */
457
+ cloneDayFirst(): Datetime;
458
+ /**
459
+ * Clone the GeoDate object and move the day to the end of the month.
460
+ *
461
+ * Клонировать объект GeoDate и перевести день на конец месяца.
462
+ */
463
+ cloneDayLast(): Datetime;
464
+ /**
465
+ * Clone the GeoDate object and move by 1 day.
466
+ *
467
+ * Клонировать объект GeoDate и перевести на 1 день.
468
+ */
469
+ cloneDayNext(): Datetime;
470
+ /**
471
+ * Clone the GeoDate object and go back by 1 day.
472
+ *
473
+ * Клонировать объект GeoDate и вернуться на 1 день.
474
+ */
475
+ cloneDayPrevious(): Datetime;
476
+ /**
477
+ * Updating all values.
478
+ *
479
+ * Обновление всех значений.
480
+ */
481
+ protected update(): this;
482
+ }
@@ -0,0 +1,160 @@
1
+ import { ElementOrString, ElementOrWindow, EventActivityItem, EventListenerDetail, EventOptions } from '../types/basicTypes';
2
+ /**
3
+ * Class for working with events.
4
+ *
5
+ * Класс для работы с событиями.
6
+ */
7
+ export declare class EventItem<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> {
8
+ protected listener?: EventListenerDetail<O, D> | undefined;
9
+ protected options?: EventOptions;
10
+ protected detail?: D | undefined;
11
+ /**
12
+ * Element.
13
+ *
14
+ * Элемент.
15
+ */
16
+ protected element?: E;
17
+ /**
18
+ * Element for checking. If the element is missing in the DOM, the event is turned off.
19
+ *
20
+ * Элемент для проверки. Если элемент отсутствует в DOM, событие выключается.
21
+ */
22
+ protected elementControl?: ElementOrWindow;
23
+ protected elementControlEdit?: boolean;
24
+ /**
25
+ * A case-sensitive string representing the event type to listen for.
26
+ *
27
+ * Чувствительная к регистру строка, представляющая тип обрабатываемого события.
28
+ */
29
+ protected type: string[];
30
+ /**
31
+ * The object that receives a notification (an object that implements the Event interface)
32
+ * when an event of the specified type occurs. This must be null, an object with a
33
+ * handleEvent() method, or a JavaScript function.
34
+ *
35
+ * Объект, который принимает уведомление, когда событие указанного типа произошло.
36
+ * Это должен быть объект, реализующий интерфейс EventListener или просто функция JavaScript.
37
+ */
38
+ protected listenerRecent: (event?: O | ResizeObserverEntry) => void;
39
+ /**
40
+ * Event states.
41
+ *
42
+ * Состояния события.
43
+ */
44
+ protected activity: boolean;
45
+ protected activityItems: EventActivityItem<E>[];
46
+ /**
47
+ * Classes Constructor
48
+ * @param elementSelector element/ элемент
49
+ * @param type type/ тип
50
+ * @param listener the object that receives a notification (an object that implements the
51
+ * Event interface) when an event of the specified type occurs/ объект, который принимает
52
+ * уведомление, когда событие указанного типа произошло
53
+ * @param options object that specifies characteristics/ объект options
54
+ * @param detail an event-dependent value associated with the event/ зависимое от события
55
+ * значение, связанное с событием
56
+ */
57
+ constructor(elementSelector?: ElementOrString<E>, type?: string | string[], listener?: EventListenerDetail<O, D> | undefined, options?: EventOptions, detail?: D | undefined);
58
+ /**
59
+ * Checks whether event listening is currently enabled.
60
+ *
61
+ * Проверяет, включено ли сейчас прослушивание события.
62
+ */
63
+ isActive(): boolean;
64
+ getElement(): E | undefined;
65
+ /**
66
+ * Change of an element for tracking.
67
+ *
68
+ * Изменение элемента для прослеживания.
69
+ * @param elementSelector element/ элемент
70
+ */
71
+ setElement(elementSelector?: ElementOrString<E>): this;
72
+ /**
73
+ * Modifies the object that receives the notification.
74
+ *
75
+ * Модифицирует объект, который получает уведомление.
76
+ * @param elementSelector element/ элемент
77
+ */
78
+ setElementControl<EC extends HTMLElement>(elementSelector?: ElementOrString<EC>): this;
79
+ /**
80
+ * Changes the type of the handled event.
81
+ *
82
+ * Изменяет тип обрабатываемого события.
83
+ * @param type type/ тип
84
+ */
85
+ setType(type: string | string[]): this;
86
+ /**
87
+ * Modifies the object that receives the notification.
88
+ *
89
+ * Модифицирует объект, который получает уведомление.
90
+ * @param listener
91
+ */
92
+ setListener(listener: EventListenerDetail<O, D>): this;
93
+ /**
94
+ * Modifying the options object that defines the characteristics of an object.
95
+ *
96
+ * Изменение объекта options, который определяет характеристики объекта.
97
+ * @param options
98
+ */
99
+ setOptions(options?: EventOptions): this;
100
+ /**
101
+ * Modifying a dependent value for the dispatch method.
102
+ *
103
+ * Изменение зависимого значения для метода dispatch.
104
+ * @param detail
105
+ */
106
+ setDetail(detail?: D): this;
107
+ /**
108
+ * The method of the EventTarget sends an Event to the object, (synchronously) invoking
109
+ * the affected EventListeners in the appropriate order.
110
+ *
111
+ * Отправляет событие в общую систему событий. Это событие подчиняется тем же правилам
112
+ * поведения "Захвата" и "Всплывания" как и непосредственно инициированные события.
113
+ * @param detail an event-dependent value associated with the event/ зависимое от события
114
+ * значение, связанное с событием
115
+ */
116
+ dispatch(detail?: D | undefined): this;
117
+ /**
118
+ * Starting event listening.
119
+ *
120
+ * Запуск прослушивания события.
121
+ */
122
+ start(): this;
123
+ /**
124
+ * Stopping event listening.
125
+ *
126
+ * Остановка прослушивания события.
127
+ */
128
+ stop(): this;
129
+ /**
130
+ * Toggling event handler state.
131
+ *
132
+ * Переключение состояния работы события.
133
+ * @param activity event activation/ активация события
134
+ */
135
+ toggle(activity: boolean): this;
136
+ /**
137
+ * Overloads the listening events.
138
+ *
139
+ * Перегружает события прослушивания.
140
+ */
141
+ reset(): this;
142
+ /**
143
+ * Checks if the ResizeObserver object exists.
144
+ *
145
+ * Проверяет, существует ли объект ResizeObserver.
146
+ */
147
+ protected isObserver(): boolean;
148
+ /**
149
+ * The implementation of the resize event for an element.
150
+ *
151
+ * Реализация события изменения размера для элемента.
152
+ */
153
+ protected makeResize(): boolean;
154
+ /**
155
+ * Implementation of the scroll event for an element.
156
+ *
157
+ * Реализация события изменения положения скролла для элемента.
158
+ */
159
+ protected makeScroll(): boolean;
160
+ }