"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__, {
    CheckboxFieldInterface: ()=>CheckboxFieldInterface
});
const external_index_js_namespaceObject = require("../index.js");
const CollectionFieldInterface_js_namespaceObject = require("../../data-source/collection-field-interface/CollectionFieldInterface.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 CheckboxFieldInterface extends CollectionFieldInterface_js_namespaceObject.CollectionFieldInterface {
    schemaInitialize(schema, param) {
        let { block } = param;
        if ([
            'Table',
            'Kanban'
        ].includes(block)) {
            schema['x-component-props'] = schema['x-component-props'] || {};
            schema['x-component-props']['ellipsis'] = true;
        }
    }
    constructor(...args){
        super(...args), _define_property(this, "name", 'checkbox'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "icon", 'CheckSquareOutlined'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Checkbox")}}'), _define_property(this, "default", {
            type: 'boolean',
            uiSchema: {
                type: 'boolean',
                'x-component': 'Checkbox'
            }
        }), _define_property(this, "availableTypes", [
            'boolean',
            'integer',
            'bigInt'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...external_index_js_namespaceObject.defaultProps,
            'uiSchema.x-component-props.showUnchecked': {
                type: 'boolean',
                title: '{{t("Display X when unchecked")}}',
                default: false,
                'x-decorator': 'FormItem',
                'x-component': 'Checkbox'
            }
        }), _define_property(this, "filterable", {
            operators: external_index_js_namespaceObject.operators.boolean
        });
    }
}
exports.CheckboxFieldInterface = __webpack_exports__.CheckboxFieldInterface;
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
    "CheckboxFieldInterface"
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
Object.defineProperty(exports, '__esModule', {
    value: true
});
