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 2025/02/27 08:15:00 UTC
(myfaces-tobago) branch main updated (34bae2c156 -> b43d2738ff)
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
from 34bae2c156 build(deps-dev): bump junit-jupiter.version from 5.11.4 to 5.12.0
new 82d109682f fix(lazy-sheet): row attribute
new b43d2738ff build(theme): rebuild
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:
.../tobago/internal/component/AbstractUISheet.java | 2 +-
.../internal/renderkit/renderer/SheetRenderer.java | 10 +++-
.../82-lazy-2/Lazy_2.test.js | 40 ++++++-------
.../82-lazy-2/Lazy_2.xhtml | 4 +-
.../lazy-row-attribute.test.js} | 65 +++++++++-------------
.../lazy-row-attribute.xhtml} | 20 ++++---
.../tobago-theme-standard/src/main/js/tobago.js | 2 +-
.../src/main/js/tobago.js.map | 2 +-
.../src/main/ts/tobago-sheet.ts | 2 +-
9 files changed, 72 insertions(+), 75 deletions(-)
copy tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/{ => 85-lazy-row-attribute}/82-lazy-2/Lazy_2.test.js (83%)
copy tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/{ => 85-lazy-row-attribute}/82-lazy-2/Lazy_2.xhtml (95%)
copy tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/{83-lazy-columnPanel/Lazy_ColumnPanel.test.js => 85-lazy-row-attribute/lazy-row-attribute.test.js} (54%)
copy tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/{70-tree/Sheet_Tree.xhtml => 85-lazy-row-attribute/lazy-row-attribute.xhtml} (69%)
(myfaces-tobago) 01/02: fix(lazy-sheet): row attribute
Posted by hn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit 82d109682ffb7fd7bfd484f9178ca6da71baca72
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue Feb 25 19:07:22 2025 +0100
fix(lazy-sheet): row attribute
* add test
* The rows attribute are now completely ignored for lazy sheets. Instead, the lazyRows attribute is used.
Issue: TOBAGO-2391
---
.../tobago/internal/component/AbstractUISheet.java | 2 +-
.../internal/renderkit/renderer/SheetRenderer.java | 10 +-
.../85-lazy-row-attribute/82-lazy-2/Lazy_2.test.js | 148 +++++++++++++++++++++
.../85-lazy-row-attribute/82-lazy-2/Lazy_2.xhtml | 64 +++++++++
.../lazy-row-attribute.test.js | 102 ++++++++++++++
.../85-lazy-row-attribute/lazy-row-attribute.xhtml | 35 +++++
.../src/main/ts/tobago-sheet.ts | 2 +-
7 files changed, 359 insertions(+), 4 deletions(-)
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
index 32507c0b21..ea7a036c81 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/component/AbstractUISheet.java
@@ -102,7 +102,7 @@ public abstract class AbstractUISheet extends AbstractUIData
public void encodeAll(FacesContext facesContext) throws IOException {
if (isLazy() && getRows() > 0) {
- LOG.warn("Sheet id={} has lazy=true AND the rows attribute set. Use 'lazyRows' instead.",
+ LOG.warn("The 'rows' attribute must not be used for lazy sheets. Use 'lazyRows' instead. SheetId={}",
getClientId(facesContext));
if (getShowRowRange() != ShowPosition.none) {
diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
index 0d24f199fc..b4eec8100b 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/SheetRenderer.java
@@ -138,6 +138,12 @@ public void decodeInternal(final FacesContext facesContext, final T component) {
}
if (component.isLazy()) {
+ if (component.getRows() > 0) {
+ component.setRows(0);
+ LOG.warn("The 'rows' attribute must not be used for lazy sheets. Use 'lazyRows' instead. SheetId={}",
+ component.getClientId(facesContext));
+ }
+
final String lazyScrollPosition = requestParameterMap.get(clientId + SUFFIX_LAZY_SCROLL_POSITION);
if (lazyScrollPosition != null) {
state.getLazyScrollPosition().update(lazyScrollPosition);
@@ -510,8 +516,8 @@ private void encodeTableBody(
boolean emptySheet = true;
// rows = 0 means: show all
- final int first = (sheet.isLazy() && sheet.isRowsUnlimited()) ? sheet.getLazyFirstRow() : sheet.getFirst();
- final int last = (sheet.isLazy() && sheet.isRowsUnlimited()) ? sheet.getLazyFirstRow() + sheet.getLazyRows()
+ final int first = sheet.isLazy() ? sheet.getLazyFirstRow() : sheet.getFirst();
+ final int last = sheet.isLazy() ? sheet.getLazyFirstRow() + sheet.getLazyRows()
: sheet.isRowsUnlimited() ? Integer.MAX_VALUE : sheet.getFirst() + sheet.getRows();
AbstractUIRow row = null;
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.test.js
new file mode 100644
index 0000000000..ebc625c007
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.test.js
@@ -0,0 +1,148 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {elementByIdFn, querySelectorAllFn, querySelectorFn} from "/script/tobago-test.js";
+import {JasmineTestTool} from "/tobago/test/tobago-test-tool.js";
+
+it("initial load", function (done) {
+ const reset = elementByIdFn("page:mainForm:reset");
+
+ const test = new JasmineTestTool(done);
+ test.setup(() => isLoaded(0) && isLoaded(49) && !isLoaded(50), null, "click", reset);
+ test.do(() => expect(isLoaded(0)).toBeTrue());
+ test.do(() => expect(isLoaded(49)).toBeTrue());
+ test.do(() => expect(isLoaded(50)).toBeFalse());
+ test.start();
+});
+
+it("focus row index 500 and scroll up", function (done) {
+ const reset = elementByIdFn("page:mainForm:reset");
+ let timestamp;
+
+ const test = new JasmineTestTool(done);
+ test.setup(() => !isLoaded(500), null, "click", reset);
+
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(500));
+ test.wait(() => isLoaded(500));
+ test.do(() => expect(isLoaded(499)).toBeFalse());
+ test.do(() => expect(isLoaded(500, 549)).toBeTrue());
+ test.do(() => expect(isLoaded(550)).toBeFalse());
+
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(499));
+ test.wait(() => isLoaded(450));
+ test.do(() => expect(isLoaded(449)).toBeFalse());
+ test.do(() => expect(isLoaded(450, 549)).toBeTrue());
+ test.do(() => expect(isLoaded(550)).toBeFalse());
+ test.start();
+});
+
+it("focus row index 2, select row 1 and 60, then press 'Period'", function (done) {
+ const row1 = querySelectorFn("tbody tr[row-index='1']");
+ const row40 = querySelectorFn("tbody tr[row-index='60']");
+ const selectedInput = elementByIdFn("page:mainForm:sheet::selected");
+ const resetButton = elementByIdFn("page:mainForm:reset");
+ const periodButton = elementByIdFn("page:mainForm:sheet:0:period");
+ const selectedRows = querySelectorFn("#page\\:mainForm\\:selectedRows .form-control-plaintext");
+ const actionCountOut = querySelectorFn("#page\\:mainForm\\:actionCount .form-control-plaintext");
+ const actionListenerCountOut = querySelectorFn("#page\\:mainForm\\:actionListenerCount .form-control-plaintext");
+ let timestamp;
+ let actionCount = Number(actionCountOut().textContent);
+ let actionListenerCount = Number(actionListenerCountOut().textContent);
+
+ const test = new JasmineTestTool(done);
+ test.setup(() => isLoaded(0) && selectedInput().value === "[]", null, "click", resetButton);
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(2));
+ test.wait(() => isLoaded(50));
+ test.do(() => expect(isLoaded(0, 99)).toBeTrue());
+ test.do(() => expect(isLoaded(100)).toBeFalse());
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.event("click", row1, () => selectedInput().value === "[1]");
+ test.event("click", row40, () => selectedInput().value === "[1,60]");
+ test.event("click", periodButton, () => Number(actionCountOut().textContent) > actionCount);
+ test.do(() => expect(selectedRows().textContent).toBe("[1, 60]"));
+ test.do(() => expect(Number(actionCountOut().textContent)).toBeGreaterThan(actionCount));
+ test.do(() => expect(Number(actionListenerCountOut().textContent)).toBeGreaterThan(actionListenerCount));
+ test.start();
+});
+
+it("focus row index 800, press 'Ajax'", function (done) {
+ const ajax = elementByIdFn("page:mainForm:ajax");
+ const reset = elementByIdFn("page:mainForm:reset");
+ const timestampOut = querySelectorFn("#page\\:mainForm\\:timestamp .form-control-plaintext");
+ let timestamp;
+
+ const test = new JasmineTestTool(done);
+ test.setup(() => !isLoaded(800), null, "click", reset);
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(800));
+ test.wait(() => isLoaded(800));
+ test.do(() => expect(isLoaded(799)).toBeFalse());
+ test.do(() => expect(isLoaded(800, 849)).toBeTrue());
+ test.do(() => expect(isLoaded(850)).toBeFalse());
+ test.do(() => expect(getFirstVisibleRow()).toBe(800));
+
+ test.do(() => timestamp = Number(timestampOut().textContent));
+ test.event("click", ajax, () => Number(timestampOut().textContent) > timestamp);
+ test.do(() => expect(isLoaded(800, 849)).toBeTrue());
+ test.do(() => expect(isLoaded(850)).toBeFalse());
+ test.do(() => expect(getFirstVisibleRow()).toBe(800));
+ test.start();
+});
+
+function isLoaded(startRow, endRow) {
+ if (endRow === undefined) {
+ endRow = startRow;
+ }
+ for (let i = startRow; i <= endRow; i++) {
+ if (row(i).getAttribute("dummy") != null) {
+ return false;
+ }
+ }
+ return true;
+}
+
+function row(rowIndex) {
+ return querySelectorFn("tr[row-index='" + rowIndex + "']")();
+}
+
+function focusRowIndex(rowIndex) {
+ querySelectorFn("#page\\:mainForm\\:sheet .tobago-body")().scrollTop = row(rowIndex).offsetTop;
+}
+
+function getFirstVisibleRow() {
+ const tobagoBodyScrollTop = querySelectorFn("tobago-sheet .tobago-body")().scrollTop;
+ const rows = querySelectorAllFn("tobago-sheet tr[row-index]")();
+
+ let firstVisibleRow = 0;
+ for (const row of rows) {
+ if (row.offsetTop <= tobagoBodyScrollTop) {
+ firstVisibleRow = Number(row.getAttribute("row-index"));
+ } else {
+ return firstVisibleRow;
+ }
+ }
+
+ return -1;
+}
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.xhtml
new file mode 100644
index 0000000000..18fd41c168
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/82-lazy-2/Lazy_2.xhtml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+
+<ui:composition template="/main.xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="jakarta.faces.core"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:ui="jakarta.faces.facelets">
+ <p>This is the "Lazy 2" test just with "rows" attribute.</p>
+
+ <tc:button id="submit" label="submit"/>
+ <tc:button id="ajax" label="Ajax">
+ <f:ajax execute="sheet" render="sheet timestamp"/>
+ </tc:button>
+ <tc:button id="reset" label="Reset" action="#{sheetController.lazyTwoState.reset()}"/>
+ <tc:panel id="parameter">
+ <tc:out id="timestamp" label="Timestamp" value="#{eventController.currentTimestamp}"/>
+ <tc:out id="selectedRows" label="Selected" value="#{sheetController.lazyTwoState.selectedRows}"/>
+ <tc:out id="actionCount" label="Action count" value="#{sheetController.actionCount}"/>
+ <tc:out id="actionListenerCount" label="ActionListener count" value="#{sheetController.actionListenerCount}"/>
+ </tc:panel>
+
+ <tc:sheet id="sheet" value="#{sheetController.hugeSolarList}" var="luminary"
+ state="#{sheetController.lazyTwoState}"
+ rows="30" markup="small" lazy="true" columns="auto">
+ <tc:style maxHeight="500px"/>
+ <tc:columnSelector/>
+ <tc:column id="nameColumn" label="Name" sortable="true">
+ <tc:out id="name" value="#{luminary.name}" labelLayout="skip"/>
+ </tc:column>
+ <tc:column label="Orbit" sortable="true">
+ <tc:button id="orbit" label="#{luminary.orbit}" action="#{sheetController.increaseActionCount()}"
+ actionListener="#{sheetController.increaseActionListenerCount}"/>
+ </tc:column>
+ <tc:column label="Period (Days)">
+ <tc:button id="period" label="#{luminary.period}" action="#{sheetController.increaseActionCount}"
+ actionListener="#{sheetController.increaseActionListenerCount}">
+ <f:ajax execute="sheet" render=":::parameter"/>
+ </tc:button>
+ </tc:column>
+ <tc:column label="Discoverer">
+ <tc:in value="#{luminary.discoverer}" labelLayout="skip"/>
+ </tc:column>
+ <tc:column label="Year">
+ <tc:out value="#{luminary.discoverYear}" labelLayout="skip"/>
+ </tc:column>
+ </tc:sheet>
+</ui:composition>
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.test.js b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.test.js
new file mode 100644
index 0000000000..e12fb0b8ad
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.test.js
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {isFirefox, querySelectorFn} from "/script/tobago-test.js";
+import {JasmineTestTool} from "/tobago/test/tobago-test-tool.js";
+
+it("focus row index 200 and scroll up", function (done) {
+ let timestamp;
+
+ const test = new JasmineTestTool(done);
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(200));
+ test.wait(() => isLoaded(200));
+
+ if (isFirefox()) {
+ test.wait(() => isLoaded(199));
+ test.do(() => expect(isLoaded(149)).toBeFalse());
+ test.do(() => expect(isLoaded(150, 199)).toBeTrue());
+ } else {
+ test.do(() => expect(isLoaded(199)).toBeFalse());
+ }
+ test.do(() => expect(isLoaded(200, 249)).toBeTrue());
+ test.do(() => expect(isLoaded(250)).toBeFalse());
+
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(199));
+ test.wait(() => isLoaded(199));
+ test.do(() => expect(isLoaded(149)).toBeFalse());
+ test.do(() => expect(isLoaded(150, 249)).toBeTrue());
+ test.do(() => expect(isLoaded(250)).toBeFalse());
+ test.start();
+});
+
+it("focus row index 400 and scroll down", function (done) {
+ let timestamp;
+
+ const test = new JasmineTestTool(done);
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(400));
+ test.wait(() => isLoaded(400));
+
+ if (isFirefox()) {
+ test.wait(() => isLoaded(399));
+ test.do(() => expect(isLoaded(349)).toBeFalse());
+ test.do(() => expect(isLoaded(350, 399)).toBeTrue());
+ } else {
+ test.do(() => expect(isLoaded(399)).toBeFalse());
+ }
+ test.do(() => expect(isLoaded(400, 449)).toBeTrue());
+ test.do(() => expect(isLoaded(450)).toBeFalse());
+
+ test.do(() => timestamp = Date.now());
+ test.wait(() => Date.now() - timestamp > 200);
+ test.do(() => focusRowIndex(401));
+ test.wait(() => isLoaded(450));
+ if (isFirefox()) {
+ test.do(() => expect(isLoaded(349)).toBeFalse());
+ test.do(() => expect(isLoaded(350, 399)).toBeTrue());
+ } else {
+ test.do(() => expect(isLoaded(399)).toBeFalse());
+ }
+ test.do(() => expect(isLoaded(400, 499)).toBeTrue());
+ test.do(() => expect(isLoaded(500)).toBeFalse());
+ test.start();
+});
+
+function isLoaded(startRow, endRow) {
+ if (endRow === undefined) {
+ endRow = startRow;
+ }
+ for (let i = startRow; i <= endRow; i++) {
+ if (row(i).getAttribute("dummy") != null) {
+ return false;
+ }
+ }
+ return true;
+}
+
+function row(rowIndex) {
+ return querySelectorFn("tr[row-index='" + rowIndex + "']")();
+}
+
+function focusRowIndex(rowIndex) {
+ querySelectorFn("#page\\:mainForm\\:sheet .tobago-body")().scrollTop = row(rowIndex).offsetTop;
+}
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.xhtml
new file mode 100644
index 0000000000..2c10249596
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/900-test/3000-sheet/85-lazy-row-attribute/lazy-row-attribute.xhtml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+-->
+<ui:composition template="/main.xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tc="http://myfaces.apache.org/tobago/component"
+ xmlns:ui="jakarta.faces.facelets">
+
+ <tc:out id="timestamp" label="Timestamp" value="#{eventController.currentTimestamp}"/>
+
+ <tc:sheet id="sheet" value="#{sheetController.hugeSolarList}"
+ var="entry" columns="1fr" rows="30"
+ showDirectLinks="none" showPageRange="none"
+ showRowRange="none" selectable="single"
+ lazy="true">
+ <tc:style maxHeight="600px"/>
+ <tc:column id="name" label="Name">
+ <tc:out value="#{entry.name}" labelLayout="skip"/>
+ </tc:column>
+ </tc:sheet>
+</ui:composition>
diff --git a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
index 920c727ea6..dfae80f120 100644
--- a/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
+++ b/tobago-theme/tobago-theme-standard/src/main/ts/tobago-sheet.ts
@@ -233,7 +233,7 @@ export class Sheet extends HTMLElement {
}
nextLazyLoad(): number {
- const rows = this.rows > 0 ? this.rows : this.lazyRows;
+ const rows = this.lazyRows;
const firstVisibleRowIndex = this.firstVisibleRowIndex;
const firstVisibleRow = this.tableBody.querySelector(`tr[row-index='${firstVisibleRowIndex}']`);
(myfaces-tobago) 02/02: build(theme): rebuild
Posted by hn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
commit b43d2738ff2c4d7dec2c1ab5d8fe1f6b985f8add
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Wed Feb 26 16:50:45 2025 +0100
build(theme): rebuild
---
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 07b64f2217..d40fb6d2dd 100644
--- a/tobago-theme/tobago-theme-standard/src/main/js/tobago.js
+++ b/tobago-theme/tobago-theme-standard/src/main/js/tobago.js
@@ -15,5 +15,5 @@ const pt=new Map,gt={set(e,t,s){pt.has(e)||pt.set(e,new Map);const n=pt.get(e);n
${s>0?" tabindex='"+String(s)+"'":""}
@click="${this.removeBadge.bind(this)}"
@focus="${this.focusEvent.bind(this)}"
- @blur="${this.blurEvent.bind(this)}"><i class='bi-x-lg'></i></button>`}removeBadge(e){var t;const s=e.target.closest(".btn-group").dataset.tobagoValue,n=this.hiddenSelect.querySelector(`[value="${s}"]`);n.selected=!1;const i=this.badges.querySelector(`[data-tobago-value="${s}"]`),o=i.previousElementSibling,r="SPAN"===(null===(t=i.nextElementSibling)||void 0===t?void 0:t.tagName)?i.nextElementSibling:null;o?o.querySelector("button.btn.badge").focus():r?r.querySelector("button.btn.ba [...]
+ @blur="${this.blurEvent.bind(this)}"><i class='bi-x-lg'></i></button>`}removeBadge(e){var t;const s=e.target.closest(".btn-group").dataset.tobagoValue,n=this.hiddenSelect.querySelector(`[value="${s}"]`);n.selected=!1;const i=this.badges.querySelector(`[data-tobago-value="${s}"]`),o=i.previousElementSibling,r="SPAN"===(null===(t=i.nextElementSibling)||void 0===t?void 0:t.tagName)?i.nextElementSibling:null;o?o.querySelector("button.btn.badge").focus():r?r.querySelector("button.btn.ba [...]
//# sourceMappingURL=tobago.js.map
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 b56fee0dca..5aad98cddf 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-key.ts","../ts/tobago-bar.ts","../ts/tobago-date.ts","../ts/tobago-menu-store.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 [...]
\ No newline at end of file
+{"version":3,"file":"tobago.js","sources":["../ts/tobago-css.ts","../ts/tobago-key.ts","../ts/tobago-bar.ts","../ts/tobago-date.ts","../ts/tobago-menu-store.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 [...]
\ No newline at end of file