'use strict';

const FilterType = {
    number: 'number',
    string: 'string',
    date: 'date',
    select: 'select',
    multiselect: 'multiselect'
};
const EmptyFilterValue = '--empty--';
const filterOperators = {
    number: [
        { value: 'eq', label: 'is' },
        { value: 'neq', label: 'is not' },
        { value: 'lt', label: 'less than' },
        { value: 'lte', label: 'less than or equal' },
        { value: 'gt', label: 'greater than' },
        { value: 'gte', label: 'greater than or equal' }
    ],
    string: [
        { value: 'eq', label: 'is' },
        { value: 'neq', label: 'is not' },
        { value: 'contains', label: 'contains' },
        { value: 'starts_with', label: 'starts with' },
        { value: 'ends_with', label: 'ends with' }
    ],
    date: [
        { value: 'eq', label: 'is' },
        { value: 'neq', label: 'is not' },
        { value: 'lt', label: 'is before' },
        { value: 'lte', label: 'is on or before' },
        { value: 'gt', label: 'is after' },
        { value: 'gte', label: 'is on or after' }
    ],
    select: [
        { value: 'eq', label: 'is' },
        { value: 'neq', label: 'is not' }
    ],
    multiselect: [
        { value: 'in', label: 'is any of', alternateLabel: 'is' },
        { value: 'notin', label: 'is none of', alternateLabel: 'is not' }
    ]
};

exports.EmptyFilterValue = EmptyFilterValue;
exports.FilterType = FilterType;
exports.filterOperators = filterOperators;
//# sourceMappingURL=filters.cjs.map
