@@ -47,6 +47,7 @@ export const defaultProps = {
47
47
css : [ ] ,
48
48
filter_query : '' ,
49
49
filter_action : 'none' ,
50
+ filter_case : 'sensitive' ,
50
51
sort_as_null : [ ] ,
51
52
sort_action : 'none' ,
52
53
sort_mode : 'single' ,
@@ -249,14 +250,25 @@ export const propTypes = {
249
250
* will select *all* of the merged columns associated with it.
250
251
* The table-level prop `column_selectable` is used to determine the type of column
251
252
* selection to use.
252
- *
253
253
*/
254
254
selectable : PropTypes . oneOfType ( [
255
255
PropTypes . oneOf ( [ 'first' , 'last' ] ) ,
256
256
PropTypes . bool ,
257
257
PropTypes . arrayOf ( PropTypes . bool )
258
258
] ) ,
259
259
260
+ /**
261
+ * If true, the filter on the column will override the table setting and always be
262
+ * case-sensitive, unless a case-insensitive operator is used.
263
+ */
264
+ filter_case_sensitive : PropTypes . bool ,
265
+
266
+ /**
267
+ * If true, the filter on the column will override the table setting and will always be
268
+ * case-insensitive, nless a case-sensitive operator is used.
269
+ */
270
+ filter_case_insensitive : PropTypes . bool ,
271
+
260
272
/**
261
273
* The formatting applied to the column's data.
262
274
* This prop is derived from the [d3-format](https://github.com/d3/d3-format) library specification. Apart from
@@ -944,13 +956,6 @@ export const propTypes = {
944
956
*/
945
957
tooltip_duration : PropTypes . number ,
946
958
947
- /**
948
- * If `filter_action` is enabled, then the current filtering
949
- * string is represented in this `filter_query`
950
- * property.
951
- */
952
- filter_query : PropTypes . string ,
953
-
954
959
/**
955
960
* The `filter_action` property controls the behavior of the `filtering` UI.
956
961
* If `'none'`, then the filtering UI is not displayed.
@@ -964,6 +969,22 @@ export const propTypes = {
964
969
*/
965
970
filter_action : PropTypes . oneOf ( [ 'custom' , 'native' , 'none' ] ) ,
966
971
972
+ /**
973
+ * If `filter_action` is enabled, then the current filtering
974
+ * string is represented in this `filter_query`
975
+ * property.
976
+ */
977
+ filter_query : PropTypes . string ,
978
+
979
+ /**
980
+ * If `filter_action` is enabled, the `filter_case` property controls the case-sensitivity of
981
+ * the filters.
982
+ * If `'sensitive'`, filtering on all columns will be case-sensitive (default behavior).
983
+ * If `'insensitive'`, filtering on all columns will be case-insensitive.
984
+ * This setting can be overridden per column.
985
+ */
986
+ filter_case : PropTypes . oneOf ( [ 'sensitive' , 'insensitive' ] ) ,
987
+
967
988
/**
968
989
* The `sort_action` property enables data to be
969
990
* sorted on a per-column basis.
@@ -1131,7 +1152,7 @@ export const propTypes = {
1131
1152
* subType (string; optional):
1132
1153
* 'open-block': '()',
1133
1154
* 'logical-operator': '&&', '||',
1134
- * 'relational-operator': '=', '>=', '>', '<=', '<', '!=', 'contains',
1155
+ * 'relational-operator': '=', '>=', '>', '<=', '<', '!=', 'contains', 'i=', 'i>=', 'i>', 'i<=', 'i<', 'i!=', 'icontains', 's=', 's>=', 's>', 's<=', 's<', 's!=', 'scontains',
1135
1156
* 'unary-operator': '!', 'is bool', 'is even', 'is nil', 'is num', 'is object', 'is odd', 'is prime', 'is str',
1136
1157
* 'expression': 'value', 'field';
1137
1158
* value (any):
0 commit comments