/**
 * @since Last modified: 2024-09-10 11:20:41
 * @constant optTags
 * @description  The attrs and props comparison table of Tags module.
 */
'use strict';
import optBase from './optBase';
import unique from '../utils/unique';
import prefix from '../global/prefix';
import config from '../global/config';
const optTags = unique([
    {
        attr: 'ajax',
        prop: 'ajax',
        value: {}
    },
    {
        attr: 'content',
        prop: 'content',
        value: ''
    },
    {
        attr: 'cont-type',
        prop: 'contType',
        value: 'text',
    },
    {
        attr: 'cont-data',
        prop: 'contData',
        value: {},
    },
    {
        attr: 'theme',
        prop: 'theme',
        value: '',
    },
    {
        attr: 'type',
        prop: 'type',
        value: '',
    },
    {
        attr: 'compact',
        prop: 'compact',
        value: false,
    },
    {
        attr: 'shape',
        prop: 'shape',
        value: '',
    },
    {
        attr: 'classes',
        prop: 'classes',
        value: '',
    },
    {
        attr: 'unique',
        prop: 'unique',
        value: false,
    },
    {
        attr: 'empty',
        prop: 'empty',
        value: {
            enable: true,
            content: `<i class="${prefix}c-ignore">${config.lang.tags.emptyholder}</i>`,
        }
    },
    {
        attr: 'editor',
        prop: 'editor',
        value: {
            enable: false,
            addable: true,
            deletable: true,
            selector: '',
            placeholder: config.lang.tags.placeholder,
        },
    },
    {
        attr: 'removable',
        prop: 'removable',
        value: false,
    },
    {
        attr: 'hyphen',
        prop: 'hyphen',
        value: config.splitHyphen,
    },
    {
        attr: 'b4-fill',
        prop: 'b4Fill',
        value: null,
    },
    {
        attr: 'b4-add',
        prop: 'b4Add',
        value: null,
    },
    {
        attr: 'b4-remove',
        prop: 'b4Remove',
        value: null,
    },
    {
        attr: 'b4-edit',
        prop: 'b4Edit',
        value: null,
    },
    {
        attr: 'b4-clear',
        prop: 'b4Clear',
        value: null,
    },
    {
        attr: 'on-add',
        prop: 'onAdd',
        value: null,
    },
    {
        attr: 'on-remove',
        prop: 'onRemove',
        value: null,
    },
    {
        attr: 'on-edit',
        prop: 'onEdit',
        value: null,
    },
    {
        attr: 'on-clear',
        prop: 'onClear',
        value: null,
    },
    {
        attr: 'on-duplicate',
        prop: 'onDuplicate',
        value: null,
    },
    {
        attr: 'on-request',
        prop: 'onRequest',
        value: null
    },
    ...optBase
], 'attr');
export default optTags;
