import * as __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__ from "../../data-source/collection-field-interface/CollectionFieldInterface.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__ from "./properties/index.mjs";
function _define_property(obj, key, value) {
    if (key in obj) Object.defineProperty(obj, key, {
        value: value,
        enumerable: true,
        configurable: true,
        writable: true
    });
    else obj[key] = value;
    return obj;
}
class NanoidFieldInterface extends __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__.CollectionFieldInterface {
    constructor(...args){
        super(...args), _define_property(this, "name", 'nanoid'), _define_property(this, "type", 'object'), _define_property(this, "group", 'advanced'), _define_property(this, "order", 0), _define_property(this, "title", '{{t("Nano ID")}}'), _define_property(this, "hidden", false), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'nanoid',
            uiSchema: {
                type: 'string',
                'x-component': 'NanoIDInput'
            }
        }), _define_property(this, "availableTypes", [
            'string',
            'uid'
        ]), _define_property(this, "properties", {
            'uiSchema.title': {
                type: 'string',
                title: '{{t("Field display name")}}',
                required: true,
                'x-decorator': 'FormItem',
                'x-component': 'Input'
            },
            name: {
                type: 'string',
                title: '{{t("Field name")}}',
                required: true,
                'x-decorator': 'FormItem',
                'x-component': 'Input',
                'x-disabled': '{{ !createOnly }}',
                description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
            },
            customAlphabet: {
                type: 'string',
                title: '{{t("Alphabet")}}',
                default: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz',
                'x-decorator': 'FormItem',
                'x-component': 'Input'
            },
            size: {
                type: 'number',
                title: '{{t("Length")}}',
                default: 21,
                'x-decorator': 'FormItem',
                'x-component': 'InputNumber'
            }
        }), _define_property(this, "filterable", {
            operators: __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.operators.string
        }), _define_property(this, "titleUsable", true);
    }
}
export { NanoidFieldInterface };
