@quandis/qbo4.ui 4.0.1-CI-20250107-002248 → 4.0.1-CI-20250107-190636

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Quandis, Inc.",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "4.0.1-CI-20250107-002248",
6
+ "version": "4.0.1-CI-20250107-190636",
7
7
  "workspaces": [
8
8
  "code"
9
9
  ],
@@ -32,7 +32,7 @@
32
32
  "@codemirror/lang-javascript": "^6.2.2",
33
33
  "@codemirror/lang-sql": "^6.8.0",
34
34
  "@codemirror/lang-xml": "^6.1.0",
35
- "@floating-ui/dom": "^1.6.12",
35
+ "@floating-ui/dom": "^1.6.13",
36
36
  "@joint/core": "^4.1.1",
37
37
  "bootstrap": "^5.3.3",
38
38
  "bootstrap-icons": "^1.11.3",
@@ -31,14 +31,16 @@ let QboPaginate = class QboPaginate extends LitElement {
31
31
  ]; }
32
32
  // Go to a specific page
33
33
  goToPage(page) {
34
- if (page != this.currentPage && page > 0 && page <= this.maxPage) {
35
- this.currentPage = page;
36
- this.dispatchEvent(new CustomEvent('change', {
37
- detail: { start: (page - 1) * this.display, display: this.display, page: page },
38
- bubbles: true,
39
- composed: true,
40
- }));
41
- }
34
+ if (page < 1)
35
+ page = 1;
36
+ else if (page > this.maxPage)
37
+ page = this.maxPage;
38
+ this.currentPage = page;
39
+ this.dispatchEvent(new CustomEvent('change', {
40
+ detail: { start: (page - 1) * this.display, display: this.display, page: page },
41
+ bubbles: true,
42
+ composed: true,
43
+ }));
42
44
  }
43
45
  renderPage(i) {
44
46
  return html `<li class="${this.currentPage === i ? 'active' : ''}">
@@ -39,17 +39,18 @@ export class QboPaginate extends LitElement {
39
39
 
40
40
  // Go to a specific page
41
41
  goToPage(page) {
42
- if (page != this.currentPage && page > 0 && page <= this.maxPage) {
43
- this.currentPage = page;
44
-
45
- this.dispatchEvent(
46
- new CustomEvent('change', {
47
- detail: { start: (page - 1) * this.display, display: this.display, page: page },
48
- bubbles: true,
49
- composed: true,
50
- })
51
- );
52
- }
42
+ if (page < 1) page = 1;
43
+ else if (page > this.maxPage) page = this.maxPage;
44
+
45
+ this.currentPage = page;
46
+
47
+ this.dispatchEvent(
48
+ new CustomEvent('change', {
49
+ detail: { start: (page - 1) * this.display, display: this.display, page: page },
50
+ bubbles: true,
51
+ composed: true,
52
+ })
53
+ );
53
54
  }
54
55
 
55
56