mig-schema-table 3.0.106 → 3.0.108
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 +2 -1
- package/dist/index.css +2 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import React from "react";
|
|
14
|
+
import { createPortal } from "react-dom";
|
|
14
15
|
import { VariableSizeGrid, VariableSizeList } from "react-window";
|
|
15
16
|
import { localeFormat } from "../inc/date";
|
|
16
17
|
import { defaultTranslate } from "../inc/string";
|
|
@@ -614,6 +615,6 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
|
|
|
614
615
|
backgroundColor: "#CCC",
|
|
615
616
|
alignItems: "center",
|
|
616
617
|
justifyContent: "center",
|
|
617
|
-
} }, { children: isDirty ? (_jsx("button", Object.assign({ onClick: refreshData, className: "btn border" }, { children: "Refresh data" }))) : (_jsx("div", { children: "\u231B Loading..." })) }))), isResizable ? (_jsx(ColumnResizers, { columnWidths: columnWidths, setColumnWidths: setColumnWidths, tableBodyHeight: tableBodyHeight })) : null] }))) : null, thMenuConfig ? (_jsx(ThMenu, { isFilterable: !!isColumnFilterable, isSortable: getIsColumnSortable(!!isSortable, schema.properties[thMenuConfig.propName], thMenuConfig.propConfig), onChange: onSchemaColumnFilterChange, onClose: onPopoverClose, onInputKeyDown: onInputKeyDown, propConfig: thMenuConfig.propConfig, propIsRequired: thMenuConfig.propIsRequired, propName: thMenuConfig.propName, propSchema: schema.properties[thMenuConfig.propName], referenceElement: thMenuConfig.referenceElement, setSortAsc: setSortAsc, setSortColumn: setSortColumn, translate: translate, value: columnFilterMap[thMenuConfig.propName] })) : null] })));
|
|
618
|
+
} }, { children: isDirty ? (_jsx("button", Object.assign({ onClick: refreshData, className: "btn border" }, { children: "Refresh data" }))) : (_jsx("div", { children: "\u231B Loading..." })) }))), isResizable ? (_jsx(ColumnResizers, { columnWidths: columnWidths, setColumnWidths: setColumnWidths, tableBodyHeight: tableBodyHeight })) : null] }))) : null, createPortal(thMenuConfig ? (_jsx(ThMenu, { isFilterable: !!isColumnFilterable, isSortable: getIsColumnSortable(!!isSortable, schema.properties[thMenuConfig.propName], thMenuConfig.propConfig), onChange: onSchemaColumnFilterChange, onClose: onPopoverClose, onInputKeyDown: onInputKeyDown, propConfig: thMenuConfig.propConfig, propIsRequired: thMenuConfig.propIsRequired, propName: thMenuConfig.propName, propSchema: schema.properties[thMenuConfig.propName], referenceElement: thMenuConfig.referenceElement, setSortAsc: setSortAsc, setSortColumn: setSortColumn, translate: translate, value: columnFilterMap[thMenuConfig.propName] })) : null, document.body)] })));
|
|
618
619
|
}
|
|
619
620
|
export default React.memo(SchemaTable);
|
package/dist/index.css
CHANGED
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
.schema-table__th-menu {
|
|
124
124
|
background-color: white;
|
|
125
|
+
z-index: 99999;
|
|
125
126
|
}
|
|
126
127
|
.schema-table__th-menu label {
|
|
127
128
|
flex: 1;
|
|
@@ -140,6 +141,7 @@
|
|
|
140
141
|
.schema-table__th-menu__sub-menu {
|
|
141
142
|
background-color: white;
|
|
142
143
|
border: 1px solid #ddd;
|
|
144
|
+
z-index: 99999;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
.schema-table-menu {
|