@dxtmisha/functional 1.3.0 → 1.4.2
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/ScrollbarWidth-D6yhyHBp.js +2184 -0
- package/dist/classes/ref/DatetimeRef.d.ts +1 -3
- package/dist/classes/ref/EventRef.d.ts +1 -2
- package/dist/classes/ref/GeoFlagRef.d.ts +1 -2
- package/dist/classes/ref/GeoIntlRef.d.ts +1 -2
- package/dist/classes/ref/GeoRef.d.ts +1 -1
- package/dist/composables/ref/useApiRef.d.ts +1 -1
- package/dist/composables/ref/useCookieRef.d.ts +1 -1
- package/dist/composables/ref/useMeta.d.ts +1 -2
- package/dist/composables/ref/useTranslateRef.d.ts +1 -1
- package/dist/flags.js +1 -1
- package/dist/functions/basic.d.ts +1 -0
- package/dist/functions/computedByLanguage.d.ts +15 -0
- package/dist/functions/ref/getBindRef.d.ts +1 -1
- package/dist/functions/ref/render.d.ts +1 -1
- package/dist/functions/render/getBind.d.ts +2 -2
- package/dist/functions/render/getClassName.d.ts +1 -1
- package/dist/functions/render/getIndexForRender.d.ts +1 -1
- package/dist/functions/toBind.d.ts +1 -1
- package/dist/functions/toBinds.d.ts +1 -1
- package/dist/library.d.ts +2 -103
- package/dist/library.js +1338 -1846
- package/dist/types/constructorTypes.d.ts +1 -1
- package/dist/types/listTypes.d.ts +1 -1
- package/package.json +6 -5
- package/dist/Icons-BNmTjp32.js +0 -1301
- package/dist/classes/Api.d.ts +0 -305
- 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 -482
- 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/classes/__tests__/Meta.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaManager.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaOg.test.d.ts +0 -4
- package/dist/classes/__tests__/MetaTwitter.test.d.ts +0 -4
- 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/copyObject.d.ts +0 -8
- 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/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/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/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/replaceRecursive.d.ts +0 -10
- package/dist/functions/replaceTemplate.d.ts +0 -9
- 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/uniqueArray.d.ts +0 -7
- package/dist/functions/writeClipboardData.d.ts +0 -7
- 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/Geo.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { GeoItem, GeoItemFull } from '../types/geoTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Base class for working with geographic data.
|
|
4
|
-
*
|
|
5
|
-
* Базовый класс для работы с географическими данными.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Geo {
|
|
8
|
-
private static storage;
|
|
9
|
-
private static location;
|
|
10
|
-
private static item;
|
|
11
|
-
private static language;
|
|
12
|
-
private static timezone;
|
|
13
|
-
/**
|
|
14
|
-
* Information about the current country.
|
|
15
|
-
*
|
|
16
|
-
* Информация об текущей стране.
|
|
17
|
-
*/
|
|
18
|
-
static get(): GeoItemFull;
|
|
19
|
-
/**
|
|
20
|
-
* Current country.
|
|
21
|
-
*
|
|
22
|
-
* Текущая страна.
|
|
23
|
-
*/
|
|
24
|
-
static getCountry(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Current language.
|
|
27
|
-
*
|
|
28
|
-
* Текущий язык.
|
|
29
|
-
*/
|
|
30
|
-
static getLanguage(): string;
|
|
31
|
-
/**
|
|
32
|
-
* Full format according to the standard.
|
|
33
|
-
*
|
|
34
|
-
* Полный формат согласно стандарту.
|
|
35
|
-
*/
|
|
36
|
-
static getStandard(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the first day of the week.
|
|
39
|
-
*
|
|
40
|
-
* Возвращает первый день недели.
|
|
41
|
-
*/
|
|
42
|
-
static getFirstDay(): string;
|
|
43
|
-
/**
|
|
44
|
-
* Full format.
|
|
45
|
-
*
|
|
46
|
-
* Полный формат.
|
|
47
|
-
*/
|
|
48
|
-
static getLocation(): string;
|
|
49
|
-
/**
|
|
50
|
-
* Obtaining processed data.
|
|
51
|
-
*
|
|
52
|
-
* Получение обработанных данных.
|
|
53
|
-
*/
|
|
54
|
-
static getItem(): GeoItemFull;
|
|
55
|
-
/**
|
|
56
|
-
* Returns the full list of countries.
|
|
57
|
-
*
|
|
58
|
-
* Возвращает полный список стран.
|
|
59
|
-
*/
|
|
60
|
-
static getList(): GeoItem[];
|
|
61
|
-
/**
|
|
62
|
-
* Returns the data about the country by its full code.
|
|
63
|
-
*
|
|
64
|
-
* Возвращает данные о стране по ее полному коду.
|
|
65
|
-
* @param code country code, full form language-country or one of them/
|
|
66
|
-
* код страны, полный вид язык-страна или один из них
|
|
67
|
-
*/
|
|
68
|
-
static getByCode(code?: string): GeoItemFull;
|
|
69
|
-
/**
|
|
70
|
-
* Returns the full data by language and country.
|
|
71
|
-
*
|
|
72
|
-
* Возвращает полные данные по языку и стране.
|
|
73
|
-
* @param code string in the form of language-country/ строка в виде язык-страна
|
|
74
|
-
*/
|
|
75
|
-
static getByCodeFull(code: string): GeoItem | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* Returns the full data by country.
|
|
78
|
-
*
|
|
79
|
-
* Возвращает полные данные по стране.
|
|
80
|
-
* @param country country/ страна
|
|
81
|
-
*/
|
|
82
|
-
static getByCountry(country: string): GeoItem | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Returns the full data by language.
|
|
85
|
-
*
|
|
86
|
-
* Возвращает полные данные по языку.
|
|
87
|
-
* @param language language/ язык
|
|
88
|
-
*/
|
|
89
|
-
static getByLanguage(language: string): GeoItem | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Retrieving the default timezone.
|
|
92
|
-
*
|
|
93
|
-
* Получение временной зоны по умолчанию
|
|
94
|
-
*/
|
|
95
|
-
static getTimezone(): number;
|
|
96
|
-
/**
|
|
97
|
-
* Retrieving the default timezone (formatted view).
|
|
98
|
-
*
|
|
99
|
-
* Получение временной зоны по умолчанию (отформатированный вид).
|
|
100
|
-
*/
|
|
101
|
-
static getTimezoneFormat(): string;
|
|
102
|
-
/**
|
|
103
|
-
* Determines the current country by its full name.
|
|
104
|
-
*
|
|
105
|
-
* Определяет текущую страну по ее полному названию.
|
|
106
|
-
* @param code country code, full form language-country or one of them/
|
|
107
|
-
* код страны, полный вид язык-страна или один из них
|
|
108
|
-
*/
|
|
109
|
-
static find(code: string): GeoItemFull;
|
|
110
|
-
/**
|
|
111
|
-
* Returns a complete string with the country code and language.
|
|
112
|
-
*
|
|
113
|
-
* Возвращает полную строку с кодом страны и языка.
|
|
114
|
-
* @param item object with data about the current country/
|
|
115
|
-
* объект с данными об текущей стране
|
|
116
|
-
*/
|
|
117
|
-
static toStandard(item: GeoItem): string;
|
|
118
|
-
/**
|
|
119
|
-
* Changes the data by the full code.
|
|
120
|
-
*
|
|
121
|
-
* Изменяет данные по полному коду.
|
|
122
|
-
* @param code country code, full form language-country or one of them/
|
|
123
|
-
* код страны, полный вид язык-страна или один из них
|
|
124
|
-
* @param save save the result/ сохранить результат
|
|
125
|
-
*/
|
|
126
|
-
static set(code: string, save?: boolean): void;
|
|
127
|
-
/**
|
|
128
|
-
* Changing the default timezone for transmitted dates.
|
|
129
|
-
*
|
|
130
|
-
* Изменение временной зоны по умолчанию для отправляемых дат
|
|
131
|
-
* @param timezone new time zone/ новая временная зона
|
|
132
|
-
*/
|
|
133
|
-
static setTimezone(timezone: number): void;
|
|
134
|
-
/**
|
|
135
|
-
* Determines the current location.
|
|
136
|
-
*
|
|
137
|
-
* Определяет текущую локацию.
|
|
138
|
-
*/
|
|
139
|
-
private static findLocation;
|
|
140
|
-
/**
|
|
141
|
-
* Determines the current language.
|
|
142
|
-
*
|
|
143
|
-
* Определяет текущий язык.
|
|
144
|
-
* @param code country code, full form language-country or one of them/
|
|
145
|
-
* код страны, полный вид язык-страна или один из них
|
|
146
|
-
*/
|
|
147
|
-
private static findLanguage;
|
|
148
|
-
/**
|
|
149
|
-
* Returns the country code by its full language-country.
|
|
150
|
-
*
|
|
151
|
-
* Возвращает код страны по ее полному язык-страна.
|
|
152
|
-
* @param code country code/ код страна
|
|
153
|
-
*/
|
|
154
|
-
private static toCountry;
|
|
155
|
-
/**
|
|
156
|
-
* Returns the language code by its full language-country.<br>
|
|
157
|
-
* Возвращает код языка по его полному язык-страна.
|
|
158
|
-
* @param code country code/ код страна
|
|
159
|
-
*/
|
|
160
|
-
private static toLanguage;
|
|
161
|
-
/**
|
|
162
|
-
* Adding missing data.<br>
|
|
163
|
-
* Добавление недостающих данных.
|
|
164
|
-
* @param item object with data about the current country/
|
|
165
|
-
* объект с данными об текущей стране
|
|
166
|
-
*/
|
|
167
|
-
private static toFull;
|
|
168
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { GeoIntl } from './GeoIntl';
|
|
2
|
-
import { GeoFlagItem, GeoFlagNational, GeoItemFull } from '../types/geoTypes';
|
|
3
|
-
export declare const GEO_FLAG_ICON_NAME = "@flag";
|
|
4
|
-
/**
|
|
5
|
-
* Class for working with Flags.
|
|
6
|
-
*
|
|
7
|
-
* Класс для работы с Флагами.
|
|
8
|
-
*/
|
|
9
|
-
export declare class GeoFlag {
|
|
10
|
-
protected code: string;
|
|
11
|
-
static flags: Record<string, string>;
|
|
12
|
-
/**
|
|
13
|
-
* Constructor
|
|
14
|
-
* @param code country and language code/ код страны и языка
|
|
15
|
-
*/
|
|
16
|
-
constructor(code?: string);
|
|
17
|
-
/**
|
|
18
|
-
* Returns information about the country and its flag.
|
|
19
|
-
*
|
|
20
|
-
* Возвращает информацию о стране и её флаге.
|
|
21
|
-
* @param code country code/ код страны
|
|
22
|
-
*/
|
|
23
|
-
get(code?: string): GeoFlagItem | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Getting a link to the flag.
|
|
26
|
-
*
|
|
27
|
-
* Получение ссылки на флаг.
|
|
28
|
-
* @param code country code/ код страны
|
|
29
|
-
*/
|
|
30
|
-
getFlag(code?: string): string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Getting a list of countries by an array of codes.
|
|
33
|
-
*
|
|
34
|
-
* Получение списка стран по массиву с кодами.
|
|
35
|
-
* @param codes country code/ код страны
|
|
36
|
-
*/
|
|
37
|
-
getList(codes?: string[]): GeoFlagItem[];
|
|
38
|
-
/**
|
|
39
|
-
* Getting a list of countries by an array of codes in national language.
|
|
40
|
-
*
|
|
41
|
-
* Получение списка стран по массиву с кодами на национальный язык.
|
|
42
|
-
* @param codes country code/ код страны.
|
|
43
|
-
*/
|
|
44
|
-
getNational(codes?: string[]): GeoFlagNational[];
|
|
45
|
-
/**
|
|
46
|
-
* To change the location.
|
|
47
|
-
*
|
|
48
|
-
* Изменить местоположение.
|
|
49
|
-
* @param code country and language code/ код страны и языка
|
|
50
|
-
*/
|
|
51
|
-
setCode(code: string): this;
|
|
52
|
-
/**
|
|
53
|
-
* Returns a special object for formatting.
|
|
54
|
-
*
|
|
55
|
-
* Возвращает специальный объект для работы с форматированием.
|
|
56
|
-
*/
|
|
57
|
-
protected getLocation(): GeoIntl;
|
|
58
|
-
/**
|
|
59
|
-
* Returns a list of countries to retrieve data from.
|
|
60
|
-
*
|
|
61
|
-
* Возвращает список стран для получения данных.
|
|
62
|
-
* @param codes country code/ код страны
|
|
63
|
-
*/
|
|
64
|
-
protected getCodes(codes?: string[]): string[];
|
|
65
|
-
/**
|
|
66
|
-
* Getting the name of the language.
|
|
67
|
-
*
|
|
68
|
-
* Получение названия языка.
|
|
69
|
-
* @param data object with information of data/ объект с информацией данных
|
|
70
|
-
*/
|
|
71
|
-
protected getLanguage(data: GeoItemFull): string;
|
|
72
|
-
/**
|
|
73
|
-
* Getting the name of the country.
|
|
74
|
-
*
|
|
75
|
-
* Получение названия страны.
|
|
76
|
-
* @param data object with information of data/ объект с информацией данных
|
|
77
|
-
*/
|
|
78
|
-
protected getCountry(data: GeoItemFull): string;
|
|
79
|
-
}
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { NumberOrStringOrDate, NumberOrString, ItemValue } from '../types/basicTypes';
|
|
2
|
-
import { GeoDate } from '../types/geoTypes';
|
|
3
|
-
/**
|
|
4
|
-
* The Intl namespace object contains several constructors as well as functionality common
|
|
5
|
-
* to the internationalization constructors and other language sensitive functions. Collectively,
|
|
6
|
-
* they comprise the ECMAScript Internationalization API, which provides language sensitive
|
|
7
|
-
* string comparison, number formatting, date and time formatting, and more
|
|
8
|
-
*
|
|
9
|
-
* Объект Intl является пространством имён для API интернационализации ECMAScript, предоставляющим
|
|
10
|
-
* языка-зависимое сравнение строк, форматирование чисел и дат со временем. Конструкторы объектов
|
|
11
|
-
* Collator, NumberFormat и DateTimeFormat являются свойствами объекта Intl. На этой странице
|
|
12
|
-
* описаны эти свойства, а также общая функциональность конструкторов интернационализации и других
|
|
13
|
-
* языка-зависимых функций
|
|
14
|
-
*/
|
|
15
|
-
export declare class GeoIntl {
|
|
16
|
-
/**
|
|
17
|
-
* Returns an instance of the class according to the specified country code.
|
|
18
|
-
*
|
|
19
|
-
* Возвращает экземпляр класса по указанному коду страны.
|
|
20
|
-
* @param code country code, full form language-country or one of them/
|
|
21
|
-
* код страны, полный вид язык-страна или один из них
|
|
22
|
-
*/
|
|
23
|
-
static getInstance(code?: string): GeoIntl;
|
|
24
|
-
private readonly geo;
|
|
25
|
-
/**
|
|
26
|
-
* Constructor
|
|
27
|
-
* @param code country code, full form language-country or one of them/
|
|
28
|
-
* код страны, полный вид язык-страна или один из них
|
|
29
|
-
*/
|
|
30
|
-
constructor(code?: string);
|
|
31
|
-
/**
|
|
32
|
-
* Returns country code and language.
|
|
33
|
-
*
|
|
34
|
-
* Возвращает код страны и языка.
|
|
35
|
-
*/
|
|
36
|
-
getLocation(): string;
|
|
37
|
-
/**
|
|
38
|
-
* Returns the first day of the week.
|
|
39
|
-
*
|
|
40
|
-
* Возвращает первый день недели.
|
|
41
|
-
*/
|
|
42
|
-
getFirstDay(): string;
|
|
43
|
-
/**
|
|
44
|
-
* The consistent translation of language, region and script display names.
|
|
45
|
-
*
|
|
46
|
-
* Последовательный перевод отображаемых названий языка, региона и скрипта.
|
|
47
|
-
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
48
|
-
* @param typeOptions an object with some or all of the following properties/
|
|
49
|
-
* объект с некоторыми или всеми из следующих свойств
|
|
50
|
-
*/
|
|
51
|
-
display(value?: string, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): string;
|
|
52
|
-
/**
|
|
53
|
-
* Get display names of language.
|
|
54
|
-
*
|
|
55
|
-
* Получить отображаемые имена языка.
|
|
56
|
-
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
57
|
-
* @param style the formatting style to use/ используемый стиль форматирования
|
|
58
|
-
*/
|
|
59
|
-
languageName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
|
|
60
|
-
/**
|
|
61
|
-
* Get display names of region.
|
|
62
|
-
*
|
|
63
|
-
* Получить отображаемые имена региона.
|
|
64
|
-
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
65
|
-
* @param style the formatting style to use/ используемый стиль форматирования
|
|
66
|
-
*/
|
|
67
|
-
countryName(value?: string, style?: Intl.RelativeTimeFormatStyle): string;
|
|
68
|
-
/**
|
|
69
|
-
* The method returns a string containing the full name in a specific format.
|
|
70
|
-
*
|
|
71
|
-
* Метод возвращает строку, содержащую полное имя в определённом формате.
|
|
72
|
-
* @param last last name/ фамилию
|
|
73
|
-
* @param first first name/ имя
|
|
74
|
-
* @param surname surname middle name (optional)/ отчество
|
|
75
|
-
* @param short shorten the names/ сократить названия
|
|
76
|
-
*/
|
|
77
|
-
fullName(last: string, first: string, surname?: string, short?: boolean): string;
|
|
78
|
-
/**
|
|
79
|
-
* In basic use without specifying a locale, a formatted string.
|
|
80
|
-
*
|
|
81
|
-
* При обычном использовании без указания локали форматированная строка.
|
|
82
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
83
|
-
* @param options an object with some or all properties/ объект с некоторыми
|
|
84
|
-
* или всеми свойствами
|
|
85
|
-
*/
|
|
86
|
-
number(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
|
|
87
|
-
/**
|
|
88
|
-
* Decimal point symbol.
|
|
89
|
-
*
|
|
90
|
-
* Символ десятичной точки.
|
|
91
|
-
*/
|
|
92
|
-
decimal(): string;
|
|
93
|
-
/**
|
|
94
|
-
* Currency formatting.
|
|
95
|
-
*
|
|
96
|
-
* Форматирование валюты.
|
|
97
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
98
|
-
* @param currencyOptions the currency to use in currency formatting/
|
|
99
|
-
* валюта для использования в форматировании валюты
|
|
100
|
-
* @param numberOnly do not display the currency symbol/ не выводить значок валюты
|
|
101
|
-
*/
|
|
102
|
-
currency(value: NumberOrString, currencyOptions?: string | Intl.NumberFormatOptions, numberOnly?: boolean): string;
|
|
103
|
-
/**
|
|
104
|
-
* Returns the currency symbol if it exists, otherwise the currency code.
|
|
105
|
-
*
|
|
106
|
-
* Возвращает символ для валюты, если он есть, или сам код валюты.
|
|
107
|
-
* @param currency the currency to use in currency formatting/
|
|
108
|
-
* валюта для использования в форматировании валюты
|
|
109
|
-
* @param currencyDisplay how to display the currency in currency formatting/
|
|
110
|
-
* как отобразить валюту в формате валюты
|
|
111
|
-
*/
|
|
112
|
-
currencySymbol(currency: string, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): string;
|
|
113
|
-
/**
|
|
114
|
-
* Unit formatting.
|
|
115
|
-
* If the style is 'unit', a unit property must be provided.
|
|
116
|
-
*
|
|
117
|
-
* Форматирование юнитов.
|
|
118
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
119
|
-
* @param unitOptions the unit to use in unit formatting/ блок для использования
|
|
120
|
-
* в форматировании блока
|
|
121
|
-
*/
|
|
122
|
-
unit(value: NumberOrString, unitOptions?: string | Intl.NumberFormatOptions): string;
|
|
123
|
-
/**
|
|
124
|
-
* Возвращает отформатированный размер файла
|
|
125
|
-
* @param value a number, bigint, or string, to format /<br>число для форматирования
|
|
126
|
-
* @param unitOptions the unit to use in unit formatting /<br>блок для использования
|
|
127
|
-
* в форматировании блока
|
|
128
|
-
*/
|
|
129
|
-
sizeFile(value: NumberOrString, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): string;
|
|
130
|
-
/**
|
|
131
|
-
* Number as a percentage.
|
|
132
|
-
*
|
|
133
|
-
* Число в виде процента.
|
|
134
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
135
|
-
* @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
136
|
-
*/
|
|
137
|
-
percent(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
|
|
138
|
-
/**
|
|
139
|
-
* Number as a percentage (unit).
|
|
140
|
-
*
|
|
141
|
-
* Число в виде процента (единица).
|
|
142
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
143
|
-
* @param options an object with some or all properties/
|
|
144
|
-
* объект с некоторыми или всеми свойствами
|
|
145
|
-
*/
|
|
146
|
-
percentBy100(value: NumberOrString, options?: Intl.NumberFormatOptions): string;
|
|
147
|
-
/**
|
|
148
|
-
* Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
|
|
149
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
150
|
-
* @param words list of words for formatting (in the format one|two|few|many|other|zero)/
|
|
151
|
-
* список слов для форматирования (в формате `one|two|few|many|other|zero`)
|
|
152
|
-
* @param options Property for PluralRules/ свойство для PluralRules
|
|
153
|
-
* @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
154
|
-
*/
|
|
155
|
-
plural(value: NumberOrString, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): string;
|
|
156
|
-
/**
|
|
157
|
-
* Enables language-sensitive date and time formatting.
|
|
158
|
-
*
|
|
159
|
-
* Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
|
|
160
|
-
* @param value the date to format/ дата для форматирования
|
|
161
|
-
* @param type type of data format/ тип формата data
|
|
162
|
-
* @param styleOptions the representation of the month/ представление месяца
|
|
163
|
-
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
164
|
-
*/
|
|
165
|
-
date(value: NumberOrStringOrDate, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): string;
|
|
166
|
-
/**
|
|
167
|
-
* Enables language-sensitive relative time formatting.
|
|
168
|
-
*
|
|
169
|
-
* Включает форматирование относительного времени с учетом языка.
|
|
170
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
171
|
-
* @param styleOptions the length of the internationalized message/
|
|
172
|
-
* длина интернационализированного сообщения
|
|
173
|
-
* @param todayValue current day/ текущий день
|
|
174
|
-
*/
|
|
175
|
-
relative(value: NumberOrStringOrDate, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): string;
|
|
176
|
-
/**
|
|
177
|
-
* Enables language-sensitive relative time formatting
|
|
178
|
-
* Including the ability to add a limit to output the standard time format if the value
|
|
179
|
-
* exceeds the allowable limit.
|
|
180
|
-
*
|
|
181
|
-
* Включает форматирование относительного времени с учетом языка.
|
|
182
|
-
* Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
|
|
183
|
-
* если значение вышло за пределы допустимого.
|
|
184
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
185
|
-
* @param limit values that determine the output limit (values per day)/
|
|
186
|
-
* значения, по которым определяем предел вывода (значения в день)
|
|
187
|
-
* @param todayValue current day/ текущий день
|
|
188
|
-
* @param relativeOptions the length of the internationalized message/
|
|
189
|
-
* длина интернационализированного сообщения
|
|
190
|
-
* @param dateOptions the representation of the month/ представление месяца
|
|
191
|
-
* @param type type of data format/ тип формата data
|
|
192
|
-
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
193
|
-
*/
|
|
194
|
-
relativeLimit(value: NumberOrStringOrDate, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): string;
|
|
195
|
-
/**
|
|
196
|
-
* Возвращает отформатированное значение времени, прошедшего с момента события
|
|
197
|
-
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
198
|
-
* @param unit time unit/ единица времени
|
|
199
|
-
* @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
|
|
200
|
-
*/
|
|
201
|
-
relativeByValue(value: NumberOrString, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): string;
|
|
202
|
-
/**
|
|
203
|
-
* Names of months.<br>
|
|
204
|
-
* Названия месяцев.
|
|
205
|
-
* @param value the date to format/ дата для форматирования
|
|
206
|
-
* @param style the representation of the month/ представление месяца
|
|
207
|
-
*/
|
|
208
|
-
month(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['month']): string;
|
|
209
|
-
/**
|
|
210
|
-
* Array to list of months.
|
|
211
|
-
*
|
|
212
|
-
* Массив в список месяцев.
|
|
213
|
-
* @param style the representation of the month/ представление месяца
|
|
214
|
-
*/
|
|
215
|
-
months(style?: Intl.DateTimeFormatOptions['month']): ItemValue<number | undefined>[];
|
|
216
|
-
/**
|
|
217
|
-
* Returns names of days of the week.
|
|
218
|
-
*
|
|
219
|
-
* Возвращает названия дней недели.
|
|
220
|
-
* @param value the date to format/ дата для форматирования
|
|
221
|
-
* @param style the representation of the weekday/ представление о дне недели
|
|
222
|
-
*/
|
|
223
|
-
weekday(value?: NumberOrStringOrDate, style?: Intl.DateTimeFormatOptions['weekday']): string;
|
|
224
|
-
/**
|
|
225
|
-
* An array of the list of names of the days of the week.
|
|
226
|
-
*
|
|
227
|
-
* Массив из списка названий дней недели.
|
|
228
|
-
* @param style the representation of the weekday/ представление о дне недели
|
|
229
|
-
*/
|
|
230
|
-
weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ItemValue<number | undefined>[];
|
|
231
|
-
/**
|
|
232
|
-
* Time.
|
|
233
|
-
*
|
|
234
|
-
* Время.
|
|
235
|
-
* @param value the date to format/ дата для форматирования
|
|
236
|
-
*/
|
|
237
|
-
time(value: NumberOrStringOrDate): string;
|
|
238
|
-
/**
|
|
239
|
-
* Sorts strings taking into account the characteristics of countries.
|
|
240
|
-
*
|
|
241
|
-
* Сортирует строки с учетом особенностей стран.
|
|
242
|
-
* @param data an array with data/ массив с данными
|
|
243
|
-
* @param compareFn a function for sorting/ функция для сортировки
|
|
244
|
-
*/
|
|
245
|
-
sort<T>(data: T[], compareFn?: (a: T, b: T) => [string, string]): T[];
|
|
246
|
-
/**
|
|
247
|
-
* The object enables language-sensitive number formatting.
|
|
248
|
-
*
|
|
249
|
-
* Объект включает форматирование чисел с учетом языка.
|
|
250
|
-
* @param options an object with some or all properties/
|
|
251
|
-
* объект с некоторыми или всеми свойствами
|
|
252
|
-
*/
|
|
253
|
-
private numberObject;
|
|
254
|
-
/**
|
|
255
|
-
* Returns options for data according to its type.
|
|
256
|
-
*
|
|
257
|
-
* Возвращает options для data по его типу.
|
|
258
|
-
* @param type type of data format/ тип формата data
|
|
259
|
-
* @param display the representation of the month/ представление месяца
|
|
260
|
-
*/
|
|
261
|
-
private dateOptions;
|
|
262
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { GeoPhoneValue, GeoPhoneMap, GeoPhoneMapInfo } from '../types/geoTypes';
|
|
2
|
-
/**
|
|
3
|
-
* A class for storing and processing phone number masks.
|
|
4
|
-
*
|
|
5
|
-
* Класс для хранения и обработка маски телефона.
|
|
6
|
-
*/
|
|
7
|
-
export declare class GeoPhone {
|
|
8
|
-
protected static list: GeoPhoneValue[];
|
|
9
|
-
protected static map: Record<string, GeoPhoneMap>;
|
|
10
|
-
/**
|
|
11
|
-
* Getting an object with information about the phone code and country.
|
|
12
|
-
*
|
|
13
|
-
* Получение объекта с информацией о телефонном коде и стране.
|
|
14
|
-
* @param code country and language code/ код страны и языка
|
|
15
|
-
*/
|
|
16
|
-
static get(code: string): GeoPhoneValue | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Getting information by phone.
|
|
19
|
-
*
|
|
20
|
-
* Получение информации по телефону.
|
|
21
|
-
* @param phone phone number/ номер телефон
|
|
22
|
-
*/
|
|
23
|
-
static getByPhone(phone: string): GeoPhoneMapInfo;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves complete mask data by country code.
|
|
26
|
-
*
|
|
27
|
-
* Получает полные данные о маске по коду страны.
|
|
28
|
-
* @param code country and language code/ код страны и языка
|
|
29
|
-
*/
|
|
30
|
-
static getByCode(code: string): GeoPhoneMap | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* We get an array from a list of all phone numbers.
|
|
33
|
-
*
|
|
34
|
-
* Получаем массив из списка всех телефонных кодов.
|
|
35
|
-
*/
|
|
36
|
-
static getList(): GeoPhoneValue[];
|
|
37
|
-
/**
|
|
38
|
-
* We get a map of a tree, sorted by its code.
|
|
39
|
-
*
|
|
40
|
-
* Получаем карту дерева, отсортированную по его коду.
|
|
41
|
-
*/
|
|
42
|
-
static getMap(): Record<string, GeoPhoneMap>;
|
|
43
|
-
/**
|
|
44
|
-
* Convert to phone mask.
|
|
45
|
-
*
|
|
46
|
-
* Преобразовать в маску телефона.
|
|
47
|
-
* @param phone phone number/ номер телефон
|
|
48
|
-
* @param masks a mask to transform a phone number/ маска для преобразования номер телефон
|
|
49
|
-
*/
|
|
50
|
-
static toMask(phone: string, masks?: string[]): string | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Deletes the country code from the input number.
|
|
53
|
-
*
|
|
54
|
-
* Удаляет код страны по входному номеру.
|
|
55
|
-
* @param phone phone number/ номер телефон
|
|
56
|
-
*/
|
|
57
|
-
static removeZero(phone: string): string;
|
|
58
|
-
/**
|
|
59
|
-
* Returns the symbol by the internal country code.
|
|
60
|
-
*
|
|
61
|
-
* Возвращает символ по коду внутри страны.
|
|
62
|
-
* @param within internal country code/ код внутри страны
|
|
63
|
-
*/
|
|
64
|
-
protected static getWithinSymbol(within: number | string): string;
|
|
65
|
-
/**
|
|
66
|
-
* Deletes all characters that do not belong to the mask.
|
|
67
|
-
*
|
|
68
|
-
* Удаляет все символы, не относящиеся к маске.
|
|
69
|
-
* @param mask A mask to transform a phone number/ маска для преобразования номер телефон
|
|
70
|
-
*/
|
|
71
|
-
protected static getUnnecessaryLength(mask: string): number;
|
|
72
|
-
/**
|
|
73
|
-
* Creating a list for the map.
|
|
74
|
-
*
|
|
75
|
-
* Формирование списка для карты.
|
|
76
|
-
*/
|
|
77
|
-
protected static makeList(): void;
|
|
78
|
-
/**
|
|
79
|
-
* Creating a map for search.
|
|
80
|
-
*
|
|
81
|
-
* Создание карты для поиска.
|
|
82
|
-
*/
|
|
83
|
-
protected static makeMap(): void;
|
|
84
|
-
/**
|
|
85
|
-
* The method parses a string argument and returns a floating point number.
|
|
86
|
-
*
|
|
87
|
-
* Метод принимает строку в качестве аргумента и возвращает десятичное число.
|
|
88
|
-
* @param value the value to parse/ текстовая строка
|
|
89
|
-
*/
|
|
90
|
-
protected static toNumber(value: string): string[];
|
|
91
|
-
/**
|
|
92
|
-
* Converts the phone to a standard.
|
|
93
|
-
*
|
|
94
|
-
* Преобразовывает телефон в стандарт.
|
|
95
|
-
* @param phone phone number/ номер телефон
|
|
96
|
-
* @param mask a mask to transform a phone number/ маска для преобразования номер телефон
|
|
97
|
-
*/
|
|
98
|
-
protected static toStandard(phone: string, mask: string): string;
|
|
99
|
-
/**
|
|
100
|
-
* Replaces the first character with the internal country code
|
|
101
|
-
*
|
|
102
|
-
* Заменяет первый символ на код внутри страны.
|
|
103
|
-
* @param mask a mask to transform a phone number/ маска для преобразования номер телефон
|
|
104
|
-
* @param within internal country code/ код внутри страны
|
|
105
|
-
*/
|
|
106
|
-
protected static toWithin(mask: string, within: number | string): string;
|
|
107
|
-
}
|
package/dist/classes/Global.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Class for obtaining global data.
|
|
3
|
-
*
|
|
4
|
-
* Класс для получения глобальных данных.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Global {
|
|
7
|
-
/**
|
|
8
|
-
* Returns the value by its name.
|
|
9
|
-
*
|
|
10
|
-
* Возвращает значение по его имени.
|
|
11
|
-
* @param name property name/ название свойства
|
|
12
|
-
*/
|
|
13
|
-
static get<R = any>(name: string): R;
|
|
14
|
-
/**
|
|
15
|
-
* Adds data, this method works only once.
|
|
16
|
-
*
|
|
17
|
-
* Добавляет данные, этот метод работает только 1 раз.
|
|
18
|
-
* @param data global data/ глобальные данные
|
|
19
|
-
*/
|
|
20
|
-
static add(data: Record<string, any>): void;
|
|
21
|
-
}
|