@voicenter-team/voicenter-ui-plus 3.4.4 → 3.4.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 (151) hide show
  1. package/README.md +502 -502
  2. package/library/assets/assets/sass/main.css +1 -1
  3. package/library/assets/components/VcAvatar/VcAvatar.css +1 -0
  4. package/library/assets/components/VcBadgeTag/VcBadgeTag.css +1 -0
  5. package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -0
  6. package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -0
  7. package/library/assets/components/VcFileUploader/VcFileItem.css +1 -0
  8. package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
  9. package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
  10. package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
  11. package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
  12. package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
  13. package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
  14. package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
  15. package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
  16. package/library/assets/components/VcLoading/VcLoading.css +1 -1
  17. package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
  18. package/library/assets/components/VcMessage/VcMessage.css +1 -0
  19. package/library/assets/components/VcMessage/content/VcMessageAudioBlock.css +1 -0
  20. package/library/assets/components/VcMessage/content/VcMessageFileBlock.css +1 -0
  21. package/library/assets/components/VcMessage/content/VcMessageImageBlock.css +1 -0
  22. package/library/assets/components/VcMessage/content/VcMessageTextBlock.css +1 -0
  23. package/library/assets/components/VcMessage/reactions/VcMessageEmojiPicker.css +1 -0
  24. package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -0
  25. package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -0
  26. package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
  27. package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
  28. package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
  29. package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
  30. package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
  31. package/library/components/VcAvatar/VcAvatar.vue.mjs +62 -0
  32. package/library/components/VcAvatar/VcAvatar.vue3.mjs +5 -0
  33. package/library/components/VcBadgeTag/VcBadgeTag.vue.mjs +31 -0
  34. package/library/components/VcBadgeTag/VcBadgeTag.vue3.mjs +5 -0
  35. package/library/components/VcChatComposer/VcChatComposer.vue.mjs +554 -0
  36. package/library/components/VcChatComposer/VcChatComposer.vue3.mjs +5 -0
  37. package/library/components/VcChatComposer/richText.mjs +320 -0
  38. package/library/components/VcEmojiPicker/VcEmojiPicker.vue.mjs +387 -0
  39. package/library/components/VcEmojiPicker/VcEmojiPicker.vue3.mjs +5 -0
  40. package/library/components/VcEmojiPicker/emojiData.mjs +26 -0
  41. package/library/components/VcFileUploader/VcFileItem.vue.mjs +146 -0
  42. package/library/components/VcFileUploader/VcFileItem.vue3.mjs +5 -0
  43. package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +24 -147
  44. package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
  45. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
  46. package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
  47. package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
  48. package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
  49. package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
  50. package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
  51. package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
  52. package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
  53. package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
  54. package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
  55. package/library/components/VcMessage/VcMessage.vue.mjs +212 -0
  56. package/library/components/VcMessage/VcMessage.vue3.mjs +5 -0
  57. package/library/components/VcMessage/content/VcMessageAudioBlock.vue.mjs +53 -0
  58. package/library/components/VcMessage/content/VcMessageAudioBlock.vue3.mjs +5 -0
  59. package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +80 -0
  60. package/library/components/VcMessage/content/VcMessageFileBlock.vue3.mjs +5 -0
  61. package/library/components/VcMessage/content/VcMessageImageBlock.vue.mjs +57 -0
  62. package/library/components/VcMessage/content/VcMessageImageBlock.vue3.mjs +5 -0
  63. package/library/components/VcMessage/content/VcMessageTextBlock.vue.mjs +19 -0
  64. package/library/components/VcMessage/content/VcMessageTextBlock.vue3.mjs +5 -0
  65. package/library/components/VcMessage/content/messageContentComponents.mjs +17 -0
  66. package/library/components/VcMessage/reactions/VcMessageEmojiPicker.vue.mjs +167 -0
  67. package/library/components/VcMessage/reactions/VcMessageEmojiPicker.vue3.mjs +5 -0
  68. package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +82 -0
  69. package/library/components/VcMessage/reactions/VcMessageReactionBar.vue3.mjs +5 -0
  70. package/library/components/VcMessage/reactions/emojis.mjs +4 -0
  71. package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +243 -0
  72. package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue3.mjs +5 -0
  73. package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
  74. package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
  75. package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
  76. package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
  77. package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
  78. package/library/components/VcSoundplayer/useSoundPlayerProvideInject.mjs +1 -1
  79. package/library/composables/useAudioRecorder.mjs +120 -0
  80. package/library/enum/fileTypes.mjs +51 -0
  81. package/library/index.mjs +237 -216
  82. package/library/index.mjs.br +0 -0
  83. package/library/index.mjs.gz +0 -0
  84. package/library/localization/index.mjs.gz +0 -0
  85. package/library/localization/locales/en.json.mjs +24 -1
  86. package/library/plugin-components.gen.mjs +171 -150
  87. package/library/plugin.mjs +235 -214
  88. package/library/plugin.mjs.br +0 -0
  89. package/library/plugin.mjs.gz +0 -0
  90. package/library/style.css +42 -16
  91. package/library/style.css.br +0 -0
  92. package/library/style.css.gz +0 -0
  93. package/library/theme/index.mjs.gz +0 -0
  94. package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +47 -0
  95. package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +42 -0
  96. package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +81 -0
  97. package/library/types/components/VcChatComposer/richText.d.ts +12 -0
  98. package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +1 -1
  99. package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +63 -0
  100. package/library/types/components/VcEmojiPicker/emojiData.d.ts +16 -0
  101. package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +1 -1
  102. package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +2 -2
  103. package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +85 -0
  104. package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +3 -3
  105. package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +17 -18
  106. package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +3 -3
  107. package/library/types/components/VcForm/VcForm.vue.d.ts +1 -1
  108. package/library/types/components/VcMessage/VcMessage.vue.d.ts +66 -0
  109. package/library/types/components/VcMessage/content/VcMessageAudioBlock.vue.d.ts +24 -0
  110. package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +24 -0
  111. package/library/types/components/VcMessage/content/VcMessageImageBlock.vue.d.ts +28 -0
  112. package/library/types/components/VcMessage/content/VcMessageTextBlock.vue.d.ts +24 -0
  113. package/library/types/components/VcMessage/content/messageContentComponents.d.ts +3 -0
  114. package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +68 -0
  115. package/library/types/components/VcMessage/reactions/VcMessageReactionBar.vue.d.ts +28 -0
  116. package/library/types/components/VcMessage/reactions/emojis.d.ts +1 -0
  117. package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +71 -0
  118. package/library/types/components/VcProgress/VcProgress.vue.d.ts +1 -1
  119. package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +3 -3
  120. package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +6 -6
  121. package/library/types/components/VcSelect/VcSelect.vue.d.ts +6 -6
  122. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +6 -6
  123. package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +3 -3
  124. package/library/types/components/VcTree/VcTree.vue.d.ts +6 -6
  125. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +3 -3
  126. package/library/types/components/VcWizard/VcSummaryStep.vue.d.ts +1 -1
  127. package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +1 -1
  128. package/library/types/components/exports.d.ts +15 -1
  129. package/library/types/components.gen.d.ts +7 -0
  130. package/library/types/composables/useAudioRecorder.d.ts +18 -0
  131. package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +3 -3
  132. package/library/types/enum/fileTypes.d.ts +3 -0
  133. package/library/types/localization/locales/en.json.d.ts +187 -164
  134. package/library/types/theme/themes.json.d.ts +227 -227
  135. package/library/types/types/VcAvatar.types.d.ts +35 -0
  136. package/library/types/types/VcBadgeTag.types.d.ts +19 -0
  137. package/library/types/types/VcChatComposer.types.d.ts +112 -0
  138. package/library/types/types/VcEmojiPicker.types.d.ts +20 -0
  139. package/library/types/types/VcFileUploader.types.d.ts +4 -0
  140. package/library/types/types/VcMessage.types.d.ts +131 -0
  141. package/library/types/types/VcMessagesWrapper.types.d.ts +61 -0
  142. package/library/types/types/index.d.ts +6 -0
  143. package/library/utils/jsonSchema/index.mjs.gz +0 -0
  144. package/package.json +215 -185
  145. package/src/theme/index.ts +101 -101
  146. package/src/theme/tailwindScheme.js +37 -37
  147. package/src/theme/theme.types.ts +31 -31
  148. package/src/theme/themeMerge.ts +40 -40
  149. package/src/theme/themes.json +227 -227
  150. package/tailwind.config.d.ts +5 -5
  151. package/tailwind.config.js +192 -192
