pixel-react 1.21.18 → 1.21.19

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.
Files changed (89) hide show
  1. package/lib/StyleGuide/ColorPalette/ColorPalette.d.ts +1 -1
  2. package/lib/StyleGuide/Typography/Typography.d.ts +1 -1
  3. package/lib/components/Accordion/Accordion.d.ts +1 -1
  4. package/lib/components/AddResourceButton/AddResourceButton.d.ts +1 -1
  5. package/lib/components/AddResourceButton/ArrowsButton/ArrowsButton.d.ts +1 -1
  6. package/lib/components/AllProjectsDropdown/AllProjectsDropdown.d.ts +1 -1
  7. package/lib/components/AutoTruncateText/AutoTruncateText.d.ts +1 -1
  8. package/lib/components/BrowserTabs/BrowserTabs.d.ts +1 -1
  9. package/lib/components/Chip/Chip.d.ts +1 -1
  10. package/lib/components/Comments/Comments.d.ts +1 -2
  11. package/lib/components/Comments/childComment/ChildComment.d.ts +1 -1
  12. package/lib/components/DragAndDrop/DragAndDropList.d.ts +2 -2
  13. package/lib/components/EditLabel/EditLabel.d.ts +1 -1
  14. package/lib/components/Editor/DynamicWidthToolTip.d.ts +1 -1
  15. package/lib/components/HOC/LayoutWithDrawer/LayoutWithDrawer.d.ts +1 -1
  16. package/lib/components/HistoryCard/HistoryCard.d.ts +1 -1
  17. package/lib/components/LazyLoad/LazyLoading.d.ts +1 -2
  18. package/lib/components/Loader/Loader.d.ts +1 -1
  19. package/lib/components/MachineInputField/MachineInputField.d.ts +1 -1
  20. package/lib/components/MenuOption/MenuOption.d.ts +1 -1
  21. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -2
  22. package/lib/components/NLPInput/NlpInput.d.ts +1 -1
  23. package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +1 -1
  24. package/lib/components/OverviewModal/overviewModal.js +46 -11
  25. package/lib/components/OverviewModal/overviewModal.js.map +1 -1
  26. package/lib/components/Paper/Paper.d.ts +1 -1
  27. package/lib/components/Search/Search.d.ts +1 -1
  28. package/lib/components/SequentialConnectingBranch/components/Branches/Branches.d.ts +1 -1
  29. package/lib/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.d.ts +1 -1
  30. package/lib/components/StateDropdown/StateDropdown.d.ts +1 -1
  31. package/lib/components/StatusBadge/StatusBadge.d.ts +1 -1
  32. package/lib/components/StatusButton/StatusButton.d.ts +1 -1
  33. package/lib/components/StepsLandingTable/Components/EditComponent.d.ts +1 -1
  34. package/lib/components/StepsLandingTable/Components/RenderNlpInput.d.ts +1 -1
  35. package/lib/components/StepsLandingTable/Components/StepInnerTable.d.ts +1 -1
  36. package/lib/components/StepsLandingTable/Components/StepsTitle.d.ts +1 -1
  37. package/lib/components/StepsLandingTable/constant.d.ts +1 -1
  38. package/lib/components/Table/EditComponent.d.ts +1 -1
  39. package/lib/components/Table/EditComponent.js +6 -6
  40. package/lib/components/Table/EditComponent.js.map +1 -1
  41. package/lib/components/Table/NoDataContent.js +1 -1
  42. package/lib/components/Table/NoDataContent.js.map +1 -1
  43. package/lib/components/Table/Table.js +78 -155
  44. package/lib/components/Table/Table.js.map +1 -1
  45. package/lib/components/Table/Types.d.ts +6 -11
  46. package/lib/components/Table/components/SortableRow.d.ts +1 -1
  47. package/lib/components/Table/components/SortableRow.js +69 -60
  48. package/lib/components/Table/components/SortableRow.js.map +1 -1
  49. package/lib/components/Table/components/TableHeader.d.ts +1 -1
  50. package/lib/components/Table/components/TableHeader.js +15 -20
  51. package/lib/components/Table/components/TableHeader.js.map +1 -1
  52. package/lib/components/Table/components/VirtualizedRows.d.ts +1 -1
  53. package/lib/components/Table/components/VirtualizedRows.js +17 -32
  54. package/lib/components/Table/components/VirtualizedRows.js.map +1 -1
  55. package/lib/components/Table/utils/virtualization.d.ts +3 -10
  56. package/lib/components/Table/utils/virtualization.js +13 -40
  57. package/lib/components/Table/utils/virtualization.js.map +1 -1
  58. package/lib/components/TableTree/Components/TableBody.d.ts +1 -1
  59. package/lib/components/TableTree/Components/TableCell.d.ts +1 -1
  60. package/lib/components/TableTree/Components/TableHead.d.ts +1 -1
  61. package/lib/components/TableTree/Components/TableRow.d.ts +1 -1
  62. package/lib/components/TableTreeFn/Components/TableBody.d.ts +1 -1
  63. package/lib/components/TableTreeFn/Components/TableCell.d.ts +1 -1
  64. package/lib/components/TableTreeFn/Components/TableHead.d.ts +1 -1
  65. package/lib/components/TableTreeFn/Components/TableRow.d.ts +1 -1
  66. package/lib/components/TableWithAccordion/TableWithAccordion.d.ts +1 -1
  67. package/lib/components/TableWithAccordion/TableWithAccordion.js +13 -38
  68. package/lib/components/TableWithAccordion/TableWithAccordion.js.map +1 -1
  69. package/lib/components/TableWithAccordion/types.d.ts +2 -2
  70. package/lib/components/Tabs/Tabs.d.ts +1 -1
  71. package/lib/components/TabsWithSilder/TabsWithSilder.d.ts +1 -1
  72. package/lib/components/TextArea/Textarea.d.ts +1 -1
  73. package/lib/components/Toastify/Toastify.d.ts +1 -1
  74. package/lib/components/VariableInput/VariableInput.d.ts +1 -2
  75. package/lib/index.d.ts +31 -32
  76. package/lib/index.js +17 -9
  77. package/lib/styles.css +1 -1
  78. package/lib/tsconfig.tsbuildinfo +1 -1
  79. package/lib/utils/TreeNavigateUtils/getNavigateToKey.d.ts +1 -1
  80. package/lib/utils/getTopVisibleNodeKey/getTopVisibleNodeKey.d.ts +1 -1
  81. package/lib/utils/getTreeDetails/getTreeDetails.d.ts +1 -1
  82. package/lib/utils/handleTreeExpandAllCollapseAll/handleTreeExpandAllCollapseAll.d.ts +1 -1
  83. package/lib/utils/handleTreeNodeExpandCollapse/handleTreeNodeExpandCollapse.d.ts +1 -1
  84. package/lib/utils/handleTreeNodeSelect/handleTreeNodeSelect.d.ts +1 -1
  85. package/lib/utils/toggleShowHideEntity/toggleShowHideEntity.d.ts +1 -1
  86. package/package.json +2 -2
  87. package/lib/components/Table/utils/TableCell.d.ts +0 -2
  88. package/lib/components/Table/utils/TableCell.js +0 -27
  89. package/lib/components/Table/utils/TableCell.js.map +0 -1
