impact-ui 4.0.1-alpha.2 → 4.0.1-alpha.21
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.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +5 -4
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +5 -7
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +8 -2
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +24 -15
- package/dist/components/Chatbot/newChatComponent.js +1 -1
- package/dist/components/Checkbox/Default.js +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +5 -9
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +8 -12
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -5
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.js +1 -4
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -44
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +204 -166
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -11
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -30
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +225 -180
- package/dist/components/DateRangePicker/index.d.ts +2 -6
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +158 -164
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -12
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +37 -51
- package/dist/components/DateRangePicker/utils.d.ts +13 -39
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +25 -30
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +4 -2
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.js +6 -6
- package/dist/components/Header/index.js +1 -1
- 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 +38 -12
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +100 -43
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +9 -6
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -7
- package/dist/components/Modal/Modal.types.d.ts +12 -1
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- 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 +9 -4
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +169 -47
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Notification/mockData.d.ts.map +1 -1
- 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 +6 -13
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +19 -19
- 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/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSortModal.js +3 -5
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +27 -10
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +6 -10
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +5 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +6 -1
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +2 -3
- package/dist/components/Table/index.d.ts +1 -2
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +156 -112
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +176 -104
- 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 +2 -0
- 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 +2 -1
- package/dist/components/Table/tableSettings.d.ts +2 -1
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +2 -0
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +2 -3
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +18 -22
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -18
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +26 -22
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +4 -52
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -7
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
- 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 +17 -17
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.d.ts → ChatEditedMessageType /ChatEditedMessageType.d.ts } +0 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.js → ChatEditedMessageType /ChatEditedMessageType.js } +2 -4
- 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 +7 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +4 -8
- 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 +18 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +7 -9
- 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 +5 -9
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +6 -18
- 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 +4 -13
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- 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 +10 -4
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +3 -1
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.js +176 -104
- 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 +2 -0
- package/dist/components/TextArea/index.js +1 -1
- 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/object-inspect/index.js +1 -2
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- 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 +5 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableFunctions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"tableFunctions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableFunctions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAkD7F,eAAO,MAAM,oBAAoB,GAAI,WAAM,SAQ1C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAM,EAAE,aAAQ,SAK5C,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,WAAM,SAK9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,eAAU,EAAE,WAAM,EAAE,QAAG,SAM/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqItC,CAAC;AA6BF,eAAO,MAAM,OAAO,+DA25ClB,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,iBAAY,WAgBrD,CAAC"}
|
|
@@ -3,21 +3,22 @@ import { forwardRef, useState, useRef, useEffect, useCallback, useMemo } from "r
|
|
|
3
3
|
import { useSensors, useSensor, MouseSensor, TouchSensor, DndContext, closestCenter } from "@dnd-kit/core";
|
|
4
4
|
import { SortableContext, arrayMove, useSortable } from "@dnd-kit/sortable";
|
|
5
5
|
import { CSS } from "@dnd-kit/utilities";
|
|
6
|
+
import { PersonUser as PersonUser_default, Globe as Globe_default } from "../../node_modules/@impactsmartsuite/impact-icons/dist/index.js";
|
|
6
7
|
import default_1$1 from "../../node_modules/@mui/icons-material/KeyboardArrowDown.js";
|
|
7
8
|
import default_1$3 from "../../node_modules/@mui/icons-material/KeyboardArrowRight.js";
|
|
8
9
|
import default_1 from "../../node_modules/@mui/icons-material/KeyboardArrowUp.js";
|
|
9
10
|
import default_1$2 from "../../node_modules/@mui/icons-material/Search.js";
|
|
10
11
|
import { getAssetUrl } from "../../utils/assetBase.js";
|
|
12
|
+
import { debounce } from "../../utils/debounce.js";
|
|
13
|
+
import { isViewNameUnique } from "../../utils/helper.js";
|
|
14
|
+
import { Badge } from "../Badge/index.js";
|
|
15
|
+
import { Button } from "../Button/index.js";
|
|
11
16
|
import { Checkbox } from "../Checkbox/index.js";
|
|
12
17
|
import { Input } from "../Input/index.js";
|
|
13
|
-
import { Button } from "../Button/index.js";
|
|
14
18
|
import { Modal } from "../Modal/index.js";
|
|
15
19
|
import { Prompt } from "../Prompt/index.js";
|
|
16
20
|
import { RadioButtonGroup } from "../RadioButtonGroup/index.js";
|
|
17
21
|
import { Select } from "../Select/index.js";
|
|
18
|
-
import { Badge } from "../Badge/index.js";
|
|
19
|
-
import { isViewNameUnique } from "../../utils/helper.js";
|
|
20
|
-
import { debounce } from "../../utils/debounce.js";
|
|
21
22
|
import IconButton from "../../node_modules/@mui/material/IconButton/IconButton.js";
|
|
22
23
|
import DragIndicator from "../../node_modules/@mui/icons-material/esm/DragIndicator.js";
|
|
23
24
|
const saveViewIcon = getAssetUrl("icons/saveViewIcon.svg");
|
|
@@ -25,6 +26,15 @@ const saveViewEditIcon = getAssetUrl("icons/saveViewEditIcon.svg");
|
|
|
25
26
|
const saveViewDeleteIcon = getAssetUrl("icons/saveViewDeleteIcon.svg");
|
|
26
27
|
const defaultViewIcon = getAssetUrl("icons/defaultViewIcon.svg");
|
|
27
28
|
const defaultViewActiveIcon = getAssetUrl("icons/defaultViewIconActive.svg");
|
|
29
|
+
const DEFAULT_VIEW_TYPE_ICONS = {
|
|
30
|
+
global: /* @__PURE__ */ jsx(Globe_default, { height: 16, width: 16 }),
|
|
31
|
+
personal: /* @__PURE__ */ jsx(PersonUser_default, { height: 16, width: 16 })
|
|
32
|
+
};
|
|
33
|
+
const getViewTypeIcon = (viewType, viewTypeOptions) => {
|
|
34
|
+
var _a;
|
|
35
|
+
const customIcon = (_a = viewTypeOptions == null ? void 0 : viewTypeOptions.find((option) => option.value === viewType)) == null ? void 0 : _a.icon;
|
|
36
|
+
return customIcon || DEFAULT_VIEW_TYPE_ICONS[viewType] || null;
|
|
37
|
+
};
|
|
28
38
|
const onColMenuFreezeClick = (params) => {
|
|
29
39
|
const { pinned } = params.column;
|
|
30
40
|
if (pinned) {
|
|
@@ -226,12 +236,6 @@ const Columns = forwardRef((props, ref) => {
|
|
|
226
236
|
const isColumnPinnedRef = useRef(false);
|
|
227
237
|
useEffect(() => {
|
|
228
238
|
const views = props.savedViewsOptions ?? [];
|
|
229
|
-
const options = views.map((view) => ({
|
|
230
|
-
label: view.viewName,
|
|
231
|
-
value: view.viewName,
|
|
232
|
-
disabled: view == null ? void 0 : view.isDisabled
|
|
233
|
-
}));
|
|
234
|
-
setCurrentSaveViewOptions(options);
|
|
235
239
|
setSavedViewsOptions(views);
|
|
236
240
|
setFilteredSavedViewsOptions(views);
|
|
237
241
|
setSelectedView(views.filter((view) => view.isActive));
|
|
@@ -239,7 +243,40 @@ const Columns = forwardRef((props, ref) => {
|
|
|
239
243
|
setOpenSaveViewMenu(false);
|
|
240
244
|
setSaveViewSearchText("");
|
|
241
245
|
}
|
|
242
|
-
|
|
246
|
+
const matchingViews = views.filter(
|
|
247
|
+
(view) => !selectedViewType || view.viewType === selectedViewType
|
|
248
|
+
);
|
|
249
|
+
setCurrentSaveViewOptions(
|
|
250
|
+
views.map((view) => {
|
|
251
|
+
var _a2;
|
|
252
|
+
return {
|
|
253
|
+
label: /* @__PURE__ */ jsxs("div", { className: "save-view-select-option-label", children: [
|
|
254
|
+
getViewTypeIcon(view.viewType, (_a2 = props.saveViewCustomFilter) == null ? void 0 : _a2.options),
|
|
255
|
+
/* @__PURE__ */ jsx("span", { children: view.viewName })
|
|
256
|
+
] }),
|
|
257
|
+
value: view.viewName,
|
|
258
|
+
disabled: view == null ? void 0 : view.isDisabled,
|
|
259
|
+
viewType: view.viewType,
|
|
260
|
+
isDefaultView: view.isDefaultView
|
|
261
|
+
};
|
|
262
|
+
})
|
|
263
|
+
);
|
|
264
|
+
setSelectedSavedView(
|
|
265
|
+
(prev) => (prev == null ? void 0 : prev.value) && matchingViews.some((view) => view.viewName === prev.value) ? prev : null
|
|
266
|
+
);
|
|
267
|
+
}, [props.savedViewsOptions, selectedViewType]);
|
|
268
|
+
useEffect(() => {
|
|
269
|
+
if (selectedSavedView == null ? void 0 : selectedSavedView.value) {
|
|
270
|
+
setInputValue(selectedSavedView.value);
|
|
271
|
+
setSelectedViewType(selectedSavedView.viewType);
|
|
272
|
+
setIsDefaultView(!!selectedSavedView.isDefaultView);
|
|
273
|
+
} else {
|
|
274
|
+
setInputValue("");
|
|
275
|
+
setIsDefaultView(false);
|
|
276
|
+
}
|
|
277
|
+
}, [selectedSavedView]);
|
|
278
|
+
const isReplaceViewSelected = !!(selectedSavedView == null ? void 0 : selectedSavedView.value);
|
|
279
|
+
const isInputValueEmpty = !inputValue.trim();
|
|
243
280
|
const getColumnDefs = useCallback((columns) => {
|
|
244
281
|
return columns.map((column) => {
|
|
245
282
|
if (column.children) {
|
|
@@ -809,21 +846,20 @@ const Columns = forwardRef((props, ref) => {
|
|
|
809
846
|
}
|
|
810
847
|
return;
|
|
811
848
|
}
|
|
849
|
+
const replaceViewName = selectedSavedView == null ? void 0 : selectedSavedView.value;
|
|
850
|
+
const isReplacing = isInputValueEmpty && !!replaceViewName;
|
|
812
851
|
const newView = {
|
|
813
|
-
viewName: inputValue,
|
|
852
|
+
viewName: isReplacing ? replaceViewName : inputValue,
|
|
814
853
|
viewType: selectedViewType,
|
|
815
854
|
isDefaultView,
|
|
816
855
|
isActive: true
|
|
817
856
|
};
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
setFilteredSavedViewsOptions(
|
|
823
|
-
|
|
824
|
-
newView
|
|
825
|
-
]);
|
|
826
|
-
(_b2 = props.handleSaveAndApply) == null ? void 0 : _b2.call(props, newView, selectedSavedView == null ? void 0 : selectedSavedView.value);
|
|
857
|
+
const applyToViews = (prev) => isReplacing ? prev.map(
|
|
858
|
+
(view) => view.viewName === replaceViewName && view.viewType === selectedViewType ? { ...view, ...newView } : { ...view, isActive: false }
|
|
859
|
+
) : [...prev.map((view) => ({ ...view, isActive: false })), newView];
|
|
860
|
+
setSavedViewsOptions(applyToViews);
|
|
861
|
+
setFilteredSavedViewsOptions(applyToViews);
|
|
862
|
+
(_b2 = props.handleSaveAndApply) == null ? void 0 : _b2.call(props, newView, replaceViewName);
|
|
827
863
|
};
|
|
828
864
|
useEffect(() => {
|
|
829
865
|
var _a2;
|
|
@@ -901,6 +937,18 @@ const Columns = forwardRef((props, ref) => {
|
|
|
901
937
|
);
|
|
902
938
|
setSelectedView(view);
|
|
903
939
|
};
|
|
940
|
+
const nameConflictExcludeView = isEditView ? editedView : (selectedSavedView == null ? void 0 : selectedSavedView.value) ? {
|
|
941
|
+
viewName: selectedSavedView.value,
|
|
942
|
+
viewType: selectedSavedView.viewType
|
|
943
|
+
} : null;
|
|
944
|
+
const nameConflict = !props.isSavingViewLoading && !isInputValueEmpty && !isViewNameUnique(
|
|
945
|
+
inputValue,
|
|
946
|
+
selectedViewType,
|
|
947
|
+
isDefaultView,
|
|
948
|
+
savedViewsOptions,
|
|
949
|
+
nameConflictExcludeView,
|
|
950
|
+
props.isViewNameUniqueAcrossTypes
|
|
951
|
+
);
|
|
904
952
|
return /* @__PURE__ */ jsxs("div", { className: "table-setting-columns-settings", children: [
|
|
905
953
|
props.isSaveViewEnabled && /* @__PURE__ */ jsxs("div", { className: "table-setting-save-view-container", children: [
|
|
906
954
|
savedViewsOptions.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "save-view-icon-title", children: [
|
|
@@ -965,7 +1013,9 @@ const Columns = forwardRef((props, ref) => {
|
|
|
965
1013
|
(_d = (_c = props.saveViewCustomFilter) == null ? void 0 : _c.options) == null ? void 0 : _d.map((option) => /* @__PURE__ */ jsx(
|
|
966
1014
|
Badge,
|
|
967
1015
|
{
|
|
1016
|
+
isIcon: true,
|
|
968
1017
|
color: selectedBadge === option.value ? "info" : "default",
|
|
1018
|
+
icon: getViewTypeIcon(option.value),
|
|
969
1019
|
label: option.label,
|
|
970
1020
|
size: "small",
|
|
971
1021
|
variant: "stroke",
|
|
@@ -987,94 +1037,108 @@ const Columns = forwardRef((props, ref) => {
|
|
|
987
1037
|
onChange: handleSaveViewSearchChange
|
|
988
1038
|
}
|
|
989
1039
|
) }),
|
|
990
|
-
/* @__PURE__ */ jsx("div", { className: "save-view-menu-view-list-container", children: props.customRenderSaveViewContent ? props.customRenderSaveViewContent : filteredSavedViewsOptions.length > 0 && filteredSavedViewsOptions.map((view, idx) =>
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
"
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
next.
|
|
1040
|
+
/* @__PURE__ */ jsx("div", { className: "save-view-menu-view-list-container", children: props.customRenderSaveViewContent ? props.customRenderSaveViewContent : filteredSavedViewsOptions.length > 0 && filteredSavedViewsOptions.map((view, idx) => {
|
|
1041
|
+
var _a2;
|
|
1042
|
+
return /* @__PURE__ */ jsxs(
|
|
1043
|
+
"div",
|
|
1044
|
+
{
|
|
1045
|
+
"aria-label": `Saved view ${view.viewName}`,
|
|
1046
|
+
className: `save-view-menu-view-list-item ${view.isActive ? "active" : ""}`,
|
|
1047
|
+
role: "button",
|
|
1048
|
+
tabIndex: idx === 0 ? 0 : -1,
|
|
1049
|
+
onClick: () => {
|
|
1050
|
+
handleSaveViewClick(view);
|
|
1051
|
+
},
|
|
1052
|
+
onKeyDown: (e) => {
|
|
1053
|
+
const current = e.currentTarget;
|
|
1054
|
+
switch (e.key) {
|
|
1055
|
+
case "Enter":
|
|
1056
|
+
case " ":
|
|
1057
|
+
e.preventDefault();
|
|
1058
|
+
handleSaveViewClick(view);
|
|
1059
|
+
break;
|
|
1060
|
+
case "ArrowDown": {
|
|
1061
|
+
e.preventDefault();
|
|
1062
|
+
const next = current.nextElementSibling;
|
|
1063
|
+
if (next) {
|
|
1064
|
+
next.focus();
|
|
1065
|
+
}
|
|
1066
|
+
break;
|
|
1013
1067
|
}
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1068
|
+
case "ArrowUp": {
|
|
1069
|
+
e.preventDefault();
|
|
1070
|
+
const prev = current.previousElementSibling;
|
|
1071
|
+
if (prev) {
|
|
1072
|
+
prev.focus();
|
|
1073
|
+
}
|
|
1074
|
+
break;
|
|
1021
1075
|
}
|
|
1022
|
-
break;
|
|
1023
1076
|
}
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
onClick: (e) => {
|
|
1035
|
-
handleEditView(view, e);
|
|
1077
|
+
},
|
|
1078
|
+
children: [
|
|
1079
|
+
/* @__PURE__ */ jsxs("span", { className: "save-view-menu-view-list-item-name", children: [
|
|
1080
|
+
/* @__PURE__ */ jsx(
|
|
1081
|
+
"span",
|
|
1082
|
+
{
|
|
1083
|
+
"aria-hidden": "true",
|
|
1084
|
+
className: "save-view-menu-view-list-item-type-icon",
|
|
1085
|
+
title: view.viewType,
|
|
1086
|
+
children: getViewTypeIcon(view.viewType, (_a2 = props.saveViewCustomFilter) == null ? void 0 : _a2.options)
|
|
1036
1087
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1088
|
+
),
|
|
1089
|
+
/* @__PURE__ */ jsx("span", { className: "save-view-menu-view-list-item-name-text", children: view.viewName })
|
|
1090
|
+
] }),
|
|
1091
|
+
/* @__PURE__ */ jsxs("div", { className: "save-view-menu-view-list-item-actions", children: [
|
|
1092
|
+
(view == null ? void 0 : view.isEditable) && /* @__PURE__ */ jsx(
|
|
1093
|
+
"img",
|
|
1094
|
+
{
|
|
1095
|
+
alt: "save-view-edit-icon",
|
|
1096
|
+
src: saveViewEditIcon,
|
|
1097
|
+
onClick: (e) => {
|
|
1098
|
+
handleEditView(view, e);
|
|
1099
|
+
}
|
|
1046
1100
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
e.stopPropagation();
|
|
1057
|
-
e.preventDefault();
|
|
1058
|
-
props.handleSetDefaultView(view);
|
|
1101
|
+
),
|
|
1102
|
+
(view == null ? void 0 : view.isDeletable) && /* @__PURE__ */ jsx(
|
|
1103
|
+
"img",
|
|
1104
|
+
{
|
|
1105
|
+
alt: "save-view-delete-icon",
|
|
1106
|
+
src: saveViewDeleteIcon,
|
|
1107
|
+
onClick: (e) => {
|
|
1108
|
+
handleDeleteView(view, e);
|
|
1109
|
+
}
|
|
1059
1110
|
}
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
e
|
|
1068
|
-
|
|
1069
|
-
|
|
1111
|
+
),
|
|
1112
|
+
!(view == null ? void 0 : view.notReqDefaultView) && ((view == null ? void 0 : view.isDefaultView) ? /* @__PURE__ */ jsx(
|
|
1113
|
+
"img",
|
|
1114
|
+
{
|
|
1115
|
+
alt: "default-view-icon",
|
|
1116
|
+
className: "default-view-active-icon",
|
|
1117
|
+
src: defaultViewActiveIcon,
|
|
1118
|
+
onClick: (e) => {
|
|
1119
|
+
e.stopPropagation();
|
|
1120
|
+
e.preventDefault();
|
|
1121
|
+
props.handleSetDefaultView(view);
|
|
1122
|
+
}
|
|
1070
1123
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1124
|
+
) : /* @__PURE__ */ jsx(
|
|
1125
|
+
"img",
|
|
1126
|
+
{
|
|
1127
|
+
alt: "default-view-icon",
|
|
1128
|
+
src: defaultViewIcon,
|
|
1129
|
+
onClick: (e) => {
|
|
1130
|
+
e.stopPropagation();
|
|
1131
|
+
e.preventDefault();
|
|
1132
|
+
props.handleSetDefaultView(view);
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
))
|
|
1136
|
+
] })
|
|
1137
|
+
]
|
|
1138
|
+
},
|
|
1139
|
+
view.viewName + idx
|
|
1140
|
+
);
|
|
1141
|
+
}) }),
|
|
1078
1142
|
/* @__PURE__ */ jsx("hr", { className: "save-view-menu-view-list-item-divider" }),
|
|
1079
1143
|
/* @__PURE__ */ jsxs("div", { className: "save-view-menu-footer", children: [
|
|
1080
1144
|
/* @__PURE__ */ jsx(
|
|
@@ -1114,7 +1178,7 @@ const Columns = forwardRef((props, ref) => {
|
|
|
1114
1178
|
open: openSaveViewModal,
|
|
1115
1179
|
primaryButtonLabel: props.isSavingViewLoading ? "Saving..." : "Save",
|
|
1116
1180
|
primaryButtonProps: {
|
|
1117
|
-
disabled: (
|
|
1181
|
+
disabled: (isInputValueEmpty || props.maxSavedViews != null && savedViewsOptions.length >= props.maxSavedViews) && !isReplaceViewSelected || nameConflict || props.isSavingViewLoading,
|
|
1118
1182
|
loading: props.isSavingViewLoading,
|
|
1119
1183
|
iconPlacement: "right"
|
|
1120
1184
|
},
|
|
@@ -1134,8 +1198,13 @@ const Columns = forwardRef((props, ref) => {
|
|
|
1134
1198
|
/* @__PURE__ */ jsx("div", { className: "save-view-modal-children-body-input", children: /* @__PURE__ */ jsx(
|
|
1135
1199
|
Input,
|
|
1136
1200
|
{
|
|
1201
|
+
helperText: nameConflict ? "A view with this name already exists" : "",
|
|
1202
|
+
isDisabled: isReplaceViewSelected,
|
|
1203
|
+
isError: nameConflict,
|
|
1204
|
+
isHelperText: nameConflict,
|
|
1137
1205
|
label: "New view name",
|
|
1138
1206
|
placeholder: "Enter here",
|
|
1207
|
+
readOnly: isReplaceViewSelected,
|
|
1139
1208
|
value: inputValue,
|
|
1140
1209
|
onChange: (e) => {
|
|
1141
1210
|
setInputValue(e.target.value);
|
|
@@ -1148,6 +1217,7 @@ const Columns = forwardRef((props, ref) => {
|
|
|
1148
1217
|
/* @__PURE__ */ jsx(
|
|
1149
1218
|
RadioButtonGroup,
|
|
1150
1219
|
{
|
|
1220
|
+
isDisabled: isReplaceViewSelected,
|
|
1151
1221
|
options: (_f = (_e = props.saveViewCustomFilter) == null ? void 0 : _e.options) == null ? void 0 : _f.filter(
|
|
1152
1222
|
(option) => !(option == null ? void 0 : option.notReqInSaveView)
|
|
1153
1223
|
),
|
|
@@ -1163,6 +1233,7 @@ const Columns = forwardRef((props, ref) => {
|
|
|
1163
1233
|
Checkbox,
|
|
1164
1234
|
{
|
|
1165
1235
|
checked: isDefaultView,
|
|
1236
|
+
disabled: isReplaceViewSelected,
|
|
1166
1237
|
label: "Make it default view",
|
|
1167
1238
|
onChange: () => {
|
|
1168
1239
|
setIsDefaultView(!isDefaultView);
|
|
@@ -1173,10 +1244,11 @@ const Columns = forwardRef((props, ref) => {
|
|
|
1173
1244
|
/* @__PURE__ */ jsx("div", { className: "save-view-modal-children-body-replace-view-select", children: /* @__PURE__ */ jsx(
|
|
1174
1245
|
Select,
|
|
1175
1246
|
{
|
|
1247
|
+
isClearable: true,
|
|
1176
1248
|
withPortal: true,
|
|
1177
1249
|
currentOptions: currentSaveViewOptions,
|
|
1178
1250
|
initialOptions: currentSaveViewOptions,
|
|
1179
|
-
isDisabled: savedViewsOptions.length === 0 ||
|
|
1251
|
+
isDisabled: savedViewsOptions.length === 0 || !isInputValueEmpty && !isReplaceViewSelected || isEditView,
|
|
1180
1252
|
isOpen,
|
|
1181
1253
|
label: "Replace with",
|
|
1182
1254
|
minWidth: "100%",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function TableHeader({ actualRef, colDefs, Columns, tableFontSize, setTableFontSize, rowHeight, setRowHeight, tableHeader, topRightOptions, topLeftOptions, onGlobalSearchClick, cardContainer, onNumberFormatChange, hideRowHeightOptionMenu, showDownloadButton, onDownloadButtonClick, closeButton, handleCloseButtonClick, additionalButtons, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, topCenterOptions, showContentualFilter, showContentualFilterBadge, onContentualFilterClick, contentualFilterProps, contentualFilterComponent, tableActions, onTableActionsTabClick, hideTableFormat, hideTableActions, hideTableSetting, explicitlyCloseTableSetting, customSystemButton, isChatEnabled, handleChatClick, isChatOpen, handleChatClose, chatConfiguration, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, isCommentFeatureEnabled, showCommentBadge, toggleCommentMode, commentMode, hideFontSize, hideNumericFormat, onContentDensityChange, isCommentResolvedAlertOpen, setIsCommentResolvedAlertOpen, showCommentPanel, setShowCommentPanel, customTabInTableSettings, closeTableSettingOnOutsideClick, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, contentualFilterOpenByDefault, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, viewPoint, disableContextualFilter, disableTableSettings, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
1
|
+
export default function TableHeader({ actualRef, colDefs, Columns, tableFontSize, setTableFontSize, rowHeight, setRowHeight, tableHeader, topRightOptions, topLeftOptions, onGlobalSearchClick, cardContainer, onNumberFormatChange, hideRowHeightOptionMenu, showDownloadButton, onDownloadButtonClick, closeButton, handleCloseButtonClick, additionalButtons, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, topCenterOptions, showContentualFilter, showContentualFilterBadge, onContentualFilterClick, contentualFilterProps, contentualFilterComponent, tableActions, onTableActionsTabClick, hideTableFormat, hideTableActions, hideTableSetting, explicitlyCloseTableSetting, customSystemButton, isChatEnabled, handleChatClick, isChatOpen, handleChatClose, chatConfiguration, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, isCommentFeatureEnabled, showCommentBadge, toggleCommentMode, commentMode, hideFontSize, hideNumericFormat, onContentDensityChange, isCommentResolvedAlertOpen, setIsCommentResolvedAlertOpen, showCommentPanel, setShowCommentPanel, customTabInTableSettings, closeTableSettingOnOutsideClick, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, contentualFilterOpenByDefault, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, viewPoint, disableContextualFilter, disableTableSettings, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
2
2
|
actualRef: any;
|
|
3
3
|
colDefs: any;
|
|
4
4
|
Columns: any;
|
|
@@ -66,6 +66,7 @@ export default function TableHeader({ actualRef, colDefs, Columns, tableFontSize
|
|
|
66
66
|
customRenderSaveViewContent: any;
|
|
67
67
|
onTableSettingClick: any;
|
|
68
68
|
deleteViewPromptText: any;
|
|
69
|
+
isViewNameUniqueAcrossTypes: any;
|
|
69
70
|
contentualFilterOpenByDefault: any;
|
|
70
71
|
tableSettingsTitle: any;
|
|
71
72
|
registerTableSettingToggle: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableHeader.tsx"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,qBAA0B,EAC1B,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,kBAAkB,EAClB,aAAoB,EACpB,eAA0B,EAC1B,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC7B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GACnB
|
|
1
|
+
{"version":3,"file":"tableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableHeader.tsx"],"names":[],"mappings":"AAoBA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,gBAAgB,EAChB,oBAAoB,EACpB,yBAAyB,EACzB,uBAAuB,EACvB,qBAA0B,EAC1B,yBAAyB,EACzB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,kBAAkB,EAClB,aAAoB,EACpB,eAA0B,EAC1B,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC7B,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,GACnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,kDAqWA"}
|
|
@@ -81,6 +81,7 @@ function TableHeader({
|
|
|
81
81
|
customRenderSaveViewContent,
|
|
82
82
|
onTableSettingClick,
|
|
83
83
|
deleteViewPromptText,
|
|
84
|
+
isViewNameUniqueAcrossTypes,
|
|
84
85
|
contentualFilterOpenByDefault,
|
|
85
86
|
tableSettingsTitle,
|
|
86
87
|
registerTableSettingToggle,
|
|
@@ -349,6 +350,7 @@ function TableHeader({
|
|
|
349
350
|
isGroupRows,
|
|
350
351
|
isSaveViewEnabled,
|
|
351
352
|
isSavingViewLoading,
|
|
353
|
+
isViewNameUniqueAcrossTypes,
|
|
352
354
|
maxSavedViews,
|
|
353
355
|
numericFormatDefault,
|
|
354
356
|
registerTableSettingToggle,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function TableMoreOptions({ showMenu, extraButtons, hideRowHeightOptionMenu, onRowHeightChange, rowHeight, isGroupRows, actualRef, Columns, handleMenuClick, tableFontSize, setTableFontSize, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, explicitlyCloseTableSetting, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideFontSize, hideNumericFormat, onContentDensityChange, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
1
|
+
export default function TableMoreOptions({ showMenu, extraButtons, hideRowHeightOptionMenu, onRowHeightChange, rowHeight, isGroupRows, actualRef, Columns, handleMenuClick, tableFontSize, setTableFontSize, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, showHideEditableCells, handleShowHideEditableCells, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, explicitlyCloseTableSetting, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideFontSize, hideNumericFormat, onContentDensityChange, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, onAdvanceSortClick, advanceSortEnabled, }: {
|
|
2
2
|
showMenu: any;
|
|
3
3
|
extraButtons: any;
|
|
4
4
|
hideRowHeightOptionMenu: any;
|
|
@@ -42,6 +42,7 @@ export default function TableMoreOptions({ showMenu, extraButtons, hideRowHeight
|
|
|
42
42
|
customRenderSaveViewContent: any;
|
|
43
43
|
onTableSettingClick: any;
|
|
44
44
|
deleteViewPromptText: any;
|
|
45
|
+
isViewNameUniqueAcrossTypes: any;
|
|
45
46
|
tableSettingsTitle: any;
|
|
46
47
|
registerTableSettingToggle: any;
|
|
47
48
|
numericFormatDefault: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableMoreOptions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableMoreOptions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tableMoreOptions.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableMoreOptions.tsx"],"names":[],"mappings":"AAYA,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,QAAQ,EACR,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,SAAS,EACT,OAAO,EACP,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,kBAAyB,GAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,2CA+QA"}
|
|
@@ -4,7 +4,6 @@ import { getAssetUrl } from "../../utils/assetBase.js";
|
|
|
4
4
|
import TableSettings from "./tableSettings.js";
|
|
5
5
|
import { Button } from "../Button/index.js";
|
|
6
6
|
const tableSettingsIcon = getAssetUrl("icons/tableSettingIcon.svg");
|
|
7
|
-
getAssetUrl("icons/compress.svg");
|
|
8
7
|
const tableSortIcon = getAssetUrl("icons/tableSortIcon.svg");
|
|
9
8
|
function TableMoreOptions({
|
|
10
9
|
showMenu,
|
|
@@ -50,6 +49,7 @@ function TableMoreOptions({
|
|
|
50
49
|
customRenderSaveViewContent,
|
|
51
50
|
onTableSettingClick,
|
|
52
51
|
deleteViewPromptText,
|
|
52
|
+
isViewNameUniqueAcrossTypes,
|
|
53
53
|
tableSettingsTitle,
|
|
54
54
|
registerTableSettingToggle,
|
|
55
55
|
numericFormatDefault,
|
|
@@ -291,6 +291,7 @@ function TableMoreOptions({
|
|
|
291
291
|
isDeleteViewLoading,
|
|
292
292
|
isSaveViewEnabled,
|
|
293
293
|
isSavingViewLoading,
|
|
294
|
+
isViewNameUniqueAcrossTypes,
|
|
294
295
|
maxSavedViews,
|
|
295
296
|
numericFormatDefault,
|
|
296
297
|
registerTableSettingToggle,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function TableSettings({ showMenu, Columns, actualRef, tableFontSize, setTableFontSize, handleMenuClick, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideNumericFormat, hideFontSize, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, }: {
|
|
1
|
+
export default function TableSettings({ showMenu, Columns, actualRef, tableFontSize, setTableFontSize, handleMenuClick, onNumberFormatChange, colDefs, setShowMenu, showTableSetting, setShowTableSetting, setTableSettingOpen, tableActions, onTableActionsTabClick, showFilterStrip, hideTableFormat, hideTableActions, savedViewsOptions, handleSaveAndApply, maxSavedViews, handleSavedViewClick, handleEditSaveView, isSaveViewEnabled, isSavingViewLoading, handleDeleteViewClick, isDeleteViewLoading, handleSetDefaultView, hideNumericFormat, hideFontSize, customTabInTableSettings, saveViewCustomFilter, customRenderSaveViewContent, onTableSettingClick, deleteViewPromptText, isViewNameUniqueAcrossTypes, tableSettingsTitle, registerTableSettingToggle, numericFormatDefault, }: {
|
|
2
2
|
showMenu: any;
|
|
3
3
|
Columns: any;
|
|
4
4
|
actualRef: any;
|
|
@@ -33,6 +33,7 @@ export default function TableSettings({ showMenu, Columns, actualRef, tableFontS
|
|
|
33
33
|
customRenderSaveViewContent: any;
|
|
34
34
|
onTableSettingClick: any;
|
|
35
35
|
deleteViewPromptText: any;
|
|
36
|
+
isViewNameUniqueAcrossTypes: any;
|
|
36
37
|
tableSettingsTitle?: string | undefined;
|
|
37
38
|
registerTableSettingToggle: any;
|
|
38
39
|
numericFormatDefault: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tableSettings.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableSettings.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,kBAAqC,EACrC,0BAA0B,EAC1B,oBAAoB,GACrB
|
|
1
|
+
{"version":3,"file":"tableSettings.d.ts","sourceRoot":"","sources":["../../../src/components/Table/tableSettings.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,QAAQ,EACR,OAAO,EACP,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACpB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAqC,EACrC,0BAA0B,EAC1B,oBAAoB,GACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,2CAmKA"}
|
|
@@ -40,6 +40,7 @@ function TableSettings({
|
|
|
40
40
|
customRenderSaveViewContent,
|
|
41
41
|
onTableSettingClick,
|
|
42
42
|
deleteViewPromptText,
|
|
43
|
+
isViewNameUniqueAcrossTypes,
|
|
43
44
|
tableSettingsTitle = "Table Settings",
|
|
44
45
|
registerTableSettingToggle,
|
|
45
46
|
numericFormatDefault
|
|
@@ -72,6 +73,7 @@ function TableSettings({
|
|
|
72
73
|
isDeleteViewLoading,
|
|
73
74
|
isSaveViewEnabled,
|
|
74
75
|
isSavingViewLoading,
|
|
76
|
+
isViewNameUniqueAcrossTypes,
|
|
75
77
|
maxSavedViews,
|
|
76
78
|
savedViewsOptions,
|
|
77
79
|
saveViewCustomFilter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withCommentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Table/withCommentIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withCommentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Table/withCommentIcon.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAI,aAAQ,MAC9B,UAAK,4CAgGd,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import {
|
|
4
|
-
const CommentIndicator = (props) => /* @__PURE__ */ jsx("img", { alt: "", src: getAssetUrl("icons/comment-indicator.svg"), ...props });
|
|
3
|
+
import { CommentIndicator as CommentIndicator_default } from "../../node_modules/@impactsmartsuite/impact-icons/dist/index.js";
|
|
5
4
|
const withCommentIcon = (Renderer) => {
|
|
6
5
|
return (props) => {
|
|
7
6
|
var _a, _b;
|
|
@@ -72,7 +71,7 @@ const withCommentIcon = (Renderer) => {
|
|
|
72
71
|
handleMouseEnter();
|
|
73
72
|
handleCommentIconHover(props);
|
|
74
73
|
},
|
|
75
|
-
children: /* @__PURE__ */ jsx(
|
|
74
|
+
children: /* @__PURE__ */ jsx(CommentIndicator_default, {})
|
|
76
75
|
}
|
|
77
76
|
)
|
|
78
77
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
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}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{display:flex;flex-direction:row;gap:10px;height:100%;width:100%}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
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}#table-chat-side-panel .impact_drawer_container{background:#fff}#table-chat-side-panel .impact_drawer_header{background:#eceefd;border-bottom:1px solid #d9dde7}#table-chat-side-panel .impact_drawer_body{padding:0}.table-chat-container{box-sizing:border-box;display:flex;flex-direction:row;gap:10px;height:100%;overflow:hidden;width:100%}.table-chat-container .table-left-panel-container{flex:0 0 350px;flex-shrink:0;max-width:350px;width:350px}.table-chat-container .table-chat-right-section-container{flex:1 1 0;max-width:100%;min-width:0;width:auto}.empty-container{align-items:center;display:flex;justify-content:center}.empty-container img{height:197px;width:190px}.empty-container p:first-of-type{color:#1f2b4d;font-size:20px;font-style:normal;font-weight:800;line-height:30px}.empty-container p:nth-of-type(2){color:#7a8294;font-size:16px;font-style:normal;font-weight:500;line-height:125%;text-align:center}.loader-padding{padding:16px;width:100%}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
import { EmptyStateImage } from "../EmptyState/EmptyStateImage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableChatSidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/TableChat/TableChatSidePanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableChatSidePanel.d.ts","sourceRoot":"","sources":["../../../src/components/TableChat/TableChatSidePanel.tsx"],"names":[],"mappings":"AAYA,OAAO,kCAAkC,CAAC;AAU1C,QAAA,MAAM,kBAAkB,GAAI;;;;CAA0C,4CA2uBrE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|