@dxtmisha/functional 1.11.1 → 1.11.7
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/CHANGELOG.md +79 -0
- package/ai-description.txt +5 -0
- package/ai-types.txt +176 -138
- package/dist/classes/design/DesignAbstract.d.ts +61 -0
- package/dist/classes/design/DesignAsyncAbstract.d.ts +28 -0
- package/dist/classes/design/DesignChanged.d.ts +42 -0
- package/dist/classes/design/DesignComp.d.ts +4 -0
- package/dist/classes/design/DesignComponents.d.ts +81 -0
- package/dist/classes/design/DesignConstructorAbstract.d.ts +150 -0
- package/dist/classes/ref/DatetimeRef.d.ts +123 -0
- package/dist/classes/ref/EffectScopeGlobal.d.ts +22 -0
- package/dist/classes/ref/EventRef.d.ts +22 -0
- package/dist/classes/ref/GeoFlagRef.d.ts +51 -0
- package/dist/classes/ref/GeoIntlRef.d.ts +213 -0
- package/dist/classes/ref/GeoRef.d.ts +58 -0
- package/dist/classes/ref/ListDataRef.d.ts +359 -0
- package/dist/classes/ref/RouterItemRef.d.ts +61 -0
- package/dist/classes/ref/ScrollbarWidthRef.d.ts +22 -0
- package/dist/composables/ref/useApiAsyncRef.d.ts +18 -0
- package/dist/composables/ref/useApiDelete.d.ts +20 -0
- package/dist/composables/ref/useApiGet.d.ts +20 -0
- package/dist/composables/ref/useApiManagementAsyncRef.d.ts +49 -0
- package/dist/composables/ref/useApiManagementRef.d.ts +155 -0
- package/dist/composables/ref/useApiPost.d.ts +20 -0
- package/dist/composables/ref/useApiPut.d.ts +20 -0
- package/dist/composables/ref/useApiRef.d.ts +106 -0
- package/dist/composables/ref/useApiRequest.d.ts +28 -0
- package/dist/composables/ref/useBroadcastValueRef.d.ts +11 -0
- package/dist/composables/ref/useCookieRef.d.ts +11 -0
- package/dist/composables/ref/useFormattersRef.d.ts +21 -0
- package/dist/composables/ref/useGeoIntlRef.d.ts +7 -0
- package/dist/composables/ref/useHashRef.d.ts +9 -0
- package/dist/composables/ref/useLazyItemByMarginRef.d.ts +22 -0
- package/dist/composables/ref/useLazyRef.d.ts +42 -0
- package/dist/composables/ref/useLoadingRef.d.ts +7 -0
- package/dist/composables/ref/useMeta.d.ts +223 -0
- package/dist/composables/ref/useRouterList.d.ts +28 -0
- package/dist/composables/ref/useSearchRef.d.ts +36 -0
- package/dist/composables/ref/useSearchValueRef.d.ts +19 -0
- package/dist/composables/ref/useSessionRef.d.ts +9 -0
- package/dist/composables/ref/useStorageRef.d.ts +10 -0
- package/dist/composables/ref/useTranslateRef.d.ts +40 -0
- package/dist/flags.d.ts +1 -0
- package/dist/functions/basic.d.ts +1 -0
- package/dist/functions/computedAsync.d.ts +13 -0
- package/dist/functions/computedByLanguage.d.ts +15 -0
- package/dist/functions/computedEternity.d.ts +15 -0
- package/dist/functions/dxtFunctionalPlugin.d.ts +61 -0
- package/dist/functions/executeUse.d.ts +216 -0
- package/dist/functions/getInject.d.ts +7 -0
- package/dist/functions/getOptions.d.ts +10 -0
- package/dist/functions/ref/getBindRef.d.ts +13 -0
- package/dist/functions/ref/getRef.d.ts +8 -0
- package/dist/functions/ref/render.d.ts +13 -0
- package/dist/functions/ref/setRef.d.ts +9 -0
- package/dist/functions/ref/toRefItem.d.ts +9 -0
- package/dist/functions/render/getBind.d.ts +14 -0
- package/dist/functions/render/getClassName.d.ts +8 -0
- package/dist/functions/render/getIndexForRender.d.ts +10 -0
- package/dist/functions/toBind.d.ts +10 -0
- package/dist/functions/toBinds.d.ts +9 -0
- package/dist/library.d.ts +62 -2772
- package/dist/library.js +323 -262
- package/dist/types/apiTypes.d.ts +66 -0
- package/dist/types/constructorTypes.d.ts +126 -0
- package/dist/types/listTypes.d.ts +63 -0
- package/dist/types/refTypes.d.ts +36 -0
- package/dist/types/searchTypes.d.ts +6 -0
- package/package.json +7 -5
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { GeoDate, ItemValue, NumberOrString, NumberOrStringOrDate } from '@dxtmisha/functional-basic';
|
|
3
|
+
import { RefOrNormal } from '../../types/refTypes';
|
|
4
|
+
/**
|
|
5
|
+
* Reactive class for managing the formatting of numbers and dates.
|
|
6
|
+
*
|
|
7
|
+
* Реактивный класс для управления форматированием чисел и дат.
|
|
8
|
+
*/
|
|
9
|
+
export declare class GeoIntlRef {
|
|
10
|
+
private location;
|
|
11
|
+
private intl;
|
|
12
|
+
/**
|
|
13
|
+
* Constructor
|
|
14
|
+
* @param code country code, full form language-country or one of them/
|
|
15
|
+
* код страны, полный вид язык-страна или один из них
|
|
16
|
+
*/
|
|
17
|
+
constructor(code?: RefOrNormal<string>);
|
|
18
|
+
/**
|
|
19
|
+
* The consistent translation of language, region and script display names.
|
|
20
|
+
*
|
|
21
|
+
* Последовательный перевод отображаемых названий языка, региона и скрипта.
|
|
22
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
23
|
+
* @param typeOptions an object with some or all of the following properties/
|
|
24
|
+
* объект с некоторыми или всеми из следующих свойств
|
|
25
|
+
*/
|
|
26
|
+
display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Get display names of language.
|
|
29
|
+
*
|
|
30
|
+
* Получить отображаемые имена языка.
|
|
31
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
32
|
+
* @param style the formatting style to use/ используемый стиль форматирования
|
|
33
|
+
*/
|
|
34
|
+
languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Get display names of region.
|
|
37
|
+
*
|
|
38
|
+
* Получить отображаемые имена региона.
|
|
39
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
40
|
+
* @param style the formatting style to use/ используемый стиль форматирования
|
|
41
|
+
*/
|
|
42
|
+
countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
43
|
+
/**
|
|
44
|
+
* In basic use without specifying a locale, a formatted string.
|
|
45
|
+
*
|
|
46
|
+
* При обычном использовании без указания локали форматированная строка
|
|
47
|
+
*
|
|
48
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
49
|
+
* @param options an object with some or all properties/ объект с некоторыми
|
|
50
|
+
* или всеми свойствами
|
|
51
|
+
*/
|
|
52
|
+
number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Decimal point symbol.
|
|
55
|
+
*
|
|
56
|
+
* Символ десятичной точки.
|
|
57
|
+
*/
|
|
58
|
+
decimal(): ComputedRef<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Currency formatting.
|
|
61
|
+
*
|
|
62
|
+
* Форматирование валюты.
|
|
63
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
64
|
+
* @param currencyOptions the currency to use in currency formatting/
|
|
65
|
+
* валюта для использования в форматировании валюты
|
|
66
|
+
* @param numberOnly do not display the currency symbol/ не выводить значок валюты
|
|
67
|
+
*/
|
|
68
|
+
currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the currency symbol if it exists, otherwise the currency code.
|
|
71
|
+
*
|
|
72
|
+
* Возвращает символ для валюты, если он есть, или сам код валюты.
|
|
73
|
+
* @param currency the currency to use in currency formatting/
|
|
74
|
+
* валюта для использования в форматировании валюты
|
|
75
|
+
* @param currencyDisplay how to display the currency in currency formatting/
|
|
76
|
+
* как отобразить валюту в формате валюты
|
|
77
|
+
*/
|
|
78
|
+
currencySymbol(currency: RefOrNormal<string>, currencyDisplay?: keyof Intl.NumberFormatOptionsCurrencyDisplayRegistry): ComputedRef<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Unit formatting.
|
|
81
|
+
* If the style is 'unit', a unit property must be provided.
|
|
82
|
+
*
|
|
83
|
+
* Форматирование юнитов.
|
|
84
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
85
|
+
* @param unitOptions the unit to use in unit formatting/ блок для использования
|
|
86
|
+
* в форматировании блока
|
|
87
|
+
*/
|
|
88
|
+
unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
89
|
+
/**
|
|
90
|
+
* Возвращает отформатированный размер файла
|
|
91
|
+
* @param value a number, bigint, or string, to format /<br>число для форматирования
|
|
92
|
+
* @param unitOptions the unit to use in unit formatting /<br>блок для использования
|
|
93
|
+
* в форматировании блока
|
|
94
|
+
*/
|
|
95
|
+
sizeFile(value: RefOrNormal<NumberOrString>, unitOptions?: 'byte' | 'kilobyte' | 'megabyte' | 'gigabyte' | 'terabyte' | 'petabyte' | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Number as a percentage.
|
|
98
|
+
*
|
|
99
|
+
* Число в виде процента.
|
|
100
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
101
|
+
* @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
102
|
+
*/
|
|
103
|
+
percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Number as a percentage (unit).
|
|
106
|
+
*
|
|
107
|
+
* Число в виде процента (единица).
|
|
108
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
109
|
+
* @param options an object with some or all properties/
|
|
110
|
+
* объект с некоторыми или всеми свойствами
|
|
111
|
+
*/
|
|
112
|
+
percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
113
|
+
/**
|
|
114
|
+
* Применять форматирование, учитывающее множественное число, и языковые правила, связанные с множественным числом
|
|
115
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
116
|
+
* @param words list of words for formatting (in the format one|two|few|many|other|zero)/
|
|
117
|
+
* список слов для форматирования (в формате `one|two|few|many|other|zero`)
|
|
118
|
+
* @param options Property for PluralRules/ свойство для PluralRules
|
|
119
|
+
* @param optionsNumber an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
120
|
+
*/
|
|
121
|
+
plural(value: RefOrNormal<NumberOrString>, words: string, options?: Intl.PluralRulesOptions, optionsNumber?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Enables language-sensitive date and time formatting.
|
|
124
|
+
*
|
|
125
|
+
* Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
|
|
126
|
+
* @param value the date to format/ дата для форматирования
|
|
127
|
+
* @param type type of data format/ тип формата data
|
|
128
|
+
* @param styleOptions the representation of the month/ представление месяца
|
|
129
|
+
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
130
|
+
*/
|
|
131
|
+
date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Enables language-sensitive relative time formatting.
|
|
134
|
+
*
|
|
135
|
+
* Включает форматирование относительного времени с учетом языка.
|
|
136
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
137
|
+
* @param styleOptions the length of the internationalized message/
|
|
138
|
+
* длина интернационализированного сообщения
|
|
139
|
+
* @param todayValue current day/ текущий день
|
|
140
|
+
*/
|
|
141
|
+
relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
|
|
142
|
+
/**
|
|
143
|
+
* Enables language-sensitive relative time formatting
|
|
144
|
+
* Including the ability to add a limit to output the standard time format if the value
|
|
145
|
+
* exceeds the allowable limit.
|
|
146
|
+
*
|
|
147
|
+
* Включает форматирование относительного времени с учетом языка.
|
|
148
|
+
* Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
|
|
149
|
+
* если значение вышло за пределы допустимого.
|
|
150
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
151
|
+
* @param limit values that determine the output limit (values per day)/
|
|
152
|
+
* значения, по которым определяем предел вывода (значения в день)
|
|
153
|
+
* @param todayValue current day/ текущий день
|
|
154
|
+
* @param relativeOptions the length of the internationalized message/
|
|
155
|
+
* длина интернационализированного сообщения
|
|
156
|
+
* @param dateOptions the representation of the month/ представление месяца
|
|
157
|
+
* @param type type of data format/ тип формата data
|
|
158
|
+
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
159
|
+
*/
|
|
160
|
+
relativeLimit(value: RefOrNormal<NumberOrStringOrDate>, limit: number, todayValue?: Date, relativeOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, dateOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, type?: GeoDate, hour24?: boolean): ComputedRef<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Возвращает отформатированное значение времени, прошедшего с момента события
|
|
163
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
164
|
+
* @param unit time unit/ единица времени
|
|
165
|
+
* @param styleOptions additional option or formatting style/ дополнительная опция или стиль форматирования
|
|
166
|
+
*/
|
|
167
|
+
relativeByValue(value: RefOrNormal<NumberOrString>, unit: Intl.RelativeTimeFormatUnit, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions): ComputedRef<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Names of months.
|
|
170
|
+
*
|
|
171
|
+
* Названия месяцев.
|
|
172
|
+
* @param value the date to format/ дата для форматирования
|
|
173
|
+
* @param style the representation of the month/ представление месяца
|
|
174
|
+
*/
|
|
175
|
+
month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
|
|
176
|
+
/**
|
|
177
|
+
* Array to list of months.
|
|
178
|
+
*
|
|
179
|
+
* Массив в список месяцев.
|
|
180
|
+
* @param style the representation of the month/ представление месяца
|
|
181
|
+
*/
|
|
182
|
+
months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
183
|
+
/**
|
|
184
|
+
* Returns names of days of the week.
|
|
185
|
+
*
|
|
186
|
+
* Возвращает названия дней недели.
|
|
187
|
+
* @param value the date to format/ дата для форматирования
|
|
188
|
+
* @param style the representation of the weekday/ представление о дне недели
|
|
189
|
+
*/
|
|
190
|
+
weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
|
|
191
|
+
/**
|
|
192
|
+
* An array of the list of names of the days of the week.
|
|
193
|
+
*
|
|
194
|
+
* Массив из списка названий дней недели.
|
|
195
|
+
* @param style the representation of the weekday/ представление о дне недели
|
|
196
|
+
*/
|
|
197
|
+
weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
198
|
+
/**
|
|
199
|
+
* Time.
|
|
200
|
+
*
|
|
201
|
+
* Время.
|
|
202
|
+
* @param value the date to format/ дата для форматирования
|
|
203
|
+
*/
|
|
204
|
+
time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
|
|
205
|
+
/**
|
|
206
|
+
* Sorts strings taking into account the characteristics of countries.
|
|
207
|
+
*
|
|
208
|
+
* Сортирует строки с учетом особенностей стран.
|
|
209
|
+
* @param data an array with data/ массив с данными
|
|
210
|
+
* @param compareFn a function for sorting/ функция для сортировки
|
|
211
|
+
*/
|
|
212
|
+
sort<T>(data: RefOrNormal<T[]>, compareFn?: (a: T, b: T) => [string, string]): ComputedRef<T[]>;
|
|
213
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { GeoItemFull } from '@dxtmisha/functional-basic';
|
|
3
|
+
/**
|
|
4
|
+
* Reactive class for working with geographic data.
|
|
5
|
+
*
|
|
6
|
+
* Реактивный класс для работы с географическими данными.
|
|
7
|
+
*/
|
|
8
|
+
export declare class GeoRef {
|
|
9
|
+
private static readonly country;
|
|
10
|
+
private static readonly language;
|
|
11
|
+
private static readonly standard;
|
|
12
|
+
private static readonly firstDay;
|
|
13
|
+
/**
|
|
14
|
+
* Information about the current country.
|
|
15
|
+
*
|
|
16
|
+
* Информация об текущей стране.
|
|
17
|
+
* @returns reactive object with full geographic information/ реактивный объект с полной географической информацией
|
|
18
|
+
*/
|
|
19
|
+
static get(): Ref<GeoItemFull>;
|
|
20
|
+
/**
|
|
21
|
+
* Current country.
|
|
22
|
+
*
|
|
23
|
+
* Текущая страна.
|
|
24
|
+
* @returns reactive string with the current country code/ реактивная строка с кодом текущей страны
|
|
25
|
+
*/
|
|
26
|
+
static getCountry(): ComputedRef<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Current language.
|
|
29
|
+
*
|
|
30
|
+
* Текущий язык.
|
|
31
|
+
* @returns reactive string with the current language code/ реактивная строка с кодом текущего языка
|
|
32
|
+
*/
|
|
33
|
+
static getLanguage(): ComputedRef<string>;
|
|
34
|
+
/**
|
|
35
|
+
* Full format according to the standard.
|
|
36
|
+
*
|
|
37
|
+
* Полный формат согласно стандарту.
|
|
38
|
+
* @returns reactive string with the full standard locale format/
|
|
39
|
+
* реактивная строка с полным форматом стандарта локали
|
|
40
|
+
*/
|
|
41
|
+
static getStandard(): ComputedRef<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Returns the first day of the week.
|
|
44
|
+
*
|
|
45
|
+
* Возвращает первый день недели.
|
|
46
|
+
* @returns reactive string representing the first day of the week/
|
|
47
|
+
* реактивная строка, представляющая первый день недели
|
|
48
|
+
*/
|
|
49
|
+
static getFirstDay(): ComputedRef<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Changes the data by the full code.
|
|
52
|
+
*
|
|
53
|
+
* Изменяет данные по полному коду.
|
|
54
|
+
* @param code country code, full form language-country or one of them/
|
|
55
|
+
* код страны, полный вид язык-страна или один из них
|
|
56
|
+
*/
|
|
57
|
+
static set(code: string): void;
|
|
58
|
+
}
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { RefOrNormal, RefType } from '../../types/refTypes';
|
|
2
|
+
import { ListDataFull, ListDataItem, ListList, ListListInput, ListNames, ListSelectedItem, ListSelectedList } from '../../types/listTypes';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* Class for managing the data list.
|
|
6
|
+
*
|
|
7
|
+
* Класс для управления списком данных.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ListDataRef {
|
|
10
|
+
protected readonly list: RefOrNormal<ListListInput | undefined>;
|
|
11
|
+
protected readonly focus?: RefType<ListSelectedItem | undefined> | undefined;
|
|
12
|
+
protected readonly highlight?: RefType<string | undefined> | undefined;
|
|
13
|
+
protected readonly highlightLengthStart?: RefType<number | undefined> | undefined;
|
|
14
|
+
protected readonly filterMode?: RefType<boolean | undefined> | undefined;
|
|
15
|
+
protected readonly selected?: RefType<ListSelectedList | undefined> | undefined;
|
|
16
|
+
protected readonly keyValue?: RefType<string | undefined> | undefined;
|
|
17
|
+
protected readonly keyLabel?: RefType<string | undefined> | undefined;
|
|
18
|
+
protected readonly lite?: RefType<number | undefined> | undefined;
|
|
19
|
+
protected readonly min: RefOrNormal<number | string | undefined>;
|
|
20
|
+
protected readonly max: RefOrNormal<number | string | undefined>;
|
|
21
|
+
protected readonly parent?: string | undefined;
|
|
22
|
+
protected subList: Record<any, ListDataRef>;
|
|
23
|
+
/**
|
|
24
|
+
* Creates an instance of ListData for managing list data.
|
|
25
|
+
*
|
|
26
|
+
* Создает экземпляр ListData для управления данными списка.
|
|
27
|
+
* @param list List data / данные списка
|
|
28
|
+
* @param focus Focused item / элемент в фокусе
|
|
29
|
+
* @param highlight Search text for highlighting / текст поиска для выделения
|
|
30
|
+
* @param highlightLengthStart Minimum length to start highlighting / минимальная длина для начала выделения
|
|
31
|
+
* @param filterMode Filter mode / режим фильтрации
|
|
32
|
+
* @param selected Selected items / выбранные элементы
|
|
33
|
+
* @param keyValue Key for getting item value / ключ для получения значения элемента
|
|
34
|
+
* @param keyLabel Key for getting item label / ключ для получения метки элемента
|
|
35
|
+
* @param lite Threshold for lite mode / порог для облегченного режима
|
|
36
|
+
* @param min Minimum number of selections / минимальное количество выделений
|
|
37
|
+
* @param max Maximum number of selections / максимальное количество выделений
|
|
38
|
+
* @param parent Parent identifier / идентификатор родителя
|
|
39
|
+
*/
|
|
40
|
+
constructor(list: RefOrNormal<ListListInput | undefined>, focus?: RefType<ListSelectedItem | undefined> | undefined, highlight?: RefType<string | undefined> | undefined, highlightLengthStart?: RefType<number | undefined> | undefined, filterMode?: RefType<boolean | undefined> | undefined, selected?: RefType<ListSelectedList | undefined> | undefined, keyValue?: RefType<string | undefined> | undefined, keyLabel?: RefType<string | undefined> | undefined, lite?: RefType<number | undefined> | undefined, min?: RefOrNormal<number | string | undefined>, max?: RefOrNormal<number | string | undefined>, parent?: string | undefined);
|
|
41
|
+
/**
|
|
42
|
+
* Returns a list for forming a list.
|
|
43
|
+
*
|
|
44
|
+
* Возвращает список для формирования списка.
|
|
45
|
+
* @returns reactive list of items/ реактивный список элементов
|
|
46
|
+
*/
|
|
47
|
+
readonly data: ComputedRef<ListList>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns a simplified list for quick loading.
|
|
50
|
+
*
|
|
51
|
+
* Возвращает упрощенный список для быстрой загрузки.
|
|
52
|
+
* @returns simplified reactive list/ упрощенный реактивный список
|
|
53
|
+
*/
|
|
54
|
+
readonly liteData: ComputedRef<ListList>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns a list of records with all additional data (focus, selection, disabled status).
|
|
57
|
+
*
|
|
58
|
+
* Возвращает список записей со всеми дополнительными данными (фокус, выделение, статус активности).
|
|
59
|
+
* @returns full reactive list/ полный реактивный список
|
|
60
|
+
*/
|
|
61
|
+
readonly fullData: ComputedRef<ListDataFull>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns a flat map of all entries including sublists.
|
|
64
|
+
*
|
|
65
|
+
* Возвращает плоскую карту всех записей, включая подсписки.
|
|
66
|
+
* @returns reactive flat list/ реактивный плоский список
|
|
67
|
+
*/
|
|
68
|
+
readonly map: ComputedRef<ListList>;
|
|
69
|
+
/** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
|
|
70
|
+
readonly mapItems: ComputedRef<ListList>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns a list consisting only of values for selection (item, group, menu).
|
|
73
|
+
*
|
|
74
|
+
* Возвращает список, состоящий только из значений для выбора (item, group, menu).
|
|
75
|
+
* @returns reactive list/ реактивный список
|
|
76
|
+
*/
|
|
77
|
+
readonly items: ComputedRef<ListList>;
|
|
78
|
+
/**
|
|
79
|
+
* Finds the first element that meets the search conditions.
|
|
80
|
+
*
|
|
81
|
+
* Находит первый элемент, соответствующий условиям поиска.
|
|
82
|
+
* @returns first found index/ первый найденный индекс
|
|
83
|
+
*/
|
|
84
|
+
readonly highlightFirstItem: ComputedRef<number>;
|
|
85
|
+
/**
|
|
86
|
+
* Is there a selected item.
|
|
87
|
+
*
|
|
88
|
+
* Есть ли выбранный элемент.
|
|
89
|
+
* @returns true if selection exists/ true, если есть выбор
|
|
90
|
+
*/
|
|
91
|
+
readonly isSelected: ComputedRef<boolean>;
|
|
92
|
+
/**
|
|
93
|
+
* Is the minimum selection reached.
|
|
94
|
+
*
|
|
95
|
+
* Достигнуто ли минимальное выделение.
|
|
96
|
+
* @returns true if minimum reached/ true, если минимум достигнут
|
|
97
|
+
*/
|
|
98
|
+
readonly isSelectedMin: ComputedRef<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Is the maximum selection reached.
|
|
101
|
+
*
|
|
102
|
+
* Достигнуто ли максимальное выделение.
|
|
103
|
+
* @returns true if maximum reached/ true, если максимум достигнут
|
|
104
|
+
*/
|
|
105
|
+
readonly isSelectedMax: ComputedRef<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Returns a list of selected items on the map.
|
|
108
|
+
*
|
|
109
|
+
* Возвращает список выделенных элементов на карте.
|
|
110
|
+
* @returns reactive list of selected items/ реактивный список выделенных элементов
|
|
111
|
+
*/
|
|
112
|
+
readonly selectedList: ComputedRef<ListList>;
|
|
113
|
+
/**
|
|
114
|
+
* Returns a list of selected items in the current group.
|
|
115
|
+
*
|
|
116
|
+
* Возвращает список выделенных элементов в текущей группе.
|
|
117
|
+
* @returns reactive list of selected items in group/ реактивный список выделенных элементов в группе
|
|
118
|
+
*/
|
|
119
|
+
readonly selectedListInGroup: ComputedRef<ListList>;
|
|
120
|
+
/**
|
|
121
|
+
* Returns a list of selected labels on the map.
|
|
122
|
+
*
|
|
123
|
+
* Возвращает список названий выделенных элементов на карте.
|
|
124
|
+
* @returns reactive list of labels/ реактивный список названий
|
|
125
|
+
*/
|
|
126
|
+
readonly selectedNames: ComputedRef<ListNames>;
|
|
127
|
+
/**
|
|
128
|
+
* Returns a list of selected values on the map.
|
|
129
|
+
*
|
|
130
|
+
* Возвращает список значений выделенных элементов на карте.
|
|
131
|
+
* @returns reactive list of values/ реактивный список значений
|
|
132
|
+
*/
|
|
133
|
+
readonly selectedValues: ComputedRef<any[]>;
|
|
134
|
+
/**
|
|
135
|
+
* Checks whether it is necessary to first display a simplified version.
|
|
136
|
+
*
|
|
137
|
+
* Проверяет, надо ли сначала вывести упрощенную версию.
|
|
138
|
+
* @returns true if lite mode is active/ true, если активен облегченный режим
|
|
139
|
+
*/
|
|
140
|
+
isLite(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Checks if an element is in focus.
|
|
143
|
+
*
|
|
144
|
+
* Проверяет, есть ли элемент в фокусе.
|
|
145
|
+
* @returns true if focus exists/ true, если есть фокус
|
|
146
|
+
*/
|
|
147
|
+
isFocus(): boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Checks if there is a highlighted item (search results).
|
|
150
|
+
*
|
|
151
|
+
* Проверяет, есть ли найденный элемент (результаты поиска).
|
|
152
|
+
* @returns true if highlight exists/ true, если есть совпадения
|
|
153
|
+
*/
|
|
154
|
+
isHighlight(): boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Checks if highlighting is active (minimum length reached).
|
|
157
|
+
*
|
|
158
|
+
* Проверяет, активно ли выделение (достигнута минимальная длина).
|
|
159
|
+
* @returns true if active/ true, если активно
|
|
160
|
+
*/
|
|
161
|
+
isHighlightActive(): boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Returns the number of records in the current list.
|
|
164
|
+
*
|
|
165
|
+
* Возвращает количество записей в текущем списке.
|
|
166
|
+
* @returns length/ количество
|
|
167
|
+
*/
|
|
168
|
+
getLength(): number;
|
|
169
|
+
/**
|
|
170
|
+
* Returns the number of all available records in the map.
|
|
171
|
+
*
|
|
172
|
+
* Возвращает количество всех доступных записей в карте.
|
|
173
|
+
* @returns length/ количество
|
|
174
|
+
*/
|
|
175
|
+
getLengthByMap(): number;
|
|
176
|
+
/**
|
|
177
|
+
* Returns the number of all available records (items).
|
|
178
|
+
*
|
|
179
|
+
* Возвращает количество всех доступных записей (элементы).
|
|
180
|
+
* @returns length/ количество
|
|
181
|
+
*/
|
|
182
|
+
getLengthByItems(): number;
|
|
183
|
+
/**
|
|
184
|
+
* Returns the identifier in focus.
|
|
185
|
+
*
|
|
186
|
+
* Возвращает идентификатор в фокусе.
|
|
187
|
+
* @returns focus identifier/ идентификатор в фокусе
|
|
188
|
+
*/
|
|
189
|
+
getFocus(): ListSelectedItem | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* Returns the highlight text.
|
|
192
|
+
*
|
|
193
|
+
* Возвращает текст для выделения.
|
|
194
|
+
* @returns text/ текст
|
|
195
|
+
*/
|
|
196
|
+
getHighlight(): string | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Returns the minimum length for highlight to start.
|
|
199
|
+
*
|
|
200
|
+
* Возвращает минимальную длину для начала выделения.
|
|
201
|
+
* @returns length/ длина
|
|
202
|
+
*/
|
|
203
|
+
getHighlightLengthStart(): number;
|
|
204
|
+
/**
|
|
205
|
+
* Returns the selected identifiers list.
|
|
206
|
+
*
|
|
207
|
+
* Возвращает список выбранных идентификаторов.
|
|
208
|
+
* @returns list/ список
|
|
209
|
+
*/
|
|
210
|
+
getSelected(): ListSelectedList | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* Returns an item by moving a certain number of steps from the selected item.
|
|
213
|
+
*
|
|
214
|
+
* Возвращает элемент, перемещаясь на определенное количество шагов от выбранного элемента.
|
|
215
|
+
* @param step number of steps/ количество шагов
|
|
216
|
+
* @returns target item index/ индекс целевого элемента
|
|
217
|
+
*/
|
|
218
|
+
getSelectedByStep(step: number): ListSelectedItem | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* Returns the next item from the selected one.
|
|
221
|
+
*
|
|
222
|
+
* Возвращает следующий элемент от выбранного.
|
|
223
|
+
* @returns next item index/ индекс следующего элемента
|
|
224
|
+
*/
|
|
225
|
+
getSelectedNext(): ListSelectedItem | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Returns the previous item from the selected one.
|
|
228
|
+
*
|
|
229
|
+
* Возвращает предыдущий элемент от выбранного.
|
|
230
|
+
* @returns previous item index/ индекс предыдущего элемента
|
|
231
|
+
*/
|
|
232
|
+
getSelectedPrev(): ListSelectedItem | undefined;
|
|
233
|
+
/**
|
|
234
|
+
* Returns an item by moving a certain number of steps from the specified item.
|
|
235
|
+
*
|
|
236
|
+
* Возвращает элемент, перемещаясь на определенное количество шагов от указанного элемента.
|
|
237
|
+
* @param item item/ элемент
|
|
238
|
+
* @param step number of steps/ количество шагов
|
|
239
|
+
* @returns target item/ целевой элемент
|
|
240
|
+
*/
|
|
241
|
+
getItemByStep(item: ListDataItem, step: number): ListDataItem | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* Returns the next item from the specified one.
|
|
244
|
+
*
|
|
245
|
+
* Возвращает следующий элемент от указанного.
|
|
246
|
+
* @param item item/ элемент
|
|
247
|
+
* @returns next item/ следующий элемент
|
|
248
|
+
*/
|
|
249
|
+
getItemNext(item: ListDataItem): ListDataItem | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* Returns the previous item from the specified one.
|
|
252
|
+
*
|
|
253
|
+
* Возвращает предыдущий элемент от указанного.
|
|
254
|
+
* @param item item/ элемент
|
|
255
|
+
* @returns previous item/ предыдущий элемент
|
|
256
|
+
*/
|
|
257
|
+
getItemPrev(item: ListDataItem): ListDataItem | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* Returns an item by moving a certain number of steps from the specified index.
|
|
260
|
+
*
|
|
261
|
+
* Возвращает элемент, перемещаясь на определенное количество шагов от указанного индекса.
|
|
262
|
+
* @param index item index/ индекс элемента
|
|
263
|
+
* @param step number of steps/ количество шагов
|
|
264
|
+
* @returns target item/ целевой элемент
|
|
265
|
+
*/
|
|
266
|
+
getIndexByStep(index: string, step: number): ListDataItem | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* Returns the next item from the specified index.
|
|
269
|
+
*
|
|
270
|
+
* Возвращает следующий элемент от указанного индекса.
|
|
271
|
+
* @param index item index/ индекс элемента
|
|
272
|
+
* @returns next item/ следующий элемент
|
|
273
|
+
*/
|
|
274
|
+
getIndexNext(index: string): ListDataItem | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Returns the previous item from the specified index.
|
|
277
|
+
*
|
|
278
|
+
* Возвращает предыдущий элемент от указанного индекса.
|
|
279
|
+
* @param index item index/ индекс элемента
|
|
280
|
+
* @returns previous item/ предыдущий элемент
|
|
281
|
+
*/
|
|
282
|
+
getIndexPrev(index: string): ListDataItem | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* Returns an item by its index.
|
|
285
|
+
*
|
|
286
|
+
* Возвращает элемент по его индексу.
|
|
287
|
+
* @param index item index/ индекс элемента
|
|
288
|
+
* @returns found item details/ информация о найденном элементе
|
|
289
|
+
*/
|
|
290
|
+
getItemByIndex(index?: string): {
|
|
291
|
+
key: number;
|
|
292
|
+
item: ListDataItem;
|
|
293
|
+
} | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* Returns an item by its key.
|
|
296
|
+
*
|
|
297
|
+
* Возвращает элемент по его ключу.
|
|
298
|
+
* @param key item key/ ключ элемента
|
|
299
|
+
* @returns found item/ найденный элемент
|
|
300
|
+
*/
|
|
301
|
+
getItemByKey(key: number): ListDataItem | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Returns the first item with the specified parent.
|
|
304
|
+
*
|
|
305
|
+
* Возвращает первый элемент с указанным родителем.
|
|
306
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
307
|
+
* @returns first item/ первый элемент
|
|
308
|
+
*/
|
|
309
|
+
getFirstItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
310
|
+
/**
|
|
311
|
+
* Returns the last item with the specified parent.
|
|
312
|
+
*
|
|
313
|
+
* Возвращает последний элемент с указанным родителем.
|
|
314
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
315
|
+
* @returns last item/ последний элемент
|
|
316
|
+
*/
|
|
317
|
+
getLastItemByParent(parent: string | undefined): ListDataItem | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* Returns a sublist object for a group item.
|
|
320
|
+
*
|
|
321
|
+
* Возвращает объект подсписка для группового элемента.
|
|
322
|
+
* @param item List item data/ данные элемента списка
|
|
323
|
+
* @returns sublist instance/ экземпляр подсписка
|
|
324
|
+
*/
|
|
325
|
+
getSubList(item: ListDataItem): ListDataRef;
|
|
326
|
+
/**
|
|
327
|
+
* Checks if the item is an item, group, or menu.
|
|
328
|
+
*
|
|
329
|
+
* Проверяет, является ли элемент элементом, группой или меню.
|
|
330
|
+
* @param item List item data/ данные элемента списка
|
|
331
|
+
*/
|
|
332
|
+
protected isItem(item: ListDataItem): boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Checks if the item is in the specified parent.
|
|
335
|
+
*
|
|
336
|
+
* Проверяет, находится ли элемент в указанном родителе.
|
|
337
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
338
|
+
* @param item List item data/ данные элемента списка
|
|
339
|
+
*/
|
|
340
|
+
protected isInParent(parent: string | undefined, item: ListDataItem): boolean;
|
|
341
|
+
/**
|
|
342
|
+
* Returns the index for the list item.
|
|
343
|
+
*
|
|
344
|
+
* Возвращает индекс для элемента списка.
|
|
345
|
+
* @param index current index / текущий индекс
|
|
346
|
+
* @param value item value / значение элемента
|
|
347
|
+
* @param key item key / ключ элемента
|
|
348
|
+
* @param label item label / метка элемента
|
|
349
|
+
*/
|
|
350
|
+
protected getIndex(index: string | number | undefined, value: any, key: string | number | undefined, label: string | number | undefined): string | number | undefined;
|
|
351
|
+
/**
|
|
352
|
+
* Creates an object of the record element.
|
|
353
|
+
*
|
|
354
|
+
* Создает объект элемента записи.
|
|
355
|
+
* @param key the value of the key in the element/ значения ключа у элемента
|
|
356
|
+
* @param item selected element/ выбранный элемент
|
|
357
|
+
*/
|
|
358
|
+
protected initItem(key: string | number, item: any): ListDataItem;
|
|
359
|
+
}
|