{
    "type": "tabs",
    "i18n": true,
    "items": {
        "_tabcountdown": {
            "type": "panel",
            "label": "tabcountdown",
            "xs": 12,
            "sm": 12,
            "md": 12,
            "lg": 12,
            "xl": 12,
            "items": {
                "countdowns": {
                    "newLine": true,
                    "xs": 12,
                    "sm": 12,
                    "md": 12,
                    "lg": 12,
                    "xl": 12,
                    "noDelete": false,
                    "type": "table",
                    "items": [
                        {
                            "width": "5%",
                            "type": "text",
                            "attr": "name",
                            "title": "cdName",
                            "filter": true,
                            "sort": true,
                            "default": "",
                            "tooltip": "cd-TT-Name",
                            "validator": "!/[^0-9a-zöÖüÜäÄß]/i.test(data.name) && data.name.length>0 && data.name.length<30&&globalData.countdowns.filter((el,idx)=>el.name==data.name&&idx!=arrayIndex).length==0",
                            "validatorNoSaveOnError": true,
                            "disabled": "originalData.countdowns.some(el=>el.name==data.name)"
                        },
                        {
                            "width": "5%",
                            "type": "text",
                            "attr": "days",
                            "title": "cdDays",
                            "filter": true,
                            "sort": true,
                            "default": 0,
                            "tooltip": "cd-TT-Days",
                            "validator": "data.days>=0",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "width": "5%",
                            "type": "text",
                            "attr": "hours",
                            "title": "cdHours",
                            "filter": true,
                            "sort": true,
                            "default": 0,
                            "tooltip": "cd-TT-Hours",
                            "validator": "(data.hours>=0) && (data.hours<=23)",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "width": "5%",
                            "type": "text",
                            "attr": "minutes",
                            "title": "cdMinutes",
                            "filter": true,
                            "sort": true,
                            "default": 0,
                            "tooltip": "cd-TT-Minutes",
                            "validator": "(data.minutes>=0) && (data.minutes<=59)",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "width": "5%",
                            "type": "text",
                            "attr": "seconds",
                            "title": "cdSeconds",
                            "filter": true,
                            "sort": true,
                            "default": 0,
                            "tooltip": "cd-TT-Seconds",
                            "validator": "(data.seconds>=0) && (data.seconds<=59)",
                            "validatorNoSaveOnError": true
                        },
                        {
                            "width": "5%",
                            "type": "select",
                            "attr": "behavior",
                            "title": "cdBehavior",
                            "options": [
                                { "label": "cdBehaviourSetTimer", "value": "timer" },
                                { "label": "cdBehaviourSetReset", "value": "zero" },
                                { "label": "cdBehaviourSetRerun", "value": "rerun" }
                            ],
                            "filter": true,
                            "sort": true,
                            "default": "timer",
                            "tooltip": "cd-TT-Behavior"
                        },
                        {
                            "width": "5%",
                            "attr": "_send",
                            "type": "sendTo",
                            "label": "cdSetDP",
                            "title": "cdSetDP",
                            "command": "setCountdownConfig",
                            "jsonData": "{\"behavior\": \"${data.behavior}\", \"days\": \"${data.days}\", \"hours\": \"${data.hours}\", \"minutes\": \"${data.minutes}\", \"name\": \"${data.name}\", \"seconds\": \"${data.seconds}\" }",
                            "variant": "outlined",
                            "showProcess": true,
                            "disabled": "!originalData.countdowns[arrayIndex] || (originalData.countdowns[arrayIndex].days==data.days && originalData.countdowns[arrayIndex].hours==data.hours && originalData.countdowns[arrayIndex].minutes==data.minutes && originalData.countdowns[arrayIndex].seconds==data.seconds && originalData.countdowns[arrayIndex].behavior==data.behavior)"
                        }
                    ]
                }
            }
        },
        "_tabtimeseries": {
            "type": "panel",
            "label": "tabtimeseries",
            "xs": 12,
            "sm": 12,
            "md": 12,
            "lg": 12,
            "xl": 12,
            "items": {
                "timeseries": {
                    "type": "custom",
                    "i18n": true,
                    "xs": 12,
                    "sm": 10,
                    "md": 10,
                    "lg": 10,
                    "xl": 10,
                    "style": { "width": "100%" },
                    "guiApi": 2,
                    "url": "custom/customComponents.js",
                    "name": "ConfigCustomMytimeSet/Components/TimeseriesConfig"
                }
            }
        }
    }
}