Binary file
Binary file
Binary file
@@ -0,0 +1,47 @@
1
+ import type { VcAvatarProps } from '../../types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcAvatarProps>, {
3
+ src: undefined;
4
+ initials: string;
5
+ alt: undefined;
6
+ size: string;
7
+ color: string;
8
+ textColor: string;
9
+ statusColor: undefined;
10
+ statusBorderColor: string;
11
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcAvatarProps>, {
12
+ src: undefined;
13
+ initials: string;
14
+ alt: undefined;
15
+ size: string;
16
+ color: string;
17
+ textColor: string;
18
+ statusColor: undefined;
19
+ statusBorderColor: string;
20
+ }>>> & Readonly<{}>, {
21
+ size: import('../../types').VcAvatarSize;
22
+ color: string;
23
+ src: string;
24
+ initials: string;
25
+ alt: string;
26
+ textColor: string;
27
+ statusColor: string;
28
+ statusBorderColor: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
@@ -0,0 +1,42 @@
1
+ import type { VcBadgeTagProps } from '../../types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcBadgeTagProps>, {
3
+ value: undefined;
4
+ size: string;
5
+ color: string;
6
+ textColor: string;
7
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcBadgeTagProps>, {
8
+ value: undefined;
9
+ size: string;
10
+ color: string;
11
+ textColor: string;
12
+ }>>> & Readonly<{}>, {
13
+ size: import('../../types').VcBadgeTagSize;
14
+ color: string;
15
+ value: string | number;
16
+ textColor: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -0,0 +1,81 @@
1
+ import type { VcChatAttachment, VcChatComposerProps, VcChatComposerSendPayload, VcChatMentionUser, VcChatTextFormatType } from '../../types';
2
+ declare function send(): void;
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcChatComposerProps>, {
4
+ format: string;
5
+ formats: () => string[];
6
+ mentions: () => never[];
7
+ attachments: () => never[];
8
+ placeholder: undefined;
9
+ disabled: boolean;
10
+ accept: undefined;
11
+ maxFiles: number;
12
+ fileSizeLimit: undefined;
13
+ fileListSizeLimit: undefined;
14
+ dropHintText: undefined;
15
+ recentEmojis: () => never[];
16
+ enableVoice: boolean;
17
+ clearOnSend: boolean;
18
+ }>>, {
19
+ send: typeof send;
20
+ focus: () => boolean | undefined;
21
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ "update:modelValue": (value: unknown) => void;
23
+ "update:attachments": (attachments: VcChatAttachment[]) => void;
24
+ send: (payload: VcChatComposerSendPayload<unknown>) => void;
25
+ retry: (attachment: VcChatAttachment) => void;
26
+ "emoji-select": (emoji: string) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcChatComposerProps>, {
28
+ format: string;
29
+ formats: () => string[];
30
+ mentions: () => never[];
31
+ attachments: () => never[];
32
+ placeholder: undefined;
33
+ disabled: boolean;
34
+ accept: undefined;
35
+ maxFiles: number;
36
+ fileSizeLimit: undefined;
37
+ fileListSizeLimit: undefined;
38
+ dropHintText: undefined;
39
+ recentEmojis: () => never[];
40
+ enableVoice: boolean;
41
+ clearOnSend: boolean;
42
+ }>>> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
44
+ onRetry?: ((attachment: VcChatAttachment) => any) | undefined;
45
+ "onUpdate:attachments"?: ((attachments: VcChatAttachment[]) => any) | undefined;
46
+ onSend?: ((payload: VcChatComposerSendPayload<unknown>) => any) | undefined;
47
+ "onEmoji-select"?: ((emoji: string) => any) | undefined;
48
+ }>, {
49
+ disabled: boolean;
50
+ placeholder: string;
51
+ format: import('../../types').VcChatComposerBuiltInFormat | import('../../types').VcChatComposerFormat<unknown>;
52
+ recentEmojis: string[];
53
+ fileSizeLimit: number;
54
+ fileListSizeLimit: number;
55
+ accept: string;
56
+ formats: VcChatTextFormatType[];
57
+ mentions: VcChatMentionUser[];
58
+ attachments: VcChatAttachment[];
59
+ maxFiles: number;
60
+ dropHintText: string;
61
+ enableVoice: boolean;
62
+ clearOnSend: boolean;
63
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
64
+ export default _default;
65
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ type __VLS_TypePropsToRuntimeProps<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
74
+ type __VLS_WithDefaults<P, D> = {
75
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
76
+ default: D[K];
77
+ }> : P[K];
78
+ };
79
+ type __VLS_Prettify<T> = {
80
+ [K in keyof T]: T[K];
81
+ } & {};
@@ -0,0 +1,12 @@
1
+ import type { JSONContent } from '@tiptap/core';
2
+ import type { VcChatComposerBuiltInFormat, VcChatComposerFormat, VcChatRichText, VcChatTextEntity } from '../../types';
3
+ /**
4
+ * Sorts the entities and merges adjacent / overlapping ranges of the same format.
5
+ */
6
+ export declare function normalizeEntities(entities: Array<VcChatTextEntity>): Array<VcChatTextEntity>;
7
+ export declare function resolveFormat(format: VcChatComposerBuiltInFormat | VcChatComposerFormat): VcChatComposerFormat;
8
+ /**
9
+ * Paragraphs are joined with "\n"; a mention node becomes "@label" with a mention entity.
10
+ */
11
+ export declare function docToRichText(doc: JSONContent): VcChatRichText;
12
+ export declare function richTextToDoc(richText: VcChatRichText): JSONContent;
@@ -58,6 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
58
58
  disabled: boolean;
59
59
  name: string;
60
60
  content: string;
61
+ isOpen: boolean;
61
62
  headerClass: string;
62
63
  bodyClass: string;
63
64
  colorIcon: string;
@@ -66,7 +67,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
66
67
  isCard: boolean;
67
68
  activeNames: string[];
68
69
  toggleByAction: boolean;
69
- isOpen: boolean;
70
70
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
71
71
  title?(_: {
72
72
  open: boolean;
@@ -0,0 +1,63 @@
1
+ import type { PopoverPlacementType, VcEmojiPickerProps } from '../../types';
2
+ declare function open(): void;
3
+ declare function close(returnFocus?: boolean): void;
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcEmojiPickerProps>, {
5
+ recentEmojis: () => never[];
6
+ maxEmojiVersion: number;
7
+ closeOnSelect: boolean;
8
+ placement: string;
9
+ disabled: boolean;
10
+ teleported: boolean;
11
+ }>>, {
12
+ open: typeof open;
13
+ close: typeof close;
14
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ select: (emoji: string) => void;
16
+ open: () => void;
17
+ close: () => void;
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcEmojiPickerProps>, {
19
+ recentEmojis: () => never[];
20
+ maxEmojiVersion: number;
21
+ closeOnSelect: boolean;
22
+ placement: string;
23
+ disabled: boolean;
24
+ teleported: boolean;
25
+ }>>> & Readonly<{
26
+ onClose?: (() => any) | undefined;
27
+ onSelect?: ((emoji: string) => any) | undefined;
28
+ onOpen?: (() => any) | undefined;
29
+ }>, {
30
+ disabled: boolean;
31
+ placement: PopoverPlacementType;
32
+ teleported: boolean;
33
+ recentEmojis: string[];
34
+ maxEmojiVersion: number;
35
+ closeOnSelect: boolean;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
37
+ trigger?(_: {
38
+ isOpen: boolean;
39
+ }): any;
40
+ }>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,16 @@
1
+ export interface EmojiItem {
2
+ emoji: string;
3
+ label: string;
4
+ tags: Array<string>;
5
+ version: number;
6
+ }
7
+ export interface EmojiGroup {
8
+ key: string;
9
+ label: string;
10
+ emojis: Array<EmojiItem>;
11
+ }
12
+ /**
13
+ * Emoji grouped by category, in the Unicode order. The data (~100 KB gzipped) is loaded
14
+ * from emojibase-data on the first call and shared by every picker afterwards.
15
+ */
16
+ export declare function loadEmojiGroups(): Promise<EmojiGroup[]>;
@@ -26,9 +26,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
26
26
  "onAdd-files"?: ((payload: File) => any) | undefined;
27
27
  "onAdd-base-files"?: ((payload: File | ProgressEvent<FileReader>) => any) | undefined;
28
28
  }>, {
29
+ dropText: string;
29
30
  acceptFiles: string;
30
31
  uploadActions: string;
31
- dropText: string;
32
32
  fileUploaderInstructions: string;
33
33
  resultFile: "base64" | "file";
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
@@ -97,9 +97,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
97
97
  prefixIcon: import('../../types').TIcon;
98
98
  prefixIconSize: string;
99
99
  emptyText: string;
100
- wrapperClass: string;
101
- inline: boolean;
102
100
  dynamicErrorSpace: boolean;
101
+ inline: boolean;
102
+ wrapperClass: string;
103
103
  presetRanges: VcExtendedDatetimePickerRangeType[];
104
104
  presetValues: VcPresetValuesType;
105
105
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,85 @@
1
+ import type { IFileTypeStyle } from '../../composables/input/useFileUploader';
2
+ import type { FileUploaded, VcFileItemStatus } from '../../types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ file: FileUploaded;
5
+ /**
6
+ * Icon / color per extension on top of the built-in ones; the reserved `default` key
7
+ * restyles the fallback for unknown extensions.
8
+ */
9
+ fileTypeMap?: Record<string, IFileTypeStyle> | undefined;
10
+ /**
11
+ * Shows the remove button.
12
+ */
13
+ removable?: boolean | undefined;
14
+ disabled?: boolean | undefined;
15
+ /**
16
+ * Upload state: a progress bar while uploading, "Upload failed" with a retry button on error.
17
+ */
18
+ status?: VcFileItemStatus | undefined;
19
+ /**
20
+ * 0–100, for `status: 'uploading'`.
21
+ */
22
+ progress?: number | undefined;
23
+ }>, {
24
+ fileTypeMap: undefined;
25
+ removable: boolean;
26
+ disabled: boolean;
27
+ status: undefined;
28
+ progress: number;
29
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ remove: () => void;
31
+ retry: () => void;
32
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
33
+ file: FileUploaded;
34
+ /**
35
+ * Icon / color per extension on top of the built-in ones; the reserved `default` key
36
+ * restyles the fallback for unknown extensions.
37
+ */
38
+ fileTypeMap?: Record<string, IFileTypeStyle> | undefined;
39
+ /**
40
+ * Shows the remove button.
41
+ */
42
+ removable?: boolean | undefined;
43
+ disabled?: boolean | undefined;
44
+ /**
45
+ * Upload state: a progress bar while uploading, "Upload failed" with a retry button on error.
46
+ */
47
+ status?: VcFileItemStatus | undefined;
48
+ /**
49
+ * 0–100, for `status: 'uploading'`.
50
+ */
51
+ progress?: number | undefined;
52
+ }>, {
53
+ fileTypeMap: undefined;
54
+ removable: boolean;
55
+ disabled: boolean;
56
+ status: undefined;
57
+ progress: number;
58
+ }>>> & Readonly<{
59
+ onRemove?: (() => any) | undefined;
60
+ onRetry?: (() => any) | undefined;
61
+ }>, {
62
+ progress: number;
63
+ disabled: boolean;
64
+ fileTypeMap: Record<string, IFileTypeStyle>;
65
+ removable: boolean;
66
+ status: VcFileItemStatus;
67
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
68
+ export default _default;
69
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
+ type __VLS_TypePropsToRuntimeProps<T> = {
71
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
72
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
+ } : {
74
+ type: import('vue').PropType<T[K]>;
75
+ required: true;
76
+ };
77
+ };
78
+ type __VLS_WithDefaults<P, D> = {
79
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
80
+ default: D[K];
81
+ }> : P[K];
82
+ };
83
+ type __VLS_Prettify<T> = {
84
+ [K in keyof T]: T[K];
85
+ } & {};
@@ -64,19 +64,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
64
64
  modelValue: import("../..").FileUploaded[];
65
65
  dataTestName: string;
66
66
  buttonType: import("../..").ButtonType;
67
- multiple: boolean;
68
- accept: string;
69
- noDataText: string;
70
67
  files: import("../..").FileUploaded[];
71
68
  fileSizeLimit: number;
72
69
  fileListSizeLimit: number;
70
+ accept: string;
73
71
  buttonIcon: import("../..").TIcon;
74
72
  buttonText: string;
75
73
  buttonColor: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
76
74
  buttonSize: import("../..").ButtonSize;
77
75
  tagIcon: import("../..").TIcon;
76
+ noDataText: string;
78
77
  fileType: import("../..").ReturnFileType;
79
78
  tagMaxContentWidth: string;
79
+ multiple: boolean;
80
80
  showFileName: boolean;
81
81
  hideClearAction: boolean;
82
82
  useArea: boolean;
@@ -1,5 +1,4 @@
1
- import { FileUploaded, TIcon } from '../../types';
2
- import { IFileTypeStyle, IFileUploaderProps } from '../../composables/input/useFileUploader';
1
+ import { IFileUploaderProps } from '../../composables/input/useFileUploader';
3
2
  declare function triggerInputClick(): void;
4
3
  declare function onFileChange(): Promise<void>;
5
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFileUploaderProps>, {
@@ -35,8 +34,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
35
34
  onFileChange: typeof onFileChange;
36
35
  onTagClose: (index: number | undefined) => void;
37
36
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
- "update:modelValue": (pl: FileUploaded[]) => void;
39
- input: (pl: FileUploaded[]) => void;
37
+ "update:modelValue": (pl: import("../..").FileUploaded[]) => void;
38
+ input: (pl: import("../..").FileUploaded[]) => void;
40
39
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IFileUploaderProps>, {
41
40
  disabled: boolean;
42
41
  dataTestName: string;
@@ -63,37 +62,37 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
63
62
  areaListHeight: undefined;
64
63
  fileTypeMap: undefined;
65
64
  }>>> & Readonly<{
66
- "onUpdate:modelValue"?: ((pl: FileUploaded[]) => any) | undefined;
67
- onInput?: ((pl: FileUploaded[]) => any) | undefined;
65
+ "onUpdate:modelValue"?: ((pl: import("../..").FileUploaded[]) => any) | undefined;
66
+ onInput?: ((pl: import("../..").FileUploaded[]) => any) | undefined;
68
67
  }>, {
69
68
  maxLength: number;
70
69
  disabled: boolean;
71
- modelValue: FileUploaded[];
70
+ modelValue: import("../..").FileUploaded[];
72
71
  dataTestName: string;
73
- buttonType: import('../../types').ButtonType;
74
- multiple: boolean;
75
- accept: string;
76
- noDataText: string;
77
- files: FileUploaded[];
72
+ buttonType: import("../..").ButtonType;
73
+ files: import("../..").FileUploaded[];
78
74
  fileSizeLimit: number;
79
75
  fileListSizeLimit: number;
80
- buttonIcon: TIcon;
76
+ accept: string;
77
+ buttonIcon: import("../..").TIcon;
81
78
  buttonText: string;
82
79
  buttonColor: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
83
- buttonSize: import('../../types').ButtonSize;
84
- tagIcon: TIcon;
85
- fileType: import('../../types').ReturnFileType;
80
+ buttonSize: import("../..").ButtonSize;
81
+ tagIcon: import("../..").TIcon;
82
+ noDataText: string;
83
+ fileType: import("../..").ReturnFileType;
86
84
  tagMaxContentWidth: string;
85
+ multiple: boolean;
87
86
  showFileName: boolean;
88
87
  hideClearAction: boolean;
89
88
  useArea: boolean;
90
89
  areaHintText: string;
91
90
  areaListHeight: string | number;
92
- fileTypeMap: Record<string, IFileTypeStyle>;
91
+ fileTypeMap: Record<string, import('../../composables/input/useFileUploader').IFileTypeStyle>;
93
92
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
94
93
  area?(_: {}): any;
95
94
  item?(_: {
96
- data: FileUploaded;
95
+ data: import("../..").FileUploaded;
97
96
  close: (index: number | undefined) => void;
98
97
  }): any;
99
98
  }>;
@@ -70,19 +70,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
70
70
  modelValue: import("../..").FileUploaded[];
71
71
  dataTestName: string;
72
72
  buttonType: import("../..").ButtonType;
73
- multiple: boolean;
74
- accept: string;
75
- noDataText: string;
76
73
  files: import("../..").FileUploaded[];
77
74
  fileSizeLimit: number;
78
75
  fileListSizeLimit: number;
76
+ accept: string;
79
77
  buttonIcon: import("../..").TIcon;
80
78
  buttonText: string;
81
79
  buttonColor: "" | "success" | "warning" | "primary" | "secondary" | "destructive" | "active" | "primary-alternative";
82
80
  buttonSize: import("../..").ButtonSize;
83
81
  tagIcon: import("../..").TIcon;
82
+ noDataText: string;
84
83
  fileType: import("../..").ReturnFileType;
85
84
  tagMaxContentWidth: string;
85
+ multiple: boolean;
86
86
  showFileName: boolean;
87
87
  hideClearAction: boolean;
88
88
  useArea: boolean;
@@ -55,12 +55,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
55
55
  size: "" | "default" | "small" | "large";
56
56
  disabled: boolean;
57
57
  maxWidth: string | number;
58
+ inline: boolean;
58
59
  statusIcon: boolean;
59
60
  labelPosition: LabelPositionType;
60
61
  inlineMessage: boolean;
61
62
  model: object;
62
63
  scrollToError: boolean;
63
- inline: boolean;
64
64
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
65
65
  default?(_: {}): any;
66
66
  }>;
@@ -0,0 +1,66 @@
1
+ import type { VcMessageContent, VcMessageOption, VcMessageProps } from '../../types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcMessageProps>, {
3
+ content: undefined;
4
+ align: string;
5
+ reply: undefined;
6
+ options: () => never[];
7
+ additionalOptions: () => never[];
8
+ reactions: () => never[];
9
+ reactionEmojis: () => string[];
10
+ edited: boolean;
11
+ deleted: boolean;
12
+ editedLabel: undefined;
13
+ deletedLabel: undefined;
14
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "option-click": (event: string, option: VcMessageOption) => void;
16
+ "reply-click": () => void;
17
+ "content-click": (content: VcMessageContent) => void;
18
+ "reaction-toggle": (emoji: string) => void;
19
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<VcMessageProps>, {
20
+ content: undefined;
21
+ align: string;
22
+ reply: undefined;
23
+ options: () => never[];
24
+ additionalOptions: () => never[];
25
+ reactions: () => never[];
26
+ reactionEmojis: () => string[];
27
+ edited: boolean;
28
+ deleted: boolean;
29
+ editedLabel: undefined;
30
+ deletedLabel: undefined;
31
+ }>>> & Readonly<{
32
+ "onContent-click"?: ((content: VcMessageContent) => any) | undefined;
33
+ "onOption-click"?: ((event: string, option: VcMessageOption) => any) | undefined;
34
+ "onReply-click"?: (() => any) | undefined;
35
+ "onReaction-toggle"?: ((emoji: string) => any) | undefined;
36
+ }>, {
37
+ options: VcMessageOption[];
38
+ content: VcMessageContent;
39
+ deleted: boolean;
40
+ align: import('../../types').VcMessageAlign;
41
+ reactions: import('../../types').VcMessageReaction[];
42
+ reply: import('../../types').VcMessageReply;
43
+ additionalOptions: VcMessageOption[][];
44
+ reactionEmojis: string[];
45
+ edited: boolean;
46
+ editedLabel: string;
47
+ deletedLabel: string;
48
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
+ export default _default;
50
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
51
+ type __VLS_TypePropsToRuntimeProps<T> = {
52
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
53
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
54
+ } : {
55
+ type: import('vue').PropType<T[K]>;
56
+ required: true;
57
+ };
58
+ };
59
+ type __VLS_WithDefaults<P, D> = {
60
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
61
+ default: D[K];
62
+ }> : P[K];
63
+ };
64
+ type __VLS_Prettify<T> = {
65
+ [K in keyof T]: T[K];
66
+ } & {};
@@ -0,0 +1,24 @@
1
+ import type { VcAudioMessageContent } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ content: VcAudioMessageContent;
4
+ /**
5
+ * Compact version for the reply quote.
6
+ */
7
+ preview?: boolean | undefined;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ content: VcAudioMessageContent;
10
+ /**
11
+ * Compact version for the reply quote.
12
+ */
13
+ preview?: boolean | undefined;
14
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
@@ -0,0 +1,24 @@
1
+ import type { VcFileMessageContent } from '../../../types';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ content: VcFileMessageContent;
4
+ /**
5
+ * Compact version for the reply quote.
6
+ */
7
+ preview?: boolean | undefined;
8
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ content: VcFileMessageContent;
10
+ /**
11
+ * Compact version for the reply quote.
12
+ */
13
+ preview?: boolean | undefined;
14
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };