mig-schema-table 3.0.84 → 3.0.85
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/SchemaTable/index.js +1 -1
- package/dist/index.css +4 -0
- package/package.json +1 -1
|
@@ -570,7 +570,7 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
|
|
|
570
570
|
type: "text/csv;charset=utf-8",
|
|
571
571
|
}), "export.csv");
|
|
572
572
|
}, [sortedRenderData]);
|
|
573
|
-
return (_jsxs("div", Object.assign({ className: `schema-table${onRowClick ? " schema-table--clickable-rows" : ""}`, style: Object.assign(Object.assign({}, style), { width: rowWidth }), role: "table" }, { children: [_jsxs("div", Object.assign({ className: "schema-table__action-container" }, { children: [_jsx("div",
|
|
573
|
+
return (_jsxs("div", Object.assign({ className: `schema-table${onRowClick ? " schema-table--clickable-rows" : ""}`, style: Object.assign(Object.assign({}, style), { width: rowWidth }), role: "table" }, { children: [_jsxs("div", Object.assign({ className: "schema-table__action-container" }, { children: [_jsx("div", { children: isSearchable ? (_jsx("input", { className: "schema-table__search", type: "text", placeholder: searchPlaceholder || "Search...", value: searchQuery, onChange: onSearchChange, onKeyDown: onInputKeyDown, autoFocus: searchInputAutoFocus, onBlur: onSearchBlur })) : null }), customElement || (_jsx("div", { className: "schema-table__custom_element_placeholder" })), isExportable ? (_jsx("button", Object.assign({ onClick: onExportDataClick, style: { marginLeft: 8 }, disabled: !(sortedRenderData === null || sortedRenderData === void 0 ? void 0 : sortedRenderData.length) }, { children: "Export data" }))) : null, isSearchable || isColumnFilterable ? (_jsx("button", Object.assign({ onClick: onClearFiltersButtonClick, style: { marginLeft: 8 }, disabled: Object.keys(columnFilterMap).length + searchQuery.length === 0 }, { children: "Clear filters" }))) : null] })), _jsx(Heading, Object.assign({ height: 50, itemCount: columnCount, itemSize: getColumnWidth, layout: "horizontal", width: rowWidth, sortAsc: sortAsc, setSortAsc: onSetSortAsc, setSortColumn: onSetSortColumn, sortColumn: sortColumn, sortedRenderData: sortedRenderData, className: "schema-table__th-row" }, { children: ConfiguredTh }), `thead_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}`), sourceData && !isDirty ? (_jsx(VariableSizeGrid, Object.assign({ className: "schema-table__tbody", height: tableBodyHeight, width: rowWidth, columnWidth: getColumnWidth, rowHeight: getRowHeight, columnCount: columnCount, rowCount: rowCount }, { children: SchemaTableTd }), `tbody_${tableBodyHeight}_${rowWidth}_${sortColumn}_${sortAsc}_${searchQuery}_${columnCount}`)) : (_jsx("div", Object.assign({ style: {
|
|
574
574
|
width: rowWidth,
|
|
575
575
|
height: Math.max(50, tableBodyHeight),
|
|
576
576
|
border: "1px solid #BBB",
|
package/dist/index.css
CHANGED
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
.schema-table select {
|
|
25
25
|
height: 33px;
|
|
26
26
|
}
|
|
27
|
+
.schema-table__custom_element_placeholder {
|
|
28
|
+
flex: 1;
|
|
29
|
+
}
|
|
27
30
|
.schema-table__tbody {
|
|
28
31
|
overflow-x: hidden !important;
|
|
29
32
|
border-collapse: collapse;
|
|
@@ -56,6 +59,7 @@
|
|
|
56
59
|
display: flex;
|
|
57
60
|
flex-direction: row;
|
|
58
61
|
padding-bottom: 1rem;
|
|
62
|
+
align-items: center;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
.schema-table__th {
|