diff --git a/.env.sample b/.env.sample
index 3d2f6441a8..328efe6221 100644
--- a/.env.sample
+++ b/.env.sample
@@ -1,4 +1,4 @@
-NUXEO_WEB_UI_VERSION=3.1.14-SNAPSHOT
+NUXEO_WEB_UI_VERSION=3.1.16-SNAPSHOT
NUXEO_VERSION=master
NUXEO_PACKAGES=nuxeo-drive nuxeo-liveconnect nuxeo-template-rendering
NUXEO_DEV_MODE=true
diff --git a/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js b/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js
index beb8e5ae1d..67d312373a 100644
--- a/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js
+++ b/addons/nuxeo-csv/elements/nuxeo-document-import-csv.js
@@ -276,7 +276,7 @@ Polymer({
@@ -581,7 +581,8 @@ Polymer({
}
},
- _showUploadDialog() {
+ _showUploadDialog(e) {
+ e.preventDefault();
this.$.uploadFiles.click();
},
diff --git a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js
index 8802d63579..19ed50997c 100644
--- a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js
+++ b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-box-link.js
@@ -64,7 +64,7 @@ Polymer({
is-available="{{isProviderAvailable}}"
>
-
+
[[i18n('liveconnectImportActions.box', 'Box')]]
@@ -78,7 +78,8 @@ Polymer({
this.$.provider.updateProviderInfo();
},
- _openPicker() {
+ _openPicker(e) {
+ e.preventDefault();
this.$.provider.openPicker();
},
});
diff --git a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-google-drive-link.js b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-google-drive-link.js
index efbc2d8b24..5f342a0c9b 100644
--- a/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-google-drive-link.js
+++ b/addons/nuxeo-liveconnect/elements/nuxeo-liveconnect-google-drive-link.js
@@ -64,7 +64,7 @@ Polymer({
is-available="{{isProviderAvailable}}"
>
-
+
[[i18n('liveconnectImportActions.googledrive', 'Google Drive')]]
@@ -78,7 +78,8 @@ Polymer({
this.$.provider.updateProviderInfo();
},
- _openPicker() {
+ _openPicker(e) {
+ e.preventDefault();
this.$.provider.openPicker();
},
});
diff --git a/charts/preview/Chart.yaml b/charts/preview/Chart.yaml
index 7d7254a8b8..e31e1fa05f 100644
--- a/charts/preview/Chart.yaml
+++ b/charts/preview/Chart.yaml
@@ -2,4 +2,4 @@ apiVersion: v1
description: A Helm chart for Web UI preview
icon: https://media.licdn.com/dms/image/C4D0BAQFPXiXFrp4LBA/company-logo_200_200/0?e=2159024400&v=beta&t=RW9EU0QUciUVuPSpLySd9FtJ2yG-O37_hAAvc32f6ro
name: preview
-version: 3.1.14-SNAPSHOT
+version: 3.1.16-SNAPSHOT
diff --git a/elements/nuxeo-app.js b/elements/nuxeo-app.js
index 8153a3cff8..320050a355 100644
--- a/elements/nuxeo-app.js
+++ b/elements/nuxeo-app.js
@@ -539,6 +539,10 @@ Polymer({
value: '52px',
},
+ sidebarWidth: {
+ type: String,
+ },
+
drawerOpened: {
type: Boolean,
value: false,
@@ -638,7 +642,7 @@ Polymer({
ready() {
this.$.drawerPanel.closeDrawer();
-
+ this.drawerWidth = this.sidebarWidth = getComputedStyle(this).getPropertyValue('--nuxeo-sidebar-width');
this.$.drawerPanel.$.drawer.addEventListener('transitionend', () => {
this.$.drawerPanel.notifyResize();
});
@@ -1001,7 +1005,8 @@ Polymer({
},
_openDrawer() {
- this.drawerWidth = '350px';
+ const pixelsSuffix = 'px';
+ this.drawerWidth = 298 + Math.round(this.sidebarWidth.substring(0, this.sidebarWidth.length - 2)) + pixelsSuffix;
this.drawerOpened = true;
const { drawerPanel } = this.$;
if (drawerPanel.narrow) {
@@ -1017,7 +1022,7 @@ Polymer({
},
_closeDrawer() {
- this.drawerWidth = '52px';
+ this.drawerWidth = this.sidebarWidth;
this.drawerOpened = false;
this.$.drawerPanel.closeDrawer();
this.selectedTab = '';
diff --git a/elements/nuxeo-results/nuxeo-results.js b/elements/nuxeo-results/nuxeo-results.js
index d9c3ea6036..ab2cfc8311 100644
--- a/elements/nuxeo-results/nuxeo-results.js
+++ b/elements/nuxeo-results/nuxeo-results.js
@@ -455,9 +455,17 @@ Polymer({
},
_computeCountLabel() {
- return this.resultsCount < 0
- ? this.i18n('results.heading.count.unknown')
- : this.i18n('results.heading.count', this.resultsCount);
+ // Fetch the property value from web-ui-properties.xml
+ const isNumberFormattingEnabled =
+ (Nuxeo && Nuxeo.UI && Nuxeo.UI.config && Nuxeo.UI.config.numberFormattingEnabled) || false;
+ if (this.resultsCount < 0) {
+ return this.i18n('results.heading.count.unknown');
+ }
+ if (isNumberFormattingEnabled) {
+ const formattedCount = new Intl.NumberFormat().format(this.resultsCount);
+ return this.i18n('results.heading.count', formattedCount);
+ }
+ return this.i18n('results.heading.count', this.resultsCount);
},
_sortOptions() {
diff --git a/elements/nuxeo-selection/nuxeo-selection-toolbar.js b/elements/nuxeo-selection/nuxeo-selection-toolbar.js
index f941faeecc..c686f2b58a 100644
--- a/elements/nuxeo-selection/nuxeo-selection-toolbar.js
+++ b/elements/nuxeo-selection/nuxeo-selection-toolbar.js
@@ -112,7 +112,7 @@ Polymer({
[[i18n('selectionToolbar.selected.items', selectedItems.length)]]
-
+
[[i18n('selectionToolbar.display.selection')]]
@@ -121,7 +121,7 @@ Polymer({
[[i18n('selectionToolbar.selected.all', _resultsCount)]]
-
+
[[i18n('command.clear')]]
@@ -188,11 +188,13 @@ Polymer({
this.hidden = !this.selectedItems || this.selectedItems.length === 0;
},
- toogleSelectedItemsPopup() {
+ toogleSelectedItemsPopup(e) {
+ e.preventDefault();
this.$$('#selectedItemsPopup').toggle();
},
- clearSelection() {
+ clearSelection(e) {
+ e.preventDefault();
this.fire('clear-selected-items');
},
});
diff --git a/elements/workflow/nuxeo-document-task.js b/elements/workflow/nuxeo-document-task.js
index 139fe72f40..28a6e35a20 100644
--- a/elements/workflow/nuxeo-document-task.js
+++ b/elements/workflow/nuxeo-document-task.js
@@ -158,7 +158,7 @@ Polymer({
- [[i18n('tasks.viewGraph')]]
+ [[i18n('tasks.viewGraph')]]
[[i18n(tasks.directive)]]
@@ -314,7 +314,8 @@ Polymer({
.finally(() => this._setProcessing(false));
},
- _toggleGraphDialog() {
+ _toggleGraphDialog(e) {
+ e.preventDefault();
this.$.graph.show();
},
diff --git a/ftest/features/publication.feature b/ftest/features/publication.feature
index f194f0dacd..c1f7d86e98 100644
--- a/ftest/features/publication.feature
+++ b/ftest/features/publication.feature
@@ -156,4 +156,4 @@ Feature: Internal Publication
Then I can see the document is a publication
And I cannot see to publication pill
And I can unpublish the document
- And I can see the document has 2 children
+ And I can see the document has 2 children
\ No newline at end of file
diff --git a/ftest/pom.xml b/ftest/pom.xml
index 87f9fb2f59..cac5a3b247 100644
--- a/ftest/pom.xml
+++ b/ftest/pom.xml
@@ -4,7 +4,7 @@
org.nuxeo.web.ui
nuxeo-web-ui-parent
- 3.1.14-SNAPSHOT
+ 3.1.16-SNAPSHOT
../pom.xml
diff --git a/index.html b/index.html
index 71e4bd7359..d5847863ac 100644
--- a/index.html
+++ b/index.html
@@ -89,6 +89,10 @@
+
-
+
-
+
-
+
-
+
-
+
diff --git a/plugin/web-ui/marketplace/pom.xml b/plugin/web-ui/marketplace/pom.xml
index 30b4bacd13..3caea6a4e6 100644
--- a/plugin/web-ui/marketplace/pom.xml
+++ b/plugin/web-ui/marketplace/pom.xml
@@ -3,7 +3,7 @@
org.nuxeo.web.ui
nuxeo-web-ui-parent
- 3.1.14-SNAPSHOT
+ 3.1.16-SNAPSHOT
../../../pom.xml
diff --git a/plugin/web-ui/marketplace/src/main/resources/package.xml b/plugin/web-ui/marketplace/src/main/resources/package.xml
index 33d64b5a85..dbca0dfec9 100644
--- a/plugin/web-ui/marketplace/src/main/resources/package.xml
+++ b/plugin/web-ui/marketplace/src/main/resources/package.xml
@@ -13,7 +13,7 @@
true
@DISTRIBUTION_NAME@
- [2023.0,)
+ [2023.0,2025)
Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0.html
diff --git a/pom.xml b/pom.xml
index 0721eaa0f3..cc50f6f400 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
pom
Nuxeo Web UI - Parent
Nuxeo Web UI - Parent
- 3.1.14-SNAPSHOT
+ 3.1.16-SNAPSHOT
2023.*