From 83b1ab39e261fc75959b9d9172e30f48cf024fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Prunayre?= Date: Fri, 17 May 2024 11:40:52 +0200 Subject: [PATCH] Editor / Table mode / Add ordering control. (#8016) Add possibility to enable ordering control in table mode. Refactor templates to use the same for all plugins. Also stop event propagation to avoid to collapse a fieldset when moving such elements. Fix visibility of icons depending on position. Funded by Ifremer. --- schemas/config-editor.xsd | 11 +- .../iso19115-3.2018/layout/config-editor.xml | 9 ++ .../layout/layout-custom-fields.xsl | 131 +---------------- .../plugin/iso19139/layout/config-editor.xml | 4 + .../iso19139/layout/layout-custom-tpl.xsl | 133 +----------------- .../components/edit/FieldsDirective.js | 3 +- .../metadatamanager/EditorService.js | 12 +- .../views/default/less/gn_editor_default.less | 3 - .../webapp/xslt/ui-metadata/form-builder.xsl | 126 ++++++++++++++++- 9 files changed, 159 insertions(+), 273 deletions(-) diff --git a/schemas/config-editor.xsd b/schemas/config-editor.xsd index c648ad2739a..e319325e0ed 100644 --- a/schemas/config-editor.xsd +++ b/schemas/config-editor.xsd @@ -263,12 +263,14 @@ Configure here the list of fields to display using a table. This only applies to
- - - - +
+ + + + + @@ -434,6 +436,7 @@ Table column. + diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/config-editor.xml b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/config-editor.xml index 30d0871920a..5131c31b54a 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/config-editor.xml +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/config-editor.xml @@ -569,12 +569,14 @@ a table view force some constraints. -->
+
+ @@ -583,11 +585,14 @@
+
+ + @@ -596,11 +601,15 @@
+
+ + + diff --git a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields.xsl b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields.xsl index 146a1071cd2..d0c6585bd35 100644 --- a/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields.xsl +++ b/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/layout/layout-custom-fields.xsl @@ -346,7 +346,9 @@ (1 or @gn:addedObj = 'true') and $isFlatMode]" priority="2000"> - + + + @@ -358,132 +360,5 @@ $isFlatMode]" priority="2000"/> - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml b/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml index f37d3ba1d75..2c88bb6e15d 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml +++ b/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml @@ -424,6 +424,7 @@
+
@@ -432,6 +433,7 @@ + @@ -441,12 +443,14 @@
+
+ diff --git a/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-tpl.xsl b/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-tpl.xsl index 1feab1d2102..0193166e2a7 100644 --- a/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-tpl.xsl +++ b/schemas/iso19139/src/main/plugin/iso19139/layout/layout-custom-tpl.xsl @@ -23,7 +23,9 @@ (1 or @gn:addedObj = 'true') and $isFlatMode]" priority="2000"> - + + + @@ -35,135 +37,6 @@ $isFlatMode]" priority="2000"/> - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1778,6 +1895,13 @@ + + + + + + +