impact-ui 4.0.1-alpha.21 → 4.0.1-alpha.22
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/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +3 -1
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +23 -27
- package/dist/components/Chatbot/bookMarkPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/bookMarkPanel.js +8 -6
- package/dist/components/Chatbot/chatInput.d.ts.map +1 -1
- package/dist/components/Chatbot/chatInput.js +4 -2
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +5 -3
- package/dist/components/Chatbot/conversationScreen.d.ts.map +1 -1
- package/dist/components/Chatbot/conversationScreen.js +5 -3
- package/dist/components/Chatbot/historyPanel.d.ts.map +1 -1
- package/dist/components/Chatbot/historyPanel.js +18 -9
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +28 -11
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +11 -9
- package/dist/components/Chatbot/utils.d.ts +3 -1
- package/dist/components/Chatbot/utils.d.ts.map +1 -1
- package/dist/components/Chatbot/utils.js +4 -4
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +18 -15
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +25 -24
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +23 -8
- package/dist/components/DatePicker/datePickerFooter.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerFooter.js +5 -3
- package/dist/components/DatePicker/datePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/datePickerInput.js +4 -2
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.js +5 -3
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.js +8 -8
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +4 -2
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +4 -2
- package/dist/components/DateRangePicker/utils.d.ts +5 -0
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +13 -0
- package/dist/components/FileUpload/TemplatePreview.d.ts.map +1 -1
- package/dist/components/FileUpload/TemplatePreview.js +3 -1
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +26 -21
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.js +9 -7
- package/dist/components/FiltersStrip/FilterDropDown.d.ts.map +1 -1
- package/dist/components/FiltersStrip/FilterDropDown.js +6 -3
- package/dist/components/FiltersStrip/index.d.ts.map +1 -1
- package/dist/components/FiltersStrip/index.js +6 -3
- package/dist/components/Header/Header.types.d.ts +7 -0
- package/dist/components/Header/Header.types.d.ts.map +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +93 -5
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +44 -34
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +36 -28
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +4 -2
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +8 -2
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +7 -5
- package/dist/components/KeyboardShortCuts/screen2.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen2.js +4 -2
- package/dist/components/KeyboardShortCuts/screen3.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/screen3.js +4 -2
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +14 -12
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +5 -2
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +6 -4
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +18 -8
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +5 -3
- package/dist/components/MonthPicker/index.d.ts.map +1 -1
- package/dist/components/MonthPicker/index.js +17 -14
- package/dist/components/MonthRangePicker/index.d.ts +1 -1
- package/dist/components/MonthRangePicker/index.d.ts.map +1 -1
- package/dist/components/MonthRangePicker/index.js +17 -14
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +14 -10
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +28 -17
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationPanelContent.js +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationTaskList.js +7 -5
- package/dist/components/Notification/NotificationBody/index.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/index.js +3 -1
- package/dist/components/Notification/index.d.ts.map +1 -1
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Select/SearchFilter.d.ts.map +1 -1
- package/dist/components/Select/SearchFilter.js +6 -4
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +14 -10
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +31 -20
- package/dist/components/Select/utils.d.ts +1 -1
- package/dist/components/Select/utils.d.ts.map +1 -1
- package/dist/components/Select/utils.js +2 -2
- package/dist/components/Sidebar/SidebarActions.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarActions.js +6 -3
- package/dist/components/Sidebar/SidebarMenus.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenus.js +3 -4
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/Sidebar/index.js +6 -4
- package/dist/components/Table/AdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSearchModalItem.js +7 -5
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSortModal.js +34 -30
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +5 -3
- package/dist/components/Table/CommentsPortal.d.ts +3 -5
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +8 -5
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +11 -9
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +11 -6
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +5 -3
- package/dist/components/Table/actionBar.d.ts.map +1 -1
- package/dist/components/Table/actionBar.js +5 -1
- package/dist/components/Table/advanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/advanceSearchModal.js +14 -12
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +29 -21
- package/dist/components/Table/tableFunctions.d.ts +10 -12
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +59 -53
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +22 -13
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +10 -8
- package/dist/components/Table/tablePagination.d.ts.map +1 -1
- package/dist/components/Table/tablePagination.js +16 -6
- package/dist/components/Table/tableSettings.d.ts +1 -1
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +17 -14
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +5 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +22 -22
- package/dist/components/TableChat/components/SkeletonList.d.ts +1 -1
- package/dist/components/TableChat/components/SkeletonList.d.ts.map +1 -1
- package/dist/components/TableChat/components/SkeletonList.js +6 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +2 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +37 -29
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +3 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +25 -27
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +45 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.js +4 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.js +5 -3
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +6 -3
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +13 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +14 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.js +6 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +7 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +6 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +3 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +27 -22
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +9 -7
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +18 -20
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +5 -3
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.js +26 -7
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.js +30 -4
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +13 -7
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +25 -23
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +19 -17
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts +1 -2
- package/dist/components/TableChat/components/TextEditor/Mention.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +6 -3
- package/dist/components/TableChat/components/TextEditor/MentionList.d.ts +1 -2
- package/dist/components/TableChat/components/TextEditor/MentionList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +4 -2
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/AgGridHeader.js +5 -3
- package/dist/components/TableOld/actionBar.d.ts.map +1 -1
- package/dist/components/TableOld/actionBar.js +5 -1
- package/dist/components/TableOld/index.d.ts +1 -2
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +14 -8
- package/dist/components/TableOld/tableFunctions.d.ts +10 -12
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.js +65 -57
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
- package/dist/components/TableOld/tableHeader.js +4 -2
- package/dist/components/TableOld/tablePagination.d.ts.map +1 -1
- package/dist/components/TableOld/tablePagination.js +17 -5
- package/dist/components/TableOld/tableSettings.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +18 -1
- package/dist/i18n/I18nContext.d.ts +23 -0
- package/dist/i18n/I18nContext.d.ts.map +1 -0
- package/dist/i18n/I18nContext.js +58 -0
- package/dist/i18n/index.d.ts +9 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/translate.d.ts +15 -0
- package/dist/i18n/translate.d.ts.map +1 -0
- package/dist/i18n/translate.js +22 -0
- package/dist/i18n/types.d.ts +18 -0
- package/dist/i18n/types.d.ts.map +1 -0
- package/dist/i18n/useI18n.d.ts +10 -0
- package/dist/i18n/useI18n.d.ts.map +1 -0
- package/dist/i18n/useI18n.js +28 -0
- package/dist/i18n/useTranslation.d.ts +15 -0
- package/dist/i18n/useTranslation.d.ts.map +1 -0
- package/dist/i18n/useTranslation.js +8 -0
- package/dist/locales/de-DE.json.d.ts +559 -0
- package/dist/locales/de-DE.json.js +503 -0
- package/dist/locales/en-US.json.d.ts +554 -0
- package/dist/locales/en-US.json.js +500 -0
- package/dist/locales/index.d.ts +24 -0
- package/dist/locales/index.d.ts.map +1 -0
- package/dist/locales/index.js +32 -0
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/moment/dist/locale/de.js +75 -0
- package/dist/node_modules/moment/dist/moment.js +3986 -0
- package/dist/stories/i18nDemo.d.ts +7 -0
- package/dist/stories/i18nDemo.d.ts.map +1 -0
- package/package.json +2 -1
package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAWA,OAAO,yBAAyB,CAAC;AAcjC,eAAO,MAAM,SAAS,GAAI;;;;;;;;;;;;;;;;;;;CAmBzB,
|
|
1
|
+
{"version":3,"file":"ChatInput.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.tsx"],"names":[],"mappings":"AAWA,OAAO,yBAAyB,CAAC;AAcjC,eAAO,MAAM,SAAS,GAAI;;;;;;;;;;;;;;;;;;;CAmBzB,4CAmuBA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-input{background:#fff;box-sizing:border-box;margin:0 16px 12px;min-width:0}.chat-input.focused{border-top-color:#4259ee}.chat-input .edit-mode-indicator{background-color:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;margin-bottom:8px;padding:8px 12px}.chat-input .edit-mode-indicator .edit-mode-text{align-items:center;color:#856404;display:flex;font-size:14px;justify-content:space-between}.chat-input .edit-mode-indicator .edit-mode-text span{align-items:center;display:flex;font-weight:500;gap:6px}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn{background:none;border:1px solid #ffeaa7;border-radius:4px;color:#856404;cursor:pointer;font-size:12px;padding:4px 8px;transition:all .2s ease}.chat-input .edit-mode-indicator .edit-mode-text .cancel-edit-btn:hover{background-color:#ffeaa7;color:#6c5400}.chat-input .quick-action-container{align-items:center;display:flex;justify-content:flex-end;margin-bottom:6px}.chat-input .show-formatting-enabled{justify-content:space-between}.chat-input .formatting-toolbar{align-items:center}.chat-input .formatting-toolbar .format-button{align-items:center;background:none;border:none;color:#7a8294;cursor:pointer;display:flex;justify-content:center;padding:6px}.chat-input .formatting-toolbar .format-button:hover{background:#eceefd;color:#4259ee}.chat-input .input-container{position:relative}.chat-input .input-container .input-wrapper{align-items:flex-end;background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;display:flex;gap:8px;padding:12px 16px;transition:border-color .2s ease}.chat-input .input-container .input-wrapper:focus-within{border-color:#4259ee}.chat-input .input-container .input-wrapper .message-input{background:none;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;line-height:1.4;outline:none}.chat-input .input-container .input-wrapper .message-input::placeholder{color:#7a8294}.chat-input .input-container .input-wrapper .image-input-container{display:flex;flex-direction:column;gap:2px;width:100%}.chat-input .input-container .character-count{bottom:-22px;color:#b4bac7;font-size:11px;position:absolute;right:-5px}.chat-input .formatting-toolbar{display:flex;gap:4px;padding:4px}.chat-input .formatting-toolbar .format-button{border-radius:4px;padding:4px;transition:all .2s ease}.chat-input .formatting-toolbar .format-button:hover{background-color:#f5f5f5}.chat-input .formatting-toolbar .format-button.is-active{background-color:#e2f4ff;color:#4259ee}.chat-input .upload-container{display:flex;flex-direction:column;width:100%}.chat-input .upload-container .image-preview-container{display:flex;flex-wrap:wrap;gap:8px}.chat-input .upload-container .image-preview-container img{border-radius:8px;object-fit:cover}.chat-input .upload-container .file-preview-container{display:flex;flex-direction:column;gap:4px}.chat-input .message-input{border:1px solid #f0f0f0;border-radius:4px;font-size:14px;line-height:1.5;padding:8px;width:100%}.chat-input .message-input:focus{border-color:#4259ee;outline:none}.chat-input .chat-input-section{border-radius:12px;display:flex;flex-direction:column;gap:6px;position:static;width:100%}.chat-input .chat-input-section.new-chat-screen{bottom:0;position:relative;width:100%}.chat-input .chat-input-section.custom-screen{bottom:15px;width:95%}.chat-input .chat-input-textarea{border:none;max-height:500px;min-height:10px;outline:none;overflow-y:auto;resize:none;width:100%}.chat-input .chat-input-container{background:#fff;border:1px solid #d9dde7;border-radius:12px;box-shadow:0 0 12px 8px #0000000f;padding:12px;position:relative;width:100%}.chat-input .chat-input-container:focus-within,.chat-input .chat-input-container:hover{border:1px solid #b3bdf8}.chat-input .chat-input-wrapper{align-items:flex-end;display:flex;max-height:182px;transition:all .2s ease-in-out;width:100%}.chat-input .chat-input-wrapper.stacked{align-items:stretch;flex-direction:column}.chat-input .chat-input-wrapper.empty{align-items:flex-end;flex-direction:row}.chat-input .chat-input-wrapper.single-line-textarea{align-items:center}.chat-input .message-input-container{display:flex;flex-direction:column;gap:4px;width:100%}.chat-input .chat-textarea{background:#0000;border:none;color:#1f2b4d;flex:1;font-family:Manrope,sans-serif;font-size:14px;font-weight:400;line-height:160%;max-height:142px;outline:none;overflow-y:hidden;padding:0;resize:none;width:100%}.chat-input .chat-textarea::placeholder{color:#b4bac7}.chat-input .chat-textarea{transition:all .2s ease-in-out}.chat-input .chat-textarea.scrollable{overflow-y:auto}.chat-input .chat-actions{align-items:flex-end;display:flex;gap:12px;height:32px;justify-content:flex-end}.chat-input .chat-actions.fixed{height:36px}.chat-input .chat-actions.not-fixed{height:32px}.chat-input .input-actions{align-items:center;display:flex;gap:8px}.chat-input .input-actions .send-actions{align-items:center;display:flex;gap:8px;height:30px}.chat-input .input-actions .send-actions .ia-btn-icon{height:28px;margin-bottom:-4px}.chat-input .input-actions .send-actions img{width:12px}.chat-input .input-actions .send-actions .check-button{background:none;border:3px solid #eceefd;border-radius:8px;color:#7a8294;cursor:pointer;height:32px;padding:8px;width:32px}.chat-input .input-actions .send-actions .check-button .check-icon{width:12px}.chat-input .input-actions .send-actions .send-button{align-items:center!important;background:#0000!important;border:none!important;border-radius:6px!important;color:#fff!important;display:flex!important;height:32px!important;justify-content:center!important;min-width:32px!important;padding:0!important;width:32px!important}.tiptap p.is-editor-empty:first-child:before{color:#d9dde7;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.quick-action-menu.MuiPopover-root .MuiPaper-root{margin-bottom:8px!important}.ia-styles.ia-menu.quick-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.quick-action-container .MuiPaper-root{margin-left:6px!important;margin-top:-10px!important}.ia-styles.ia-menu.priority-action-container .MuiList-root{min-width:214px!important}.ia-styles.ia-menu.priority-action-container .MuiPaper-root{margin-left:36px!important;margin-top:-6px!important}.input-actions .send-actions .ia-btn-icon-loading{margin-bottom:0;padding-top:7px}.selected_action_priority{border:1px solid #3649c6!important}')),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import React__default, { useState, useRef, useEffect } from "react";
|
|
4
4
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
5
5
|
import { Button } from "../../../../Button/index.js";
|
|
@@ -10,6 +10,7 @@ import TableChatEmojiPicker from "../EmojiPicker/EmojiPicker.js";
|
|
|
10
10
|
import FileUploader from "../FileUploader/FileUploader.js";
|
|
11
11
|
import ImageUploader from "../ImageUploader/ImageUploader.js";
|
|
12
12
|
|
|
13
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
13
14
|
const ListIcon = getAssetUrl("icons/listIcon.svg");
|
|
14
15
|
const ThumbsUpIcon = getAssetUrl("icons/thumbsupBlueIcon.svg");
|
|
15
16
|
const CheckGreenIcon = getAssetUrl("icons/checkGreeIcon.svg");
|
|
@@ -22,7 +23,7 @@ const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
|
22
23
|
const SendIcon = getAssetUrl("icons/sendIcon.svg");
|
|
23
24
|
const CheckIcon = getAssetUrl("icons/checkIcon.svg");
|
|
24
25
|
const ChatInput = ({
|
|
25
|
-
placeholder
|
|
26
|
+
placeholder,
|
|
26
27
|
value,
|
|
27
28
|
onChange,
|
|
28
29
|
onSend,
|
|
@@ -31,7 +32,7 @@ const ChatInput = ({
|
|
|
31
32
|
onEmojiClick,
|
|
32
33
|
showFormatting = true,
|
|
33
34
|
showQuickAction = true,
|
|
34
|
-
quickActionLabel
|
|
35
|
+
quickActionLabel,
|
|
35
36
|
disabled = false,
|
|
36
37
|
maxLength = 5e3,
|
|
37
38
|
className = "chat-input",
|
|
@@ -42,6 +43,7 @@ const ChatInput = ({
|
|
|
42
43
|
chatId
|
|
43
44
|
}) => {
|
|
44
45
|
var _a, _b, _c, _d, _e, _f;
|
|
46
|
+
const { t } = useTranslation();
|
|
45
47
|
const [message, setMessage] = useState(value || "");
|
|
46
48
|
const [isFocused, setIsFocused] = useState(false);
|
|
47
49
|
const [quickActionAnchorEl, setQuickActionAnchorEl] = useState(null);
|
|
@@ -85,7 +87,7 @@ const ChatInput = ({
|
|
|
85
87
|
const priorityOptions = [
|
|
86
88
|
{
|
|
87
89
|
value: "normal",
|
|
88
|
-
label: "
|
|
90
|
+
label: t("tableChat.priority.normal"),
|
|
89
91
|
icon: /* @__PURE__ */ jsx("img", { src: CheckBlueIcon })
|
|
90
92
|
// onClick: (data) => {
|
|
91
93
|
// setSelectedPriority(data);
|
|
@@ -93,7 +95,7 @@ const ChatInput = ({
|
|
|
93
95
|
},
|
|
94
96
|
{
|
|
95
97
|
value: "high",
|
|
96
|
-
label: "
|
|
98
|
+
label: t("tableChat.priority.high"),
|
|
97
99
|
icon: /* @__PURE__ */ jsx("img", { src: WarningRedIcon })
|
|
98
100
|
// onClick: (data) => {
|
|
99
101
|
// setSelectedPriority(data);
|
|
@@ -101,7 +103,7 @@ const ChatInput = ({
|
|
|
101
103
|
},
|
|
102
104
|
{
|
|
103
105
|
value: "medium",
|
|
104
|
-
label: "
|
|
106
|
+
label: t("tableChat.priority.medium"),
|
|
105
107
|
icon: /* @__PURE__ */ jsx("img", { src: ThumbsUpYellowIcon })
|
|
106
108
|
// onClick: (data) => {
|
|
107
109
|
// setSelectedPriority(data);
|
|
@@ -109,7 +111,7 @@ const ChatInput = ({
|
|
|
109
111
|
},
|
|
110
112
|
{
|
|
111
113
|
value: "low",
|
|
112
|
-
label: "
|
|
114
|
+
label: t("tableChat.priority.low"),
|
|
113
115
|
icon: /* @__PURE__ */ jsx("img", { src: NotAllowedGreenIcon })
|
|
114
116
|
// onClick: (data) => {
|
|
115
117
|
// setSelectedPriority(data);
|
|
@@ -142,43 +144,43 @@ const ChatInput = ({
|
|
|
142
144
|
const defaultQuickActionMenuOptions = [
|
|
143
145
|
{
|
|
144
146
|
value: "requestReview",
|
|
145
|
-
label: "
|
|
147
|
+
label: t("tableChat.input.requestReview"),
|
|
146
148
|
icon: /* @__PURE__ */ jsx("img", { src: ThumbsUpIcon }),
|
|
147
149
|
// onClick: (data) => {
|
|
148
150
|
// const text = getPrefillText(data);
|
|
149
151
|
// onChange?.(text);
|
|
150
152
|
// },
|
|
151
|
-
prefillText: "
|
|
153
|
+
prefillText: t("tableChat.input.requestReviewText")
|
|
152
154
|
},
|
|
153
155
|
{
|
|
154
156
|
value: "finalOffer",
|
|
155
|
-
label: "
|
|
157
|
+
label: t("tableChat.input.finalOffer"),
|
|
156
158
|
icon: /* @__PURE__ */ jsx("img", { src: CheckGreenIcon }),
|
|
157
159
|
// onClick: (data) => {
|
|
158
160
|
// const text = getPrefillText(data);
|
|
159
161
|
// onChange?.(text);
|
|
160
162
|
// },
|
|
161
|
-
prefillText: "
|
|
163
|
+
prefillText: t("tableChat.input.finalOfferText")
|
|
162
164
|
},
|
|
163
165
|
{
|
|
164
166
|
value: "editRequest",
|
|
165
|
-
label: "
|
|
167
|
+
label: t("tableChat.input.editRequest"),
|
|
166
168
|
icon: /* @__PURE__ */ jsx("img", { src: EditYellowIcon }),
|
|
167
169
|
// onClick: (data) => {
|
|
168
170
|
// const text = getPrefillText(data);
|
|
169
171
|
// onChange?.(text);
|
|
170
172
|
// },
|
|
171
|
-
prefillText: "
|
|
173
|
+
prefillText: t("tableChat.input.editRequestText")
|
|
172
174
|
},
|
|
173
175
|
{
|
|
174
176
|
value: "deleteRequest",
|
|
175
|
-
label: "
|
|
177
|
+
label: t("tableChat.input.deleteRequest"),
|
|
176
178
|
icon: /* @__PURE__ */ jsx("img", { src: DeleteRedIcon }),
|
|
177
179
|
// onClick: (data) => {
|
|
178
180
|
// const text = getPrefillText(data);
|
|
179
181
|
// onChange?.(text);
|
|
180
182
|
// },
|
|
181
|
-
prefillText: "
|
|
183
|
+
prefillText: t("tableChat.input.deleteRequestText")
|
|
182
184
|
}
|
|
183
185
|
];
|
|
184
186
|
const getPrefillText = (value2, selectedArray) => {
|
|
@@ -395,8 +397,11 @@ const ChatInput = ({
|
|
|
395
397
|
}, [message]);
|
|
396
398
|
return /* @__PURE__ */ jsxs("div", { className: `${className} ${isFocused ? "focused" : ""}`, children: [
|
|
397
399
|
isEditMode && editingMessage && /* @__PURE__ */ jsx("div", { className: "edit-mode-indicator", children: /* @__PURE__ */ jsxs("div", { className: "edit-mode-text", children: [
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
|
|
400
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
401
|
+
"✏️ ",
|
|
402
|
+
t("tableChat.input.editingMessage")
|
|
403
|
+
] }),
|
|
404
|
+
/* @__PURE__ */ jsx("button", { className: "cancel-edit-btn", type: "button", onClick: onCancelEdit, children: t("common.cancel") })
|
|
400
405
|
] }) }),
|
|
401
406
|
/* @__PURE__ */ jsxs("div", { className: `quick-action-container ${showFormatting ? "show-formatting-enabled" : ""}`, children: [
|
|
402
407
|
showFormatting && /* @__PURE__ */ jsx(
|
|
@@ -432,7 +437,7 @@ const ChatInput = ({
|
|
|
432
437
|
icon: /* @__PURE__ */ jsx("img", { src: ListIcon }),
|
|
433
438
|
variant: "tertiary",
|
|
434
439
|
onClick: handleQuickActionClick,
|
|
435
|
-
children: quickActionLabel
|
|
440
|
+
children: quickActionLabel || t("tableChat.input.quickAction")
|
|
436
441
|
}
|
|
437
442
|
),
|
|
438
443
|
/* @__PURE__ */ jsx(
|
|
@@ -516,7 +521,7 @@ const ChatInput = ({
|
|
|
516
521
|
disabled,
|
|
517
522
|
loadParticipantsAvatar: messageConfig.loadParticipantsAvatar,
|
|
518
523
|
maxLength,
|
|
519
|
-
placeholder: "
|
|
524
|
+
placeholder: t("tableChat.input.mentionPlaceholder"),
|
|
520
525
|
value: getDisplayValue(),
|
|
521
526
|
onChange: handleInputChange,
|
|
522
527
|
onSend: handleSend
|
|
@@ -527,7 +532,7 @@ const ChatInput = ({
|
|
|
527
532
|
/* @__PURE__ */ jsx(
|
|
528
533
|
Button,
|
|
529
534
|
{
|
|
530
|
-
ariaLabel: "
|
|
535
|
+
ariaLabel: t("tableChat.input.markAsDone"),
|
|
531
536
|
className: `${selectedPriority.value && "selected_action_priority"} check-button`,
|
|
532
537
|
icon: /* @__PURE__ */ jsx("img", { className: "check-icon", src: CheckIcon }),
|
|
533
538
|
variant: "tertiary",
|
|
@@ -570,11 +575,11 @@ const ChatInput = ({
|
|
|
570
575
|
/* @__PURE__ */ jsx(
|
|
571
576
|
Button,
|
|
572
577
|
{
|
|
573
|
-
"aria-label": isEditMode ? "
|
|
578
|
+
"aria-label": isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
|
|
574
579
|
disabled: !getTrimmedValue(),
|
|
575
580
|
icon: /* @__PURE__ */ jsx("img", { src: SendIcon }),
|
|
576
581
|
loading: isSending,
|
|
577
|
-
title: isEditMode ? "
|
|
582
|
+
title: isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
|
|
578
583
|
variant: "primary",
|
|
579
584
|
onClick: handleSend
|
|
580
585
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageActions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.tsx"],"names":[],"mappings":"AAOA,OAAO,kCAAkC,CAAC;AAE1C,eAAO,MAAM,kBAAkB,GAAI;;;;;;;;;CASlC,
|
|
1
|
+
{"version":3,"file":"ChatMessageActions.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.tsx"],"names":[],"mappings":"AAOA,OAAO,kCAAkC,CAAC;AAE1C,eAAO,MAAM,kBAAkB,GAAI;;;;;;;;;CASlC,4CA4CA,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.tsx"],"names":[],"mappings":"AAWA,OAAO,2BAA2B,CAAC;AAKnC,eAAO,MAAM,WAAW,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B3B,4CA4KA,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.chat-message{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;min-width:0;transition:transform .2s ease;width:100%}.chat-message.user-message{flex-direction:row-reverse}.chat-message.user-message>.message-content{align-items:flex-end;margin-left:48px;text-align:right}.chat-message.user-message .message-actions{justify-content:flex-end}.chat-message.assistant-message>.message-content{align-items:flex-start;margin-right:48px}.chat-message .message-header{align-items:center;display:flex;gap:6px;justify-content:flex-end}.chat-message .message-header .message-action-container{align-items:center;display:flex;gap:4px;margin-right:auto;max-width:0;opacity:0;overflow:hidden;pointer-events:none;transform:translate(6px);transition:opacity .25s ease,max-width .25s ease,transform .25s ease}.chat-message .message-header .message-action-container img,.chat-message .message-header .message-action-container svg{color:#b4bac7;cursor:pointer;transition:color .2s ease,transform .2s ease;width:14px}.chat-message .message-header .message-action-container.visibility-enabled{max-width:96px;opacity:1;pointer-events:auto;transform:translate(0)}.chat-message .message-header .message-action-info-container{align-items:center;display:flex;gap:8px}.chat-message .message-header .message-action-info-container svg{color:#b4bac7;cursor:pointer}.chat-message .message-header .message-action-info-container .message-action-info{color:#b4bac7;font-size:12px}.chat-message .message-header .message-action-info-container .message-timestamp{color:#60697d;font-size:11px;font-variant-numeric:tabular-nums;font-weight:500;letter-spacing:.02em;opacity:.85;white-space:nowrap}.chat-message .message-header .message-action-info-container .ia-styles.ia-btn.ia-btn-tertiary{background:#0000;border:none}.chat-message .flex-end{justify-content:flex-end!important}.chat-message.assistant-message .message-text,.chat-message.user-message .message-text{margin-left:0;margin-right:0}.chat-message>.message-content{display:flex;flex:0 1 auto;flex-direction:column;max-width:calc(100% - 40px);min-width:0;width:auto}.ia-styles.ia-menu.more-options-menu .MuiPaper-root{max-width:332px;min-width:220px}.delete_modal_txt{color:#0d152c;font-size:16px;font-style:normal;font-weight:800;line-height:24px}.delete_modal_subTxt{color:#60697d;font-size:12px;font-style:normal;font-weight:500;line-height:16px;text-align:center}.chat-message:hover .message-actions{opacity:1}.chat-message .message-action-container.visibility-enabled,.chat-message .message-text:hover .message-action-container{max-width:96px;opacity:1;pointer-events:auto;transform:translate(0)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
5
5
|
import { Menu } from "../../../../Menu/index.js";
|
|
@@ -9,6 +9,7 @@ import { ChatDeletedMessageType } from "../ChatDeleteMessageType/ChatDeletedMess
|
|
|
9
9
|
import ChatEditedMessageType from "../ChatEditedMessageType /ChatEditedMessageType.js";
|
|
10
10
|
import { ChatMessageAvatar } from "../ChatMessageAvatar/ChatMessageAvatar.js";
|
|
11
11
|
|
|
12
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
12
13
|
const EditIcon = getAssetUrl("icons/pencilIcon.svg");
|
|
13
14
|
const DeleteIcon = getAssetUrl("icons/deleteIcon.svg");
|
|
14
15
|
const ChatMessage = ({
|
|
@@ -43,6 +44,7 @@ const ChatMessage = ({
|
|
|
43
44
|
isHighlighted = false,
|
|
44
45
|
highlightColor = null
|
|
45
46
|
}) => {
|
|
47
|
+
const { t } = useTranslation();
|
|
46
48
|
const [moreOptionsAnchorEl, setMoreOptionsAnchorEl] = useState(null);
|
|
47
49
|
const [moreOptionsMenuOpen, setMoreOptionsMenuOpen] = useState(false);
|
|
48
50
|
const [showDeleteModal, setShowDeleteModal] = useState(false);
|
|
@@ -57,7 +59,7 @@ const ChatMessage = ({
|
|
|
57
59
|
// },
|
|
58
60
|
// },
|
|
59
61
|
{
|
|
60
|
-
label: "
|
|
62
|
+
label: t("commentsPanel.edit"),
|
|
61
63
|
value: "edit",
|
|
62
64
|
icon: /* @__PURE__ */ jsx("img", { alt: "edit", src: EditIcon }),
|
|
63
65
|
onClick: () => {
|
|
@@ -76,7 +78,7 @@ const ChatMessage = ({
|
|
|
76
78
|
// },
|
|
77
79
|
// },
|
|
78
80
|
{
|
|
79
|
-
label: "
|
|
81
|
+
label: t("commentsPanel.delete"),
|
|
80
82
|
value: "delete",
|
|
81
83
|
icon: /* @__PURE__ */ jsx("img", { alt: "delete", src: DeleteIcon }),
|
|
82
84
|
onClick: () => {
|
|
@@ -171,9 +173,9 @@ const ChatMessage = ({
|
|
|
171
173
|
setShowDeleteModal(false);
|
|
172
174
|
},
|
|
173
175
|
isOpen: showDeleteModal,
|
|
174
|
-
primaryButtonLabel: deleting ? "
|
|
175
|
-
secondaryButtonLabel: "
|
|
176
|
-
title: "
|
|
176
|
+
primaryButtonLabel: deleting ? t("commentsPanel.deleting") : t("commentsPanel.delete"),
|
|
177
|
+
secondaryButtonLabel: t("common.cancel"),
|
|
178
|
+
title: t("tableChat.message.deleteConfirmTitle"),
|
|
177
179
|
variant: "error",
|
|
178
180
|
onPrimaryButtonClick: () => {
|
|
179
181
|
handleMsgDelete(messageId);
|
|
@@ -181,7 +183,7 @@ const ChatMessage = ({
|
|
|
181
183
|
onSecondaryButtonClick: () => {
|
|
182
184
|
setShowDeleteModal(false);
|
|
183
185
|
},
|
|
184
|
-
children: "
|
|
186
|
+
children: t("tableChat.message.deleteConfirmMessage")
|
|
185
187
|
}
|
|
186
188
|
)
|
|
187
189
|
] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatNotificationSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatNotificationSettings.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.tsx"],"names":[],"mappings":"AAOA,OAAO,wCAAwC,CAAC;AAEhD,eAAO,MAAM,wBAAwB,GAAI;;;;;;;;;;CAOxC,mDA8NA,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode(':root{--ia-focus-color:#4259ee;--ia-focus-bg:#fff;--ia-focus-ring-width:2px;--ia-focus-ring-offset:2px}*,:after,:before{box-sizing:border-box}body,textarea{font-style:normal;font-weight:500}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{border:0;font-size:100%;font:inherit;margin:0;padding:0;vertical-align:initial}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}table{border-collapse:collapse;border-spacing:0}body{font-family:Manrope,sans-serif}.impact-notification-separator{background-color:#d9dde7;display:inline-block;height:16px;width:1.5px}.impact-notification-horizontal-separator{background-color:#d9dde7;display:inline-block;height:1px;width:100%}ul.storybook-order-list{list-style-type:disc;padding-left:12px}ul.storybook-order-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-list li strong{font-weight:800}ul.storybook-order-child-list{list-style-type:circle;padding-left:20px}ul.storybook-order-child-list li{font-size:12px;line-height:20px;padding-bottom:8px}ul.storybook-order-child-list li strong{font-weight:800}.notification-backdrop{height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:999}.notification-settings-card{background:#fff;border:1px solid #d9dde7;border-radius:16px;box-shadow:0 8px 32px #0000001f;width:386px;z-index:1000}.notification-settings-card .notification-settings-header{padding:20px 24px 4px}.notification-settings-card .notification-settings-header h3{color:#0d152c;font-size:16px;font-weight:600;line-height:1.4;margin:0}.notification-settings-card .notification-settings-content{padding:12px 24px}.notification-settings-card .notification-settings-content .notification-options{display:flex;flex-direction:column;gap:4px}.notification-settings-card .notification-settings-content .notification-options .notification-option{align-items:flex-start;cursor:pointer;display:flex;gap:12px;padding:6px 0}.notification-settings-card .notification-settings-content .notification-options .notification-option input[type=radio]{display:none}.notification-settings-card .notification-settings-content .notification-options .notification-option .radio-custom{align-items:center;border:2px solid #b4bac7;border-radius:50%;display:flex;flex-shrink:0;height:20px;justify-content:center;margin-top:1px;transition:all .2s ease;width:20px}.notification-settings-card .notification-settings-content .notification-options .notification-option .radio-custom:after{background-color:#4259ee;border-radius:50%;content:"";height:8px;opacity:0;transform:scale(0);transition:all .2s ease;width:8px}.notification-settings-card .notification-settings-content .notification-options .notification-option input[type=radio]:checked+.radio-custom{border-color:#4259ee}.notification-settings-card .notification-settings-content .notification-options .notification-option input[type=radio]:checked+.radio-custom:after{opacity:1;transform:scale(1)}.notification-settings-card .notification-settings-content .notification-options .notification-option .option-text{color:#1f2b4d;font-size:16px;font-weight:400;line-height:1.5}.notification-settings-card .notification-settings-content .notification-options .notification-option:hover .radio-custom{border-color:#6b7280}.notification-settings-card .notification-settings-content .notification-options .notification-option:hover input[type=radio]:checked+.radio-custom{border-color:#4259ee}.notification-settings-card .notification-settings-content .notification-options .mentions-checkbox{margin-bottom:4px;margin-left:32px;margin-top:4px}.notification-settings-card .notification-settings-content .notification-options .mentions-checkbox .ia-checkbox-container .ia-checkbox-input+.ia-checkbox-label{color:#6b7280;font-size:14px;font-weight:400}.notification-settings-card .notification-settings-content .notification-separator{background-color:#f3f4f6;height:1px;margin:16px 0 20px}.notification-settings-card .notification-settings-content .mute-section .ia-checkbox-container{margin-bottom:12px}.notification-settings-card .notification-settings-content .mute-section .ia-checkbox-container .ia-checkbox-input+.ia-checkbox-label{color:#1f2b4d;font-size:16px;font-weight:400}.notification-settings-card .notification-settings-content .mute-section .mute-description{margin-bottom:4px;margin-left:32px;margin-top:8px}.notification-settings-card .notification-settings-content .mute-section .mute-description p{color:#6b7280;font-size:14px;line-height:1.5;margin:0 0 8px}.notification-settings-card .notification-settings-content .mute-section .mute-description p:last-child{margin-bottom:0}.notification-settings-card .notification-settings-actions{border-radius:0 0 16px 16px;border-top:1px solid #f3f4f6;display:flex;gap:12px;justify-content:flex-end;padding:16px 12px 20px 24px}.notification-settings-card .notification-settings-actions .ia-styles.ia-btn.ia-btn-link:hover{text-decoration:none}.notification-settings-card .notification-settings-actions button{border-radius:6px;font-size:14px;font-weight:500;height:36px;min-width:80px;transition:all .2s ease}.notification-settings-card .notification-settings-actions button[variant=tertiary]{background-color:initial;border:1px solid #b4bac7;color:#1f2b4d}.notification-settings-card .notification-settings-actions button[variant=tertiary]:hover{background-color:#f9fafb;border-color:#d9dde7}.notification-settings-card .notification-settings-actions button[variant=primary]{background-color:#4259ee;border:1px solid #4259ee;color:#fff}.notification-settings-card .notification-settings-actions button[variant=primary]:hover{background-color:#1531e8;border-color:#1531e8}@keyframes slideInUp{0%{opacity:0;transform:translate(-50%,20px)}to{opacity:1;transform:translate(-50%,10px)}}')),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
2
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
|
|
5
4
|
import { Button } from "../../../../Button/index.js";
|
|
6
5
|
import { Checkbox } from "../../../../Checkbox/index.js";
|
|
7
6
|
import { Prompt } from "../../../../Prompt/index.js";
|
|
8
7
|
import { RadioButtonGroup } from "../../../../RadioButtonGroup/index.js";
|
|
8
|
+
|
|
9
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
9
10
|
const ChatNotificationSettings = ({
|
|
10
11
|
isOpen,
|
|
11
12
|
onClose,
|
|
@@ -14,6 +15,7 @@ const ChatNotificationSettings = ({
|
|
|
14
15
|
onSaveNotification,
|
|
15
16
|
notificationSettings
|
|
16
17
|
}) => {
|
|
18
|
+
const { t } = useTranslation();
|
|
17
19
|
const [notificationSetting, setNotificationSetting] = useState(
|
|
18
20
|
(notificationSettings == null ? void 0 : notificationSettings.notificationSetting) || "all"
|
|
19
21
|
);
|
|
@@ -47,7 +49,7 @@ const ChatNotificationSettings = ({
|
|
|
47
49
|
transform: "translate(0%, 0%)"
|
|
48
50
|
},
|
|
49
51
|
children: [
|
|
50
|
-
/* @__PURE__ */ jsx("div", { className: "notification-settings-header", children: /* @__PURE__ */ jsx("h3", { children: "
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "notification-settings-header", children: /* @__PURE__ */ jsx("h3", { children: t("tableChat.notifications.sendNotificationFor") }) }),
|
|
51
53
|
/* @__PURE__ */ jsxs("div", { className: "notification-settings-content", children: [
|
|
52
54
|
/* @__PURE__ */ jsxs("div", { className: "notification-options", children: [
|
|
53
55
|
/* @__PURE__ */ jsx(
|
|
@@ -55,7 +57,7 @@ const ChatNotificationSettings = ({
|
|
|
55
57
|
{
|
|
56
58
|
options: [
|
|
57
59
|
{
|
|
58
|
-
label: "
|
|
60
|
+
label: t("tableChat.notifications.allNewMessages"),
|
|
59
61
|
value: "all"
|
|
60
62
|
}
|
|
61
63
|
],
|
|
@@ -70,7 +72,7 @@ const ChatNotificationSettings = ({
|
|
|
70
72
|
{
|
|
71
73
|
options: [
|
|
72
74
|
{
|
|
73
|
-
label: "
|
|
75
|
+
label: t("tableChat.notifications.mentions"),
|
|
74
76
|
value: "mentions"
|
|
75
77
|
}
|
|
76
78
|
],
|
|
@@ -86,13 +88,9 @@ const ChatNotificationSettings = ({
|
|
|
86
88
|
Checkbox,
|
|
87
89
|
{
|
|
88
90
|
checked: includeChannelMentions,
|
|
89
|
-
label: /* @__PURE__ */
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
" and",
|
|
93
|
-
" ",
|
|
94
|
-
/* @__PURE__ */ jsx("b", { style: { fontWeight: "bold" }, children: `@here` })
|
|
95
|
-
] }),
|
|
91
|
+
label: /* @__PURE__ */ jsx("span", { children: t("tableChat.notifications.alsoInclude", {
|
|
92
|
+
channel: channelName
|
|
93
|
+
}) }),
|
|
96
94
|
variant: "default",
|
|
97
95
|
onChange: (e) => {
|
|
98
96
|
setIncludeChannelMentions(e.target.checked);
|
|
@@ -104,7 +102,7 @@ const ChatNotificationSettings = ({
|
|
|
104
102
|
{
|
|
105
103
|
options: [
|
|
106
104
|
{
|
|
107
|
-
label: "
|
|
105
|
+
label: t("tableChat.notifications.nothing"),
|
|
108
106
|
value: "nothing"
|
|
109
107
|
}
|
|
110
108
|
],
|
|
@@ -123,7 +121,7 @@ const ChatNotificationSettings = ({
|
|
|
123
121
|
Checkbox,
|
|
124
122
|
{
|
|
125
123
|
checked: muteChannel,
|
|
126
|
-
label: "
|
|
124
|
+
label: t("tableChat.notifications.muteChannel"),
|
|
127
125
|
variant: "default",
|
|
128
126
|
onChange: (e) => {
|
|
129
127
|
setMuteChannel(e.target.checked);
|
|
@@ -139,24 +137,24 @@ const ChatNotificationSettings = ({
|
|
|
139
137
|
setMuteChannel(false);
|
|
140
138
|
},
|
|
141
139
|
isOpen: muteChannel,
|
|
142
|
-
secondaryButtonLabel: "
|
|
143
|
-
title: "
|
|
140
|
+
secondaryButtonLabel: t("tableChat.notifications.unmuteChannel"),
|
|
141
|
+
title: t("tableChat.notifications.mutedTitle"),
|
|
144
142
|
variant: "warning",
|
|
145
143
|
onSecondaryButtonClick: () => {
|
|
146
144
|
setMuteChannel(false);
|
|
147
145
|
},
|
|
148
|
-
children: "
|
|
146
|
+
children: t("tableChat.notifications.mutedDescription")
|
|
149
147
|
}
|
|
150
148
|
),
|
|
151
149
|
/* @__PURE__ */ jsxs("div", { className: "mute-description", children: [
|
|
152
|
-
/* @__PURE__ */ jsx("p", { children: "
|
|
153
|
-
/* @__PURE__ */ jsx("p", { children: "
|
|
150
|
+
/* @__PURE__ */ jsx("p", { children: t("tableChat.notifications.muteDescLine1") }),
|
|
151
|
+
/* @__PURE__ */ jsx("p", { children: t("tableChat.notifications.muteDescLine2") })
|
|
154
152
|
] })
|
|
155
153
|
] })
|
|
156
154
|
] }),
|
|
157
155
|
/* @__PURE__ */ jsxs("div", { className: "notification-settings-actions", children: [
|
|
158
|
-
/* @__PURE__ */ jsx(Button, { className: "cancel-button", variant: "url", onClick: handleCancel, children: "
|
|
159
|
-
/* @__PURE__ */ jsx(Button, { disabled: isLoading, variant: "primary", onClick: handleSave, children: isLoading ? "
|
|
156
|
+
/* @__PURE__ */ jsx(Button, { className: "cancel-button", variant: "url", onClick: handleCancel, children: t("common.cancel") }),
|
|
157
|
+
/* @__PURE__ */ jsx(Button, { disabled: isLoading, variant: "primary", onClick: handleSave, children: isLoading ? t("table.views.saving") : t("tableChat.notifications.saveChanges") })
|
|
160
158
|
] })
|
|
161
159
|
]
|
|
162
160
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateSeparator.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateSeparator.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.tsx"],"names":[],"mappings":"AAGA,OAAO,6BAA6B,CAAC;AAErC,eAAO,MAAM,aAAa,GAAI;;;CAAsC,mDAiCnE,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Badge } from "../../../../Badge/index.js";
|
|
4
4
|
|
|
5
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
5
6
|
const DateSeparator = ({ date, className = "date-separator" }) => {
|
|
7
|
+
const { t, locale } = useTranslation();
|
|
6
8
|
const formatDate = (date2) => {
|
|
7
9
|
if (!date2) return "";
|
|
8
10
|
const today = /* @__PURE__ */ new Date();
|
|
@@ -11,9 +13,9 @@ const DateSeparator = ({ date, className = "date-separator" }) => {
|
|
|
11
13
|
const todayOnly = new Date(today.getFullYear(), today.getMonth(), today.getDate());
|
|
12
14
|
const msgOnly = new Date(msgDate.getFullYear(), msgDate.getMonth(), msgDate.getDate());
|
|
13
15
|
const diffDays = (todayOnly - msgOnly) / (1e3 * 60 * 60 * 24);
|
|
14
|
-
if (diffDays === 0) return "
|
|
15
|
-
if (diffDays === 1) return "
|
|
16
|
-
return msgDate.toLocaleDateString(
|
|
16
|
+
if (diffDays === 0) return t("tableChat.dateSeparator.today");
|
|
17
|
+
if (diffDays === 1) return t("tableChat.dateSeparator.yesterday");
|
|
18
|
+
return msgDate.toLocaleDateString(locale, {
|
|
17
19
|
year: "numeric",
|
|
18
20
|
month: "short",
|
|
19
21
|
day: "numeric"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.tsx"],"names":[],"mappings":"AA+FA,QAAA,MAAM,YAAY,GAAI;;;;;;;;;CASrB,mDAiEA,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
3
4
|
import Box from "../../../../../node_modules/@mui/material/Box/Box.js";
|
|
4
5
|
import Typography from "../../../../../node_modules/@mui/material/Typography/Typography.js";
|
|
5
6
|
import IconButton from "../../../../../node_modules/@mui/material/IconButton/IconButton.js";
|
|
@@ -92,11 +93,13 @@ const FileUploader = ({
|
|
|
92
93
|
fileUrl,
|
|
93
94
|
isLoading,
|
|
94
95
|
isError,
|
|
95
|
-
errorMessage
|
|
96
|
+
errorMessage,
|
|
96
97
|
onClear,
|
|
97
98
|
onRetry,
|
|
98
99
|
onDownload
|
|
99
100
|
}) => {
|
|
101
|
+
const { t } = useTranslation();
|
|
102
|
+
const resolvedErrorMessage = errorMessage ?? t("tableChat.fileUploader.uploadFailed");
|
|
100
103
|
React__default.useEffect(() => {
|
|
101
104
|
injectStyles();
|
|
102
105
|
}, []);
|
|
@@ -108,18 +111,34 @@ const FileUploader = ({
|
|
|
108
111
|
if (!file && !isLoading && !isError) return null;
|
|
109
112
|
return /* @__PURE__ */ jsxs(Box, { className: `file-uploader-container ${isError ? "error" : ""}`, children: [
|
|
110
113
|
/* @__PURE__ */ jsxs("div", { className: "file-info", children: [
|
|
111
|
-
/* @__PURE__ */ jsx(Typography, { className: "file-name", title: file == null ? void 0 : file.name, children: (file == null ? void 0 : file.name) || "
|
|
114
|
+
/* @__PURE__ */ jsx(Typography, { className: "file-name", title: file == null ? void 0 : file.name, children: (file == null ? void 0 : file.name) || t("tableChat.fileUploader.unknownFile") }),
|
|
112
115
|
file && /* @__PURE__ */ jsx(Typography, { className: "file-size", children: formatFileSize(file.size) })
|
|
113
116
|
] }),
|
|
114
117
|
/* @__PURE__ */ jsxs("div", { className: "action-buttons", children: [
|
|
115
|
-
fileUrl && !isLoading && !isError && /* @__PURE__ */ jsx(
|
|
118
|
+
fileUrl && !isLoading && !isError && /* @__PURE__ */ jsx(
|
|
119
|
+
IconButton,
|
|
120
|
+
{
|
|
121
|
+
size: "small",
|
|
122
|
+
title: t("tableChat.fileUploader.downloadFile"),
|
|
123
|
+
onClick: handleDownload,
|
|
124
|
+
children: /* @__PURE__ */ jsx(DownloadIcon, { sx: { fontSize: 20 } })
|
|
125
|
+
}
|
|
126
|
+
),
|
|
116
127
|
isError ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
-
/* @__PURE__ */ jsx(
|
|
118
|
-
|
|
119
|
-
|
|
128
|
+
/* @__PURE__ */ jsx(
|
|
129
|
+
IconButton,
|
|
130
|
+
{
|
|
131
|
+
size: "small",
|
|
132
|
+
title: t("tableChat.fileUploader.retryUpload"),
|
|
133
|
+
onClick: onRetry,
|
|
134
|
+
children: /* @__PURE__ */ jsx(ReplayIcon, { sx: { fontSize: 20 } })
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ jsx(IconButton, { size: "small", title: t("common.clear"), onClick: onClear, children: /* @__PURE__ */ jsx(ClearIcon, { sx: { fontSize: 20 } }) })
|
|
138
|
+
] }) : /* @__PURE__ */ jsx(IconButton, { size: "small", title: t("tableChat.fileUploader.removeFile"), onClick: onClear, children: /* @__PURE__ */ jsx(CloseIcon, { sx: { fontSize: 20 } }) })
|
|
120
139
|
] }),
|
|
121
140
|
isLoading && /* @__PURE__ */ jsx("div", { className: "loading-overlay", children: /* @__PURE__ */ jsx(CircularProgress, { size: 20 }) }),
|
|
122
|
-
isError && /* @__PURE__ */ jsx(Typography, { className: "error-message", children:
|
|
141
|
+
isError && /* @__PURE__ */ jsx(Typography, { className: "error-message", children: resolvedErrorMessage })
|
|
123
142
|
] });
|
|
124
143
|
};
|
|
125
144
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.tsx"],"names":[],"mappings":"AAgGA;;GAEG;AACH,QAAA,MAAM,aAAa,GAAI;;;;;;CAAuD,
|
|
1
|
+
{"version":3,"file":"ImageUploader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.tsx"],"names":[],"mappings":"AAgGA;;GAEG;AACH,QAAA,MAAM,aAAa,GAAI;;;;;;CAAuD,4CAwD7E,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
2
3
|
import Box from "../../../../../node_modules/@mui/material/Box/Box.js";
|
|
3
4
|
import CircularProgress from "../../../../../node_modules/@mui/material/CircularProgress/CircularProgress.js";
|
|
4
5
|
import IconButton from "../../../../../node_modules/@mui/material/IconButton/IconButton.js";
|
|
@@ -86,11 +87,12 @@ const injectStyles = () => {
|
|
|
86
87
|
};
|
|
87
88
|
injectStyles();
|
|
88
89
|
const ImageUploader = ({ image, isLoading, isError, handleClear, handleRetry }) => {
|
|
90
|
+
const { t } = useTranslation();
|
|
89
91
|
return /* @__PURE__ */ jsxs(Box, { className: `image-uploader-container ${isError ? "error" : ""}`, children: [
|
|
90
92
|
(image || isLoading || isError) && /* @__PURE__ */ jsx(
|
|
91
93
|
"img",
|
|
92
94
|
{
|
|
93
|
-
alt: "
|
|
95
|
+
alt: t("tableChat.imageUploader.preview"),
|
|
94
96
|
className: "image-preview",
|
|
95
97
|
src: image || "https://placehold.co/200x200?text=Preview"
|
|
96
98
|
}
|
|
@@ -98,11 +100,35 @@ const ImageUploader = ({ image, isLoading, isError, handleClear, handleRetry })
|
|
|
98
100
|
(isLoading || isError) && /* @__PURE__ */ jsxs(Box, { className: "action-overlay", children: [
|
|
99
101
|
isLoading && /* @__PURE__ */ jsx(CircularProgress, { size: 20 }),
|
|
100
102
|
isError && /* @__PURE__ */ jsxs(Box, { className: "error-icons", children: [
|
|
101
|
-
/* @__PURE__ */ jsx(
|
|
102
|
-
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
IconButton,
|
|
105
|
+
{
|
|
106
|
+
"aria-label": t("tableChat.imageUploader.retryUpload"),
|
|
107
|
+
color: "default",
|
|
108
|
+
onClick: handleRetry,
|
|
109
|
+
children: /* @__PURE__ */ jsx(ReplayIcon, { sx: { fontSize: 20 } })
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ jsx("div", { className: "clear-icon-container", children: /* @__PURE__ */ jsx(
|
|
113
|
+
IconButton,
|
|
114
|
+
{
|
|
115
|
+
"aria-label": t("tableChat.imageUploader.clearImage"),
|
|
116
|
+
color: "default",
|
|
117
|
+
onClick: handleClear,
|
|
118
|
+
children: /* @__PURE__ */ jsx(ClearIcon, { sx: { fontSize: 20 } })
|
|
119
|
+
}
|
|
120
|
+
) })
|
|
103
121
|
] })
|
|
104
122
|
] }),
|
|
105
|
-
image && !isLoading && !isError && /* @__PURE__ */ jsx("div", { className: "clear-icon-container", children: /* @__PURE__ */ jsx(
|
|
123
|
+
image && !isLoading && !isError && /* @__PURE__ */ jsx("div", { className: "clear-icon-container", children: /* @__PURE__ */ jsx(
|
|
124
|
+
IconButton,
|
|
125
|
+
{
|
|
126
|
+
"aria-label": t("tableChat.imageUploader.clearImage"),
|
|
127
|
+
color: "default",
|
|
128
|
+
onClick: handleClear,
|
|
129
|
+
children: /* @__PURE__ */ jsx(ClearIcon, { sx: { fontSize: 20 } })
|
|
130
|
+
}
|
|
131
|
+
) })
|
|
106
132
|
] });
|
|
107
133
|
};
|
|
108
134
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinedChatPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.tsx"],"names":[],"mappings":"AAQA,OAAO,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"PinedChatPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.tsx"],"names":[],"mappings":"AAQA,OAAO,yBAAyB,CAAC;AA8KjC,eAAO,MAAM,WAAW,GAAI;;;;;CAK3B,4CAyCA,CAAC"}
|