| @ -1,106 +1,161 @@ | |||||
| <?xml version="1.0"?> | <?xml version="1.0"?> | ||||
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |||||
| <!-- | |||||
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |||||
| <!-- | |||||
| Componentes basicos para uso nos formularios do Vitruvio | Componentes basicos para uso nos formularios do Vitruvio | ||||
| --> | --> | ||||
| <!-- Parametros comuns nos Campos --> | |||||
| <xs:include schemaLocation="vitruvio-form-common-attrs.xsd" /> | |||||
| <xs:include schemaLocation="vitruvio-form-scripting.xsd" /> | |||||
| <xs:include schemaLocation="vitruvio-form-db-components.xsd" /> | |||||
| <!-- Parametros comuns nos Campos --> | |||||
| <xs:include schemaLocation="vitruvio-form-common-attrs.xsd" /> | |||||
| <xs:include schemaLocation="vitruvio-form-scripting.xsd" /> | |||||
| <xs:include schemaLocation="vitruvio-form-db-components.xsd" /> | |||||
| <xs:complexType name="GridEditorWidgetDataSource"> | |||||
| <xs:choice> | |||||
| <xs:element name="scriptLoader" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="query" minOccurs="0" maxOccurs="1"> | |||||
| <xs:complexType> | |||||
| <xs:attribute name="key" type="xs:string" use="required" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:choice> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorEvents"> | |||||
| <xs:sequence> | |||||
| <xs:element name="onChange" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="onRowCreated" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="onRowRemoved" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorWidgetDataSource"> | |||||
| <xs:choice> | |||||
| <xs:element name="scriptLoader" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="query" minOccurs="0" maxOccurs="1"> | |||||
| <xs:complexType> | |||||
| <xs:attribute name="key" type="xs:string" use="required" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:choice> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorColumns"> | |||||
| <xs:sequence> | |||||
| <xs:element name="column" minOccurs="1" maxOccurs="unbounded"> | |||||
| <xs:complexType> | |||||
| <xs:attribute name="name" type="xs:string" use="required" /> | |||||
| <xs:attribute name="type" use="required"> | |||||
| <xs:simpleType> | |||||
| <xs:restriction base="xs:string"> | |||||
| <xs:enumeration value="string" /> | |||||
| <xs:enumeration value="numeric" /> | |||||
| <xs:enumeration value="decimal" /> | |||||
| <xs:enumeration value="date" /> | |||||
| <xs:enumeration value="boolean" /> | |||||
| </xs:restriction> | |||||
| </xs:simpleType> | |||||
| </xs:attribute> | |||||
| <xs:attribute name="caption" type="xs:string" /> | |||||
| <xs:attribute name="format" type="xs:string" /> | |||||
| <xs:attribute name="width" type="xs:positiveInteger" /> | |||||
| <xs:attribute name="editable" type="xs:boolean" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorEvents"> | |||||
| <xs:sequence> | |||||
| <xs:element name="onChange" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="onRowCreated" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="onRowRemoved" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditors"> | |||||
| <xs:sequence> | |||||
| <xs:element name="field"> | |||||
| <xs:complexType> | |||||
| <xs:sequence maxOccurs="1" minOccurs="1"> | |||||
| <xs:any /> | |||||
| </xs:sequence> | |||||
| <xs:attribute name="key" type="xs:string" use="required" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorColumns"> | |||||
| <xs:sequence> | |||||
| <xs:element name="column" minOccurs="1" maxOccurs="unbounded"> | |||||
| <xs:complexType> | |||||
| <xs:attribute name="name" type="xs:string" use="required" /> | |||||
| <xs:attribute name="type" use="required"> | |||||
| <xs:complexType name="GridEditorWidget"> | |||||
| <xs:sequence> | |||||
| <xs:element name="datasource" minOccurs="1" maxOccurs="1" | |||||
| type="GridEditorWidgetDataSource" /> | |||||
| <xs:element name="keyField" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="parentKeyField" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="freezeCount" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="events" minOccurs="0" maxOccurs="1" type="GridEditorEvents" /> | |||||
| <xs:element name="editorSelectorScript" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="cellStyleGeneratorScript" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="columns" type="GridEditorColumns" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="editors" type="GridEditors" minOccurs="0" maxOccurs="1" /> | |||||
| </xs:sequence> | |||||
| <xs:attributeGroup ref="basicElement" /> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="ProgressBarLinear"> | |||||
| <xs:attribute name="id" type="xs:string" /> | |||||
| <xs:attribute name="enabled" type="xs:boolean" default="true" /> | |||||
| <xs:attribute name="value" type="xs:float" /> | |||||
| <xs:attribute name="maxValue" type="xs:float" /> | |||||
| <xs:attribute name="color" type="xs:string" /> | |||||
| <xs:attribute name="stroke" type="xs:int" /> | |||||
| <xs:attribute name="radius" type="xs:int" /> | |||||
| <xs:attribute name="resolution" default=""> | |||||
| <xs:simpleType> | |||||
| <xs:restriction base="xs:string"> | |||||
| <xs:enumeration value="" /> | |||||
| <xs:enumeration value="TIMESTAMP" /> | |||||
| </xs:restriction> | |||||
| </xs:simpleType> | |||||
| </xs:attribute> | |||||
| <xs:attributeGroup ref="basicElement" /> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="BarCodeEventType"> | |||||
| <xs:simpleContent> | |||||
| <xs:extension base="xs:string"> | |||||
| <xs:attribute name="key" use="required"> | |||||
| <xs:simpleType> | <xs:simpleType> | ||||
| <xs:restriction base="xs:string"> | <xs:restriction base="xs:string"> | ||||
| <xs:enumeration value="string"/> | |||||
| <xs:enumeration value="numeric"/> | |||||
| <xs:enumeration value="decimal"/> | |||||
| <xs:enumeration value="date"/> | |||||
| <xs:enumeration value="boolean"/> | |||||
| </xs:restriction> | |||||
| <xs:enumeration value="valueChange" /> | |||||
| <xs:enumeration value="blur" /> | |||||
| <xs:enumeration value="focus" /> | |||||
| </xs:restriction> | |||||
| </xs:simpleType> | </xs:simpleType> | ||||
| </xs:attribute> | </xs:attribute> | ||||
| <xs:attribute name="caption" type="xs:string" /> | |||||
| <xs:attribute name="format" type="xs:string" /> | |||||
| <xs:attribute name="width" type="xs:positiveInteger" /> | |||||
| <xs:attribute name="editable" type="xs:boolean" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditors"> | |||||
| <xs:sequence> | |||||
| <xs:element name="field"> | |||||
| <xs:complexType> | |||||
| <xs:sequence maxOccurs="1" minOccurs="1"> | |||||
| <xs:any /> | |||||
| </xs:sequence> | |||||
| <xs:attribute name="key" type="xs:string" use="required" /> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| </xs:extension> | |||||
| </xs:simpleContent> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="GridEditorWidget"> | |||||
| <xs:sequence> | |||||
| <xs:element name="datasource" minOccurs="1" maxOccurs="1" type="GridEditorWidgetDataSource" /> | |||||
| <xs:element name="keyField" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="parentKeyField" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="freezeCount" minOccurs="1" maxOccurs="1" /> | |||||
| <xs:element name="events" minOccurs="0" maxOccurs="1" type="GridEditorEvents" /> | |||||
| <xs:element name="editorSelectorScript" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="cellStyleGeneratorScript" type="script" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="columns" type="GridEditorColumns" minOccurs="0" maxOccurs="1" /> | |||||
| <xs:element name="editors" type="GridEditors" minOccurs="0" maxOccurs="1" /> | |||||
| </xs:sequence> | |||||
| <xs:attributeGroup ref="basicElement" /> | |||||
| </xs:complexType> | |||||
| <xs:complexType name="Barcode"> | |||||
| <xs:sequence> | |||||
| <xs:element name="events" minOccurs="0" maxOccurs="1"> | |||||
| <xs:complexType> | |||||
| <xs:sequence> | |||||
| <xs:element name="event" type="BarCodeEventType" minOccurs="0" | |||||
| maxOccurs="unbounded" /> | |||||
| </xs:sequence> | |||||
| </xs:complexType> | |||||
| </xs:element> | |||||
| </xs:sequence> | |||||
| <xs:complexType name="ProgressBarLinear"> | |||||
| <xs:attribute name="id" type="xs:string" /> | |||||
| <xs:attribute name="enabled" type="xs:boolean" default="true" /> | |||||
| <xs:attribute name="value" type="xs:float" /> | |||||
| <xs:attribute name="maxValue" type="xs:float" /> | |||||
| <xs:attribute name="color" type="xs:string" /> | |||||
| <xs:attribute name="stroke" type="xs:int" /> | |||||
| <xs:attribute name="radius" type="xs:int" /> | |||||
| <xs:attribute name="resolution" default=""> | |||||
| <xs:simpleType> | |||||
| <xs:restriction base="xs:string"> | |||||
| <xs:enumeration value="" /> | |||||
| <xs:enumeration value="TIMESTAMP" /> | |||||
| </xs:restriction> | |||||
| </xs:simpleType> | |||||
| </xs:attribute> | |||||
| <xs:attributeGroup ref="basicElement" /> | |||||
| </xs:complexType> | |||||
| <xs:attributeGroup ref="basicElement" /> | |||||
| <xs:attribute name="id" use="required" type="xs:string" /> | |||||
| <xs:attribute name="type" use="required"> | |||||
| <xs:simpleType> | |||||
| <xs:restriction base="xs:string"> | |||||
| <xs:enumeration value="string" /> | |||||
| <xs:enumeration value="number" /> | |||||
| </xs:restriction> | |||||
| </xs:simpleType> | |||||
| </xs:attribute> | |||||
| <xs:attribute name="readOnly" type="xs:boolean" default="false" /> | |||||
| <xs:attribute name="enabled" type="xs:boolean" default="true" /> | |||||
| <xs:attribute name="description" type="xs:string" /> | |||||
| <xs:attribute name="prefix" type="xs:string" /> | |||||
| <xs:attribute name="suffix" type="xs:string" /> | |||||
| <xs:attribute name="titleField" type="xs:string" default="Leitor" /> | |||||
| <xs:attribute name="descriptionField" type="xs:string" | |||||
| default="Por favor, aponte sua câmera para o código." /> | |||||
| <xs:attribute name="allowPaste" type="xs:boolean" default="true" /> | |||||
| <xs:attribute name="focusNextFieldOnValueChange" type="xs:boolean" default="true" /> | |||||
| <xs:attribute name="focusNextFieldOnEnter" type="xs:boolean" default="false" /> | |||||
| <xs:attribute name="formats" type="xs:string" default="EAN_13,QR_CODE" /> | |||||
| <xs:attribute name="prefixAndSuffixValidation" type="xs:string" /> | |||||
| <xs:attribute name="allowElevationForGroups" type="xs:string" /> | |||||
| </xs:complexType> | |||||
| </xs:schema> | </xs:schema> | ||||