impact-ui 4.0.1-alpha.8 → 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/_commonjsHelpers.js +1 -1
- 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/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/global-cache/index.js +4 -5
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-callable/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/lodash/lodash.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/object-inspect/index.js +1 -2
- 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
|
@@ -10,10 +10,11 @@ import { DatePicker } from "../DatePicker/index.js";
|
|
|
10
10
|
import { DateRangePicker } from "../DateRangePicker/index.js";
|
|
11
11
|
import { Input } from "../Input/index.js";
|
|
12
12
|
import { Select } from "../Select/index.js";
|
|
13
|
-
import { syncFiltersWithModal, parseInlineSearchValue, buildFilterModelEntry } from "./filterUtils.js";
|
|
13
|
+
import { isNumericValueColumn, handleNumericKeyDown, isPartialNumericInput, handleNumericPaste, syncFiltersWithModal, parseInlineSearchValue, buildFilterModelEntry } from "./filterUtils.js";
|
|
14
14
|
import { Tooltip } from "../Tooltip/index.js";
|
|
15
|
+
import { useTranslation } from "../../i18n/useTranslation.js";
|
|
15
16
|
import Badge from "../../node_modules/@mui/material/Badge/Badge.js";
|
|
16
|
-
const
|
|
17
|
+
const TableSortIconUrl = getAssetUrl("icons/tableSortIcon.svg");
|
|
17
18
|
const TableSortAscIcon = getAssetUrl("icons/Up.svg");
|
|
18
19
|
const TableSortDescIcon = getAssetUrl("icons/Down.svg");
|
|
19
20
|
function AgGridHeader({
|
|
@@ -27,7 +28,8 @@ function AgGridHeader({
|
|
|
27
28
|
enableHeaderTextWrap = true,
|
|
28
29
|
...rest
|
|
29
30
|
}) {
|
|
30
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa;
|
|
31
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra;
|
|
32
|
+
const { t } = useTranslation();
|
|
31
33
|
if (!rest.column || !rest.api) {
|
|
32
34
|
return null;
|
|
33
35
|
}
|
|
@@ -167,6 +169,20 @@ function AgGridHeader({
|
|
|
167
169
|
const [currentDropdownOptions, setCurrentDropdownOptions] = useState([]);
|
|
168
170
|
const [isSelectAll, setIsSelectAll] = useState(false);
|
|
169
171
|
useEffect(() => {
|
|
172
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
|
|
173
|
+
const columnId = ((_a2 = rest.column) == null ? void 0 : _a2.field) || ((_b2 = rest.column) == null ? void 0 : _b2.colId);
|
|
174
|
+
const currentFilterModel = ((_d2 = (_c2 = rest.api) == null ? void 0 : _c2.getFilterModel) == null ? void 0 : _d2.call(_c2)) || {};
|
|
175
|
+
const existingFilter = currentFilterModel[columnId] ?? currentFilterModel[(_e2 = rest.column) == null ? void 0 : _e2.colId];
|
|
176
|
+
if (existingFilter) {
|
|
177
|
+
onFilterChanged();
|
|
178
|
+
if ((_g2 = (_f2 = rest.column) == null ? void 0 : _f2.colDef) == null ? void 0 : _g2.isSearchable) {
|
|
179
|
+
if (((_i2 = (_h2 = rest.column) == null ? void 0 : _h2.colDef) == null ? void 0 : _i2.filter) === "agDateColumnFilter") {
|
|
180
|
+
setShowDatePicker(true);
|
|
181
|
+
} else {
|
|
182
|
+
setShowInputField(true);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
170
186
|
rest.api.addEventListener("filterChanged", onFilterChanged);
|
|
171
187
|
return () => {
|
|
172
188
|
rest.api.removeEventListener("filterChanged", onFilterChanged);
|
|
@@ -274,6 +290,11 @@ function AgGridHeader({
|
|
|
274
290
|
}, debounceTime),
|
|
275
291
|
[]
|
|
276
292
|
);
|
|
293
|
+
const applySearchText = (value) => {
|
|
294
|
+
setSearchText(value);
|
|
295
|
+
setHasActiveSearch(!!value);
|
|
296
|
+
debouncedHandleSearchChange(value);
|
|
297
|
+
};
|
|
277
298
|
const handleSearch = (e) => {
|
|
278
299
|
var _a2, _b2;
|
|
279
300
|
e.stopPropagation();
|
|
@@ -292,6 +313,7 @@ function AgGridHeader({
|
|
|
292
313
|
setStartDate(null);
|
|
293
314
|
setEndDate(null);
|
|
294
315
|
setHasActiveSearch(false);
|
|
316
|
+
prevSearchValueRef.current = void 0;
|
|
295
317
|
(_a2 = rest.api) == null ? void 0 : _a2.destroyFilter(colId);
|
|
296
318
|
const currentFilterModel = { ...((_b2 = rest.api) == null ? void 0 : _b2.getFilterModel()) || {} };
|
|
297
319
|
delete currentFilterModel[colId];
|
|
@@ -309,6 +331,7 @@ function AgGridHeader({
|
|
|
309
331
|
}
|
|
310
332
|
updateEmptyStateOverlay();
|
|
311
333
|
};
|
|
334
|
+
const isNumericSearchColumn = isNumericValueColumn((_l = rest.column) == null ? void 0 : _l.colDef);
|
|
312
335
|
const MIN_SEARCH_WIDTH = 200;
|
|
313
336
|
const expandColumnIfNeeded = () => {
|
|
314
337
|
var _a2;
|
|
@@ -404,7 +427,7 @@ function AgGridHeader({
|
|
|
404
427
|
colDef.suppressHeaderKeyboardEvent = originalSuppressHeaderKeyboardEventRef.current;
|
|
405
428
|
}
|
|
406
429
|
};
|
|
407
|
-
}, [isInputFocused, (
|
|
430
|
+
}, [isInputFocused, (_m = rest.column) == null ? void 0 : _m.colId]);
|
|
408
431
|
useEffect(() => {
|
|
409
432
|
if (containerRef.current) {
|
|
410
433
|
setContainerHeight(containerRef.current.clientHeight);
|
|
@@ -414,15 +437,15 @@ function AgGridHeader({
|
|
|
414
437
|
"div",
|
|
415
438
|
{
|
|
416
439
|
ref: containerRef,
|
|
417
|
-
className: `custom-ag-header-container ${((
|
|
440
|
+
className: `custom-ag-header-container ${((_o = (_n = rest.column) == null ? void 0 : _n.colDef) == null ? void 0 : _o.checkboxSelection) ? "checkbox-selection" : ""} ${((_q = (_p = rest.column) == null ? void 0 : _p.colDef) == null ? void 0 : _q.customHeaderIcons) || !((_s = (_r = rest.column) == null ? void 0 : _r.colDef) == null ? void 0 : _s.suppressMenu) || ((_u = (_t = rest.column) == null ? void 0 : _t.colDef) == null ? void 0 : _u.isSearchable) ? "with-icons" : ""}`,
|
|
418
441
|
onClick: () => rest.onClick(),
|
|
419
442
|
children: showDatePicker ? /* @__PURE__ */ jsxs("div", { className: `ia-search-input-field ia-search-input-narrow`, children: [
|
|
420
|
-
((
|
|
443
|
+
((_w = (_v = rest.column) == null ? void 0 : _v.colDef) == null ? void 0 : _w.thirdOptionAsDateRangePicker) ? /* @__PURE__ */ jsx(
|
|
421
444
|
DateRangePicker,
|
|
422
445
|
{
|
|
423
446
|
fullWidth: true,
|
|
424
447
|
withPortal: true,
|
|
425
|
-
customIcon: ((
|
|
448
|
+
customIcon: ((_y = (_x = rest.column) == null ? void 0 : _x.colDef) == null ? void 0 : _y.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
426
449
|
default_1,
|
|
427
450
|
{
|
|
428
451
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -439,7 +462,7 @@ function AgGridHeader({
|
|
|
439
462
|
}
|
|
440
463
|
}
|
|
441
464
|
),
|
|
442
|
-
displayFormat: ((
|
|
465
|
+
displayFormat: ((_A = (_z = rest.column) == null ? void 0 : _z.colDef) == null ? void 0 : _A.displayFormat) || "MM-DD-YYYY",
|
|
443
466
|
endDate,
|
|
444
467
|
handleDatesChange: (start, end) => {
|
|
445
468
|
setStartDate(start);
|
|
@@ -472,7 +495,7 @@ function AgGridHeader({
|
|
|
472
495
|
fullWidth: true,
|
|
473
496
|
showMonthYearSelect: true,
|
|
474
497
|
withPortal: true,
|
|
475
|
-
customIcon: ((
|
|
498
|
+
customIcon: ((_C = (_B = rest.column) == null ? void 0 : _B.colDef) == null ? void 0 : _C.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
476
499
|
default_1,
|
|
477
500
|
{
|
|
478
501
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -488,10 +511,10 @@ function AgGridHeader({
|
|
|
488
511
|
}
|
|
489
512
|
}
|
|
490
513
|
),
|
|
491
|
-
displayFormat: ((
|
|
514
|
+
displayFormat: ((_E = (_D = rest.column) == null ? void 0 : _D.colDef) == null ? void 0 : _E.displayFormat) || "MM-DD-YYYY",
|
|
492
515
|
maxDate: /* @__PURE__ */ new Date("2100-12-31"),
|
|
493
516
|
minDate: /* @__PURE__ */ new Date("2000-01-01"),
|
|
494
|
-
placeholder: "
|
|
517
|
+
placeholder: t("table.filter.selectDate"),
|
|
495
518
|
selectedDate,
|
|
496
519
|
setSelectedDate,
|
|
497
520
|
onPrimaryButtonClick: () => {
|
|
@@ -524,9 +547,9 @@ function AgGridHeader({
|
|
|
524
547
|
"div",
|
|
525
548
|
{
|
|
526
549
|
className: `ia-search-input-field ia-search-input-narrow
|
|
527
|
-
${((
|
|
550
|
+
${((_G = (_F = rest.column) == null ? void 0 : _F.colDef) == null ? void 0 : _G.thirdOptionAsDropdown) ? "with-dropdown" : ""}`,
|
|
528
551
|
children: [
|
|
529
|
-
((
|
|
552
|
+
((_I = (_H = rest.column) == null ? void 0 : _H.colDef) == null ? void 0 : _I.thirdOptionAsDropdown) && !((_K = (_J = rest.column) == null ? void 0 : _J.colDef) == null ? void 0 : _K.toShowDuplicateColumnInAdvanceSearch) ? /* @__PURE__ */ jsxs(
|
|
530
553
|
"div",
|
|
531
554
|
{
|
|
532
555
|
id: "ia-select-option-dropdown-container",
|
|
@@ -542,13 +565,13 @@ function AgGridHeader({
|
|
|
542
565
|
{
|
|
543
566
|
currentOptions: currentDropdownOptions,
|
|
544
567
|
dropDownPortalClassName: "ag-select-dropdown-portal",
|
|
545
|
-
initialOptions: (
|
|
568
|
+
initialOptions: (_M = (_L = rest == null ? void 0 : rest.column) == null ? void 0 : _L.colDef) == null ? void 0 : _M.thirdOptionDropdownOptions,
|
|
546
569
|
isClearable: true,
|
|
547
|
-
isMulti: (
|
|
570
|
+
isMulti: (_O = (_N = rest == null ? void 0 : rest.column) == null ? void 0 : _N.colDef) == null ? void 0 : _O.enableMultiSelect,
|
|
548
571
|
isOpen: isDropdownOpen,
|
|
549
572
|
isSelectAll,
|
|
550
|
-
isWithSearch: (
|
|
551
|
-
placeholder: "
|
|
573
|
+
isWithSearch: (_Q = (_P = rest == null ? void 0 : rest.column) == null ? void 0 : _P.colDef) == null ? void 0 : _Q.enableSearch,
|
|
574
|
+
placeholder: t("table.filter.selectOption"),
|
|
552
575
|
selectedOptions: selectedDropdownOption,
|
|
553
576
|
setCurrentOptions: setCurrentDropdownOptions,
|
|
554
577
|
setIsOpen: setIsDropdownOpen,
|
|
@@ -566,7 +589,7 @@ function AgGridHeader({
|
|
|
566
589
|
}
|
|
567
590
|
}
|
|
568
591
|
},
|
|
569
|
-
toggleSelectAll: (
|
|
592
|
+
toggleSelectAll: (_S = (_R = rest == null ? void 0 : rest.column) == null ? void 0 : _R.colDef) == null ? void 0 : _S.enableMultiSelect,
|
|
570
593
|
onClearAll: () => {
|
|
571
594
|
setSelectedDropdownOption(isMultiSelect ? [] : null);
|
|
572
595
|
setHasActiveSearch(false);
|
|
@@ -581,10 +604,10 @@ function AgGridHeader({
|
|
|
581
604
|
},
|
|
582
605
|
withPortal: true,
|
|
583
606
|
minWidth: "100%",
|
|
584
|
-
...(
|
|
607
|
+
...(_U = (_T = rest.column) == null ? void 0 : _T.colDef) == null ? void 0 : _U.selectProps
|
|
585
608
|
}
|
|
586
609
|
),
|
|
587
|
-
((
|
|
610
|
+
((_W = (_V = rest.column) == null ? void 0 : _V.colDef) == null ? void 0 : _W.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
588
611
|
default_1,
|
|
589
612
|
{
|
|
590
613
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -617,9 +640,16 @@ function AgGridHeader({
|
|
|
617
640
|
Input,
|
|
618
641
|
{
|
|
619
642
|
ref: inputRef,
|
|
620
|
-
iconClickOnDisabled: (
|
|
621
|
-
|
|
622
|
-
|
|
643
|
+
iconClickOnDisabled: (_Y = (_X = rest.column) == null ? void 0 : _X.colDef) == null ? void 0 : _Y.toShowDuplicateColumnInAdvanceSearch,
|
|
644
|
+
inputProps: isNumericSearchColumn ? {
|
|
645
|
+
inputMode: "decimal",
|
|
646
|
+
onKeyDown: handleNumericKeyDown,
|
|
647
|
+
onPaste: (e) => {
|
|
648
|
+
handleNumericPaste(e, applySearchText);
|
|
649
|
+
}
|
|
650
|
+
} : void 0,
|
|
651
|
+
isDisabled: (__ = (_Z = rest.column) == null ? void 0 : _Z.colDef) == null ? void 0 : __.toShowDuplicateColumnInAdvanceSearch,
|
|
652
|
+
placeholder: t("common.search"),
|
|
623
653
|
rightIcon: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
624
654
|
searchText.toString().length > 0 && /* @__PURE__ */ jsx(
|
|
625
655
|
default_1$1,
|
|
@@ -632,7 +662,7 @@ function AgGridHeader({
|
|
|
632
662
|
}
|
|
633
663
|
}
|
|
634
664
|
),
|
|
635
|
-
((
|
|
665
|
+
((_aa = (_$ = rest.column) == null ? void 0 : _$.colDef) == null ? void 0 : _aa.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
636
666
|
default_1,
|
|
637
667
|
{
|
|
638
668
|
onClick: () => {
|
|
@@ -651,9 +681,11 @@ function AgGridHeader({
|
|
|
651
681
|
] }),
|
|
652
682
|
value: searchText,
|
|
653
683
|
onChange: (e) => {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
684
|
+
const nextValue = e.target.value;
|
|
685
|
+
if (isNumericSearchColumn && !isPartialNumericInput(nextValue)) {
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
applySearchText(nextValue);
|
|
657
689
|
}
|
|
658
690
|
}
|
|
659
691
|
),
|
|
@@ -677,9 +709,9 @@ function AgGridHeader({
|
|
|
677
709
|
/* @__PURE__ */ jsxs(
|
|
678
710
|
"div",
|
|
679
711
|
{
|
|
680
|
-
className: `ag-header-cell-text ${((
|
|
712
|
+
className: `ag-header-cell-text ${((_ca = (_ba = rest.column) == null ? void 0 : _ba.colDef) == null ? void 0 : _ca.sortable) ? "sortable" : ""} ${enableHeaderTextWrap ? "header-wrap-enabled" : ""}`,
|
|
681
713
|
children: [
|
|
682
|
-
((
|
|
714
|
+
((_ea = (_da = rest.column) == null ? void 0 : _da.colDef) == null ? void 0 : _ea.field) === "Selection" || ((_ga = (_fa = rest.column) == null ? void 0 : _fa.colDef) == null ? void 0 : _ga.checkboxSelection) ? children : /* @__PURE__ */ jsx(
|
|
683
715
|
"div",
|
|
684
716
|
{
|
|
685
717
|
ref: headerTextRef,
|
|
@@ -702,13 +734,13 @@ function AgGridHeader({
|
|
|
702
734
|
)
|
|
703
735
|
}
|
|
704
736
|
),
|
|
705
|
-
(
|
|
706
|
-
((
|
|
737
|
+
(_ia = (_ha = rest.column) == null ? void 0 : _ha.colDef) == null ? void 0 : _ia.headerIcons,
|
|
738
|
+
((_ka = (_ja = rest.column) == null ? void 0 : _ja.colDef) == null ? void 0 : _ka.sortable) && /* @__PURE__ */ jsx(
|
|
707
739
|
"img",
|
|
708
740
|
{
|
|
709
741
|
alt: "TableSortIcon",
|
|
710
742
|
className: "ia-table-sort-icon",
|
|
711
|
-
src: currentSort === "asc" ? TableSortAscIcon : currentSort === "desc" ? TableSortDescIcon :
|
|
743
|
+
src: currentSort === "asc" ? TableSortAscIcon : currentSort === "desc" ? TableSortDescIcon : TableSortIconUrl,
|
|
712
744
|
onClick: onHeaderClick
|
|
713
745
|
}
|
|
714
746
|
)
|
|
@@ -720,10 +752,10 @@ function AgGridHeader({
|
|
|
720
752
|
{
|
|
721
753
|
className: `ia-icon-div ${hasActiveSearch ? "has-active-search" : ""} ${menuVisible ? "menu-visible" : ""}`,
|
|
722
754
|
children: [
|
|
723
|
-
(
|
|
755
|
+
(_na = (_ma = (_la = rest.column) == null ? void 0 : _la.colDef) == null ? void 0 : _ma.customHeaderIcons) == null ? void 0 : _na.map((icon) => {
|
|
724
756
|
return icon;
|
|
725
757
|
}),
|
|
726
|
-
((
|
|
758
|
+
((_pa = (_oa = rest.column) == null ? void 0 : _oa.colDef) == null ? void 0 : _pa.isSearchable) && (hasActiveSearch || !showInputField) && /* @__PURE__ */ jsx(Badge, { invisible: !hasActiveSearch, variant: "dot", children: /* @__PURE__ */ jsx(
|
|
727
759
|
default_1$2,
|
|
728
760
|
{
|
|
729
761
|
fontSize: "small",
|
|
@@ -744,7 +776,7 @@ function AgGridHeader({
|
|
|
744
776
|
} : handleSearch
|
|
745
777
|
}
|
|
746
778
|
) }),
|
|
747
|
-
!((
|
|
779
|
+
!((_ra = (_qa = rest.column) == null ? void 0 : _qa.colDef) == null ? void 0 : _ra.suppressMenu) && /* @__PURE__ */ jsx("div", { className: "custom-ag-header-icons", children: /* @__PURE__ */ jsx(
|
|
748
780
|
"button",
|
|
749
781
|
{
|
|
750
782
|
ref: menuRef,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const CommentsPortal: ({ isOpen, onClose, comments, onAddComment, cellId, position, author, onMouseEnter, onMouseLeave, openedBy, onMenuClick, onMarkAsReadClick, onMarkAsResolvedClick, editCommentText, isLoading, error, onClearError, currentAuthor, editingComment, onUpdateComment, setEditingComment, loadParticipantsAvatar, resolvedComments, messageId, configuration, }: {
|
|
1
|
+
declare const CommentsPortal: ({ isOpen, onClose, comments, onAddComment, cellId, position, author: authorProp, onMouseEnter, onMouseLeave, openedBy, onMenuClick, onMarkAsReadClick, onMarkAsResolvedClick, editCommentText, isLoading, error, onClearError, currentAuthor, editingComment, onUpdateComment, setEditingComment, loadParticipantsAvatar, resolvedComments, messageId, configuration, }: {
|
|
4
2
|
isOpen: any;
|
|
5
3
|
onClose: any;
|
|
6
4
|
comments: any;
|
|
7
5
|
onAddComment: any;
|
|
8
6
|
cellId: any;
|
|
9
7
|
position: any;
|
|
10
|
-
author
|
|
8
|
+
author: any;
|
|
11
9
|
onMouseEnter: any;
|
|
12
10
|
onMouseLeave: any;
|
|
13
11
|
openedBy: any;
|
|
@@ -26,6 +24,6 @@ declare const CommentsPortal: ({ isOpen, onClose, comments, onAddComment, cellId
|
|
|
26
24
|
resolvedComments?: never[] | undefined;
|
|
27
25
|
messageId?: null | undefined;
|
|
28
26
|
configuration: any;
|
|
29
|
-
}) =>
|
|
27
|
+
}) => import('react').ReactPortal | null;
|
|
30
28
|
export default CommentsPortal;
|
|
31
29
|
//# sourceMappingURL=CommentsPortal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentsPortal.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CommentsPortal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CommentsPortal.d.ts","sourceRoot":"","sources":["../../../src/components/Table/CommentsPortal.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,cAAc,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BvB,uCA8WA,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useRef, useEffect } from "react";
|
|
3
|
+
import { MoreHorizontal as MoreHorizontal_default, SuccessFill as SuccessFill_default, SuccessGray as SuccessGray_default, Close as Close_default } from "../../node_modules/@impactsmartsuite/impact-icons/dist/index.js";
|
|
3
4
|
import moment from "moment";
|
|
4
5
|
import { createPortal } from "react-dom";
|
|
5
|
-
import {
|
|
6
|
+
import { getUserAvatarColor } from "../../utils/avatarColor.js";
|
|
7
|
+
import { toInnerHTML } from "../../utils/html.js";
|
|
6
8
|
import { Avatar } from "../Avatar/index.js";
|
|
7
9
|
import { Button } from "../Button/index.js";
|
|
8
10
|
import NoComments from "./NoComments.js";
|
|
9
|
-
import {
|
|
10
|
-
import { toInnerHTML } from "../../utils/html.js";
|
|
11
|
-
const CloseIcon = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/close.svg"), ...props });
|
|
12
|
-
const MenuIcon = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/MoreHorizontal.svg"), ...props });
|
|
13
|
-
const SuccessIcon = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/success-gray.svg"), ...props });
|
|
14
|
-
const SuccessFillIcon = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/success-fill.svg"), ...props });
|
|
11
|
+
import { useTranslation } from "../../i18n/useTranslation.js";
|
|
15
12
|
const CommentsPortal = ({
|
|
16
13
|
isOpen,
|
|
17
14
|
onClose,
|
|
@@ -19,7 +16,7 @@ const CommentsPortal = ({
|
|
|
19
16
|
onAddComment,
|
|
20
17
|
cellId,
|
|
21
18
|
position,
|
|
22
|
-
author
|
|
19
|
+
author: authorProp,
|
|
23
20
|
onMouseEnter,
|
|
24
21
|
onMouseLeave,
|
|
25
22
|
openedBy,
|
|
@@ -41,6 +38,8 @@ const CommentsPortal = ({
|
|
|
41
38
|
messageId = null,
|
|
42
39
|
configuration
|
|
43
40
|
}) => {
|
|
41
|
+
const { t } = useTranslation();
|
|
42
|
+
authorProp || t("table.currentUser");
|
|
44
43
|
if (!isOpen) return null;
|
|
45
44
|
const [openFullReplies, setOpenFullReplies] = useState(openedBy == "click");
|
|
46
45
|
const [adjustedPosition, setAdjustedPosition] = useState(position);
|
|
@@ -177,14 +176,14 @@ const CommentsPortal = ({
|
|
|
177
176
|
},
|
|
178
177
|
children: [
|
|
179
178
|
openFullReplies && /* @__PURE__ */ jsx("div", { className: `comments-portal-header ${(position == null ? void 0 : position.side) == "left" ? "left" : ""}`, children: /* @__PURE__ */ jsxs("div", { className: "comments-portal-header-inner", children: [
|
|
180
|
-
/* @__PURE__ */ jsx("h3", { children: "
|
|
179
|
+
/* @__PURE__ */ jsx("h3", { children: t("table.comments.title") }),
|
|
181
180
|
/* @__PURE__ */ jsxs("div", { className: "comments-portal-header-buttons", children: [
|
|
182
181
|
(comments == null ? void 0 : comments.length) >= 1 && !isResolved && !((configuration == null ? void 0 : configuration.disableMarkAsRead) && (configuration == null ? void 0 : configuration.disableDeleteThread)) && /* @__PURE__ */ jsx(
|
|
183
182
|
Button,
|
|
184
183
|
{
|
|
185
184
|
className: "",
|
|
186
185
|
disabled: false,
|
|
187
|
-
icon: /* @__PURE__ */ jsx(
|
|
186
|
+
icon: /* @__PURE__ */ jsx(MoreHorizontal_default, { fontSize: "small" }),
|
|
188
187
|
iconPlacement: "left",
|
|
189
188
|
size: "small",
|
|
190
189
|
style: {
|
|
@@ -198,7 +197,7 @@ const CommentsPortal = ({
|
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
199
|
),
|
|
201
|
-
!(configuration == null ? void 0 : configuration.disableMarkAsResolved) && (isResolved ? /* @__PURE__ */ jsx(
|
|
200
|
+
!(configuration == null ? void 0 : configuration.disableMarkAsResolved) && (isResolved ? /* @__PURE__ */ jsx(SuccessFill_default, { fontSize: "small" }) : /* @__PURE__ */ jsx(
|
|
202
201
|
"div",
|
|
203
202
|
{
|
|
204
203
|
style: { cursor: "pointer" },
|
|
@@ -206,7 +205,7 @@ const CommentsPortal = ({
|
|
|
206
205
|
e.stopPropagation();
|
|
207
206
|
if (onMarkAsResolvedClick) onMarkAsResolvedClick(cellId, comments);
|
|
208
207
|
},
|
|
209
|
-
children: /* @__PURE__ */ jsx(
|
|
208
|
+
children: /* @__PURE__ */ jsx(SuccessGray_default, { fontSize: "small" })
|
|
210
209
|
}
|
|
211
210
|
)),
|
|
212
211
|
/* @__PURE__ */ jsx(
|
|
@@ -214,7 +213,7 @@ const CommentsPortal = ({
|
|
|
214
213
|
{
|
|
215
214
|
className: "comment-close",
|
|
216
215
|
disabled: false,
|
|
217
|
-
icon: /* @__PURE__ */ jsx(
|
|
216
|
+
icon: /* @__PURE__ */ jsx(Close_default, { fontSize: "large" }),
|
|
218
217
|
iconPlacement: "left",
|
|
219
218
|
size: "small",
|
|
220
219
|
style: {
|
|
@@ -255,7 +254,7 @@ const CommentsPortal = ({
|
|
|
255
254
|
/* @__PURE__ */ jsx("div", { className: "comment-item-author-name", children: comment.author }),
|
|
256
255
|
/* @__PURE__ */ jsxs("div", { className: "comment-item-timestamp", children: [
|
|
257
256
|
formatTimestamp(comment.timestamp),
|
|
258
|
-
comment.isEdited && /* @__PURE__ */ jsx("span", { children: "
|
|
257
|
+
comment.isEdited && /* @__PURE__ */ jsx("span", { children: t("table.comments.edited") })
|
|
259
258
|
] })
|
|
260
259
|
] }),
|
|
261
260
|
openFullReplies && isCurrentAuthor && (!(configuration == null ? void 0 : configuration.disableEditComment) || !(configuration == null ? void 0 : configuration.disableDeleteComment)) && /* @__PURE__ */ jsx(
|
|
@@ -263,7 +262,7 @@ const CommentsPortal = ({
|
|
|
263
262
|
{
|
|
264
263
|
className: "",
|
|
265
264
|
disabled: false,
|
|
266
|
-
icon: /* @__PURE__ */ jsx(
|
|
265
|
+
icon: /* @__PURE__ */ jsx(MoreHorizontal_default, { fontSize: "small" }),
|
|
267
266
|
iconPlacement: "left",
|
|
268
267
|
size: "small",
|
|
269
268
|
style: { backgroundColor: "transparent" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;CAU9B,4CA0RA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React__default, { useState, useMemo, useEffect } from "react";
|
|
3
|
-
import { useForm, useFieldArray } from "react-hook-form";
|
|
3
|
+
import { useForm, useFieldArray, useWatch } from "react-hook-form";
|
|
4
4
|
import NewAdvanceSearchModalItem from "./NewAdvanceSearchModalItem.js";
|
|
5
5
|
import { convertToOptions } from "../../../utils/helper.js";
|
|
6
6
|
import { Button } from "../../Button/index.js";
|
|
7
7
|
import { ButtonGroup } from "../../ButtonGroup/index.js";
|
|
8
8
|
import { Modal } from "../../Modal/index.js";
|
|
9
|
+
import { useTranslation } from "../../../i18n/useTranslation.js";
|
|
9
10
|
import AddOutlined from "../../../node_modules/@mui/icons-material/esm/AddOutlined.js";
|
|
10
11
|
const filterInitialValues = {
|
|
11
12
|
column: { label: "", value: "", type: "text" },
|
|
@@ -23,6 +24,7 @@ const NewAdvanceSearchModal = ({
|
|
|
23
24
|
currentColumnId,
|
|
24
25
|
...args
|
|
25
26
|
}) => {
|
|
27
|
+
const { t } = useTranslation();
|
|
26
28
|
const [activeSearchType, setActiveSearchType] = useState("advanceSearch");
|
|
27
29
|
const onChangeSearchType = (e, val) => {
|
|
28
30
|
e.preventDefault();
|
|
@@ -39,7 +41,6 @@ const NewAdvanceSearchModal = ({
|
|
|
39
41
|
const {
|
|
40
42
|
control,
|
|
41
43
|
handleSubmit,
|
|
42
|
-
watch,
|
|
43
44
|
formState: { isValid: isFormValid },
|
|
44
45
|
setValue,
|
|
45
46
|
getValues,
|
|
@@ -50,14 +51,15 @@ const NewAdvanceSearchModal = ({
|
|
|
50
51
|
name: "filters",
|
|
51
52
|
keyName: "fieldId"
|
|
52
53
|
});
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const columnOptions = useMemo(() => convertToOptions(colDefs || []), [colDefs]);
|
|
55
|
+
const watchedFilters = useWatch({ control, name: "filters" });
|
|
56
|
+
const selectedColumnValues = useMemo(
|
|
57
|
+
() => (watchedFilters || []).map((f) => {
|
|
56
58
|
var _a;
|
|
57
59
|
return (_a = f == null ? void 0 : f.column) == null ? void 0 : _a.value;
|
|
58
|
-
}).filter(Boolean)
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
}).filter(Boolean),
|
|
61
|
+
[watchedFilters]
|
|
62
|
+
);
|
|
61
63
|
const [hasInitializedWithColumnId, setHasInitializedWithColumnId] = useState(false);
|
|
62
64
|
const prevIsAdvanceSearchRef = React__default.useRef(false);
|
|
63
65
|
useEffect(() => {
|
|
@@ -84,8 +86,8 @@ const NewAdvanceSearchModal = ({
|
|
|
84
86
|
}
|
|
85
87
|
);
|
|
86
88
|
if (!hasValidFilters) {
|
|
87
|
-
const
|
|
88
|
-
const existingFilters =
|
|
89
|
+
const formValues = getValues();
|
|
90
|
+
const existingFilters = formValues.filters || [];
|
|
89
91
|
const columnExists = existingFilters.some(
|
|
90
92
|
(filter) => {
|
|
91
93
|
var _a2;
|
|
@@ -130,8 +132,8 @@ const NewAdvanceSearchModal = ({
|
|
|
130
132
|
toggleAdvanceSearch();
|
|
131
133
|
};
|
|
132
134
|
const handleSearchApplyClick = () => {
|
|
133
|
-
const
|
|
134
|
-
const validFilters =
|
|
135
|
+
const formValues = formMethods.getValues().filters || [];
|
|
136
|
+
const validFilters = formValues.filter((filter) => {
|
|
135
137
|
var _a, _b, _c, _d, _e, _f;
|
|
136
138
|
const hasColumn = ((_a = filter == null ? void 0 : filter.column) == null ? void 0 : _a.value) && ((_b = filter == null ? void 0 : filter.column) == null ? void 0 : _b.value) !== null && ((_c = filter == null ? void 0 : filter.column) == null ? void 0 : _c.value) !== "";
|
|
137
139
|
if (activeSearchType === "advanceSearch") {
|
|
@@ -158,17 +160,17 @@ const NewAdvanceSearchModal = ({
|
|
|
158
160
|
className: "ia-table-search-modal",
|
|
159
161
|
height: 400,
|
|
160
162
|
open: isAdvanceSearch,
|
|
161
|
-
primaryButtonLabel: "
|
|
163
|
+
primaryButtonLabel: t("common.apply"),
|
|
162
164
|
primaryButtonProps: {
|
|
163
165
|
type: "submit"
|
|
164
166
|
// disabled: !isFormValid,
|
|
165
167
|
},
|
|
166
|
-
secondaryButtonLabel: args.onSearchSaveClick ? "
|
|
168
|
+
secondaryButtonLabel: args.onSearchSaveClick ? t("table.search.saveSearch") : null,
|
|
167
169
|
secondaryButtonProps: {
|
|
168
170
|
disabled: !isFormValid
|
|
169
171
|
},
|
|
170
172
|
size: "small",
|
|
171
|
-
title: "
|
|
173
|
+
title: t("common.search"),
|
|
172
174
|
width: 850,
|
|
173
175
|
onClose: onCloseModal,
|
|
174
176
|
onPrimaryButtonClick: handleSearchApplyClick,
|
|
@@ -183,11 +185,11 @@ const NewAdvanceSearchModal = ({
|
|
|
183
185
|
{
|
|
184
186
|
options: [
|
|
185
187
|
{
|
|
186
|
-
label: "
|
|
188
|
+
label: t("common.search"),
|
|
187
189
|
value: "search"
|
|
188
190
|
},
|
|
189
191
|
{
|
|
190
|
-
label: "
|
|
192
|
+
label: t("table.search.advanceSearch"),
|
|
191
193
|
value: "advanceSearch"
|
|
192
194
|
}
|
|
193
195
|
],
|
|
@@ -210,7 +212,7 @@ const NewAdvanceSearchModal = ({
|
|
|
210
212
|
e.preventDefault();
|
|
211
213
|
onClearAll();
|
|
212
214
|
},
|
|
213
|
-
children: "
|
|
215
|
+
children: t("common.clearAll")
|
|
214
216
|
}
|
|
215
217
|
)
|
|
216
218
|
] }),
|
|
@@ -223,21 +225,22 @@ const NewAdvanceSearchModal = ({
|
|
|
223
225
|
handleSearchApplyClick();
|
|
224
226
|
},
|
|
225
227
|
children: [
|
|
226
|
-
/* @__PURE__ */ jsx("div", { className: "ia-table-search-content-title", children: "
|
|
228
|
+
/* @__PURE__ */ jsx("div", { className: "ia-table-search-content-title", children: t("table.search.matchAll") }),
|
|
227
229
|
/* @__PURE__ */ jsx(Fragment, { children: fields.map((field, index) => /* @__PURE__ */ jsx(
|
|
228
230
|
NewAdvanceSearchModalItem,
|
|
229
231
|
{
|
|
230
232
|
activeSearchType,
|
|
231
233
|
colDefs,
|
|
234
|
+
columnOptions,
|
|
232
235
|
control,
|
|
233
236
|
currentColumnId,
|
|
234
237
|
field,
|
|
235
238
|
fields,
|
|
236
|
-
filteredColumnsInitialOptions,
|
|
237
239
|
getValues,
|
|
238
240
|
index,
|
|
239
241
|
isLastVisible: fields.length === 1,
|
|
240
|
-
remove
|
|
242
|
+
remove,
|
|
243
|
+
selectedColumnValues
|
|
241
244
|
},
|
|
242
245
|
field.fieldId || field.id
|
|
243
246
|
)) }),
|
|
@@ -249,7 +252,7 @@ const NewAdvanceSearchModal = ({
|
|
|
249
252
|
variant: "secondary",
|
|
250
253
|
onClick: onClearAttributeValue,
|
|
251
254
|
type: "button",
|
|
252
|
-
children: "
|
|
255
|
+
children: t("table.search.clearValues")
|
|
253
256
|
}
|
|
254
257
|
),
|
|
255
258
|
/* @__PURE__ */ jsx(
|
|
@@ -266,7 +269,7 @@ const NewAdvanceSearchModal = ({
|
|
|
266
269
|
});
|
|
267
270
|
},
|
|
268
271
|
variant: "tertiary",
|
|
269
|
-
children: "
|
|
272
|
+
children: t("table.search.addAttribute")
|
|
270
273
|
}
|
|
271
274
|
)
|
|
272
275
|
] })
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
declare const NewAdvanceSearchModalItem: ({ colDefs, control, index, field, remove,
|
|
1
|
+
declare const NewAdvanceSearchModalItem: ({ colDefs, control, index, field, remove, columnOptions, selectedColumnValues, activeSearchType, isLastVisible, currentColumnId, getValues, fields, ...args }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
colDefs: any;
|
|
4
4
|
control: any;
|
|
5
5
|
index: any;
|
|
6
6
|
field: any;
|
|
7
7
|
remove: any;
|
|
8
|
-
|
|
8
|
+
columnOptions: any;
|
|
9
|
+
selectedColumnValues: any;
|
|
9
10
|
activeSearchType: any;
|
|
10
11
|
isLastVisible: any;
|
|
11
12
|
currentColumnId: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewAdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,yBAAyB,GAAI
|
|
1
|
+
{"version":3,"file":"NewAdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,yBAAyB,GAAI;;;;;;;;;;;;;;CAclC,4CA4bA,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|