fuse-importer 0.25.7 → 0.25.8

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.
@@ -41,7 +41,7 @@ export var tableColumns = [
41
41
  newEnumFieldValueMatchings[templateHeaderLabel][uploadedDataValue] = selected;
42
42
  setEnumFieldValueMatchings(newEnumFieldValueMatchings);
43
43
  };
44
- return (_jsx(Div, __assign({ w100: true }, { children: _jsx(Autocomplete, { w: "90%", placeholder: t("columns.placeholder"), onChange: onChange, value: uploadedDataValueMatching, options: valueOptions.map(function (vo) { return ({
44
+ return (_jsx(Div, __assign({ w100: true }, { children: _jsx(Autocomplete, { w: "90%", placeholder: t("columns.placeholder"), onChange: onChange, placement: "bottom", value: uploadedDataValueMatching, options: valueOptions.map(function (vo) { return ({
45
45
  value: vo,
46
46
  label: vo,
47
47
  }); }) }) })));
@@ -27,7 +27,7 @@ export var tableColumns = [
27
27
  newTemplateHeaderMatchings[ourColumns] = selected;
28
28
  setTemplateHeaderMatchings(newTemplateHeaderMatchings);
29
29
  };
30
- return (_jsx(Autocomplete, { w: "92%", onChange: onChange, value: yourColumns, id: "your-column-".concat(ourColumns), options: uploadedDataHeaders.map(function (h) { return ({
30
+ return (_jsx(Autocomplete, { w: "92%", onChange: onChange, value: yourColumns, placement: "bottom", id: "your-column-".concat(ourColumns), options: uploadedDataHeaders.map(function (h) { return ({
31
31
  value: h,
32
32
  label: h,
33
33
  }); }) }));
@@ -35,7 +35,8 @@ var StepperButtonContainer = styled(Div)(templateObject_5 || (templateObject_5 =
35
35
  var align = _a.align;
36
36
  return align === "left" ? "flex-start" : "flex-end";
37
37
  });
38
- var CloseIcon = styled(Div)(function () { return css(templateObject_6 || (templateObject_6 = __makeTemplateObject([""], [""]))); });
38
+ var GoBackButtonWrapper = styled(Div)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n @media (max-width: 740px) {\n display: none;\n }\n"], ["\n @media (max-width: 740px) {\n display: none;\n }\n"])));
39
+ var CloseIcon = styled(Div)(function () { return css(templateObject_7 || (templateObject_7 = __makeTemplateObject([""], [""]))); });
39
40
  export var Stepper = function (_a) {
40
41
  var stepLabels = _a.stepLabels, logoURL = _a.logoURL;
41
42
  var _b = useState(false), isUnmatchedHeadersModalOpen = _b[0], setIsUnmatchedHeadersModalOpen = _b[1];
@@ -107,10 +108,10 @@ export var Stepper = function (_a) {
107
108
  var isCompleted = index < currentStepIndex;
108
109
  return (_jsxs(Div, __assign({ centered: true }, { children: [_jsx(Step, { index: index, label: label, isCompleted: isCompleted, isSelected: index === currentStepIndex }), !isLast && (_jsx(Div, __assign({ ml: 18, mr: 18, dflex: true }, { children: _jsx(ChevronRightIcon, {}) })))] }), index));
109
110
  }) })));
110
- var leftButtonUI = (_jsx(Div, __assign({ forDesktop: true, style: { flex: 1 } }, { children: _jsxs(StepperButtonContainer, __assign({ align: "left" }, { children: [logoURL && _jsx(Logo, { src: logoURL, alt: "" }), currentStepIndex > 0 && !appResponse && (_jsx(Button, __assign({ variant: "secondary", onClick: goBack }, { children: t("stepper.go_back") })))] })) })));
111
+ var leftButtonUI = (_jsx(Div, __assign({ style: { flex: 1 } }, { children: _jsxs(StepperButtonContainer, __assign({ align: "left" }, { children: [logoURL && (_jsx(Div, __assign({ forDesktop: true }, { children: _jsx(Logo, { src: logoURL, alt: "" }) }))), currentStepIndex > 0 && !appResponse && (_jsx(GoBackButtonWrapper, { children: _jsx(Button, __assign({ variant: "secondary", onClick: goBack }, { children: t("stepper.go_back") })) }))] })) })));
111
112
  var rightButtonUI = (_jsxs(StepperButtonContainer, __assign({ align: "right" }, { children: [(isMatchStep || isVerifyStep) && (_jsx(Button, __assign({ variant: "primary", onClick: continueToNextStep }, { children: t("stepper.continue") }))), isReviewStep && (_jsx(Button, __assign({ variant: "primary", isDisabled: isSubmitDisabled, onClick: function () { return setIsSubmitModalOpen(true); } }, { children: t("stepper.submit") }))), _jsx(CloseIcon, __assign({ "data-test-id": "close-importer", centered: true, clickable: true, onClick: handleOnClose }, { children: closeIconCondensed }))] })));
112
113
  return (_jsxs(_Fragment, { children: [_jsx(StepperWrapper, __assign({ pRelative: true, alignCenter: true, w100: true, h: 72, centered: true }, { children: _jsxs(StepperContainer, { children: [leftButtonUI, _jsx(Steps, __assign({ alignCenter: true }, { children: stepsUI })), rightButtonUI] }) })), _jsx(UnmatchedHeadersModal, { isUnmatchedHeadersModalOpen: isUnmatchedHeadersModalOpen, unmatchedHeadersCount: unmatchedHeadersCount, onSetStep: function () { return setStep(); }, onCloseUnmatchedHeadersModal: function () {
113
114
  return setIsUnmatchedHeadersModalOpen(false);
114
115
  } }), _jsx(StepperSubmitModal, { isSubmitModalOpen: isSubmitModalOpen, onCloseModal: function () { return setIsSubmitModalOpen(false); }, onSubmit: onSubmit }), _jsx(ConfirmCloseModal, { isOpen: isConfirmCloseModalOpen, onClose: function () { return setIsConfirmCloseModalOpen(false); }, onCloseImporter: onClose })] }));
115
116
  };
116
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
117
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
@@ -44,7 +44,10 @@ import { useSpreadsheetContext } from "../SpreadsheetContextProvider";
44
44
  import { Checkbox } from "../../../../common/inputs/Checkbox";
45
45
  import { useImporterContext } from "../../../contexts/ImporterContextProvider";
46
46
  import ReactVirtualizedAutoSizer from "react-virtualized-auto-sizer";
47
- var StyledGrid = styled(Grid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ::-webkit-scrollbar {\n width: 0 !important;\n height: 0 !important;\n }\n\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n scrollbar-width: none;\n"], ["\n ::-webkit-scrollbar {\n width: 0 !important;\n height: 0 !important;\n }\n\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n scrollbar-width: none;\n"])));
47
+ var StyledGrid = styled(Grid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n overflow-y: scroll;\n"], ["\n background: ", ";\n overflow-y: scroll;\n"])), function (_a) {
48
+ var theme = _a.theme;
49
+ return theme.colors.white50;
50
+ });
48
51
  var gridStyles = {
49
52
  outline: "none",
50
53
  willChange: "unset",
@@ -20,7 +20,7 @@ import { Autocomplete as AutocompleteBase, } from "../../../../../common/inputs/
20
20
  import { SelectMenuDiv, SelectMenuScrollArea, } from "../../../../../common/inputs/SelectMenu";
21
21
  import { HTMLInput, TextInputIcon, } from "../../../../../common/inputs/TextInput";
22
22
  import { spreadsheetRowHeightPx } from "../../common";
23
- var Autocomplete = styled(AutocompleteBase)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", " {\n border: none;\n border-radius: 0;\n margin: 0;\n background: transparent;\n height: ", "px;\n padding: 0 12px;\n\n ", "\n\n ::placeholder {\n ", "\n\n ", "\n\n ::placeholder {\n ", "\n }\n }\n :focus {\n border: none;\n box-shadow: none;\n }\n }\n ", " {\n right: 6px;\n }\n ", " {\n border-radius: 7px;\n }\n ", " {\n padding: 4px;\n }\n"], ["\n ", " {\n border: none;\n border-radius: 0;\n margin: 0;\n background: transparent;\n height: ", "px;\n padding: 0 12px;\n\n ", "\n\n ::placeholder {\n ", "\n\n ", "\n\n ::placeholder {\n ", "\n }\n }\n :focus {\n border: none;\n box-shadow: none;\n }\n }\n ", " {\n right: 6px;\n }\n ", " {\n border-radius: 7px;\n }\n ", " {\n padding: 4px;\n }\n"])), HTMLInput, spreadsheetRowHeightPx - 5, function (p) {
23
+ var Autocomplete = styled(AutocompleteBase)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ", " {\n border: none !important;\n border-radius: 0;\n margin: 0;\n background: transparent;\n /* TODO: remove !important's when we start rendering importer through iframe */\n height: ", "px !important;\n padding: 0 12px !important;\n\n ", "\n\n ::placeholder {\n ", "\n\n ", "\n\n ::placeholder {\n ", "\n }\n }\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n :focus {\n border: none !important;\n box-shadow: none !important;\n }\n\n :hover {\n background: transparent !important;\n }\n }\n ", " {\n right: 6px;\n }\n ", " {\n border-radius: 7px;\n }\n ", " {\n padding: 4px;\n }\n"], ["\n ", " {\n border: none !important;\n border-radius: 0;\n margin: 0;\n background: transparent;\n /* TODO: remove !important's when we start rendering importer through iframe */\n height: ", "px !important;\n padding: 0 12px !important;\n\n ", "\n\n ::placeholder {\n ", "\n\n ", "\n\n ::placeholder {\n ", "\n }\n }\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n :focus {\n border: none !important;\n box-shadow: none !important;\n }\n\n :hover {\n background: transparent !important;\n }\n }\n ", " {\n right: 6px;\n }\n ", " {\n border-radius: 7px;\n }\n ", " {\n padding: 4px;\n }\n"])), HTMLInput, spreadsheetRowHeightPx - 5, function (p) {
24
24
  return p.hasWarning && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.orange1200; });
25
25
  }, function (p) {
26
26
  return p.hasWarning && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.orange1200; });
@@ -35,9 +35,9 @@ export var SpreadsheetInput = function (_a) {
35
35
  return setValue(value);
36
36
  } }, props)) })));
37
37
  };
38
- export var Input = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n outline: none;\n border: none;\n width: 100%;\n height: calc(100% - 2px);\n background: transparent;\n box-sizing: border-box;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n padding: 0 12px;\n ", ";\n color: ", ";\n ::placeholder {\n color: ", ";\n }\n\n ", "\n\n ", "\n"], ["\n outline: none;\n border: none;\n width: 100%;\n height: calc(100% - 2px);\n background: transparent;\n box-sizing: border-box;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n padding: 0 12px;\n ", ";\n color: ", ";\n ::placeholder {\n color: ", ";\n }\n\n ", "\n\n ", "\n"])), function (props) { return props.theme.css.body1; }, function (props) { return props.theme.colors.gray1000; }, function (props) { return props.theme.colors.placeholder; }, function (p) {
39
- return p.hasWarning && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.orange1200; });
38
+ export var Input = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n /* Using this styling to prevent CSS conflict from clients importers */\n /* TODO: remove !important's when we start rendering importer through iframe */\n\n background: transparent !important;\n border: none !important;\n box-shadow: none !important;\n box-sizing: border-box !important;\n height: calc(100% - 2px) !important;\n margin: 0px !important;\n outline: none !important;\n width: 100% !important;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n padding: 0 12px !important;\n ", ";\n color: ", " !important;\n ::placeholder {\n color: ", " !important;\n }\n\n ", "\n\n ", "\n"], ["\n /* Using this styling to prevent CSS conflict from clients importers */\n /* TODO: remove !important's when we start rendering importer through iframe */\n\n background: transparent !important;\n border: none !important;\n box-shadow: none !important;\n box-sizing: border-box !important;\n height: calc(100% - 2px) !important;\n margin: 0px !important;\n outline: none !important;\n width: 100% !important;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n padding: 0 12px !important;\n ", ";\n color: ", " !important;\n ::placeholder {\n color: ", " !important;\n }\n\n ", "\n\n ", "\n"])), function (props) { return props.theme.css.body1; }, function (props) { return props.theme.colors.gray1000; }, function (props) { return props.theme.colors.placeholder; }, function (p) {
39
+ return p.hasWarning && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", " !important;\n "], ["\n color: ", " !important;\n "])), function (p) { return p.theme.colors.orange1200; });
40
40
  }, function (p) {
41
- return p.hasError && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), function (p) { return p.theme.colors.error; });
41
+ return p.hasError && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", " !important;\n "], ["\n color: ", " !important;\n "])), function (p) { return p.theme.colors.error; });
42
42
  });
