@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.
Files changed (49) hide show
  1. package/dist/library.d.ts +1950 -45
  2. package/package.json +1 -1
  3. package/dist/classes/design/DesignAbstract.d.ts +0 -61
  4. package/dist/classes/design/DesignAsyncAbstract.d.ts +0 -28
  5. package/dist/classes/design/DesignChanged.d.ts +0 -42
  6. package/dist/classes/design/DesignComp.d.ts +0 -4
  7. package/dist/classes/design/DesignComponents.d.ts +0 -81
  8. package/dist/classes/design/DesignConstructorAbstract.d.ts +0 -150
  9. package/dist/classes/ref/DatetimeRef.d.ts +0 -117
  10. package/dist/classes/ref/EventRef.d.ts +0 -22
  11. package/dist/classes/ref/GeoFlagRef.d.ts +0 -51
  12. package/dist/classes/ref/GeoIntlRef.d.ts +0 -172
  13. package/dist/classes/ref/GeoRef.d.ts +0 -52
  14. package/dist/classes/ref/ListDataRef.d.ts +0 -255
  15. package/dist/classes/ref/RouterItemRef.d.ts +0 -36
  16. package/dist/classes/ref/ScrollbarWidthRef.d.ts +0 -24
  17. package/dist/composables/ref/useApiRef.d.ts +0 -25
  18. package/dist/composables/ref/useBroadcastValueRef.d.ts +0 -11
  19. package/dist/composables/ref/useCookieRef.d.ts +0 -11
  20. package/dist/composables/ref/useGeoIntlRef.d.ts +0 -7
  21. package/dist/composables/ref/useHashRef.d.ts +0 -9
  22. package/dist/composables/ref/useLazyItemByMarginRef.d.ts +0 -22
  23. package/dist/composables/ref/useLazyRef.d.ts +0 -42
  24. package/dist/composables/ref/useLoadingRef.d.ts +0 -7
  25. package/dist/composables/ref/useMeta.d.ts +0 -34
  26. package/dist/composables/ref/useSessionRef.d.ts +0 -9
  27. package/dist/composables/ref/useStorageRef.d.ts +0 -10
  28. package/dist/composables/ref/useTranslateRef.d.ts +0 -16
  29. package/dist/flags.d.ts +0 -1
  30. package/dist/flags.js +0 -8
  31. package/dist/functions/basic.d.ts +0 -1
  32. package/dist/functions/computedAsync.d.ts +0 -11
  33. package/dist/functions/computedByLanguage.d.ts +0 -15
  34. package/dist/functions/executeUse.d.ts +0 -13
  35. package/dist/functions/ref/getBindRef.d.ts +0 -13
  36. package/dist/functions/ref/getComputedAsync.d.ts +0 -9
  37. package/dist/functions/ref/getRef.d.ts +0 -8
  38. package/dist/functions/ref/render.d.ts +0 -13
  39. package/dist/functions/ref/setRef.d.ts +0 -9
  40. package/dist/functions/ref/toComputed.d.ts +0 -8
  41. package/dist/functions/ref/toRefItem.d.ts +0 -9
  42. package/dist/functions/render/getBind.d.ts +0 -14
  43. package/dist/functions/render/getClassName.d.ts +0 -8
  44. package/dist/functions/render/getIndexForRender.d.ts +0 -10
  45. package/dist/functions/toBind.d.ts +0 -10
  46. package/dist/functions/toBinds.d.ts +0 -9
  47. package/dist/types/constructorTypes.d.ts +0 -116
  48. package/dist/types/listTypes.d.ts +0 -63
  49. package/dist/types/refTypes.d.ts +0 -36
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/functional",
3
3
  "private": false,
4
- "version": "1.6.5",
4
+ "version": "1.6.6",
5
5
  "type": "module",
6
6
  "description": "Comprehensive functional utilities library for DXT UI - classes, composables, functions and types for modern web development",