@@ -1,3 +1,3 @@
1
1
  import './ColorPalette.scss';
2
- declare const Colors: () => import("react").JSX.Element;
2
+ declare const Colors: () => import("react/jsx-runtime").JSX.Element;
3
3
  export default Colors;
@@ -1,3 +1,3 @@
1
1
  import './Typography.scss';
2
- declare const Typography: () => import("react").JSX.Element;
2
+ declare const Typography: () => import("react/jsx-runtime").JSX.Element;
3
3
  export default Typography;
@@ -4,5 +4,5 @@ import { AccordionProps } from './types';
4
4
  /**
5
5
  * Accordion UI component
6
6
  */
7
- declare const Accordion: ({ highlightText, headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, accordionStateIconName, AccordionStateIconWidth, AccordionStateIconHeight, isExpand, onClick, className, iconColor, accordionContentStyle, }: AccordionProps) => import("react").JSX.Element;
7
+ declare const Accordion: ({ highlightText, headerTitle, color, minHeight, accordionContent, disable, disableInfoMessage, accordionStateIconName, AccordionStateIconWidth, AccordionStateIconHeight, isExpand, onClick, className, iconColor, accordionContentStyle, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default Accordion;
@@ -1,4 +1,4 @@
1
1
  import './AddResourceButton.scss';
2
2
  import { AddResourceButtonProps } from './type';
3
- declare const AddResourceButton: ({ id, variant, directionalArrow, zIndex, menuOptionZIndex, treeRowRef, onMenuOptionClick, isFromTree, }: AddResourceButtonProps) => import("react").JSX.Element;
3
+ declare const AddResourceButton: ({ id, variant, directionalArrow, zIndex, menuOptionZIndex, treeRowRef, onMenuOptionClick, isFromTree, }: AddResourceButtonProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AddResourceButton;
@@ -2,5 +2,5 @@ import './ArrowsButton.scss';
2
2
  import { DirectionalArrowButtonProps } from '../type';
3
3
  declare const ArrowsButton: ({ direction, menuOptions, onArrowClick, treeRowRef, onMenuOptionClick, menuOptionZIndex, }: DirectionalArrowButtonProps & {
4
4
  isActive: boolean;
5
- }) => import("react").JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
6
  export default ArrowsButton;
@@ -1,4 +1,4 @@
1
1
  import './AllProjectsDropdown.scss';
2
2
  import { AllProjectsDropdownProps } from './types';
3
- declare const AllProjectsDropdown: ({ onClick, onMenuClick, options, selectedOption, selected, placeholder, disabled, }: AllProjectsDropdownProps) => import("react").JSX.Element;
3
+ declare const AllProjectsDropdown: ({ onClick, onMenuClick, options, selectedOption, selected, placeholder, disabled, }: AllProjectsDropdownProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AllProjectsDropdown;
@@ -1,4 +1,4 @@
1
1
  import './AutoTruncateText.scss';
2
2
  import { AutoTruncateTextComponentProps } from './types';
3
- declare const AutoTruncateText: import("react").MemoExoticComponent<({ children, className, lines, interactive, placement, }: AutoTruncateTextComponentProps) => import("react").JSX.Element>;
3
+ declare const AutoTruncateText: import("react").MemoExoticComponent<({ children, className, lines, interactive, placement, }: AutoTruncateTextComponentProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default AutoTruncateText;
@@ -1,5 +1,5 @@
1
1
  import { BrowserTabsProps } from './types';
2
2
  import './BrowserTabs.scss';
3
3
  import '../../assets/styles/_colors.scss';
4
- declare const BrowserTabs: ({ tabsData, activeTabId, onTabClick, onTabClose, onTabAdd, maxTabWidth, showCloseOnActive, maxTabs, enableOverflowTooltip, onTabMouseEnter, onTabMouseLeave, }: BrowserTabsProps) => import("react").JSX.Element;
4
+ declare const BrowserTabs: ({ tabsData, activeTabId, onTabClick, onTabClose, onTabAdd, maxTabWidth, showCloseOnActive, maxTabs, enableOverflowTooltip, onTabMouseEnter, onTabMouseLeave, }: BrowserTabsProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default BrowserTabs;
@@ -1,4 +1,4 @@
1
1
  import './Chip.scss';
2
2
  import { ChipsProps } from './types';
3
- declare const Chip: ({ label, fullText, variant, labelWidth, fullTextWidth, onClick, }: ChipsProps) => import("react").JSX.Element;
3
+ declare const Chip: ({ label, fullText, variant, labelWidth, fullTextWidth, onClick, }: ChipsProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Chip;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import './Comments.scss';
3
2
  import { CommentsProps } from './type';
4
- declare const Comments: ({ commentsData, handleAddComment, handleEditComment, handleDeleteComment, onCommentsDataChange, currentUser, isDisable, userDetails, createdByID, rowBreakCharCount, isVewMode, deleteEnable, showTextarea, autoFocus, }: CommentsProps) => React.JSX.Element;
3
+ declare const Comments: ({ commentsData, handleAddComment, handleEditComment, handleDeleteComment, onCommentsDataChange, currentUser, isDisable, userDetails, createdByID, rowBreakCharCount, isVewMode, deleteEnable, showTextarea, autoFocus, }: CommentsProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default Comments;
@@ -1,4 +1,4 @@
1
1
  import '../Comments.scss';
2
2
  import { CommentProps } from '../type';
3
- declare const ChildComment: ({ handleInsertNode, handleEditNode, handleDeleteNode, comment, depth, isDisable, userDetails, isEditDeleteActionAllowed, createdByID, rowBreakCharCount, isVewMode, deleteEnable, }: CommentProps) => import("react").JSX.Element;
3
+ declare const ChildComment: ({ handleInsertNode, handleEditNode, handleDeleteNode, comment, depth, isDisable, userDetails, isEditDeleteActionAllowed, createdByID, rowBreakCharCount, isVewMode, deleteEnable, }: CommentProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ChildComment;
@@ -3,7 +3,7 @@ interface TaskProps {
3
3
  id: number;
4
4
  title: string;
5
5
  }
6
- export declare const Task: ({ id, title }: TaskProps) => import("react").JSX.Element;
6
+ export declare const Task: ({ id, title }: TaskProps) => import("react/jsx-runtime").JSX.Element;
7
7
  interface ColumnProps {
8
8
  id: string;
9
9
  tasks: {
@@ -16,5 +16,5 @@ interface InputProps {
16
16
  onSubmit: (input: string) => void;
17
17
  }
18
18
  export declare const Input: React.FC<InputProps>;
19
- declare const DragAndDropList: () => import("react").JSX.Element;
19
+ declare const DragAndDropList: () => import("react/jsx-runtime").JSX.Element;
20
20
  export default DragAndDropList;
@@ -1,4 +1,4 @@
1
1
  import './EditLabel.scss';
2
2
  import type { EditLabelProps } from './types';
3
- declare const EditLabel: ({ id, onConfirm, onCancel, handleCustomError, value, label, optionsList, selectedOption, withDropdown, inputFieldWidth, selectFieldWidth, textColor, tooltip, required, isDisable, onClick, highlightText, isEditable, setIsEditable, cursor, isOnBlurTrue, handleOnChange, handleTriggerDoubleClick, truncatedTextCount, truncatedType, confirmIconTooltip, cancelIconTooltip, inlineValidationError, onChangeValidationError, isTableTree, isAutoTruncate, }: EditLabelProps) => import("react").JSX.Element;
3
+ declare const EditLabel: ({ id, onConfirm, onCancel, handleCustomError, value, label, optionsList, selectedOption, withDropdown, inputFieldWidth, selectFieldWidth, textColor, tooltip, required, isDisable, onClick, highlightText, isEditable, setIsEditable, cursor, isOnBlurTrue, handleOnChange, handleTriggerDoubleClick, truncatedTextCount, truncatedType, confirmIconTooltip, cancelIconTooltip, inlineValidationError, onChangeValidationError, isTableTree, isAutoTruncate, }: EditLabelProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default EditLabel;
@@ -2,5 +2,5 @@ import { dynamicObject } from '../ConditionalDropdown/types';
2
2
  interface DynamicWidthTooltipProps {
3
3
  option: dynamicObject;
4
4
  }
5
- export declare const DynamicWidthTooltip: ({ option }: DynamicWidthTooltipProps) => import("react").JSX.Element;
5
+ export declare const DynamicWidthTooltip: ({ option }: DynamicWidthTooltipProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -7,5 +7,5 @@ type LayoutWithDrawerProps = {
7
7
  top?: string;
8
8
  children?: React.ReactNode;
9
9
  };
10
- declare const LayoutWithDrawer: ({ drawerProps, showDrawer, children, zIndex, top, }: LayoutWithDrawerProps) => React.JSX.Element;
10
+ declare const LayoutWithDrawer: ({ drawerProps, showDrawer, children, zIndex, top, }: LayoutWithDrawerProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export default LayoutWithDrawer;
@@ -21,5 +21,5 @@ export interface HistoryCardProps {
21
21
  */
22
22
  profileShortName: string;
23
23
  }
24
- declare const HistoryCard: ({ variant, title, tabTitle, comment, profileShortName, }: HistoryCardProps) => import("react").JSX.Element;
24
+ declare const HistoryCard: ({ variant, title, tabTitle, comment, profileShortName, }: HistoryCardProps) => import("react/jsx-runtime").JSX.Element;
25
25
  export default HistoryCard;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
- declare const LazyLoading: () => React.JSX.Element;
1
+ declare const LazyLoading: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default LazyLoading;
@@ -1,5 +1,5 @@
1
1
  declare const Loader: (details: {
2
2
  name: string;
3
3
  loaderName: string;
4
- }) => import("react").JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Loader;
@@ -1,7 +1,7 @@
1
1
  import './MachineInputField.scss';
2
2
  import { MachineInputFieldProps } from './types';
3
3
  declare const MachineInputField: {
4
- ({ width, options, runCount, className, contentReverse, onClick, modalId, scriptType, readOnly, isMissing, }: MachineInputFieldProps): import("react").JSX.Element;
4
+ ({ width, options, runCount, className, contentReverse, onClick, modalId, scriptType, readOnly, isMissing, }: MachineInputFieldProps): import("react/jsx-runtime").JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default MachineInputField;
@@ -1,4 +1,4 @@
1
1
  import './MenuOption.scss';
2
2
  import { MenuOptionProps } from './types';
3
- declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, optionCardVariant, targetRef, treeRowRef, isAddResourceButton, disabled, alignOption, displayCard, didMouseEntered, tableMenu, dropdownHeight, selectedValue, }: MenuOptionProps) => import("react").JSX.Element;
3
+ declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, optionCardVariant, targetRef, treeRowRef, isAddResourceButton, disabled, alignOption, displayCard, didMouseEntered, tableMenu, dropdownHeight, selectedValue, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MenuOption;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
1
  import './MultiSelect.scss';
3
2
  import { MultiSelectProps } from './MultiSelectTypes';
4
- declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount: initialDisplayCount, isAllSelected, onToggleAllSelect, displayAllSelectedAsText, isAllSelect, placeholderForSearching, variant, onLabelPlusIconClick, className, onSelectButtonClick, labelAccessor, valueAccessor, searchAccessor, withSelectButton, loadMoreOptions, onEnter, maxVisibleChips, onBlur, maxDropdownHeight, dropdownContainerRef, noResultsMessage, chipAccessor, isCloseIconToolTip, }: MultiSelectProps) => React.JSX.Element;
3
+ declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount: initialDisplayCount, isAllSelected, onToggleAllSelect, displayAllSelectedAsText, isAllSelect, placeholderForSearching, variant, onLabelPlusIconClick, className, onSelectButtonClick, labelAccessor, valueAccessor, searchAccessor, withSelectButton, loadMoreOptions, onEnter, maxVisibleChips, onBlur, maxDropdownHeight, dropdownContainerRef, noResultsMessage, chipAccessor, isCloseIconToolTip, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
5
4
  export default MultiSelect;
@@ -1,4 +1,4 @@
1
1
  import { SelectProps } from './types';
2
2
  import './NLPInput.scss';
3
- declare const NlpInput: ({ label, leftIcon, rightIcon, rightIconColor, showLabel, onHelpIconClick, aiIconClick, webServiceClick, containerWidth, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, value, onSelect, chipOptionList, selectedChips, loadMoreOptions, isWebservice, closeInputOnOutsideClick, tooltipText, ChipsAccordionWidth, dropDownMessage, }: SelectProps) => import("react").JSX.Element;
3
+ declare const NlpInput: ({ label, leftIcon, rightIcon, rightIconColor, showLabel, onHelpIconClick, aiIconClick, webServiceClick, containerWidth, optionsList, selectedOption, onChange, errorMsg, className, optionZIndex, disabled, borderRadius, showBorder, required, value, onSelect, chipOptionList, selectedChips, loadMoreOptions, isWebservice, closeInputOnOutsideClick, tooltipText, ChipsAccordionWidth, dropDownMessage, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default NlpInput;
@@ -1,4 +1,4 @@
1
1
  import { NlpDropDownListProps } from './NlpDropDownType';
2
2
  import './NlpDropdown.scss';
3
- declare const NlpDropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, webServiceClick, containerWidth, loadMoreOptions, chipRef, isWebservice, dropDownMessage, }: NlpDropDownListProps) => import("react").JSX.Element;
3
+ declare const NlpDropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, webServiceClick, containerWidth, loadMoreOptions, chipRef, isWebservice, dropDownMessage, }: NlpDropDownListProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default NlpDropdown;
@@ -8,14 +8,17 @@ import './overviewModal.scss';
8
8
  import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
9
9
  const OverviewModal = ({ isOpen, onClose, isMaximized, width = '800px', height = '432px', header, children, zIndex = 999, icons, downloadFileIcon = false, showHeader = true, top = '0', overlay = true, downloadHandler, multiData = [], setSelectedVideo, customStyle, isIframe = false, }) => {
10
10
  const [videos, setVideos] = useState(multiData);
11
+ const [maximizedVideoIndex, setMaximizedVideoIndex] = useState(null);
11
12
  useEffect(() => {
12
13
  if (!checkEmpty(multiData)) {
13
14
  setVideos(multiData);
14
15
  }
16
+ setMaximizedVideoIndex(null);
15
17
  }, [multiData]);
16
18
  useEffect(() => {
17
19
  const handleKeyDown = (event) => {
18
20
  if (event.key === 'Escape') {
21
+ setMaximizedVideoIndex(null);
19
22
  onClose?.();
20
23
  }
21
24
  };
@@ -26,10 +29,23 @@ const OverviewModal = ({ isOpen, onClose, isMaximized, width = '800px', height =
26
29
  document.removeEventListener('keydown', handleKeyDown);
27
30
  };
28
31
  }, [isOpen, onClose]);
29
- if (!isOpen)
32
+ if (!isOpen) {
30
33
  return null;
31
- const isEmptyData = checkEmpty(videos);
32
- const singleClass = videos.length === 1 ? ' image-grid--single' : '';
34
+ }
35
+ const displayedVideos = maximizedVideoIndex !== null
36
+ ? [{
37
+ video: videos[maximizedVideoIndex],
38
+ originalIndex: maximizedVideoIndex,
39
+ }]
40
+ : videos.map((video, index) => ({
41
+ video,
42
+ originalIndex: index,
43
+ }));
44
+ const isEmptyData = checkEmpty(displayedVideos);
45
+ const gridClass = classNames('image-grid', {
46
+ 'image-grid--single': displayedVideos.length === 1,
47
+ 'image-grid--double': displayedVideos.length === 2,
48
+ });
33
49
  const handleVideoEnd = (index) => {
34
50
  setVideos((prev) => {
35
51
  const updated = prev.filter((_, i) => i !== index);
@@ -39,8 +55,14 @@ const OverviewModal = ({ isOpen, onClose, isMaximized, width = '800px', height =
39
55
  return updated;
40
56
  });
41
57
  };
58
+ if (isOpen && videos.length === 0 && isIframe) {
59
+ onClose?.();
60
+ return null;
61
+ }
42
62
  const modalContent = (_jsx("div", { className: "ff-overview-modal-overlay", style: {
43
- background: overlay ? 'var(--modal-background-color)' : undefined,
63
+ background: overlay
64
+ ? 'var(--pop-up-background-blur)'
65
+ : '',
44
66
  zIndex,
45
67
  }, children: _jsxs("div", { className: classNames('ff-overview-modal-container', {
46
68
  'ff-overview-maximized-container': isMaximized,
@@ -51,13 +73,26 @@ const OverviewModal = ({ isOpen, onClose, isMaximized, width = '800px', height =
51
73
  '--modal-top': top,
52
74
  }, children: [showHeader && (_jsxs("div", { className: "ff-overview-modal-header", children: [header, _jsxs("div", { className: "ff-overview-modal-icons", children: [downloadFileIcon && (_jsx(Icon, { width: 16, height: 16, name: "download_file", onClick: downloadHandler })), icons] })] })), _jsx("div", { className: classNames('ff-overview-modal-body', {
53
75
  'ff-overview-modal-body--centered': isEmptyData,
54
- }), children: !isEmptyData ? (_jsx("div", { className: `image-grid${singleClass}`, children: videos.map((video, idx) => (_jsxs("div", { className: "ff-overview-modal-image-item", children: [isIframe ? (_jsx("iframe", { src: video.src, className: "ff-overview-modal-video", height: '100%', width: '100%' })) : (_jsx("video", { src: video.src, autoPlay: true, muted: true, playsInline: true, preload: "auto", controls: false, onEnded: () => handleVideoEnd(idx), className: "ff-overview-modal-video", children: "Your browser does not support the video tag." })), _jsxs("div", { className: "ff-overview-modal-image-name", children: [_jsx(Icon, { name: video.icon || '' }), _jsxs(Typography, { children: [video.machineName, " - ", video.scriptName] })] }), _jsx(Icon, { width: 16, height: 16, className: "ff-overview-modal-image-action", name: "maximize_new", onClick: () => {
55
- const clickedVideo = {
56
- currentVideoData: { ...video, clickedAt: Date.now() },
57
- allVideoData: videos,
58
- };
59
- setSelectedVideo?.(clickedVideo);
60
- } }), _jsxs(Typography, { color: "var(--ff-chip-bg)", className: "ff-overview-modal-scripts", children: [video.currentScripts, "/", video.totalScripts] })] }, `${video.src}-${idx}`))) })) : (children) })] }) }));
76
+ }), children: !isEmptyData ? (_jsx("div", { className: gridClass, children: displayedVideos.map(({ video, originalIndex }) => {
77
+ if (!video) {
78
+ return null;
79
+ }
80
+ return (_jsxs("div", { className: "ff-overview-modal-image-item", children: [isIframe ? (_jsx("iframe", { src: video.src, className: "ff-overview-modal-video", width: "100%", height: "100%" })) : (_jsx("video", { src: video.src, autoPlay: true, muted: true, playsInline: true, preload: "auto", controls: false, onEnded: () => handleVideoEnd(originalIndex), className: "ff-overview-modal-video", children: "Your browser does not support the video tag." })), _jsxs("div", { className: "ff-overview-modal-image-name", children: [_jsx(Icon, { name: video.icon || '' }), _jsxs(Typography, { children: [video.machineName, " - ", video.scriptName] })] }), _jsx(Icon, { width: 16, height: 16, className: "ff-overview-modal-image-action", name: maximizedVideoIndex === originalIndex
81
+ ? 'collapse_icon'
82
+ : 'maximize_new', onClick: () => {
83
+ if (maximizedVideoIndex === originalIndex) {
84
+ setMaximizedVideoIndex(null);
85
+ }
86
+ else {
87
+ setMaximizedVideoIndex(originalIndex);
88
+ }
89
+ const clickedVideo = {
90
+ currentVideoData: { ...video, clickedAt: Date.now() },
91
+ allVideoData: videos,
92
+ };
93
+ setSelectedVideo?.(clickedVideo);
94
+ } }), _jsxs(Typography, { color: "var(--ff-chip-bg)", className: "ff-overview-modal-scripts", children: [video.currentScripts, "/", video.totalScripts] })] }, `${video.src}-${originalIndex}`));
95
+ }) })) : (children) })] }) }));
61
96
  return ReactDOM.createPortal(modalContent, document.body);
62
97
  };
63
98
  export default OverviewModal;
@@ -1 +1 @@
1
- {"version":3,"file":"overviewModal.js","sourceRoot":"","sources":["../../../src/components/OverviewModal/overviewModal.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAE/D,MAAM,aAAa,GAAiC,CAAC,EACnD,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,GAAG,OAAO,EACf,MAAM,GAAG,OAAO,EAChB,MAAM,EACN,QAAQ,EACR,MAAM,GAAG,GAAG,EACZ,KAAK,EACL,gBAAgB,GAAG,KAAK,EACxB,UAAU,GAAG,IAAI,EACjB,GAAG,GAAG,GAAG,EACT,OAAO,GAAG,IAAI,EACd,eAAe,EACf,SAAS,GAAG,EAAE,EACd,gBAAgB,EAChB,WAAW,EACX,QAAQ,GAAG,KAAK,GACjB,EAAE,EAAE;IACH,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEhD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3B,SA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AA8B,aAC3C,KAAC,IAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE,GAAI,EAChC,MAAC,UAAU,eACR,KAAK,CAAC,WAAW,SAAK,KAAK,CAAC,UAAU,IAC5B,IACT,EAEN,KAAC,IAAI,IACH,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,SAAS,EAAC,gCAAgC,EAC1C,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,GAAG,EAAE;wCACZ,MAAM,YAAY,GAAG;4CACnB,gBAAgB,EAAE,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE;4CACrD,YAAY,EAAE,MAAM;yCACrB,CAAC;wCACF,gBAAgB,EAAE,CAAC,YAAY,CAAC,CAAC;oCACnC,CAAC,GACD,EAEF,MAAC,UAAU,IACT,KAAK,EAAC,mBAAmB,EACzB,SAAS,EAAC,2BAA2B,aAEpC,KAAK,CAAC,cAAc,OAAG,KAAK,CAAC,YAAY,IAC/B,KA3CoC,GAAG,KAAK,CAAC,GAAG,IAAI,GAAG,EAAE,CA4ClE,CACP,CAAC,GACE,CACP,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,GACG,IACF,GACF,CACP,CAAC;IAEF,OAAO,QAAQ,CAAC,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"overviewModal.js","sourceRoot":"","sources":["../../../src/components/OverviewModal/overviewModal.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,OAAO,sBAAsB,CAAC;AAC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CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import './Paper.scss';
2
2
  import { PaperProps } from './types';
3
- declare const Paper: ({ children, className, rounded }: PaperProps) => import("react").JSX.Element;
3
+ declare const Paper: ({ children, className, rounded }: PaperProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Paper;
@@ -1,4 +1,4 @@
1
1
  import './Search.scss';
2
2
  import { SearchProps } from './types';
3
- declare const Search: ({ placeholder, onSearch, disabled, width, value, isExpand, onClose, onExpand, showClose, helperText, showToaster, minLength, isAISearch, isAISearchClicked, handleActiveAiSearch, isClear, handleIsClear, style, handleFocus, handleBlur, }: SearchProps) => import("react").JSX.Element;
3
+ declare const Search: ({ placeholder, onSearch, disabled, width, value, isExpand, onClose, onExpand, showClose, helperText, showToaster, minLength, isAISearch, isAISearchClicked, handleActiveAiSearch, isClear, handleIsClear, style, handleFocus, handleBlur, }: SearchProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Search;
@@ -1,4 +1,4 @@
1
1
  import { BranchesProps } from './types';
2
2
  import './Branches.scss';
3
- declare const Branches: ({ machineInstances, rowIndex, machineColumnCount, nextRowMachineInstance, previousRowMachineInstance, onAddBrowser, onDeleteBrowser, onAddRunBrowser, onUpdateDataSetList, onUpdateAddBrowserInstance, addInstanceLabel, scriptType, projectType, readOnly, maxRunCount, }: BranchesProps) => import("react").JSX.Element;
3
+ declare const Branches: ({ machineInstances, rowIndex, machineColumnCount, nextRowMachineInstance, previousRowMachineInstance, onAddBrowser, onDeleteBrowser, onAddRunBrowser, onUpdateDataSetList, onUpdateAddBrowserInstance, addInstanceLabel, scriptType, projectType, readOnly, maxRunCount, }: BranchesProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Branches;
@@ -1,4 +1,4 @@
1
1
  import { ConnectingBranchesProps } from './types';
2
2
  import './ConnectingBranches.scss';
3
- declare const ConnectingBranches: ({ machineBranchInstances, machineColumnCount, machineColumnWidth, onAddBrowser, onDeleteBrowser, onAddRunBrowser, onUpdateDataSetList, onUpdateAddBrowserInstance, addInstanceLabel, scriptType, projectType, readOnly, maxRunCount, }: ConnectingBranchesProps) => import("react").JSX.Element;
3
+ declare const ConnectingBranches: ({ machineBranchInstances, machineColumnCount, machineColumnWidth, onAddBrowser, onDeleteBrowser, onAddRunBrowser, onUpdateDataSetList, onUpdateAddBrowserInstance, addInstanceLabel, scriptType, projectType, readOnly, maxRunCount, }: ConnectingBranchesProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ConnectingBranches;
@@ -1,4 +1,4 @@
1
1
  import { StateDropdownProps } from './StateDropdownTypes';
2
2
  import './StateDropdown.scss';
3
- declare const StateDropdown: ({ value, isReviewer, isApprovePage, handleStateValueClick, handleDropdownOptionsClick, disabled, isOnlyReviewer, showBorder, zIndex, }: StateDropdownProps) => import("react").JSX.Element;
3
+ declare const StateDropdown: ({ value, isReviewer, isApprovePage, handleStateValueClick, handleDropdownOptionsClick, disabled, isOnlyReviewer, showBorder, zIndex, }: StateDropdownProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default StateDropdown;
@@ -8,5 +8,5 @@ declare const StatusBadge: ({ gap, fontSize, entityType, statusValues, }: {
8
8
  value: number;
9
9
  tooltipValue?: number;
10
10
  }[];
11
- }) => import("react").JSX.Element;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
12
  export default StatusBadge;
@@ -1,4 +1,4 @@
1
1
  import './StatusButton.scss';
2
2
  import { StatusButtonProps } from './types';
3
- declare const StatusButton: ({ status, label, onClick, className, style, disabled, useDefaultCursor, displayTooltip, ...props }: StatusButtonProps) => import("react").JSX.Element;
3
+ declare const StatusButton: ({ status, label, onClick, className, style, disabled, useDefaultCursor, displayTooltip, ...props }: StatusButtonProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default StatusButton;
@@ -1,3 +1,3 @@
1
1
  import './EditComponent.scss';
2
- declare const EditComponent: ({ rowData, rowIndex, handleAdd, handleCancel }: any) => import("react").JSX.Element;
2
+ declare const EditComponent: ({ rowData, rowIndex, handleAdd, handleCancel }: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export default EditComponent;
@@ -1,2 +1,2 @@
1
- declare const RenderNlpInput: ({ handelChangeNlp, handleNlpSelect, nlpList, rowIndex, optionZIndex, rowData, }: any) => import("react").JSX.Element;
1
+ declare const RenderNlpInput: ({ handelChangeNlp, handleNlpSelect, nlpList, rowIndex, optionZIndex, rowData, }: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default RenderNlpInput;
@@ -1,4 +1,4 @@
1
1
  import './StepInnerTable.scss';
2
2
  import { StepInnerTableProp } from './Types';
3
- declare const StepInnerTable: ({ data, columns, headerType, withCheckbox, onSelect, withFixedHeader, borderWithRadius, noDataContent, height, className, tableBodyRowClass, headerTextColor, tableDataTextColor, draggable, onDragEnd, loadMore, editMode, editComponent, NlpComponent, AddNlp, handleDragStart, tableType, viewModeId, ViewComponent, handleClick, selectedRows, handleStepGroupExpand, isStepGroupExpanded, stepPartialSelect, isViewPrivilegeMode, isClientSide, highlightKey, onHighlightComplete, }: StepInnerTableProp) => import("react").JSX.Element;
3
+ declare const StepInnerTable: ({ data, columns, headerType, withCheckbox, onSelect, withFixedHeader, borderWithRadius, noDataContent, height, className, tableBodyRowClass, headerTextColor, tableDataTextColor, draggable, onDragEnd, loadMore, editMode, editComponent, NlpComponent, AddNlp, handleDragStart, tableType, viewModeId, ViewComponent, handleClick, selectedRows, handleStepGroupExpand, isStepGroupExpanded, stepPartialSelect, isViewPrivilegeMode, isClientSide, highlightKey, onHighlightComplete, }: StepInnerTableProp) => import("react/jsx-runtime").JSX.Element;
4
4
  export default StepInnerTable;
@@ -1,3 +1,3 @@
1
1
  import '../StepLandingTable.scss';
2
- declare const StepsTitle: ({ isHeaderRequired, isViewPrivilegeMode, onAccordionClick, isBulkEnable, showActionCell, handleMainCheckbox, isAllSelected, isPartialSelected, tableMeta, title, totalRows, expanded, actionCell, row, metaData, isClientSide, isMaximize, }: any) => import("react").JSX.Element;
2
+ declare const StepsTitle: ({ isHeaderRequired, isViewPrivilegeMode, onAccordionClick, isBulkEnable, showActionCell, handleMainCheckbox, isAllSelected, isPartialSelected, tableMeta, title, totalRows, expanded, actionCell, row, metaData, isClientSide, isMaximize, }: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export default StepsTitle;
@@ -467,7 +467,7 @@ export declare const sampleData: ({
467
467
  status: string;
468
468
  cascaded?: undefined;
469
469
  };
470
- actionCell: () => import("react").JSX.Element;
470
+ actionCell: () => import("react/jsx-runtime").JSX.Element;
471
471
  } | {
472
472
  title: string;
473
473
  data: {
@@ -1,3 +1,3 @@
1
1
  import './Table.scss';
2
- declare const EditComponent: ({ rowData, rowIndex, handleSave, handleCancel, }: any) => import("react").JSX.Element;
2
+ declare const EditComponent: ({ rowData, rowIndex, handleSave, handleCancel, }: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export default EditComponent;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import './Table.scss';
3
+ import Button from '../Button';
4
4
  import Typography from '../Typography';
5
5
  import Select from '../Select';
6
- import Button from '../Button';
7
- import { Form } from '../..';
6
+ import Form from '../Form/Forms';
7
+ import './Table.scss';
8
8
  const ifFailedOptionList = [
9
9
  {
10
10
  label: 'Mark this script as Failed and continue dependant script execution',
@@ -32,15 +32,15 @@ const EditComponent = ({ rowData, rowIndex, handleSave, handleCancel, }) => {
32
32
  const [initialFormState] = useState({
33
33
  ifFailed: '',
34
34
  });
35
- return (_jsxs("section", { className: "ff-table-edit-depends", children: [_jsxs("header", { className: "ff-table-edit-depends-header", children: [_jsx("div", { children: _jsxs(Typography, { color: "var(--nlp-option-color)", lineHeight: "18px", children: [rowIndex, ".", rowData?.name] }) }), _jsx("div", { className: "ff-table-edit-depends-header-link", children: _jsx(Typography, { children: "Go to script", color: "var(--nlp-color)", fontWeight: "semi-bold" }) })] }), _jsx(Form, { onSubmit: handleSave, defaultValues: initialFormState, children: ({ register, setValue, formState: { errors }, watch, trigger }) => {
36
- return (_jsxs("div", { className: "ff-table-edit-depends-form", children: [_jsx(Select, { label: "if Failed", optionsList: ifFailedOptionList, ...register('ifFailed'), onChange: (option) => {
35
+ return (_jsxs("section", { className: 'edit_depends_on_script', children: [_jsxs("header", { className: 'edit_depends_on_script__header', children: [_jsx("div", { children: _jsxs(Typography, { color: "var(--nlp-option-color)", lineHeight: "18px", children: [rowIndex, ".", rowData?.name] }) }), _jsx("div", { className: 'edit_depends_on_script__header__link', children: _jsx(Typography, { children: "Go to script", color: "var(--nlp-color)", fontWeight: "semi-bold" }) })] }), _jsx(Form, { onSubmit: handleSave, defaultValues: initialFormState, children: ({ register, setValue, formState: { errors }, watch, trigger }) => {
36
+ return (_jsxs("div", { className: 'edit_depends_on_script__form', children: [_jsx(Select, { label: "if Failed", optionsList: ifFailedOptionList, ...register('ifFailed'), onChange: (option) => {
37
37
  setValue('ifFailed', option.label);
38
38
  }, errorMsg: errors.ifFailed?.message, optionZIndex: 9999, selectedOption: {
39
39
  label: watch('ifFailed'),
40
40
  value: watch('ifFailed'),
41
41
  }, onBlur: () => {
42
42
  trigger('ifFailed');
43
- } }), _jsxs("div", { className: "ff-table-edit-depends-form-button", children: [_jsx(Button, { variant: "tertiary", children: "Cancel", onClick: handleCancel }), _jsx(Button, { variant: "primary", type: "submit", children: "Update" })] })] }));
43
+ } }), _jsxs("div", { className: 'edit_depends_on_script__form__button', children: [_jsx(Button, { variant: "tertiary", children: "Cancel", onClick: handleCancel }), _jsx(Button, { variant: "primary", type: "submit", children: "Update" })] })] }));
44
44
  } })] }));
45
45
  };
46
46
  export default EditComponent;
@@ -1 +1 @@
1
- {"version":3,"file":"EditComponent.js","sourceRoot":"","sources":["../../../src/components/Table/EditComponent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,cAAc,CAAC;AAGtB,OAAO,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CAAC,KAAK,CAAC,CAAC;gCACrC,CAAC,EACD,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,OAAO,EAClC,YAAY,EAAE,IAAI,EAClB,cAAc,EAAE;oCACd,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;oCACxB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;iCACzB,EACD,MAAM,EAAE,GAAG,EAAE;oCACX,OAAO,CAAC,UAAU,CAAC,CAAC;gCACtB,CAAC,GACD,EACF,eAAK,SAAS,EAAE,sCAAsC,aACpD,KAAC,MAAM,IACL,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAE,YAAY,GACrB,EACF,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,GAAG,IACxD,IACF,CACP,CAAC;gBACJ,CAAC,GACI,IACC,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -3,7 +3,7 @@ import './Table.scss';
3
3
  import Icon from '../Icon';
4
4
  import Typography from '../Typography';
5
5
  const NoDataContent = () => {
6
- return (_jsxs("div", { className: "ff-no_data_message", children: [_jsx(Icon, { name: "no_license_found", width: 120, height: 115 }), _jsx(Typography, { fontSize: "24px", lineHeight: "36px", fontWeight: "bold", children: "No Results Found" })] }));
6
+ return (_jsxs("div", { className: "no_data_message", children: [_jsx(Icon, { name: "no_license_found", width: 120, height: 115 }), _jsx(Typography, { fontSize: "24px", lineHeight: "36px", fontWeight: "bold", children: "No Results Found" })] }));
7
7
  };
8
8
  export default NoDataContent;
9
9
  //# sourceMappingURL=NoDataContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NoDataContent.js","sourceRoot":"","sources":["../../../src/components/Table/NoDataContent.tsx"],"names":[],"mappings":";AAEA,OAAO,cAAc,CAAC;AACtB,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,aAAa,GAAO,GAAG,EAAE;IAC7B,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,KAAC,IAAI,IAAC,IAAI,EAAC,kBAAkB,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAI,EACzD,KAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,iCAElD,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"NoDataContent.js","sourceRoot":"","sources":["../../../src/components/Table/NoDataContent.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AACtB,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,aAAa,GAAO,GAAG,EAAE;IAC7B,OAAO,CACL,eAAK,SAAS,EAAC,iBAAiB,aAC9B,KAAC,IAAI,IAAC,IAAI,EAAC,kBAAkB,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAI,EACzD,KAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,iCAElD,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}