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 CollectionSelectFieldInterface extends __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__.CollectionFieldInterface {
    schemaInitialize(schema, param) {
        let { block } = param;
        const props = schema['x-component-props'] = schema['x-component-props'] || {};
        props.style = {
            ...props.style || {},
            width: '100%'
        };
        if ([
            'Table',
            'Kanban'
        ].includes(block)) props['ellipsis'] = true;
    }
    constructor(...args){
        super(...args), _define_property(this, "name", 'collection'), _define_property(this, "type", 'string'), _define_property(this, "group", 'advanced'), _define_property(this, "order", 5), _define_property(this, "title", '{{t("Collection selector")}}'), _define_property(this, "description", '{{t("Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios")}}'), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'string',
            uiSchema: {
                type: 'string',
                'x-component': 'CollectionSelect'
            }
        }), _define_property(this, "availableTypes", [
            'string'
        ]), _define_property(this, "hasDefaultValue", false), _define_property(this, "properties", {
            ...__WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.defaultProps,
            'uiSchema.enum': __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.collectionDataSource
        }), _define_property(this, "filterable", {
            operators: __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.operators.collection
        });
    }
}
export { CollectionSelectFieldInterface };
