@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,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.self = self;
|
|
4
|
+
const _mixins_1 = require("../../_mixins");
|
|
5
|
+
const common_1 = require("../../_styles/common");
|
|
6
|
+
const styles_1 = require("../../button/styles");
|
|
7
|
+
const styles_2 = require("../../divider/styles");
|
|
8
|
+
const styles_3 = require("../../icon/styles");
|
|
9
|
+
const styles_4 = require("../../select/styles");
|
|
10
|
+
const styles_5 = require("../../tooltip/styles");
|
|
11
|
+
function self(vars) {
|
|
12
|
+
const { borderRadiusLarge, containerSecondary, fontBodyMedium, heightMini, iconMedium, iconSmall, lineHeightTitleMedium, lineHeightTitleSmall, lineHeightBodyLarge, lineHeightBodyMedium, surfacePrimary, elementsQuaternary, elementsQuinary, textPrimary, textTertiary, brandPrimary100, brandPrimary400, brandPrimary500 } = vars;
|
|
13
|
+
return {
|
|
14
|
+
backgroundColor: surfacePrimary,
|
|
15
|
+
borderColor: elementsQuaternary,
|
|
16
|
+
borderRadius: borderRadiusLarge,
|
|
17
|
+
toolbarBackgroundColor: containerSecondary,
|
|
18
|
+
toolbarDividerColor: elementsQuaternary,
|
|
19
|
+
toolbarButtonColorActive: elementsQuaternary,
|
|
20
|
+
toolbarButtonColorHover: elementsQuaternary,
|
|
21
|
+
toolbarButtonRippleColor: elementsQuaternary,
|
|
22
|
+
toolbarButtonWaveOpacity: '0.6',
|
|
23
|
+
toolbarIconColorDisabled: elementsQuinary,
|
|
24
|
+
toolbarIconColorActive: brandPrimary500,
|
|
25
|
+
toolbarIconColorHover: textPrimary,
|
|
26
|
+
toolbarIconColor: textPrimary,
|
|
27
|
+
contentBackgroundColor: surfacePrimary,
|
|
28
|
+
contentTextColor: textPrimary,
|
|
29
|
+
placeholderColor: textTertiary,
|
|
30
|
+
sendButtonColor: brandPrimary400,
|
|
31
|
+
sendButtonColorDisabled: elementsQuinary,
|
|
32
|
+
sendButtonRippleColor: brandPrimary400,
|
|
33
|
+
sendButtonWaveOpacity: '0.6',
|
|
34
|
+
sendButtonIconSize: iconMedium,
|
|
35
|
+
blockTypeTriggerHeight: heightMini,
|
|
36
|
+
blockTypeTriggerPadding: '0 8px 0 0',
|
|
37
|
+
blockTypeTriggerColor: 'transparent',
|
|
38
|
+
blockTypeTriggerTextColor: textPrimary,
|
|
39
|
+
blockTypeTriggerFontSize: fontBodyMedium,
|
|
40
|
+
blockTypeTriggerLineHeight: lineHeightBodyMedium,
|
|
41
|
+
blockTypeTriggerArrowSize: iconSmall,
|
|
42
|
+
blockTypeTriggerArrowColor: textPrimary,
|
|
43
|
+
blockTypeMenuWidth: '210px',
|
|
44
|
+
blockTypeMenuColor: surfacePrimary,
|
|
45
|
+
blockTypeMenuBorderColor: elementsQuaternary,
|
|
46
|
+
blockTypeMenuBorderRadius: borderRadiusLarge,
|
|
47
|
+
blockTypeMenuBoxShadow: '0 4px 8px 0 rgba(68, 83, 113, 0.05), 0 0 16px 0 rgba(68, 83, 113, 0.1)',
|
|
48
|
+
markdownQuoteBorderColor: textPrimary,
|
|
49
|
+
markdownQuoteTextColor: textPrimary,
|
|
50
|
+
markdownQuoteBackgroundColor: brandPrimary100,
|
|
51
|
+
markdownQuoteMarkerColor: brandPrimary500,
|
|
52
|
+
markdownDividerColor: textPrimary,
|
|
53
|
+
markdownH1FontSize: '20px',
|
|
54
|
+
markdownH2FontSize: '18px',
|
|
55
|
+
markdownH3FontSize: '16px',
|
|
56
|
+
markdownTextFontSize: '14px',
|
|
57
|
+
markdownH1LineHeight: lineHeightTitleMedium,
|
|
58
|
+
markdownH2LineHeight: lineHeightTitleSmall,
|
|
59
|
+
markdownH3LineHeight: lineHeightBodyLarge,
|
|
60
|
+
markdownTextLineHeight: lineHeightBodyMedium
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
const editorLight = (0, _mixins_1.createTheme)({
|
|
64
|
+
name: 'Editor',
|
|
65
|
+
common: common_1.commonLight,
|
|
66
|
+
peers: {
|
|
67
|
+
Button: styles_1.buttonLight,
|
|
68
|
+
Icon: styles_3.iconLight,
|
|
69
|
+
Select: styles_4.selectLight,
|
|
70
|
+
Tooltip: styles_5.tooltipLight,
|
|
71
|
+
Divider: styles_2.dividerLight
|
|
72
|
+
},
|
|
73
|
+
self
|
|
74
|
+
});
|
|
75
|
+
exports.default = editorLight;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
name: 'single tilde keeps its form',
|
|
6
|
+
input: '~текст~',
|
|
7
|
+
expected: '~текст~'
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'double tilde keeps its form',
|
|
11
|
+
input: '~~текст~~',
|
|
12
|
+
expected: '~~текст~~'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'equals divider keeps its char and length',
|
|
16
|
+
input: '===',
|
|
17
|
+
expected: '==='
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'long equals divider keeps its length',
|
|
21
|
+
input: '=====',
|
|
22
|
+
expected: '====='
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'dash divider keeps its form',
|
|
26
|
+
input: '---',
|
|
27
|
+
expected: '---'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'asterisk divider keeps its form',
|
|
31
|
+
input: '***',
|
|
32
|
+
expected: '***'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'underscore bold is not rewritten to asterisks',
|
|
36
|
+
input: '__жирный__',
|
|
37
|
+
expected: '__жирный__'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'underscore italic is not rewritten to asterisks',
|
|
41
|
+
input: '_курсив_',
|
|
42
|
+
expected: '_курсив_'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'paren ordered list keeps its delimiter',
|
|
46
|
+
input: '1) пункт',
|
|
47
|
+
expected: '1) пункт'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'dot ordered list keeps its delimiter',
|
|
51
|
+
input: '1. пункт',
|
|
52
|
+
expected: '1. пункт'
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'asterisk bullet marker is not rewritten to a dash',
|
|
56
|
+
input: '* пункт',
|
|
57
|
+
expected: '* пункт'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'plus bullet marker is not rewritten to a dash',
|
|
61
|
+
input: '+ пункт',
|
|
62
|
+
expected: '+ пункт'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'link address survives the round trip',
|
|
66
|
+
input: '[текст](https://example.com)',
|
|
67
|
+
expected: '[текст](https://example.com)'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'image survives the round trip as literal text',
|
|
71
|
+
input: '',
|
|
72
|
+
expected: ''
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'headings keep their level',
|
|
76
|
+
input: '# H1',
|
|
77
|
+
expected: '# H1'
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'third level heading keeps its level',
|
|
81
|
+
input: '### H3',
|
|
82
|
+
expected: '### H3'
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'clamped heading stays a paragraph without extra escaping',
|
|
86
|
+
input: '#### H4',
|
|
87
|
+
expected: '#### H4'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'blockquote keeps its marker',
|
|
91
|
+
input: '> цитата',
|
|
92
|
+
expected: '> цитата'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'tables are unsupported and survive as text',
|
|
96
|
+
input: '| a | b |',
|
|
97
|
+
expected: '| a | b |'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'backticks are unsupported and survive as text',
|
|
101
|
+
input: '`код`',
|
|
102
|
+
expected: '`код`'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'asterisk in the middle of a line gets no escaping',
|
|
106
|
+
input: '5 * 3 = 15',
|
|
107
|
+
expected: '5 * 3 = 15'
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'underscore in the middle of a word gets no escaping',
|
|
111
|
+
input: 'snake_case_name',
|
|
112
|
+
expected: 'snake_case_name'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'dash line is parsed as a list and keeps its marker',
|
|
116
|
+
input: '- дефис',
|
|
117
|
+
expected: '- дефис'
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'nested marks inside single tildes',
|
|
121
|
+
input: '~a **b**~',
|
|
122
|
+
expected: '~a **b**~',
|
|
123
|
+
skip: 'u_strikethrough не разбирает вложенную разметку внутри одинарных тильд; включить после исправления бага'
|
|
124
|
+
}
|
|
125
|
+
];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Extensions } from '@tiptap/core';
|
|
2
|
+
import type { ComponentMountingOptions, VueWrapper } from '@vue/test-utils';
|
|
3
|
+
import { Editor } from '@tiptap/vue-3';
|
|
4
|
+
import { UEditor } from '../index';
|
|
5
|
+
export declare function setupProseMirrorRects(): void;
|
|
6
|
+
export declare function mountEditor(props?: Record<string, unknown>, options?: ComponentMountingOptions<typeof UEditor>): VueWrapper<InstanceType<typeof UEditor>>;
|
|
7
|
+
export declare function createStandaloneEditor(content?: string, extensions?: Extensions): Editor;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setupProseMirrorRects = setupProseMirrorRects;
|
|
4
|
+
exports.mountEditor = mountEditor;
|
|
5
|
+
exports.createStandaloneEditor = createStandaloneEditor;
|
|
6
|
+
const vue_3_1 = require("@tiptap/vue-3");
|
|
7
|
+
const test_utils_1 = require("@vue/test-utils");
|
|
8
|
+
const index_1 = require("../index");
|
|
9
|
+
const extensions_1 = require("../src/extensions");
|
|
10
|
+
function setupProseMirrorRects() {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
var _c, _d;
|
|
13
|
+
const emptyRects = () => ({ length: 0, item: () => null });
|
|
14
|
+
const emptyRect = () => new DOMRect();
|
|
15
|
+
(_a = (_c = Range.prototype).getClientRects) !== null && _a !== void 0 ? _a : (_c.getClientRects = emptyRects);
|
|
16
|
+
(_b = (_d = Range.prototype).getBoundingClientRect) !== null && _b !== void 0 ? _b : (_d.getBoundingClientRect = emptyRect);
|
|
17
|
+
}
|
|
18
|
+
function mountEditor(props = {}, options = {}) {
|
|
19
|
+
return (0, test_utils_1.mount)(index_1.UEditor, Object.assign({ props, attachTo: document.body }, options));
|
|
20
|
+
}
|
|
21
|
+
function createStandaloneEditor(content, extensions) {
|
|
22
|
+
return new vue_3_1.Editor({
|
|
23
|
+
extensions: extensions !== null && extensions !== void 0 ? extensions : (0, extensions_1.createEditorExtensions)(),
|
|
24
|
+
content
|
|
25
|
+
});
|
|
26
|
+
}
|
|
@@ -55,6 +55,13 @@ declare const enUS: {
|
|
|
55
55
|
uncheckTableAll: string;
|
|
56
56
|
confirm: string;
|
|
57
57
|
clear: string;
|
|
58
|
+
columnSettingsTitle: string;
|
|
59
|
+
columnSettingsButton: string;
|
|
60
|
+
columnSettingsSubtitle: string;
|
|
61
|
+
columnSettingsSelectAll: string;
|
|
62
|
+
columnSettingsReset: string;
|
|
63
|
+
columnSettingsCancel: string;
|
|
64
|
+
columnSettingsApply: string;
|
|
58
65
|
};
|
|
59
66
|
LegacyTransfer: {
|
|
60
67
|
sourceTitle: string;
|
|
@@ -128,6 +135,21 @@ declare const enUS: {
|
|
|
128
135
|
subtitle: string;
|
|
129
136
|
uploading: string;
|
|
130
137
|
};
|
|
138
|
+
Editor: {
|
|
139
|
+
placeholder: string;
|
|
140
|
+
sendTooltip: string;
|
|
141
|
+
boldTooltip: string;
|
|
142
|
+
strikethroughTooltip: string;
|
|
143
|
+
italicTooltip: string;
|
|
144
|
+
blockquoteTooltip: string;
|
|
145
|
+
dividerTooltip: string;
|
|
146
|
+
bulletListTooltip: string;
|
|
147
|
+
orderedListTooltip: string;
|
|
148
|
+
paragraphText: string;
|
|
149
|
+
heading1Text: string;
|
|
150
|
+
heading2Text: string;
|
|
151
|
+
heading3Text: string;
|
|
152
|
+
};
|
|
131
153
|
Chat: {
|
|
132
154
|
inputPlaceholder: string;
|
|
133
155
|
typingText: string;
|
|
@@ -56,7 +56,14 @@ const enUS = {
|
|
|
56
56
|
checkTableAll: 'Select all in the table',
|
|
57
57
|
uncheckTableAll: 'Unselect all in the table',
|
|
58
58
|
confirm: 'Confirm',
|
|
59
|
-
clear: 'Clear'
|
|
59
|
+
clear: 'Clear',
|
|
60
|
+
columnSettingsTitle: 'Table settings',
|
|
61
|
+
columnSettingsButton: 'Table settings',
|
|
62
|
+
columnSettingsSubtitle: 'Select columns and change their order',
|
|
63
|
+
columnSettingsSelectAll: 'Select all',
|
|
64
|
+
columnSettingsReset: 'Reset',
|
|
65
|
+
columnSettingsCancel: 'Cancel',
|
|
66
|
+
columnSettingsApply: 'Apply'
|
|
60
67
|
},
|
|
61
68
|
LegacyTransfer: {
|
|
62
69
|
sourceTitle: 'Source',
|
|
@@ -131,6 +138,21 @@ const enUS = {
|
|
|
131
138
|
subtitle: 'PDF, PNG, JPEG no more than 100 MB',
|
|
132
139
|
uploading: 'Uploading'
|
|
133
140
|
},
|
|
141
|
+
Editor: {
|
|
142
|
+
placeholder: 'Type a message...',
|
|
143
|
+
sendTooltip: 'Send',
|
|
144
|
+
boldTooltip: 'Bold',
|
|
145
|
+
strikethroughTooltip: 'Strikethrough',
|
|
146
|
+
italicTooltip: 'Italic',
|
|
147
|
+
blockquoteTooltip: 'Quote',
|
|
148
|
+
dividerTooltip: 'Divider',
|
|
149
|
+
bulletListTooltip: 'Bulleted list',
|
|
150
|
+
orderedListTooltip: 'Numbered list',
|
|
151
|
+
paragraphText: 'Text',
|
|
152
|
+
heading1Text: 'Heading 1',
|
|
153
|
+
heading2Text: 'Heading 2',
|
|
154
|
+
heading3Text: 'Heading 3'
|
|
155
|
+
},
|
|
134
156
|
Chat: {
|
|
135
157
|
inputPlaceholder: 'Type a message...',
|
|
136
158
|
typingText: 'Typing...',
|
|
@@ -39,17 +39,15 @@ const ruRu = {
|
|
|
39
39
|
datePlaceholder: 'Выбрать дату',
|
|
40
40
|
datetimePlaceholder: 'Выбрать дату и время',
|
|
41
41
|
monthPlaceholder: 'Выберите месяц',
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
weekPlaceholder: 'Select Week',
|
|
42
|
+
yearPlaceholder: 'Выберите год',
|
|
43
|
+
quarterPlaceholder: 'Выберите квартал',
|
|
44
|
+
weekPlaceholder: 'Выберите неделю',
|
|
46
45
|
startDatePlaceholder: 'Дата начала',
|
|
47
46
|
endDatePlaceholder: 'Дата окончания',
|
|
48
47
|
startDatetimePlaceholder: 'Дата и время начала',
|
|
49
48
|
endDatetimePlaceholder: 'Дата и время окончания',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
endMonthPlaceholder: 'End Month',
|
|
49
|
+
startMonthPlaceholder: 'Месяц начала',
|
|
50
|
+
endMonthPlaceholder: 'Месяц окончания',
|
|
53
51
|
monthBeforeYear: true,
|
|
54
52
|
firstDayOfWeek: 0,
|
|
55
53
|
today: 'Сегодня'
|
|
@@ -58,7 +56,14 @@ const ruRu = {
|
|
|
58
56
|
checkTableAll: 'Выбрать все в таблице',
|
|
59
57
|
uncheckTableAll: 'Отменить все в таблице',
|
|
60
58
|
confirm: 'Подтвердить',
|
|
61
|
-
clear: 'Очистить'
|
|
59
|
+
clear: 'Очистить',
|
|
60
|
+
columnSettingsTitle: 'Настройки таблицы',
|
|
61
|
+
columnSettingsButton: 'Настройка таблицы',
|
|
62
|
+
columnSettingsSubtitle: 'Выберите колонки и измените их порядок',
|
|
63
|
+
columnSettingsSelectAll: 'Выбрать все',
|
|
64
|
+
columnSettingsReset: 'Сбросить',
|
|
65
|
+
columnSettingsCancel: 'Отмена',
|
|
66
|
+
columnSettingsApply: 'Применить'
|
|
62
67
|
},
|
|
63
68
|
LegacyTransfer: {
|
|
64
69
|
sourceTitle: 'Источник',
|
|
@@ -135,6 +140,21 @@ const ruRu = {
|
|
|
135
140
|
subtitle: 'PDF, PNG, JPEG не более 100 MB',
|
|
136
141
|
uploading: 'Загружается'
|
|
137
142
|
},
|
|
143
|
+
Editor: {
|
|
144
|
+
placeholder: 'Написать сообщение...',
|
|
145
|
+
sendTooltip: 'Отправить',
|
|
146
|
+
boldTooltip: 'Жирный',
|
|
147
|
+
strikethroughTooltip: 'Зачёркнутый',
|
|
148
|
+
italicTooltip: 'Курсив',
|
|
149
|
+
blockquoteTooltip: 'Цитата',
|
|
150
|
+
dividerTooltip: 'Разделитель',
|
|
151
|
+
bulletListTooltip: 'Маркированный список',
|
|
152
|
+
orderedListTooltip: 'Нумерованный список',
|
|
153
|
+
paragraphText: 'Текст',
|
|
154
|
+
heading1Text: 'Заголовок 1',
|
|
155
|
+
heading2Text: 'Заголовок 2',
|
|
156
|
+
heading3Text: 'Заголовок 3'
|
|
157
|
+
},
|
|
138
158
|
Chat: {
|
|
139
159
|
inputPlaceholder: 'Написать сообщение...',
|
|
140
160
|
typingText: 'Печатает...',
|
|
@@ -56,7 +56,14 @@ const uzUZ = {
|
|
|
56
56
|
checkTableAll: 'Jadvaldagi barchasini tanlash',
|
|
57
57
|
uncheckTableAll: 'Jadvaldagi barcha tanlovni bekor qilish',
|
|
58
58
|
confirm: 'Tasdiqlash',
|
|
59
|
-
clear: 'Tozalash'
|
|
59
|
+
clear: 'Tozalash',
|
|
60
|
+
columnSettingsTitle: 'Jadval sozlamalari',
|
|
61
|
+
columnSettingsButton: 'Jadval sozlamalari',
|
|
62
|
+
columnSettingsSubtitle: 'Ustunlarni tanlang va tartibini o‘zgartiring',
|
|
63
|
+
columnSettingsSelectAll: 'Barchasini tanlash',
|
|
64
|
+
columnSettingsReset: 'Qayta o‘rnatish',
|
|
65
|
+
columnSettingsCancel: 'Bekor qilish',
|
|
66
|
+
columnSettingsApply: 'Qo‘llash'
|
|
60
67
|
},
|
|
61
68
|
LegacyTransfer: {
|
|
62
69
|
sourceTitle: 'Manba',
|
|
@@ -130,6 +137,21 @@ const uzUZ = {
|
|
|
130
137
|
subtitle: 'PDF, PNG, JPEG, 100 MB dan oshmasin',
|
|
131
138
|
uploading: 'Yuklanmoqda'
|
|
132
139
|
},
|
|
140
|
+
Editor: {
|
|
141
|
+
placeholder: 'Xabar yozing...',
|
|
142
|
+
sendTooltip: 'Yuborish',
|
|
143
|
+
boldTooltip: 'Qalin',
|
|
144
|
+
strikethroughTooltip: 'Chizib o\'tilgan',
|
|
145
|
+
italicTooltip: 'Kursiv',
|
|
146
|
+
blockquoteTooltip: 'Iqtibos',
|
|
147
|
+
dividerTooltip: 'Ajratuvchi',
|
|
148
|
+
bulletListTooltip: 'Belgili ro\'yxat',
|
|
149
|
+
orderedListTooltip: 'Raqamli ro\'yxat',
|
|
150
|
+
paragraphText: 'Matn',
|
|
151
|
+
heading1Text: '1-sarlavha',
|
|
152
|
+
heading2Text: '2-sarlavha',
|
|
153
|
+
heading3Text: '3-sarlavha'
|
|
154
|
+
},
|
|
133
155
|
Chat: {
|
|
134
156
|
inputPlaceholder: 'Xabar yozing...',
|
|
135
157
|
typingText: 'Yozmoqda...',
|
|
@@ -56,7 +56,14 @@ const zhCN = {
|
|
|
56
56
|
checkTableAll: '选择全部表格数据',
|
|
57
57
|
uncheckTableAll: '取消选择全部表格数据',
|
|
58
58
|
confirm: '确认',
|
|
59
|
-
clear: '重置'
|
|
59
|
+
clear: '重置',
|
|
60
|
+
columnSettingsTitle: '表格设置',
|
|
61
|
+
columnSettingsButton: '表格设置',
|
|
62
|
+
columnSettingsSubtitle: '选择列并调整顺序',
|
|
63
|
+
columnSettingsSelectAll: '全选',
|
|
64
|
+
columnSettingsReset: '重置',
|
|
65
|
+
columnSettingsCancel: '取消',
|
|
66
|
+
columnSettingsApply: '应用'
|
|
60
67
|
},
|
|
61
68
|
LegacyTransfer: {
|
|
62
69
|
sourceTitle: '源项',
|
|
@@ -130,6 +137,21 @@ const zhCN = {
|
|
|
130
137
|
subtitle: 'PDF、PNG、JPEG,不超过 100 MB',
|
|
131
138
|
uploading: '上传中'
|
|
132
139
|
},
|
|
140
|
+
Editor: {
|
|
141
|
+
placeholder: '输入消息...',
|
|
142
|
+
sendTooltip: '发送',
|
|
143
|
+
boldTooltip: '加粗',
|
|
144
|
+
strikethroughTooltip: '删除线',
|
|
145
|
+
italicTooltip: '斜体',
|
|
146
|
+
blockquoteTooltip: '引用',
|
|
147
|
+
dividerTooltip: '分割线',
|
|
148
|
+
bulletListTooltip: '无序列表',
|
|
149
|
+
orderedListTooltip: '有序列表',
|
|
150
|
+
paragraphText: '正文',
|
|
151
|
+
heading1Text: '标题 1',
|
|
152
|
+
heading2Text: '标题 2',
|
|
153
|
+
heading3Text: '标题 3'
|
|
154
|
+
},
|
|
133
155
|
Chat: {
|
|
134
156
|
inputPlaceholder: '输入消息...',
|
|
135
157
|
typingText: '正在输入...',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.resolveDateLocale = resolveDateLocale;
|
|
7
|
+
const enUS_1 = __importDefault(require("../date/enUS"));
|
|
8
|
+
const ruRU_1 = __importDefault(require("../date/ruRU"));
|
|
9
|
+
const uzUZ_1 = __importDefault(require("../date/uzUZ"));
|
|
10
|
+
const zhCN_1 = __importDefault(require("../date/zhCN"));
|
|
11
|
+
const dateLocales = [enUS_1.default, ruRU_1.default, uzUZ_1.default, zhCN_1.default];
|
|
12
|
+
function resolveDateLocale(name) {
|
|
13
|
+
return dateLocales.find(dateLocale => dateLocale.name === name);
|
|
14
|
+
}
|
|
@@ -34,6 +34,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
34
|
readonly type: import("vue").PropType<import("../../_utils/markdown").MarkdownOptions>;
|
|
35
35
|
readonly default: undefined;
|
|
36
36
|
};
|
|
37
|
+
readonly markdownProps: {
|
|
38
|
+
readonly type: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
39
|
+
readonly default: undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly timestamp: {
|
|
38
42
|
readonly type: import("vue").PropType<string | number | Date | (() => VNodeChild)>;
|
|
39
43
|
readonly default: undefined;
|
|
@@ -221,6 +225,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
221
225
|
readonly type: import("vue").PropType<import("../../_utils/markdown").MarkdownOptions>;
|
|
222
226
|
readonly default: undefined;
|
|
223
227
|
};
|
|
228
|
+
readonly markdownProps: {
|
|
229
|
+
readonly type: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
230
|
+
readonly default: undefined;
|
|
231
|
+
};
|
|
224
232
|
readonly timestamp: {
|
|
225
233
|
readonly type: import("vue").PropType<string | number | Date | (() => VNodeChild)>;
|
|
226
234
|
readonly default: undefined;
|
|
@@ -380,6 +388,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
380
388
|
readonly isOwn: boolean;
|
|
381
389
|
readonly markdown: boolean;
|
|
382
390
|
readonly markdownOptions: import("../../_utils/markdown").MarkdownOptions;
|
|
391
|
+
readonly markdownProps: import("vue").HTMLAttributes;
|
|
383
392
|
readonly timestamp: string | number | Date | (() => VNodeChild);
|
|
384
393
|
readonly attachments: MessageBubbleAttachment | MessageBubbleAttachment[];
|
|
385
394
|
readonly uploadProps: Partial<import("../../upload").UploadProps>;
|
|
@@ -207,7 +207,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
207
207
|
return uploadComponent;
|
|
208
208
|
};
|
|
209
209
|
const renderMessage = () => {
|
|
210
|
-
var _a;
|
|
210
|
+
var _a, _b;
|
|
211
211
|
const hasBubbleActionsSlot = slots.bubbleActions !== undefined;
|
|
212
212
|
const hasBubbleActionsConfig = Boolean(props.actions && props.actions.length > 0);
|
|
213
213
|
const hasTitle = Boolean(props.title || slots.title);
|
|
@@ -232,10 +232,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
232
232
|
: resolveRenderContent(props.title))),
|
|
233
233
|
normalizedAttachmentsRef.value.length > 0 && renderAttachment(true),
|
|
234
234
|
(hasVisibleTextContent || slots.default)
|
|
235
|
-
&& (slots.default ? ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, slots.default(messagePayloadRef.value))) : markdownHtmlRef.value !== null ? ((0, vue_1.h)("div", { class: [
|
|
235
|
+
&& (slots.default ? ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, slots.default(messagePayloadRef.value))) : markdownHtmlRef.value !== null ? ((0, vue_1.h)("div", Object.assign({}, props.markdownProps, { class: [
|
|
236
236
|
`${mergedClsPrefixRef.value}-message-bubble__text`,
|
|
237
|
-
`${mergedClsPrefixRef.value}-message-bubble__markdown
|
|
238
|
-
|
|
237
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
238
|
+
(_a = props.markdownProps) === null || _a === void 0 ? void 0 : _a.class
|
|
239
|
+
], innerHTML: markdownHtmlRef.value }))) : ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, resolveRenderContent(props.content)))),
|
|
239
240
|
hasAfterContent && ((0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-message-bubble__after-content` }, afterContentSlot === null || afterContentSlot === void 0 ? void 0 : afterContentSlot(messagePayloadRef.value))))) : normalizedAttachmentsRef.value.length === 1 ? (renderAttachment()) : null;
|
|
240
241
|
return ((0, vue_1.h)("div", { class: [
|
|
241
242
|
`${mergedClsPrefixRef.value}-message-bubble__message`,
|
|
@@ -255,8 +256,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
255
256
|
void (0, vue_1.nextTick)().then(() => {
|
|
256
257
|
contextMenuShow.value = true;
|
|
257
258
|
});
|
|
258
|
-
} }, (
|
|
259
|
-
|
|
259
|
+
} }, (_b = slots.bubbleActions) === null || _b === void 0 ? void 0 :
|
|
260
|
+
_b.call(slots, messagePayloadRef.value),
|
|
260
261
|
messageBubbleContent)) : hasBubbleActionsConfig ? ((0, vue_1.h)(dropdown_1.UDropdown, { show: contextMenuShow.value, trigger: "manual", placement: "bottom-start", options: messageContextMenuOptions.value, onSelect: handleContextMenuSelect, onUpdateShow: (show) => {
|
|
261
262
|
contextMenuShow.value = show;
|
|
262
263
|
}, onClickoutside: () => {
|
|
@@ -287,6 +288,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
287
288
|
], theme: themeRef.value.peers.StatusIcon, themeOverrides: themeRef.value.peerOverrides.StatusIcon }))))))))));
|
|
288
289
|
};
|
|
289
290
|
const renderService = () => {
|
|
291
|
+
var _a;
|
|
290
292
|
if (slots.service) {
|
|
291
293
|
return slots.service(props.serviceVariant);
|
|
292
294
|
}
|
|
@@ -297,7 +299,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
297
299
|
`${mergedClsPrefixRef.value}-message-bubble__service`,
|
|
298
300
|
`${mergedClsPrefixRef.value}-message-bubble__service--${props.serviceVariant}`
|
|
299
301
|
] }, displayMarkdown
|
|
300
|
-
? markdownHtmlRef.value && ((0, vue_1.h)("span", {
|
|
302
|
+
? markdownHtmlRef.value && ((0, vue_1.h)("span", Object.assign({}, props.markdownProps, { class: [
|
|
303
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
304
|
+
(_a = props.markdownProps) === null || _a === void 0 ? void 0 : _a.class
|
|
305
|
+
], innerHTML: markdownHtmlRef.value })))
|
|
301
306
|
: props.content && ((0, vue_1.h)("span", null, resolveRenderContent(props.content)))));
|
|
302
307
|
};
|
|
303
308
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Component, PropType, VNodeChild } from 'vue';
|
|
1
|
+
import type { Component, HTMLAttributes, PropType, VNodeChild } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import type { MarkdownOptions } from '../../_utils/markdown';
|
|
4
4
|
import type { UploadFileInfo, UploadProps } from '../../upload';
|
|
@@ -99,6 +99,10 @@ export declare const messageBubbleProps: {
|
|
|
99
99
|
readonly type: PropType<MarkdownOptions>;
|
|
100
100
|
readonly default: undefined;
|
|
101
101
|
};
|
|
102
|
+
readonly markdownProps: {
|
|
103
|
+
readonly type: PropType<HTMLAttributes>;
|
|
104
|
+
readonly default: undefined;
|
|
105
|
+
};
|
|
102
106
|
readonly timestamp: {
|
|
103
107
|
readonly type: PropType<string | number | Date | (() => VNodeChild)>;
|
|
104
108
|
readonly default: undefined;
|
|
@@ -59,6 +59,9 @@ exports.messageBubbleProps = Object.assign(Object.assign({}, _mixins_1.useTheme.
|
|
|
59
59
|
}, markdownOptions: {
|
|
60
60
|
type: Object,
|
|
61
61
|
default: undefined
|
|
62
|
+
}, markdownProps: {
|
|
63
|
+
type: Object,
|
|
64
|
+
default: undefined
|
|
62
65
|
}, timestamp: {
|
|
63
66
|
type: [String, Number, Date, Function],
|
|
64
67
|
default: undefined
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
const markdown_content_cssr_1 = require("../../../_styles/markdown/markdown-content.cssr");
|
|
6
7
|
const cssr_1 = require("../../../_utils/cssr");
|
|
7
8
|
// vars:
|
|
8
9
|
// --u-bezier
|
|
@@ -85,23 +86,9 @@ exports.default = (0, cssr_1.cB)('message-bubble', `
|
|
|
85
86
|
`), (0, cssr_1.cE)('markdown', `
|
|
86
87
|
white-space: normal;
|
|
87
88
|
font-size: var(--u-message-bubble-markdown-text-font-size);
|
|
88
|
-
`,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
padding: 0 8px;
|
|
92
|
-
margin: 0;
|
|
93
|
-
background-color: var(--u-message-bubble-markdown-quote-background-color);
|
|
94
|
-
color: var(--u-message-bubble-markdown-quote-text-color);
|
|
95
|
-
`, [(0, cssr_1.c)('&::before', `
|
|
96
|
-
content: "";
|
|
97
|
-
width: 2px;
|
|
98
|
-
position: absolute;
|
|
99
|
-
left: 2px;
|
|
100
|
-
top: 2px;
|
|
101
|
-
bottom: 2px;
|
|
102
|
-
border-radius: 30px;
|
|
103
|
-
background-color: var(--u-message-bubble-markdown-quote-marker-color);
|
|
104
|
-
`)]), (0, cssr_1.c)('& > *:first-child', 'margin-top: 0;'), (0, cssr_1.c)('& > *:last-child', 'margin-bottom: 0;')]), (0, cssr_1.cE)('after-content', `
|
|
89
|
+
`, (0, markdown_content_cssr_1.markdownContentStyle)({
|
|
90
|
+
cssVarPrefix: '--u-message-bubble-markdown'
|
|
91
|
+
})), (0, cssr_1.cE)('after-content', `
|
|
105
92
|
white-space: normal;
|
|
106
93
|
`), (0, cssr_1.cE)('meta', `
|
|
107
94
|
display: flex;
|
package/lib/styles.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { drawerDark, drawerRtl as unstableDrawerRtl } from './drawer/styles';
|
|
|
29
29
|
export { dropdownDark } from './dropdown/styles';
|
|
30
30
|
export { dynamicInputDark, dynamicInputRtl as unstableDynamicInputRtl } from './dynamic-input/styles';
|
|
31
31
|
export { dynamicTagsDark } from './dynamic-tags/styles';
|
|
32
|
+
export { editorDark } from './editor/styles';
|
|
32
33
|
export { elementDark } from './element/styles';
|
|
33
34
|
export { emptyDark } from './empty/styles';
|
|
34
35
|
export { floatButtonGroupDark } from './float-button-group/styles';
|