universe-code 0.0.89 → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uiux/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { UniverseToaster, toaster } from "./toaster";
|
|
2
|
-
export { UniverseDataTable } from "./
|
|
2
|
+
export { UniverseDataTable } from "./table";
|
|
@@ -56,7 +56,7 @@ style.textContent = `
|
|
|
56
56
|
display: flex;
|
|
57
57
|
align-items: center;
|
|
58
58
|
gap: 0.3rem;
|
|
59
|
-
font-size:
|
|
59
|
+
font-size: 12px;
|
|
60
60
|
color: #757272;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -95,7 +95,7 @@ style.textContent = `
|
|
|
95
95
|
white-space: nowrap;
|
|
96
96
|
text-align: left;
|
|
97
97
|
color: #4b5563;
|
|
98
|
-
font-size: var(--entriesTextFontSize,
|
|
98
|
+
font-size: var(--entriesTextFontSize, 12px);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/* Pagination buttons */
|
|
@@ -331,13 +331,17 @@ class UniverseDataTable {
|
|
|
331
331
|
|
|
332
332
|
if (this.shouldShowPagination) {
|
|
333
333
|
const jumpInputs = this.container.querySelectorAll("input.jumpto");
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
334
|
+
jumpInputs.forEach((input) => {
|
|
335
|
+
input.addEventListener("input", (e) => {
|
|
336
|
+
this.jumpToPage = e.target.value;
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
input.addEventListener("keypress", (e) => this.handleKeyPress(e));
|
|
340
|
+
});
|
|
337
341
|
|
|
338
342
|
const goButtons = this.container.querySelectorAll(".go-btn");
|
|
339
343
|
goButtons.forEach((btn) => {
|
|
340
|
-
if (!btn.disabled) btn.addEventListener("click", () => this.handleJumpToPage());
|
|
344
|
+
if (!btn.disabled) btn.addEventListener("click", () => this.handleJumpToPage(this.jumpToPage));
|
|
341
345
|
});
|
|
342
346
|
|
|
343
347
|
const pgButtons = this.container.querySelectorAll(".pg-btn");
|