/**
 * amis-ui v6.12.0-beta.0
 * Copyright 2018-2025 fex
 */

var OperationMap = {
    equal: 'Condition.equal',
    not_equal: 'Condition.not_equal',
    less: 'Condition.less',
    less_or_equal: 'Condition.less_or_equal',
    greater: 'Condition.greater',
    greater_or_equal: 'Condition.greater_or_equal',
    between: 'Condition.between',
    not_between: 'Condition.not_between',
    is_empty: 'Condition.is_empty',
    is_not_empty: 'Condition.is_not_empty',
    like: 'Condition.like',
    not_like: 'Condition.not_like',
    starts_with: 'Condition.starts_with',
    ends_with: 'Condition.ends_with',
    select_equals: 'Condition.select_equals',
    select_not_equals: 'Condition.select_not_equals',
    select_any_in: 'Condition.select_any_in',
    select_not_any_in: 'Condition.select_not_any_in'
};
var defaultConfig = {
    valueTypes: ['value'],
    types: {
        text: {
            placeholder: 'Condition.placeholder',
            defaultOp: 'equal',
            operators: [
                'equal',
                'not_equal',
                'is_empty',
                'is_not_empty',
                'like',
                'not_like',
                'starts_with',
                'ends_with'
            ]
        },
        number: {
            defaultOp: 'equal',
            operators: [
                'equal',
                'not_equal',
                'less',
                'less_or_equal',
                'greater',
                'greater_or_equal',
                'between',
                'not_between',
                'is_empty',
                'is_not_empty'
            ]
        },
        date: {
            defaultOp: 'equal',
            operators: [
                'equal',
                'not_equal',
                'less',
                'less_or_equal',
                'greater',
                'greater_or_equal',
                'between',
                'not_between',
                'is_empty',
                'is_not_empty'
            ]
        },
        time: {
            defaultOp: 'equal',
            operators: [
                'equal',
                'not_equal',
                'less',
                'less_or_equal',
                'greater',
                'greater_or_equal',
                'between',
                'not_between',
                'is_empty',
                'is_not_empty'
            ]
        },
        datetime: {
            defaultOp: 'equal',
            operators: [
                'equal',
                'not_equal',
                'less',
                'less_or_equal',
                'greater',
                'greater_or_equal',
                'between',
                'not_between',
                'is_empty',
                'is_not_empty'
            ]
        },
        select: {
            defaultOp: 'select_equals',
            operators: [
                'select_equals',
                'select_not_equals',
                'select_any_in',
                'select_not_any_in'
            ],
            valueTypes: ['value']
        },
        boolean: {
            defaultOp: 'equal',
            operators: ['equal', 'not_equal']
        }
    }
};

export { OperationMap, defaultConfig as default };
