From b517cbaf9427059caeeb8cf3a006c92abb08f5ce Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 23 Apr 2024 10:43:06 +0200 Subject: [PATCH] some more additions to the eTemplate 2.0 DTD --- doc/etemplate2-rng.php | 40 +++++---- doc/etemplate2/etemplate2.0.dtd | 78 ++++++++++------- doc/etemplate2/etemplate2.0.rng | 143 +++++++++++++++++++++----------- 3 files changed, 162 insertions(+), 99 deletions(-) diff --git a/doc/etemplate2-rng.php b/doc/etemplate2-rng.php index 9e2c5ce796..0a575615fd 100755 --- a/doc/etemplate2-rng.php +++ b/doc/etemplate2-rng.php @@ -139,6 +139,7 @@ $overwrites = [ 'et2-email' => [ '.attrs' => [ 'onTagClick' => 'function', + 'multiple' => 'boolean', ], ], ]; @@ -151,31 +152,36 @@ removeNode($grammar->start->choice); $grammar->start->addChild('ref')->addAttribute('name', 'overlay'); // fix legacy widgets: attribute-name => (array of) widgets $missing_legacy_attributes = [ + 'app' => 'customfields-types', 'callback' => 'vfs-upload', - 'statustext' => 'tab', - 'minWidth' => 'column', - 'maxWidth' => 'column', - 'id' => [ - '.optional' => false, - 'nextmatch-header', 'nextmatch-sortheader', 'nextmatch-customfields', 'nextmatch', - ], - 'template' => ['.optional' => false, 'nextmatch'], - 'header_left' => 'nextmatch', - 'header_row' => 'nextmatch', - 'header_right' => 'nextmatch', + 'class' => ['nextmatch','nextmatch-header', 'nextmatch-customfields', 'nextmatch-sortheader', 'customfields-types'], 'disabled' => 'nextmatch', - 'onselect' => 'nextmatch', - 'span' => ['nextmatch', 'nextmatch-header', 'nextmatch-customfields', 'nextmatch-sortheader'], - 'class' => ['nextmatch','nextmatch-header', 'nextmatch-customfields', 'nextmatch-sortheader'], + 'exclude' => 'customfields', + 'id' => [ + '.optional' => false, + 'nextmatch-header', 'nextmatch-sortheader', 'nextmatch-customfields', 'nextmatch', 'customfields-types', + ], + 'header_left' => 'nextmatch', + 'header_right' => 'nextmatch', + 'header_row' => 'nextmatch', 'label' => [ - '.optional' => false, - 'nextmatch-header', 'nextmatch-sortheader', - ], + '.optional' => false, + 'nextmatch-header', 'nextmatch-sortheader', + ], + 'maxWidth' => 'column', + 'minWidth' => 'column', + 'onchange' => 'customfields-types', + 'onselect' => 'nextmatch', + 'readonly' => 'customfields-types', 'sortmode' => [ '.values' => ['ASC', 'DESC'], '.default' => 'ASC', 'nextmatch-sortheader', ], + 'span' => ['nextmatch', 'nextmatch-header', 'nextmatch-customfields', 'nextmatch-sortheader', 'customfields-types'], + 'statustext' => ['tab', 'customfields-types'], + 'template' => ['.optional' => false, 'nextmatch'], + 'tab' => 'customfields', ]; foreach($missing_legacy_attributes as $attribute => $widgets) { diff --git a/doc/etemplate2/etemplate2.0.dtd b/doc/etemplate2/etemplate2.0.dtd index fcb3022175..464df937d6 100644 --- a/doc/etemplate2/etemplate2.0.dtd +++ b/doc/etemplate2/etemplate2.0.dtd @@ -24,10 +24,10 @@ + maxWidth CDATA #IMPLIED + minWidth CDATA #IMPLIED> @@ -589,7 +589,9 @@ span CDATA #IMPLIED type CDATA #IMPLIED readonly CDATA #IMPLIED - attributes CDATA #IMPLIED> + attributes CDATA #IMPLIED + exclude CDATA #IMPLIED + tab CDATA #IMPLIED> @@ -1255,42 +1257,53 @@ readonly CDATA #IMPLIED attributes CDATA #IMPLIED> - + - - - - - - - - - + statustext CDATA #IMPLIED> + template CDATA #REQUIRED> + + + + + + + + + + + + @@ -1861,6 +1874,7 @@ span CDATA #IMPLIED slot CDATA #IMPLIED onTagClick CDATA #IMPLIED + multiple (false|true|1) #IMPLIED tabindex CDATA #IMPLIED> diff --git a/doc/etemplate2/etemplate2.0.rng b/doc/etemplate2/etemplate2.0.rng index 520bb013e3..950d82f138 100644 --- a/doc/etemplate2/etemplate2.0.rng +++ b/doc/etemplate2/etemplate2.0.rng @@ -58,10 +58,11 @@ - - - + + + + @@ -299,10 +300,10 @@ - + - + @@ -2071,6 +2072,12 @@ + + + + + + @@ -4530,59 +4537,31 @@ - - - + + + - - + - + - - - - - - - - - + + + + + + - - - - - - - ASC - DESC - - - - - - - - - - - - - - - - - + @@ -4592,19 +4571,21 @@ - - - + - + + + + + - + @@ -4612,9 +4593,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ASC + DESC + + + + + + @@ -6967,6 +7001,15 @@ + + + + false + true + 1 + + +