"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    CollectionSelectFieldInterface: ()=>CollectionSelectFieldInterface
});
const CollectionFieldInterface_js_namespaceObject = require("../../data-source/collection-field-interface/CollectionFieldInterface.js");
const index_js_namespaceObject = require("./properties/index.js");
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 CollectionFieldInterface_js_namespaceObject.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", {
            ...index_js_namespaceObject.defaultProps,
            'uiSchema.enum': index_js_namespaceObject.collectionDataSource
        }), _define_property(this, "filterable", {
            operators: index_js_namespaceObject.operators.collection
        });
    }
}
exports.CollectionSelectFieldInterface = __webpack_exports__.CollectionSelectFieldInterface;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
    "CollectionSelectFieldInterface"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
    value: true
});
