impact-ui 4.0.1-alpha.9 → 4.0.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/_virtual/North.js +4 -0
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -2
- package/dist/components/AccordionModern/index.js +5 -10
- package/dist/components/BottomSheet/index.js +5 -4
- 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 +27 -33
- 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/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +8 -2
- 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 +52 -26
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +12 -10
- 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/Checkbox/Default.js +1 -1
- package/dist/components/CommentsPanel/CommentsContext.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +23 -24
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +33 -36
- 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.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +5 -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 +30 -23
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.js +15 -13
- 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 +94 -6
- package/dist/components/HomePage/index.d.ts.map +1 -1
- package/dist/components/HomePage/index.js +44 -34
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +3 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.js +11 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +69 -35
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +102 -43
- package/dist/components/KeyboardShortCuts/allSetBox.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +9 -3
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +8 -6
- 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 +20 -15
- 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 +10 -11
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Menu/index.js +18 -8
- package/dist/components/Modal/Modal.types.d.ts +1 -1
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +7 -5
- 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/Notification.types.d.ts +4 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +2 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +22 -13
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +187 -54
- 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 +2 -2
- package/dist/components/Notification/mockData.d.ts.map +1 -1
- package/dist/components/Select/SearchFilter.d.ts.map +1 -1
- package/dist/components/Select/SearchFilter.js +6 -4
- package/dist/components/Select/Select.types.d.ts +4 -6
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +9 -3
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts.map +1 -1
- package/dist/components/Select/hooks/useMenuPosition.js +25 -39
- package/dist/components/Select/hooks/useScrollIntoView.d.ts +2 -1
- package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -1
- package/dist/components/Select/hooks/useScrollIntoView.js +4 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +20 -23
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +49 -38
- 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/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +2 -8
- 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 +37 -35
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +67 -35
- 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 +14 -15
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +26 -23
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +3 -2
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +40 -16
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +7 -6
- 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/agGridLocale.d.ts +33 -0
- package/dist/components/Table/agGridLocale.d.ts.map +1 -0
- package/dist/components/Table/agGridLocale.js +59 -0
- package/dist/components/Table/filterUtils.d.ts +53 -0
- package/dist/components/Table/filterUtils.d.ts.map +1 -1
- package/dist/components/Table/filterUtils.js +74 -0
- package/dist/components/Table/filterUtils.test.d.ts +2 -0
- package/dist/components/Table/filterUtils.test.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +44 -17
- 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 +233 -155
- package/dist/components/Table/tableHeader.d.ts +2 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +24 -13
- package/dist/components/Table/tableMoreOptions.d.ts +2 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +12 -9
- 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 +3 -2
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +19 -14
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +7 -4
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +40 -44
- 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.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +46 -41
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +4 -2
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +5 -11
- 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 +2 -4
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +8 -10
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +14 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +31 -22
- 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 +0 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.js +8 -5
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +14 -13
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +10 -10
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +20 -9
- 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 +34 -31
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +12 -14
- 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 +6 -4
- 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 +19 -25
- 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 +1 -3
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +28 -35
- 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 +7 -4
- 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 +5 -3
- package/dist/components/TableChat/utils/formatChatTimestamp.js +14 -0
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/AgGridHeader.js +15 -6
- 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 +36 -11
- 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 +239 -159
- package/dist/components/TableOld/tableHeader.d.ts +2 -1
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
- package/dist/components/TableOld/tableHeader.js +6 -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/TextArea/index.js +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 +560 -0
- package/dist/locales/de-DE.json.js +504 -0
- package/dist/locales/en-US.json.d.ts +555 -0
- package/dist/locales/en-US.json.js +501 -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/@impactsmartsuite/impact-icons/dist/index.js +5195 -0
- package/dist/node_modules/@mui/icons-material/North.js +17 -0
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +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/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/stories/i18nDemo.d.ts +7 -0
- package/dist/stories/i18nDemo.d.ts.map +1 -0
- package/dist/utils/helper.d.ts +4 -2
- package/dist/utils/helper.d.ts.map +1 -1
- package/dist/utils/helper.js +13 -8
- package/package.json +7 -5
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare const ChatHeaderInfo: ({ title, createdBy, createdAt, chatId, showChatId
|
|
|
3
3
|
createdBy: any;
|
|
4
4
|
createdAt: any;
|
|
5
5
|
chatId: any;
|
|
6
|
-
showChatId
|
|
6
|
+
showChatId?: boolean | undefined;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default ChatHeaderInfo;
|
|
9
9
|
//# sourceMappingURL=ChatHeaderInfo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatHeaderInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatHeaderInfo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,cAAc,GAAI;;;;;;CAA2D,4CAyClF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js
CHANGED
|
@@ -1,23 +1,34 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getAssetUrl } from "../../../../../utils/assetBase.js";
|
|
3
2
|
import { useTextOverflow } from "../../../../../utils/useTextOverflow.js";
|
|
4
3
|
import { Tooltip } from "../../../../Tooltip/index.js";
|
|
5
|
-
|
|
6
|
-
const ChatHeaderInfo = ({ title, createdBy, createdAt, chatId, showChatId }) => {
|
|
7
|
-
const {
|
|
8
|
-
const fullText = `${chatId && showChatId ?
|
|
4
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
5
|
+
const ChatHeaderInfo = ({ title, createdBy, createdAt, chatId, showChatId = false }) => {
|
|
6
|
+
const { t } = useTranslation();
|
|
7
|
+
const fullText = `${chatId && showChatId ? t("tableChat.header.idSegment", { id: chatId.slice(0, 6) }) : ""}${createdBy ? t("tableChat.header.createdBySegment", { createdBy }) : ""}${createdAt ? t("tableChat.header.atSegment", { createdAt }) : ""}`;
|
|
8
|
+
const { textRef: fullTextRef, isOverflowing: isFullTextOverflowing } = useTextOverflow([
|
|
9
|
+
fullText,
|
|
10
|
+
title
|
|
11
|
+
]);
|
|
9
12
|
return /* @__PURE__ */ jsxs("div", { className: "chat-header-content", children: [
|
|
10
|
-
/* @__PURE__ */ jsx("h1", { className: "chat-title", children: title }),
|
|
11
|
-
/* @__PURE__ */ jsx(
|
|
13
|
+
/* @__PURE__ */ jsx("h1", { className: "chat-title chat-text-ellipsis", title, children: title }),
|
|
14
|
+
fullText ? /* @__PURE__ */ jsx("div", { className: "chat-info-outer", children: /* @__PURE__ */ jsx(
|
|
12
15
|
Tooltip,
|
|
13
16
|
{
|
|
14
17
|
isHoverEnabled: isFullTextOverflowing,
|
|
15
18
|
orientation: "bottom",
|
|
16
19
|
title: fullText,
|
|
17
20
|
variant: "tertiary",
|
|
18
|
-
children: /* @__PURE__ */ jsx(
|
|
21
|
+
children: /* @__PURE__ */ jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
ref: fullTextRef,
|
|
25
|
+
className: `chat-info-container ${isFullTextOverflowing ? "chat-text-ellipsis" : ""}`,
|
|
26
|
+
title: isFullTextOverflowing ? fullText : void 0,
|
|
27
|
+
children: fullText
|
|
28
|
+
}
|
|
29
|
+
)
|
|
19
30
|
}
|
|
20
|
-
)
|
|
31
|
+
) }) : null
|
|
21
32
|
] });
|
|
22
33
|
};
|
|
23
34
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
export declare const ChatInput: ({ placeholder, value, onChange, onSend, onAttach, onImageUpload, onEmojiClick, showFormatting, showQuickAction, quickActionLabel, disabled, maxLength, className, messageConfig, isEditMode, editingMessage, onCancelEdit, chatId, }: {
|
|
3
|
-
placeholder
|
|
3
|
+
placeholder: any;
|
|
4
4
|
value: any;
|
|
5
5
|
onChange: any;
|
|
6
6
|
onSend: any;
|
|
@@ -9,7 +9,7 @@ export declare const ChatInput: ({ placeholder, value, onChange, onSend, onAttac
|
|
|
9
9
|
onEmojiClick: any;
|
|
10
10
|
showFormatting?: boolean | undefined;
|
|
11
11
|
showQuickAction?: boolean | undefined;
|
|
12
|
-
quickActionLabel
|
|
12
|
+
quickActionLabel: any;
|
|
13
13
|
disabled?: boolean | undefined;
|
|
14
14
|
maxLength?: number | undefined;
|
|
15
15
|
className?: string | undefined;
|
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;
|
|
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
|
-
!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;margin:0
|
|
2
|
-
import {
|
|
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 { 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,21 +10,20 @@ 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
|
-
|
|
14
|
-
const CheckBlueIcon = getAssetUrl("icons/checkBlueIcon.svg");
|
|
15
|
-
const CheckGreenIcon = getAssetUrl("icons/checkGreeIcon.svg");
|
|
16
|
-
const CheckIcon = getAssetUrl("icons/checkIcon.svg");
|
|
17
|
-
const DeleteRedIcon = getAssetUrl("icons/deleteRedIcon.svg");
|
|
18
|
-
const EditYellowIcon = getAssetUrl("icons/editYellowIcon.svg");
|
|
13
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
19
14
|
const ListIcon = getAssetUrl("icons/listIcon.svg");
|
|
20
|
-
const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
21
15
|
const ThumbsUpIcon = getAssetUrl("icons/thumbsupBlueIcon.svg");
|
|
16
|
+
const CheckGreenIcon = getAssetUrl("icons/checkGreeIcon.svg");
|
|
17
|
+
const EditYellowIcon = getAssetUrl("icons/editYellowIcon.svg");
|
|
18
|
+
const DeleteRedIcon = getAssetUrl("icons/deleteRedIcon.svg");
|
|
19
|
+
const CheckBlueIcon = getAssetUrl("icons/checkBlueIcon.svg");
|
|
22
20
|
const WarningRedIcon = getAssetUrl("icons/warningRedIcon.svg");
|
|
23
21
|
const ThumbsUpYellowIcon = getAssetUrl("icons/thumbsUpYellowIcon.svg");
|
|
22
|
+
const NotAllowedGreenIcon = getAssetUrl("icons/notAllowedGreenIcon.svg");
|
|
24
23
|
const SendIcon = getAssetUrl("icons/sendIcon.svg");
|
|
25
|
-
getAssetUrl("icons/
|
|
24
|
+
const CheckIcon = getAssetUrl("icons/checkIcon.svg");
|
|
26
25
|
const ChatInput = ({
|
|
27
|
-
placeholder
|
|
26
|
+
placeholder,
|
|
28
27
|
value,
|
|
29
28
|
onChange,
|
|
30
29
|
onSend,
|
|
@@ -33,7 +32,7 @@ const ChatInput = ({
|
|
|
33
32
|
onEmojiClick,
|
|
34
33
|
showFormatting = true,
|
|
35
34
|
showQuickAction = true,
|
|
36
|
-
quickActionLabel
|
|
35
|
+
quickActionLabel,
|
|
37
36
|
disabled = false,
|
|
38
37
|
maxLength = 5e3,
|
|
39
38
|
className = "chat-input",
|
|
@@ -44,6 +43,7 @@ const ChatInput = ({
|
|
|
44
43
|
chatId
|
|
45
44
|
}) => {
|
|
46
45
|
var _a, _b, _c, _d, _e, _f;
|
|
46
|
+
const { t } = useTranslation();
|
|
47
47
|
const [message, setMessage] = useState(value || "");
|
|
48
48
|
const [isFocused, setIsFocused] = useState(false);
|
|
49
49
|
const [quickActionAnchorEl, setQuickActionAnchorEl] = useState(null);
|
|
@@ -87,7 +87,7 @@ const ChatInput = ({
|
|
|
87
87
|
const priorityOptions = [
|
|
88
88
|
{
|
|
89
89
|
value: "normal",
|
|
90
|
-
label: "
|
|
90
|
+
label: t("tableChat.priority.normal"),
|
|
91
91
|
icon: /* @__PURE__ */ jsx("img", { src: CheckBlueIcon })
|
|
92
92
|
// onClick: (data) => {
|
|
93
93
|
// setSelectedPriority(data);
|
|
@@ -95,7 +95,7 @@ const ChatInput = ({
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
value: "high",
|
|
98
|
-
label: "
|
|
98
|
+
label: t("tableChat.priority.high"),
|
|
99
99
|
icon: /* @__PURE__ */ jsx("img", { src: WarningRedIcon })
|
|
100
100
|
// onClick: (data) => {
|
|
101
101
|
// setSelectedPriority(data);
|
|
@@ -103,7 +103,7 @@ const ChatInput = ({
|
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
value: "medium",
|
|
106
|
-
label: "
|
|
106
|
+
label: t("tableChat.priority.medium"),
|
|
107
107
|
icon: /* @__PURE__ */ jsx("img", { src: ThumbsUpYellowIcon })
|
|
108
108
|
// onClick: (data) => {
|
|
109
109
|
// setSelectedPriority(data);
|
|
@@ -111,7 +111,7 @@ const ChatInput = ({
|
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
value: "low",
|
|
114
|
-
label: "
|
|
114
|
+
label: t("tableChat.priority.low"),
|
|
115
115
|
icon: /* @__PURE__ */ jsx("img", { src: NotAllowedGreenIcon })
|
|
116
116
|
// onClick: (data) => {
|
|
117
117
|
// setSelectedPriority(data);
|
|
@@ -144,43 +144,43 @@ const ChatInput = ({
|
|
|
144
144
|
const defaultQuickActionMenuOptions = [
|
|
145
145
|
{
|
|
146
146
|
value: "requestReview",
|
|
147
|
-
label: "
|
|
147
|
+
label: t("tableChat.input.requestReview"),
|
|
148
148
|
icon: /* @__PURE__ */ jsx("img", { src: ThumbsUpIcon }),
|
|
149
149
|
// onClick: (data) => {
|
|
150
150
|
// const text = getPrefillText(data);
|
|
151
151
|
// onChange?.(text);
|
|
152
152
|
// },
|
|
153
|
-
prefillText: "
|
|
153
|
+
prefillText: t("tableChat.input.requestReviewText")
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
value: "finalOffer",
|
|
157
|
-
label: "
|
|
157
|
+
label: t("tableChat.input.finalOffer"),
|
|
158
158
|
icon: /* @__PURE__ */ jsx("img", { src: CheckGreenIcon }),
|
|
159
159
|
// onClick: (data) => {
|
|
160
160
|
// const text = getPrefillText(data);
|
|
161
161
|
// onChange?.(text);
|
|
162
162
|
// },
|
|
163
|
-
prefillText: "
|
|
163
|
+
prefillText: t("tableChat.input.finalOfferText")
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
value: "editRequest",
|
|
167
|
-
label: "
|
|
167
|
+
label: t("tableChat.input.editRequest"),
|
|
168
168
|
icon: /* @__PURE__ */ jsx("img", { src: EditYellowIcon }),
|
|
169
169
|
// onClick: (data) => {
|
|
170
170
|
// const text = getPrefillText(data);
|
|
171
171
|
// onChange?.(text);
|
|
172
172
|
// },
|
|
173
|
-
prefillText: "
|
|
173
|
+
prefillText: t("tableChat.input.editRequestText")
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
value: "deleteRequest",
|
|
177
|
-
label: "
|
|
177
|
+
label: t("tableChat.input.deleteRequest"),
|
|
178
178
|
icon: /* @__PURE__ */ jsx("img", { src: DeleteRedIcon }),
|
|
179
179
|
// onClick: (data) => {
|
|
180
180
|
// const text = getPrefillText(data);
|
|
181
181
|
// onChange?.(text);
|
|
182
182
|
// },
|
|
183
|
-
prefillText: "
|
|
183
|
+
prefillText: t("tableChat.input.deleteRequestText")
|
|
184
184
|
}
|
|
185
185
|
];
|
|
186
186
|
const getPrefillText = (value2, selectedArray) => {
|
|
@@ -397,8 +397,11 @@ const ChatInput = ({
|
|
|
397
397
|
}, [message]);
|
|
398
398
|
return /* @__PURE__ */ jsxs("div", { className: `${className} ${isFocused ? "focused" : ""}`, children: [
|
|
399
399
|
isEditMode && editingMessage && /* @__PURE__ */ jsx("div", { className: "edit-mode-indicator", children: /* @__PURE__ */ jsxs("div", { className: "edit-mode-text", children: [
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
|
|
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") })
|
|
402
405
|
] }) }),
|
|
403
406
|
/* @__PURE__ */ jsxs("div", { className: `quick-action-container ${showFormatting ? "show-formatting-enabled" : ""}`, children: [
|
|
404
407
|
showFormatting && /* @__PURE__ */ jsx(
|
|
@@ -434,7 +437,7 @@ const ChatInput = ({
|
|
|
434
437
|
icon: /* @__PURE__ */ jsx("img", { src: ListIcon }),
|
|
435
438
|
variant: "tertiary",
|
|
436
439
|
onClick: handleQuickActionClick,
|
|
437
|
-
children: quickActionLabel
|
|
440
|
+
children: quickActionLabel || t("tableChat.input.quickAction")
|
|
438
441
|
}
|
|
439
442
|
),
|
|
440
443
|
/* @__PURE__ */ jsx(
|
|
@@ -518,7 +521,7 @@ const ChatInput = ({
|
|
|
518
521
|
disabled,
|
|
519
522
|
loadParticipantsAvatar: messageConfig.loadParticipantsAvatar,
|
|
520
523
|
maxLength,
|
|
521
|
-
placeholder: "
|
|
524
|
+
placeholder: t("tableChat.input.mentionPlaceholder"),
|
|
522
525
|
value: getDisplayValue(),
|
|
523
526
|
onChange: handleInputChange,
|
|
524
527
|
onSend: handleSend
|
|
@@ -529,7 +532,7 @@ const ChatInput = ({
|
|
|
529
532
|
/* @__PURE__ */ jsx(
|
|
530
533
|
Button,
|
|
531
534
|
{
|
|
532
|
-
ariaLabel: "
|
|
535
|
+
ariaLabel: t("tableChat.input.markAsDone"),
|
|
533
536
|
className: `${selectedPriority.value && "selected_action_priority"} check-button`,
|
|
534
537
|
icon: /* @__PURE__ */ jsx("img", { className: "check-icon", src: CheckIcon }),
|
|
535
538
|
variant: "tertiary",
|
|
@@ -572,11 +575,11 @@ const ChatInput = ({
|
|
|
572
575
|
/* @__PURE__ */ jsx(
|
|
573
576
|
Button,
|
|
574
577
|
{
|
|
575
|
-
"aria-label": isEditMode ? "
|
|
578
|
+
"aria-label": isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
|
|
576
579
|
disabled: !getTrimmedValue(),
|
|
577
580
|
icon: /* @__PURE__ */ jsx("img", { src: SendIcon }),
|
|
578
581
|
loading: isSending,
|
|
579
|
-
title: isEditMode ? "
|
|
582
|
+
title: isEditMode ? t("tableChat.input.updateMessage") : t("tableChat.input.sendMessage"),
|
|
580
583
|
variant: "primary",
|
|
581
584
|
onClick: handleSend
|
|
582
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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".message-avatar{flex-shrink:0}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
import { ChatAvatar } from "../AvatarGroup/AvatarGroup.js";
|
package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
export declare const ChatMessage: ({ messageId, author, authorName, authorAvatar, content, timestamp, isUser, showActions, showAvatar, isDeleted, edited, deleted, onReply, onReact, onBookmark, onPin, pinned, onMore, onEdit, onMessageDelete, onRefetchMessages, type, priority, actions, className, onThreadClick, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor,
|
|
2
|
+
export declare const ChatMessage: ({ messageId, author, authorName, authorAvatar, content, timestamp, isUser, showActions, showAvatar, isDeleted, edited, deleted, onReply, onReact, onBookmark, onPin, pinned, onMore, onEdit, onMessageDelete, onRefetchMessages, type, priority, actions, className, onThreadClick, isThreadIconVisible, isPinChatIconvisible, isHighlighted, highlightColor, }: {
|
|
3
3
|
messageId: any;
|
|
4
4
|
author: any;
|
|
5
5
|
authorName: any;
|
|
@@ -30,6 +30,5 @@ export declare const ChatMessage: ({ messageId, author, authorName, authorAvatar
|
|
|
30
30
|
isPinChatIconvisible: any;
|
|
31
31
|
isHighlighted?: boolean | undefined;
|
|
32
32
|
highlightColor?: null | undefined;
|
|
33
|
-
showThreeDotIcon: any;
|
|
34
33
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
35
34
|
//# sourceMappingURL=ChatMessage.d.ts.map
|
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":"AAUA,OAAO,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMessage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.tsx"],"names":[],"mappings":"AAUA,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
|
-
!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;display:flex;gap:
|
|
2
|
-
import {
|
|
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 { 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,10 +9,9 @@ import { ChatDeletedMessageType } from "../ChatDeleteMessageType/ChatDeletedMess
|
|
|
9
9
|
import ChatEditedMessageType from "../ChatEditedMessageType/ChatEditedMessageType.js";
|
|
10
10
|
import { ChatMessageAvatar } from "../ChatMessageAvatar/ChatMessageAvatar.js";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
getAssetUrl("icons/unpinedIcon.svg");
|
|
12
|
+
import { useTranslation } from "../../../../../i18n/useTranslation.js";
|
|
14
13
|
const EditIcon = getAssetUrl("icons/pencilIcon.svg");
|
|
15
|
-
getAssetUrl("icons/
|
|
14
|
+
const DeleteIcon = getAssetUrl("icons/deleteIcon.svg");
|
|
16
15
|
const ChatMessage = ({
|
|
17
16
|
messageId,
|
|
18
17
|
author,
|
|
@@ -43,9 +42,9 @@ const ChatMessage = ({
|
|
|
43
42
|
isThreadIconVisible,
|
|
44
43
|
isPinChatIconvisible,
|
|
45
44
|
isHighlighted = false,
|
|
46
|
-
highlightColor = null
|
|
47
|
-
showThreeDotIcon
|
|
45
|
+
highlightColor = null
|
|
48
46
|
}) => {
|
|
47
|
+
const { t } = useTranslation();
|
|
49
48
|
const [moreOptionsAnchorEl, setMoreOptionsAnchorEl] = useState(null);
|
|
50
49
|
const [moreOptionsMenuOpen, setMoreOptionsMenuOpen] = useState(false);
|
|
51
50
|
const [showDeleteModal, setShowDeleteModal] = useState(false);
|
|
@@ -60,7 +59,7 @@ const ChatMessage = ({
|
|
|
60
59
|
// },
|
|
61
60
|
// },
|
|
62
61
|
{
|
|
63
|
-
label: "
|
|
62
|
+
label: t("commentsPanel.edit"),
|
|
64
63
|
value: "edit",
|
|
65
64
|
icon: /* @__PURE__ */ jsx("img", { alt: "edit", src: EditIcon }),
|
|
66
65
|
onClick: () => {
|
|
@@ -79,7 +78,7 @@ const ChatMessage = ({
|
|
|
79
78
|
// },
|
|
80
79
|
// },
|
|
81
80
|
{
|
|
82
|
-
label: "
|
|
81
|
+
label: t("commentsPanel.delete"),
|
|
83
82
|
value: "delete",
|
|
84
83
|
icon: /* @__PURE__ */ jsx("img", { alt: "delete", src: DeleteIcon }),
|
|
85
84
|
onClick: () => {
|
|
@@ -127,7 +126,6 @@ const ChatMessage = ({
|
|
|
127
126
|
isUser,
|
|
128
127
|
pinned,
|
|
129
128
|
priority,
|
|
130
|
-
showThreeDotIcon,
|
|
131
129
|
timestamp,
|
|
132
130
|
visibility: moreOptionsMenuOpen,
|
|
133
131
|
onPin,
|
|
@@ -175,9 +173,9 @@ const ChatMessage = ({
|
|
|
175
173
|
setShowDeleteModal(false);
|
|
176
174
|
},
|
|
177
175
|
isOpen: showDeleteModal,
|
|
178
|
-
primaryButtonLabel: deleting ? "
|
|
179
|
-
secondaryButtonLabel: "
|
|
180
|
-
title: "
|
|
176
|
+
primaryButtonLabel: deleting ? t("commentsPanel.deleting") : t("commentsPanel.delete"),
|
|
177
|
+
secondaryButtonLabel: t("common.cancel"),
|
|
178
|
+
title: t("tableChat.message.deleteConfirmTitle"),
|
|
181
179
|
variant: "error",
|
|
182
180
|
onPrimaryButtonClick: () => {
|
|
183
181
|
handleMsgDelete(messageId);
|
|
@@ -185,7 +183,7 @@ const ChatMessage = ({
|
|
|
185
183
|
onSecondaryButtonClick: () => {
|
|
186
184
|
setShowDeleteModal(false);
|
|
187
185
|
},
|
|
188
|
-
children: "
|
|
186
|
+
children: t("tableChat.message.deleteConfirmMessage")
|
|
189
187
|
}
|
|
190
188
|
)
|
|
191
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
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".date-separator{align-items:center;display:flex;justify-content:center;left:220px;margin:12px 0;padding:4px 8px;position:sticky;top:-10px;transition:opacity .3s ease;width:
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".date-separator{align-items:center;background-color:#fff;display:flex;justify-content:center;left:220px;margin:12px 0;padding:4px 8px 4px 0;position:sticky;top:-10px;transition:opacity .3s ease;width:140px;z-index:999}.date-separator .impact_badges_only_label_stroke{background:linear-gradient(90deg,#f5f5f5 6%,#f5f5f500 120%),#fff;border:1px solid #d9dde7}.date-separator .MuiChip-label,.date-separator .date-text{color:#60697d!important;font-size:12px!important;font-weight:500!important;padding:4px 12px}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
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"
|