@dxtmisha/functional 1.6.4 → 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.
Files changed (51) hide show
  1. package/dist/library.d.ts +1950 -45
  2. package/dist/library.js +503 -3364
  3. package/package.json +2 -1
  4. package/dist/ScrollbarWidth-De97V2Mh.js +0 -2185
  5. package/dist/classes/design/DesignAbstract.d.ts +0 -61
  6. package/dist/classes/design/DesignAsyncAbstract.d.ts +0 -28
  7. package/dist/classes/design/DesignChanged.d.ts +0 -42
  8. package/dist/classes/design/DesignComp.d.ts +0 -4
  9. package/dist/classes/design/DesignComponents.d.ts +0 -81
  10. package/dist/classes/design/DesignConstructorAbstract.d.ts +0 -150
  11. package/dist/classes/ref/DatetimeRef.d.ts +0 -117
  12. package/dist/classes/ref/EventRef.d.ts +0 -22
  13. package/dist/classes/ref/GeoFlagRef.d.ts +0 -51
  14. package/dist/classes/ref/GeoIntlRef.d.ts +0 -172
  15. package/dist/classes/ref/GeoRef.d.ts +0 -52
  16. package/dist/classes/ref/ListDataRef.d.ts +0 -255
  17. package/dist/classes/ref/RouterItemRef.d.ts +0 -36
  18. package/dist/classes/ref/ScrollbarWidthRef.d.ts +0 -24
  19. package/dist/composables/ref/useApiRef.d.ts +0 -25
  20. package/dist/composables/ref/useBroadcastValueRef.d.ts +0 -11
  21. package/dist/composables/ref/useCookieRef.d.ts +0 -11
  22. package/dist/composables/ref/useGeoIntlRef.d.ts +0 -7
  23. package/dist/composables/ref/useHashRef.d.ts +0 -9
  24. package/dist/composables/ref/useLazyItemByMarginRef.d.ts +0 -22
  25. package/dist/composables/ref/useLazyRef.d.ts +0 -42
  26. package/dist/composables/ref/useLoadingRef.d.ts +0 -7
  27. package/dist/composables/ref/useMeta.d.ts +0 -34
  28. package/dist/composables/ref/useSessionRef.d.ts +0 -9
  29. package/dist/composables/ref/useStorageRef.d.ts +0 -10
  30. package/dist/composables/ref/useTranslateRef.d.ts +0 -16
  31. package/dist/flags.d.ts +0 -1
  32. package/dist/flags.js +0 -8
  33. package/dist/functions/basic.d.ts +0 -1
  34. package/dist/functions/computedAsync.d.ts +0 -11
  35. package/dist/functions/computedByLanguage.d.ts +0 -15
  36. package/dist/functions/executeUse.d.ts +0 -13
  37. package/dist/functions/ref/getBindRef.d.ts +0 -13
  38. package/dist/functions/ref/getComputedAsync.d.ts +0 -9
  39. package/dist/functions/ref/getRef.d.ts +0 -8
  40. package/dist/functions/ref/render.d.ts +0 -13
  41. package/dist/functions/ref/setRef.d.ts +0 -9
  42. package/dist/functions/ref/toComputed.d.ts +0 -8
  43. package/dist/functions/ref/toRefItem.d.ts +0 -9
  44. package/dist/functions/render/getBind.d.ts +0 -14
  45. package/dist/functions/render/getClassName.d.ts +0 -8
  46. package/dist/functions/render/getIndexForRender.d.ts +0 -10
  47. package/dist/functions/toBind.d.ts +0 -10
  48. package/dist/functions/toBinds.d.ts +0 -9
  49. package/dist/types/constructorTypes.d.ts +0 -116
  50. package/dist/types/listTypes.d.ts +0 -63
  51. package/dist/types/refTypes.d.ts +0 -36
