|
|
@@ -1,468 +1,446 @@
|
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<!-- Abstract Control Definitions for UI Layout Definition Format -->
|
|
|
-<patterns xmlns="ui-layout-patterns">
|
|
|
-
|
|
|
- <!-- Base abstract control with common attributes -->
|
|
|
- <control name="CommonControl" type="base" category="abstract">
|
|
|
- <description>Base abstract control defining common attributes for all controls</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>any</allowed-parents>
|
|
|
- <allowed-children>depends-on-implementation</allowed-children>
|
|
|
- <container>depends-on-implementation</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="name" type="string" required="true" />
|
|
|
- <attribute name="enabled" type="bool" default="true" />
|
|
|
- <attribute name="text" type="string" default="" />
|
|
|
- <attribute name="visible" type="bool" default="true" />
|
|
|
- <attribute name="data-source" type="string" default="" />
|
|
|
- <attribute name="dock" type="enum" values="none,left,right,top,bottom" default="none" />
|
|
|
- <attribute name="tooltip" type="string" default="" />
|
|
|
- </attributes>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- Label Control -->
|
|
|
- <control name="Label" type="display" category="basic" inherits="CommonControl">
|
|
|
- <description>Display text label control</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
|
|
|
- <allowed-children>none</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="font-size" type="int" default="12" min="8" max="72" />
|
|
|
- <attribute name="font-weight" type="enum" values="normal,bold" default="normal" />
|
|
|
- <attribute name="color" type="color" default="#000000" />
|
|
|
- <attribute name="alignment" type="enum" values="left,center,right" default="left" />
|
|
|
- </attributes>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- TextBox Control -->
|
|
|
- <control name="TextBox" type="input" category="basic" inherits="CommonControl">
|
|
|
- <description>Text input control for single or multi-line text</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
- <allowed-children>none</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="placeholder" type="string" default="" />
|
|
|
- <attribute name="max-length" type="int" default="255" min="1" max="10000" />
|
|
|
- <attribute name="readonly" type="bool" default="false" />
|
|
|
- <attribute name="multiline" type="bool" default="false" />
|
|
|
- <attribute name="password" type="bool" default="false" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="text-changed" />
|
|
|
- <event name="focus" />
|
|
|
- <event name="blur" />
|
|
|
- <event name="enter-pressed" />
|
|
|
- </behavior>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- ListBoxItem Structure -->
|
|
|
- <structure name="ListBoxItem" type="data-item" category="basic">
|
|
|
- <description>Individual item within list-based controls</description>
|
|
|
- <attributes>
|
|
|
- <attribute name="value" type="string" required="true" />
|
|
|
- <attribute name="text" type="string" required="true" />
|
|
|
- <attribute name="selected" type="bool" default="false" />
|
|
|
- <attribute name="enabled" type="bool" default="true" />
|
|
|
- <attribute name="image" type="string" default="" />
|
|
|
- </attributes>
|
|
|
- </structure>
|
|
|
-
|
|
|
- <!-- ComboBox Control -->
|
|
|
- <control name="ComboBox" type="input" category="basic" inherits="CommonControl">
|
|
|
- <description>Dropdown selection control with editable option</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
|
|
|
- <allowed-children>items</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="selected-value" type="string" default="" />
|
|
|
- <attribute name="editable" type="bool" default="false" />
|
|
|
- <attribute name="dropdown-height" type="int" default="200" min="100" max="500" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="selection-changed" alias="on-select" />
|
|
|
- <event name="text-changed" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <listbox-item inherits="ListBoxItem" />
|
|
|
- </items>
|
|
|
- <selected-items max-count="1" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- Separator Control -->
|
|
|
- <control name="Separator" type="display" category="basic" inherits="CommonControl">
|
|
|
- <description>Visual separator line for organizing interface elements</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,ToolBar,StatusBar</allowed-parents>
|
|
|
- <allowed-children>none</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
|
|
|
- <attribute name="thickness" type="int" default="1" min="1" max="5" />
|
|
|
- <attribute name="color" type="color" default="#C0C0C0" />
|
|
|
- <attribute name="width" type="int" min="1" max="500" />
|
|
|
- <attribute name="height" type="int" min="1" max="500" />
|
|
|
- </attributes>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- ListBox Control -->
|
|
|
- <control name="ListBox" type="input" category="basic" inherits="CommonControl">
|
|
|
- <description>List selection control with single or multiple selection</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
- <allowed-children>items,context-menu</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="multi-select" type="bool" default="false" />
|
|
|
- <attribute name="selection-mode" type="enum" values="single,multiple,extended" default="single" />
|
|
|
- <attribute name="sorted" type="bool" default="false" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="selection-changed" alias="on-select" />
|
|
|
- <event name="double-click" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <listbox-item inherits="ListBoxItem" />
|
|
|
- </items>
|
|
|
- <selected-items max-count="depends-on-multi-select" />
|
|
|
- <context-menu max-count="1" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- ColumnItem Structure -->
|
|
|
- <structure name="ColumnItem" type="data-item" category="basic">
|
|
|
- <description>Column definition for ListView control</description>
|
|
|
- <attributes>
|
|
|
- <attribute name="name" type="string" required="true" />
|
|
|
- <attribute name="text" type="string" required="true" />
|
|
|
- <attribute name="width" type="int" default="100" min="20" max="500" />
|
|
|
- <attribute name="sortable" type="bool" default="true" />
|
|
|
- <attribute name="visible" type="bool" default="true" />
|
|
|
- <attribute name="alignment" type="enum" values="left,center,right" default="left" />
|
|
|
- <attribute name="data-type" type="enum" values="text,number,date,boolean" default="text" />
|
|
|
- </attributes>
|
|
|
- </structure>
|
|
|
-
|
|
|
- <!-- ListView Control -->
|
|
|
- <control name="ListView" type="data" category="basic" inherits="CommonControl">
|
|
|
- <description>List view control with columns and detailed item display</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
- <allowed-children>columns,items,context-menu</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- <requires-structure>columns,items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="view-mode" type="enum" values="list,details,icons,tiles" default="details" />
|
|
|
- <attribute name="multi-select" type="bool" default="false" />
|
|
|
- <attribute name="grid-lines" type="bool" default="true" />
|
|
|
- <attribute name="full-row-select" type="bool" default="true" />
|
|
|
- <attribute name="sort-column" type="string" default="" />
|
|
|
- <attribute name="sort-direction" type="enum" values="asc,desc" default="asc" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="selection-changed" alias="on-select" />
|
|
|
- <event name="item-double-click" />
|
|
|
- <event name="column-click" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <columns min-count="1" max-count="20">
|
|
|
- <column-item inherits="ColumnItem" />
|
|
|
- </columns>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <listview-item>
|
|
|
- <values>
|
|
|
- <value column="" text="" />
|
|
|
- </values>
|
|
|
- </listview-item>
|
|
|
- </items>
|
|
|
- <selected-items max-count="depends-on-multi-select" />
|
|
|
- <context-menu max-count="1" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- TreeViewItem Structure -->
|
|
|
- <structure name="TreeViewItem" type="data-item" category="basic">
|
|
|
- <description>Node item within TreeView control</description>
|
|
|
- <attributes>
|
|
|
- <attribute name="text" type="string" required="true" />
|
|
|
- <attribute name="value" type="string" required="true" />
|
|
|
- <attribute name="expanded" type="bool" default="false" />
|
|
|
- <attribute name="selected" type="bool" default="false" />
|
|
|
- <attribute name="checked" type="bool" default="false" />
|
|
|
- <attribute name="image" type="string" default="" />
|
|
|
- <attribute name="enabled" type="bool" default="true" />
|
|
|
- </attributes>
|
|
|
- <structure>
|
|
|
- <children min-count="0" max-count="unlimited" max-depth="10">
|
|
|
- <tree-view-item inherits="TreeViewItem" />
|
|
|
- </children>
|
|
|
- </structure>
|
|
|
- </structure>
|
|
|
-
|
|
|
- <!-- TreeView Control -->
|
|
|
- <control name="TreeView" type="data" category="basic" inherits="CommonControl">
|
|
|
- <description>Hierarchical tree view control with expandable nodes</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
- <allowed-children>items</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="show-lines" type="bool" default="true" />
|
|
|
- <attribute name="show-root-lines" type="bool" default="true" />
|
|
|
- <attribute name="show-plus-minus" type="bool" default="true" />
|
|
|
- <attribute name="checkboxes" type="bool" default="false" />
|
|
|
- <attribute name="full-row-select" type="bool" default="false" />
|
|
|
- <attribute name="hottracking" type="bool" default="false" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="node-selected" />
|
|
|
- <event name="node-expanded" />
|
|
|
- <event name="node-collapsed" />
|
|
|
- <event name="node-checked" />
|
|
|
- <event name="node-double-click" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <tree-view-item inherits="TreeViewItem" />
|
|
|
- </items>
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- Panel Control -->
|
|
|
- <control name="Panel" type="container" category="layout" inherits="CommonControl">
|
|
|
- <description>Container panel for organizing other controls</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,window,wireframe-instance</allowed-parents>
|
|
|
- <allowed-children>any-control</allowed-children>
|
|
|
- <container>true</container>
|
|
|
- <max-children>unlimited</max-children>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="border" type="bool" default="false" />
|
|
|
- <attribute name="border-style" type="enum" values="none,solid,raised,sunken" default="none" />
|
|
|
- <attribute name="background-color" type="color" default="transparent" />
|
|
|
- <attribute name="padding" type="int" default="0" min="0" max="50" />
|
|
|
- <attribute name="margin" type="int" default="0" min="0" max="50" />
|
|
|
- <attribute name="orientation" type="enum" values="horizontal,vertical" default="vertical" />
|
|
|
- <attribute name="alignment" type="enum" values="left,center,right,stretch" default="left" />
|
|
|
- <attribute name="auto-scroll" type="bool" default="false" />
|
|
|
- <attribute name="width" type="int" min="10" max="2000" />
|
|
|
- <attribute name="height" type="int" min="10" max="2000" />
|
|
|
- </attributes>
|
|
|
- <structure>
|
|
|
- <children allow-multiple="true" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- SplitPanel Control -->
|
|
|
- <control name="SplitPanel" type="container" category="layout" inherits="CommonControl">
|
|
|
- <description>Splitter container with two resizable panels</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,window,wireframe-instance</allowed-parents>
|
|
|
- <allowed-children>panel1,panel2</allowed-children>
|
|
|
- <container>true</container>
|
|
|
- <max-children>2</max-children>
|
|
|
- <requires-structure>panel1,panel2</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="orientation" type="enum" values="horizontal,vertical" default="vertical" />
|
|
|
- <attribute name="splitter-distance" type="int" default="50" min="10" max="90" />
|
|
|
- <attribute name="splitter-width" type="int" default="4" min="2" max="10" />
|
|
|
- <attribute name="fixed-panel" type="enum" values="none,panel1,panel2" default="none" />
|
|
|
- <attribute name="border" type="bool" default="true" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="splitter-moved" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <panel1 required="true">
|
|
|
- <children allow-multiple="true" />
|
|
|
- </panel1>
|
|
|
- <panel2 required="true">
|
|
|
- <children allow-multiple="true" />
|
|
|
- </panel2>
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- MenuItem Structure -->
|
|
|
- <structure name="MenuItem" type="menu-item" category="navigation">
|
|
|
- <description>Individual menu item within Menu control</description>
|
|
|
- <attributes>
|
|
|
- <attribute name="text" type="string" required="true" />
|
|
|
- <attribute name="value" type="string" default="" />
|
|
|
- <attribute name="enabled" type="bool" default="true" />
|
|
|
- <attribute name="visible" type="bool" default="true" />
|
|
|
- <attribute name="checked" type="bool" default="false" />
|
|
|
- <attribute name="separator" type="bool" default="false" />
|
|
|
- <attribute name="shortcut" type="string" default="" />
|
|
|
- <attribute name="image" type="string" default="" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="click" alias="on-click" />
|
|
|
- </behavior>
|
|
|
- <structure>
|
|
|
- <sub-items min-count="0" max-count="unlimited" max-depth="5">
|
|
|
- <menu-item inherits="MenuItem" />
|
|
|
- </sub-items>
|
|
|
- </structure>
|
|
|
- </structure>
|
|
|
-
|
|
|
- <!-- Menu Control -->
|
|
|
- <control name="Menu" type="navigation" category="navigation" inherits="CommonControl">
|
|
|
- <description>Menu control with hierarchical menu items</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,ToolBar,window</allowed-parents>
|
|
|
- <allowed-children>items</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
|
|
|
- <attribute name="show-images" type="bool" default="true" />
|
|
|
- <attribute name="show-shortcuts" type="bool" default="true" />
|
|
|
- </attributes>
|
|
|
- <structure>
|
|
|
- <items min-count="1" max-count="unlimited">
|
|
|
- <menu-item inherits="MenuItem" />
|
|
|
- </items>
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- Button Control -->
|
|
|
- <control name="Button" type="action" category="basic" inherits="CommonControl">
|
|
|
- <description>Clickable button control with text and/or image</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField,ButtonBar</allowed-parents>
|
|
|
- <allowed-children>none</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="type" type="enum" values="text,image,text-image" default="text" />
|
|
|
- <attribute name="image" type="string" default="" />
|
|
|
- <attribute name="image-position" type="enum" values="left,right,top,bottom" default="left" />
|
|
|
- <attribute name="style" type="enum" values="normal,primary,secondary,danger,borderless" default="normal" />
|
|
|
- <attribute name="auto-size" type="bool" default="false" />
|
|
|
- <attribute name="width" type="int" min="20" max="300" />
|
|
|
- <attribute name="height" type="int" min="20" max="100" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="click" alias="on-click" required="true" />
|
|
|
- <event name="mouse-enter" />
|
|
|
- <event name="mouse-leave" />
|
|
|
- </behavior>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- Image Control -->
|
|
|
- <control name="Image" type="display" category="basic" inherits="CommonControl">
|
|
|
- <description>Image display control</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,Button</allowed-parents>
|
|
|
- <allowed-children>none</allowed-children>
|
|
|
- <container>false</container>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="resource" type="string" required="true" />
|
|
|
- <attribute name="size-mode" type="enum" values="normal,stretch,zoom,center,auto-size" default="normal" />
|
|
|
- <attribute name="border" type="bool" default="false" />
|
|
|
- <attribute name="background-color" type="color" default="transparent" />
|
|
|
- <attribute name="width" type="int" min="10" max="1000" />
|
|
|
- <attribute name="height" type="int" min="10" max="1000" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="click" />
|
|
|
- <event name="double-click" />
|
|
|
- </behavior>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- StatusBar Control -->
|
|
|
- <control name="StatusBar" type="container" category="layout" inherits="CommonControl">
|
|
|
- <description>Status bar container for displaying status information</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,window</allowed-parents>
|
|
|
- <allowed-children>items,context-menu</allowed-children>
|
|
|
- <container>true</container>
|
|
|
- <max-children>unlimited</max-children>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="show-panels" type="bool" default="true" />
|
|
|
- <attribute name="sizing-grip" type="bool" default="true" />
|
|
|
- <attribute name="height" type="int" default="22" min="16" max="50" />
|
|
|
- </attributes>
|
|
|
- <structure>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <status-item>
|
|
|
- <control-ref allowed-types="Label,Image,ComboBox,Button" />
|
|
|
- </status-item>
|
|
|
- </items>
|
|
|
- <context-menu max-count="1" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- ToolBar Control -->
|
|
|
- <control name="ToolBar" type="container" category="layout" inherits="CommonControl">
|
|
|
- <description>Toolbar container for quick access to commands</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,window</allowed-parents>
|
|
|
- <allowed-children>items,context-menu</allowed-children>
|
|
|
- <container>true</container>
|
|
|
- <max-children>unlimited</max-children>
|
|
|
- <requires-structure>items</requires-structure>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
|
|
|
- <attribute name="appearance" type="enum" values="normal,flat,system" default="normal" />
|
|
|
- <attribute name="show-tooltips" type="bool" default="true" />
|
|
|
- <attribute name="divider" type="bool" default="true" />
|
|
|
- <attribute name="wrappable" type="bool" default="false" />
|
|
|
- <attribute name="button-size" type="enum" values="small,medium,large" default="medium" />
|
|
|
- </attributes>
|
|
|
- <structure>
|
|
|
- <items min-count="0" max-count="unlimited">
|
|
|
- <toolbar-item>
|
|
|
- <control-ref allowed-types="Label,Image,ComboBox,Button,Menu" />
|
|
|
- </toolbar-item>
|
|
|
- </items>
|
|
|
- <context-menu max-count="1" />
|
|
|
- </structure>
|
|
|
- </control>
|
|
|
-
|
|
|
- <!-- PopupPanel Control - specialized panel that can be shown/hidden -->
|
|
|
- <control name="PopupPanel" type="container" category="layout" inherits="Panel">
|
|
|
- <description>Panel that can be dynamically shown or hidden, typically overlaying other content</description>
|
|
|
- <constraints>
|
|
|
- <allowed-parents>Panel,window</allowed-parents>
|
|
|
- <allowed-children>any-control</allowed-children>
|
|
|
- <container>true</container>
|
|
|
- <max-children>unlimited</max-children>
|
|
|
- </constraints>
|
|
|
- <attributes>
|
|
|
- <attribute name="popup-visible" type="bool" default="false" />
|
|
|
- <attribute name="auto-hide" type="bool" default="true" />
|
|
|
- <attribute name="modal" type="bool" default="false" />
|
|
|
- <attribute name="position" type="enum" values="center,top-left,top-right,bottom-left,bottom-right" default="center" />
|
|
|
- <attribute name="animation" type="enum" values="none,fade,slide" default="fade" />
|
|
|
- </attributes>
|
|
|
- <behavior>
|
|
|
- <event name="popup-show" />
|
|
|
- <event name="popup-hide" />
|
|
|
- </behavior>
|
|
|
- </control>
|
|
|
-
|
|
|
-</patterns>
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- ENHANCED Abstract Control Definitions for UI Layout Definition Format -->
|
|
|
+<patterns xmlns="ui-layout-patterns">
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Base abstract control with data binding and accessibility -->
|
|
|
+ <control name="CommonControl" type="base" category="abstract">
|
|
|
+ <description>Base abstract control defining common attributes including data binding and accessibility</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>any</allowed-parents>
|
|
|
+ <allowed-children>depends-on-implementation</allowed-children>
|
|
|
+ <container>depends-on-implementation</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <!-- Original attributes -->
|
|
|
+ <attribute name="name" type="string" required="true" />
|
|
|
+ <attribute name="enabled" type="bool" default="true" />
|
|
|
+ <attribute name="text" type="string" default="" />
|
|
|
+ <attribute name="visible" type="bool" default="true" />
|
|
|
+ <attribute name="data-source" type="string" default="" />
|
|
|
+ <attribute name="dock" type="enum" values="none,left,right,top,bottom" default="none" />
|
|
|
+ <attribute name="tooltip" type="string" default="" />
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Data Binding Support -->
|
|
|
+ <attribute name="data-context" type="string" default="" />
|
|
|
+ <attribute name="binding-path" type="string" default="" />
|
|
|
+ <attribute name="command-binding" type="string" default="" />
|
|
|
+ <attribute name="validation-rule" type="string" default="" />
|
|
|
+ <attribute name="converter" type="string" default="" />
|
|
|
+ <attribute name="binding-mode" type="enum" values="OneWay,TwoWay,OneTime,OneWayToSource" default="TwoWay" />
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Accessibility Support -->
|
|
|
+ <attribute name="aria-label" type="string" default="" />
|
|
|
+ <attribute name="aria-description" type="string" default="" />
|
|
|
+ <attribute name="aria-role" type="string" default="" />
|
|
|
+ <attribute name="aria-live" type="enum" values="off,polite,assertive" default="off" />
|
|
|
+ <attribute name="tab-index" type="int" default="0" />
|
|
|
+ <attribute name="access-key" type="string" default="" />
|
|
|
+ <attribute name="high-contrast-support" type="bool" default="true" />
|
|
|
+ <attribute name="screen-reader-text" type="string" default="" />
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Version Compatibility -->
|
|
|
+ <attribute name="min-version" type="string" default="1.0" />
|
|
|
+ <attribute name="max-version" type="string" default="2.0" />
|
|
|
+ <attribute name="deprecated-in" type="string" default="" />
|
|
|
+ <attribute name="replaced-by" type="string" default="" />
|
|
|
+ </attributes>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: StatusBar Control (was missing) -->
|
|
|
+ <control name="StatusBar" type="container" category="layout" inherits="CommonControl">
|
|
|
+ <description>Status bar container for displaying application status information</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,window</allowed-parents>
|
|
|
+ <allowed-children>items,context-menu</allowed-children>
|
|
|
+ <container>true</container>
|
|
|
+ <max-children>unlimited</max-children>
|
|
|
+ <requires-structure>items</requires-structure>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="show-panels" type="bool" default="true" />
|
|
|
+ <attribute name="sizing-grip" type="bool" default="true" />
|
|
|
+ <attribute name="height" type="int" default="22" min="16" max="50" />
|
|
|
+ <attribute name="dock-position" type="enum" values="bottom,top" default="bottom" />
|
|
|
+ <attribute name="auto-size-panels" type="bool" default="true" />
|
|
|
+ </attributes>
|
|
|
+ <structure>
|
|
|
+ <items min-count="0" max-count="unlimited">
|
|
|
+ <status-item>
|
|
|
+ <control-ref allowed-types="Label,Image,ComboBox,Button,ProgressBar" />
|
|
|
+ </status-item>
|
|
|
+ </items>
|
|
|
+ <context-menu max-count="1" />
|
|
|
+ </structure>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: ProgressBar Control -->
|
|
|
+ <control name="ProgressBar" type="display" category="basic" inherits="CommonControl">
|
|
|
+ <description>Progress indicator control with enhanced features</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,StatusBar,FormField</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="minimum" type="int" default="0" />
|
|
|
+ <attribute name="maximum" type="int" default="100" />
|
|
|
+ <attribute name="value" type="int" default="0" />
|
|
|
+ <attribute name="step" type="int" default="1" />
|
|
|
+ <attribute name="style" type="enum" values="blocks,continuous,marquee" default="continuous" />
|
|
|
+ <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
|
|
|
+ <attribute name="show-text" type="bool" default="false" />
|
|
|
+ <attribute name="text-format" type="string" default="{0}%" />
|
|
|
+ <attribute name="indeterminate" type="bool" default="false" />
|
|
|
+ <attribute name="animation-speed" type="int" default="100" min="0" max="1000" />
|
|
|
+ <attribute name="color" type="color" default="#0078d4" />
|
|
|
+ <attribute name="background-color" type="color" default="#f0f0f0" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="value-changed" />
|
|
|
+ <event name="progress-completed" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: DatePicker Control -->
|
|
|
+ <control name="DatePicker" type="input" category="basic" inherits="CommonControl">
|
|
|
+ <description>Date selection control with calendar popup</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="selected-date" type="date" default="null" />
|
|
|
+ <attribute name="min-date" type="date" default="1900-01-01" />
|
|
|
+ <attribute name="max-date" type="date" default="2100-12-31" />
|
|
|
+ <attribute name="format" type="string" default="yyyy-MM-dd" />
|
|
|
+ <attribute name="placeholder-text" type="string" default="" />
|
|
|
+ <attribute name="show-calendar-button" type="bool" default="true" />
|
|
|
+ <attribute name="show-clear-button" type="bool" default="false" />
|
|
|
+ <attribute name="first-day-of-week" type="enum" values="sunday,monday,tuesday,wednesday,thursday,friday,saturday" default="sunday" />
|
|
|
+ <attribute name="highlight-today" type="bool" default="true" />
|
|
|
+ <attribute name="allow-text-input" type="bool" default="true" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="date-selected" />
|
|
|
+ <event name="date-changed" />
|
|
|
+ <event name="calendar-opened" />
|
|
|
+ <event name="calendar-closed" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: NumericUpDown Control -->
|
|
|
+ <control name="NumericUpDown" type="input" category="basic" inherits="CommonControl">
|
|
|
+ <description>Numeric input control with up/down buttons</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="value" type="decimal" default="0" />
|
|
|
+ <attribute name="minimum" type="decimal" default="0" />
|
|
|
+ <attribute name="maximum" type="decimal" default="100" />
|
|
|
+ <attribute name="increment" type="decimal" default="1" />
|
|
|
+ <attribute name="decimal-places" type="int" default="0" min="0" max="10" />
|
|
|
+ <attribute name="thousands-separator" type="bool" default="false" />
|
|
|
+ <attribute name="format-string" type="string" default="" />
|
|
|
+ <attribute name="show-buttons" type="bool" default="true" />
|
|
|
+ <attribute name="button-position" type="enum" values="right,left" default="right" />
|
|
|
+ <attribute name="wrap-value" type="bool" default="false" />
|
|
|
+ <attribute name="allow-null" type="bool" default="false" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="value-changed" />
|
|
|
+ <event name="increment" />
|
|
|
+ <event name="decrement" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Slider Control -->
|
|
|
+ <control name="Slider" type="input" category="basic" inherits="CommonControl">
|
|
|
+ <description>Range slider control for selecting numeric values</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="value" type="double" default="0" />
|
|
|
+ <attribute name="minimum" type="double" default="0" />
|
|
|
+ <attribute name="maximum" type="double" default="100" />
|
|
|
+ <attribute name="step" type="double" default="1" />
|
|
|
+ <attribute name="orientation" type="enum" values="horizontal,vertical" default="horizontal" />
|
|
|
+ <attribute name="show-ticks" type="bool" default="false" />
|
|
|
+ <attribute name="tick-frequency" type="double" default="10" />
|
|
|
+ <attribute name="tick-placement" type="enum" values="none,top-left,bottom-right,both" default="bottom-right" />
|
|
|
+ <attribute name="show-value" type="bool" default="false" />
|
|
|
+ <attribute name="value-format" type="string" default="{0}" />
|
|
|
+ <attribute name="snap-to-ticks" type="bool" default="false" />
|
|
|
+ <attribute name="thumb-style" type="enum" values="round,square,custom" default="round" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="value-changed" />
|
|
|
+ <event name="thumb-drag-started" />
|
|
|
+ <event name="thumb-drag-completed" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced TextBox Control -->
|
|
|
+ <control name="TextBox" type="input" category="basic" inherits="CommonControl">
|
|
|
+ <description>Enhanced text input control with validation and data binding</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="placeholder" type="string" default="" />
|
|
|
+ <attribute name="max-length" type="int" default="255" min="1" max="10000" />
|
|
|
+ <attribute name="readonly" type="bool" default="false" />
|
|
|
+ <attribute name="multiline" type="bool" default="false" />
|
|
|
+ <attribute name="password" type="bool" default="false" />
|
|
|
+ <!-- ENHANCEMENT: Additional input types and features -->
|
|
|
+ <attribute name="input-type" type="enum" values="text,email,url,tel,number,search" default="text" />
|
|
|
+ <attribute name="auto-complete" type="enum" values="off,on,name,email,username,current-password" default="off" />
|
|
|
+ <attribute name="spell-check" type="bool" default="true" />
|
|
|
+ <attribute name="text-transform" type="enum" values="none,uppercase,lowercase,capitalize" default="none" />
|
|
|
+ <attribute name="validation-pattern" type="string" default="" />
|
|
|
+ <attribute name="validation-message" type="string" default="" />
|
|
|
+ <attribute name="required" type="bool" default="false" />
|
|
|
+ <attribute name="auto-focus" type="bool" default="false" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="text-changed" />
|
|
|
+ <event name="focus" />
|
|
|
+ <event name="blur" />
|
|
|
+ <event name="enter-pressed" />
|
|
|
+ <!-- ENHANCEMENT: Validation events -->
|
|
|
+ <event name="validation-error" />
|
|
|
+ <event name="validation-success" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced Button Control -->
|
|
|
+ <control name="Button" type="action" category="basic" inherits="CommonControl">
|
|
|
+ <description>Enhanced clickable button control with command binding</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField,ButtonBar</allowed-parents>
|
|
|
+ <allowed-children>none</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="type" type="enum" values="text,image,text-image" default="text" />
|
|
|
+ <attribute name="image" type="string" default="" />
|
|
|
+ <attribute name="image-position" type="enum" values="left,right,top,bottom" default="left" />
|
|
|
+ <attribute name="style" type="enum" values="normal,primary,secondary,danger,success,warning,info,borderless" default="normal" />
|
|
|
+ <!-- ENHANCEMENT: Additional button features -->
|
|
|
+ <attribute name="size" type="enum" values="small,medium,large,extra-large" default="medium" />
|
|
|
+ <attribute name="auto-size" type="bool" default="false" />
|
|
|
+ <attribute name="width" type="int" min="20" max="300" />
|
|
|
+ <attribute name="height" type="int" min="20" max="100" />
|
|
|
+ <attribute name="is-default" type="bool" default="false" />
|
|
|
+ <attribute name="is-cancel" type="bool" default="false" />
|
|
|
+ <attribute name="command-parameter" type="string" default="" />
|
|
|
+ <attribute name="confirm-message" type="string" default="" />
|
|
|
+ <attribute name="loading-text" type="string" default="" />
|
|
|
+ <attribute name="disabled-reason" type="string" default="" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="click" alias="on-click" required="true" />
|
|
|
+ <event name="mouse-enter" />
|
|
|
+ <event name="mouse-leave" />
|
|
|
+ <!-- ENHANCEMENT: Command events -->
|
|
|
+ <event name="command-executed" />
|
|
|
+ <event name="command-can-execute-changed" />
|
|
|
+ </behavior>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced ComboBox Control -->
|
|
|
+ <control name="ComboBox" type="input" category="basic" inherits="CommonControl">
|
|
|
+ <description>Enhanced dropdown selection control with data binding and filtering</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,StatusBar,ToolBar,FormField</allowed-parents>
|
|
|
+ <allowed-children>items</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ <requires-structure>items</requires-structure>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="selected-value" type="string" default="" />
|
|
|
+ <attribute name="selected-index" type="int" default="-1" />
|
|
|
+ <attribute name="editable" type="bool" default="false" />
|
|
|
+ <attribute name="dropdown-height" type="int" default="200" min="100" max="500" />
|
|
|
+ <!-- ENHANCEMENT: Advanced features -->
|
|
|
+ <attribute name="auto-complete" type="bool" default="false" />
|
|
|
+ <attribute name="auto-complete-mode" type="enum" values="none,suggest,append,suggest-append" default="suggest" />
|
|
|
+ <attribute name="filter-mode" type="enum" values="none,starts-with,contains,custom" default="none" />
|
|
|
+ <attribute name="placeholder-text" type="string" default="" />
|
|
|
+ <attribute name="allow-custom-values" type="bool" default="false" />
|
|
|
+ <attribute name="items-source" type="string" default="" />
|
|
|
+ <attribute name="display-member-path" type="string" default="" />
|
|
|
+ <attribute name="value-member-path" type="string" default="" />
|
|
|
+ <attribute name="group-member-path" type="string" default="" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="selection-changed" alias="on-select" />
|
|
|
+ <event name="text-changed" />
|
|
|
+ <!-- ENHANCEMENT: Advanced events -->
|
|
|
+ <event name="dropdown-opened" />
|
|
|
+ <event name="dropdown-closed" />
|
|
|
+ <event name="item-filtering" />
|
|
|
+ </behavior>
|
|
|
+ <structure>
|
|
|
+ <items min-count="0" max-count="unlimited">
|
|
|
+ <listbox-item inherits="ListBoxItem" />
|
|
|
+ </items>
|
|
|
+ <selected-items max-count="1" />
|
|
|
+ </structure>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced Panel Control -->
|
|
|
+ <control name="Panel" type="container" category="layout" inherits="CommonControl">
|
|
|
+ <description>Enhanced container panel with advanced layout options</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,window,wireframe-instance</allowed-parents>
|
|
|
+ <allowed-children>any-control</allowed-children>
|
|
|
+ <container>true</container>
|
|
|
+ <max-children>unlimited</max-children>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="border" type="bool" default="false" />
|
|
|
+ <attribute name="border-style" type="enum" values="none,solid,dashed,dotted,double,groove,ridge,inset,outset" default="none" />
|
|
|
+ <!-- ENHANCEMENT: Advanced styling -->
|
|
|
+ <attribute name="border-width" type="int" default="1" min="0" max="10" />
|
|
|
+ <attribute name="border-color" type="color" default="#000000" />
|
|
|
+ <attribute name="border-radius" type="int" default="0" min="0" max="50" />
|
|
|
+ <attribute name="background-color" type="color" default="transparent" />
|
|
|
+ <attribute name="background-image" type="string" default="" />
|
|
|
+ <attribute name="background-repeat" type="enum" values="no-repeat,repeat,repeat-x,repeat-y" default="no-repeat" />
|
|
|
+ <attribute name="padding" type="int" default="0" min="0" max="50" />
|
|
|
+ <attribute name="margin" type="int" default="0" min="0" max="50" />
|
|
|
+ <attribute name="orientation" type="enum" values="horizontal,vertical" default="vertical" />
|
|
|
+ <attribute name="alignment" type="enum" values="left,center,right,stretch,space-between,space-around" default="left" />
|
|
|
+ <attribute name="vertical-alignment" type="enum" values="top,center,bottom,stretch" default="top" />
|
|
|
+ <attribute name="auto-scroll" type="bool" default="false" />
|
|
|
+ <attribute name="scroll-bars" type="enum" values="none,horizontal,vertical,both,auto" default="none" />
|
|
|
+ <attribute name="width" type="int" min="10" max="2000" />
|
|
|
+ <attribute name="height" type="int" min="10" max="2000" />
|
|
|
+ <!-- ENHANCEMENT: Size constraints -->
|
|
|
+ <attribute name="min-width" type="int" default="0" />
|
|
|
+ <attribute name="min-height" type="int" default="0" />
|
|
|
+ <attribute name="max-width" type="int" default="0" />
|
|
|
+ <attribute name="max-height" type="int" default="0" />
|
|
|
+ <attribute name="overflow" type="enum" values="visible,hidden,scroll,auto" default="visible" />
|
|
|
+ <attribute name="z-index" type="int" default="0" />
|
|
|
+ <attribute name="layout-mode" type="enum" values="flow,grid,flex,absolute" default="flow" />
|
|
|
+ </attributes>
|
|
|
+ <structure>
|
|
|
+ <children allow-multiple="true" />
|
|
|
+ </structure>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced ListView Control -->
|
|
|
+ <control name="ListView" type="data" category="basic" inherits="CommonControl">
|
|
|
+ <description>Enhanced list view control with advanced data binding and virtualization</description>
|
|
|
+ <constraints>
|
|
|
+ <allowed-parents>Panel,SplitPanel,FormField</allowed-parents>
|
|
|
+ <allowed-children>columns,items,context-menu</allowed-children>
|
|
|
+ <container>false</container>
|
|
|
+ <requires-structure>columns,items</requires-structure>
|
|
|
+ </constraints>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="view-mode" type="enum" values="list,details,icons,tiles,cards" default="details" />
|
|
|
+ <attribute name="multi-select" type="bool" default="false" />
|
|
|
+ <attribute name="selection-mode" type="enum" values="none,single,multiple,extended" default="single" />
|
|
|
+ <attribute name="grid-lines" type="bool" default="true" />
|
|
|
+ <attribute name="full-row-select" type="bool" default="true" />
|
|
|
+ <attribute name="sort-column" type="string" default="" />
|
|
|
+ <attribute name="sort-direction" type="enum" values="asc,desc" default="asc" />
|
|
|
+ <!-- ENHANCEMENT: Advanced features -->
|
|
|
+ <attribute name="allow-column-reorder" type="bool" default="true" />
|
|
|
+ <attribute name="allow-column-resize" type="bool" default="true" />
|
|
|
+ <attribute name="virtualization-enabled" type="bool" default="false" />
|
|
|
+ <attribute name="items-source" type="string" default="" />
|
|
|
+ <attribute name="selected-items-binding" type="string" default="" />
|
|
|
+ <attribute name="current-item-binding" type="string" default="" />
|
|
|
+ <attribute name="filter-expression" type="string" default="" />
|
|
|
+ <attribute name="group-by" type="string" default="" />
|
|
|
+ <attribute name="page-size" type="int" default="0" min="0" max="1000" />
|
|
|
+ <attribute name="loading-message" type="string" default="Loading..." />
|
|
|
+ <attribute name="empty-message" type="string" default="No items to display" />
|
|
|
+ </attributes>
|
|
|
+ <behavior>
|
|
|
+ <event name="selection-changed" alias="on-select" />
|
|
|
+ <event name="item-double-click" />
|
|
|
+ <event name="column-click" />
|
|
|
+ <!-- ENHANCEMENT: Advanced events -->
|
|
|
+ <event name="column-header-click" />
|
|
|
+ <event name="items-loading" />
|
|
|
+ <event name="items-loaded" />
|
|
|
+ <event name="filter-changed" />
|
|
|
+ <event name="sort-changed" />
|
|
|
+ </behavior>
|
|
|
+ <structure>
|
|
|
+ <columns min-count="1" max-count="20">
|
|
|
+ <column-item inherits="ColumnItem" />
|
|
|
+ </columns>
|
|
|
+ <items min-count="0" max-count="unlimited">
|
|
|
+ <listview-item>
|
|
|
+ <values>
|
|
|
+ <value column="" text="" />
|
|
|
+ </values>
|
|
|
+ </listview-item>
|
|
|
+ </items>
|
|
|
+ <selected-items max-count="depends-on-multi-select" />
|
|
|
+ <context-menu max-count="1" />
|
|
|
+ </structure>
|
|
|
+ </control>
|
|
|
+
|
|
|
+ <!-- ENHANCEMENT: Enhanced structure definitions -->
|
|
|
+ <structure name="ListBoxItem" type="data-item" category="basic">
|
|
|
+ <description>Enhanced individual item within list-based controls</description>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="value" type="string" required="true" />
|
|
|
+ <attribute name="text" type="string" required="true" />
|
|
|
+ <attribute name="selected" type="bool" default="false" />
|
|
|
+ <attribute name="enabled" type="bool" default="true" />
|
|
|
+ <attribute name="image" type="string" default="" />
|
|
|
+ <attribute name="tooltip" type="string" default="" />
|
|
|
+ <!-- ENHANCEMENT: Data binding and accessibility -->
|
|
|
+ <attribute name="data-context" type="string" default="" />
|
|
|
+ <attribute name="command" type="string" default="" />
|
|
|
+ <attribute name="command-parameter" type="string" default="" />
|
|
|
+ <attribute name="aria-label" type="string" default="" />
|
|
|
+ <attribute name="group" type="string" default="" />
|
|
|
+ </attributes>
|
|
|
+ </structure>
|
|
|
+
|
|
|
+ <structure name="ColumnItem" type="data-item" category="basic">
|
|
|
+ <description>Enhanced column definition for ListView control</description>
|
|
|
+ <attributes>
|
|
|
+ <attribute name="name" type="string" required="true" />
|
|
|
+ <attribute name="text" type="string" required="true" />
|
|
|
+ <attribute name="width" type="int" default="100" min="20" max="500" />
|
|
|
+ <attribute name="sortable" type="bool" default="true" />
|
|
|
+ <attribute name="visible" type="bool" default="true" />
|
|
|
+ <attribute name="alignment" type="enum" values="left,center,right" default="left" />
|
|
|
+ <attribute name="data-type" type="enum" values="text,number,date,boolean,image,custom" default="text" />
|
|
|
+ <!-- ENHANCEMENT: Advanced data binding -->
|
|
|
+ <attribute name="binding-path" type="string" default="" />
|
|
|
+ <attribute name="converter" type="string" default="" />
|
|
|
+ <attribute name="format-string" type="string" default="" />
|
|
|
+ <attribute name="sort-member-path" type="string" default="" />
|
|
|
+ <attribute name="group-member-path" type="string" default="" />
|
|
|
+ <attribute name="cell-template" type="string" default="" />
|
|
|
+ <attribute name="header-template" type="string" default="" />
|
|
|
+ <attribute name="frozen" type="bool" default="false" />
|
|
|
+ <attribute name="resizable" type="bool" default="true" />
|
|
|
+ <attribute name="aria-label" type="string" default="" />
|
|
|
+ </attributes>
|
|
|
+ </structure>
|
|
|
+
|
|
|
+ <!-- Keep all other existing controls unchanged (Label, TreeView, Menu, etc.) -->
|
|
|
+ <!-- ... (original controls remain the same) ... -->
|
|
|
+
|
|
|
+</patterns>
|
|
|
+
|