@mailstep/design-system 0.8.7-beta.2 → 0.8.7
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/package.json
CHANGED
|
@@ -45,17 +45,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
49
|
-
var t = {};
|
|
50
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
-
t[p] = s[p];
|
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
-
t[p[i]] = s[p[i]];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
};
|
|
59
48
|
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
60
49
|
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
61
50
|
if (ar || !(i in from)) {
|
|
@@ -74,8 +63,7 @@ import isArray from 'lodash/isArray';
|
|
|
74
63
|
import uniqBy from 'lodash/uniqBy';
|
|
75
64
|
import { isOptionArray } from './guards';
|
|
76
65
|
var SelectFilter = function (_a) {
|
|
77
|
-
var onChange = _a.onChange, _b = _a.isClearable, isClearable = _b === void 0 ? true : _b, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton, asyncLoadKey = _a.asyncLoadKey, onAsyncLoadFilterOptions = _a.onAsyncLoadFilterOptions, _c = _a.onlyInComparator, onlyInComparator = _c === void 0 ? false : _c
|
|
78
|
-
console.log('SelectFilter rendered with props:', onlyInComparator, props);
|
|
66
|
+
var onChange = _a.onChange, _b = _a.isClearable, isClearable = _b === void 0 ? true : _b, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton, asyncLoadKey = _a.asyncLoadKey, onAsyncLoadFilterOptions = _a.onAsyncLoadFilterOptions, _c = _a.onlyInComparator, onlyInComparator = _c === void 0 ? false : _c;
|
|
79
67
|
var _d = useState([]), loadedOptions = _d[0], setLoadedOptions = _d[1];
|
|
80
68
|
var _e = useState(false), isNotEqNoValue = _e[0], setIsNotEqNoValue = _e[1];
|
|
81
69
|
var isAsync = !!asyncLoadKey;
|
|
@@ -114,6 +114,7 @@ export type ColumnDefinition<ColumnName extends string = string> = ColumnBasePro
|
|
|
114
114
|
isUuid?: boolean;
|
|
115
115
|
defaultComparator?: string;
|
|
116
116
|
checkAllButton?: boolean;
|
|
117
|
+
onlyInComparator?: boolean;
|
|
117
118
|
};
|
|
118
119
|
getFilterCriteria?: (value: string) => Record<string, any> | null;
|
|
119
120
|
filterOptions?: Option[];
|