@pksep/yui 0.1.318 → 0.1.320
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/README.md +83 -83
- package/dist/components/ChatMessage/ChatFileDetails.vue.d.ts +36 -0
- package/dist/components/ChatMessage/ChatFileIcon.vue.d.ts +51 -0
- package/dist/components/ChatMessage/ChatMessageMeta.vue.d.ts +13 -0
- package/dist/components/ChatMessage/ChatMessageSurface.vue.d.ts +24 -0
- package/dist/components/ChatMessage/interfaces.d.ts +15 -0
- package/dist/components/ChatMessage/useSmoothedProgress.d.ts +3 -0
- package/dist/components/ContentEditor/ContentEditor.vue.d.ts +19 -0
- package/dist/components/ContentEditor/emoji-picker-config.d.ts +2 -0
- package/dist/components/ContentEditor/interfaces/content-editor.d.ts +6 -0
- package/dist/components/Icon/enum/enum.d.ts +3 -0
- package/dist/components/Icon/icons.d.ts +3 -0
- package/dist/components/Input/interface/interface.d.ts +3 -0
- package/dist/components/UserMultiSelect/UserMultiSelect.vue.d.ts +78 -0
- package/dist/components/UserMultiSelect/UserOptionAvatar.vue.d.ts +33 -0
- package/dist/components/UserMultiSelect/types.d.ts +23 -0
- package/dist/components/index.d.ts +8 -0
- package/dist/sep-yui.mjs +55299 -54800
- package/dist/sep-yui.umd.cjs +316 -316
- package/dist/style.css +1 -1
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
# SEP-YUI
|
|
2
|
-
|
|
3
|
-
**SEP-YUI** — библиотека UI-компонентов для Vue, созданная для решения задачи удобного переиспользования интерфейсных элементов между проектами.
|
|
4
|
-
Она позволяет использовать единый набор UI-решений, снижает связанность компонентов и упрощает поддержку.
|
|
5
|
-
|
|
6
|
-
## Основные преимущества
|
|
7
|
-
|
|
8
|
-
- Лёгкая интеграция в существующие проекты
|
|
9
|
-
- Низкий порог входа
|
|
10
|
-
- Гибкость и кастомизация
|
|
11
|
-
- Регулярные обновления и техническая поддержка
|
|
12
|
-
- Возможность комбинирования компонентов внутри проекта
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## Установка и подключение
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
bun add @pksep/yui
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
#### 1. Для использования библиотеки в проекте, необходимо импортировать компоненты библиотеки в главный файл проекта main.ts таким образом:
|
|
23
|
-
|
|
24
|
-
```ts
|
|
25
|
-
main.ts;
|
|
26
|
-
import Ylibrary from '@pksep/yui';
|
|
27
|
-
app.use(Ylibrary);
|
|
28
|
-
app.mount('#app');
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
#### 1.1 Для выборочного импорта компонентов, можно использовать подключение такого вида.
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
main.ts;
|
|
35
|
-
import { Toggle } from '@pksep/yui';
|
|
36
|
-
app.component('Toggle', Toggle);
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
#### 2. Стили импортируются через путь "@pksep/yui/styles" также в файле main.ts
|
|
40
|
-
|
|
41
|
-
```ts
|
|
42
|
-
main.ts;
|
|
43
|
-
import '@pksep/yui/styles';
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Стили библиотеки подключаются отдельно от JavaScript и уже содержат используемые
|
|
47
|
-
шрифты Inter Variable и Source Sans Pro. Если проект переопределяет токены или
|
|
48
|
-
стили компонентов, импортируйте собственный stylesheet после `@pksep/yui/styles`.
|
|
49
|
-
|
|
50
|
-
#### 3. Далее просто пишем название компонента внутри проекта и используем как при обычной разработке на Vue.
|
|
51
|
-
|
|
52
|
-
```vue
|
|
53
|
-
App.vue
|
|
54
|
-
<template>
|
|
55
|
-
<Toggle :disabled="true" :backgroundColor="'red'" />
|
|
56
|
-
</template>
|
|
57
|
-
<script setup lang="ts"></script>
|
|
58
|
-
<styles scoped></styles>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Примеры и Storybook
|
|
65
|
-
|
|
66
|
-
Документация и примеры компонентов:
|
|
67
|
-
|
|
68
|
-
➡️ https://pksep.github.io/sep_yui
|
|
69
|
-
|
|
70
|
-
---
|
|
71
|
-
|
|
72
|
-
## Разработка
|
|
73
|
-
|
|
74
|
-
### Публикация пакетов
|
|
75
|
-
|
|
76
|
-
Обязательно через команду, так как генерятся changelog. Для этого используем:
|
|
77
|
-
[changeloggen](https://unjs.io/packages/changelogen/)
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
bun run publish:lib
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Токен можно для публикации можно получить у менеджера.
|
|
1
|
+
# SEP-YUI
|
|
2
|
+
|
|
3
|
+
**SEP-YUI** — библиотека UI-компонентов для Vue, созданная для решения задачи удобного переиспользования интерфейсных элементов между проектами.
|
|
4
|
+
Она позволяет использовать единый набор UI-решений, снижает связанность компонентов и упрощает поддержку.
|
|
5
|
+
|
|
6
|
+
## Основные преимущества
|
|
7
|
+
|
|
8
|
+
- Лёгкая интеграция в существующие проекты
|
|
9
|
+
- Низкий порог входа
|
|
10
|
+
- Гибкость и кастомизация
|
|
11
|
+
- Регулярные обновления и техническая поддержка
|
|
12
|
+
- Возможность комбинирования компонентов внутри проекта
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Установка и подключение
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
bun add @pksep/yui
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
#### 1. Для использования библиотеки в проекте, необходимо импортировать компоненты библиотеки в главный файл проекта main.ts таким образом:
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
main.ts;
|
|
26
|
+
import Ylibrary from '@pksep/yui';
|
|
27
|
+
app.use(Ylibrary);
|
|
28
|
+
app.mount('#app');
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
#### 1.1 Для выборочного импорта компонентов, можно использовать подключение такого вида.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
main.ts;
|
|
35
|
+
import { Toggle } from '@pksep/yui';
|
|
36
|
+
app.component('Toggle', Toggle);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### 2. Стили импортируются через путь "@pksep/yui/styles" также в файле main.ts
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
main.ts;
|
|
43
|
+
import '@pksep/yui/styles';
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Стили библиотеки подключаются отдельно от JavaScript и уже содержат используемые
|
|
47
|
+
шрифты Inter Variable и Source Sans Pro. Если проект переопределяет токены или
|
|
48
|
+
стили компонентов, импортируйте собственный stylesheet после `@pksep/yui/styles`.
|
|
49
|
+
|
|
50
|
+
#### 3. Далее просто пишем название компонента внутри проекта и используем как при обычной разработке на Vue.
|
|
51
|
+
|
|
52
|
+
```vue
|
|
53
|
+
App.vue
|
|
54
|
+
<template>
|
|
55
|
+
<Toggle :disabled="true" :backgroundColor="'red'" />
|
|
56
|
+
</template>
|
|
57
|
+
<script setup lang="ts"></script>
|
|
58
|
+
<styles scoped></styles>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Примеры и Storybook
|
|
65
|
+
|
|
66
|
+
Документация и примеры компонентов:
|
|
67
|
+
|
|
68
|
+
➡️ https://pksep.github.io/sep_yui
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Разработка
|
|
73
|
+
|
|
74
|
+
### Публикация пакетов
|
|
75
|
+
|
|
76
|
+
Обязательно через команду, так как генерятся changelog. Для этого используем:
|
|
77
|
+
[changeloggen](https://unjs.io/packages/changelogen/)
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
bun run publish:lib
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Токен можно для публикации можно получить у менеджера.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IChatFileDetailsProps } from './interfaces';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
size?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IChatFileDetailsProps>, {
|
|
7
|
+
dataTestid: string;
|
|
8
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IChatFileDetailsProps>, {
|
|
9
|
+
dataTestid: string;
|
|
10
|
+
}>>> & Readonly<{}>, {
|
|
11
|
+
dataTestid: string;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
isMeSender: boolean;
|
|
3
|
+
dataTestid?: string;
|
|
4
|
+
isLoaded?: boolean;
|
|
5
|
+
percent?: number | null;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
icon?: "file" | "download";
|
|
8
|
+
}>, {
|
|
9
|
+
dataTestid: () => "FileIcon";
|
|
10
|
+
isLoaded: boolean;
|
|
11
|
+
percent: null;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
+
isMeSender: boolean;
|
|
16
|
+
dataTestid?: string;
|
|
17
|
+
isLoaded?: boolean;
|
|
18
|
+
percent?: number | null;
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
icon?: "file" | "download";
|
|
21
|
+
}>, {
|
|
22
|
+
dataTestid: () => "FileIcon";
|
|
23
|
+
isLoaded: boolean;
|
|
24
|
+
percent: null;
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
}>>> & Readonly<{}>, {
|
|
28
|
+
dataTestid: string;
|
|
29
|
+
icon: "file" | "download";
|
|
30
|
+
isLoaded: boolean;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
percent: number | null;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IChatMessageMetaProps } from './interfaces';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IChatMessageMetaProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IChatMessageMetaProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
6
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
7
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
8
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
9
|
+
} : {
|
|
10
|
+
type: import('vue').PropType<T[K]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IChatMessageSurfaceProps } from './interfaces';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IChatMessageSurfaceProps>>, {
|
|
7
|
+
element: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
8
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IChatMessageSurfaceProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IChatMessageSurfaceProps {
|
|
2
|
+
outgoing?: boolean;
|
|
3
|
+
unstyled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IChatMessageMetaProps {
|
|
6
|
+
time: string;
|
|
7
|
+
datetime?: string;
|
|
8
|
+
outgoing?: boolean;
|
|
9
|
+
isRead?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IChatFileDetailsProps {
|
|
12
|
+
name: string;
|
|
13
|
+
size?: string;
|
|
14
|
+
dataTestid?: string;
|
|
15
|
+
}
|
|
@@ -3,6 +3,15 @@ import { IContentEditorSlots } from './interfaces/content-editor';
|
|
|
3
3
|
declare function __VLS_template(): Readonly<IContentEditorSlots> & IContentEditorSlots;
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
modelValue: import('vue').PropType<string>;
|
|
6
|
+
layout: {
|
|
7
|
+
type: import('vue').PropType<"auto" | "desktop">;
|
|
8
|
+
};
|
|
9
|
+
suspended: {
|
|
10
|
+
type: import('vue').PropType<boolean>;
|
|
11
|
+
};
|
|
12
|
+
attachmentMode: {
|
|
13
|
+
type: import('vue').PropType<"preview" | "direct">;
|
|
14
|
+
};
|
|
6
15
|
activeAttachFile: {
|
|
7
16
|
type: import('vue').PropType<boolean>;
|
|
8
17
|
};
|
|
@@ -112,6 +121,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
112
121
|
editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor | undefined, import('@tiptap/vue-3').Editor | undefined>;
|
|
113
122
|
emitAttachFiles: (files: FileList | File[], onlyMedia?: boolean) => Promise<void>;
|
|
114
123
|
queueAttachFiles: (files: FileList | File[], onlyMedia: boolean) => Promise<void>;
|
|
124
|
+
preloadEmojiPicker: () => boolean;
|
|
115
125
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
116
126
|
"unmount-send": (params: import('..').IContentEditorSendPayload) => void;
|
|
117
127
|
"unmount-attach-file": (files: FileList, onlyMedia: boolean) => void;
|
|
@@ -119,6 +129,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
119
129
|
"slash-change": (search: string | null) => void;
|
|
120
130
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
121
131
|
modelValue: import('vue').PropType<string>;
|
|
132
|
+
layout: {
|
|
133
|
+
type: import('vue').PropType<"auto" | "desktop">;
|
|
134
|
+
};
|
|
135
|
+
suspended: {
|
|
136
|
+
type: import('vue').PropType<boolean>;
|
|
137
|
+
};
|
|
138
|
+
attachmentMode: {
|
|
139
|
+
type: import('vue').PropType<"preview" | "direct">;
|
|
140
|
+
};
|
|
122
141
|
activeAttachFile: {
|
|
123
142
|
type: import('vue').PropType<boolean>;
|
|
124
143
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const excludedEmojiUnicodes: Set<string>;
|
|
1
2
|
export type EmojiPickerSelection = {
|
|
2
3
|
i: string;
|
|
3
4
|
n?: string[];
|
|
@@ -8,6 +9,7 @@ export type RecentEmoji = {
|
|
|
8
9
|
n: string[];
|
|
9
10
|
u: string;
|
|
10
11
|
};
|
|
12
|
+
export declare const isEmojiPickerSelectionAllowed: (emoji: Pick<EmojiPickerSelection, "u">) => boolean;
|
|
11
13
|
export declare const emojiAdditionalGroups: Record<'recent', RecentEmoji[]>;
|
|
12
14
|
export declare const rememberEmojiSelection: (emoji: EmojiPickerSelection) => void;
|
|
13
15
|
export declare const emojiGroupIcons: {
|
|
@@ -17,6 +17,12 @@ export interface IContentEditorSlots {
|
|
|
17
17
|
'desktop-right-action'?: () => unknown;
|
|
18
18
|
}
|
|
19
19
|
export interface IContentEditorProps {
|
|
20
|
+
/** Keeps the full toolbar in narrow embedded surfaces. Default: responsive. */
|
|
21
|
+
layout?: 'auto' | 'desktop';
|
|
22
|
+
/** Hides attachment dialogs while an embedding surface is collapsed. Keeps files. */
|
|
23
|
+
suspended?: boolean;
|
|
24
|
+
/** Direct mode emits selected files without the attachment preview dialog. Default: preview. */
|
|
25
|
+
attachmentMode?: 'preview' | 'direct';
|
|
20
26
|
activeAttachFile?: boolean;
|
|
21
27
|
activeSelectUser?: boolean;
|
|
22
28
|
activeSend?: boolean;
|
|
@@ -142,6 +142,9 @@ export declare enum IconNameEnum {
|
|
|
142
142
|
link = "link",
|
|
143
143
|
blockquote = "blockquote",
|
|
144
144
|
chat = "chat",
|
|
145
|
+
headset = "headset",
|
|
146
|
+
socialVk = "social-vk",
|
|
147
|
+
socialTelegram = "social-telegram",
|
|
145
148
|
calls = "calls",
|
|
146
149
|
boxArrowDown = "boxArrowDown",
|
|
147
150
|
boxArrowUp = "boxArrowUp",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { IVectorIcon } from './interface/interface';
|
|
2
2
|
|
|
3
|
+
export declare const headset: IVectorIcon;
|
|
4
|
+
export declare const socialVk: IVectorIcon;
|
|
5
|
+
export declare const socialTelegram: IVectorIcon;
|
|
3
6
|
export declare const alertTriangle: IVectorIcon;
|
|
4
7
|
export declare const help: IVectorIcon;
|
|
5
8
|
export declare const notification: IVectorIcon;
|
|
@@ -3,6 +3,9 @@ import { IDataTestIdProp } from '../../../common/dataTestidProps';
|
|
|
3
3
|
|
|
4
4
|
export interface IInputProps extends IDataTestIdProp {
|
|
5
5
|
placeholder?: string;
|
|
6
|
+
inputId?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
ariaDescribedby?: string;
|
|
6
9
|
inputMessage?: string;
|
|
7
10
|
type?: TextFieldEnum;
|
|
8
11
|
required?: boolean;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IUserSelectOption } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
required: true;
|
|
6
|
+
type: import('vue').PropType<string[]>;
|
|
7
|
+
};
|
|
8
|
+
dataTestid: {
|
|
9
|
+
type: import('vue').PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
title: {
|
|
13
|
+
type: import('vue').PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
options: {
|
|
17
|
+
type: import('vue').PropType<IUserSelectOption[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
variant: {
|
|
21
|
+
type: import('vue').PropType<"default" | "task-card">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
defaultOption: {
|
|
25
|
+
type: import('vue').PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
isPosibleToClear: {
|
|
29
|
+
type: import('vue').PropType<boolean>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
fixedOptions: {
|
|
33
|
+
type: import('vue').PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
modelValue: {
|
|
38
|
+
required: true;
|
|
39
|
+
type: import('vue').PropType<string[]>;
|
|
40
|
+
};
|
|
41
|
+
dataTestid: {
|
|
42
|
+
type: import('vue').PropType<string>;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
title: {
|
|
46
|
+
type: import('vue').PropType<string>;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
options: {
|
|
50
|
+
type: import('vue').PropType<IUserSelectOption[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
variant: {
|
|
54
|
+
type: import('vue').PropType<"default" | "task-card">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
defaultOption: {
|
|
58
|
+
type: import('vue').PropType<string>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
isPosibleToClear: {
|
|
62
|
+
type: import('vue').PropType<boolean>;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
fixedOptions: {
|
|
66
|
+
type: import('vue').PropType<boolean>;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{}>, {
|
|
70
|
+
dataTestid: string;
|
|
71
|
+
title: string;
|
|
72
|
+
options: IUserSelectOption[];
|
|
73
|
+
variant: "default" | "task-card";
|
|
74
|
+
defaultOption: string;
|
|
75
|
+
isPosibleToClear: boolean;
|
|
76
|
+
fixedOptions: boolean;
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IUserOptionAvatarProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IUserOptionAvatarProps>, {
|
|
4
|
+
image: null;
|
|
5
|
+
size: number;
|
|
6
|
+
borderRadius: string;
|
|
7
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IUserOptionAvatarProps>, {
|
|
8
|
+
image: null;
|
|
9
|
+
size: number;
|
|
10
|
+
borderRadius: string;
|
|
11
|
+
}>>> & Readonly<{}>, {
|
|
12
|
+
image: string | null;
|
|
13
|
+
size: number;
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
type __VLS_Prettify<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface IUserSelectOption {
|
|
2
|
+
key: string;
|
|
3
|
+
value: string;
|
|
4
|
+
hint: string;
|
|
5
|
+
fullName: string;
|
|
6
|
+
serviceNumber: string;
|
|
7
|
+
image: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface IUserOptionAvatarProps {
|
|
10
|
+
image?: string | null;
|
|
11
|
+
name: string;
|
|
12
|
+
size?: number;
|
|
13
|
+
borderRadius?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IUserMultiSelectProps {
|
|
16
|
+
dataTestid?: string;
|
|
17
|
+
defaultOption?: string;
|
|
18
|
+
options?: IUserSelectOption[];
|
|
19
|
+
title?: string;
|
|
20
|
+
variant?: 'default' | 'task-card';
|
|
21
|
+
isPosibleToClear?: boolean;
|
|
22
|
+
fixedOptions?: boolean;
|
|
23
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
import { default as Badges } from './Badges/Badges.vue';
|
|
3
|
+
import { default as UserMultiSelect } from './UserMultiSelect/UserMultiSelect.vue';
|
|
3
4
|
import { default as BreadCrumbs } from './BreadCrumbs/BreadCrumbs.vue';
|
|
4
5
|
import { default as Button } from './Button/Button.vue';
|
|
5
6
|
import { default as Switch } from './Switch/Switch.vue';
|
|
@@ -77,9 +78,16 @@ import { default as PdfPreview } from './Preview/PdfPreview.vue';
|
|
|
77
78
|
import { default as ImagePreview } from './Preview/ImagePreview.vue';
|
|
78
79
|
import { default as VideoPreview } from './Preview/VideoPreview.vue';
|
|
79
80
|
import { default as Skeleton } from './Skeleton/Skeleton.vue';
|
|
81
|
+
import { default as ChatMessageSurface } from './ChatMessage/ChatMessageSurface.vue';
|
|
82
|
+
import { default as ChatMessageMeta } from './ChatMessage/ChatMessageMeta.vue';
|
|
83
|
+
import { default as ChatFileDetails } from './ChatMessage/ChatFileDetails.vue';
|
|
84
|
+
import { default as ChatFileIcon } from './ChatMessage/ChatFileIcon.vue';
|
|
80
85
|
|
|
81
86
|
declare const _default: {
|
|
82
87
|
install: (app: App) => void;
|
|
83
88
|
};
|
|
84
89
|
export default _default;
|
|
85
90
|
export { Accordion, Badges, BreadCrumbs, Button, Dialog, Card, Calendar, DragAndDrop, Switch, SelectList, Dropdown, Textarea, Filter, Icon, Input, Combobox, InputNumber, Search, PushNotification, Picture, Scroll, Modal, Slider, Checkbox, Toggle, UserMenu, CopyIcon, Loader, FilterTag, CircularProgress, Popover, Table, TableSimple, TableNew, TableRow, TableRowNew, TableTd, TableTh, SectionTableRow, HeadTableRow, HeadTableRowNew, ScrollWrapper, Radio, Tooltip, BaseFilter, Range, Avatar, Tabs, ContentEditor, EmojiPickerPanel, ContentEditorFormattingToolbar, ContentEditorSlashMenu, ModalCroppedAvatar, TimePicker, type IDialogProps, type IRangeForDatePicker, type OptionsObject, type IDataTestIdProp, type IContentEditorSlashMenuItem, type IContentEditorProps, type IContentEditorSendPayload, type IContentEditorSlots, CheckboxSizeEnum, CheckboxCircularEnum, TextFieldEnum, IconNameEnum, SizesEnum, ButtonTypeEnum, ColorsEnum, ImageExtensionsEnum, BadgesTypeEnum, VideoExtensionsEnum, InputTypeEnum, TextareaTypeEnum, MenuTypeEnum, MessageTypeEnum, getLastTime, getFirstTime, vuePluginRemoveTestid, SliderModal, PdfPreview, ImagePreview, VideoPreview, Skeleton };
|
|
91
|
+
export { ChatMessageSurface, ChatMessageMeta, ChatFileDetails, ChatFileIcon };
|
|
92
|
+
export { UserMultiSelect };
|
|
93
|
+
export type { IUserSelectOption, IUserMultiSelectProps } from './UserMultiSelect/types';
|