43
43
  var templateObject_1, templateObject_2, templateObject_3;
@@ -81,8 +81,9 @@ var isObject = function (value) {
81
81
  };
82
82
  var includesSearchValue = function (value, searchValue) {
83
83
  if (typeof value === "string" || typeof value === "number") {
84
- var stringValue = String(value);
85
- return stringValue.includes(searchValue);
84
+ var stringValue = String(value).toLowerCase();
85
+ var searchValueLower = searchValue.toLowerCase();
86
+ return stringValue.includes(searchValueLower);
86
87
  }
87
88
  return false;
88
89
  };
@@ -30,7 +30,7 @@ var Wrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateO
30
30
  return (isOpen ? "332px" : "24px");
31
31
  });
32
32
  var IconWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: 24px;\n width: 24px;\n"], ["\n height: 24px;\n width: 24px;\n"])));
33
- var Input = styled.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n background: none;\n border: none;\n color: ", ";\n height: 20px !important;\n outline: none;\n\n ", ";\n"], ["\n ", ";\n background: none;\n border: none;\n color: ", ";\n height: 20px !important;\n outline: none;\n\n ", ";\n"])), textStyles.body3, colors.gray700, function (_a) {
33
+ var Input = styled.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n width: 100%;\n\n /* Using this styling to prevent CSS conflict from clients importers */\n /* TODO: remove !important's when we start rendering importer through iframe */\n background-color: none !important;\n background: none !important;\n border: none !important;\n box-shadow: none !important;\n color: ", " !important;\n height: 20px !important;\n line-height: 20px !important;\n outline: none !important;\n padding: 1px 2px !important;\n\n ", ";\n"], ["\n ", ";\n width: 100%;\n\n /* Using this styling to prevent CSS conflict from clients importers */\n /* TODO: remove !important's when we start rendering importer through iframe */\n background-color: none !important;\n background: none !important;\n border: none !important;\n box-shadow: none !important;\n color: ", " !important;\n height: 20px !important;\n line-height: 20px !important;\n outline: none !important;\n padding: 1px 2px !important;\n\n ", ";\n"])), textStyles.body3, colors.gray700, function (_a) {
34
34
  var isOpen = _a.isOpen;