@@ -1,172 +0,0 @@
1
- import { ComputedRef } from 'vue';
2
- import { GeoDate, ItemValue, NumberOrString, NumberOrStringOrDate } from '@dxtmisha/functional-basic';
3
- import { RefOrNormal } from '../../types/refTypes';
4
- /**
5
- * Reactive class for managing the formatting of numbers and dates.
6
- *
7
- * Реактивный класс для управления форматированием чисел и дат.
8
- */
9
- export declare class GeoIntlRef {
10
- private location;
11
- private intl;
12
- /**
13
- * Constructor
14
- * @param code country code, full form language-country or one of them/
15
- * код страны, полный вид язык-страна или один из них
16
- */
17
- constructor(code?: RefOrNormal<string>);
18
- /**
19
- * The consistent translation of language, region and script display names.
20
- *
21
- * Последовательный перевод отображаемых названий языка, региона и скрипта.
22
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
23
- * @param typeOptions an object with some or all of the following properties/
24
- * объект с некоторыми или всеми из следующих свойств
25
- */
26
- display(value?: RefOrNormal<string>, typeOptions?: Intl.DisplayNamesOptions['type'] | Intl.DisplayNamesOptions): ComputedRef<string>;
27
- /**
28
- * Get display names of language.
29
- *
30
- * Получить отображаемые имена языка.
31
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
32
- * @param style the formatting style to use/ используемый стиль форматирования
33
- */
34
- languageName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
35
- /**
36
- * Get display names of region.
37
- *
38
- * Получить отображаемые имена региона.
39
- * @param value the code to provide depends on the type/ предоставляемый код зависит от типа
40
- * @param style the formatting style to use/ используемый стиль форматирования
41
- */
42
- countryName(value?: RefOrNormal<string>, style?: Intl.RelativeTimeFormatStyle): ComputedRef<string>;
43
- /**
44
- * In basic use without specifying a locale, a formatted string.
45
- *
46
- * При обычном использовании без указания локали форматированная строка
47
- *
48
- * @param value a number, bigint, or string, to format/ число для форматирования
49
- * @param options an object with some or all properties/ объект с некоторыми
50
- * или всеми свойствами
51
- */
52
- number(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
53
- /**
54
- * Decimal point symbol.
55
- *
56
- * Символ десятичной точки.
57
- */
58
- decimal(): ComputedRef<string>;
59
- /**
60
- * Currency formatting.
61
- *
62
- * Форматирование валюты.
63
- * @param value a number, bigint, or string, to format/ число для форматирования
64
- * @param currencyOptions the currency to use in currency formatting/
65
- * валюта для использования в форматировании валюты
66
- * @param numberOnly do not display the currency symbol/ не выводить значок валюты
67
- */
68
- currency(value: RefOrNormal<NumberOrString>, currencyOptions?: RefOrNormal<string | Intl.NumberFormatOptions>, numberOnly?: boolean): ComputedRef<string>;
69
- /**
70
- * Unit formatting.
71
- * If the style is 'unit', a unit property must be provided.
72
- *
73
- * Форматирование юнитов.
74
- * @param value a number, bigint, or string, to format/ число для форматирования
75
- * @param unitOptions the unit to use in unit formatting/ блок для использования
76
- * в форматировании блока
77
- */
78
- unit(value: RefOrNormal<NumberOrString>, unitOptions?: string | Intl.NumberFormatOptions): ComputedRef<string>;
79
- /**
80
- * Number as a percentage.
81
- *
82
- * Число в виде процента.
83
- * @param value a number, bigint, or string, to format/ число для форматирования
84
- * @param options an object with some or all properties/ объект с некоторыми или всеми свойствами
85
- */
86
- percent(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
87
- /**
88
- * Number as a percentage (unit).
89
- *
90
- * Число в виде процента (единица).
91
- * @param value a number, bigint, or string, to format/ число для форматирования
92
- * @param options an object with some or all properties/
93
- * объект с некоторыми или всеми свойствами
94
- */
95
- percentBy100(value: RefOrNormal<NumberOrString>, options?: Intl.NumberFormatOptions): ComputedRef<string>;
96
- /**
97
- * Enables language-sensitive date and time formatting.
98
- *
99
- * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
100
- * @param value the date to format/ дата для форматирования
101
- * @param type type of data format/ тип формата data
102
- * @param styleOptions the representation of the month/ представление месяца
103
- * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
104
- */
105
- date(value: RefOrNormal<NumberOrStringOrDate>, type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions, hour24?: boolean): ComputedRef<string>;
106
- /**
107
- * Enables language-sensitive relative time formatting.
108
- *
109
- * Включает форматирование относительного времени с учетом языка.
110
- * @param value a number, bigint, or string, to format/ число для форматирования
111
- * @param styleOptions the length of the internationalized message/
112
- * длина интернационализированного сообщения
113
- * @param todayValue current day/ текущий день
114
- */
115
- relative(value: RefOrNormal<NumberOrStringOrDate>, styleOptions?: Intl.RelativeTimeFormatStyle | Intl.RelativeTimeFormatOptions, todayValue?: Date): ComputedRef<string>;
116
- /**
117
- * Enables language-sensitive relative time formatting
118
- * Including the ability to add a limit to output the standard time format if the value
119
- * exceeds the allowable limit.
120
- *
121
- * Включает форматирование относительного времени с учетом языка.
122
- * Включая возможность добавления лимита, чтобы выводить уже стандартный формат времени,
123
- * если значение вышло за пределы допустимого.
124
- * @param value a number, bigint, or string, to format/ число для форматирования
125
- * @param limit values that determine the output limit (values per day)/
126
- * значения, по которым определяем предел вывода (значения в день)
127
- * @param todayValue current day/ текущий день
128
- * @param relativeOptions the length of the internationalized message/
129
- * длина интернационализированного сообщения
130
- * @param dateOptions the representation of the month/ представление месяца
131
- * @param type type of data format/ тип формата data
132
- * @param hour24 whether to use 12-hour time/ использовать ли 12-часовое время
133
- */
134
- 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>;
135
- /**
136
- * Names of months.
137
- *
138
- * Названия месяцев.
139
- * @param value the date to format/ дата для форматирования
140
- * @param style the representation of the month/ представление месяца
141
- */
142
- month(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['month']): ComputedRef<string>;
143
- /**
144
- * Array to list of months.
145
- *
146
- * Массив в список месяцев.
147
- * @param style the representation of the month/ представление месяца
148
- */
149
- months(style?: Intl.DateTimeFormatOptions['month']): ComputedRef<ItemValue<number | undefined>[]>;
150
- /**
151
- * Returns names of days of the week.
152
- *
153
- * Возвращает названия дней недели.
154
- * @param value the date to format/ дата для форматирования
155
- * @param style the representation of the weekday/ представление о дне недели
156
- */
157
- weekday(value?: RefOrNormal<NumberOrStringOrDate>, style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<string>;
158
- /**
159
- * An array of the list of names of the days of the week.
160
- *
161
- * Массив из списка названий дней недели.
162
- * @param style the representation of the weekday/ представление о дне недели
163
- */
164
- weekdays(style?: Intl.DateTimeFormatOptions['weekday']): ComputedRef<ItemValue<number | undefined>[]>;
165
- /**
166
- * Time.
167
- *
168
- * Время.
169
- * @param value the date to format/ дата для форматирования
170
- */
171
- time(value: RefOrNormal<NumberOrStringOrDate>): ComputedRef<string>;
172
- }
@@ -1,52 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { GeoItemFull } from '@dxtmisha/functional-basic';
3
- /**
4
- * Reactive class for working with geographic data.
5
- *
6
- * Реактивный класс для работы с географическими данными.
7
- */
8
- export declare class GeoRef {
9
- private static readonly item;
10
- private static readonly country;
11
- private static readonly language;
12
- private static readonly standard;
13
- private static readonly firstDay;
14
- /**
15
- * Information about the current country.
16
- *
17
- * Информация об текущей стране.
18
- */
19
- static get(): Ref<GeoItemFull>;
20
- /**
21
- * Current country.
22
- *
23
- * Текущая страна.
24
- */
25
- static getCountry(): ComputedRef<string>;
26
- /**
27
- * Current language.
28
- *
29
- * Текущий язык.
30
- */
31
- static getLanguage(): ComputedRef<string>;
32
- /**
33
- * Full format according to the standard.
34
- *
35
- * Полный формат согласно стандарту.
36
- */
37
- static getStandard(): ComputedRef<string>;
38
- /**
39
- * Returns the first day of the week.
40
- *
41
- * Возвращает первый день недели.
42
- */
43
- static getFirstDay(): ComputedRef<string>;
44
- /**
45
- * Changes the data by the full code.
46
- *
47
- * Изменяет данные по полному коду.
48
- * @param code country code, full form language-country or one of them/
49
- * код страны, полный вид язык-страна или один из них
50
- */
51
- static set(code: string): void;
52
- }
@@ -1,255 +0,0 @@
1
- import { RefOrNormal, RefType } from '../../types/refTypes';
2
- import { ListDataFull, ListDataItem, ListList, ListListInput, ListNames, ListSelectedItem, ListSelectedList } from '../../types/listTypes';
3
- import { ComputedRef } from 'vue';
4
- /**
5
- * Class for managing the data list.
6
- *
7
- * Класс для управления списком данных.
8
- */
9
- export declare class ListDataRef {
10
- protected readonly list: RefOrNormal<ListListInput | undefined>;
11
- protected readonly focus?: RefType<ListSelectedItem | undefined> | undefined;
12
- protected readonly highlight?: RefType<string | undefined> | undefined;
13
- protected readonly highlightLengthStart?: RefType<number | undefined> | undefined;
14
- protected readonly filterMode?: RefType<boolean | undefined> | undefined;
15
- protected readonly selected?: RefType<ListSelectedList | undefined> | undefined;
16
- protected readonly keyValue?: RefType<string | undefined> | undefined;
17
- protected readonly keyLabel?: RefType<string | undefined> | undefined;
18
- protected readonly lite?: RefType<number | undefined> | undefined;
19
- protected readonly min: RefOrNormal<number | string | undefined>;
20
- protected readonly max: RefOrNormal<number | string | undefined>;
21
- protected readonly parent?: string | undefined;
22
- protected subList: Record<any, ListDataRef>;
23
- /**
24
- * Creates an instance of ListData for managing list data.
25
- *
26
- * Создает экземпляр ListData для управления данными списка.
27
- * @param list List data / данные списка
28
- * @param focus Focused item / элемент в фокусе
29
- * @param highlight Search text for highlighting / текст поиска для выделения
30
- * @param highlightLengthStart Minimum length to start highlighting / минимальная длина для начала выделения
31
- * @param filterMode Filter mode / режим фильтрации
32
- * @param selected Selected items / выбранные элементы
33
- * @param keyValue Key for getting item value / ключ для получения значения элемента
34
- * @param keyLabel Key for getting item label / ключ для получения метки элемента
35
- * @param lite Threshold for lite mode / порог для облегченного режима
36
- * @param min Minimum number of selections / минимальное количество выделений
37
- * @param max Maximum number of selections / максимальное количество выделений
38
- * @param parent Parent identifier / идентификатор родителя
39
- */
40
- constructor(list: RefOrNormal<ListListInput | undefined>, focus?: RefType<ListSelectedItem | undefined> | undefined, highlight?: RefType<string | undefined> | undefined, highlightLengthStart?: RefType<number | undefined> | undefined, filterMode?: RefType<boolean | undefined> | undefined, selected?: RefType<ListSelectedList | undefined> | undefined, keyValue?: RefType<string | undefined> | undefined, keyLabel?: RefType<string | undefined> | undefined, lite?: RefType<number | undefined> | undefined, min?: RefOrNormal<number | string | undefined>, max?: RefOrNormal<number | string | undefined>, parent?: string | undefined);
41
- /**
42
- * Returns a list for forming a list.
43
- *
44
- * Возвращает список для формирования списка.
45
- */
46
- readonly data: ComputedRef<ListList>;
47
- /**
48
- * Returns a simplified list for quick loading.
49
- *
50
- * Возвращает упрощенный список для быстрой загрузки.
51
- */
52
- readonly liteData: ComputedRef<ListList>;
53
- /**
54
- * Returns a list of records with all additional data.
55
- *
56
- * Возвращает список записей со всеми дополнительными данными.
57
- */
58
- readonly fullData: ComputedRef<ListDataFull>;
59
- /**
60
- * Returns a map of all entries.
61
- *
62
- * Возвращает карту всех записей.
63
- */
64
- readonly map: ComputedRef<ListList>;
65
- /** Returns a list consisting only of items/ Возвращает список, состоящий только из элементов. */
66
- readonly mapItems: ComputedRef<ListList>;
67
- /**
68
- * Returns a list consisting only of values for selection.
69
- *
70
- * Возвращает список, состоящий только из значений для выбора.
71
- */
72
- readonly items: ComputedRef<ListList>;
73
- /**
74
- * Finds the first element that meets the search conditions.
75
- *
76
- * Находит первый элемент, соответствующий условиям поиска.
77
- */
78
- readonly highlightFirstItem: ComputedRef<number>;
79
- /**
80
- * Is there a selected item.
81
- *
82
- * Есть ли выбранный элемент.
83
- */
84
- readonly isSelected: ComputedRef<boolean>;
85
- /** Is the minimum selection reached/ Достигнуто ли минимальное выделение */
86
- readonly isSelectedMin: ComputedRef<boolean>;
87
- /** Is the maximum selection reached/ Достигнуто ли максимальное выделение */
88
- readonly isSelectedMax: ComputedRef<boolean>;
89
- /**
90
- * Returns a list of selected items on the map/
91
- * Возвращает список выделенных элементов на карте
92
- */
93
- readonly selectedList: ComputedRef<ListList>;
94
- /**
95
- * Returns a list of selected items in the current group/
96
- * Возвращает список выделенных элементов в текущей группе
97
- */
98
- readonly selectedListInGroup: ComputedRef<ListList>;
99
- /**
100
- * Returns a list of selected items on the map.
101
- *
102
- * Возвращает список выделенных элементов на карте.
103
- */
104
- readonly selectedNames: ComputedRef<ListNames>;
105
- /**
106
- * Returns a list of selected item values on the map.
107
- *
108
- * Возвращает список значений выделенных элементов на карте.
109
- */
110
- readonly selectedValues: ComputedRef<any[]>;
111
- /**
112
- * Checks whether it is necessary to first display a simplified version.
113
- *
114
- * Проверяет, надо ли сначала вывести упрощенную версию.
115
- */
116
- isLite(): boolean;
117
- /**
118
- * Checks if an element is in focus.
119
- *
120
- * Проверяет, есть ли элемент в фокусе.
121
- */
122
- isFocus(): boolean;
123
- /**
124
- * Checks if there is a selected item.
125
- *
126
- * Проверяет, есть ли выделенный элемент.
127
- */
128
- isHighlight(): boolean;
129
- /**
130
- * Checks if highlighting is active.
131
- *
132
- * Проверяет, активно ли выделение.
133
- */
134
- isHighlightActive(): boolean;
135
- /**
136
- * Returns the number of records.
137
- *
138
- * Возвращает количество записей.
139
- */
140
- getLength(): number;
141
- /**
142
- * Returns the number of all available records.
143
- *
144
- * Возвращает количество всех доступных записей.
145
- */
146
- getLengthByMap(): number;
147
- /**
148
- * Returns the number of all available records.
149
- *
150
- * Возвращает количество всех доступных записей.
151
- */
152
- getLengthByItems(): number;
153
- /**
154
- * Returns the values in focus.
155
- *
156
- * Возвращает значения в фокусе.
157
- */
158
- getFocus(): ListSelectedItem | undefined;
159
- /**
160
- * Returns the selected value.
161
- *
162
- * Возвращает выделенного значение.
163
- */
164
- getHighlight(): string | undefined;
165
- /**
166
- * Returns the minimum length for highlight to start.
167
- *
168
- * Возвращает минимальную длину для начала выделения.
169
- */
170
- getHighlightLengthStart(): number;
171
- /**
172
- * Returns the selected value.
173
- *
174
- * Возвращает выбранное значение.
175
- */
176
- getSelected(): ListSelectedList | undefined;
177
- /**
178
- * Returns an item by moving a certain number of steps from the selected item.
179
- *
180
- * Возвращает элемент, перемещаясь на определенное количество шагов от выбранного элемента.
181
- * @param step number of steps/ количество шагов
182
- */
183
- getSelectedByStep(step: number): ListSelectedItem | undefined;
184
- /**
185
- * Returns an item by its index.
186
- *
187
- * Возвращает элемент по его индексу.
188
- * @param index item index/ индекс элемента
189
- */
190
- getItemByIndex(index?: string): {
191
- key: number;
192
- item: ListDataItem;
193
- } | undefined;
194
- /**
195
- * Returns an item by its key.
196
- *
197
- * Возвращает элемент по его ключу.
198
- * @param key item key/ ключ элемента
199
- */
200
- getItemByKey(key: number): ListDataItem | undefined;
201
- /**
202
- * Returns the first item with the specified parent.
203
- *
204
- * Возвращает первый элемент с указанным родителем.
205
- * @param parent parent identifier to search for / идентификатор родителя для поиска
206
- */
207
- getFirstItemByParent(parent: string): ListDataItem | undefined;
208
- /**
209
- * Returns the last item with the specified parent.
210
- *
211
- * Возвращает последний элемент с указанным родителем.
212
- * @param parent parent identifier to search for / идентификатор родителя для поиска
213
- */
214
- getLastItemByParent(parent: string): ListDataItem | undefined;
215
- /**
216
- * Returns a sublist object for a group item.
217
- *
218
- * Возвращает объект подсписка для группового элемента.
219
- * @param item List item data/ данные элемента списка
220
- */
221
- getSubList(item: ListDataItem): ListDataRef;
222
- /**
223
- * Checks if the item is an item, group, or menu.
224
- *
225
- * Проверяет, является ли элемент элементом, группой или меню.
226
- * @param item List item data/ данные элемента списка
227
- */
228
- protected isItem(item: ListDataItem): boolean;
229
- /**
230
- * Checks if the item is in the specified parent.
231
- *
232
- * Проверяет, находится ли элемент в указанном родителе.
233
- * @param parent parent identifier to search for / идентификатор родителя для поиска
234
- * @param item List item data/ данные элемента списка
235
- */
236
- protected isInParent(parent: string, item: ListDataItem): boolean;
237
- /**
238
- * Returns the index for the list item.
239
- *
240
- * Возвращает индекс для элемента списка.
241
- * @param index current index / текущий индекс
242
- * @param value item value / значение элемента
243
- * @param key item key / ключ элемента
244
- * @param label item label / метка элемента
245
- */
246
- protected getIndex(index: string | number | undefined, value: any, key: string | number | undefined, label: string | number | undefined): string | number | undefined;
247
- /**
248
- * Creates an object of the record element.
249
- *
250
- * Создает объект элемента записи.
251
- * @param key the value of the key in the element/ значения ключа у элемента
252
- * @param item selected element/ выбранный элемент
253
- */
254
- protected initItem(key: string | number, item: any): ListDataItem;
255
- }
@@ -1,36 +0,0 @@
1
- import { RouteLocationRaw, Router } from 'vue-router';
2
- /**
3
- * Router management class.
4
- *
5
- * Класс управления роутером.
6
- */
7
- export declare class RouterItemRef {
8
- protected static router?: Router;
9
- /**
10
- * Get router instance.
11
- *
12
- * Получить экземпляр роутера.
13
- */
14
- static get(): Router | undefined;
15
- /**
16
- * Site path change.
17
- *
18
- * Изменение пути сайта.
19
- * @param to new path/ новый путь
20
- */
21
- static push(to: string | RouteLocationRaw): void;
22
- /**
23
- * Set router instance.
24
- *
25
- * Установить экземпляр роутера.
26
- * @param router router instance/ экземпляр роутера
27
- */
28
- static set(router: Router): void;
29
- /**
30
- * Set router instance only once.
31
- *
32
- * Установить экземпляр роутера только один раз.
33
- * @param router router instance/ экземпляр роутера
34
- */
35
- static setOneTime(router: Router): void;
36
- }
@@ -1,24 +0,0 @@
1
- import { Ref, ComputedRef } from 'vue';
2
- /**
3
- * Class for getting the scroll width as a reactive item.
4
- *
5
- * Класс для получения ширины скролла в виде реактивного элемента.
6
- */
7
- export declare class ScrollbarWidthRef {
8
- /**
9
- * Reactive item.
10
- *
11
- * Реактивный элемент.
12
- */
13
- readonly item: Ref<boolean | undefined, boolean | undefined>;
14
- /**
15
- * Constructor
16
- */
17
- constructor();
18
- /**
19
- * Checks whether the scroll width is defined.
20
- *
21
- * Проверяет, определена ли ширина скролла.
22
- */
23
- readonly is: ComputedRef<boolean>;
24
- }
@@ -1,25 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { ApiFetch, ApiMethodItem } from '@dxtmisha/functional-basic';
3
- import { RefOrNormal, RefType } from '../../types/refTypes';
4
- type ApiOptions = ApiMethodItem | RefOrNormal<ApiFetch>;
5
- export interface UseApiRef<R> {
6
- data: Ref<R | undefined>;
7
- isStarting: ComputedRef<boolean>;
8
- loading: ComputedRef<boolean>;
9
- reading: ComputedRef<boolean>;
10
- reset(): Promise<void>;
11
- }
12
- /**
13
- * Returns data for working with requests.
14
- *
15
- * Возвращает данные для работы с запросами.
16
- * @param path path to request/ путь к запрос
17
- * @param options data for the request/ данные для запроса
18
- * @param reactivity should reactivity be enabled/ включить ли реактивность
19
- * @param conditions conditions for executing the request/ условия выполнения запроса
20
- * @param transformation transforms the received request/ преобразовывает полученный запрос
21
- * @param unmounted delete data from the cache/ удалить ли данные из кеша
22
- */
23
- 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>;
24
- export declare const setApiRefGlobalConditions: (conditions: RefType<any>) => void;
25
- export {};
@@ -1,11 +0,0 @@
1
- import { Ref } from 'vue';
2
- type BroadcastValueItem<T> = T | string | undefined;
3
- /**
4
- * Creates a reactive variable to manage data between browser tabs.
5
- *
6
- * Создает реактивную переменную для управления данными между вкладками браузера.
7
- * @param name value name/ название значения
8
- * @param defaultValue default value/ значение по умолчанию
9
- */
10
- export declare function useBroadcastValueRef<T>(name: string, defaultValue?: T | string | (() => (T | string))): Ref<BroadcastValueItem<T>>;
11
- export {};
@@ -1,11 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { CookieOptions } from '@dxtmisha/functional-basic';
3
- /**
4
- * Creates a reactive variable to manage cookies.
5
- *
6
- * Создает реактивную переменную для управления cookie.
7
- * @param name cookie name/ название cookie
8
- * @param defaultValue value or function to change data/ значение или функция для изменения данных
9
- * @param options additional parameters/ дополнительные параметры
10
- */
11
- export declare function useCookieRef<T>(name: string, defaultValue?: T | string | (() => (T | string)), options?: CookieOptions): Ref<T | string | undefined>;
@@ -1,7 +0,0 @@
1
- import { GeoIntlRef } from '../../classes/ref/GeoIntlRef';
2
- /**
3
- * Returns a class object for working with data formatting.
4
- *
5
- * Возвращает объект класса для работы с форматированием данных.
6
- */
7
- export declare function useGeoIntlRef(): GeoIntlRef;
@@ -1,9 +0,0 @@
1
- import { Ref } from 'vue';
2
- /**
3
- * Creates a reactive variable to manage the hash.
4
- *
5
- * Создает реактивную переменную для управления хэшем.
6
- * @param name value name/ название значения
7
- * @param defaultValue default value/ значение по умолчанию
8
- */
9
- export declare function useHashRef<T>(name: string, defaultValue?: T | (() => T)): Ref<any, any> | undefined;
@@ -1,22 +0,0 @@
1
- import { RefType } from '../../types/refTypes.ts';
2
- export type LazyItemByMargin = {
3
- rootMargin: string;
4
- item: any;
5
- };
6
- /**
7
- * Hook for initializing the tracking of an element's appearance on the screen by margin.
8
- *
9
- * Хук для инициализации отслеживания появления элемента на экране по отступу.
10
- * @param element element for tracking/ элемента для отслеживания
11
- * @param rootMargin root margin for IntersectionObserver/ отступ для IntersectionObserver
12
- */
13
- export declare const useLazyItemByMarginRef: (element: RefType<HTMLElement | undefined>, rootMargin: string) => {
14
- /** Lazy item status/ Статус ленивого элемента */
15
- lazyItemStatus: any;
16
- /**
17
- * Getting a tracked lazy item.
18
- *
19
- * Получение отслеживаемого ленивого элемента.
20
- */
21
- readonly lazyItem: any;
22
- };