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 DatetimeFieldInterface extends __WEBPACK_EXTERNAL_MODULE__data_source_collection_field_interface_CollectionFieldInterface_mjs__.CollectionFieldInterface {
    constructor(...args){
        super(...args), _define_property(this, "name", 'datetime'), _define_property(this, "type", 'object'), _define_property(this, "group", 'datetime'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Datetime")}}'), _define_property(this, "sortable", true), _define_property(this, "default", {
            type: 'date',
            uiSchema: {
                type: 'string',
                'x-component': 'DatePicker',
                'x-component-props': {
                    showTime: false
                }
            }
        }), _define_property(this, "availableTypes", [
            'date',
            'dateOnly'
        ]), _define_property(this, "hasDefaultValue", true), _define_property(this, "properties", {
            ...__WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.defaultProps,
            ...__WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.dateTimeProps,
            'uiSchema.x-component-props.gmt': {
                type: 'boolean',
                title: '{{t("GMT")}}',
                'x-hidden': true,
                'x-component': 'Checkbox',
                'x-content': '{{t("Use the same time zone (GMT) for all users")}}',
                'x-decorator': 'FormItem',
                default: false
            }
        }), _define_property(this, "filterable", {
            operators: __WEBPACK_EXTERNAL_MODULE__properties_index_mjs__.operators.datetime
        }), _define_property(this, "titleUsable", true);
    }
}
export { DatetimeFieldInterface };
