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