@dxtmisha/functional 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.d.ts +1950 -45
- package/package.json +1 -1
- package/dist/classes/design/DesignAbstract.d.ts +0 -61
- package/dist/classes/design/DesignAsyncAbstract.d.ts +0 -28
- package/dist/classes/design/DesignChanged.d.ts +0 -42
- package/dist/classes/design/DesignComp.d.ts +0 -4
- package/dist/classes/design/DesignComponents.d.ts +0 -81
- package/dist/classes/design/DesignConstructorAbstract.d.ts +0 -150
- package/dist/classes/ref/DatetimeRef.d.ts +0 -117
- package/dist/classes/ref/EventRef.d.ts +0 -22
- package/dist/classes/ref/GeoFlagRef.d.ts +0 -51
- package/dist/classes/ref/GeoIntlRef.d.ts +0 -172
- package/dist/classes/ref/GeoRef.d.ts +0 -52
- package/dist/classes/ref/ListDataRef.d.ts +0 -255
- package/dist/classes/ref/RouterItemRef.d.ts +0 -36
- package/dist/classes/ref/ScrollbarWidthRef.d.ts +0 -24
- package/dist/composables/ref/useApiRef.d.ts +0 -25
- package/dist/composables/ref/useBroadcastValueRef.d.ts +0 -11
- package/dist/composables/ref/useCookieRef.d.ts +0 -11
- package/dist/composables/ref/useGeoIntlRef.d.ts +0 -7
- package/dist/composables/ref/useHashRef.d.ts +0 -9
- package/dist/composables/ref/useLazyItemByMarginRef.d.ts +0 -22
- package/dist/composables/ref/useLazyRef.d.ts +0 -42
- package/dist/composables/ref/useLoadingRef.d.ts +0 -7
- package/dist/composables/ref/useMeta.d.ts +0 -34
- package/dist/composables/ref/useSessionRef.d.ts +0 -9
- package/dist/composables/ref/useStorageRef.d.ts +0 -10
- package/dist/composables/ref/useTranslateRef.d.ts +0 -16
- package/dist/flags.d.ts +0 -1
- package/dist/flags.js +0 -8
- package/dist/functions/basic.d.ts +0 -1
- package/dist/functions/computedAsync.d.ts +0 -11
- package/dist/functions/computedByLanguage.d.ts +0 -15
- package/dist/functions/executeUse.d.ts +0 -13
- package/dist/functions/ref/getBindRef.d.ts +0 -13
- package/dist/functions/ref/getComputedAsync.d.ts +0 -9
- package/dist/functions/ref/getRef.d.ts +0 -8
- package/dist/functions/ref/render.d.ts +0 -13
- package/dist/functions/ref/setRef.d.ts +0 -9
- package/dist/functions/ref/toComputed.d.ts +0 -8
- package/dist/functions/ref/toRefItem.d.ts +0 -9
- package/dist/functions/render/getBind.d.ts +0 -14
- package/dist/functions/render/getClassName.d.ts +0 -8
- package/dist/functions/render/getIndexForRender.d.ts +0 -10
- package/dist/functions/toBind.d.ts +0 -10
- package/dist/functions/toBinds.d.ts +0 -9
- package/dist/types/constructorTypes.d.ts +0 -116
- package/dist/types/listTypes.d.ts +0 -63
- package/dist/types/refTypes.d.ts +0 -36
package/dist/library.d.ts
CHANGED
|
@@ -1,45 +1,1950 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
1
|
+
import { ApiFetch } from '@dxtmisha/functional-basic';
|
|
2
|
+
import { ApiMethodItem } from '@dxtmisha/functional-basic';
|
|
3
|
+
import { ComputedGetter } from 'vue';
|
|
4
|
+
import { ComputedRef } from 'vue';
|
|
5
|
+
import { CookieOptions } from '@dxtmisha/functional-basic';
|
|
6
|
+
import { Datetime } from '@dxtmisha/functional-basic';
|
|
7
|
+
import { DebuggerOptions } from 'vue';
|
|
8
|
+
import { ElementOrString } from '@dxtmisha/functional-basic';
|
|
9
|
+
import { ElementOrWindow } from '@dxtmisha/functional-basic';
|
|
10
|
+
import { EventItem } from '@dxtmisha/functional-basic';
|
|
11
|
+
import { EventListenerDetail } from '@dxtmisha/functional-basic';
|
|
12
|
+
import { EventOptions } from '@dxtmisha/functional-basic';
|
|
13
|
+
import { GeoDate } from '@dxtmisha/functional-basic';
|
|
14
|
+
import { GeoFirstDay } from '@dxtmisha/functional-basic';
|
|
15
|
+
import { GeoFlag } from '@dxtmisha/functional-basic';
|
|
16
|
+
import { GeoFlagItem } from '@dxtmisha/functional-basic';
|
|
17
|
+
import { GeoFlagNational } from '@dxtmisha/functional-basic';
|
|
18
|
+
import { GeoHours } from '@dxtmisha/functional-basic';
|
|
19
|
+
import { GeoItemFull } from '@dxtmisha/functional-basic';
|
|
20
|
+
import { ItemList } from '@dxtmisha/functional-basic';
|
|
21
|
+
import { ItemValue } from '@dxtmisha/functional-basic';
|
|
22
|
+
import { Meta } from '@dxtmisha/functional-basic';
|
|
23
|
+
import { MetaRobots } from '@dxtmisha/functional-basic';
|
|
24
|
+
import { NumberOrString } from '@dxtmisha/functional-basic';
|
|
25
|
+
import { NumberOrStringOrBoolean } from '@dxtmisha/functional-basic';
|
|
26
|
+
import { NumberOrStringOrDate } from '@dxtmisha/functional-basic';
|
|
27
|
+
import { PropType } from 'vue';
|
|
28
|
+
import { Ref } from 'vue';
|
|
29
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
30
|
+
import { Router } from 'vue-router';
|
|
31
|
+
import { ShallowRef } from 'vue';
|
|
32
|
+
import { ToRefs } from 'vue';
|
|
33
|
+
import { TranslateList } from '@dxtmisha/functional-basic';
|
|
34
|
+
import { Undefined } from '@dxtmisha/functional-basic';
|
|
35
|
+
import { VNode } from 'vue';
|
|
36
|
+
import { VNodeArrayChildren } from 'vue';
|
|
37
|
+
|
|
38
|
+
declare type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
|
|
39
|
+
|
|
40
|
+
declare type BroadcastValueItem<T> = T | string | undefined;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Creates a computed property that can handle asynchronous getters.
|
|
44
|
+
*
|
|
45
|
+
* Создаёт вычисляемое свойство, которое может обрабатывать асинхронные геттеры.
|
|
46
|
+
* @param getter Asynchronous function, synchronous function, or direct value to compute the result/
|
|
47
|
+
* Асинхронная функция, синхронная функция или прямое значение для вычисления результата
|
|
48
|
+
* @param debugOptions Used for debugging reactive computations. Supported by Vue.js library/
|
|
49
|
+
* Используется для отладки реактивных вычислений. Поддерживается библиотекой Vue.js
|
|
50
|
+
*/
|
|
51
|
+
export declare function computedAsync<R>(getter: (() => Promise<R>) | (() => R) | R, debugOptions?: DebuggerOptions): ComputedRef<R>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Метод `computedByLanguage` предоставляет возможность создания реактивного свойства `computed`,
|
|
55
|
+
* значение которого изменяется в зависимости от текущего языка и определённых условий.
|
|
56
|
+
* @param getter Функция, которая предоставляет основное значение, зависящее от текущего языка
|
|
57
|
+
* или других факторов. Этот `getter` будет вызываться для получения актуального значения
|
|
58
|
+
* @param getterNone Альтернативное значение, которое будет возвращено в случаях, если:
|
|
59
|
+
* Условия не выполнены,
|
|
60
|
+
* Значение, возвращённое `getter`, равно `undefined`
|
|
61
|
+
* @param conditions Условие, определяющее, когда должен быть вызван основной `getter`.
|
|
62
|
+
* Если функция отсутствует, условие считается выполненным всегда
|
|
63
|
+
* @param debugOptions Используется для отладки реактивных вычислений.
|
|
64
|
+
* Поддерживается библиотекой Vue.js
|
|
65
|
+
*/
|
|
66
|
+
export declare function computedByLanguage<T, R extends (T | undefined)>(getter: ComputedGetter<R>, getterNone?: R | (() => R), conditions?: () => boolean, debugOptions?: DebuggerOptions): ComputedRef<R>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Constructor bind type for component binding with class and style support/
|
|
70
|
+
* Тип привязки конструктора для привязки компонента с поддержкой классов и стилей
|
|
71
|
+
*/
|
|
72
|
+
export declare type ConstrBind<T> = T & Record<string, any> & {
|
|
73
|
+
/** Optional key/ Опциональный ключ */
|
|
74
|
+
key?: string;
|
|
75
|
+
/** Optional CSS classes/ Опциональные CSS классы */
|
|
76
|
+
class?: ConstrClass;
|
|
77
|
+
/** Optional styles/ Опциональные стили */
|
|
78
|
+
style?: ConstrStyles;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Constructor class type supporting strings, arrays, and objects/
|
|
83
|
+
* Тип класса конструктора, поддерживающий строки, массивы и объекты
|
|
84
|
+
*/
|
|
85
|
+
export declare type ConstrClass = string | (string | ConstrClass | Undefined)[] | ConstrClassObject;
|
|
86
|
+
|
|
87
|
+
/** Constructor classes with required main class and additional class list/ Классы конструктора с обязательным основным классом и дополнительным списком классов */
|
|
88
|
+
export declare type ConstrClasses = {
|
|
89
|
+
main: ConstrClass;
|
|
90
|
+
} & ConstrClassList;
|
|
91
|
+
|
|
92
|
+
/** Record type for mapping class names to class definitions/ Тип записи для сопоставления имен классов с определениями классов */
|
|
93
|
+
export declare type ConstrClassList = Record<string, ConstrClass>;
|
|
94
|
+
|
|
95
|
+
/** Object type for CSS class names with boolean values/ Тип объекта для CSS классов с булевыми значениями */
|
|
96
|
+
export declare type ConstrClassObject = Record<string, boolean>;
|
|
97
|
+
|
|
98
|
+
/** Generic record type for constructor components/ Дженерик тип записи для компонентов конструктора */
|
|
99
|
+
export declare type ConstrComponent = Record<string, any>;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Constructor component modification type with reactive or normal values/
|
|
103
|
+
* Тип модификации компонента конструктора с реактивными или обычными значениями
|
|
104
|
+
*/
|
|
105
|
+
export declare type ConstrComponentMod<P extends ConstrItem> = ConstrItem | {
|
|
106
|
+
[K in keyof P]?: RefOrNormal<P[K]>;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Constructor emit type with proper event handler signatures/
|
|
111
|
+
* Тип emit конструктора с правильными сигнатурами обработчиков событий
|
|
112
|
+
*/
|
|
113
|
+
export declare type ConstrEmit<T extends ConstrItem = ConstrItem> = UnionToIntersection<ConstrEmitItem<{
|
|
114
|
+
[K in keyof T]: (evt: K, ...args: T[K]) => void;
|
|
115
|
+
}>>;
|
|
116
|
+
|
|
117
|
+
/** Extract emit item type from constructor item/ Извлечение типа элемента emit из элемента конструктора */
|
|
118
|
+
export declare type ConstrEmitItem<T extends ConstrItem> = T[keyof T];
|
|
119
|
+
|
|
120
|
+
/** Generic record type for constructor items/ Дженерик тип записи для элементов конструктора */
|
|
121
|
+
export declare type ConstrItem = Record<string, any>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Constructor options interface for component configuration/
|
|
125
|
+
* Интерфейс опций конструктора для конфигурации компонента
|
|
126
|
+
*/
|
|
127
|
+
export declare type ConstrOptions<COMP extends ConstrComponent, EMITS extends ConstrItem, P extends ConstrItem> = {
|
|
128
|
+
/** Optional components configuration/ Опциональная конфигурация компонентов */
|
|
129
|
+
components?: COMP;
|
|
130
|
+
/** Optional component modifications/ Опциональные модификации компонента */
|
|
131
|
+
compMod?: ConstrComponentMod<P>;
|
|
132
|
+
/** Optional emit handlers/ Опциональные обработчики emit */
|
|
133
|
+
emits?: ConstrEmit<EMITS>;
|
|
134
|
+
/** Optional reactive classes/ Опциональные реактивные классы */
|
|
135
|
+
classes?: RefType<ConstrClasses>;
|
|
136
|
+
/** Optional reactive styles/ Опциональные реактивные стили */
|
|
137
|
+
styles?: RefType<ConstrStyles>;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** Constructor prop item type with options or direct PropType/ Тип элемента prop конструктора с опциями или прямым PropType */
|
|
141
|
+
export declare type ConstrPropItem<T = any> = ConstrPropItemOptions<T> | PropType<T>;
|
|
142
|
+
|
|
143
|
+
/** Constructor prop item options for Vue prop definitions/ Опции элемента prop конструктора для определений Vue prop */
|
|
144
|
+
export declare type ConstrPropItemOptions<T = any> = {
|
|
145
|
+
/** Vue prop type/ Тип Vue prop */
|
|
146
|
+
type?: PropType<T>;
|
|
147
|
+
/** Required flag/ Флаг обязательности */
|
|
148
|
+
required?: boolean;
|
|
149
|
+
/** Default value/ Значение по умолчанию */
|
|
150
|
+
default?: any;
|
|
151
|
+
/** Custom validator function/ Пользовательская функция валидации */
|
|
152
|
+
validator?(value: any, props: any): boolean;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** Constructor props type for component prop definitions/ Тип props конструктора для определений props компонента */
|
|
156
|
+
export declare type ConstrProps<P = Record<string, any>> = {
|
|
157
|
+
[K in keyof P]: ConstrPropItem<P[K]>;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/** Constructor registration configuration/ Конфигурация регистрации конструктора */
|
|
161
|
+
export declare type ConstrRegistration = {
|
|
162
|
+
/** Optional flag for registration/ Опциональный флаг для регистрации */
|
|
163
|
+
flag?: boolean;
|
|
164
|
+
/** Optional translation map/ Опциональная карта переводов */
|
|
165
|
+
translate?: Record<string, string>;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Constructor setup interface for component initialization/
|
|
170
|
+
* Интерфейс настройки конструктора для инициализации компонента
|
|
171
|
+
*/
|
|
172
|
+
export declare type ConstrSetup<E extends Element, CLASSES extends ConstrClasses, SETUP extends ConstrItem> = {
|
|
173
|
+
/** Component name/ Имя компонента */
|
|
174
|
+
name: string;
|
|
175
|
+
/** Reactive element reference/ Реактивная ссылка на элемент */
|
|
176
|
+
element: Ref<E | undefined>;
|
|
177
|
+
/** Reactive classes/ Реактивные классы */
|
|
178
|
+
classes: RefType<CLASSES>;
|
|
179
|
+
/** Reactive styles/ Реактивные стили */
|
|
180
|
+
styles: RefType<ConstrStyles>;
|
|
181
|
+
} & SETUP;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Constructor styles type supporting objects and arrays of style definitions/
|
|
185
|
+
* Тип стилей конструктора, поддерживающий объекты и массивы определений стилей
|
|
186
|
+
*/
|
|
187
|
+
export declare type ConstrStyles = Record<string, ConstrStylesItem> | ConstrStyles[];
|
|
188
|
+
|
|
189
|
+
/** Constructor style item type for individual style properties/ Тип элемента стиля конструктора для отдельных свойств стиля */
|
|
190
|
+
export declare type ConstrStylesItem = string | null;
|
|
191
|
+
|
|
192
|
+
/** Constructor value wrapper with optional value property/ Обертка значения конструктора с опциональным свойством value */
|
|
193
|
+
export declare type ConstrValue<T = any> = {
|
|
194
|
+
/** Optional value of type T/ Опциональное значение типа T */
|
|
195
|
+
value?: T;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* A class for working with dates.
|
|
200
|
+
*
|
|
201
|
+
* Класс для работы с датами.
|
|
202
|
+
*/
|
|
203
|
+
export declare class DatetimeRef {
|
|
204
|
+
protected item: Ref<NumberOrStringOrDate>;
|
|
205
|
+
protected type: Ref<GeoDate>;
|
|
206
|
+
protected code: Ref<string>;
|
|
207
|
+
protected date: Ref<Date>;
|
|
208
|
+
protected datetime: Datetime;
|
|
209
|
+
protected year: ComputedRef<number>;
|
|
210
|
+
protected month: ComputedRef<number>;
|
|
211
|
+
protected day: ComputedRef<number>;
|
|
212
|
+
protected hour: ComputedRef<number>;
|
|
213
|
+
protected minute: ComputedRef<number>;
|
|
214
|
+
protected second: ComputedRef<number>;
|
|
215
|
+
/**
|
|
216
|
+
* Constructor
|
|
217
|
+
* @param date date for processing. дата для обработки
|
|
218
|
+
* @param type type of date format for output. тип формата даты вывода
|
|
219
|
+
* @param code country and language code. код страны и языка
|
|
220
|
+
*/
|
|
221
|
+
constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
|
|
222
|
+
/**
|
|
223
|
+
* Returns the basic data for the date.
|
|
224
|
+
*
|
|
225
|
+
* Возвращает основные данные для даты.
|
|
226
|
+
*/
|
|
227
|
+
getItem(): RefOrNormal<NumberOrStringOrDate>;
|
|
228
|
+
/**
|
|
229
|
+
* Returns a Date object.
|
|
230
|
+
*
|
|
231
|
+
* Возвращает объект Date.
|
|
232
|
+
*/
|
|
233
|
+
getDate(): Ref<Date>;
|
|
234
|
+
/**
|
|
235
|
+
* Obtaining an object of the basic Datetime class.
|
|
236
|
+
*
|
|
237
|
+
* Получение объекта основного класса Datetime.
|
|
238
|
+
*/
|
|
239
|
+
getDatetime(): Datetime;
|
|
240
|
+
/**
|
|
241
|
+
* Returns the format of hours.
|
|
242
|
+
*
|
|
243
|
+
* Возвращает формат часов.
|
|
244
|
+
*/
|
|
245
|
+
getHoursType(): ComputedRef<GeoHours>;
|
|
246
|
+
/**
|
|
247
|
+
* Returns the code of the first day of the week.
|
|
248
|
+
*
|
|
249
|
+
* Возвращает код первого дня недели.
|
|
250
|
+
*/
|
|
251
|
+
getFirstDayCode(): ComputedRef<GeoFirstDay>;
|
|
252
|
+
/**
|
|
253
|
+
* The method returns the year of the specified date according to local time.
|
|
254
|
+
*
|
|
255
|
+
* Метод возвращает год указанной даты по местному времени.
|
|
256
|
+
*/
|
|
257
|
+
getYear(): ComputedRef<number>;
|
|
258
|
+
/**
|
|
259
|
+
* The method returns the month in the specified date according to local time,
|
|
260
|
+
* as a zero-based value.
|
|
261
|
+
*
|
|
262
|
+
* Метод возвращает месяц указанной даты по местному времени, нумерация
|
|
263
|
+
* месяцев начинается с нуля для первого месяца в году.
|
|
264
|
+
*/
|
|
265
|
+
getMonth(): ComputedRef<number>;
|
|
266
|
+
/**
|
|
267
|
+
* The method returns the day of the month for the specified date according to local time.
|
|
268
|
+
*
|
|
269
|
+
* Метод возвращает день месяца указанной даты по местному времени.
|
|
270
|
+
*/
|
|
271
|
+
getDay(): ComputedRef<number>;
|
|
272
|
+
/**
|
|
273
|
+
* The method returns the hour for the specified date, according to local time.
|
|
274
|
+
*
|
|
275
|
+
* Метод возвращает часы указанной даты по местному времени.
|
|
276
|
+
*/
|
|
277
|
+
getHour(): ComputedRef<number>;
|
|
278
|
+
/**
|
|
279
|
+
* The method returns the minutes in the specified date according to local time.
|
|
280
|
+
*
|
|
281
|
+
* Метод возвращает минуты указанной даты по местному времени.
|
|
282
|
+
*/
|
|
283
|
+
getMinute(): ComputedRef<number>;
|
|
284
|
+
/**
|
|
285
|
+
* The method returns the seconds in the specified date according to local time.
|
|
286
|
+
*
|
|
287
|
+
* Метод возвращает секунды указанной даты по местному времени.
|
|
288
|
+
*/
|
|
289
|
+
getSecond(): ComputedRef<number>;
|
|
290
|
+
/**
|
|
291
|
+
* Returns the last day of the week.
|
|
292
|
+
*
|
|
293
|
+
* Возвращает последний день недели.
|
|
294
|
+
*/
|
|
295
|
+
getMaxDay(): ComputedRef<number>;
|
|
296
|
+
/**
|
|
297
|
+
* Enables language-sensitive date and time formatting.
|
|
298
|
+
*
|
|
299
|
+
* Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
|
|
300
|
+
* @param type type of date format for output. тип формата даты вывода
|
|
301
|
+
* @param styleOptions the representation of the month. представление месяца
|
|
302
|
+
*/
|
|
303
|
+
locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
|
|
304
|
+
/**
|
|
305
|
+
* Output of standard data.
|
|
306
|
+
*
|
|
307
|
+
* Вывод стандартных данных.
|
|
308
|
+
* @param timeZone add time zone. добавить временную зону
|
|
309
|
+
*/
|
|
310
|
+
standard(timeZone?: boolean): ComputedRef<string>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Base class for working with the constructor.
|
|
315
|
+
*
|
|
316
|
+
* Базовый класс для работы с конструктором.
|
|
317
|
+
*/
|
|
318
|
+
export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
|
|
319
|
+
protected readonly props: T;
|
|
320
|
+
protected readonly callback?: ((event: C) => void) | undefined;
|
|
321
|
+
protected readonly event: C;
|
|
322
|
+
protected readonly changed: DesignChanged<T>;
|
|
323
|
+
/**
|
|
324
|
+
* Constructor
|
|
325
|
+
* @param props base data/ базовые данные
|
|
326
|
+
* @param callback callback function when the value changes/
|
|
327
|
+
* функция обратного вызова при изменении значения
|
|
328
|
+
* @param changed base data/ данный для слежения
|
|
329
|
+
*/
|
|
330
|
+
constructor(props: T, callback?: ((event: C) => void) | undefined, changed?: string[]);
|
|
331
|
+
/**
|
|
332
|
+
* Calls the callback function.
|
|
333
|
+
*
|
|
334
|
+
* Вызывает функцию обратного вызова.
|
|
335
|
+
* @param compelled forces data to update/ вынуждает обновлять данные
|
|
336
|
+
*/
|
|
337
|
+
make(compelled?: boolean): this;
|
|
338
|
+
/**
|
|
339
|
+
* Checks if there are values in the property.
|
|
340
|
+
*
|
|
341
|
+
* Проверяет, есть ли значения в свойстве.
|
|
342
|
+
* @param name property names/ названия свойств
|
|
343
|
+
*/
|
|
344
|
+
protected is<K extends keyof T>(name: K): boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Checks if the value has been changed by the property name.
|
|
347
|
+
*
|
|
348
|
+
* Проверяет, было ли изменено значение по названию свойства.
|
|
349
|
+
* @param name property names/ названия свойств
|
|
350
|
+
* @param nameProp names of properties of the input variable/ названия свойств входной переменной
|
|
351
|
+
*/
|
|
352
|
+
protected isChanged<K extends keyof C & string, KT extends keyof T & string>(name: K, nameProp?: KT | KT[]): boolean;
|
|
353
|
+
/**
|
|
354
|
+
* Calls the callback function.
|
|
355
|
+
*
|
|
356
|
+
* Вызывает функцию обратного вызова.
|
|
357
|
+
* @param compelled forces data to update/ вынуждает обновлять данные
|
|
358
|
+
*/
|
|
359
|
+
makeCallback(compelled?: boolean): void;
|
|
360
|
+
/**
|
|
361
|
+
* The function calls an image call.
|
|
362
|
+
*
|
|
363
|
+
* Функция вызывает образный вызов.
|
|
364
|
+
*/
|
|
365
|
+
protected makeCallbackItem(): void;
|
|
366
|
+
/**
|
|
367
|
+
* A function that is called each time the input values are changed.
|
|
368
|
+
*
|
|
369
|
+
* Функция, которая вызывается каждый раз, когда изменяются входные значения.
|
|
370
|
+
*/
|
|
371
|
+
protected abstract initEvent(): void;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Base class for working with the constructor.
|
|
376
|
+
*
|
|
377
|
+
* Базовый класс для работы с конструктором.
|
|
378
|
+
*/
|
|
379
|
+
export declare abstract class DesignAsyncAbstract<T extends Record<string, any>, C extends Record<string, any>> extends DesignAbstract<T, C> {
|
|
380
|
+
/**
|
|
381
|
+
* Calls the callback function.
|
|
382
|
+
*
|
|
383
|
+
* Вызывает функцию обратного вызова.
|
|
384
|
+
* @param compelled forces data to update/ вынуждает обновлять данные
|
|
385
|
+
*/
|
|
386
|
+
make(compelled?: boolean): this;
|
|
387
|
+
/**
|
|
388
|
+
* Calls the callback function.
|
|
389
|
+
*
|
|
390
|
+
* Вызывает функцию обратного вызова.
|
|
391
|
+
* @param compelled forces data to update/ вынуждает обновлять данные
|
|
392
|
+
*/
|
|
393
|
+
makeCallback(compelled?: boolean): Promise<void>;
|
|
394
|
+
/**
|
|
395
|
+
* A function that is called each time the input values are changed.
|
|
396
|
+
*
|
|
397
|
+
* Функция, которая вызывается каждый раз, когда изменяются входные значения.
|
|
398
|
+
*/
|
|
399
|
+
protected abstract initEvent(): Promise<void>;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* The class checks the values that have been edited.
|
|
404
|
+
*
|
|
405
|
+
* Класс проверяет значения, которые были отредактированы.
|
|
406
|
+
*/
|
|
407
|
+
export declare class DesignChanged<T extends Record<string, any>> {
|
|
408
|
+
protected readonly props: T;
|
|
409
|
+
protected readonly watch: string[];
|
|
410
|
+
private readonly cache;
|
|
411
|
+
/**
|
|
412
|
+
* Constructor
|
|
413
|
+
* @param props base data/ базовые данные
|
|
414
|
+
* @param watch data for tracking/ данные для слежения
|
|
415
|
+
*/
|
|
416
|
+
constructor(props: T, watch?: string[]);
|
|
417
|
+
/**
|
|
418
|
+
* Checks if the value has been updated.
|
|
419
|
+
*
|
|
420
|
+
* Проверяет, обновлено ли значение.
|
|
421
|
+
* @param name property name/ название свойства
|
|
422
|
+
*/
|
|
423
|
+
is(name: string | string[]): boolean;
|
|
424
|
+
/**
|
|
425
|
+
* Checks if there are changes in the data.
|
|
426
|
+
*
|
|
427
|
+
* Проверяет, есть ли изменения в данных.
|
|
428
|
+
*/
|
|
429
|
+
isChanged(): boolean;
|
|
430
|
+
/**
|
|
431
|
+
* Updates all values.
|
|
432
|
+
*
|
|
433
|
+
* Обновляет все значения.
|
|
434
|
+
*/
|
|
435
|
+
update(): void;
|
|
436
|
+
/**
|
|
437
|
+
* Checking additional data.
|
|
438
|
+
*
|
|
439
|
+
* Проверка дополнительных данных.
|
|
440
|
+
* @param name property name/ название свойства
|
|
441
|
+
*/
|
|
442
|
+
protected isDifferent(name: string): boolean;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export declare class DesignComp<COMP extends ConstrComponent, P extends ConstrItem> extends DesignComponents<COMP, P> {
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Class for working with connected components.
|
|
450
|
+
*
|
|
451
|
+
* Класс для работы с подключенными компонентами.
|
|
452
|
+
*/
|
|
453
|
+
export declare class DesignComponents<COMP extends ConstrComponent, P extends ConstrItem> {
|
|
454
|
+
protected readonly components: COMP;
|
|
455
|
+
protected readonly modification?: ConstrComponentMod<P> | undefined;
|
|
456
|
+
/** Cache for computed properties/ Кэш для вычисляемых свойств */
|
|
457
|
+
protected caching: Record<string, ComputedRef<any>>;
|
|
458
|
+
/**
|
|
459
|
+
* Constructor
|
|
460
|
+
* @param components list of connected components/ список подключенных компонентов
|
|
461
|
+
* @param modification data for modification/ данные для модификации
|
|
462
|
+
*/
|
|
463
|
+
constructor(components?: COMP, modification?: ConstrComponentMod<P> | undefined);
|
|
464
|
+
/**
|
|
465
|
+
* Check the presence of the component.
|
|
466
|
+
*
|
|
467
|
+
* Проверить наличие компонента.
|
|
468
|
+
* @param name name of the component/ названия компонента
|
|
469
|
+
*/
|
|
470
|
+
is<K extends keyof COMP>(name: K): name is K;
|
|
471
|
+
/**
|
|
472
|
+
* Getting the object of the component.
|
|
473
|
+
*
|
|
474
|
+
* Получение объекта компонента.
|
|
475
|
+
* @param name name of the component/ названия компонента
|
|
476
|
+
*/
|
|
477
|
+
get<K extends keyof COMP>(name: K): COMP[K];
|
|
478
|
+
/**
|
|
479
|
+
* Returns the modified input data of the connected components.
|
|
480
|
+
*
|
|
481
|
+
* Возвращает модифицированные входные данные у подключенных компонентов.
|
|
482
|
+
* @param index the name of this/ название данного
|
|
483
|
+
* @param props basic data/ базовые данные
|
|
484
|
+
*/
|
|
485
|
+
getModification<K extends keyof P>(index?: K & string | string, props?: P[K] | Record<string, any>): Record<string, any> | undefined;
|
|
486
|
+
/**
|
|
487
|
+
* Rendering a component by its name and returning an array with one component.
|
|
488
|
+
*
|
|
489
|
+
* Рендеринг компонента по его имени и возвращение массива с одним компонентом.
|
|
490
|
+
* @param name name of the component/ названия компонента
|
|
491
|
+
* @param props property of the component/ свойство компонента
|
|
492
|
+
* @param children sub-elements of the component/ под элементы компонента
|
|
493
|
+
* @param index the name of the key/ названия ключа
|
|
494
|
+
*/
|
|
495
|
+
render<K extends keyof COMP, PK extends keyof P>(name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): VNode[];
|
|
496
|
+
/**
|
|
497
|
+
* Rendering a component by its name.
|
|
498
|
+
*
|
|
499
|
+
* Рендеринг компонента по его имени.
|
|
500
|
+
* @param name name of the component/ названия компонента
|
|
501
|
+
* @param props property of the component/ свойство компонента
|
|
502
|
+
* @param children sub-elements of the component/ под элементы компонента
|
|
503
|
+
* @param index the name of the key/ названия ключа
|
|
504
|
+
*/
|
|
505
|
+
renderOne<K extends keyof COMP, PK extends keyof P>(name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): VNode | undefined;
|
|
506
|
+
/**
|
|
507
|
+
* Rendering the component by its name.
|
|
508
|
+
*
|
|
509
|
+
* Рендеринг компонента по его имени.
|
|
510
|
+
* @param item an array to which the rendered object will be added/
|
|
511
|
+
* массив, по которому будет добавлять объект
|
|
512
|
+
* @param name name of the component/ названия компонента
|
|
513
|
+
* @param props property of the component/ свойство компонента
|
|
514
|
+
* @param children sub-elements of the component/ под элементы компонента
|
|
515
|
+
* @param index the name of the key/ названия ключа
|
|
516
|
+
*/
|
|
517
|
+
renderAdd<K extends keyof COMP, PK extends keyof P>(item: any[], name: K & string, props?: P[PK] & ConstrItem | ConstrItem, children?: RawChildren | RawSlots, index?: PK & string | string): this;
|
|
518
|
+
/**
|
|
519
|
+
* Calculates modified input data for connected components.
|
|
520
|
+
*
|
|
521
|
+
* Вычисляет модифицированные входные данные для подключенных компонентов.
|
|
522
|
+
* @param index the name of this/ название данного
|
|
523
|
+
*/
|
|
524
|
+
protected computeModification<K extends keyof P>(index: K & string | string): Record<string, any>;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Class for collecting all functional components.
|
|
529
|
+
*
|
|
530
|
+
* Класс для сбора всех функциональных компонентов.
|
|
531
|
+
*/
|
|
532
|
+
export declare abstract class DesignConstructorAbstract<E extends Element, COMP extends ConstrComponent, EMITS extends ConstrItem, EXPOSE extends ConstrItem, SLOTS extends ConstrItem, CLASSES extends ConstrClasses, P extends ConstrItem> {
|
|
533
|
+
protected readonly props: Readonly<P>;
|
|
534
|
+
protected readonly options?: ConstrOptions<COMP, EMITS, P> | undefined;
|
|
535
|
+
protected readonly name: string[];
|
|
536
|
+
protected readonly element: Ref<E | undefined, E | undefined>;
|
|
537
|
+
protected readonly refs: ToRefs<P>;
|
|
538
|
+
protected readonly components: DesignComponents<COMP, P>;
|
|
539
|
+
protected readonly emits?: ConstrEmit<EMITS>;
|
|
540
|
+
protected readonly classes?: ComputedRef<CLASSES>;
|
|
541
|
+
protected classesSub?: ComputedRef<Partial<CLASSES>>;
|
|
542
|
+
protected readonly styles?: ComputedRef<ConstrStyles>;
|
|
543
|
+
protected stylesSub?: ComputedRef<ConstrStyles>;
|
|
544
|
+
protected attrs?: ConstrItem;
|
|
545
|
+
protected slots?: SLOTS;
|
|
546
|
+
protected dataExpose?: EXPOSE;
|
|
547
|
+
/**
|
|
548
|
+
* Constructor
|
|
549
|
+
* @param name class name/ название класса
|
|
550
|
+
* @param props properties/ свойства
|
|
551
|
+
* @param options list of additional parameters/ список дополнительных параметров
|
|
552
|
+
*/
|
|
553
|
+
protected constructor(name: string, props: Readonly<P>, options?: ConstrOptions<COMP, EMITS, P> | undefined);
|
|
554
|
+
protected init(): this;
|
|
555
|
+
/**
|
|
556
|
+
* Getting the class name.
|
|
557
|
+
*
|
|
558
|
+
* Получение названия класса.
|
|
559
|
+
*/
|
|
560
|
+
getName(): string;
|
|
561
|
+
/**
|
|
562
|
+
* Getting the class name.
|
|
563
|
+
*
|
|
564
|
+
* Получение названия дизайна.
|
|
565
|
+
*/
|
|
566
|
+
getDesign(): string;
|
|
567
|
+
/**
|
|
568
|
+
* Getting the class name.
|
|
569
|
+
*
|
|
570
|
+
* Получение названия класса.
|
|
571
|
+
* @param name list of class names by levels/ список названий классов по уровням
|
|
572
|
+
*/
|
|
573
|
+
getSubClass(name: string | string[]): string;
|
|
574
|
+
/**
|
|
575
|
+
* Getting the class name for the status.
|
|
576
|
+
*
|
|
577
|
+
* Получение названия класса для статуса.
|
|
578
|
+
* @param name list of class names by levels/ список названий классов по уровням
|
|
579
|
+
*/
|
|
580
|
+
getStatusClass(name: string | string[]): string;
|
|
581
|
+
/**
|
|
582
|
+
* Getting the property name for the style.
|
|
583
|
+
*
|
|
584
|
+
* Получение названия свойства для стиля.
|
|
585
|
+
* @param name list of class names by levels/ список названий классов по уровням
|
|
586
|
+
*/
|
|
587
|
+
getStyle(name: string | string[]): string;
|
|
588
|
+
/**
|
|
589
|
+
* Getting additional parameters.
|
|
590
|
+
*
|
|
591
|
+
* Получение дополнительных параметров.
|
|
592
|
+
*/
|
|
593
|
+
getAttrs(): ConstrItem;
|
|
594
|
+
/**
|
|
595
|
+
* List of available external variables.
|
|
596
|
+
*
|
|
597
|
+
* Список доступных переменных извне.
|
|
598
|
+
*/
|
|
599
|
+
expose(): EXPOSE;
|
|
600
|
+
/**
|
|
601
|
+
* The rendering method for the setup method.
|
|
602
|
+
*
|
|
603
|
+
* Метод рендеринга для метода настройки.
|
|
604
|
+
*/
|
|
605
|
+
render(): () => VNode | (VNode | any)[] | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* Initialization of all the necessary properties for work
|
|
608
|
+
*
|
|
609
|
+
* Инициализация всех необходимых свойств для работы.
|
|
610
|
+
*/
|
|
611
|
+
protected abstract initExpose(): EXPOSE;
|
|
612
|
+
/**
|
|
613
|
+
* Improvement of the obtained list of classes.
|
|
614
|
+
*
|
|
615
|
+
* Доработка полученного списка классов.
|
|
616
|
+
*/
|
|
617
|
+
protected abstract initClasses(): Partial<CLASSES>;
|
|
618
|
+
/**
|
|
619
|
+
* Refinement of the received list of styles.
|
|
620
|
+
*
|
|
621
|
+
* Доработка полученного списка стилей.
|
|
622
|
+
*/
|
|
623
|
+
protected abstract initStyles(): ConstrStyles;
|
|
624
|
+
/**
|
|
625
|
+
* A method for rendering.
|
|
626
|
+
*
|
|
627
|
+
* Метод для рендеринга.
|
|
628
|
+
*/
|
|
629
|
+
protected abstract initRender(): VNode | (VNode | any)[] | undefined;
|
|
630
|
+
/**
|
|
631
|
+
* Initializes the slot.
|
|
632
|
+
*
|
|
633
|
+
* Инициализирует слот.
|
|
634
|
+
* @param name slot name/ название слота
|
|
635
|
+
* @param children if you pass this element, the slot will be added to it/
|
|
636
|
+
* если передать этот элемент, то слот добавится в него
|
|
637
|
+
* @param props property for the slot/ свойство для слота
|
|
638
|
+
*/
|
|
639
|
+
protected initSlot<K extends keyof SLOTS>(name: K, children?: any[], props?: ConstrItem): VNode | undefined;
|
|
640
|
+
/**
|
|
641
|
+
* Transformation of the class value into an object.
|
|
642
|
+
*
|
|
643
|
+
* Преобразование значения класса в объект.
|
|
644
|
+
* @param classes list of classes for transformation/ список классов для преобразования
|
|
645
|
+
*/
|
|
646
|
+
protected toClass(classes?: ConstrClass): ConstrClassObject;
|
|
647
|
+
/**
|
|
648
|
+
* Converts the class name to standard for the current component.
|
|
649
|
+
*
|
|
650
|
+
* Преобразовывает название класса в стандартное для текущего компонента.
|
|
651
|
+
* @param classes list of classes/ список классов
|
|
652
|
+
*/
|
|
653
|
+
protected toClassName<T extends ConstrItem>(classes?: ConstrItem): T;
|
|
654
|
+
/**
|
|
655
|
+
* Getting component names as an array.
|
|
656
|
+
*
|
|
657
|
+
* Получение названий компонентов в виде массива.
|
|
658
|
+
* @param name component name for transformation/ название компонента для преобразования
|
|
659
|
+
*/
|
|
660
|
+
private initName;
|
|
661
|
+
/**
|
|
662
|
+
* Updating data about the class.
|
|
663
|
+
*
|
|
664
|
+
* Обновление данных об классе.
|
|
665
|
+
*/
|
|
666
|
+
private updateClasses;
|
|
667
|
+
/**
|
|
668
|
+
* Refinement of the received list of styles.
|
|
669
|
+
*
|
|
670
|
+
* Доработка полученного списка стилей.
|
|
671
|
+
*/
|
|
672
|
+
private updateStyles;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Class for working with events (Ref).
|
|
677
|
+
*
|
|
678
|
+
* Класс для работа с события (Ref).
|
|
679
|
+
*/
|
|
680
|
+
export declare class EventRef<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> extends EventItem<E, O, D> {
|
|
681
|
+
/**
|
|
682
|
+
* Classes Constructor
|
|
683
|
+
* @param elementSelector element/ элемент
|
|
684
|
+
* @param elementSelectorControl control element/ элемент управления
|
|
685
|
+
* @param type type/ тип
|
|
686
|
+
* @param listener the object that receives a notification (an object that implements the
|
|
687
|
+
* Event interface) when an event of the specified type occurs/ объект, который принимает
|
|
688
|
+
* уведомление, когда событие указанного типа произошло
|
|
689
|
+
* @param options object that specifies characteristics/ объект options
|
|
690
|
+
* @param detail an event-dependent value associated with the event/ зависимое от события
|
|
691
|
+
* значение, связанное с событием
|
|
692
|
+
*/
|
|
693
|
+
constructor(elementSelector?: RefOrNormal<ElementOrString<E> | undefined>, elementSelectorControl?: RefOrNormal<ElementOrString<HTMLElement>>, type?: string | string[], listener?: EventListenerDetail<O, D>, options?: EventOptions, detail?: D);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Returns a function for use during the initialization of control methods.
|
|
698
|
+
*
|
|
699
|
+
* Возвращает функцию для использования при инициализации методов управления.
|
|
700
|
+
* @param callback function or any value/ функция или любое значение
|
|
701
|
+
* @param unmounted delete data from the cache/ удалить ли данные из кеша
|
|
702
|
+
* @param isGlobal is the object global?/ является ли объект глобальным?
|
|
703
|
+
* @param isProvide execution as a component inheritance/ выполнение как наследие компонента
|
|
704
|
+
*/
|
|
705
|
+
export declare function executeUse<R, O extends any[], RI extends Readonly<Readonly<R> & {
|
|
706
|
+
init(): Readonly<R>;
|
|
707
|
+
}>>(callback: (...args: O) => R, unmounted?: boolean, isGlobal?: boolean, isProvide?: boolean): ((...args: O) => RI) | (() => RI);
|
|
708
|
+
|
|
709
|
+
export declare function executeUseGlobalInit(): void;
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Class for working with Flags.
|
|
713
|
+
*
|
|
714
|
+
* Класс для работы с Флагами.
|
|
715
|
+
*/
|
|
716
|
+
export declare class GeoFlagRef {
|
|
717
|
+
protected code: Ref<string>;
|
|
718
|
+
protected flag: GeoFlag;
|
|
719
|
+
/**
|
|
720
|
+
* Constructor
|
|
721
|
+
* @param code country and language code/ код страны и языка
|
|
722
|
+
*/
|
|
723
|
+
constructor(code?: RefOrNormal<string>);
|
|
724
|
+
/**
|
|
725
|
+
* Obtaining a reactive object with the country code.
|
|
726
|
+
*
|
|
727
|
+
* Получение реактивного объекта с кодом страны.
|
|
728
|
+
*/
|
|
729
|
+
getCode(): Ref<string>;
|
|
730
|
+
/**
|
|
731
|
+
* Returns information about the country and its flag.
|
|
732
|
+
*
|
|
733
|
+
* Возвращает информацию о стране и её флаге.
|
|
734
|
+
* @param code country code/ код страны
|
|
735
|
+
*/
|
|
736
|
+
get(code?: string): ComputedRef<GeoFlagItem | undefined>;
|
|
737
|
+
/**
|
|
738
|
+
* Getting a link to the flag.
|
|
739
|
+
*
|
|
740
|
+
* Получение ссылки на флаг.
|
|
741
|
+
* @param code country code/ код страны
|
|
742
|
+
*/
|
|
743
|
+
getFlag(code?: string): ComputedRef<string | undefined>;
|
|
744
|
+
/**
|
|
745
|
+
* Getting a list of countries by an array of codes.
|
|
746
|
+
*
|
|
747
|
+
* Получение списка стран по массиву с кодами.
|
|
748
|
+
* @param codes country code/ код страны
|
|
749
|
+
*/
|
|
750
|
+
getList(codes?: string[]): ComputedRef<GeoFlagItem[]>;
|
|
751
|
+
/**
|
|
752
|
+
* Getting a list of countries by an array of codes in national language.
|
|
753
|
+
*
|
|
754
|
+
* Получение списка стран по массиву с кодами на национальный язык.
|
|
755
|
+
* @param codes country code/ код страны.
|
|
756
|
+
*/
|
|
757
|
+
getNational(codes?: string[]): ComputedRef<GeoFlagNational[]>;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Reactive class for managing the formatting of numbers and dates.
|
|
762
|
+
*
|
|
763
|
+
* Реактивный класс для управления форматированием чисел и дат.
|
|
764
|
+
*/
|
|
765
|
+
export declare class GeoIntlRef {
|
|
766
|
+
private location;
|
|
767
|
+
private intl;
|
|
768
|
+
/**
|
|
769
|
+
* Constructor
|
|
770
|
+
* @param code country code, full form language-country or one of them/
|
|
771
|
+
* код страны, полный вид язык-страна или один из них
|
|
772
|
+
*/
|
|
773
|
+
constructor(code?: RefOrNormal<string>);
|
|
774
|
+
/**
|
|
775
|
+
* The consistent translation of language, region and script display names.
|
|
776
|
+
*
|
|
777
|
+
* Последовательный перевод отображаемых названий языка, региона и скрипта.
|
|
778
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
779
|
+
* @param typeOptions an object with some or all of the following properties/
|
|
780
|
+
* объект с некоторыми или всеми из следующих свойств
|
|
781
|
+
*/
|
|
782
|
+
display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
|
|
783
|
+
/**
|
|
784
|
+
* Get display names of language.
|
|
785
|
+
*
|
|
786
|
+
* Получить отображаемые имена языка.
|
|
787
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
788
|
+
* @param style the formatting style to use/ используемый стиль форматирования
|
|
789
|
+
*/
|
|
790
|
+
languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
791
|
+
/**
|
|
792
|
+
* Get display names of region.
|
|
793
|
+
*
|
|
794
|
+
* Получить отображаемые имена региона.
|
|
795
|
+
* @param value the code to provide depends on the type/ предоставляемый код зависит от типа
|
|
796
|
+
* @param style the formatting style to use/ используемый стиль форматирования
|
|
797
|
+
*/
|
|
798
|
+
countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
|
|
799
|
+
/**
|
|
800
|
+
* In basic use without specifying a locale, a formatted string.
|
|
801
|
+
*
|
|
802
|
+
* При обычном использовании без указания локали форматированная строка
|
|
803
|
+
*
|
|
804
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
805
|
+
* @param options an object with some or all properties/ объект с некоторыми
|
|
806
|
+
* или всеми свойствами
|
|
807
|
+
*/
|
|
808
|
+
number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
809
|
+
/**
|
|
810
|
+
* Decimal point symbol.
|
|
811
|
+
*
|
|
812
|
+
* Символ десятичной точки.
|
|
813
|
+
*/
|
|
814
|
+
decimal(): ComputedRef<string>;
|
|
815
|
+
/**
|
|
816
|
+
* Currency formatting.
|
|
817
|
+
*
|
|
818
|
+
* Форматирование валюты.
|
|
819
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
820
|
+
* @param currencyOptions the currency to use in currency formatting/
|
|
821
|
+
* валюта для использования в форматировании валюты
|
|
822
|
+
* @param numberOnly do not display the currency symbol/ не выводить значок валюты
|
|
823
|
+
*/
|
|
824
|
+
currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
|
|
825
|
+
/**
|
|
826
|
+
* Unit formatting.
|
|
827
|
+
* If the style is 'unit', a unit property must be provided.
|
|
828
|
+
*
|
|
829
|
+
* Форматирование юнитов.
|
|
830
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
831
|
+
* @param unitOptions the unit to use in unit formatting/ блок для использования
|
|
832
|
+
* в форматировании блока
|
|
833
|
+
*/
|
|
834
|
+
unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
|
|
835
|
+
/**
|
|
836
|
+
* Number as a percentage.
|
|
837
|
+
*
|
|
838
|
+
* Число в виде процента.
|
|
839
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
840
|
+
* @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
|
|
841
|
+
*/
|
|
842
|
+
percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
843
|
+
/**
|
|
844
|
+
* Number as a percentage (unit).
|
|
845
|
+
*
|
|
846
|
+
* Число в виде процента (единица).
|
|
847
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
848
|
+
* @param options an object with some or all properties/
|
|
849
|
+
* объект с некоторыми или всеми свойствами
|
|
850
|
+
*/
|
|
851
|
+
percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
|
|
852
|
+
/**
|
|
853
|
+
* Enables language-sensitive date and time formatting.
|
|
854
|
+
*
|
|
855
|
+
* Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
|
|
856
|
+
* @param value the date to format/ дата для форматирования
|
|
857
|
+
* @param type type of data format/ тип формата data
|
|
858
|
+
* @param styleOptions the representation of the month/ представление месяца
|
|
859
|
+
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
860
|
+
*/
|
|
861
|
+
date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
|
|
862
|
+
/**
|
|
863
|
+
* Enables language-sensitive relative time formatting.
|
|
864
|
+
*
|
|
865
|
+
* Включает форматирование относительного времени с учетом языка.
|
|
866
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
867
|
+
* @param styleOptions the length of the internationalized message/
|
|
868
|
+
* длина интернационализированного сообщения
|
|
869
|
+
* @param todayValue current day/ текущий день
|
|
870
|
+
*/
|
|
871
|
+
relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
|
|
872
|
+
/**
|
|
873
|
+
* Enables language-sensitive relative time formatting
|
|
874
|
+
* Including the ability to add a limit to output the standard time format if the value
|
|
875
|
+
* exceeds the allowable limit.
|
|
876
|
+
*
|
|
877
|
+
* Включает форматирование относительного времени с учетом языка.
|
|
878
|
+
* Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
|
|
879
|
+
* если значение вышло за пределы допустимого.
|
|
880
|
+
* @param value a number, bigint, or string, to format/ число для форматирования
|
|
881
|
+
* @param limit values that determine the output limit (values per day)/
|
|
882
|
+
* значения, по которым определяем предел вывода (значения в день)
|
|
883
|
+
* @param todayValue current day/ текущий день
|
|
884
|
+
* @param relativeOptions the length of the internationalized message/
|
|
885
|
+
* длина интернационализированного сообщения
|
|
886
|
+
* @param dateOptions the representation of the month/ представление месяца
|
|
887
|
+
* @param type type of data format/ тип формата data
|
|
888
|
+
* @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
|
|
889
|
+
*/
|
|
890
|
+
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>;
|
|
891
|
+
/**
|
|
892
|
+
* Names of months.
|
|
893
|
+
*
|
|
894
|
+
* Названия месяцев.
|
|
895
|
+
* @param value the date to format/ дата для форматирования
|
|
896
|
+
* @param style the representation of the month/ представление месяца
|
|
897
|
+
*/
|
|
898
|
+
month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
|
|
899
|
+
/**
|
|
900
|
+
* Array to list of months.
|
|
901
|
+
*
|
|
902
|
+
* Массив в список месяцев.
|
|
903
|
+
* @param style the representation of the month/ представление месяца
|
|
904
|
+
*/
|
|
905
|
+
months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
906
|
+
/**
|
|
907
|
+
* Returns names of days of the week.
|
|
908
|
+
*
|
|
909
|
+
* Возвращает названия дней недели.
|
|
910
|
+
* @param value the date to format/ дата для форматирования
|
|
911
|
+
* @param style the representation of the weekday/ представление о дне недели
|
|
912
|
+
*/
|
|
913
|
+
weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
|
|
914
|
+
/**
|
|
915
|
+
* An array of the list of names of the days of the week.
|
|
916
|
+
*
|
|
917
|
+
* Массив из списка названий дней недели.
|
|
918
|
+
* @param style the representation of the weekday/ представление о дне недели
|
|
919
|
+
*/
|
|
920
|
+
weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
|
|
921
|
+
/**
|
|
922
|
+
* Time.
|
|
923
|
+
*
|
|
924
|
+
* Время.
|
|
925
|
+
* @param value the date to format/ дата для форматирования
|
|
926
|
+
*/
|
|
927
|
+
time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Reactive class for working with geographic data.
|
|
932
|
+
*
|
|
933
|
+
* Реактивный класс для работы с географическими данными.
|
|
934
|
+
*/
|
|
935
|
+
export declare class GeoRef {
|
|
936
|
+
private static readonly item;
|
|
937
|
+
private static readonly country;
|
|
938
|
+
private static readonly language;
|
|
939
|
+
private static readonly standard;
|
|
940
|
+
private static readonly firstDay;
|
|
941
|
+
/**
|
|
942
|
+
* Information about the current country.
|
|
943
|
+
*
|
|
944
|
+
* Информация об текущей стране.
|
|
945
|
+
*/
|
|
946
|
+
static get(): Ref<GeoItemFull>;
|
|
947
|
+
/**
|
|
948
|
+
* Current country.
|
|
949
|
+
*
|
|
950
|
+
* Текущая страна.
|
|
951
|
+
*/
|
|
952
|
+
static getCountry(): ComputedRef<string>;
|
|
953
|
+
/**
|
|
954
|
+
* Current language.
|
|
955
|
+
*
|
|
956
|
+
* Текущий язык.
|
|
957
|
+
*/
|
|
958
|
+
static getLanguage(): ComputedRef<string>;
|
|
959
|
+
/**
|
|
960
|
+
* Full format according to the standard.
|
|
961
|
+
*
|
|
962
|
+
* Полный формат согласно стандарту.
|
|
963
|
+
*/
|
|
964
|
+
static getStandard(): ComputedRef<string>;
|
|
965
|
+
/**
|
|
966
|
+
* Returns the first day of the week.
|
|
967
|
+
*
|
|
968
|
+
* Возвращает первый день недели.
|
|
969
|
+
*/
|
|
970
|
+
static getFirstDay(): ComputedRef<string>;
|
|
971
|
+
/**
|
|
972
|
+
* Changes the data by the full code.
|
|
973
|
+
*
|
|
974
|
+
* Изменяет данные по полному коду.
|
|
975
|
+
* @param code country code, full form language-country or one of them/
|
|
976
|
+
* код страны, полный вид язык-страна или один из них
|
|
977
|
+
*/
|
|
978
|
+
static set(code: string): void;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
/**
|
|
982
|
+
* A method for generating properties for a subcomponent.
|
|
983
|
+
*
|
|
984
|
+
* Метод для генерации свойств для под компонента.
|
|
985
|
+
* @param value input value. Can be an object if you need to pass multiple properties/
|
|
986
|
+
* входное значение. Может быть объектом, если надо передать несколько свойств
|
|
987
|
+
* @param nameExtra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
988
|
+
* @param name property name/ имя свойства
|
|
989
|
+
* @param except exclude the rule requiring the presence of a primary key/
|
|
990
|
+
* исключить правило обязательности наличия главного ключа
|
|
991
|
+
*/
|
|
992
|
+
export declare function getBind<T, R extends ItemList>(value: T | R | undefined | null, nameExtra?: ItemList | string, name?: string, except?: boolean): ConstrBind<R>;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* A method for generating properties for a subcomponent.
|
|
996
|
+
*
|
|
997
|
+
* Метод для генерации свойств для под компонента.
|
|
998
|
+
* @param value input value. Can be an object if you need to pass multiple properties/
|
|
999
|
+
* входное значение. Может быть объектом, если надо передать несколько свойств
|
|
1000
|
+
* @param nameExtra additional parameter or property name/ дополнительный параметр или имя свойства
|
|
1001
|
+
* @param name property name/ имя свойства
|
|
1002
|
+
*/
|
|
1003
|
+
export declare function getBindRef<T, R extends ItemList>(value: RefOrNormal<T | R> | undefined, nameExtra?: RefOrNormal<ItemList> | string, name?: string): ComputedRef<R>;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Returns the name of the class from the property.
|
|
1007
|
+
*
|
|
1008
|
+
* Возвращает название класса из свойства.
|
|
1009
|
+
* @param props property of the component/ свойство компонента
|
|
1010
|
+
*/
|
|
1011
|
+
export declare function getClassName<T extends ItemList>(props?: T): string | undefined;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Processes an asynchronous method for wrapping in computed.
|
|
1015
|
+
*
|
|
1016
|
+
* Обрабатывает асинхронный метод для обёртки в computed.
|
|
1017
|
+
* @param callback callback function/ функция обратного вызова
|
|
1018
|
+
* @param ignore values to be ignored/ значения для исключения из обработки
|
|
1019
|
+
*/
|
|
1020
|
+
export declare const getComputedAsync: <T, I = undefined>(callback: () => Promise<Ref<T | I> | T | I>, ignore?: I) => ComputedRef<T | undefined>;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Returns or generates a new element.
|
|
1024
|
+
*
|
|
1025
|
+
* Возвращает или генерирует новый элемент.
|
|
1026
|
+
* @param name name of the component/ названия компонента
|
|
1027
|
+
* @param props property of the component/ свойство компонента
|
|
1028
|
+
* @param index the name of the key/ названия ключа
|
|
1029
|
+
*/
|
|
1030
|
+
export declare function getIndexForRender<T extends ItemList>(name: string, props?: T, index?: string): string;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* You return the values of the ref variable or the variable itself if it is not reactive.
|
|
1034
|
+
*
|
|
1035
|
+
* Возвращаешь значения ref переменной или саму переменную, если она не реактивная.
|
|
1036
|
+
* @param item reactive variable or ordinary value/ реактивная переменная или обычное значение
|
|
1037
|
+
*/
|
|
1038
|
+
export declare function getRef<T>(item: RefOrNormal<T>): T;
|
|
1039
|
+
|
|
1040
|
+
export declare type LazyItem = {
|
|
1041
|
+
status: ShallowRef<boolean>;
|
|
1042
|
+
ratio: ShallowRef<number>;
|
|
1043
|
+
entry: ShallowRef<IntersectionObserverEntry | undefined>;
|
|
1044
|
+
stopWatch: () => void;
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
export declare type LazyItemByMargin = {
|
|
1048
|
+
rootMargin: string;
|
|
1049
|
+
item: any;
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
export declare type LazyList = Record<string, LazyItem>;
|
|
1053
|
+
|
|
1054
|
+
/** Basic data structure for list item/ Базовая структура данных для элемента списка */
|
|
1055
|
+
export declare type ListDataBasic = {
|
|
1056
|
+
/** Optional display label/ Опциональная отображаемая метка */
|
|
1057
|
+
label?: NumberOrString;
|
|
1058
|
+
/** Any value associated with the item/ Любое значение, связанное с элементом */
|
|
1059
|
+
value?: any;
|
|
1060
|
+
/** Search text for filtering/ Текст поиска для фильтрации */
|
|
1061
|
+
search?: string;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Array of extended list items with state/
|
|
1066
|
+
* Массив расширенных элементов списка с состоянием
|
|
1067
|
+
*/
|
|
1068
|
+
export declare type ListDataFull<Item extends ListDataBasic = ListDataBasic> = ListDataFullItem<Item>[];
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Extended list item with additional state properties/
|
|
1072
|
+
* Расширенный элемент списка с дополнительными свойствами состояния
|
|
1073
|
+
*/
|
|
1074
|
+
export declare type ListDataFullItem<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item> & {
|
|
1075
|
+
/** Whether the item has focus/ Имеет ли элемент фокус */
|
|
1076
|
+
focus: boolean;
|
|
1077
|
+
/** Highlighted text portion/ Выделенная часть текста */
|
|
1078
|
+
highlight?: string;
|
|
1079
|
+
/** Whether the item is selected/ Выбран ли элемент */
|
|
1080
|
+
selected: boolean;
|
|
1081
|
+
/** Whether the item is disabled/ Отключен ли элемент */
|
|
1082
|
+
disabled?: boolean;
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
/** Extended list item with type and index/ Расширенный элемент списка с типом и индексом */
|
|
1086
|
+
export declare type ListDataItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item & {
|
|
1087
|
+
/** Parent item identifier/ Идентификатор родительского элемента */
|
|
1088
|
+
parent?: string;
|
|
1089
|
+
/** Type of list item/ Тип элемента списка */
|
|
1090
|
+
type: ListType;
|
|
1091
|
+
/** Unique item identifier/ Уникальный идентификатор элемента */
|
|
1092
|
+
index: string;
|
|
1093
|
+
}>;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* Class for managing the data list.
|
|
1097
|
+
*
|
|
1098
|
+
* Класс для управления списком данных.
|
|
1099
|
+
*/
|
|
1100
|
+
export declare class ListDataRef {
|
|
1101
|
+
protected readonly list: RefOrNormal<ListListInput | undefined>;
|
|
1102
|
+
protected readonly focus?: RefType<ListSelectedItem | undefined> | undefined;
|
|
1103
|
+
protected readonly highlight?: RefType<string | undefined> | undefined;
|
|
1104
|
+
protected readonly highlightLengthStart?: RefType<number | undefined> | undefined;
|
|
1105
|
+
protected readonly filterMode?: RefType<boolean | undefined> | undefined;
|
|
1106
|
+
protected readonly selected?: RefType<ListSelectedList | undefined> | undefined;
|
|
1107
|
+
protected readonly keyValue?: RefType<string | undefined> | undefined;
|
|
1108
|
+
protected readonly keyLabel?: RefType<string | undefined> | undefined;
|
|
1109
|
+
protected readonly lite?: RefType<number | undefined> | undefined;
|
|
1110
|
+
protected readonly min: RefOrNormal<number | string | undefined>;
|
|
1111
|
+
protected readonly max: RefOrNormal<number | string | undefined>;
|
|
1112
|
+
protected readonly parent?: string | undefined;
|
|
1113
|
+
protected subList: Record<any, ListDataRef>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Creates an instance of ListData for managing list data.
|
|
1116
|
+
*
|
|
1117
|
+
* Создает экземпляр ListData для управления данными списка.
|
|
1118
|
+
* @param list List data / данные списка
|
|
1119
|
+
* @param focus Focused item / элемент в фокусе
|
|
1120
|
+
* @param highlight Search text for highlighting / текст поиска для выделения
|
|
1121
|
+
* @param highlightLengthStart Minimum length to start highlighting / минимальная длина для начала выделения
|
|
1122
|
+
* @param filterMode Filter mode / режим фильтрации
|
|
1123
|
+
* @param selected Selected items / выбранные элементы
|
|
1124
|
+
* @param keyValue Key for getting item value / ключ для получения значения элемента
|
|
1125
|
+
* @param keyLabel Key for getting item label / ключ для получения метки элемента
|
|
1126
|
+
* @param lite Threshold for lite mode / порог для облегченного режима
|
|
1127
|
+
* @param min Minimum number of selections / минимальное количество выделений
|
|
1128
|
+
* @param max Maximum number of selections / максимальное количество выделений
|
|
1129
|
+
* @param parent Parent identifier / идентификатор родителя
|
|
1130
|
+
*/
|
|
1131
|
+
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);
|
|
1132
|
+
/**
|
|
1133
|
+
* Returns a list for forming a list.
|
|
1134
|
+
*
|
|
1135
|
+
* Возвращает список для формирования списка.
|
|
1136
|
+
*/
|
|
1137
|
+
readonly data: ComputedRef<ListList>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Returns a simplified list for quick loading.
|
|
1140
|
+
*
|
|
1141
|
+
* Возвращает упрощенный список для быстрой загрузки.
|
|
1142
|
+
*/
|
|
1143
|
+
readonly liteData: ComputedRef<ListList>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Returns a list of records with all additional data.
|
|
1146
|
+
*
|
|
1147
|
+
* Возвращает список записей со всеми дополнительными данными.
|
|
1148
|
+
*/
|
|
1149
|
+
readonly fullData: ComputedRef<ListDataFull>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Returns a map of all entries.
|
|
1152
|
+
*
|
|
1153
|
+
* Возвращает карту всех записей.
|
|
1154
|
+
*/
|
|
1155
|
+
readonly map: ComputedRef<ListList>;
|
|
1156
|
+
/** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
|
|
1157
|
+
readonly mapItems: ComputedRef<ListList>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Returns a list consisting only of values for selection.
|
|
1160
|
+
*
|
|
1161
|
+
* Возвращает список, состоящий только из значений для выбора.
|
|
1162
|
+
*/
|
|
1163
|
+
readonly items: ComputedRef<ListList>;
|
|
1164
|
+
/**
|
|
1165
|
+
* Finds the first element that meets the search conditions.
|
|
1166
|
+
*
|
|
1167
|
+
* Находит первый элемент, соответствующий условиям поиска.
|
|
1168
|
+
*/
|
|
1169
|
+
readonly highlightFirstItem: ComputedRef<number>;
|
|
1170
|
+
/**
|
|
1171
|
+
* Is there a selected item.
|
|
1172
|
+
*
|
|
1173
|
+
* Есть ли выбранный элемент.
|
|
1174
|
+
*/
|
|
1175
|
+
readonly isSelected: ComputedRef<boolean>;
|
|
1176
|
+
/** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
|
|
1177
|
+
readonly isSelectedMin: ComputedRef<boolean>;
|
|
1178
|
+
/** Is the maximum selection reached/ Достигнуто ли максимальное выделение */
|
|
1179
|
+
readonly isSelectedMax: ComputedRef<boolean>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Returns a list of selected items on the map/
|
|
1182
|
+
* Возвращает список выделенных элементов на карте
|
|
1183
|
+
*/
|
|
1184
|
+
readonly selectedList: ComputedRef<ListList>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Returns a list of selected items in the current group/
|
|
1187
|
+
* Возвращает список выделенных элементов в текущей группе
|
|
1188
|
+
*/
|
|
1189
|
+
readonly selectedListInGroup: ComputedRef<ListList>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Returns a list of selected items on the map.
|
|
1192
|
+
*
|
|
1193
|
+
* Возвращает список выделенных элементов на карте.
|
|
1194
|
+
*/
|
|
1195
|
+
readonly selectedNames: ComputedRef<ListNames>;
|
|
1196
|
+
/**
|
|
1197
|
+
* Returns a list of selected item values on the map.
|
|
1198
|
+
*
|
|
1199
|
+
* Возвращает список значений выделенных элементов на карте.
|
|
1200
|
+
*/
|
|
1201
|
+
readonly selectedValues: ComputedRef<any[]>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Checks whether it is necessary to first display a simplified version.
|
|
1204
|
+
*
|
|
1205
|
+
* Проверяет, надо ли сначала вывести упрощенную версию.
|
|
1206
|
+
*/
|
|
1207
|
+
isLite(): boolean;
|
|
1208
|
+
/**
|
|
1209
|
+
* Checks if an element is in focus.
|
|
1210
|
+
*
|
|
1211
|
+
* Проверяет, есть ли элемент в фокусе.
|
|
1212
|
+
*/
|
|
1213
|
+
isFocus(): boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
* Checks if there is a selected item.
|
|
1216
|
+
*
|
|
1217
|
+
* Проверяет, есть ли выделенный элемент.
|
|
1218
|
+
*/
|
|
1219
|
+
isHighlight(): boolean;
|
|
1220
|
+
/**
|
|
1221
|
+
* Checks if highlighting is active.
|
|
1222
|
+
*
|
|
1223
|
+
* Проверяет, активно ли выделение.
|
|
1224
|
+
*/
|
|
1225
|
+
isHighlightActive(): boolean;
|
|
1226
|
+
/**
|
|
1227
|
+
* Returns the number of records.
|
|
1228
|
+
*
|
|
1229
|
+
* Возвращает количество записей.
|
|
1230
|
+
*/
|
|
1231
|
+
getLength(): number;
|
|
1232
|
+
/**
|
|
1233
|
+
* Returns the number of all available records.
|
|
1234
|
+
*
|
|
1235
|
+
* Возвращает количество всех доступных записей.
|
|
1236
|
+
*/
|
|
1237
|
+
getLengthByMap(): number;
|
|
1238
|
+
/**
|
|
1239
|
+
* Returns the number of all available records.
|
|
1240
|
+
*
|
|
1241
|
+
* Возвращает количество всех доступных записей.
|
|
1242
|
+
*/
|
|
1243
|
+
getLengthByItems(): number;
|
|
1244
|
+
/**
|
|
1245
|
+
* Returns the values in focus.
|
|
1246
|
+
*
|
|
1247
|
+
* Возвращает значения в фокусе.
|
|
1248
|
+
*/
|
|
1249
|
+
getFocus(): ListSelectedItem | undefined;
|
|
1250
|
+
/**
|
|
1251
|
+
* Returns the selected value.
|
|
1252
|
+
*
|
|
1253
|
+
* Возвращает выделенного значение.
|
|
1254
|
+
*/
|
|
1255
|
+
getHighlight(): string | undefined;
|
|
1256
|
+
/**
|
|
1257
|
+
* Returns the minimum length for highlight to start.
|
|
1258
|
+
*
|
|
1259
|
+
* Возвращает минимальную длину для начала выделения.
|
|
1260
|
+
*/
|
|
1261
|
+
getHighlightLengthStart(): number;
|
|
1262
|
+
/**
|
|
1263
|
+
* Returns the selected value.
|
|
1264
|
+
*
|
|
1265
|
+
* Возвращает выбранное значение.
|
|
1266
|
+
*/
|
|
1267
|
+
getSelected(): ListSelectedList | undefined;
|
|
1268
|
+
/**
|
|
1269
|
+
* Returns an item by moving a certain number of steps from the selected item.
|
|
1270
|
+
*
|
|
1271
|
+
* Возвращает элемент, перемещаясь на определенное количество шагов от выбранного элемента.
|
|
1272
|
+
* @param step number of steps/ количество шагов
|
|
1273
|
+
*/
|
|
1274
|
+
getSelectedByStep(step: number): ListSelectedItem | undefined;
|
|
1275
|
+
/**
|
|
1276
|
+
* Returns an item by its index.
|
|
1277
|
+
*
|
|
1278
|
+
* Возвращает элемент по его индексу.
|
|
1279
|
+
* @param index item index/ индекс элемента
|
|
1280
|
+
*/
|
|
1281
|
+
getItemByIndex(index?: string): {
|
|
1282
|
+
key: number;
|
|
1283
|
+
item: ListDataItem;
|
|
1284
|
+
} | undefined;
|
|
1285
|
+
/**
|
|
1286
|
+
* Returns an item by its key.
|
|
1287
|
+
*
|
|
1288
|
+
* Возвращает элемент по его ключу.
|
|
1289
|
+
* @param key item key/ ключ элемента
|
|
1290
|
+
*/
|
|
1291
|
+
getItemByKey(key: number): ListDataItem | undefined;
|
|
1292
|
+
/**
|
|
1293
|
+
* Returns the first item with the specified parent.
|
|
1294
|
+
*
|
|
1295
|
+
* Возвращает первый элемент с указанным родителем.
|
|
1296
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1297
|
+
*/
|
|
1298
|
+
getFirstItemByParent(parent: string): ListDataItem | undefined;
|
|
1299
|
+
/**
|
|
1300
|
+
* Returns the last item with the specified parent.
|
|
1301
|
+
*
|
|
1302
|
+
* Возвращает последний элемент с указанным родителем.
|
|
1303
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1304
|
+
*/
|
|
1305
|
+
getLastItemByParent(parent: string): ListDataItem | undefined;
|
|
1306
|
+
/**
|
|
1307
|
+
* Returns a sublist object for a group item.
|
|
1308
|
+
*
|
|
1309
|
+
* Возвращает объект подсписка для группового элемента.
|
|
1310
|
+
* @param item List item data/ данные элемента списка
|
|
1311
|
+
*/
|
|
1312
|
+
getSubList(item: ListDataItem): ListDataRef;
|
|
1313
|
+
/**
|
|
1314
|
+
* Checks if the item is an item, group, or menu.
|
|
1315
|
+
*
|
|
1316
|
+
* Проверяет, является ли элемент элементом, группой или меню.
|
|
1317
|
+
* @param item List item data/ данные элемента списка
|
|
1318
|
+
*/
|
|
1319
|
+
protected isItem(item: ListDataItem): boolean;
|
|
1320
|
+
/**
|
|
1321
|
+
* Checks if the item is in the specified parent.
|
|
1322
|
+
*
|
|
1323
|
+
* Проверяет, находится ли элемент в указанном родителе.
|
|
1324
|
+
* @param parent parent identifier to search for / идентификатор родителя для поиска
|
|
1325
|
+
* @param item List item data/ данные элемента списка
|
|
1326
|
+
*/
|
|
1327
|
+
protected isInParent(parent: string, item: ListDataItem): boolean;
|
|
1328
|
+
/**
|
|
1329
|
+
* Returns the index for the list item.
|
|
1330
|
+
*
|
|
1331
|
+
* Возвращает индекс для элемента списка.
|
|
1332
|
+
* @param index current index / текущий индекс
|
|
1333
|
+
* @param value item value / значение элемента
|
|
1334
|
+
* @param key item key / ключ элемента
|
|
1335
|
+
* @param label item label / метка элемента
|
|
1336
|
+
*/
|
|
1337
|
+
protected getIndex(index: string | number | undefined, value: any, key: string | number | undefined, label: string | number | undefined): string | number | undefined;
|
|
1338
|
+
/**
|
|
1339
|
+
* Creates an object of the record element.
|
|
1340
|
+
*
|
|
1341
|
+
* Создает объект элемента записи.
|
|
1342
|
+
* @param key the value of the key in the element/ значения ключа у элемента
|
|
1343
|
+
* @param item selected element/ выбранный элемент
|
|
1344
|
+
*/
|
|
1345
|
+
protected initItem(key: string | number, item: any): ListDataItem;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/** Array of list data items/ Массив элементов данных списка */
|
|
1349
|
+
export declare type ListList<Item extends ListDataBasic = ListDataBasic> = ListDataItem<Item>[];
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Various input formats for list creation/
|
|
1353
|
+
* Различные форматы входных данных для создания списка
|
|
1354
|
+
*/
|
|
1355
|
+
export declare type ListListInput<Item extends ListDataBasic = ListDataBasic> = ListListInputItem<Item>[] | string[] | Record<string, ListListInputItem<Item>> | Record<string, string>;
|
|
1356
|
+
|
|
1357
|
+
/** Input item for list creation/ Входной элемент для создания списка */
|
|
1358
|
+
export declare type ListListInputItem<Item extends ListDataBasic = ListDataBasic> = ConstrBind<Item>;
|
|
1359
|
+
|
|
1360
|
+
/** Name of selected list item/ Название выбранного элемента списка */
|
|
1361
|
+
export declare type ListName = string | number | undefined;
|
|
1362
|
+
|
|
1363
|
+
/** Array of list item names/ Массив названий выбранных элементов списка */
|
|
1364
|
+
export declare type ListNames = ListName[];
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* List or record structure for list data/
|
|
1368
|
+
* Структура списка или записи для данных списка
|
|
1369
|
+
*/
|
|
1370
|
+
export declare type ListRecord<Item extends ListDataBasic = ListDataBasic> = ListList<Item> | Record<string, any>;
|
|
1371
|
+
|
|
1372
|
+
/** Single selected item identifier/ Идентификатор одного выбранного элемента */
|
|
1373
|
+
export declare type ListSelectedItem = NumberOrStringOrBoolean;
|
|
1374
|
+
|
|
1375
|
+
/** Single or multiple selected items/ Один или несколько выбранных элементов */
|
|
1376
|
+
export declare type ListSelectedList = ListSelectedItem | ListSelectedItem[];
|
|
1377
|
+
|
|
1378
|
+
/** Type of list item/ Тип элемента списка */
|
|
1379
|
+
export declare type ListType = 'item' | 'space' | 'line' | 'subtitle' | 'html' | 'menu' | 'menu-group' | 'group';
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* Union type for Vue raw children content
|
|
1383
|
+
* (strings, numbers, booleans, VNodes, arrays, functions)/
|
|
1384
|
+
* Объединенный тип для Vue сырого содержимого дочерних элементов
|
|
1385
|
+
* (строки, числа, булевы, VNode, массивы, функции)
|
|
1386
|
+
*/
|
|
1387
|
+
export declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Type for Vue raw slots with optional stability flag/
|
|
1391
|
+
* Тип для Vue сырых слотов с опциональным флагом стабильности
|
|
1392
|
+
*/
|
|
1393
|
+
export declare type RawSlots = {
|
|
1394
|
+
/** Slot name mapping to unknown content/ Маппинг имени слота к неизвестному содержимому */
|
|
1395
|
+
[name: string]: unknown;
|
|
1396
|
+
/**
|
|
1397
|
+
* Optional stability flag for performance optimization/
|
|
1398
|
+
* Опциональный флаг стабильности для оптимизации производительности
|
|
1399
|
+
*/
|
|
1400
|
+
$stable?: boolean;
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
* Union type that can be either a Vue reactive reference or a normal value/
|
|
1405
|
+
* Объединенный тип, который может быть либо Vue реактивной ссылкой, либо обычным значением
|
|
1406
|
+
*/
|
|
1407
|
+
export declare type RefOrNormal<T> = RefType<T> | T;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Union type for Vue reactive references (computed or ref)/
|
|
1411
|
+
* Объединенный тип для Vue реактивных ссылок (computed или ref)
|
|
1412
|
+
*/
|
|
1413
|
+
export declare type RefType<T> = ComputedRef<T> | Ref<T>;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Union type for Vue reactive references that can be undefined/
|
|
1417
|
+
* Объединенный тип для Vue реактивных ссылок, которые могут быть undefined
|
|
1418
|
+
*/
|
|
1419
|
+
export declare type RefUndefined<T> = RefType<T | undefined>;
|
|
1420
|
+
|
|
1421
|
+
/**
|
|
1422
|
+
* Getting cached, immutable data.
|
|
1423
|
+
*
|
|
1424
|
+
* Получение кешированных, неизменяемых данных.
|
|
1425
|
+
* @param name name of the component/ названия компонента
|
|
1426
|
+
* @param props property of the component/ свойство компонента
|
|
1427
|
+
* @param children sub-elements of the component/ под элементы компонента
|
|
1428
|
+
* @param index the name of the key/ названия ключа
|
|
1429
|
+
*/
|
|
1430
|
+
export declare function render<T extends ItemList>(name: string, props?: T, children?: RawChildren | RawSlots, index?: string): VNode;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Router management class.
|
|
1434
|
+
*
|
|
1435
|
+
* Класс управления роутером.
|
|
1436
|
+
*/
|
|
1437
|
+
export declare class RouterItemRef {
|
|
1438
|
+
protected static router?: Router;
|
|
1439
|
+
/**
|
|
1440
|
+
* Get router instance.
|
|
1441
|
+
*
|
|
1442
|
+
* Получить экземпляр роутера.
|
|
1443
|
+
*/
|
|
1444
|
+
static get(): Router | undefined;
|
|
1445
|
+
/**
|
|
1446
|
+
* Site path change.
|
|
1447
|
+
*
|
|
1448
|
+
* Изменение пути сайта.
|
|
1449
|
+
* @param to new path/ новый путь
|
|
1450
|
+
*/
|
|
1451
|
+
static push(to: string | RouteLocationRaw): void;
|
|
1452
|
+
/**
|
|
1453
|
+
* Set router instance.
|
|
1454
|
+
*
|
|
1455
|
+
* Установить экземпляр роутера.
|
|
1456
|
+
* @param router router instance/ экземпляр роутера
|
|
1457
|
+
*/
|
|
1458
|
+
static set(router: Router): void;
|
|
1459
|
+
/**
|
|
1460
|
+
* Set router instance only once.
|
|
1461
|
+
*
|
|
1462
|
+
* Установить экземпляр роутера только один раз.
|
|
1463
|
+
* @param router router instance/ экземпляр роутера
|
|
1464
|
+
*/
|
|
1465
|
+
static setOneTime(router: Router): void;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Class for getting the scroll width as a reactive item.
|
|
1470
|
+
*
|
|
1471
|
+
* Класс для получения ширины скролла в виде реактивного элемента.
|
|
1472
|
+
*/
|
|
1473
|
+
export declare class ScrollbarWidthRef {
|
|
1474
|
+
/**
|
|
1475
|
+
* Reactive item.
|
|
1476
|
+
*
|
|
1477
|
+
* Реактивный элемент.
|
|
1478
|
+
*/
|
|
1479
|
+
readonly item: Ref<boolean | undefined, boolean | undefined>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Constructor
|
|
1482
|
+
*/
|
|
1483
|
+
constructor();
|
|
1484
|
+
/**
|
|
1485
|
+
* Checks whether the scroll width is defined.
|
|
1486
|
+
*
|
|
1487
|
+
* Проверяет, определена ли ширина скролла.
|
|
1488
|
+
*/
|
|
1489
|
+
readonly is: ComputedRef<boolean>;
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Changing the value for the reactive method.
|
|
1496
|
+
*
|
|
1497
|
+
* Изменение значения для реактивного метода.
|
|
1498
|
+
* @param item reactive element/ реактивный элемент
|
|
1499
|
+
* @param value values for replacement/ значения для замены
|
|
1500
|
+
*/
|
|
1501
|
+
export declare function setRef<T>(item: Ref<T>, value: T): void;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Getting the translated text by an array of keys or a string with a key.
|
|
1505
|
+
*
|
|
1506
|
+
* Получение переведенного текста по массиву ключей или строке с ключом.
|
|
1507
|
+
* @param names a string or an array with keys/ строка или массив с ключами
|
|
1508
|
+
*/
|
|
1509
|
+
export declare const t: <T extends string[]>(names: T) => ShallowRef<TranslateList<T>>;
|
|
1510
|
+
|
|
1511
|
+
/**
|
|
1512
|
+
* Merges two objects with properties, taking into account their classes and styles
|
|
1513
|
+
*
|
|
1514
|
+
* Объединяет два объекта со свойствами с учётом классов и стилей в них
|
|
1515
|
+
* @param extra additional property/ дополнительное свойство
|
|
1516
|
+
* @param value input value/ входное значение
|
|
1517
|
+
*/
|
|
1518
|
+
export declare function toBind<R extends ItemList = ItemList>(extra: ItemList, value: ItemList): ConstrBind<R>;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Merges multiple objects with properties, taking into account their classes and styles
|
|
1522
|
+
*
|
|
1523
|
+
* Объединяет несколько объектов со свойствами с учётом классов и стилей в них
|
|
1524
|
+
* @param values list of input values/ список входных значений
|
|
1525
|
+
*/
|
|
1526
|
+
export declare function toBinds<R extends ItemList = ItemList>(...values: (ItemList | undefined)[]): ConstrBind<R>;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Packs reactive values into computed to prohibit editing.
|
|
1530
|
+
*
|
|
1531
|
+
* Упаковывает реактивные значения в computed для запрета редактирования.
|
|
1532
|
+
* @param callback callback function/ функция обратного вызова
|
|
1533
|
+
*/
|
|
1534
|
+
export declare function toComputed<T>(callback: () => Ref<T>): ComputedRef<T>;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Returns a regular variable or wraps it in a regular variable if it is an ordinary variable.
|
|
1538
|
+
*
|
|
1539
|
+
* Возвращает регулярный переменный или оборачивает его в регулярный переменный, если является обычным переменным.
|
|
1540
|
+
* @param item
|
|
1541
|
+
*/
|
|
1542
|
+
export declare function toRefItem<T>(item: RefOrNormal<T>): Ref<T>;
|
|
1543
|
+
|
|
1544
|
+
/** Utility type to convert union types to intersection types/ Утилитарный тип для преобразования объединенных типов в пересеченные */
|
|
1545
|
+
export declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
1546
|
+
|
|
1547
|
+
export declare interface UseApiRef<R> {
|
|
1548
|
+
data: Ref<R | undefined>;
|
|
1549
|
+
isStarting: ComputedRef<boolean>;
|
|
1550
|
+
loading: ComputedRef<boolean>;
|
|
1551
|
+
reading: ComputedRef<boolean>;
|
|
1552
|
+
reset(): Promise<void>;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* Returns data for working with requests.
|
|
1557
|
+
*
|
|
1558
|
+
* Возвращает данные для работы с запросами.
|
|
1559
|
+
* @param path path to request/ путь к запрос
|
|
1560
|
+
* @param options data for the request/ данные для запроса
|
|
1561
|
+
* @param reactivity should reactivity be enabled/ включить ли реактивность
|
|
1562
|
+
* @param conditions conditions for executing the request/ условия выполнения запроса
|
|
1563
|
+
* @param transformation transforms the received request/ преобразовывает полученный запрос
|
|
1564
|
+
* @param unmounted delete data from the cache/ удалить ли данные из кеша
|
|
1565
|
+
*/
|
|
1566
|
+
export declare function useApiRef<R, T = any>(path?: RefOrNormal<string | undefined>, options?: ApiOptions, reactivity?: boolean, conditions?: RefType<boolean>, transformation?: (data: T) => R, unmounted?: boolean): UseApiRef<R>;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Creates a reactive variable to manage data between browser tabs.
|
|
1570
|
+
*
|
|
1571
|
+
* Создает реактивную переменную для управления данными между вкладками браузера.
|
|
1572
|
+
* @param name value name/ название значения
|
|
1573
|
+
* @param defaultValue default value/ значение по умолчанию
|
|
1574
|
+
*/
|
|
1575
|
+
export declare function useBroadcastValueRef<T>(name: string, defaultValue?: T | string | (() => (T | string))): Ref<BroadcastValueItem<T>>;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Creates a reactive variable to manage cookies.
|
|
1579
|
+
*
|
|
1580
|
+
* Создает реактивную переменную для управления cookie.
|
|
1581
|
+
* @param name cookie name/ название cookie
|
|
1582
|
+
* @param defaultValue value or function to change data/ значение или функция для изменения данных
|
|
1583
|
+
* @param options additional parameters/ дополнительные параметры
|
|
1584
|
+
*/
|
|
1585
|
+
export declare function useCookieRef<T>(name: string, defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): Ref<T | string | undefined>;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Returns a class object for working with data formatting.
|
|
1589
|
+
*
|
|
1590
|
+
* Возвращает объект класса для работы с форматированием данных.
|
|
1591
|
+
*/
|
|
1592
|
+
export declare function useGeoIntlRef(): GeoIntlRef;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Creates a reactive variable to manage the hash.
|
|
1596
|
+
*
|
|
1597
|
+
* Создает реактивную переменную для управления хэшем.
|
|
1598
|
+
* @param name value name/ название значения
|
|
1599
|
+
* @param defaultValue default value/ значение по умолчанию
|
|
1600
|
+
*/
|
|
1601
|
+
export declare function useHashRef<T>(name: string, defaultValue?: T | (() => T)): Ref<any, any> | undefined;
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* Hook for initializing the tracking of an element's appearance on the screen by margin.
|
|
1605
|
+
*
|
|
1606
|
+
* Хук для инициализации отслеживания появления элемента на экране по отступу.
|
|
1607
|
+
* @param element element for tracking/ элемента для отслеживания
|
|
1608
|
+
* @param rootMargin root margin for IntersectionObserver/ отступ для IntersectionObserver
|
|
1609
|
+
*/
|
|
1610
|
+
export declare const useLazyItemByMarginRef: (element: RefType<HTMLElement | undefined>, rootMargin: string) => {
|
|
1611
|
+
/** Lazy item status/ Статус ленивого элемента */
|
|
1612
|
+
lazyItemStatus: any;
|
|
1613
|
+
/**
|
|
1614
|
+
* Getting a tracked lazy item.
|
|
1615
|
+
*
|
|
1616
|
+
* Получение отслеживаемого ленивого элемента.
|
|
1617
|
+
*/
|
|
1618
|
+
readonly lazyItem: any;
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Hook for initializing the tracking of an element's appearance on the screen.
|
|
1623
|
+
*
|
|
1624
|
+
* Хук для инициализации отслеживания появления элемента на экране.
|
|
1625
|
+
*/
|
|
1626
|
+
export declare const useLazyRef: (options?: IntersectionObserverInit) => {
|
|
1627
|
+
intersectionObserver: IntersectionObserver | undefined;
|
|
1628
|
+
/**
|
|
1629
|
+
* Getting a tracked element.
|
|
1630
|
+
*
|
|
1631
|
+
* Получение отслеживаемого элемента.
|
|
1632
|
+
* @param element tracked element/ отслеживаемый элемент
|
|
1633
|
+
*/
|
|
1634
|
+
getItem(element: HTMLElement): LazyItem | undefined;
|
|
1635
|
+
/**
|
|
1636
|
+
* Adding an element for tracking.
|
|
1637
|
+
*
|
|
1638
|
+
* Добавление элемента для отслеживания.
|
|
1639
|
+
* @param element element for tracking/ элемента для отслеживания
|
|
1640
|
+
*/
|
|
1641
|
+
addLazyItem(element: Ref<HTMLElement | undefined>): ShallowRef<boolean, boolean>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Removing an element from tracking.
|
|
1644
|
+
*
|
|
1645
|
+
* Удаление элемента из отслеживания.
|
|
1646
|
+
*/
|
|
1647
|
+
removeLazyItem: (element?: HTMLElement) => void;
|
|
1648
|
+
/**
|
|
1649
|
+
* Removing all elements from tracking.
|
|
1650
|
+
*
|
|
1651
|
+
* Удаление всех элементов из отслеживания.
|
|
1652
|
+
*/
|
|
1653
|
+
disconnectLazy: () => void | undefined;
|
|
1654
|
+
};
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* Returns the loading status.
|
|
1658
|
+
*
|
|
1659
|
+
* Возвращает статус загрузки.
|
|
1660
|
+
*/
|
|
1661
|
+
export declare function useLoadingRef(): ShallowRef<boolean, boolean>;
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Vue composable for reactive meta tags management with automatic DOM synchronization.
|
|
1665
|
+
* Uses singleton pattern - all components share the same meta state.
|
|
1666
|
+
*
|
|
1667
|
+
* Vue композабл для реактивного управления мета-тегами с автоматической синхронизацией DOM.
|
|
1668
|
+
* Использует паттерн singleton - все компоненты используют одно состояние мета-тегов.
|
|
1669
|
+
*/
|
|
1670
|
+
export declare const useMeta: () => Readonly<Readonly<{
|
|
1671
|
+
meta: Meta;
|
|
1672
|
+
title: Ref<string, string>;
|
|
1673
|
+
keyword: Ref<string, string>;
|
|
1674
|
+
description: Ref<string, string>;
|
|
1675
|
+
author: Ref<string, string>;
|
|
1676
|
+
image: Ref<string, string>;
|
|
1677
|
+
canonical: Ref<string, string>;
|
|
1678
|
+
robots: Ref<MetaRobots, MetaRobots>;
|
|
1679
|
+
siteName: Ref<string, string>;
|
|
1680
|
+
getHtmlMeta: () => string;
|
|
1681
|
+
}> & {
|
|
1682
|
+
init(): Readonly<{
|
|
1683
|
+
meta: Meta;
|
|
1684
|
+
title: Ref<string, string>;
|
|
1685
|
+
keyword: Ref<string, string>;
|
|
1686
|
+
description: Ref<string, string>;
|
|
1687
|
+
author: Ref<string, string>;
|
|
1688
|
+
image: Ref<string, string>;
|
|
1689
|
+
canonical: Ref<string, string>;
|
|
1690
|
+
robots: Ref<MetaRobots, MetaRobots>;
|
|
1691
|
+
siteName: Ref<string, string>;
|
|
1692
|
+
getHtmlMeta: () => string;
|
|
1693
|
+
}>;
|
|
1694
|
+
}>;
|
|
1695
|
+
|
|
1696
|
+
/**
|
|
1697
|
+
* Creates a reactive variable to manage session storage.
|
|
1698
|
+
*
|
|
1699
|
+
* Создает реактивную переменную для управления сессией хранения.
|
|
1700
|
+
* @param name value name/ название значения
|
|
1701
|
+
* @param defaultValue default value/ значение по умолчанию
|
|
1702
|
+
*/
|
|
1703
|
+
export declare function useSessionRef<T>(name: string, defaultValue?: T | (() => T)): Ref<T | undefined>;
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* Creates a reactive variable to manage a local storage.
|
|
1707
|
+
*
|
|
1708
|
+
* Создает реактивный переменный для управления локальным хранилищем.
|
|
1709
|
+
* @param name value name/ название значения
|
|
1710
|
+
* @param defaultValue default value/ значение по умолчанию
|
|
1711
|
+
* @param cache cache time/ время кэширования
|
|
1712
|
+
*/
|
|
1713
|
+
export declare function useStorageRef<T>(name: string, defaultValue?: T | (() => T), cache?: number): Ref<T | undefined>;
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Getting the translated text by an array of keys or a string with a key.
|
|
1717
|
+
*
|
|
1718
|
+
* Получение переведенного текста по массиву ключей или строке с ключом.
|
|
1719
|
+
* @param names a string or an array with keys/ строка или массив с ключами
|
|
1720
|
+
*/
|
|
1721
|
+
export declare function useTranslateRef<T extends (string | string[])[]>(names: T): ShallowRef<TranslateList<T>>;
|
|
1722
|
+
|
|
1723
|
+
|
|
1724
|
+
export * from "@dxtmisha/functional-basic";
|
|
1725
|
+
|
|
1726
|
+
export { }
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
declare module '@vue/reactivity' {
|
|
1731
|
+
interface RefUnwrapBailTypes {
|
|
1732
|
+
runtimeCoreBailTypes: VNode | {
|
|
1733
|
+
$: ComponentInternalInstance;
|
|
1734
|
+
};
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1740
|
+
// build.
|
|
1741
|
+
|
|
1742
|
+
declare module '@vue/runtime-core' {
|
|
1743
|
+
export interface GlobalComponents {
|
|
1744
|
+
Teleport: DefineComponent<TeleportProps>
|
|
1745
|
+
Suspense: DefineComponent<SuspenseProps>
|
|
1746
|
+
KeepAlive: DefineComponent<KeepAliveProps>
|
|
1747
|
+
BaseTransition: DefineComponent<BaseTransitionProps>
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
declare module '@vue/reactivity' {
|
|
1753
|
+
interface RefUnwrapBailTypes {
|
|
1754
|
+
runtimeDOMBailTypes: DomType<Node | Window>;
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
declare module '@vue/runtime-core' {
|
|
1760
|
+
interface GlobalComponents {
|
|
1761
|
+
Transition: DefineComponent<TransitionProps>;
|
|
1762
|
+
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
1763
|
+
}
|
|
1764
|
+
interface GlobalDirectives {
|
|
1765
|
+
vShow: typeof vShow;
|
|
1766
|
+
vOn: VOnDirective;
|
|
1767
|
+
vBind: VModelDirective;
|
|
1768
|
+
vIf: Directive<any, boolean>;
|
|
1769
|
+
vOnce: Directive;
|
|
1770
|
+
vSlot: Directive;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
|
|
1775
|
+
|
|
1776
|
+
|
|
1777
|
+
|
|
1778
|
+
declare module '@vue/reactivity' {
|
|
1779
|
+
interface RefUnwrapBailTypes {
|
|
1780
|
+
runtimeCoreBailTypes: VNode | {
|
|
1781
|
+
$: ComponentInternalInstance;
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
|
|
1787
|
+
|
|
1788
|
+
|
|
1789
|
+
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1790
|
+
// build.
|
|
1791
|
+
|
|
1792
|
+
declare module '@vue/runtime-core' {
|
|
1793
|
+
export interface GlobalComponents {
|
|
1794
|
+
Teleport: DefineComponent<TeleportProps>
|
|
1795
|
+
Suspense: DefineComponent<SuspenseProps>
|
|
1796
|
+
KeepAlive: DefineComponent<KeepAliveProps>
|
|
1797
|
+
BaseTransition: DefineComponent<BaseTransitionProps>
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
declare module '@vue/reactivity' {
|
|
1805
|
+
interface RefUnwrapBailTypes {
|
|
1806
|
+
runtimeDOMBailTypes: DomType<Node | Window>;
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
declare module '@vue/runtime-core' {
|
|
1814
|
+
interface GlobalComponents {
|
|
1815
|
+
Transition: DefineComponent<TransitionProps>;
|
|
1816
|
+
TransitionGroup: DefineComponent<TransitionGroupProps>;
|
|
1817
|
+
}
|
|
1818
|
+
interface GlobalDirectives {
|
|
1819
|
+
vShow: typeof vShow;
|
|
1820
|
+
vOn: VOnDirective;
|
|
1821
|
+
vBind: VModelDirective;
|
|
1822
|
+
vIf: Directive<any, boolean>;
|
|
1823
|
+
vOnce: Directive;
|
|
1824
|
+
vSlot: Directive;
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
// CSS
|
|
1833
|
+
declare module '*.css' {}
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
|
|
1838
|
+
declare module '*.scss' {}
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
|
|
1843
|
+
declare module '*.sass' {}
|
|
1844
|
+
|
|
1845
|
+
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
declare module '*.less' {}
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
declare module '*.styl' {}
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
declare module '*.stylus' {}
|
|
1859
|
+
|
|
1860
|
+
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
declare module '*.pcss' {}
|
|
1864
|
+
|
|
1865
|
+
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
declare module '*.sss' {}
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
//#endregion
|
|
1872
|
+
//#region src/index.d.ts
|
|
1873
|
+
declare module 'vue' {
|
|
1874
|
+
interface ComponentCustomOptions {
|
|
1875
|
+
/**
|
|
1876
|
+
* Guard called when the router is navigating to the route that is rendering
|
|
1877
|
+
* this component from a different route. Differently from `beforeRouteUpdate`
|
|
1878
|
+
* and `beforeRouteLeave`, `beforeRouteEnter` does not have access to the
|
|
1879
|
+
* component instance through `this` because it triggers before the component
|
|
1880
|
+
* is even mounted.
|
|
1881
|
+
*
|
|
1882
|
+
* @param to - RouteLocationRaw we are navigating to
|
|
1883
|
+
* @param from - RouteLocationRaw we are navigating from
|
|
1884
|
+
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1885
|
+
* navigation
|
|
1886
|
+
*/
|
|
1887
|
+
beforeRouteEnter?: TypesConfig extends Record<'beforeRouteEnter', infer T> ? T : NavigationGuardWithThis<undefined>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Guard called whenever the route that renders this component has changed, but
|
|
1890
|
+
* it is reused for the new route. This allows you to guard for changes in
|
|
1891
|
+
* params, the query or the hash.
|
|
1892
|
+
*
|
|
1893
|
+
* @param to - RouteLocationRaw we are navigating to
|
|
1894
|
+
* @param from - RouteLocationRaw we are navigating from
|
|
1895
|
+
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1896
|
+
* navigation
|
|
1897
|
+
*/
|
|
1898
|
+
beforeRouteUpdate?: TypesConfig extends Record<'beforeRouteUpdate', infer T> ? T : NavigationGuard;
|
|
1899
|
+
/**
|
|
1900
|
+
* Guard called when the router is navigating away from the current route that
|
|
1901
|
+
* is rendering this component.
|
|
1902
|
+
*
|
|
1903
|
+
* @param to - RouteLocationRaw we are navigating to
|
|
1904
|
+
* @param from - RouteLocationRaw we are navigating from
|
|
1905
|
+
* @param next - function to validate, cancel or modify (by redirecting) the
|
|
1906
|
+
* navigation
|
|
1907
|
+
*/
|
|
1908
|
+
beforeRouteLeave?: TypesConfig extends Record<'beforeRouteLeave', infer T> ? T : NavigationGuard;
|
|
1909
|
+
}
|
|
1910
|
+
interface ComponentCustomProperties {
|
|
1911
|
+
/**
|
|
1912
|
+
* Normalized current location. See {@link RouteLocationNormalizedLoaded}.
|
|
1913
|
+
*/
|
|
1914
|
+
$route: TypesConfig extends Record<'$route', infer T> ? T : RouteLocationNormalizedLoaded;
|
|
1915
|
+
/**
|
|
1916
|
+
* {@link Router} instance used by the application.
|
|
1917
|
+
*/
|
|
1918
|
+
$router: TypesConfig extends Record<'$router', infer T> ? T : Router;
|
|
1919
|
+
}
|
|
1920
|
+
interface GlobalComponents {
|
|
1921
|
+
RouterView: TypesConfig extends Record<'RouterView', infer T> ? T : typeof RouterView;
|
|
1922
|
+
RouterLink: TypesConfig extends Record<'RouterLink', infer T> ? T : typeof RouterLink;
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
// CSS
|
|
1929
|
+
declare module '*.css' {}
|
|
1930
|
+
|
|
1931
|
+
|
|
1932
|
+
declare module '*.scss' {}
|
|
1933
|
+
|
|
1934
|
+
|
|
1935
|
+
declare module '*.sass' {}
|
|
1936
|
+
|
|
1937
|
+
|
|
1938
|
+
declare module '*.less' {}
|
|
1939
|
+
|
|
1940
|
+
|
|
1941
|
+
declare module '*.styl' {}
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
declare module '*.stylus' {}
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
declare module '*.pcss' {}
|
|
1948
|
+
|
|
1949
|
+
|
|
1950
|
+
declare module '*.sss' {}
|