@dxtmisha/functional-basic 0.5.2 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.d.ts +4750 -117
- package/dist/library.js +164 -160
- package/package.json +3 -1
- package/dist/classes/Api.d.ts +0 -161
- package/dist/classes/ApiDefault.d.ts +0 -43
- package/dist/classes/ApiHeaders.d.ts +0 -23
- package/dist/classes/ApiPreparation.d.ts +0 -56
- package/dist/classes/ApiResponse.d.ts +0 -111
- package/dist/classes/ApiStatus.d.ts +0 -89
- package/dist/classes/BroadcastMessage.d.ts +0 -36
- package/dist/classes/Cache.d.ts +0 -34
- package/dist/classes/CacheItem.d.ts +0 -55
- package/dist/classes/CacheStatic.d.ts +0 -17
- package/dist/classes/Cookie.d.ts +0 -58
- package/dist/classes/CookieBlock.d.ts +0 -22
- package/dist/classes/DataStorage.d.ts +0 -82
- package/dist/classes/Datetime.d.ts +0 -489
- package/dist/classes/EventItem.d.ts +0 -160
- package/dist/classes/Geo.d.ts +0 -168
- package/dist/classes/GeoFlag.d.ts +0 -79
- package/dist/classes/GeoIntl.d.ts +0 -262
- package/dist/classes/GeoPhone.d.ts +0 -107
- package/dist/classes/Global.d.ts +0 -21
- package/dist/classes/Hash.d.ts +0 -59
- package/dist/classes/Icons.d.ts +0 -90
- package/dist/classes/Loading.d.ts +0 -49
- package/dist/classes/Meta.d.ts +0 -168
- package/dist/classes/MetaManager.d.ts +0 -103
- package/dist/classes/MetaOg.d.ts +0 -101
- package/dist/classes/MetaTwitter.d.ts +0 -101
- package/dist/classes/ScrollbarWidth.d.ts +0 -33
- package/dist/classes/Translate.d.ts +0 -116
- package/dist/functions/anyToString.d.ts +0 -7
- package/dist/functions/applyTemplate.d.ts +0 -10
- package/dist/functions/arrFill.d.ts +0 -8
- package/dist/functions/blobToBase64.d.ts +0 -7
- package/dist/functions/copyObject.d.ts +0 -8
- package/dist/functions/copyObjectLite.d.ts +0 -9
- package/dist/functions/createElement.d.ts +0 -13
- package/dist/functions/domQuerySelector.d.ts +0 -7
- package/dist/functions/domQuerySelectorAll.d.ts +0 -7
- package/dist/functions/encodeAttribute.d.ts +0 -7
- package/dist/functions/eventStopPropagation.d.ts +0 -7
- package/dist/functions/executeFunction.d.ts +0 -8
- package/dist/functions/executePromise.d.ts +0 -7
- package/dist/functions/forEach.d.ts +0 -11
- package/dist/functions/frame.d.ts +0 -16
- package/dist/functions/getAttributes.d.ts +0 -8
- package/dist/functions/getClipboardData.d.ts +0 -11
- package/dist/functions/getColumn.d.ts +0 -10
- package/dist/functions/getElement.d.ts +0 -8
- package/dist/functions/getElementId.d.ts +0 -9
- package/dist/functions/getElementImage.d.ts +0 -7
- package/dist/functions/getElementItem.d.ts +0 -11
- package/dist/functions/getElementOrWindow.d.ts +0 -8
- package/dist/functions/getExp.d.ts +0 -13
- package/dist/functions/getItemByPath.d.ts +0 -8
- package/dist/functions/getKey.d.ts +0 -7
- package/dist/functions/getLengthOfAllArray.d.ts +0 -8
- package/dist/functions/getMaxLengthAllArray.d.ts +0 -8
- package/dist/functions/getMinLengthAllArray.d.ts +0 -8
- package/dist/functions/getMouseClient.d.ts +0 -8
- package/dist/functions/getMouseClientX.d.ts +0 -7
- package/dist/functions/getMouseClientY.d.ts +0 -7
- package/dist/functions/getObjectByKeys.d.ts +0 -8
- package/dist/functions/getObjectNoUndefined.d.ts +0 -8
- package/dist/functions/getObjectOrNone.d.ts +0 -7
- package/dist/functions/getRandomText.d.ts +0 -11
- package/dist/functions/getRequestString.d.ts +0 -9
- package/dist/functions/getStepPercent.d.ts +0 -8
- package/dist/functions/getStepValue.d.ts +0 -8
- package/dist/functions/goScroll.d.ts +0 -10
- package/dist/functions/goScrollSmooth.d.ts +0 -9
- package/dist/functions/inArray.d.ts +0 -8
- package/dist/functions/initScrollbarOffset.d.ts +0 -6
- package/dist/functions/intersectKey.d.ts +0 -8
- package/dist/functions/isArray.d.ts +0 -7
- package/dist/functions/isDifferent.d.ts +0 -9
- package/dist/functions/isDomData.d.ts +0 -6
- package/dist/functions/isDomRuntime.d.ts +0 -10
- package/dist/functions/isFilled.d.ts +0 -9
- package/dist/functions/isFloat.d.ts +0 -7
- package/dist/functions/isFunction.d.ts +0 -8
- package/dist/functions/isInDom.d.ts +0 -8
- package/dist/functions/isIntegerBetween.d.ts +0 -8
- package/dist/functions/isNull.d.ts +0 -8
- package/dist/functions/isNumber.d.ts +0 -7
- package/dist/functions/isObject.d.ts +0 -7
- package/dist/functions/isObjectNotArray.d.ts +0 -7
- package/dist/functions/isSelected.d.ts +0 -8
- package/dist/functions/isSelectedByList.d.ts +0 -8
- package/dist/functions/isString.d.ts +0 -7
- package/dist/functions/isWindow.d.ts +0 -7
- package/dist/functions/random.d.ts +0 -8
- package/dist/functions/removeCommonPrefix.d.ts +0 -8
- package/dist/functions/replaceRecursive.d.ts +0 -10
- package/dist/functions/replaceTemplate.d.ts +0 -9
- package/dist/functions/resizeImageByMax.d.ts +0 -18
- package/dist/functions/secondToTime.d.ts +0 -7
- package/dist/functions/setElementItem.d.ts +0 -10
- package/dist/functions/setValues.d.ts +0 -17
- package/dist/functions/splice.d.ts +0 -12
- package/dist/functions/strFill.d.ts +0 -8
- package/dist/functions/toArray.d.ts +0 -17
- package/dist/functions/toCamelCase.d.ts +0 -7
- package/dist/functions/toCamelCaseFirst.d.ts +0 -7
- package/dist/functions/toDate.d.ts +0 -7
- package/dist/functions/toKebabCase.d.ts +0 -15
- package/dist/functions/toNumber.d.ts +0 -8
- package/dist/functions/toNumberByMax.d.ts +0 -9
- package/dist/functions/toPercent.d.ts +0 -8
- package/dist/functions/toPercentBy100.d.ts +0 -8
- package/dist/functions/transformation.d.ts +0 -21
- package/dist/functions/uint8ArrayToBase64.d.ts +0 -8
- package/dist/functions/uniqueArray.d.ts +0 -7
- package/dist/functions/writeClipboardData.d.ts +0 -7
- package/dist/types/apiTypes.d.ts +0 -116
- package/dist/types/basicTypes.d.ts +0 -126
- package/dist/types/geoTypes.d.ts +0 -86
- package/dist/types/metaTypes.d.ts +0 -584
package/dist/classes/Cookie.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
type CookieSameSite = 'strict' | 'lax';
|
|
2
|
-
export type CookieOptions = {
|
|
3
|
-
age?: number;
|
|
4
|
-
sameSite?: CookieSameSite;
|
|
5
|
-
arguments?: string[];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Class for working with cookies.
|
|
9
|
-
*
|
|
10
|
-
* Класс для управления Cookie.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Cookie<T> {
|
|
13
|
-
private name;
|
|
14
|
-
value?: T | string;
|
|
15
|
-
private options;
|
|
16
|
-
constructor(name: string);
|
|
17
|
-
/**
|
|
18
|
-
* Get data or update if none.
|
|
19
|
-
*
|
|
20
|
-
* Получает данные или обновляет, если их нет.
|
|
21
|
-
* @param defaultValue value or function to change data/ значение или функция для изменения данных
|
|
22
|
-
* @param options additional parameters/ дополнительные параметры
|
|
23
|
-
*/
|
|
24
|
-
get(defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): string | T | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Updates cookie data.
|
|
27
|
-
*
|
|
28
|
-
* Обновляет данные cookie.
|
|
29
|
-
* @param value value or function to change data/ значение или функция для изменения данных
|
|
30
|
-
* @param options additional parameters/ дополнительные параметры
|
|
31
|
-
*/
|
|
32
|
-
set(value?: T | string | (() => (T | string)), options?: CookieOptions): void;
|
|
33
|
-
/**
|
|
34
|
-
* Delete cookie data.
|
|
35
|
-
*
|
|
36
|
-
* Удаление данных из cookie.
|
|
37
|
-
*/
|
|
38
|
-
remove(): void;
|
|
39
|
-
/**
|
|
40
|
-
* Returns cache time.
|
|
41
|
-
*
|
|
42
|
-
* Возвращает время кэширования.
|
|
43
|
-
*/
|
|
44
|
-
private getAge;
|
|
45
|
-
/**
|
|
46
|
-
* Update cookie data.
|
|
47
|
-
*
|
|
48
|
-
* Обновление данных cookie.
|
|
49
|
-
*/
|
|
50
|
-
private update;
|
|
51
|
-
/**
|
|
52
|
-
* Update data from cookies.
|
|
53
|
-
*
|
|
54
|
-
* Обновляет данные из cookies.
|
|
55
|
-
*/
|
|
56
|
-
static updateData(): void;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataStorage } from './DataStorage';
|
|
2
|
-
/**
|
|
3
|
-
* Class for changing cookie access status.
|
|
4
|
-
*
|
|
5
|
-
* Класс для изменения статуса доступа к куки.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CookieBlock {
|
|
8
|
-
static storage: DataStorage<boolean>;
|
|
9
|
-
/**
|
|
10
|
-
* Obtaining status.
|
|
11
|
-
*
|
|
12
|
-
* Получение статуса.
|
|
13
|
-
*/
|
|
14
|
-
static get(): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Changing status.
|
|
17
|
-
*
|
|
18
|
-
* Изменение статуса.
|
|
19
|
-
* @param value value to be changed/ значение, на которое будет изменен
|
|
20
|
-
*/
|
|
21
|
-
static set(value: boolean): void;
|
|
22
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class for working with localStorage.
|
|
3
|
-
*
|
|
4
|
-
* Класс для работы с localStorage.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DataStorage<T> {
|
|
7
|
-
private name;
|
|
8
|
-
private isSession;
|
|
9
|
-
/**
|
|
10
|
-
* Changing the prefix in key names. Should be called at the beginning of the code.
|
|
11
|
-
*
|
|
12
|
-
* Изменение префикса в названиях ключей. Вызывать нужно в начале кода.
|
|
13
|
-
* @param newPrefix new prefix/ новый префикс
|
|
14
|
-
*/
|
|
15
|
-
static setPrefix(newPrefix: string): void;
|
|
16
|
-
private value?;
|
|
17
|
-
private age?;
|
|
18
|
-
/**
|
|
19
|
-
* Constructor
|
|
20
|
-
* @param name value name/ название значения
|
|
21
|
-
* @param isSession should we use a session/ использовать ли сессию
|
|
22
|
-
*/
|
|
23
|
-
constructor(name: string, isSession?: boolean);
|
|
24
|
-
/**
|
|
25
|
-
* Getting data from local storage.
|
|
26
|
-
*
|
|
27
|
-
* Получение данных из локального хранилища.
|
|
28
|
-
* @param defaultValue default value/ значение по умолчанию
|
|
29
|
-
* @param cache cache time/ время кэширования
|
|
30
|
-
*/
|
|
31
|
-
get(defaultValue?: T | (() => T), cache?: number): T | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Changing data in storage.
|
|
34
|
-
*
|
|
35
|
-
* Изменение данных в хранилище.
|
|
36
|
-
* @param value new values/ новые значения
|
|
37
|
-
*/
|
|
38
|
-
set(value?: T | (() => T)): T | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Removing data from storage.
|
|
41
|
-
*
|
|
42
|
-
* Удаление данных из хранилища.
|
|
43
|
-
*/
|
|
44
|
-
remove(): this;
|
|
45
|
-
/**
|
|
46
|
-
* Clearing all data from storage.
|
|
47
|
-
*
|
|
48
|
-
* Очистка всех данных из хранилища.
|
|
49
|
-
*/
|
|
50
|
-
update(): this;
|
|
51
|
-
/**
|
|
52
|
-
* Checks for storage time limit.
|
|
53
|
-
*
|
|
54
|
-
* Проверяет на лимит времени хранения.
|
|
55
|
-
* @param cache cache time/ время кэширования
|
|
56
|
-
*/
|
|
57
|
-
private isCache;
|
|
58
|
-
/**
|
|
59
|
-
* Returns an object for working with storage.
|
|
60
|
-
*
|
|
61
|
-
* Возвращает объект для работы с хранилищем.
|
|
62
|
-
*/
|
|
63
|
-
private getMethod;
|
|
64
|
-
/**
|
|
65
|
-
* Getting the storage key name.
|
|
66
|
-
*
|
|
67
|
-
* Получение имени ключа в хранилище.
|
|
68
|
-
*/
|
|
69
|
-
private getIndex;
|
|
70
|
-
/**
|
|
71
|
-
* Getting data from storage.
|
|
72
|
-
*
|
|
73
|
-
* Получение данных из хранилища.
|
|
74
|
-
*/
|
|
75
|
-
private getValue;
|
|
76
|
-
/**
|
|
77
|
-
* Filling in the data from storage.
|
|
78
|
-
*
|
|
79
|
-
* Заполнение данными из хранилища.
|
|
80
|
-
*/
|
|
81
|
-
private make;
|
|
82
|
-
}
|
|
@@ -1,489 +0,0 @@
|
|
|
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
|
-
* Returns the time zone hour format.
|
|
478
|
-
*
|
|
479
|
-
* Возвращает часовой формат временной зоны.
|
|
480
|
-
* @param hour hour/ час
|
|
481
|
-
*/
|
|
482
|
-
protected toTimeZoneHourFormat(hour: number): string;
|
|
483
|
-
/**
|
|
484
|
-
* Updating all values.
|
|
485
|
-
*
|
|
486
|
-
* Обновление всех значений.
|
|
487
|
-
*/
|
|
488
|
-
protected update(): this;
|
|
489
|
-
}
|