@awsui/collection-hooks
Advanced tools
Comparing version 1.0.53 to 1.0.54
@@ -107,3 +107,3 @@ import * as React from 'react'; | ||
} | ||
export type PropertyFilterOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!='; | ||
export type PropertyFilterOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=' | '^' | string; | ||
export interface PropertyFilterOperatorExtended<TokenValue> { | ||
@@ -110,0 +110,0 @@ operator: PropertyFilterOperator; |
@@ -52,2 +52,7 @@ "use strict"; | ||
return (itemValue + '').toLowerCase().indexOf((tokenValue + '').toLowerCase()) === -1; | ||
case '^': | ||
return (itemValue + '').toLowerCase().startsWith((tokenValue + '').toLowerCase()); | ||
// The unsupported operators result in no data being filtered out. | ||
default: | ||
return true; | ||
} | ||
@@ -54,0 +59,0 @@ }; |
@@ -107,3 +107,3 @@ import * as React from 'react'; | ||
} | ||
export type PropertyFilterOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!='; | ||
export type PropertyFilterOperator = '<' | '<=' | '>' | '>=' | ':' | '!:' | '=' | '!=' | '^' | string; | ||
export interface PropertyFilterOperatorExtended<TokenValue> { | ||
@@ -110,0 +110,0 @@ operator: PropertyFilterOperator; |
@@ -49,2 +49,7 @@ import { compareDates, compareTimestamps } from '../date-utils/compare-dates.js'; | ||
return (itemValue + '').toLowerCase().indexOf((tokenValue + '').toLowerCase()) === -1; | ||
case '^': | ||
return (itemValue + '').toLowerCase().startsWith((tokenValue + '').toLowerCase()); | ||
// The unsupported operators result in no data being filtered out. | ||
default: | ||
return true; | ||
} | ||
@@ -51,0 +56,0 @@ }; |
{ | ||
"commit": "8363ec2ef52c514ed09854b66e62ce0244b623ac" | ||
"commit": "d8fb396bf49e339bd18bb5f9dc1ada0b2d62dcf4" | ||
} |
@@ -50,4 +50,4 @@ { | ||
"type": "module", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"license": "Apache-2.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81254
1513