35
35
  return !isOpen && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n top: -9999px;\n "], ["\n position: absolute;\n top: -9999px;\n "])));
36
36
  });
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CustomScrollbarsVirtualList: import("react").ForwardRefExoticComponent<Pick<any, string | number | symbol> & import("react").RefAttributes<unknown>>;
@@ -0,0 +1,34 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ var __assign = (this && this.__assign) || function () {
6
+ __assign = Object.assign || function(t) {
7
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
8
+ s = arguments[i];
9
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10
+ t[p] = s[p];
11
+ }
12
+ return t;
13
+ };
14
+ return __assign.apply(this, arguments);
15
+ };
16
+ import { jsx as _jsx } from "react/jsx-runtime";
17
+ import { forwardRef, useCallback } from "react";
18
+ import { Scrollbars } from "react-custom-scrollbars";
19
+ import styled from "styled-components";
20
+ var StyledScrollbars = styled(Scrollbars)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n scrollbar-width: thin;\n scrollbar-color: #b1b1b2 transparent;\n\n ::-webkit-scrollbar {\n width: 0;\n height: 5px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #b1b1b2;\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background: transparent;\n }\n\n > div:first-of-type {\n margin-bottom: 0 !important;\n }\n"], ["\n scrollbar-width: thin;\n scrollbar-color: #b1b1b2 transparent;\n\n ::-webkit-scrollbar {\n width: 0;\n height: 5px;\n }\n\n ::-webkit-scrollbar-thumb {\n background-color: #b1b1b2;\n border-radius: 3px;\n }\n\n ::-webkit-scrollbar-track {\n background: transparent;\n }\n\n > div:first-of-type {\n margin-bottom: 0 !important;\n }\n"])));
21
+ var CustomScrollbars = function (_a) {
22
+ var onScroll = _a.onScroll, forwardedRef = _a.forwardedRef, style = _a.style, children = _a.children;
23
+ var refSetter = useCallback(function (scrollbarsRef) {
24
+ if (scrollbarsRef) {
25
+ forwardedRef(scrollbarsRef.view);
26
+ }
27
+ else {
28
+ forwardedRef(null);
29
+ }
30
+ }, []);
31
+ return (_jsx(StyledScrollbars, __assign({ renderTrackHorizontal: function (props) { return (_jsx("div", __assign({}, props, { style: { display: "none" }, className: "track-horizontal" }))); }, ref: refSetter, style: style, onScroll: onScroll }, { children: children })));
32
+ };
33
+ export var CustomScrollbarsVirtualList = forwardRef(function (props, ref) { return (_jsx(CustomScrollbars, __assign({}, props, { forwardedRef: ref }))); });
34
+ var templateObject_1;
@@ -35,6 +35,7 @@ import { Spinner } from "../../Spinner";
35
35
  import { defaultTableRowHeightPx, defaultTableHeaderHeightPx } from "./common";
