import { CollectionFieldInterface } from "../../data-source/collection-field-interface/CollectionFieldInterface.mjs";
import { defaultProps, operators } 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 UrlFieldInterface extends CollectionFieldInterface {
    schemaInitialize(schema, param) {
        let { block } = param;
    }
    constructor(...args){
        super(...args), _define_property(this, "name", 'url'), _define_property(this, "type", 'string'), _define_property(this, "group", 'basic'), _define_property(this, "order", 5), _define_property(this, "title", '{{t("URL")}}'), _define_property(this, "default", {
            type: 'text',
            uiSchema: {
                type: 'string',
                'x-component': 'Input.URL'
            }
        }), _define_property(this, "availableTypes", [
            'string',
            'text'
        ]), _define_property(this, "properties", {
            ...defaultProps
        }), _define_property(this, "titleUsable", true), _define_property(this, "filterable", {
            operators: operators.string
        });
    }
}
export { UrlFieldInterface };