7
7
  "keywords": [
@@ -1,61 +0,0 @@
1
- import { DesignChanged } from './DesignChanged';
2
- /**
3
- * Base class for working with the constructor.
4
- *
5
- * Базовый класс для работы с конструктором.
6
- */
7
- export declare abstract class DesignAbstract<T extends Record<string, any>, C extends Record<string, any>> {
8
- protected readonly props: T;
9
- protected readonly callback?: ((event: C) => void) | undefined;
10
- protected readonly event: C;
11
- protected readonly changed: DesignChanged<T>;
12
- /**
13
- * Constructor
14
- * @param props base data/ базовые данные
15
- * @param callback callback function when the value changes/
16
- * функция обратного вызова при изменении значения
17
- * @param changed base data/ данный для слежения
18
- */
19
- constructor(props: T, callback?: ((event: C) => void) | undefined, changed?: string[]);
20
- /**
21
- * Calls the callback function.
22
- *
23
- * Вызывает функцию обратного вызова.
24
- * @param compelled forces data to update/ вынуждает обновлять данные
25
- */
26
- make(compelled?: boolean): this;
27
- /**
28
- * Checks if there are values in the property.
29
- *
30
- * Проверяет, есть ли значения в свойстве.
31
- * @param name property names/ названия свойств
32
- */
33
- protected is<K extends keyof T>(name: K): boolean;
34
- /**
35
- * Checks if the value has been changed by the property name.
36
- *
37
- * Проверяет, было ли изменено значение по названию свойства.
38
- * @param name property names/ названия свойств
39
- * @param nameProp names of properties of the input variable/ названия свойств входной переменной
40
- */
41
- protected isChanged<K extends keyof C & string, KT extends keyof T & string>(name: K, nameProp?: KT | KT[]): boolean;
42
- /**
43
- * Calls the callback function.
44
- *
45
- * Вызывает функцию обратного вызова.
46
- * @param compelled forces data to update/ вынуждает обновлять данные
47
- */
48
- makeCallback(compelled?: boolean): void;
49
- /**
50
- * The function calls an image call.
51
- *
52
- * Функция вызывает образный вызов.
53
- */
54
- protected makeCallbackItem(): void;
55
- /**
56
- * A function that is called each time the input values are changed.
57
- *
58
- * Функция, которая вызывается каждый раз, когда изменяются входные значения.
59
- */
60
- protected abstract initEvent(): void;
61
- }
@@ -1,28 +0,0 @@
1
- import { DesignAbstract } from './DesignAbstract';
2
- /**
3
- * Base class for working with the constructor.
4
- *
5
- * Базовый класс для работы с конструктором.
6
- */
7
- export declare abstract class DesignAsyncAbstract<T extends Record<string, any>, C extends Record<string, any>> extends DesignAbstract<T, C> {
8
- /**
9
- * Calls the callback function.
10
- *
11
- * Вызывает функцию обратного вызова.
12
- * @param compelled forces data to update/ вынуждает обновлять данные
13
- */
14
- make(compelled?: boolean): this;
15
- /**
16
- * Calls the callback function.
17
- *
18
- * Вызывает функцию обратного вызова.
19
- * @param compelled forces data to update/ вынуждает обновлять данные
20
- */
21
- makeCallback(compelled?: boolean): Promise<void>;
22
- /**
23
- * A function that is called each time the input values are changed.
24
- *
25
- * Функция, которая вызывается каждый раз, когда изменяются входные значения.
26
- */
27
- protected abstract initEvent(): Promise<void>;
28
- }
@@ -1,42 +0,0 @@
1
- /**
2
- * The class checks the values that have been edited.
3
- *
4
- * Класс проверяет значения, которые были отредактированы.
5
- */
6
- export declare class DesignChanged<T extends Record<string, any>> {
7
- protected readonly props: T;
8
- protected readonly watch: string[];
9
- private readonly cache;
10
- /**
11
- * Constructor
12
- * @param props base data/ базовые данные
13
- * @param watch data for tracking/ данные для слежения
14
- */
15
- constructor(props: T, watch?: string[]);
16
- /**
17
- * Checks if the value has been updated.
18
- *
19
- * Проверяет, обновлено ли значение.
20
- * @param name property name/ название свойства
21
- */
22
- is(name: string | string[]): boolean;
23
- /**
24
- * Checks if there are changes in the data.
25
- *
26
- * Проверяет, есть ли изменения в данных.
27
- */
28
- isChanged(): boolean;
29
- /**
30
- * Updates all values.
31
- *
32
- * Обновляет все значения.
33
- */
34
- update(): void;
35
- /**
36
- * Checking additional data.
37
- *
38
- * Проверка дополнительных данных.
39
- * @param name property name/ название свойства
40
- */
41
- protected isDifferent(name: string): boolean;
42
- }
@@ -1,4 +0,0 @@
1
- import { DesignComponents } from './DesignComponents';
2
- import { ConstrComponent, ConstrItem } from '../../types/constructorTypes';
3
- export declare class DesignComp<COMP extends ConstrComponent, P extends ConstrItem> extends DesignComponents<COMP, P> {
4
- }
@@ -1,81 +0,0 @@
1
- import { ComputedRef, VNode } from 'vue';
2
- import { RawChildren, RawSlots } from '../../types/refTypes';
3
- import { ConstrComponent, ConstrComponentMod, ConstrItem } from '../../types/constructorTypes';
4
- /**
5
- * Class for working with connected components.
6
- *
7
- * Класс для работы с подключенными компонентами.
8
- */
9
- export declare class DesignComponents<COMP extends ConstrComponent, P extends ConstrItem> {
10
- protected readonly components: COMP;
11
- protected readonly modification?: ConstrComponentMod<P> | undefined;
12
- /** Cache for computed properties/ Кэш для вычисляемых свойств */
13
- protected caching: Record<string, ComputedRef<any>>;
14
- /**
15
- * Constructor
16
- * @param components list of connected components/ список подключенных компонентов
17
- * @param modification data for modification/ данные для модификации
18
- */
19
- constructor(components?: COMP, modification?: ConstrComponentMod<P> | undefined);
20
- /**
21
- * Check the presence of the component.
22
- *
23
- * Проверить наличие компонента.
24
- * @param name name of the component/ названия компонента
25
- */
26
- is<K extends keyof COMP>(name: K): name is K;
27
- /**
28
- * Getting the object of the component.
29
- *
30
- * Получение объекта компонента.
31
- * @param name name of the component/ названия компонента
32
- */
33
- get<K extends keyof COMP>(name: K): COMP[K];
34
- /**
35
- * Returns the modified input data of the connected components.
36
- *
37
- * Возвращает модифицированные входные данные у подключенных компонентов.
38
- * @param index the name of this/ название данного
39
- * @param props basic data/ базовые данные
40
- */
41
- getModification<K extends keyof P>(index?: K & string | string, props?: P[K] | Record<string, any>): Record<string, any> | undefined;
42
- /**
43
- * Rendering a component by its name and returning an array with one component.
44
- *
45
- * Рендеринг компонента по его имени и возвращение массива с одним компонентом.
46
- * @param name name of the component/ названия компонента
47
- * @param props property of the component/ свойство компонента
48
- * @param children sub-elements of the component/ под элементы компонента
49
- * @param index the name of the key/ названия ключа
50
- */
51
- 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[];
52
- /**
53
- * Rendering a component by its name.
54
- *
55
- * Рендеринг компонента по его имени.
56
- * @param name name of the component/ названия компонента
57
- * @param props property of the component/ свойство компонента
58
- * @param children sub-elements of the component/ под элементы компонента
59
- * @param index the name of the key/ названия ключа
60
- */
61
- 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;
62
- /**
63
- * Rendering the component by its name.
64
- *
65
- * Рендеринг компонента по его имени.
66
- * @param item an array to which the rendered object will be added/
67
- * массив, по которому будет добавлять объект
68
- * @param name name of the component/ названия компонента
69
- * @param props property of the component/ свойство компонента
70
- * @param children sub-elements of the component/ под элементы компонента
71
- * @param index the name of the key/ названия ключа
72
- */
73
- 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;
74
- /**
75
- * Calculates modified input data for connected components.
76
- *
77
- * Вычисляет модифицированные входные данные для подключенных компонентов.
78
- * @param index the name of this/ название данного
79
- */
80
- protected computeModification<K extends keyof P>(index: K & string | string): Record<string, any>;
81
- }
@@ -1,150 +0,0 @@
1
- import { ComputedRef, ToRefs, VNode, Ref } from 'vue';
2
- import { DesignComponents } from './DesignComponents';
3
- import { ConstrClass, ConstrClasses, ConstrClassObject, ConstrComponent, ConstrEmit, ConstrItem, ConstrOptions, ConstrStyles } from '../../types/constructorTypes';
4
- /**
5
- * Class for collecting all functional components.
6
- *
7
- * Класс для сбора всех функциональных компонентов.
8
- */
9
- 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> {
10
- protected readonly props: Readonly<P>;
11
- protected readonly options?: ConstrOptions<COMP, EMITS, P> | undefined;
12
- protected readonly name: string[];
13
- protected readonly element: Ref<E | undefined, E | undefined>;
14
- protected readonly refs: ToRefs<P>;
15
- protected readonly components: DesignComponents<COMP, P>;
16
- protected readonly emits?: ConstrEmit<EMITS>;
17
- protected readonly classes?: ComputedRef<CLASSES>;
18
- protected classesSub?: ComputedRef<Partial<CLASSES>>;
19
- protected readonly styles?: ComputedRef<ConstrStyles>;
20
- protected stylesSub?: ComputedRef<ConstrStyles>;
21
- protected attrs?: ConstrItem;
22
- protected slots?: SLOTS;
23
- protected dataExpose?: EXPOSE;
24
- /**
25
- * Constructor
26
- * @param name class name/ название класса
27
- * @param props properties/ свойства
28
- * @param options list of additional parameters/ список дополнительных параметров
29
- */
30
- protected constructor(name: string, props: Readonly<P>, options?: ConstrOptions<COMP, EMITS, P> | undefined);
31
- protected init(): this;
32
- /**
33
- * Getting the class name.
34
- *
35
- * Получение названия класса.
36
- */
37
- getName(): string;
38
- /**
39
- * Getting the class name.
40
- *
41
- * Получение названия дизайна.
42
- */
43
- getDesign(): string;
44
- /**
45
- * Getting the class name.
46
- *
47
- * Получение названия класса.
48
- * @param name list of class names by levels/ список названий классов по уровням
49
- */
50
- getSubClass(name: string | string[]): string;
51
- /**
52
- * Getting the class name for the status.
53
- *
54
- * Получение названия класса для статуса.
55
- * @param name list of class names by levels/ список названий классов по уровням
56
- */
57
- getStatusClass(name: string | string[]): string;
58
- /**
59
- * Getting the property name for the style.
60
- *
61
- * Получение названия свойства для стиля.
62
- * @param name list of class names by levels/ список названий классов по уровням
63
- */
64
- getStyle(name: string | string[]): string;
65
- /**
66
- * Getting additional parameters.
67
- *
68
- * Получение дополнительных параметров.
69
- */
70
- getAttrs(): ConstrItem;
71
- /**
72
- * List of available external variables.
73
- *
74
- * Список доступных переменных извне.
75
- */
76
- expose(): EXPOSE;
77
- /**
78
- * The rendering method for the setup method.
79
- *
80
- * Метод рендеринга для метода настройки.
81
- */
82
- render(): () => VNode | (VNode | any)[] | undefined;
83
- /**
84
- * Initialization of all the necessary properties for work
85
- *
86
- * Инициализация всех необходимых свойств для работы.
87
- */
88
- protected abstract initExpose(): EXPOSE;
89
- /**
90
- * Improvement of the obtained list of classes.
91
- *
92
- * Доработка полученного списка классов.
93
- */
94
- protected abstract initClasses(): Partial<CLASSES>;
95
- /**
96
- * Refinement of the received list of styles.
97
- *
98
- * Доработка полученного списка стилей.
99
- */
100
- protected abstract initStyles(): ConstrStyles;
101
- /**
102
- * A method for rendering.
103
- *
104
- * Метод для рендеринга.
105
- */
106
- protected abstract initRender(): VNode | (VNode | any)[] | undefined;
107
- /**
108
- * Initializes the slot.
109
- *
110
- * Инициализирует слот.
111
- * @param name slot name/ название слота
112
- * @param children if you pass this element, the slot will be added to it/
113
- * если передать этот элемент, то слот добавится в него
114
- * @param props property for the slot/ свойство для слота
115
- */
116
- protected initSlot<K extends keyof SLOTS>(name: K, children?: any[], props?: ConstrItem): VNode | undefined;
117
- /**
118
- * Transformation of the class value into an object.
119
- *
120
- * Преобразование значения класса в объект.
121
- * @param classes list of classes for transformation/ список классов для преобразования
122
- */
123
- protected toClass(classes?: ConstrClass): ConstrClassObject;
124
- /**
125
- * Converts the class name to standard for the current component.
126
- *
127
- * Преобразовывает название класса в стандартное для текущего компонента.
128
- * @param classes list of classes/ список классов
129
- */
130
- protected toClassName<T extends ConstrItem>(classes?: ConstrItem): T;
131
- /**
132
- * Getting component names as an array.
133
- *
134
- * Получение названий компонентов в виде массива.
135
- * @param name component name for transformation/ название компонента для преобразования
136
- */
137
- private initName;
138
- /**
139
- * Updating data about the class.
140
- *
141
- * Обновление данных об классе.
142
- */
143
- private updateClasses;
144
- /**
145
- * Refinement of the received list of styles.
146
- *
147
- * Доработка полученного списка стилей.
148
- */
149
- private updateStyles;
150
- }
@@ -1,117 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { Datetime, GeoDate, GeoFirstDay, GeoHours, NumberOrStringOrDate } from '@dxtmisha/functional-basic';
3
- import { RefOrNormal } from '../../types/refTypes';
4
- /**
5
- * A class for working with dates.
6
- *
7
- * Класс для работы с датами.
8
- */
9
- export declare class DatetimeRef {
10
- protected item: Ref<NumberOrStringOrDate>;
11
- protected type: Ref<GeoDate>;
12
- protected code: Ref<string>;
13
- protected date: Ref<Date>;
14
- protected datetime: Datetime;
15
- protected year: ComputedRef<number>;
16
- protected month: ComputedRef<number>;
17
- protected day: ComputedRef<number>;
18
- protected hour: ComputedRef<number>;
19
- protected minute: ComputedRef<number>;
20
- protected second: ComputedRef<number>;
21
- /**
22
- * Constructor
23
- * @param date date for processing. дата для обработки
24
- * @param type type of date format for output. тип формата даты вывода
25
- * @param code country and language code. код страны и языка
26
- */
27
- constructor(date: RefOrNormal<NumberOrStringOrDate>, type?: RefOrNormal<GeoDate>, code?: RefOrNormal<string>);
28
- /**
29
- * Returns the basic data for the date.
30
- *
31
- * Возвращает основные данные для даты.
32
- */
33
- getItem(): RefOrNormal<NumberOrStringOrDate>;
34
- /**
35
- * Returns a Date object.
36
- *
37
- * Возвращает объект Date.
38
- */
39
- getDate(): Ref<Date>;
40
- /**
41
- * Obtaining an object of the basic Datetime class.
42
- *
43
- * Получение объекта основного класса Datetime.
44
- */
45
- getDatetime(): Datetime;
46
- /**
47
- * Returns the format of hours.
48
- *
49
- * Возвращает формат часов.
50
- */
51
- getHoursType(): ComputedRef<GeoHours>;
52
- /**
53
- * Returns the code of the first day of the week.
54
- *
55
- * Возвращает код первого дня недели.
56
- */
57
- getFirstDayCode(): ComputedRef<GeoFirstDay>;
58
- /**
59
- * The method returns the year of the specified date according to local time.
60
- *
61
- * Метод возвращает год указанной даты по местному времени.
62
- */
63
- getYear(): ComputedRef<number>;
64
- /**
65
- * The method returns the month in the specified date according to local time,
66
- * as a zero-based value.
67
- *
68
- * Метод возвращает месяц указанной даты по местному времени, нумерация
69
- * месяцев начинается с нуля для первого месяца в году.
70
- */
71
- getMonth(): ComputedRef<number>;
72
- /**
73
- * The method returns the day of the month for the specified date according to local time.
74
- *
75
- * Метод возвращает день месяца указанной даты по местному времени.
76
- */
77
- getDay(): ComputedRef<number>;
78
- /**
79
- * The method returns the hour for the specified date, according to local time.
80
- *
81
- * Метод возвращает часы указанной даты по местному времени.
82
- */
83
- getHour(): ComputedRef<number>;
84
- /**
85
- * The method returns the minutes in the specified date according to local time.
86
- *
87
- * Метод возвращает минуты указанной даты по местному времени.
88
- */
89
- getMinute(): ComputedRef<number>;
90
- /**
91
- * The method returns the seconds in the specified date according to local time.
92
- *
93
- * Метод возвращает секунды указанной даты по местному времени.
94
- */
95
- getSecond(): ComputedRef<number>;
96
- /**
97
- * Returns the last day of the week.
98
- *
99
- * Возвращает последний день недели.
100
- */
101
- getMaxDay(): ComputedRef<number>;
102
- /**
103
- * Enables language-sensitive date and time formatting.
104
- *
105
- * Конструктором объектов, включающих языка-зависимое форматирование даты и времени.
106
- * @param type type of date format for output. тип формата даты вывода
107
- * @param styleOptions the representation of the month. представление месяца
108
- */
109
- locale(type?: GeoDate, styleOptions?: Intl.DateTimeFormatOptions['month'] | Intl.DateTimeFormatOptions): ComputedRef<string>;
110
- /**
111
- * Output of standard data.
112
- *
113
- * Вывод стандартных данных.
114
- * @param timeZone add time zone. добавить временную зону
115
- */
116
- standard(timeZone?: boolean): ComputedRef<string>;
117
- }
@@ -1,22 +0,0 @@
1
- import { RefOrNormal } from '../../types/refTypes';
2
- import { ElementOrString, ElementOrWindow, EventItem, EventListenerDetail, EventOptions } from '@dxtmisha/functional-basic';
3
- /**
4
- * Class for working with events (Ref).
5
- *
6
- * Класс для работа с события (Ref).
7
- */
8
- export declare class EventRef<E extends ElementOrWindow, O extends Event, D extends Record<string, any> = Record<string, any>> extends EventItem<E, O, D> {
9
- /**
10
- * Classes Constructor
11
- * @param elementSelector element/ элемент
12
- * @param elementSelectorControl control element/ элемент управления
13
- * @param type type/ тип
14
- * @param listener the object that receives a notification (an object that implements the
15
- * Event interface) when an event of the specified type occurs/ объект, который принимает
16
- * уведомление, когда событие указанного типа произошло
17
- * @param options object that specifies characteristics/ объект options
18
- * @param detail an event-dependent value associated with the event/ зависимое от события
19
- * значение, связанное с событием
20
- */
21
- constructor(elementSelector?: RefOrNormal<ElementOrString<E> | undefined>, elementSelectorControl?: RefOrNormal<ElementOrString<HTMLElement>>, type?: string | string[], listener?: EventListenerDetail<O, D>, options?: EventOptions, detail?: D);
22
- }
@@ -1,51 +0,0 @@
1
- import { ComputedRef, Ref } from 'vue';
2
- import { GeoFlag, GeoFlagItem, GeoFlagNational } from '@dxtmisha/functional-basic';
3
- import { RefOrNormal } from '../../types/refTypes';
4
- /**
5
- * Class for working with Flags.
6
- *
7
- * Класс для работы с Флагами.
8
- */
9
- export declare class GeoFlagRef {
10
- protected code: Ref<string>;
11
- protected flag: GeoFlag;
12
- /**
13
- * Constructor
14
- * @param code country and language code/ код страны и языка
15
- */
16
- constructor(code?: RefOrNormal<string>);
17
- /**
18
- * Obtaining a reactive object with the country code.
19
- *
20
- * Получение реактивного объекта с кодом страны.
21
- */
22
- getCode(): Ref<string>;
23
- /**
24
- * Returns information about the country and its flag.
25
- *
26
- * Возвращает информацию о стране и её флаге.
27
- * @param code country code/ код страны
28
- */
29
- get(code?: string): ComputedRef<GeoFlagItem | undefined>;
30
- /**
31
- * Getting a link to the flag.
32
- *
33
- * Получение ссылки на флаг.
34
- * @param code country code/ код страны
35
- */
36
- getFlag(code?: string): ComputedRef<string | undefined>;
37
- /**
38
- * Getting a list of countries by an array of codes.
39
- *
40
- * Получение списка стран по массиву с кодами.
41
- * @param codes country code/ код страны
42
- */
43
- getList(codes?: string[]): ComputedRef<GeoFlagItem[]>;
44
- /**
45
- * Getting a list of countries by an array of codes in national language.
46
- *
47
- * Получение списка стран по массиву с кодами на национальный язык.
48
- * @param codes country code/ код страны.
49
- */
50
- getNational(codes?: string[]): ComputedRef<GeoFlagNational[]>;
51
- }