@uzum-tech/ui 2.3.8 → 2.4.1
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/index.js +63596 -32483
- package/dist/index.mjs +64978 -33874
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/icons/Bold.d.ts +2 -0
- package/es/_internal/icons/Bold.mjs +29 -0
- package/es/_internal/icons/BulletList.d.ts +2 -0
- package/es/_internal/icons/BulletList.mjs +23 -0
- package/es/_internal/icons/HorizontalRule.d.ts +2 -0
- package/es/_internal/icons/HorizontalRule.mjs +14 -0
- package/es/_internal/icons/Italic.d.ts +2 -0
- package/es/_internal/icons/Italic.mjs +19 -0
- package/es/_internal/icons/NumberedList.d.ts +2 -0
- package/es/_internal/icons/NumberedList.mjs +23 -0
- package/es/_internal/icons/Quote.d.ts +2 -0
- package/es/_internal/icons/Quote.mjs +23 -0
- package/es/_internal/icons/SettingsLine.d.ts +2 -0
- package/es/_internal/icons/SettingsLine.mjs +19 -0
- package/es/_internal/icons/Strikethrough.d.ts +2 -0
- package/es/_internal/icons/Strikethrough.mjs +14 -0
- package/es/_internal/icons/index.d.ts +8 -0
- package/es/_internal/icons/index.mjs +8 -0
- package/es/_styles/markdown/markdown-content.cssr.d.ts +6 -0
- package/es/_styles/markdown/markdown-content.cssr.mjs +22 -0
- package/es/_utils/markdown/index.d.ts +3 -2
- package/es/_utils/markdown/index.mjs +2 -1
- package/es/_utils/markdown/render-markdown.d.ts +2 -1
- package/es/_utils/markdown/render-markdown.mjs +1 -1
- package/es/chat/src/Chat.d.ts +261 -24
- package/es/chat/src/Chat.mjs +2 -0
- package/es/chat/src/ChatMainArea.d.ts +81 -8
- package/es/chat/src/ChatMainArea.mjs +111 -355
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +9084 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.mjs +70 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +2645 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/interface.mjs +19 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +9070 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +78 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +2637 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/interface.mjs +15 -0
- package/es/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.d.ts +89 -0
- package/es/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.mjs +63 -0
- package/es/chat/src/ChatParts/ChatEditorInput/interface.d.ts +42 -0
- package/es/chat/src/ChatParts/ChatEditorInput/interface.mjs +34 -0
- package/es/chat/src/ChatParts/ChatFooter/ChatFooter.d.ts +115 -0
- package/es/chat/src/ChatParts/ChatFooter/ChatFooter.mjs +99 -0
- package/es/chat/src/ChatParts/ChatFooter/interface.d.ts +56 -0
- package/es/chat/src/ChatParts/ChatFooter/interface.mjs +46 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +9205 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +219 -0
- package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +2694 -0
- package/es/chat/src/ChatParts/ChatHeader/interface.mjs +67 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +9142 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.mjs +130 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +2654 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/interface.mjs +27 -0
- package/es/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.d.ts +148 -0
- package/es/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.mjs +92 -0
- package/es/chat/src/ChatParts/ChatMessagesArea/interface.d.ts +72 -0
- package/es/chat/src/ChatParts/ChatMessagesArea/interface.mjs +58 -0
- package/es/chat/src/interface.d.ts +7 -0
- package/es/chat/src/interface.mjs +4 -0
- package/es/chat/src/styles/index.cssr.mjs +11 -12
- package/es/chat/styles/light.d.ts +4 -0
- package/es/chat/styles/light.mjs +20 -1
- package/es/components.d.ts +13087 -103
- package/es/components.mjs +5 -0
- package/es/config-provider/src/ConfigProvider.mjs +6 -2
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +156 -0
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +220 -0
- package/es/data-table/src/ColumnSettings/styles.cssr.d.ts +2 -0
- package/es/data-table/src/ColumnSettings/styles.cssr.mjs +25 -0
- package/es/data-table/src/DataTable.d.ts +60 -2
- package/es/data-table/src/DataTable.mjs +99 -23
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
- package/es/data-table/src/interface.d.ts +53 -1
- package/es/data-table/src/interface.mjs +18 -1
- package/es/data-table/src/styles/index.cssr.mjs +17 -1
- package/es/data-table/src/use-column-settings.d.ts +2 -0
- package/es/data-table/src/use-column-settings.mjs +124 -0
- package/es/data-table/src/utils/column-utils.d.ts +2 -1
- package/es/data-table/src/utils/column-utils.mjs +6 -0
- package/es/editor/index.d.ts +10 -0
- package/es/editor/index.mjs +5 -0
- package/es/editor/src/Editor.d.ts +3922 -0
- package/es/editor/src/Editor.mjs +230 -0
- package/es/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.d.ts +37 -0
- package/es/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.mjs +63 -0
- package/es/editor/src/EditorParts/BlockTypeSelect/interface.d.ts +21 -0
- package/es/editor/src/EditorParts/BlockTypeSelect/interface.mjs +14 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +4102 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.mjs +154 -0
- package/es/editor/src/EditorParts/EditorContent/index.d.ts +2 -0
- package/es/editor/src/EditorParts/EditorContent/index.mjs +2 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +1918 -0
- package/es/editor/src/EditorParts/EditorContent/interface.mjs +17 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +4606 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.mjs +170 -0
- package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.d.ts +11 -0
- package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.mjs +56 -0
- package/es/editor/src/EditorParts/EditorToolbar/index.d.ts +2 -0
- package/es/editor/src/EditorParts/EditorToolbar/index.mjs +2 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +1924 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.mjs +18 -0
- package/es/editor/src/EditorParts/SendButton/SendButton.d.ts +23 -0
- package/es/editor/src/EditorParts/SendButton/SendButton.mjs +44 -0
- package/es/editor/src/EditorParts/SendButton/interface.d.ts +18 -0
- package/es/editor/src/EditorParts/SendButton/interface.mjs +8 -0
- package/es/editor/src/EditorParts/ToolbarButton/ToolbarButton.d.ts +32 -0
- package/es/editor/src/EditorParts/ToolbarButton/ToolbarButton.mjs +44 -0
- package/es/editor/src/EditorParts/ToolbarButton/interface.d.ts +20 -0
- package/es/editor/src/EditorParts/ToolbarButton/interface.mjs +13 -0
- package/es/editor/src/composables/use-editor-commands.d.ts +8 -0
- package/es/editor/src/composables/use-editor-commands.mjs +69 -0
- package/es/editor/src/composables/use-editor-css-vars.d.ts +4 -0
- package/es/editor/src/composables/use-editor-css-vars.mjs +89 -0
- package/es/editor/src/constants.d.ts +12 -0
- package/es/editor/src/constants.mjs +25 -0
- package/es/editor/src/extensions.d.ts +7 -0
- package/es/editor/src/extensions.mjs +135 -0
- package/es/editor/src/interface.d.ts +2037 -0
- package/es/editor/src/interface.mjs +53 -0
- package/es/editor/src/markdown/constants.d.ts +8 -0
- package/es/editor/src/markdown/constants.mjs +206 -0
- package/es/editor/src/markdown/editor-serializer.d.ts +9 -0
- package/es/editor/src/markdown/editor-serializer.mjs +18 -0
- package/es/editor/src/markdown/escape.d.ts +2 -0
- package/es/editor/src/markdown/escape.mjs +24 -0
- package/es/editor/src/markdown/html.d.ts +1 -0
- package/es/editor/src/markdown/html.mjs +4 -0
- package/es/editor/src/markdown/parser.d.ts +4 -0
- package/es/editor/src/markdown/parser.mjs +36 -0
- package/es/editor/src/markdown/serializer-state.d.ts +10 -0
- package/es/editor/src/markdown/serializer-state.mjs +12 -0
- package/es/editor/src/markdown/serializer.d.ts +3 -0
- package/es/editor/src/markdown/serializer.mjs +8 -0
- package/es/editor/src/styles/index.cssr.d.ts +2 -0
- package/es/editor/src/styles/index.cssr.mjs +131 -0
- package/es/editor/styles/dark.d.ts +634 -0
- package/es/editor/styles/dark.mjs +21 -0
- package/es/editor/styles/index.d.ts +3 -0
- package/es/editor/styles/index.mjs +2 -0
- package/es/editor/styles/light.d.ts +685 -0
- package/es/editor/styles/light.mjs +91 -0
- package/es/editor/tests/fixtures/round-trip.d.ts +12 -0
- package/es/editor/tests/fixtures/round-trip.mjs +98 -0
- package/es/editor/tests/utils.d.ts +7 -0
- package/es/editor/tests/utils.mjs +27 -0
- package/es/locales/common/enUS.d.ts +22 -0
- package/es/locales/common/enUS.mjs +23 -1
- package/es/locales/common/ruRU.mjs +28 -8
- package/es/locales/common/uzUZ.mjs +23 -1
- package/es/locales/common/zhCN.mjs +23 -1
- package/es/locales/utils/date-locale.d.ts +2 -0
- package/es/locales/utils/date-locale.mjs +8 -0
- package/es/message-bubble/src/MessageBubble.d.ts +9 -0
- package/es/message-bubble/src/MessageBubble.mjs +9 -8
- package/es/message-bubble/src/interface.d.ts +5 -1
- package/es/message-bubble/src/interface.mjs +4 -0
- package/es/message-bubble/src/styles/index.cssr.mjs +4 -17
- package/es/styles.d.ts +1 -0
- package/es/styles.mjs +1 -0
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icons/Bold.d.ts +2 -0
- package/lib/_internal/icons/Bold.js +13 -0
- package/lib/_internal/icons/BulletList.d.ts +2 -0
- package/lib/_internal/icons/BulletList.js +13 -0
- package/lib/_internal/icons/HorizontalRule.d.ts +2 -0
- package/lib/_internal/icons/HorizontalRule.js +10 -0
- package/lib/_internal/icons/Italic.d.ts +2 -0
- package/lib/_internal/icons/Italic.js +11 -0
- package/lib/_internal/icons/NumberedList.d.ts +2 -0
- package/lib/_internal/icons/NumberedList.js +13 -0
- package/lib/_internal/icons/Quote.d.ts +2 -0
- package/lib/_internal/icons/Quote.js +13 -0
- package/lib/_internal/icons/SettingsLine.d.ts +2 -0
- package/lib/_internal/icons/SettingsLine.js +11 -0
- package/lib/_internal/icons/Strikethrough.d.ts +2 -0
- package/lib/_internal/icons/Strikethrough.js +10 -0
- package/lib/_internal/icons/index.d.ts +8 -0
- package/lib/_internal/icons/index.js +18 -2
- package/lib/_styles/markdown/markdown-content.cssr.d.ts +6 -0
- package/lib/_styles/markdown/markdown-content.cssr.js +28 -0
- package/lib/_utils/markdown/index.d.ts +3 -2
- package/lib/_utils/markdown/index.js +4 -1
- package/lib/_utils/markdown/render-markdown.d.ts +2 -1
- package/lib/_utils/markdown/render-markdown.js +1 -0
- package/lib/chat/src/Chat.d.ts +261 -24
- package/lib/chat/src/Chat.js +2 -0
- package/lib/chat/src/ChatMainArea.d.ts +81 -8
- package/lib/chat/src/ChatMainArea.js +93 -223
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +9084 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.js +52 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +2645 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.js +17 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +9070 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +55 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +2637 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/interface.js +14 -0
- package/lib/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.d.ts +89 -0
- package/lib/chat/src/ChatParts/ChatEditorInput/ChatEditorInput.js +45 -0
- package/lib/chat/src/ChatParts/ChatEditorInput/interface.d.ts +42 -0
- package/lib/chat/src/ChatParts/ChatEditorInput/interface.js +37 -0
- package/lib/chat/src/ChatParts/ChatFooter/ChatFooter.d.ts +115 -0
- package/lib/chat/src/ChatParts/ChatFooter/ChatFooter.js +66 -0
- package/lib/chat/src/ChatParts/ChatFooter/interface.d.ts +56 -0
- package/lib/chat/src/ChatParts/ChatFooter/interface.js +49 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +9205 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +164 -0
- package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +2694 -0
- package/lib/chat/src/ChatParts/ChatHeader/interface.js +53 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +9142 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.js +98 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +2654 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/interface.js +23 -0
- package/lib/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.d.ts +148 -0
- package/lib/chat/src/ChatParts/ChatMessagesArea/ChatMessagesArea.js +49 -0
- package/lib/chat/src/ChatParts/ChatMessagesArea/interface.d.ts +72 -0
- package/lib/chat/src/ChatParts/ChatMessagesArea/interface.js +61 -0
- package/lib/chat/src/interface.d.ts +7 -0
- package/lib/chat/src/interface.js +3 -0
- package/lib/chat/src/styles/index.cssr.js +11 -12
- package/lib/chat/styles/light.d.ts +4 -0
- package/lib/chat/styles/light.js +22 -1
- package/lib/components.d.ts +13087 -103
- package/lib/components.js +17 -7
- package/lib/config-provider/src/ConfigProvider.js +7 -4
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +156 -0
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +181 -0
- package/lib/data-table/src/ColumnSettings/styles.cssr.d.ts +2 -0
- package/lib/data-table/src/ColumnSettings/styles.cssr.js +30 -0
- package/lib/data-table/src/DataTable.d.ts +60 -2
- package/lib/data-table/src/DataTable.js +65 -23
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +14 -0
- package/lib/data-table/src/interface.d.ts +53 -1
- package/lib/data-table/src/interface.js +17 -2
- package/lib/data-table/src/styles/index.cssr.js +17 -1
- package/lib/data-table/src/use-column-settings.d.ts +2 -0
- package/lib/data-table/src/use-column-settings.js +144 -0
- package/lib/data-table/src/utils/column-utils.d.ts +2 -1
- package/lib/data-table/src/utils/column-utils.js +5 -0
- package/lib/editor/index.d.ts +10 -0
- package/lib/editor/index.js +19 -0
- package/lib/editor/src/Editor.d.ts +3922 -0
- package/lib/editor/src/Editor.js +224 -0
- package/lib/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.d.ts +37 -0
- package/lib/editor/src/EditorParts/BlockTypeSelect/BlockTypeSelect.js +47 -0
- package/lib/editor/src/EditorParts/BlockTypeSelect/interface.d.ts +21 -0
- package/lib/editor/src/EditorParts/BlockTypeSelect/interface.js +17 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +4102 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.js +121 -0
- package/lib/editor/src/EditorParts/EditorContent/index.d.ts +2 -0
- package/lib/editor/src/EditorParts/EditorContent/index.js +10 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +1918 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.js +8 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +4606 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.js +126 -0
- package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.d.ts +11 -0
- package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js +52 -0
- package/lib/editor/src/EditorParts/EditorToolbar/index.d.ts +2 -0
- package/lib/editor/src/EditorParts/EditorToolbar/index.js +10 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +1924 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.js +11 -0
- package/lib/editor/src/EditorParts/SendButton/SendButton.d.ts +23 -0
- package/lib/editor/src/EditorParts/SendButton/SendButton.js +31 -0
- package/lib/editor/src/EditorParts/SendButton/interface.d.ts +18 -0
- package/lib/editor/src/EditorParts/SendButton/interface.js +11 -0
- package/lib/editor/src/EditorParts/ToolbarButton/ToolbarButton.d.ts +32 -0
- package/lib/editor/src/EditorParts/ToolbarButton/ToolbarButton.js +34 -0
- package/lib/editor/src/EditorParts/ToolbarButton/interface.d.ts +20 -0
- package/lib/editor/src/EditorParts/ToolbarButton/interface.js +16 -0
- package/lib/editor/src/composables/use-editor-commands.d.ts +8 -0
- package/lib/editor/src/composables/use-editor-commands.js +70 -0
- package/lib/editor/src/composables/use-editor-css-vars.d.ts +4 -0
- package/lib/editor/src/composables/use-editor-css-vars.js +50 -0
- package/lib/editor/src/constants.d.ts +12 -0
- package/lib/editor/src/constants.js +56 -0
- package/lib/editor/src/extensions.d.ts +7 -0
- package/lib/editor/src/extensions.js +141 -0
- package/lib/editor/src/interface.d.ts +2037 -0
- package/lib/editor/src/interface.js +22 -0
- package/lib/editor/src/markdown/constants.d.ts +8 -0
- package/lib/editor/src/markdown/constants.js +201 -0
- package/lib/editor/src/markdown/editor-serializer.d.ts +9 -0
- package/lib/editor/src/markdown/editor-serializer.js +20 -0
- package/lib/editor/src/markdown/escape.d.ts +2 -0
- package/lib/editor/src/markdown/escape.js +31 -0
- package/lib/editor/src/markdown/html.d.ts +1 -0
- package/lib/editor/src/markdown/html.js +9 -0
- package/lib/editor/src/markdown/parser.d.ts +4 -0
- package/lib/editor/src/markdown/parser.js +42 -0
- package/lib/editor/src/markdown/serializer-state.d.ts +10 -0
- package/lib/editor/src/markdown/serializer-state.js +16 -0
- package/lib/editor/src/markdown/serializer.d.ts +3 -0
- package/lib/editor/src/markdown/serializer.js +9 -0
- package/lib/editor/src/styles/index.cssr.d.ts +2 -0
- package/lib/editor/src/styles/index.cssr.js +136 -0
- package/lib/editor/styles/dark.d.ts +634 -0
- package/lib/editor/styles/dark.js +23 -0
- package/lib/editor/styles/index.d.ts +3 -0
- package/lib/editor/styles/index.js +10 -0
- package/lib/editor/styles/light.d.ts +685 -0
- package/lib/editor/styles/light.js +75 -0
- package/lib/editor/tests/fixtures/round-trip.d.ts +12 -0
- package/lib/editor/tests/fixtures/round-trip.js +125 -0
- package/lib/editor/tests/utils.d.ts +7 -0
- package/lib/editor/tests/utils.js +26 -0
- package/lib/locales/common/enUS.d.ts +22 -0
- package/lib/locales/common/enUS.js +23 -1
- package/lib/locales/common/ruRU.js +28 -8
- package/lib/locales/common/uzUZ.js +23 -1
- package/lib/locales/common/zhCN.js +23 -1
- package/lib/locales/utils/date-locale.d.ts +2 -0
- package/lib/locales/utils/date-locale.js +14 -0
- package/lib/message-bubble/src/MessageBubble.d.ts +9 -0
- package/lib/message-bubble/src/MessageBubble.js +12 -7
- package/lib/message-bubble/src/interface.d.ts +5 -1
- package/lib/message-bubble/src/interface.js +3 -0
- package/lib/message-bubble/src/styles/index.cssr.js +4 -17
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +127 -125
- package/lib/themes/dark.js +136 -134
- package/lib/themes/light.js +136 -134
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +8 -1
- package/volar.d.ts +3 -0
- package/web-types.json +454 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useTheme } from "../../../../_mixins/index.mjs";
|
|
2
|
+
export const chatLegacyInputProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
3
|
+
value: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: ''
|
|
6
|
+
},
|
|
7
|
+
placeholder: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: undefined
|
|
10
|
+
},
|
|
11
|
+
inputProps: {
|
|
12
|
+
type: Object,
|
|
13
|
+
default: undefined
|
|
14
|
+
},
|
|
15
|
+
suffixIconProps: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: undefined
|
|
18
|
+
},
|
|
19
|
+
onUpdateValue: {
|
|
20
|
+
type: Function,
|
|
21
|
+
default: undefined
|
|
22
|
+
},
|
|
23
|
+
onSend: {
|
|
24
|
+
type: Function,
|
|
25
|
+
default: undefined
|
|
26
|
+
}
|
|
27
|
+
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { MarkdownOptions, UploadProps } from '@uzum-tech/ui';
|
|
2
|
+
import type { SlotsType } from 'vue';
|
|
3
|
+
import type { ChatId, ChatMessageData } from '../../interface';
|
|
4
|
+
import type { ChatMessagesAreaSlots } from './interface';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
readonly messages: {
|
|
7
|
+
readonly type: import("vue").PropType<ChatMessageData[]>;
|
|
8
|
+
readonly default: undefined;
|
|
9
|
+
};
|
|
10
|
+
readonly loading: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: undefined;
|
|
13
|
+
};
|
|
14
|
+
readonly loadingCount: {
|
|
15
|
+
readonly type: NumberConstructor;
|
|
16
|
+
readonly default: undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly typingChatIds: {
|
|
19
|
+
readonly type: import("vue").PropType<ChatId[]>;
|
|
20
|
+
readonly default: undefined;
|
|
21
|
+
};
|
|
22
|
+
readonly selectedChatId: {
|
|
23
|
+
readonly type: import("vue").PropType<ChatId>;
|
|
24
|
+
readonly default: undefined;
|
|
25
|
+
};
|
|
26
|
+
readonly typingText: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: undefined;
|
|
29
|
+
};
|
|
30
|
+
readonly retryText: {
|
|
31
|
+
readonly type: StringConstructor;
|
|
32
|
+
readonly default: undefined;
|
|
33
|
+
};
|
|
34
|
+
readonly uploadProps: {
|
|
35
|
+
readonly type: import("vue").PropType<Partial<UploadProps>>;
|
|
36
|
+
readonly default: undefined;
|
|
37
|
+
};
|
|
38
|
+
readonly showUnreadNotification: {
|
|
39
|
+
readonly type: BooleanConstructor;
|
|
40
|
+
readonly default: false;
|
|
41
|
+
};
|
|
42
|
+
readonly unreadNotificationText: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: undefined;
|
|
45
|
+
};
|
|
46
|
+
readonly unreadNotificationCount: {
|
|
47
|
+
readonly type: NumberConstructor;
|
|
48
|
+
readonly default: undefined;
|
|
49
|
+
};
|
|
50
|
+
readonly markdown: {
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly default: undefined;
|
|
53
|
+
};
|
|
54
|
+
readonly markdownOptions: {
|
|
55
|
+
readonly type: import("vue").PropType<MarkdownOptions>;
|
|
56
|
+
readonly default: undefined;
|
|
57
|
+
};
|
|
58
|
+
readonly onMessageRetry: {
|
|
59
|
+
readonly type: import("vue").PropType<(message: ChatMessageData) => void>;
|
|
60
|
+
readonly default: undefined;
|
|
61
|
+
};
|
|
62
|
+
}>, {
|
|
63
|
+
mergedMessages: import("vue").ComputedRef<ChatMessageData[] | undefined>;
|
|
64
|
+
mergedLoading: import("vue").ComputedRef<boolean | undefined>;
|
|
65
|
+
mergedLoadingCount: import("vue").ComputedRef<number | undefined>;
|
|
66
|
+
mergedTypingChatIds: import("vue").ComputedRef<ChatId[] | undefined>;
|
|
67
|
+
mergedSelectedChatId: import("vue").ComputedRef<ChatId | undefined>;
|
|
68
|
+
mergedTypingText: import("vue").ComputedRef<string | undefined>;
|
|
69
|
+
mergedRetryText: import("vue").ComputedRef<string | undefined>;
|
|
70
|
+
mergedUploadProps: import("vue").ComputedRef<Partial<UploadProps> | undefined>;
|
|
71
|
+
mergedUnreadNotificationText: import("vue").ComputedRef<string | undefined>;
|
|
72
|
+
mergedMarkdown: import("vue").ComputedRef<boolean | undefined>;
|
|
73
|
+
mergedMarkdownOptions: import("vue").ComputedRef<MarkdownOptions | undefined>;
|
|
74
|
+
handleMessageRetry: (message: ChatMessageData) => void;
|
|
75
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
readonly messages: {
|
|
77
|
+
readonly type: import("vue").PropType<ChatMessageData[]>;
|
|
78
|
+
readonly default: undefined;
|
|
79
|
+
};
|
|
80
|
+
readonly loading: {
|
|
81
|
+
readonly type: BooleanConstructor;
|
|
82
|
+
readonly default: undefined;
|
|
83
|
+
};
|
|
84
|
+
readonly loadingCount: {
|
|
85
|
+
readonly type: NumberConstructor;
|
|
86
|
+
readonly default: undefined;
|
|
87
|
+
};
|
|
88
|
+
readonly typingChatIds: {
|
|
89
|
+
readonly type: import("vue").PropType<ChatId[]>;
|
|
90
|
+
readonly default: undefined;
|
|
91
|
+
};
|
|
92
|
+
readonly selectedChatId: {
|
|
93
|
+
readonly type: import("vue").PropType<ChatId>;
|
|
94
|
+
readonly default: undefined;
|
|
95
|
+
};
|
|
96
|
+
readonly typingText: {
|
|
97
|
+
readonly type: StringConstructor;
|
|
98
|
+
readonly default: undefined;
|
|
99
|
+
};
|
|
100
|
+
readonly retryText: {
|
|
101
|
+
readonly type: StringConstructor;
|
|
102
|
+
readonly default: undefined;
|
|
103
|
+
};
|
|
104
|
+
readonly uploadProps: {
|
|
105
|
+
readonly type: import("vue").PropType<Partial<UploadProps>>;
|
|
106
|
+
readonly default: undefined;
|
|
107
|
+
};
|
|
108
|
+
readonly showUnreadNotification: {
|
|
109
|
+
readonly type: BooleanConstructor;
|
|
110
|
+
readonly default: false;
|
|
111
|
+
};
|
|
112
|
+
readonly unreadNotificationText: {
|
|
113
|
+
readonly type: StringConstructor;
|
|
114
|
+
readonly default: undefined;
|
|
115
|
+
};
|
|
116
|
+
readonly unreadNotificationCount: {
|
|
117
|
+
readonly type: NumberConstructor;
|
|
118
|
+
readonly default: undefined;
|
|
119
|
+
};
|
|
120
|
+
readonly markdown: {
|
|
121
|
+
readonly type: BooleanConstructor;
|
|
122
|
+
readonly default: undefined;
|
|
123
|
+
};
|
|
124
|
+
readonly markdownOptions: {
|
|
125
|
+
readonly type: import("vue").PropType<MarkdownOptions>;
|
|
126
|
+
readonly default: undefined;
|
|
127
|
+
};
|
|
128
|
+
readonly onMessageRetry: {
|
|
129
|
+
readonly type: import("vue").PropType<(message: ChatMessageData) => void>;
|
|
130
|
+
readonly default: undefined;
|
|
131
|
+
};
|
|
132
|
+
}>> & Readonly<{}>, {
|
|
133
|
+
readonly loading: boolean;
|
|
134
|
+
readonly typingText: string;
|
|
135
|
+
readonly retryText: string;
|
|
136
|
+
readonly unreadNotificationText: string;
|
|
137
|
+
readonly markdown: boolean;
|
|
138
|
+
readonly markdownOptions: MarkdownOptions;
|
|
139
|
+
readonly uploadProps: Partial<UploadProps>;
|
|
140
|
+
readonly selectedChatId: ChatId;
|
|
141
|
+
readonly messages: ChatMessageData[];
|
|
142
|
+
readonly onMessageRetry: (message: ChatMessageData) => void;
|
|
143
|
+
readonly typingChatIds: ChatId[];
|
|
144
|
+
readonly loadingCount: number;
|
|
145
|
+
readonly showUnreadNotification: boolean;
|
|
146
|
+
readonly unreadNotificationCount: number;
|
|
147
|
+
}, SlotsType<ChatMessagesAreaSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
148
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { computed, defineComponent, h, inject } from 'vue';
|
|
2
|
+
import UChatMessages from "../../ChatMessages.mjs";
|
|
3
|
+
import { chatInjectionKey } from "../../interface.mjs";
|
|
4
|
+
import { chatMessagesAreaProps } from "./interface.mjs";
|
|
5
|
+
export default defineComponent({
|
|
6
|
+
name: 'ChatMessagesArea',
|
|
7
|
+
props: chatMessagesAreaProps,
|
|
8
|
+
slots: Object,
|
|
9
|
+
setup(props) {
|
|
10
|
+
const UChat = inject(chatInjectionKey, null);
|
|
11
|
+
function handleMessageRetry(message) {
|
|
12
|
+
var _a;
|
|
13
|
+
if (UChat) {
|
|
14
|
+
UChat.handleMessageRetry(message);
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
(_a = props.onMessageRetry) === null || _a === void 0 ? void 0 : _a.call(props, message);
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
mergedMessages: computed(() => {
|
|
21
|
+
var _a;
|
|
22
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.messagesRef.value) !== null && _a !== void 0 ? _a : props.messages;
|
|
23
|
+
}),
|
|
24
|
+
mergedLoading: computed(() => {
|
|
25
|
+
var _a;
|
|
26
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.messagesLoadingRef.value) !== null && _a !== void 0 ? _a : props.loading;
|
|
27
|
+
}),
|
|
28
|
+
mergedLoadingCount: computed(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.messagesLoadingCountRef.value) !== null && _a !== void 0 ? _a : props.loadingCount;
|
|
31
|
+
}),
|
|
32
|
+
mergedTypingChatIds: computed(() => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.typingChatIdsRef.value) !== null && _a !== void 0 ? _a : props.typingChatIds;
|
|
35
|
+
}),
|
|
36
|
+
mergedSelectedChatId: computed(() => {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
return (_b = (_a = UChat === null || UChat === void 0 ? void 0 : UChat.selectedChatRef.value) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : props.selectedChatId;
|
|
39
|
+
}),
|
|
40
|
+
mergedTypingText: computed(() => {
|
|
41
|
+
var _a;
|
|
42
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.typingTextRef.value) !== null && _a !== void 0 ? _a : props.typingText;
|
|
43
|
+
}),
|
|
44
|
+
mergedRetryText: computed(() => {
|
|
45
|
+
var _a;
|
|
46
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.retryTextRef.value) !== null && _a !== void 0 ? _a : props.retryText;
|
|
47
|
+
}),
|
|
48
|
+
mergedUploadProps: computed(() => {
|
|
49
|
+
var _a;
|
|
50
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.messageUploadPropsRef.value) !== null && _a !== void 0 ? _a : props.uploadProps;
|
|
51
|
+
}),
|
|
52
|
+
mergedUnreadNotificationText: computed(() => {
|
|
53
|
+
var _a;
|
|
54
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.unreadNotificationTextRef.value) !== null && _a !== void 0 ? _a : props.unreadNotificationText;
|
|
55
|
+
}),
|
|
56
|
+
mergedMarkdown: computed(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.markdownRef.value) !== null && _a !== void 0 ? _a : props.markdown;
|
|
59
|
+
}),
|
|
60
|
+
mergedMarkdownOptions: computed(() => {
|
|
61
|
+
var _a;
|
|
62
|
+
return (_a = UChat === null || UChat === void 0 ? void 0 : UChat.markdownOptionsRef.value) !== null && _a !== void 0 ? _a : props.markdownOptions;
|
|
63
|
+
}),
|
|
64
|
+
handleMessageRetry
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
render() {
|
|
68
|
+
return h(UChatMessages, {
|
|
69
|
+
messages: this.mergedMessages,
|
|
70
|
+
loading: this.mergedLoading,
|
|
71
|
+
loadingCount: this.mergedLoadingCount,
|
|
72
|
+
typingChatIds: this.mergedTypingChatIds,
|
|
73
|
+
selectedChatId: this.mergedSelectedChatId,
|
|
74
|
+
typingText: this.mergedTypingText,
|
|
75
|
+
retryText: this.mergedRetryText,
|
|
76
|
+
uploadProps: this.mergedUploadProps,
|
|
77
|
+
showUnreadNotification: this.showUnreadNotification,
|
|
78
|
+
unreadNotificationText: this.mergedUnreadNotificationText,
|
|
79
|
+
unreadNotificationCount: this.unreadNotificationCount,
|
|
80
|
+
markdown: this.mergedMarkdown,
|
|
81
|
+
markdownOptions: this.mergedMarkdownOptions,
|
|
82
|
+
onMessageRetry: this.handleMessageRetry
|
|
83
|
+
}, {
|
|
84
|
+
messageAttachment: this.$slots.messageAttachment,
|
|
85
|
+
messageAttachmentTitle: this.$slots.messageAttachmentTitle,
|
|
86
|
+
messageAttachmentSubtitle: this.$slots.messageAttachmentSubtitle,
|
|
87
|
+
messageStatus: this.$slots.messageStatus,
|
|
88
|
+
messageAfterContent: this.$slots.messageAfterContent,
|
|
89
|
+
bubbleActions: this.$slots.bubbleActions
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { PropType, VNodeChild } from 'vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from '../../../../_utils';
|
|
3
|
+
import type { MarkdownOptions } from '../../../../_utils/markdown';
|
|
4
|
+
import type { UploadProps } from '../../../../upload';
|
|
5
|
+
import type { ChatId, ChatMessageData } from '../../interface';
|
|
6
|
+
export interface ChatMessagesAreaSlots {
|
|
7
|
+
messageAttachment?: (message: ChatMessageData) => VNodeChild;
|
|
8
|
+
messageAttachmentTitle?: (file: unknown) => VNodeChild;
|
|
9
|
+
messageAttachmentSubtitle?: (file: unknown) => VNodeChild;
|
|
10
|
+
messageStatus?: (message: ChatMessageData) => VNodeChild;
|
|
11
|
+
messageAfterContent?: (message: ChatMessageData) => VNodeChild;
|
|
12
|
+
bubbleActions?: (message: ChatMessageData) => VNodeChild;
|
|
13
|
+
}
|
|
14
|
+
export declare const chatMessagesAreaProps: {
|
|
15
|
+
readonly messages: {
|
|
16
|
+
readonly type: PropType<ChatMessageData[]>;
|
|
17
|
+
readonly default: undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly loading: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly loadingCount: {
|
|
24
|
+
readonly type: NumberConstructor;
|
|
25
|
+
readonly default: undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly typingChatIds: {
|
|
28
|
+
readonly type: PropType<ChatId[]>;
|
|
29
|
+
readonly default: undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly selectedChatId: {
|
|
32
|
+
readonly type: PropType<ChatId>;
|
|
33
|
+
readonly default: undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly typingText: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: undefined;
|
|
38
|
+
};
|
|
39
|
+
readonly retryText: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly default: undefined;
|
|
42
|
+
};
|
|
43
|
+
readonly uploadProps: {
|
|
44
|
+
readonly type: PropType<Partial<UploadProps>>;
|
|
45
|
+
readonly default: undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly showUnreadNotification: {
|
|
48
|
+
readonly type: BooleanConstructor;
|
|
49
|
+
readonly default: false;
|
|
50
|
+
};
|
|
51
|
+
readonly unreadNotificationText: {
|
|
52
|
+
readonly type: StringConstructor;
|
|
53
|
+
readonly default: undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly unreadNotificationCount: {
|
|
56
|
+
readonly type: NumberConstructor;
|
|
57
|
+
readonly default: undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly markdown: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: undefined;
|
|
62
|
+
};
|
|
63
|
+
readonly markdownOptions: {
|
|
64
|
+
readonly type: PropType<MarkdownOptions>;
|
|
65
|
+
readonly default: undefined;
|
|
66
|
+
};
|
|
67
|
+
readonly onMessageRetry: {
|
|
68
|
+
readonly type: PropType<(message: ChatMessageData) => void>;
|
|
69
|
+
readonly default: undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type ChatMessagesAreaProps = ExtractPublicPropTypes<typeof chatMessagesAreaProps>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const chatMessagesAreaProps = {
|
|
2
|
+
messages: {
|
|
3
|
+
type: Array,
|
|
4
|
+
default: undefined
|
|
5
|
+
},
|
|
6
|
+
loading: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: undefined
|
|
9
|
+
},
|
|
10
|
+
loadingCount: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: undefined
|
|
13
|
+
},
|
|
14
|
+
typingChatIds: {
|
|
15
|
+
type: Array,
|
|
16
|
+
default: undefined
|
|
17
|
+
},
|
|
18
|
+
selectedChatId: {
|
|
19
|
+
type: [String, Number, Symbol],
|
|
20
|
+
default: undefined
|
|
21
|
+
},
|
|
22
|
+
typingText: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: undefined
|
|
25
|
+
},
|
|
26
|
+
retryText: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: undefined
|
|
29
|
+
},
|
|
30
|
+
uploadProps: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default: undefined
|
|
33
|
+
},
|
|
34
|
+
showUnreadNotification: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
38
|
+
unreadNotificationText: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: undefined
|
|
41
|
+
},
|
|
42
|
+
unreadNotificationCount: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: undefined
|
|
45
|
+
},
|
|
46
|
+
markdown: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: undefined
|
|
49
|
+
},
|
|
50
|
+
markdownOptions: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: undefined
|
|
53
|
+
},
|
|
54
|
+
onMessageRetry: {
|
|
55
|
+
type: Function,
|
|
56
|
+
default: undefined
|
|
57
|
+
}
|
|
58
|
+
};
|
|
@@ -142,6 +142,7 @@ export interface ChatPropsInterface {
|
|
|
142
142
|
inputValue?: string;
|
|
143
143
|
messages?: ChatMessageData[];
|
|
144
144
|
disabled?: boolean;
|
|
145
|
+
legacyInput?: boolean;
|
|
145
146
|
listEmptyProps?: Partial<EmptyProps>;
|
|
146
147
|
listHeaderTitle?: string | (() => VNodeChild);
|
|
147
148
|
listHeaderActions?: Array<() => VNodeChild>;
|
|
@@ -293,6 +294,8 @@ export declare const chatInjectionKey: InjectionKey<{
|
|
|
293
294
|
chatItemsRef: Ref<ChatListItemData[] | undefined>;
|
|
294
295
|
selectedChatIdRef: Ref<ChatId | undefined>;
|
|
295
296
|
selectedChatRef: Ref<ChatListItemData | undefined>;
|
|
297
|
+
legacyInputRef: Ref<boolean>;
|
|
298
|
+
disabledRef: Ref<boolean | undefined>;
|
|
296
299
|
inputValueRef: Ref<string | undefined>;
|
|
297
300
|
handleInputValueChange: (value: string) => void;
|
|
298
301
|
messagesRef: Ref<ChatMessageData[]>;
|
|
@@ -395,6 +398,10 @@ export declare const chatProps: {
|
|
|
395
398
|
type: PropType<ChatPropsInterface["disabled"]>;
|
|
396
399
|
default: boolean;
|
|
397
400
|
};
|
|
401
|
+
legacyInput: {
|
|
402
|
+
type: PropType<ChatPropsInterface["legacyInput"]>;
|
|
403
|
+
default: boolean;
|
|
404
|
+
};
|
|
398
405
|
listEmptyProps: {
|
|
399
406
|
type: PropType<Partial<ChatPropsInterface["listEmptyProps"]>>;
|
|
400
407
|
default: undefined;
|
|
@@ -335,6 +335,7 @@ export default cB('chat', `
|
|
|
335
335
|
padding: 16px 0px;
|
|
336
336
|
`), cE('input', `
|
|
337
337
|
flex: 1;
|
|
338
|
+
--u-chat-input-padding-vertical: calc((var(--u-height) - var(--u-line-height-textarea)) / 2);
|
|
338
339
|
`, [c('.u-input-wrapper', `
|
|
339
340
|
flex-wrap: wrap;
|
|
340
341
|
padding: 0 4px;
|
|
@@ -342,34 +343,32 @@ export default cB('chat', `
|
|
|
342
343
|
`, [c('.u-input__prefix', `
|
|
343
344
|
width: 100%;
|
|
344
345
|
margin: 0;
|
|
345
|
-
margin-top: 4px;
|
|
346
346
|
white-space: wrap;
|
|
347
|
-
`, [c('
|
|
347
|
+
`, [c('&:has(*)', `
|
|
348
|
+
margin-top: 4px;
|
|
349
|
+
`), c('ul', `
|
|
348
350
|
border-top-left-radius: 12px;
|
|
349
351
|
border-top-right-radius: 12px;
|
|
350
352
|
`), c('li', `
|
|
351
353
|
padding: 12px;
|
|
352
|
-
`)]), c('.u-input__textarea-el', `
|
|
353
|
-
padding-top:
|
|
354
|
-
padding-
|
|
355
|
-
|
|
356
|
-
`), c('.u-input__placeholder', `
|
|
357
|
-
padding-top: 12px;
|
|
354
|
+
`)]), c('.u-input__textarea-el, .u-input__textarea-mirror, .u-input__placeholder', `
|
|
355
|
+
padding-top: var(--u-chat-input-padding-vertical);
|
|
356
|
+
padding-bottom: var(--u-chat-input-padding-vertical);
|
|
357
|
+
`), c('.u-input__textarea-el, .u-input__placeholder', `
|
|
358
358
|
padding-left: 12px;
|
|
359
359
|
padding-right: 48px;
|
|
360
360
|
`)])]), cE('editing-block', `
|
|
361
361
|
width: 100%;
|
|
362
362
|
`), cE('input-suffix', `
|
|
363
363
|
position: absolute;
|
|
364
|
-
right:
|
|
365
|
-
bottom:
|
|
364
|
+
right: 8px;
|
|
365
|
+
bottom: 10px;
|
|
366
366
|
color: var(--u-input-suffix-color) !important;
|
|
367
367
|
cursor: pointer;
|
|
368
|
-
margin-right: 4px;
|
|
369
368
|
`), cE('attach-btn', `
|
|
370
369
|
margin-left: 4px;
|
|
371
370
|
flex-shrink: 0;
|
|
372
|
-
padding: 0
|
|
371
|
+
padding: 0 10px;
|
|
373
372
|
`)]), c('*', `
|
|
374
373
|
box-sizing: border-box;
|
|
375
374
|
`), c('.u-list-item .u-list-item__text', `
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { ExtractThemeOverrides } from '../../_mixins/use-theme';
|
|
1
2
|
import type { ThemeCommonVars } from '../../_styles/common';
|
|
3
|
+
import type { ButtonTheme } from '../../button/styles';
|
|
4
|
+
import type { EditorThemeVars } from '../../editor/styles';
|
|
2
5
|
export declare function self(vars: ThemeCommonVars): {
|
|
3
6
|
backgroundColor: string;
|
|
4
7
|
borderColor: string;
|
|
@@ -43,6 +46,7 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
43
46
|
borderRadius: string;
|
|
44
47
|
errorColor: string;
|
|
45
48
|
};
|
|
49
|
+
export declare function createSendButtonThemeOverrides(themeVars: EditorThemeVars): ExtractThemeOverrides<ButtonTheme>;
|
|
46
50
|
declare const chatLight: import("../../_mixins").Theme<"Chat", {
|
|
47
51
|
backgroundColor: string;
|
|
48
52
|
borderColor: string;
|
package/es/chat/styles/light.mjs
CHANGED
|
@@ -21,7 +21,6 @@ const chatInputLight = Object.assign(Object.assign({}, inputLight), {
|
|
|
21
21
|
return Object.assign(Object.assign({}, originalInputSelf), {
|
|
22
22
|
color: elementsTertiary,
|
|
23
23
|
colorFocus: elementsTertiary,
|
|
24
|
-
heightMedium: '45px',
|
|
25
24
|
border: 'none',
|
|
26
25
|
borderFocus: 'none',
|
|
27
26
|
borderHover: 'none',
|
|
@@ -106,6 +105,26 @@ export function self(vars) {
|
|
|
106
105
|
errorColor: staticRed
|
|
107
106
|
};
|
|
108
107
|
}
|
|
108
|
+
export function createSendButtonThemeOverrides(themeVars) {
|
|
109
|
+
return {
|
|
110
|
+
paddingTiny: '0',
|
|
111
|
+
iconMarginTiny: '0',
|
|
112
|
+
iconSizeTiny: themeVars.sendButtonIconSize,
|
|
113
|
+
heightTiny: themeVars.sendButtonIconSize,
|
|
114
|
+
color: 'transparent',
|
|
115
|
+
colorHover: 'transparent',
|
|
116
|
+
colorPressed: 'transparent',
|
|
117
|
+
colorFocus: 'transparent',
|
|
118
|
+
colorDisabled: 'transparent',
|
|
119
|
+
rippleColor: themeVars.sendButtonRippleColor,
|
|
120
|
+
waveOpacity: themeVars.sendButtonWaveOpacity,
|
|
121
|
+
textColor: themeVars.sendButtonColor,
|
|
122
|
+
textColorHover: themeVars.sendButtonColor,
|
|
123
|
+
textColorPressed: themeVars.sendButtonColor,
|
|
124
|
+
textColorFocus: themeVars.sendButtonColor,
|
|
125
|
+
textColorDisabled: themeVars.sendButtonColorDisabled
|
|
126
|
+
};
|
|
127
|
+
}
|
|
109
128
|
const chatLight = createTheme({
|
|
110
129
|
name: 'Chat',
|
|
111
130
|
common: commonLight,
|