mig-schema-table 3.0.107 → 3.0.109

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.
@@ -31,7 +31,9 @@ const FilterMenuComponent = ({ columnFilterValue, onChange, onInputKeyDown, prop
31
31
  const changeOperationValue = (operation, el, persistState) => {
32
32
  const newValue = Object.assign(Object.assign({}, numberColumnFilterValue), { [operation]: el.value === "" ? undefined : parseInt(el.value) });
33
33
  const hasValue = Object.values(newValue).find((opValue) => isFinite(opValue));
34
- onChange(hasValue ? newValue : undefined, persistState);
34
+ onChange(hasValue !== undefined && (minimum ? hasValue >= minimum : true)
35
+ ? newValue
36
+ : undefined, persistState);
35
37
  };
36
38
  return (_jsxs("ol", Object.assign({ className: "schema-table-menu schema-table__th-menu__filter-menu-component" }, { children: [propIsRequired ? null : (_jsxs("li", Object.assign({ style: { padding: 8 } }, { children: [_jsxs("label", Object.assign({ className: "d-flex" }, { children: [_jsx("input", { type: "checkbox", style: { marginRight: 14 }, checked: !!numberColumnFilterValue.filterEmpty, onChange: () => {
37
39
  const { filterEmpty } = numberColumnFilterValue, newNumberColumnFilterValue = __rest(numberColumnFilterValue, ["filterEmpty"]);
@@ -42,7 +44,8 @@ const FilterMenuComponent = ({ columnFilterValue, onChange, onInputKeyDown, prop
42
44
  ? newNumberColumnFilterValue
43
45
  : undefined, true);
44
46
  } }), "Hide empty values"] })), _jsx("hr", {})] }))), Object.keys(ENumberColumnFilterOperation).map((operation) => {
45
- return (_jsxs("li", { children: [_jsx("label", Object.assign({ style: { width: 40, paddingLeft: 16 } }, { children: numberColumnFilterOperationsLabelMap[operation] })), _jsx("input", { className: "form-control", style: { width: 120 }, type: "number", value: numberColumnFilterValue[operation] || "", "data-prop-name": propName, onChange: (e) => {
47
+ const val = numberColumnFilterValue[operation];
48
+ return (_jsxs("li", { children: [_jsx("label", Object.assign({ style: { width: 40, paddingLeft: 16 } }, { children: numberColumnFilterOperationsLabelMap[operation] })), _jsx("input", { className: "form-control", style: { width: 120 }, type: "number", value: val !== undefined ? val : "", "data-prop-name": propName, onChange: (e) => {
46
49
  changeOperationValue(operation, e.currentTarget, false);
47
50
  }, onBlur: (e) => {
48
51
  changeOperationValue(operation, e.currentTarget, true);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.107",
3
+ "version": "3.0.109",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"