36
36
  import { TableHeaders } from "./TableHeaders";
37
37
  import { Cell, DraggableCell } from "./TableCells";
38
+ import { CustomScrollbarsVirtualList } from "./CustomScrollbar";
38
39
  export * from "./common";
39
40
  export * from "./TableHeaders";
40
41
  export * from "./TableRow";
@@ -46,7 +47,7 @@ export var TableViewWrapper = styled(Div)(templateObject_3 || (templateObject_3
46
47
  }, function (p) { return p.theme.css.scrollbarDark; });
47
48
  var SpinnerWrapper = styled(Div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n pointer-events: none;\n z-index: 100;\n"], ["\n pointer-events: none;\n z-index: 100;\n"])));
48
49
  var tableHeaderId = "tableHeaderId";
49
- var StyledGrid = styled(Grid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n ::-webkit-scrollbar {\n width: 0 !important;\n height: 0 !important;\n }\n\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n scrollbar-width: none;\n"], ["\n ::-webkit-scrollbar {\n width: 0 !important;\n height: 0 !important;\n }\n\n -ms-overflow-style: none;\n overflow: -moz-scrollbars-none;\n scrollbar-width: none;\n"])));
50
+ var StyledGrid = styled(Grid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n scrollbar-width: thin;\n\n /* width */\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background-color: #b1b1b2;\n border-radius: 3px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: transparent;\n }\n"], ["\n scrollbar-width: thin;\n\n /* width */\n ::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n }\n\n /* Handle */\n ::-webkit-scrollbar-thumb {\n background-color: #b1b1b2;\n border-radius: 3px;\n }\n\n /* Track */\n ::-webkit-scrollbar-track {\n background: transparent;\n }\n"])));
50
51
  var buildGridStyles = function (rowWidth) {
51
52
  /* using style={{ willChange: "unset" }} is important for having items
52
53
  like backdrops with position fixed inside of the table working as
@@ -58,7 +59,7 @@ var buildGridStyles = function (rowWidth) {
58
59
  if (rowWidth === 1)
59
60
  gridStyles = __assign(__assign({}, gridStyles), { overflowX: "hidden", overflowY: "auto" });
60
61
  else if (rowWidth > 1)
61
- gridStyles = __assign(__assign({}, gridStyles), { overflowX: "scroll" });
62
+ gridStyles = __assign(__assign({}, gridStyles), { overflowX: "hidden" });
62
63
  return gridStyles;
63
64
  };
64
65
  export var TableView = React.memo(function (_a) {
@@ -69,6 +70,7 @@ export var TableView = React.memo(function (_a) {
69
70
  */
70
71
  var _rowWidth = rowWidth > 1 ? rowWidth * 0.95 : rowWidth;
71
72
  var headerContainerRef = useRef();
73
+ var listRef = useRef();
72
74
  var tableHeadersUI = data.length > 0 && (_jsx(TableHeaders, { id: tableHeaderId, containerRef: headerContainerRef, height: tableHeadersHeight, rowHeight: rowHeight, rowWidth: _rowWidth, scrollLeft: 0, columns: columns, sortBy: sortBy, setSortBy: setSortBy, isSpreadsheetTable: isInsideImporter }));
73
75
  var onScroll = function (_a) {
74
76
  var scrollTop = _a.scrollTop, scrollLeft = _a.scrollLeft;
@@ -111,7 +113,7 @@ export var TableView = React.memo(function (_a) {
111
113
  ]);
112
114
  return (_jsxs(TableViewWrapper, __assign({ "data-test-id": "table-view-wrapper", isLoading: isLoading, checkboxColumnWidth: checkboxColumnWidth }, (!isInsideImporter ? { h: tableHeight } : {}), props, { children: [tableHeadersUI, loadingUI, _jsx(AutoSizer, { children: function (_a) {
113
115
  var width = _a.width, height = _a.height;
114
- return (_jsxs(_Fragment, { children: [shouldBeDraggable && (_jsx(SortableContext, __assign({ items: data, strategy: verticalListSortingStrategy }, { children: _jsx(StyledGrid, __assign({ style: buildGridStyles(_rowWidth), width: width, columnCount: 1, itemData: itemData, onItemsRendered: onItemsRendered, onScroll: onScroll, columnWidth: Math.floor(width * _rowWidth), height: height - tableHeadersHeight, rowHeight: rowHeight, rowCount: data.length }, { children: DraggableCell })) }))), !shouldBeDraggable && (_jsx(StyledGrid, __assign({ style: buildGridStyles(_rowWidth), width: width, columnCount: 1, itemData: itemData, onItemsRendered: onItemsRendered, onScroll: onScroll, columnWidth: Math.floor(width * _rowWidth), height: height - tableHeadersHeight, rowHeight: rowHeight, rowCount: data.length }, { children: Cell })))] }));
116
+ return (_jsxs(_Fragment, { children: [shouldBeDraggable && (_jsx(SortableContext, __assign({ items: data, strategy: verticalListSortingStrategy }, { children: _jsx(StyledGrid, __assign({ style: buildGridStyles(_rowWidth), width: width, columnCount: 1, itemData: itemData, onItemsRendered: onItemsRendered, onScroll: onScroll, columnWidth: Math.floor(width * _rowWidth), height: height - tableHeadersHeight, rowHeight: rowHeight, rowCount: data.length }, { children: DraggableCell })) }))), !shouldBeDraggable && (_jsx(StyledGrid, __assign({ style: buildGridStyles(_rowWidth), width: width, columnCount: 1, itemData: itemData, onItemsRendered: onItemsRendered, onScroll: onScroll, columnWidth: Math.floor(width * _rowWidth), height: height - tableHeadersHeight, rowHeight: rowHeight, rowCount: data.length, ref: listRef, outerElementType: isInsideImporter ? CustomScrollbarsVirtualList : undefined }, { children: Cell })))] }));
115
117
  } })] })));
116
118
  }, areEqual);
117
119
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
@@ -38,7 +38,7 @@ var Checkbox = function (_a) {
38
38
  var handleOnChange = function (event) {
39
39
  if (!onChange)
40
40
  return;
41
- if (event.shiftKey && onShiftKeyPressed) {
41
+ if ((event.shiftKey || event.nativeEvent.metaKey) && onShiftKeyPressed) {
42
42
  onShiftKeyPressed();
43
43
  return;
44
44
  }
@@ -31,7 +31,7 @@ import { FormInputLabel } from "..";
31
31
  import { useDebounce } from "../../hooks";
32
32
  import { Div } from "../../styled/utils";
33
33
  import Tooltip from "./tooltip";
34
- export var HTMLInput = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n padding: ", ";\n height: 68px;\n outline: none;\n\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: 8px;\n width: 100%;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", ";\n\n /* 3d at the end adds .24 opacity (using 8 digit hex)*/\n box-shadow: 0px 0px 8px ", "3d;\n }\n\n ", "\n ", "\n"], ["\n position: relative;\n padding: ", ";\n height: 68px;\n outline: none;\n\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: 8px;\n width: 100%;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", ";\n\n /* 3d at the end adds .24 opacity (using 8 digit hex)*/\n box-shadow: 0px 0px 8px ", "3d;\n }\n\n ", "\n ", "\n"])), function (_a) {
34
+ export var HTMLInput = styled.input(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n padding: ", " !important;\n height: 68px !important;\n margin: 0px !important;\n box-shadow: none !important;\n\n outline: none;\n\n border: 1px solid ", " !important;\n box-sizing: border-box;\n border-radius: 8px;\n width: 100%;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", "!important;\n\n /* 3d at the end adds .24 opacity (using 8 digit hex)*/\n box-shadow: 0px 0px 8px ", "3d !important;\n }\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n :hover {\n box-shadow: none !important;\n background: transparent !important;\n }\n\n ", "\n ", "\n"], ["\n position: relative;\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n padding: ", " !important;\n height: 68px !important;\n margin: 0px !important;\n box-shadow: none !important;\n\n outline: none;\n\n border: 1px solid ", " !important;\n box-sizing: border-box;\n border-radius: 8px;\n width: 100%;\n\n ::-webkit-outer-spin-button,\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n /* Firefox */\n -moz-appearance: textfield;\n\n ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n :focus {\n border: 2px solid ", "!important;\n\n /* 3d at the end adds .24 opacity (using 8 digit hex)*/\n box-shadow: 0px 0px 8px ", "3d !important;\n }\n\n /* TODO: remove !important's when we start rendering importer through iframe */\n :hover {\n box-shadow: none !important;\n background: transparent !important;\n }\n\n ", "\n ", "\n"])), function (_a) {
35
35
  var padding = _a.padding;
36
36
  return (padding ? padding : "20px 16px");
37
37
  }, function (props) { return props.theme.colors.gray300; }, function (props) { return props.theme.css.body1; }, function (props) { return props.theme.colors.placeholder; }, function (props) { return props.theme.colors.blue500; }, function (props) { return props.theme.colors.blue500; }, function (props) {