528 lines
20 KiB
JSON
528 lines
20 KiB
JSON
{
|
|
"$schema": "../../TcHmiFramework/Schema/ControlDescription.Schema.json",
|
|
"apiVersion": 1,
|
|
"name": "TcHmiMultiState",
|
|
"namespace": "TcHmi.Controls.Beckhoff",
|
|
"displayName": "Multi State",
|
|
"version": {
|
|
"full": "14.4.1.0",
|
|
"major": 14,
|
|
"minor": 4,
|
|
"build": 1,
|
|
"revision": 0
|
|
},
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"base": "TcHmi.Controls.System.TcHmiControl",
|
|
"description": "A multi state control.",
|
|
"defaultDesignerEvent": "",
|
|
"properties": {
|
|
"containerControl": false,
|
|
"geometry": {
|
|
"width": 150,
|
|
"height": 150
|
|
}
|
|
},
|
|
"icons": [
|
|
{
|
|
"name": "Icons/16x16.png",
|
|
"width": 16,
|
|
"height": 16
|
|
}
|
|
],
|
|
"template": "Template.html",
|
|
"dependencyFiles": [
|
|
{
|
|
"name": "Style.css",
|
|
"type": "Stylesheet",
|
|
"description": ""
|
|
},
|
|
{
|
|
"name": "../dist/TcHmiMultiState/TcHmiMultiState.esm.js",
|
|
"type": "EsModule",
|
|
"description": "Contains all the main logic as ES module."
|
|
}
|
|
],
|
|
"themes": {
|
|
"Base": {
|
|
"resources": [
|
|
{
|
|
"name": "Themes/Base/Style.css",
|
|
"type": "Stylesheet",
|
|
"description": "Theme dependent style"
|
|
}
|
|
]
|
|
},
|
|
"Base-Dark": {
|
|
"resources": [
|
|
{
|
|
"name": "Themes/Base-Dark/Style.css",
|
|
"type": "Stylesheet",
|
|
"description": "Theme dependent style"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attributes": [
|
|
{
|
|
"name": "data-tchmi-state",
|
|
"propertyName": "State",
|
|
"propertySetterName": "setState",
|
|
"propertyGetterName": "getState",
|
|
"displayName": "State",
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:general#/definitions/Any",
|
|
"category": "Common",
|
|
"description": "The displayed State.",
|
|
"defaultValue": null,
|
|
"readOnly": false,
|
|
"defaultValueInternal": null,
|
|
"heritable": true,
|
|
"bindable": true
|
|
},
|
|
{
|
|
"name": "data-tchmi-state-list",
|
|
"propertyName": "StateList",
|
|
"propertySetterName": "setStateList",
|
|
"propertyGetterName": "getStateList",
|
|
"displayName": "State List",
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/TcHmi.Controls.Beckhoff.TcHmiMultiState.StateList",
|
|
"category": "Common",
|
|
"description": "List of States.",
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null,
|
|
"readOnly": false,
|
|
"allowSymbolExpressionsInObject": true,
|
|
"heritable": true,
|
|
"bindable": true
|
|
},
|
|
{
|
|
"name": "data-tchmi-fallback-icon",
|
|
"propertyName": "FallbackIcon",
|
|
"propertySetterName": "setFallbackIcon",
|
|
"propertyGetterName": "getFallbackIcon",
|
|
"displayName": "Fallback Icon",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/Path",
|
|
"category": "Common",
|
|
"description": "The fallback icon is shown when the state is not defined in the state list",
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null,
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"heritable": true
|
|
},
|
|
{
|
|
"name": "data-tchmi-fallback-background-color",
|
|
"propertyName": "FallbackBackgroundColor",
|
|
"propertySetterName": "setFallbackBackgroundColor",
|
|
"propertyGetterName": "getFallbackBackgroundColor",
|
|
"displayName": "Fallback Background Color",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/Color",
|
|
"category": "Common",
|
|
"description": "The fallback background color is shown when the state is not defined in the state list",
|
|
"defaultValue": null,
|
|
"readOnly": false,
|
|
"defaultValueInternal": null,
|
|
"bindable": true,
|
|
"heritable": true,
|
|
"allowSymbolExpressionsInObject": true
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-color",
|
|
"propertyName": "TextColor",
|
|
"propertySetterName": "setTextColor",
|
|
"propertyGetterName": "getTextColor",
|
|
"displayName": "Text Color",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 10,
|
|
"type": "tchmi:framework#/definitions/SolidColor",
|
|
"category": "Colors",
|
|
"description": "The color of the displayed text",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"allowSymbolExpressionsInObject": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-fallback-text",
|
|
"propertyName": "FallbackText",
|
|
"propertySetterName": "setFallbackText",
|
|
"propertyGetterName": "getFallbackText",
|
|
"displayName": "Fallback Text",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:general#/definitions/String",
|
|
"category": "Common",
|
|
"description": "The fallback text is shown when the state is not defined in the state list",
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null,
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"heritable": true
|
|
},
|
|
{
|
|
"name": "data-tchmi-ignore-type-safety",
|
|
"propertyName": "IgnoreTypeSafety",
|
|
"propertySetterName": "setIgnoreTypeSafety",
|
|
"propertyGetterName": "getIgnoreTypeSafety",
|
|
"displayName": "Ignore Type Safety",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 30,
|
|
"type": "tchmi:general#/definitions/Boolean",
|
|
"category": "Common",
|
|
"description": "Defines whether the type safety is ignored when the current state is compared with the list of defined states.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": false
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-horizontal-alignment",
|
|
"propertyName": "TextHorizontalAlignment",
|
|
"propertySetterName": "setTextHorizontalAlignment",
|
|
"propertyGetterName": "getTextHorizontalAlignment",
|
|
"displayName": "Text Horizontal Alignment",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/HorizontalAlignment",
|
|
"category": "Text",
|
|
"description": "The horizontal alignment of the text",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-vertical-alignment",
|
|
"propertyName": "TextVerticalAlignment",
|
|
"propertySetterName": "setTextVerticalAlignment",
|
|
"propertyGetterName": "getTextVerticalAlignment",
|
|
"displayName": "Text Vertical Alignment",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/VerticalAlignment",
|
|
"category": "Text",
|
|
"description": "The vertical alignment of the text",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-word-wrap",
|
|
"propertyName": "WordWrap",
|
|
"propertySetterName": "setWordWrap",
|
|
"propertyGetterName": "getWordWrap",
|
|
"displayName": "Word Wrap",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 55,
|
|
"type": "tchmi:general#/definitions/Boolean",
|
|
"category": "Text",
|
|
"description": "Wrap text that is too long to fit in a single line.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": true,
|
|
"defaultValueInternal": false
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-padding",
|
|
"propertyName": "TextPadding",
|
|
"propertySetterName": "setTextPadding",
|
|
"propertyGetterName": "getTextPadding",
|
|
"displayName": "Text Padding",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 55,
|
|
"type": "tchmi:framework#/definitions/Padding",
|
|
"category": "Text",
|
|
"description": "The distance of the text to the border.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"allowSymbolExpressionsInObject": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-font-size",
|
|
"propertyName": "TextFontSize",
|
|
"propertySetterName": "setTextFontSize",
|
|
"propertyGetterName": "getTextFontSize",
|
|
"displayName": "Text Font Size",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Text",
|
|
"description": "The size of the font. Percent values are relative to the parent elements font size.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-font-size-unit",
|
|
"propertyName": "TextFontSizeUnit",
|
|
"propertySetterName": "setTextFontSizeUnit",
|
|
"propertyGetterName": "getTextFontSizeUnit",
|
|
"refTo": "TextFontSize",
|
|
"displayName": "Text Font Size Unit",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementUnit",
|
|
"category": "Text",
|
|
"description": "Could be 'px' or for relative sizing '%'.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-font-family",
|
|
"propertyName": "TextFontFamily",
|
|
"propertySetterName": "setTextFontFamily",
|
|
"propertyGetterName": "getTextFontFamily",
|
|
"displayName": "Text Font Family",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 60,
|
|
"type": "tchmi:framework#/definitions/FontFamily",
|
|
"category": "Text",
|
|
"description": "Comma separated list of family name or keyword: 'serif', 'sans-serif', 'monospace'.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-font-style",
|
|
"propertyName": "TextFontStyle",
|
|
"propertySetterName": "setTextFontStyle",
|
|
"propertyGetterName": "getTextFontStyle",
|
|
"displayName": "Text Font Style",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 60,
|
|
"type": "tchmi:framework#/definitions/FontStyle",
|
|
"category": "Text",
|
|
"description": "'Normal', 'Italic' (slanted with special glyphs), 'Oblique' (slanted normal glyphs) or 'Auto' for inherited.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "Auto"
|
|
},
|
|
{
|
|
"name": "data-tchmi-text-font-weight",
|
|
"propertyName": "TextFontWeight",
|
|
"propertySetterName": "setTextFontWeight",
|
|
"propertyGetterName": "getTextFontWeight",
|
|
"displayName": "Text Font Weight",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 60,
|
|
"type": "tchmi:framework#/definitions/FontWeight",
|
|
"category": "Text",
|
|
"description": "'Normal', 'Bold' (glyphs with more weight) or 'Auto' for inherited.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "Auto"
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-width",
|
|
"propertyName": "IconWidth",
|
|
"propertySetterName": "setIconWidth",
|
|
"propertyGetterName": "getIconWidth",
|
|
"displayName": "Icon Width",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Icon",
|
|
"description": "Width of the icon.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-width-unit",
|
|
"propertyName": "IconWidthUnit",
|
|
"propertySetterName": "setIconWidthUnit",
|
|
"propertyGetterName": "getIconWidthUnit",
|
|
"refTo": "IconWidth",
|
|
"displayName": "Icon Width Unit",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementUnit",
|
|
"category": "Icon",
|
|
"description": "Could be 'px' or for relative positioning '%'.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-height",
|
|
"propertyName": "IconHeight",
|
|
"propertySetterName": "setIconHeight",
|
|
"propertyGetterName": "getIconHeight",
|
|
"displayName": "Icon Height",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementValue",
|
|
"category": "Icon",
|
|
"description": "Height of the icon.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-height-unit",
|
|
"propertyName": "IconHeightUnit",
|
|
"propertySetterName": "setIconHeightUnit",
|
|
"propertyGetterName": "getIconHeightUnit",
|
|
"refTo": "IconHeight",
|
|
"displayName": "Icon Height Unit",
|
|
"visible": true,
|
|
"themeable": "Advanced",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/MeasurementUnit",
|
|
"category": "Icon",
|
|
"description": "Could be 'px' or for relative positioning '%'.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": "px"
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-horizontal-alignment",
|
|
"propertyName": "IconHorizontalAlignment",
|
|
"propertySetterName": "setIconHorizontalAlignment",
|
|
"propertyGetterName": "getIconHorizontalAlignment",
|
|
"displayName": "Icon Horizontal Alignment",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/HorizontalAlignment",
|
|
"category": "Icon",
|
|
"description": "The horizontal alignment of the icon",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-vertical-alignment",
|
|
"propertyName": "IconVerticalAlignment",
|
|
"propertySetterName": "setIconVerticalAlignment",
|
|
"propertyGetterName": "getIconVerticalAlignment",
|
|
"displayName": "Icon Vertical Alignment",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 20,
|
|
"type": "tchmi:framework#/definitions/VerticalAlignment",
|
|
"category": "Icon",
|
|
"description": "The vertical alignment of the icon",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
},
|
|
{
|
|
"name": "data-tchmi-icon-padding",
|
|
"propertyName": "IconPadding",
|
|
"propertySetterName": "setIconPadding",
|
|
"propertyGetterName": "getIconPadding",
|
|
"displayName": "Icon Padding",
|
|
"visible": true,
|
|
"themeable": "Standard",
|
|
"displayPriority": 55,
|
|
"type": "tchmi:framework#/definitions/Padding",
|
|
"category": "Icon",
|
|
"description": "The distance of the icon to the border.",
|
|
"readOnly": false,
|
|
"bindable": true,
|
|
"defaultBindingMode": "OneWay",
|
|
"heritable": true,
|
|
"allowSymbolExpressionsInObject": true,
|
|
"defaultValue": null,
|
|
"defaultValueInternal": null
|
|
}
|
|
],
|
|
"attributeCategories": [
|
|
{
|
|
"name": "Text",
|
|
"displayPriority": 500,
|
|
"defaultCollapsed": true,
|
|
"description": "Attributes defining the text of the control."
|
|
},
|
|
{
|
|
"name": "Icon",
|
|
"displayPriority": 250,
|
|
"defaultCollapsed": true,
|
|
"description": "Attributes defining the icon of the control."
|
|
}
|
|
],
|
|
"functions": [],
|
|
"events": [],
|
|
"languages": {},
|
|
"dataTypes": [
|
|
{
|
|
"schema": "Schema/Types.Schema.json"
|
|
}
|
|
]
|
|
} |