|
|
@ -239,19 +239,40 @@ export const comparisonOpList = ( |
|
|
|
text: getGtText(fieldUiType), |
|
|
|
text: getGtText(fieldUiType), |
|
|
|
value: 'gt', |
|
|
|
value: 'gt', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [...numericUITypes, UITypes.Date, UITypes.DateTime, UITypes.Time], |
|
|
|
includedTypes: [ |
|
|
|
|
|
|
|
...numericUITypes, |
|
|
|
|
|
|
|
UITypes.Date, |
|
|
|
|
|
|
|
UITypes.DateTime, |
|
|
|
|
|
|
|
UITypes.LastModifiedTime, |
|
|
|
|
|
|
|
UITypes.CreatedTime, |
|
|
|
|
|
|
|
UITypes.Time, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: getLtText(fieldUiType), |
|
|
|
text: getLtText(fieldUiType), |
|
|
|
value: 'lt', |
|
|
|
value: 'lt', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [...numericUITypes, UITypes.Date, UITypes.DateTime, UITypes.Time], |
|
|
|
includedTypes: [ |
|
|
|
|
|
|
|
...numericUITypes, |
|
|
|
|
|
|
|
UITypes.Date, |
|
|
|
|
|
|
|
UITypes.DateTime, |
|
|
|
|
|
|
|
UITypes.LastModifiedTime, |
|
|
|
|
|
|
|
UITypes.CreatedTime, |
|
|
|
|
|
|
|
UITypes.Time, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: getGteText(fieldUiType), |
|
|
|
text: getGteText(fieldUiType), |
|
|
|
value: 'gte', |
|
|
|
value: 'gte', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [...numericUITypes, UITypes.Date, UITypes.DateTime, UITypes.Time], |
|
|
|
includedTypes: [ |
|
|
|
|
|
|
|
...numericUITypes, |
|
|
|
|
|
|
|
UITypes.Date, |
|
|
|
|
|
|
|
UITypes.DateTime, |
|
|
|
|
|
|
|
UITypes.LastModifiedTime, |
|
|
|
|
|
|
|
UITypes.CreatedTime, |
|
|
|
|
|
|
|
UITypes.Time, |
|
|
|
|
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: getLteText(fieldUiType), |
|
|
|
text: getLteText(fieldUiType), |
|
|
@ -263,7 +284,7 @@ export const comparisonOpList = ( |
|
|
|
text: 'is within', |
|
|
|
text: 'is within', |
|
|
|
value: 'isWithin', |
|
|
|
value: 'isWithin', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'is blank', |
|
|
|
text: 'is blank', |
|
|
@ -298,49 +319,49 @@ export const comparisonSubOpList = ( |
|
|
|
text: 'the past week', |
|
|
|
text: 'the past week', |
|
|
|
value: 'pastWeek', |
|
|
|
value: 'pastWeek', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the past month', |
|
|
|
text: 'the past month', |
|
|
|
value: 'pastMonth', |
|
|
|
value: 'pastMonth', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the past year', |
|
|
|
text: 'the past year', |
|
|
|
value: 'pastYear', |
|
|
|
value: 'pastYear', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the next week', |
|
|
|
text: 'the next week', |
|
|
|
value: 'nextWeek', |
|
|
|
value: 'nextWeek', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the next month', |
|
|
|
text: 'the next month', |
|
|
|
value: 'nextMonth', |
|
|
|
value: 'nextMonth', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the next year', |
|
|
|
text: 'the next year', |
|
|
|
value: 'nextYear', |
|
|
|
value: 'nextYear', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the next number of days', |
|
|
|
text: 'the next number of days', |
|
|
|
value: 'nextNumberOfDays', |
|
|
|
value: 'nextNumberOfDays', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'the past number of days', |
|
|
|
text: 'the past number of days', |
|
|
|
value: 'pastNumberOfDays', |
|
|
|
value: 'pastNumberOfDays', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
@ -349,61 +370,61 @@ export const comparisonSubOpList = ( |
|
|
|
text: 'today', |
|
|
|
text: 'today', |
|
|
|
value: 'today', |
|
|
|
value: 'today', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'tomorrow', |
|
|
|
text: 'tomorrow', |
|
|
|
value: 'tomorrow', |
|
|
|
value: 'tomorrow', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'yesterday', |
|
|
|
text: 'yesterday', |
|
|
|
value: 'yesterday', |
|
|
|
value: 'yesterday', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTim, UITypes.LastModifiedTime, UITypes.CreatedTimee])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'one week ago', |
|
|
|
text: 'one week ago', |
|
|
|
value: 'oneWeekAgo', |
|
|
|
value: 'oneWeekAgo', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'one week from now', |
|
|
|
text: 'one week from now', |
|
|
|
value: 'oneWeekFromNow', |
|
|
|
value: 'oneWeekFromNow', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'one month ago', |
|
|
|
text: 'one month ago', |
|
|
|
value: 'oneMonthAgo', |
|
|
|
value: 'oneMonthAgo', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'one month from now', |
|
|
|
text: 'one month from now', |
|
|
|
value: 'oneMonthFromNow', |
|
|
|
value: 'oneMonthFromNow', |
|
|
|
ignoreVal: true, |
|
|
|
ignoreVal: true, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'number of days ago', |
|
|
|
text: 'number of days ago', |
|
|
|
value: 'daysAgo', |
|
|
|
value: 'daysAgo', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'number of days from now', |
|
|
|
text: 'number of days from now', |
|
|
|
value: 'daysFromNow', |
|
|
|
value: 'daysFromNow', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime])], |
|
|
|
includedTypes: [...(isDateMonth ? [] : [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime])], |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: isDateMonth ? 'exact month' : 'exact date', |
|
|
|
text: isDateMonth ? 'exact month' : 'exact date', |
|
|
|
value: 'exactDate', |
|
|
|
value: 'exactDate', |
|
|
|
ignoreVal: false, |
|
|
|
ignoreVal: false, |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime], |
|
|
|
includedTypes: [UITypes.Date, UITypes.DateTime, UITypes.LastModifiedTime, UITypes.CreatedTime], |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|