You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2024/08/26 09:08:40 UTC
(myfaces-tobago) branch tobago-5.x updated (c2f31e427f -> 6fb31e15c3)
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a change to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
from c2f31e427f build(deps): bump com.google.guava:guava from 33.2.1-jre to 33.3.0-jre (#5339)
new ebf4089a25 fix(overlay): "position-relative" CSS class
new 6fb31e15c3 build(theme): rebuild after fixing overlay
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../src/main/webapp/content/070-tab/Tab_Group.test.js | 12 +++++++++---
tobago-theme/tobago-theme-standard/src/main/js/tobago.js | 2 +-
tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map | 2 +-
.../tobago-theme-standard/src/main/ts/tobago-overlay.ts | 6 ++++--
4 files changed, 15 insertions(+), 7 deletions(-)
(myfaces-tobago) 01/02: fix(overlay): "position-relative" CSS class
Posted by hn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit ebf4089a25adbf81f5c1c44a0c1d16186e22fe88
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon Aug 26 09:13:38 2024 +0200
fix(overlay): "position-relative" CSS class
The "position-relative" is no longer set after tab change (realoadTab/Ajax).
* add a test
Issue: TOBAGO-2341
---
.../src/main/webapp/content/070-tab/Tab_Group.test.js | 12 +++++++++---
.../tobago-theme-standard/src/main/ts/tobago-overlay.ts | 6 ++++--
2 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/070-tab/Tab_Group.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/070-tab/Tab_Group.test.js
index 6943aa2fa7..c03bd90309 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/070-tab/Tab_Group.test.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/070-tab/Tab_Group.test.js
@@ -37,9 +37,10 @@ it("Client: Select Tab 3", function (done) {
});
it("Ajax: Select Tab 3", function (done) {
- let hiddenInputFn = elementByIdFn("page:mainForm:tabGroupAjax::index");
- let tab1Fn = querySelectorFn("#page\\:mainForm\\:tab1Ajax .nav-link");
- let tab3Fn = querySelectorFn("#page\\:mainForm\\:tab3Ajax .nav-link");
+ const tabGroup = elementByIdFn("page:mainForm:tabGroupAjax");
+ const hiddenInputFn = elementByIdFn("page:mainForm:tabGroupAjax::index");
+ const tab1Fn = querySelectorFn("#page\\:mainForm\\:tab1Ajax .nav-link");
+ const tab3Fn = querySelectorFn("#page\\:mainForm\\:tab3Ajax .nav-link");
const test = new JasmineTestTool(done);
test.setup(() => hiddenInputFn().value === "0",
@@ -51,6 +52,11 @@ it("Ajax: Select Tab 3", function (done) {
test.do(() => expect(hiddenInputFn().value).toBe("3"));
test.do(() => expect(tab1Fn().classList).not.toContain("active"));
test.do(() => expect(tab3Fn().classList).toContain("active"));
+
+ test.do(() => expect(tabGroup().classList).not.toContain("position-relative"));
+ test.waitMs(3000);
+ test.do(() => expect(tabGroup().classList).not.toContain("position-relative"));
+
test.start();
});
diff --git a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-overlay.ts b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-overlay.ts
index 46e014212d..b78b591955 100644
--- a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-overlay.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-overlay.ts
@@ -33,16 +33,18 @@ export class Overlay extends HTMLElement {
return `<tobago-overlay type='${type}' for='${id}' delay='${delay}' class='modal-backdrop fade'></tobago-overlay>`;
}
+ private timeout;
+
constructor() {
super();
}
connectedCallback(): void {
- setTimeout(this.render.bind(this), this.delay);
+ this.timeout = setTimeout(this.render.bind(this), this.delay);
}
disconnectedCallback() {
- console.log("disconnected from the DOM");
+ clearTimeout(this.timeout);
const forElement = document.getElementById(this.for);
if (forElement) {
forElement.classList.remove(Css.POSITION_RELATIVE);
(myfaces-tobago) 02/02: build(theme): rebuild after fixing overlay
Posted by hn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-5.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 6fb31e15c3eb2d3d90661666c3363064ca900ffe
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Mon Aug 26 11:00:44 2024 +0200
build(theme): rebuild after fixing overlay
---
tobago-theme/tobago-theme-standard/src/main/js/tobago.js | 2 +-
tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tobago-theme/tobago-theme-standard/src/main/js/tobago.js b/tobago-theme/tobago-theme-standard/src/main/js/tobago.js
index ea57b7962f..6f41f2ad96 100644
--- a/tobago-theme/tobago-theme-standard/src/main/js/tobago.js
+++ b/tobago-theme/tobago-theme-standard/src/main/js/tobago.js
@@ -4,7 +4,7 @@
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
-const $e=new Map,Pe={set(e,t,s){$e.has(e)||$e.set(e,new Map);const i=$e.get(e);i.has(t)||0===i.size?i.set(t,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>$e.has(e)&&$e.get(e).get(t)||null,remove(e,t){if(!$e.has(e))return;const s=$e.get(e);s.delete(t),0===s.size&&$e.delete(e)}},Be="transitionend",He=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),j [...]
+const $e=new Map,Pe={set(e,t,s){$e.has(e)||$e.set(e,new Map);const i=$e.get(e);i.has(t)||0===i.size?i.set(t,s):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>$e.has(e)&&$e.get(e).get(t)||null,remove(e,t){if(!$e.has(e))return;const s=$e.get(e);s.delete(t),0===s.size&&$e.delete(e)}},Be="transitionend",He=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),j [...]
/**
* @license
* Copyright 2017 Google LLC
diff --git a/tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map b/tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map
index d1fe705750..e3136802ca 100644
--- a/tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map
+++ b/tobago-theme/tobago-theme-standard/src/main/js/tobago.js.map
@@ -1 +1 @@
-{"version":3,"file":"tobago.js","sources":["../ts/tobago-css.ts","../ts/tobago-collapse-operation.ts","../ts/tobago-bar.ts","../../../../node_modules/@popperjs/core/lib/enums.js","../../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../../node_modules/@poppe [...]
\ No newline at end of file
+{"version":3,"file":"tobago.js","sources":["../ts/tobago-css.ts","../ts/tobago-collapse-operation.ts","../ts/tobago-bar.ts","../../../../node_modules/@popperjs/core/lib/enums.js","../../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../../node_modules/@poppe [...]
\ No newline at end of file