{
    "$schema": "../../TcHmiFramework/Schema/ControlDescription.Schema.json",
    "apiVersion": 1,
    "name": "TcHmiDateTimePicker",
    "namespace": "TcHmi.Controls.Beckhoff",
    "displayName": "Date Time Picker",
    "version": {
        "full": "1.12.762.46",
        "major": 1,
        "minor": 12,
        "build": 762,
        "revision": 46
    },
    "visible": true,
    "themeable": "Standard",
    "base": "TcHmi.Controls.System.TcHmiControl",
    "description": "Control for Date Selection.",
    "defaultDesignerEvent": ".onValueChanged",
    "properties": {
        "containerControl": false,
        "geometry": {
            "width": 630,
            "height": 372
        }
    },
    "icons": [
        {
            "name": "Icons/16x16.png",
            "width": 16,
            "height": 16
        }
    ],
    "template": "Template.html",
    "dependencyFiles": [
        {
            "name": "Style.css",
            "type": "Stylesheet",
            "description": ""
        },
        {
            "name": "TcHmiDateTimePicker.js",
            "type": "JavaScript",
            "description": ""
        }
    ],
    "themes": {
        "Base": {
            "resources": [
                {
                    "name": "Themes/Base/Style.css",
                    "type": "Stylesheet",
                    "description": ""
                }
            ]
        },
        "Base-Dark": {
            "resources": [
                {
                    "name": "Themes/Base-Dark/Style.css",
                    "type": "Stylesheet",
                    "description": ""
                }
            ]
        }
    },
    "attributes": [
        {
            "name": "data-tchmi-value",
            "propertyName": "Value",
            "propertySetterName": "setValue",
            "propertyGetterName": "getValue",
            "displayName": "Value",
            "visible": true,
            "displayPriority": 10,
            "type": "tchmi:general#/definitions/DateTime",
            "category": "Common",
            "themeable": "Advanced",
            "description": "The date and time value defined as ISO time string.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": null,
            "defaultValueInternal": null
        },
        {
            "name": "data-tchmi-min-value",
            "propertyName": "MinValue",
            "propertySetterName": "setMinValue",
            "propertyGetterName": "getMinValue",
            "displayName": "MinValue",
            "visible": true,
            "displayPriority": 10,
            "type": "tchmi:general#/definitions/DateTime",
            "category": "Common",
            "themeable": "Advanced",
            "description": "The end date and time defined as ISO time string.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": null,
            "defaultValueInternal": null
        },
        {
            "name": "data-tchmi-max-value",
            "propertyName": "MaxValue",
            "propertySetterName": "setMaxValue",
            "propertyGetterName": "getMaxValue",
            "displayName": "MaxValue",
            "visible": true,
            "displayPriority": 10,
            "type": "tchmi:general#/definitions/DateTime",
            "category": "Common",
            "themeable": "Advanced",
            "description": "The end date and time defined as ISO time string.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": null,
            "defaultValueInternal": null
        },
        {
            "name": "data-tchmi-direct-display",
            "propertyName": "DirectDisplay",
            "propertySetterName": "setDirectDisplay",
            "propertyGetterName": "getDirectDisplay",
            "displayName": "DirectDisplay",
            "visible": true,
            "displayPriority": 10,
            "type": "tchmi:general#/definitions/Boolean",
            "category": "Common",
            "themeable": "Advanced",
            "description": "Wether the control is directly displayed in the view or used as a popup. \nThe popup can be opened by a function provided by the control or by clicking on the empty control in the view. Remember you can add a background image to interact with it more easily.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": true,
            "defaultValueInternal": false
        },
        {
            "name": "data-tchmi-show-confirmation-buttons",
            "propertyName": "ShowConfirmationButtons",
            "propertySetterName": "setShowConfirmationButtons",
            "propertyGetterName": "getShowConfirmationButtons",
            "displayName": "ShowConfirmationButtons",
            "visible": true,
            "displayPriority": 10,
            "type": "tchmi:general#/definitions/Boolean",
            "category": "Common",
            "themeable": "Advanced",
            "description": "Wether the control provides an OK and a cancel button to confirm the interaction. This property does not affect the popup.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": false,
            "defaultValueInternal": true
        },
        {
            "name": "data-tchmi-ignore-invalid-values",
            "propertyName": "IgnoreInvalidValues",
            "propertySetterName": "setIgnoreInvalidValues",
            "propertyGetterName": "getIgnoreInvalidValues",
            "displayName": "IgnoreInvalidValues",
            "visible": true,
            "themeable": "Standard",
            "displayPriority": 30,
            "type": "tchmi:general#/definitions/Boolean",
            "category": "Common",
            "description": "Whether an invalid value should be displayed or not. If not, invalid values are discarded.",
            "readOnly": false,
            "bindable": true,
            "defaultBindingMode": "OneWay",
            "heritable": true,
            "defaultValue": null,
            "defaultValueInternal": false
        }
    ],
    "functions": [
        {
            "name": "openDateTimePicker",
            "displayName": "openDateTimePicker",
            "visible": true,
            "description": "Open the DateTimePicker and added to TopMostLayer.",
            "category": "Common",
            "params": [],
            "type": null,
            "heritable": true
        },
        {
            "name": "closeDateTimePicker",
            "displayName": "closeDateTimePicker",
            "visible": true,
            "description": "Close the DateTimePicker and remove from TopMostLayer.",
            "category": "Common",
            "params": [],
            "type": null,
            "heritable": true
        }
    ],
    "events": [
        {
            "name": ".onValueChanged",
            "displayName": ".onValueChanged",
            "visible": true,
            "displayPriority": 10,
            "category": "Control",
            "description": "The valuechanged event is fired when the value was changed.",
            "heritable": true
        },
        {
            "name": ".onCancel",
            "displayName": ".onCancel",
            "visible": true,
            "displayPriority": 20,
            "category": "Control",
            "description": "The cancel event is fired if the DateTimePicker has canceled (with cancel button or click next to the topmostlayer). The changes are discarded.",
            "heritable": true
        },
        {
            "name": ".onConfirmed",
            "displayName": ".onConfirmed",
            "visible": true,
            "displayPriority": 30,
            "category": "Control",
            "description": "The confirmed event is fired if the confirm button was clicked.",
            "heritable": true
        },
        {
            "name": ".onUserInteractionFinished",
            "displayName": ".onUserInteractionFinished",
            "visible": true,
            "displayPriority": 5,
            "category": "Operator",
            "description": "The userinteractionfinished event is fired when the controls looses focus through clicking on another element or pressing the enter key (in direct diplay mode without confirmation buttons), one of the confirmation buttons was clicked or the space next to the topmostlayer was clicked.",
            "heritable": true
        }
    ],
    "dataTypes": [
        {
            "schema": "Schema/Types.Schema.json"
        }
    ],
    "languages": {
        "en": "Lang/en.json",
        "de": "Lang/de.json"
    }
}