@bluemarble/bm-components 1.7.2 → 1.8.0
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -194,7 +194,7 @@ interface TabPanelProps {
|
|
|
194
194
|
}
|
|
195
195
|
declare const TabPanel: (props: TabPanelProps) => React__default.JSX.Element;
|
|
196
196
|
|
|
197
|
-
type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in' | 'notEqual' | 'notIn';
|
|
197
|
+
type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'valueIn' | 'in' | 'notEqual' | 'valueNotIn' | 'notIn';
|
|
198
198
|
type FilterProps = {
|
|
199
199
|
id?: string;
|
|
200
200
|
prop: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ interface TabPanelProps {
|
|
|
194
194
|
}
|
|
195
195
|
declare const TabPanel: (props: TabPanelProps) => React__default.JSX.Element;
|
|
196
196
|
|
|
197
|
-
type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in' | 'notEqual' | 'notIn';
|
|
197
|
+
type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'valueIn' | 'in' | 'notEqual' | 'valueNotIn' | 'notIn';
|
|
198
198
|
type FilterProps = {
|
|
199
199
|
id?: string;
|
|
200
200
|
prop: string;
|
package/dist/index.js
CHANGED
|
@@ -4664,6 +4664,10 @@ function compareFilter(item, filter) {
|
|
|
4664
4664
|
return filter.value.includes(itemValue);
|
|
4665
4665
|
case "notIn":
|
|
4666
4666
|
return !filter.value.includes(itemValue);
|
|
4667
|
+
case "valueIn":
|
|
4668
|
+
return itemValue.includes(filter.value);
|
|
4669
|
+
case "valueNotIn":
|
|
4670
|
+
return !itemValue.includes(filter.value);
|
|
4667
4671
|
case "gte":
|
|
4668
4672
|
return isDate(itemValue) ? _moment2.default.call(void 0, String(itemValue)).isSameOrAfter(filter.value) : itemValue >= filter.value;
|
|
4669
4673
|
case "gt":
|