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 MultipleSelectFieldInterface 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", 'multipleSelect'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "order", 3), _define_property(this, "title", '{{t("Multiple select")}}'), _define_property(this, "default", {
            type: 'array',
            defaultValue: [],
            uiSchema: {
                type: 'array',
                'x-component': 'Select',
                'x-component-props': {
                    mode: 'multiple'
                },
                enum: []
            }
        }), _define_property(this, "availableTypes", [
            'array'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...__WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.defaultProps,
            'uiSchema.enum': __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.dataSource
        }), _define_property(this, "filterable", {
            operators: __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.operators.array
        });
    }
}
export { MultipleSelectFieldInterface };
