@mobilon-dev/chotto 0.3.117 → 0.3.118
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/chotto.css +1 -1
- package/dist/components/1_icons/VerifiedBadge.vue.js +31 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +197 -187
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +43 -40
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +1 -1
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +243 -232
- package/dist/index.js +325 -323
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/src/components/1_icons/VerifiedBadge.vue.d.ts +2 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +11 -1
- package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/styles/types.d.ts +35 -3
- package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/ChatInfo.vue.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/stories/ChatInfo.stories.d.ts +2 -0
- package/dist/types/src/components/2_elements/ChatInfo/styles/types.d.ts +20 -0
- package/dist/types/src/components/3_compounds/ChatInput/styles/types.d.ts +32 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/test-utils/withSetup.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -4,7 +4,11 @@ type __VLS_Props = {
|
|
|
4
4
|
showDialogs?: boolean;
|
|
5
5
|
contextMenuTrigger?: 'hover' | 'rightClick';
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare var __VLS_10: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
'name-suffix'?: (props: typeof __VLS_10) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
12
|
select: (args_0: {
|
|
9
13
|
chat: IChatItem;
|
|
10
14
|
dialog: IChatDialog | null;
|
|
@@ -26,4 +30,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
26
30
|
showDialogs: boolean;
|
|
27
31
|
contextMenuTrigger: "hover" | "rightClick";
|
|
28
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
29
34
|
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ChatItemWithLastMessageStatusSend: Story;
|
|
|
12
12
|
export declare const ChatItemWithLastMessageStatusReceived: Story;
|
|
13
13
|
export declare const ChatItemWithLastMessageStatusRead: Story;
|
|
14
14
|
export declare const ChatItemWithAvatar: Story;
|
|
15
|
+
export declare const ChatItemVerified: Story;
|
|
15
16
|
export declare const ChatItemWithUnread: Story;
|
|
16
17
|
export declare const ChatItemWithLongLastMessage: Story;
|
|
17
18
|
export declare const ChatItemSelected: Story;
|
|
@@ -90,10 +90,40 @@ export interface ChatItemThemeCSSVariables {
|
|
|
90
90
|
'--chotto-chatitem-info-container-overflow': string;
|
|
91
91
|
/** Отступ справа от контейнера информации */
|
|
92
92
|
'--chotto-chatitem-info-margin-right': string;
|
|
93
|
-
/**
|
|
93
|
+
/** Отображение строки заголовка чата */
|
|
94
|
+
'--chotto-chatitem-title-row-display': string;
|
|
95
|
+
/** Выравнивание элементов строки заголовка по вертикали */
|
|
96
|
+
'--chotto-chatitem-title-row-align-items': string;
|
|
97
|
+
/** Отступ между именем и бейджем в строке заголовка */
|
|
98
|
+
'--chotto-chatitem-title-row-gap': string;
|
|
99
|
+
/** Минимальная ширина строки заголовка */
|
|
100
|
+
'--chotto-chatitem-title-row-min-width': string;
|
|
101
|
+
/** Максимальная ширина строки заголовка */
|
|
102
|
+
'--chotto-chatitem-title-row-max-width': string;
|
|
103
|
+
/** Отступ сверху строки заголовка */
|
|
104
|
+
'--chotto-chatitem-title-row-margin-top': string;
|
|
105
|
+
/** Отступ снизу строки заголовка */
|
|
106
|
+
'--chotto-chatitem-title-row-margin-bottom': string;
|
|
107
|
+
/** Ширина строки заголовка */
|
|
108
|
+
'--chotto-chatitem-title-row-width': string;
|
|
109
|
+
/** Минимальная ширина tooltip-обёртки имени в строке заголовка */
|
|
110
|
+
'--chotto-chatitem-title-row-tooltip-min-width': string;
|
|
111
|
+
/** Flex tooltip-обёртки имени в строке заголовка */
|
|
112
|
+
'--chotto-chatitem-title-row-tooltip-flex': string;
|
|
113
|
+
/** Ширина tooltip-обёртки имени в строке заголовка */
|
|
114
|
+
'--chotto-chatitem-title-row-tooltip-width': string;
|
|
115
|
+
/** Максимальная ширина tooltip-обёртки имени в строке заголовка */
|
|
116
|
+
'--chotto-chatitem-title-row-tooltip-max-width': string;
|
|
117
|
+
/** Overflow tooltip-обёртки имени в строке заголовка */
|
|
118
|
+
'--chotto-chatitem-title-row-tooltip-overflow': string;
|
|
119
|
+
/** Отступ сверху от имени (legacy / fallback для title-row) */
|
|
94
120
|
'--chotto-chatitem-name-margin-top': string;
|
|
95
|
-
/** Отступ снизу от имени */
|
|
121
|
+
/** Отступ снизу от имени (legacy / fallback для title-row) */
|
|
96
122
|
'--chotto-chatitem-name-margin-bottom': string;
|
|
123
|
+
/** Внутренний отступ сверху у текста имени */
|
|
124
|
+
'--chotto-chatitem-name-inner-margin-top': string;
|
|
125
|
+
/** Внутренний отступ снизу у текста имени */
|
|
126
|
+
'--chotto-chatitem-name-inner-margin-bottom': string;
|
|
97
127
|
/** Переполнение имени */
|
|
98
128
|
'--chotto-chatitem-name-overflow': string;
|
|
99
129
|
/** Обрезка текста имени */
|
|
@@ -110,8 +140,10 @@ export interface ChatItemThemeCSSVariables {
|
|
|
110
140
|
'--chotto-chatitem-name-font-weight': string;
|
|
111
141
|
/** Цвет текста имени */
|
|
112
142
|
'--chotto-chatitem-name-text-color': string;
|
|
113
|
-
/** Максимальная ширина имени */
|
|
143
|
+
/** Максимальная ширина имени (используется title-row) */
|
|
114
144
|
'--chotto-chatitem-name-max-width': string;
|
|
145
|
+
/** Максимальная ширина текста имени внутри title-row */
|
|
146
|
+
'--chotto-chatitem-name-inner-max-width': string;
|
|
115
147
|
/** Переполнение последнего сообщения */
|
|
116
148
|
'--chotto-chatitem-last-message-overflow': string;
|
|
117
149
|
/** Отображение последнего сообщения */
|
|
@@ -49,6 +49,8 @@ export interface IChatItem {
|
|
|
49
49
|
chatId: number;
|
|
50
50
|
name: string;
|
|
51
51
|
avatar?: string;
|
|
52
|
+
/** Показать verified-бейдж рядом с именем (сервисный канал и т.п.) */
|
|
53
|
+
verified?: boolean;
|
|
52
54
|
countUnread: number;
|
|
53
55
|
lastMessage: string | ILastMessageObject;
|
|
54
56
|
'lastActivity.time': string;
|
|
@@ -19,6 +19,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
|
19
19
|
};
|
|
20
20
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
21
|
type __VLS_Slots = {
|
|
22
|
+
'name-suffix'?: ((props: {}) => any) | undefined;
|
|
23
|
+
} & {
|
|
22
24
|
'img-description'?: ((props: {}) => any) | undefined;
|
|
23
25
|
} & {
|
|
24
26
|
actions?: ((props: {}) => any) | undefined;
|
|
@@ -52,6 +52,16 @@ export interface ChatInfoThemeCSSVariables {
|
|
|
52
52
|
'--chotto-chatinfo-info-container-flex-direction': string;
|
|
53
53
|
/** Отображение заголовка */
|
|
54
54
|
'--chotto-chatinfo-title-display': string;
|
|
55
|
+
/** Выравнивание элементов заголовка по вертикали */
|
|
56
|
+
'--chotto-chatinfo-title-align-items': string;
|
|
57
|
+
/** Отступ между элементами заголовка (имя, verified badge) */
|
|
58
|
+
'--chotto-chatinfo-title-gap': string;
|
|
59
|
+
/** Минимальная ширина заголовка */
|
|
60
|
+
'--chotto-chatinfo-title-min-width': string;
|
|
61
|
+
/** Ширина заголовка */
|
|
62
|
+
'--chotto-chatinfo-title-width': string;
|
|
63
|
+
/** Максимальная ширина заголовка */
|
|
64
|
+
'--chotto-chatinfo-title-max-width': string;
|
|
55
65
|
/** Колонка сетки заголовка */
|
|
56
66
|
'--chotto-chatinfo-title-grid-column': string;
|
|
57
67
|
/** Цвет заголовка */
|
|
@@ -62,6 +72,16 @@ export interface ChatInfoThemeCSSVariables {
|
|
|
62
72
|
'--chotto-chatinfo-title-font-weight': string;
|
|
63
73
|
/** Отступы заголовка */
|
|
64
74
|
'--chotto-chatinfo-title-margin': string;
|
|
75
|
+
/** Flex имени в строке заголовка */
|
|
76
|
+
'--chotto-chatinfo-name-flex': string;
|
|
77
|
+
/** Минимальная ширина имени */
|
|
78
|
+
'--chotto-chatinfo-name-min-width': string;
|
|
79
|
+
/** Overflow имени */
|
|
80
|
+
'--chotto-chatinfo-name-overflow': string;
|
|
81
|
+
/** Обрезка длинного имени */
|
|
82
|
+
'--chotto-chatinfo-name-text-overflow': string;
|
|
83
|
+
/** Перенос строки имени */
|
|
84
|
+
'--chotto-chatinfo-name-white-space': string;
|
|
65
85
|
/** Отступы дополнительного заголовка */
|
|
66
86
|
'--chotto-chatinfo-additional-title-margin': string;
|
|
67
87
|
/** Размер шрифта дополнительного заголовка */
|
|
@@ -146,6 +146,38 @@ export interface ChatInputThemeCSSVariables {
|
|
|
146
146
|
'--chotto-chatinput-input-focus-outline': string;
|
|
147
147
|
/** Радиус скругления выделения эмодзи */
|
|
148
148
|
'--chotto-chatinput-selection-border-radius': string;
|
|
149
|
+
/** Display контейнера с пояснением при disabled */
|
|
150
|
+
'--chotto-chatinput-disabled-notice-display': string;
|
|
151
|
+
/** Выравнивание элементов контейнера пояснения по вертикали */
|
|
152
|
+
'--chotto-chatinput-disabled-notice-align-items': string;
|
|
153
|
+
/** Выравнивание содержимого контейнера пояснения по горизонтали */
|
|
154
|
+
'--chotto-chatinput-disabled-notice-justify-content': string;
|
|
155
|
+
/** Колонки сетки контейнера пояснения */
|
|
156
|
+
'--chotto-chatinput-disabled-notice-grid-template-columns': string;
|
|
157
|
+
/** Строки сетки контейнера пояснения */
|
|
158
|
+
'--chotto-chatinput-disabled-notice-grid-template-rows': string;
|
|
159
|
+
/** Отступы контейнера с пояснением при disabled */
|
|
160
|
+
'--chotto-chatinput-disabled-notice-padding': string;
|
|
161
|
+
/** Строка сетки текста пояснения в режиме notice */
|
|
162
|
+
'--chotto-chatinput-disabled-notice-placeholder-grid-row': string;
|
|
163
|
+
/** Колонка сетки текста пояснения в режиме notice */
|
|
164
|
+
'--chotto-chatinput-disabled-notice-placeholder-grid-column': string;
|
|
165
|
+
/** Выравнивание текста пояснения относительно себя в режиме notice */
|
|
166
|
+
'--chotto-chatinput-disabled-notice-placeholder-align-self': string;
|
|
167
|
+
/** Отступы текста пояснения в режиме notice */
|
|
168
|
+
'--chotto-chatinput-disabled-notice-placeholder-margin': string;
|
|
169
|
+
/** Граница текста пояснения в режиме notice */
|
|
170
|
+
'--chotto-chatinput-disabled-notice-placeholder-border': string;
|
|
171
|
+
/** Фон текста пояснения в режиме notice */
|
|
172
|
+
'--chotto-chatinput-disabled-notice-placeholder-bg': string;
|
|
173
|
+
/** Внутренние отступы текста пояснения в режиме notice */
|
|
174
|
+
'--chotto-chatinput-disabled-notice-placeholder-padding': string;
|
|
175
|
+
/** Минимальная высота текста пояснения в режиме notice */
|
|
176
|
+
'--chotto-chatinput-disabled-notice-placeholder-min-height': string;
|
|
177
|
+
/** Радиус скругления текста пояснения в режиме notice */
|
|
178
|
+
'--chotto-chatinput-disabled-notice-placeholder-border-radius': string;
|
|
179
|
+
/** Ширина текста пояснения в режиме notice */
|
|
180
|
+
'--chotto-chatinput-disabled-notice-placeholder-width': string;
|
|
149
181
|
/** Выравнивание текста отключенного плейсхолдера */
|
|
150
182
|
'--chotto-chatinput-disabled-placeholder-text-align': string;
|
|
151
183
|
/** Выбор пользователем отключенного плейсхолдера */
|
|
@@ -6,6 +6,7 @@ export { default as LinkPreview } from './1_atoms/LinkPreview/LinkPreview.vue';
|
|
|
6
6
|
export { default as Tooltip } from './1_atoms/Tooltip/Tooltip.vue';
|
|
7
7
|
export { default as AvatarIcon } from './1_icons/AvatarIcon.vue';
|
|
8
8
|
export { default as CheckIcon } from './1_icons/CheckIcon.vue';
|
|
9
|
+
export { default as VerifiedBadge } from './1_icons/VerifiedBadge.vue';
|
|
9
10
|
export { default as CloseButtonIcon } from './1_icons/CloseButtonIcon.vue';
|
|
10
11
|
export { default as ContactCRMIcon } from './1_icons/ContactCRMIcon.vue';
|
|
11
12
|
export { default as MenuIcon } from './1_icons/MenuIcon.vue';
|