@sankhyalabs/ezui 6.5.0-dev.1 → 6.5.0-dev.3
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/cjs/{ApplicationUtils-c1310a36.js → ApplicationUtils-a8c7553f.js} +1 -1
- package/dist/cjs/{app-globals-701e1cea.js → app-globals-abfd9b11.js} +1 -1
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +3 -3
- package/dist/cjs/ez-grid.cjs.entry.js +3 -3
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +117 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js +2 -2
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-b1103222.js → index-5b60179a.js} +12 -0
- package/dist/cjs/index-a7b0c73d.js +4 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-f53f33f6.js → search-column-042cde9d.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-pagination/ez-pagination.css +102 -0
- package/dist/collection/components/ez-pagination/ez-pagination.js +246 -0
- package/dist/collection/utils/i18n/locales/en-us.js +4 -0
- package/dist/collection/utils/i18n/locales/es-es.js +4 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +4 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +124 -1
- package/dist/esm/{ApplicationUtils-bda1789e.js → ApplicationUtils-0fd22faf.js} +1 -1
- package/dist/esm/{app-globals-bbd79783.js → app-globals-9a422cb4.js} +1 -1
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_4.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +3 -3
- package/dist/esm/ez-grid.entry.js +3 -3
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +113 -0
- package/dist/esm/ez-search-plus.entry.js +2 -2
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +2 -2
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +1 -1
- package/dist/esm/ez-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-d5042cb2.js → index-6517a082.js} +12 -0
- package/dist/esm/index-baa5e267.js +4 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-9a00bd0b.js → search-column-38ddb94e.js} +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-035b5180.entry.js +1 -0
- package/dist/ezui/{p-2e6c767f.entry.js → p-058025a4.entry.js} +1 -1
- package/dist/ezui/{p-a029afd0.entry.js → p-0c966145.entry.js} +1 -1
- package/dist/ezui/{p-3005b0ec.entry.js → p-171e5243.entry.js} +1 -1
- package/dist/ezui/{p-732f7790.js → p-187d669d.js} +1 -1
- package/dist/ezui/{p-7e535712.entry.js → p-22d80677.entry.js} +1 -1
- package/dist/ezui/{p-f8a5538b.entry.js → p-2a4ebffa.entry.js} +1 -1
- package/dist/ezui/{p-90cece02.entry.js → p-2c72377f.entry.js} +1 -1
- package/dist/ezui/{p-e085c7f4.entry.js → p-356b0a25.entry.js} +1 -1
- package/dist/ezui/{p-b1e39171.entry.js → p-432c2321.entry.js} +1 -1
- package/dist/ezui/{p-78436126.entry.js → p-4446f3cd.entry.js} +1 -1
- package/dist/ezui/{p-e33be0f9.entry.js → p-47abb383.entry.js} +1 -1
- package/dist/ezui/{p-01bd20e4.entry.js → p-4805957f.entry.js} +1 -1
- package/dist/ezui/{p-feb22018.entry.js → p-4ff1501e.entry.js} +1 -1
- package/dist/ezui/{p-4fd1d098.entry.js → p-53da64a6.entry.js} +1 -1
- package/dist/ezui/{p-9ce9e8b7.entry.js → p-5e1c1c64.entry.js} +1 -1
- package/dist/ezui/{p-4beae367.entry.js → p-60a626da.entry.js} +1 -1
- package/dist/ezui/p-62b8d0db.js +1 -0
- package/dist/ezui/{p-946c1c66.entry.js → p-66d18c42.entry.js} +1 -1
- package/dist/ezui/{p-25371eb3.entry.js → p-69e45272.entry.js} +1 -1
- package/dist/ezui/{p-15a5d68c.entry.js → p-714b46e6.entry.js} +1 -1
- package/dist/ezui/{p-dd0613fd.entry.js → p-71b3fb24.entry.js} +1 -1
- package/dist/ezui/{p-cb46afc5.js → p-7626d180.js} +1 -1
- package/dist/ezui/{p-200b0745.entry.js → p-8b0e6b83.entry.js} +1 -1
- package/dist/ezui/{p-8d90530b.entry.js → p-9b1f6efb.entry.js} +1 -1
- package/dist/ezui/{p-ca36ac0a.entry.js → p-9f1694a5.entry.js} +1 -1
- package/dist/ezui/{p-e577d4fe.entry.js → p-a7c85153.entry.js} +1 -1
- package/dist/ezui/{p-07a6c41e.entry.js → p-b71ac997.entry.js} +1 -1
- package/dist/ezui/{p-2f01f656.entry.js → p-c331a21e.entry.js} +1 -1
- package/dist/ezui/{p-fa6cff27.entry.js → p-c565e9c1.entry.js} +1 -1
- package/dist/ezui/{p-0ab05249.entry.js → p-c77d297b.entry.js} +1 -1
- package/dist/ezui/{p-b21fc2d3.entry.js → p-cc4b89ea.entry.js} +1 -1
- package/dist/ezui/{p-ef33aaac.js → p-d0f4544c.js} +1 -1
- package/dist/ezui/{p-c8067ed6.entry.js → p-d2d9befa.entry.js} +1 -1
- package/dist/ezui/{p-37bd03db.entry.js → p-d423e2b3.entry.js} +1 -1
- package/dist/ezui/{p-0629f64b.entry.js → p-d7e8ca9e.entry.js} +1 -1
- package/dist/ezui/{p-6aa843bd.entry.js → p-dc8841c8.entry.js} +1 -1
- package/dist/ezui/{p-a738e919.entry.js → p-df58d45b.entry.js} +1 -1
- package/dist/ezui/{p-c84aa65f.entry.js → p-e1e48a22.entry.js} +1 -1
- package/dist/ezui/{p-3eb7bf6f.entry.js → p-e9691b45.entry.js} +1 -1
- package/dist/types/components/ez-pagination/ez-pagination.d.ts +47 -0
- package/dist/types/components.d.ts +69 -0
- package/dist/types/utils/i18n/locales/en-us.d.ts +4 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +4 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +4 -0
- package/dist/types/utils/i18n/translations.d.ts +12 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-fac16755.js +0 -1
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/* @doc Define a cor do label de informação dfa paginação. */
|
|
3
|
+
--ez-pagination__info--color: var(--color--petroleum-500);
|
|
4
|
+
|
|
5
|
+
/* @doc Define o espaçamento entre o texto de informação e os botões de controle. */
|
|
6
|
+
--ez-pagination__info--margin-right: var(--space--sm);
|
|
7
|
+
|
|
8
|
+
/* @doc Define o peso da fonte do texto de informação . */
|
|
9
|
+
--ez-pagination__info--text-weight: var(--text-weight--medium);
|
|
10
|
+
|
|
11
|
+
/* @doc Define o tamanho da fonte do texto de informação . */
|
|
12
|
+
--ez-pagination__info--font-size: var(--text--medium);
|
|
13
|
+
|
|
14
|
+
/* @doc Define o peso da fonte do texto de intervalo da informação . */
|
|
15
|
+
--ez-pagination__info-range--font-weight: var(--font-weight--bold);
|
|
16
|
+
|
|
17
|
+
/* @doc Define o espaçamento lateral entre as opções de páginas do modo numérico . */
|
|
18
|
+
--ez-pagination__pages-option-padding: var(--space--nano);
|
|
19
|
+
|
|
20
|
+
/* @doc Define a cor de texto das opções de páginas do modo numérico . */
|
|
21
|
+
--ez-pagination__pages-option-color: var(--color--petroleum-500);
|
|
22
|
+
|
|
23
|
+
/* @doc Define a o peso da fonte do texto das opções de páginas do modo numérico . */
|
|
24
|
+
--ez-pagination__pages-option-weight: var(--text-weight--medium);
|
|
25
|
+
|
|
26
|
+
/* @doc Define a o tamanho da fonte do texto das opções de páginas do modo numérico . */
|
|
27
|
+
--ez-pagination__pages-option-size: var(--text--medium);
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pagination-container {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: flex-start;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.info {
|
|
39
|
+
color: var(--ez-pagination__info--color);
|
|
40
|
+
margin-right: var(--ez-pagination__info--margin-right);
|
|
41
|
+
font-weight: var(--ez-pagination__info--text-weight);
|
|
42
|
+
font-size: var(--ez-pagination__info--font-size);
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.info-range {
|
|
50
|
+
font-weight: var(--ez-pagination__info-range--font-weight);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.controls {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
flex-shrink: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.controls-compact {
|
|
60
|
+
gap: var(--space--2xs);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pages-options {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
padding: 0 var(--ez-pagination__pages-option-padding);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.page-button {
|
|
70
|
+
color: var(--ez-pagination__pages-option-color);
|
|
71
|
+
font-weight: var(--ez-pagination__pages-option-weight);
|
|
72
|
+
font-size: var(--ez-pagination__pages-option-size);
|
|
73
|
+
background-color: transparent;
|
|
74
|
+
padding: 0;
|
|
75
|
+
border: none;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
min-width: 24px;
|
|
78
|
+
height: 24px;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
.current-page {
|
|
86
|
+
color: var(--color--primary);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.page-info {
|
|
90
|
+
margin: 0 8px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ellipsis {
|
|
94
|
+
color: var(--ez-pagination__pages-option-color);
|
|
95
|
+
font-weight: var(--ez-pagination__pages-option-weight);
|
|
96
|
+
font-size: var(--ez-pagination__pages-option-size);
|
|
97
|
+
min-width: 24px;
|
|
98
|
+
height: 24px;
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import initI18n from '../../utils/i18n';
|
|
3
|
+
export class EzPagination {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.handlePreviousPage = () => {
|
|
6
|
+
if (this.currentPage > 1) {
|
|
7
|
+
this.currentPage--;
|
|
8
|
+
this.ezPageChange.emit(this.currentPage);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
this.handleNextPage = () => {
|
|
12
|
+
if (this.currentPage < this.getTotalPages()) {
|
|
13
|
+
this.currentPage++;
|
|
14
|
+
this.ezPageChange.emit(this.currentPage);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.handlePageClick = (page) => {
|
|
18
|
+
this.currentPage = page;
|
|
19
|
+
this.ezPageChange.emit(this.currentPage);
|
|
20
|
+
};
|
|
21
|
+
this.type = 'default';
|
|
22
|
+
this.currentPage = 1;
|
|
23
|
+
this.totalItems = 0;
|
|
24
|
+
this.pageSize = 10;
|
|
25
|
+
this.hideInfoLabel = false;
|
|
26
|
+
this.pageLimit = 10;
|
|
27
|
+
}
|
|
28
|
+
async componentWillLoad() {
|
|
29
|
+
this.i18n = await initI18n();
|
|
30
|
+
}
|
|
31
|
+
getTotalPages() {
|
|
32
|
+
return Math.ceil(this.totalItems / this.pageSize);
|
|
33
|
+
}
|
|
34
|
+
renderNextBtn() {
|
|
35
|
+
return h("ez-button", { "aria-label": this.i18n('ez-pagination.nextPage'), label: this.i18n('ez-pagination.nextPage'), "data-element-id": "pagination-next-button", size: "small", iconName: "arrow-right", class: "ez-button--primary", mode: "icon", enabled: this.currentPage < this.getTotalPages(), onClick: () => this.handleNextPage() });
|
|
36
|
+
}
|
|
37
|
+
renderPreviousBtn() {
|
|
38
|
+
return h("ez-button", { label: this.i18n('ez-pagination.previousPage'), "aria-label": this.i18n('ez-pagination.previousPage'), "data-element-id": "pagination-previous-button", size: "small", iconName: "arrow-left", mode: "icon", enabled: this.currentPage > 1, onClick: () => this.handlePreviousPage() });
|
|
39
|
+
}
|
|
40
|
+
renderPageButton(page) {
|
|
41
|
+
return (h("button", { "aria-label": `page-${page}`, class: { 'page-button': true, 'current-page': this.currentPage === page }, onClick: () => this.handlePageClick(page) }, page));
|
|
42
|
+
}
|
|
43
|
+
renderEllipsis() {
|
|
44
|
+
return h("span", { "aria-label": 'page-ellipsis', class: "ellipsis" }, "...");
|
|
45
|
+
}
|
|
46
|
+
renderPageButtons(pages) {
|
|
47
|
+
return pages.map(page => (page === '...' ? this.renderEllipsis() : this.renderPageButton(page)));
|
|
48
|
+
}
|
|
49
|
+
renderInfoLabel(firstItem, lastItem) {
|
|
50
|
+
return !this.hideInfoLabel && (h("div", { class: "info" }, h("span", { class: 'info-range' }, firstItem, " at\u00E9 ", lastItem), " de ", this.totalItems));
|
|
51
|
+
}
|
|
52
|
+
renderDefault() {
|
|
53
|
+
const firstItem = (this.currentPage - 1) * this.pageSize + 1;
|
|
54
|
+
const lastItem = Math.min(this.currentPage * this.pageSize, this.totalItems);
|
|
55
|
+
return (h("div", { class: "pagination-container" }, this.renderInfoLabel(firstItem, lastItem), h("div", { class: "controls controls-compact" }, this.renderPreviousBtn(), this.renderNextBtn())));
|
|
56
|
+
}
|
|
57
|
+
renderNumber() {
|
|
58
|
+
const totalPages = this.getTotalPages();
|
|
59
|
+
const { currentPage, pageLimit } = this;
|
|
60
|
+
const pages = [];
|
|
61
|
+
if (totalPages <= pageLimit) {
|
|
62
|
+
for (let i = 1; i <= totalPages; i++) {
|
|
63
|
+
pages.push(i);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const range = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
68
|
+
const mainPagesCount = pageLimit - 2;
|
|
69
|
+
const showLeftEllipsis = currentPage > mainPagesCount;
|
|
70
|
+
const showRightEllipsis = currentPage < totalPages - mainPagesCount + 1;
|
|
71
|
+
if (!showLeftEllipsis) {
|
|
72
|
+
// Exibe o início da paginação sem elipse à esquerda
|
|
73
|
+
// Ex: 1 2 3 4 5 6 ... 10 (pageLimit = 8)
|
|
74
|
+
pages.push(...range(1, pageLimit - 2));
|
|
75
|
+
pages.push('...');
|
|
76
|
+
pages.push(totalPages);
|
|
77
|
+
}
|
|
78
|
+
else if (!showRightEllipsis) {
|
|
79
|
+
// Exibe o final da paginação sem elipse à direita
|
|
80
|
+
// Ex: 1 ... 5 6 7 8 9 10 (pageLimit = 8)
|
|
81
|
+
pages.push(1);
|
|
82
|
+
pages.push('...');
|
|
83
|
+
pages.push(...range(totalPages - (pageLimit - 3), totalPages));
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
// Exibe elipses em ambos os lados
|
|
87
|
+
// Ex: 1 ... 4 5 6 7 ... 10 (pageLimit = 8)
|
|
88
|
+
const innerPagesCount = pageLimit - 4; // Contabiliza 1, ..., ..., totalPages
|
|
89
|
+
const aroundCount = Math.floor((innerPagesCount - 1) / 2);
|
|
90
|
+
const startPage = currentPage - aroundCount;
|
|
91
|
+
const endPage = currentPage + (innerPagesCount - 1 - aroundCount);
|
|
92
|
+
pages.push(1);
|
|
93
|
+
pages.push('...');
|
|
94
|
+
pages.push(...range(startPage, endPage));
|
|
95
|
+
pages.push('...');
|
|
96
|
+
pages.push(totalPages);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return (h("div", { class: "pagination-container" }, h("div", { class: "controls" }, this.renderPreviousBtn(), h("div", { class: "pages-options" }, this.renderPageButtons(pages)), this.renderNextBtn())));
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return this.type === 'number' ? this.renderNumber() : this.renderDefault();
|
|
103
|
+
}
|
|
104
|
+
static get is() { return "ez-pagination"; }
|
|
105
|
+
static get encapsulation() { return "scoped"; }
|
|
106
|
+
static get originalStyleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["ez-pagination.css"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get styleUrls() {
|
|
112
|
+
return {
|
|
113
|
+
"$": ["ez-pagination.css"]
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
static get properties() {
|
|
117
|
+
return {
|
|
118
|
+
"type": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": false,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "'default' | 'number'",
|
|
123
|
+
"resolved": "\"default\" | \"number\"",
|
|
124
|
+
"references": {}
|
|
125
|
+
},
|
|
126
|
+
"required": false,
|
|
127
|
+
"optional": false,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": "O tipo de pagina\u00E7\u00E3o a ser renderizada.\nPode ser 'default' ou 'number'."
|
|
131
|
+
},
|
|
132
|
+
"attribute": "type",
|
|
133
|
+
"reflect": false,
|
|
134
|
+
"defaultValue": "'default'"
|
|
135
|
+
},
|
|
136
|
+
"currentPage": {
|
|
137
|
+
"type": "number",
|
|
138
|
+
"mutable": true,
|
|
139
|
+
"complexType": {
|
|
140
|
+
"original": "number",
|
|
141
|
+
"resolved": "number",
|
|
142
|
+
"references": {}
|
|
143
|
+
},
|
|
144
|
+
"required": false,
|
|
145
|
+
"optional": false,
|
|
146
|
+
"docs": {
|
|
147
|
+
"tags": [],
|
|
148
|
+
"text": "O n\u00FAmero da p\u00E1gina atual."
|
|
149
|
+
},
|
|
150
|
+
"attribute": "current-page",
|
|
151
|
+
"reflect": false,
|
|
152
|
+
"defaultValue": "1"
|
|
153
|
+
},
|
|
154
|
+
"totalItems": {
|
|
155
|
+
"type": "number",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "number",
|
|
159
|
+
"resolved": "number",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": false,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "O n\u00FAmero total de itens."
|
|
167
|
+
},
|
|
168
|
+
"attribute": "total-items",
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"defaultValue": "0"
|
|
171
|
+
},
|
|
172
|
+
"pageSize": {
|
|
173
|
+
"type": "number",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "number",
|
|
177
|
+
"resolved": "number",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": "O n\u00FAmero de itens por p\u00E1gina."
|
|
185
|
+
},
|
|
186
|
+
"attribute": "page-size",
|
|
187
|
+
"reflect": false,
|
|
188
|
+
"defaultValue": "10"
|
|
189
|
+
},
|
|
190
|
+
"hideInfoLabel": {
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "boolean",
|
|
195
|
+
"resolved": "boolean",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": "Esconde as o texto de informa\u00E7\u00E3o da pagina\u00E7\u00E3o no tipo default."
|
|
203
|
+
},
|
|
204
|
+
"attribute": "hide-info-label",
|
|
205
|
+
"reflect": false,
|
|
206
|
+
"defaultValue": "false"
|
|
207
|
+
},
|
|
208
|
+
"pageLimit": {
|
|
209
|
+
"type": "number",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "number",
|
|
213
|
+
"resolved": "number",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "O n\u00FAmero de p\u00E1ginas a serem exibidas na pagina\u00E7\u00E3o."
|
|
221
|
+
},
|
|
222
|
+
"attribute": "page-limit",
|
|
223
|
+
"reflect": false,
|
|
224
|
+
"defaultValue": "10"
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
static get events() {
|
|
229
|
+
return [{
|
|
230
|
+
"method": "ezPageChange",
|
|
231
|
+
"name": "ezPageChange",
|
|
232
|
+
"bubbles": true,
|
|
233
|
+
"cancelable": true,
|
|
234
|
+
"composed": true,
|
|
235
|
+
"docs": {
|
|
236
|
+
"tags": [],
|
|
237
|
+
"text": "Evento emitido quando a p\u00E1gina \u00E9 alterada."
|
|
238
|
+
},
|
|
239
|
+
"complexType": {
|
|
240
|
+
"original": "number",
|
|
241
|
+
"resolved": "number",
|
|
242
|
+
"references": {}
|
|
243
|
+
}
|
|
244
|
+
}];
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -191,6 +191,10 @@ export default {
|
|
|
191
191
|
"ez-number-input": {
|
|
192
192
|
invalidNumber: "The entered value is not a valid number",
|
|
193
193
|
},
|
|
194
|
+
"ez-pagination": {
|
|
195
|
+
previousPage: "Previous page",
|
|
196
|
+
nextPage: "Next page",
|
|
197
|
+
},
|
|
194
198
|
"ez-rich-text": {
|
|
195
199
|
listShortcut: "Applies list style to the selected text.",
|
|
196
200
|
linkShortcut: "Opens link popup.",
|
|
@@ -191,6 +191,10 @@ export default {
|
|
|
191
191
|
"ez-number-input": {
|
|
192
192
|
invalidNumber: "El valor ingresado no es un número válido",
|
|
193
193
|
},
|
|
194
|
+
"ez-pagination": {
|
|
195
|
+
previousPage: "Página anterior",
|
|
196
|
+
nextPage: "Página siguiente",
|
|
197
|
+
},
|
|
194
198
|
"ez-rich-text": {
|
|
195
199
|
listShortcut: "Aplica estilo de lista al texto seleccionado.",
|
|
196
200
|
linkShortcut: "Abre popup de enlace.",
|
|
@@ -191,6 +191,10 @@ export default {
|
|
|
191
191
|
"ez-number-input": {
|
|
192
192
|
invalidNumber: "O valor digitado não é um número válido",
|
|
193
193
|
},
|
|
194
|
+
"ez-pagination": {
|
|
195
|
+
previousPage: "Página anterior",
|
|
196
|
+
nextPage: "Próxima página",
|
|
197
|
+
},
|
|
194
198
|
"ez-rich-text": {
|
|
195
199
|
listShortcut: "Aplica estilo de lista ao texto selecionado.",
|
|
196
200
|
linkShortcut: "Abre popup de link.",
|
|
@@ -248,6 +248,12 @@ export const EzNumberInput: {
|
|
|
248
248
|
new (): EzNumberInput;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
+
interface EzPagination extends Components.EzPagination, HTMLElement {}
|
|
252
|
+
export const EzPagination: {
|
|
253
|
+
prototype: EzPagination;
|
|
254
|
+
new (): EzPagination;
|
|
255
|
+
};
|
|
256
|
+
|
|
251
257
|
interface EzPopover extends Components.EzPopover, HTMLElement {}
|
|
252
258
|
export const EzPopover: {
|
|
253
259
|
prototype: EzPopover;
|
|
@@ -2981,6 +2981,10 @@ const ptBrTranslations = {
|
|
|
2981
2981
|
"ez-number-input": {
|
|
2982
2982
|
invalidNumber: "O valor digitado não é um número válido",
|
|
2983
2983
|
},
|
|
2984
|
+
"ez-pagination": {
|
|
2985
|
+
previousPage: "Página anterior",
|
|
2986
|
+
nextPage: "Próxima página",
|
|
2987
|
+
},
|
|
2984
2988
|
"ez-rich-text": {
|
|
2985
2989
|
listShortcut: "Aplica estilo de lista ao texto selecionado.",
|
|
2986
2990
|
linkShortcut: "Abre popup de link.",
|
|
@@ -3269,6 +3273,10 @@ const enUsTranslations = {
|
|
|
3269
3273
|
"ez-number-input": {
|
|
3270
3274
|
invalidNumber: "The entered value is not a valid number",
|
|
3271
3275
|
},
|
|
3276
|
+
"ez-pagination": {
|
|
3277
|
+
previousPage: "Previous page",
|
|
3278
|
+
nextPage: "Next page",
|
|
3279
|
+
},
|
|
3272
3280
|
"ez-rich-text": {
|
|
3273
3281
|
listShortcut: "Applies list style to the selected text.",
|
|
3274
3282
|
linkShortcut: "Opens link popup.",
|
|
@@ -3557,6 +3565,10 @@ const esEsTranslations = {
|
|
|
3557
3565
|
"ez-number-input": {
|
|
3558
3566
|
invalidNumber: "El valor ingresado no es un número válido",
|
|
3559
3567
|
},
|
|
3568
|
+
"ez-pagination": {
|
|
3569
|
+
previousPage: "Página anterior",
|
|
3570
|
+
nextPage: "Página siguiente",
|
|
3571
|
+
},
|
|
3560
3572
|
"ez-rich-text": {
|
|
3561
3573
|
listShortcut: "Aplica estilo de lista al texto seleccionado.",
|
|
3562
3574
|
linkShortcut: "Abre popup de enlace.",
|
|
@@ -80795,6 +80807,115 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
80795
80807
|
static get style() { return ezNumberInputCss; }
|
|
80796
80808
|
};
|
|
80797
80809
|
|
|
80810
|
+
const ezPaginationCss = ".sc-ez-pagination-h{--ez-pagination__info--color:var(--color--petroleum-500);--ez-pagination__info--margin-right:var(--space--sm);--ez-pagination__info--text-weight:var(--text-weight--medium);--ez-pagination__info--font-size:var(--text--medium);--ez-pagination__info-range--font-weight:var(--font-weight--bold);--ez-pagination__pages-option-padding:var(--space--nano);--ez-pagination__pages-option-color:var(--color--petroleum-500);--ez-pagination__pages-option-weight:var(--text-weight--medium);--ez-pagination__pages-option-size:var(--text--medium)}.pagination-container.sc-ez-pagination{display:flex;align-items:center;justify-content:flex-start;overflow:hidden}.info.sc-ez-pagination{color:var(--ez-pagination__info--color);margin-right:var(--ez-pagination__info--margin-right);font-weight:var(--ez-pagination__info--text-weight);font-size:var(--ez-pagination__info--font-size);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.info-range.sc-ez-pagination{font-weight:var(--ez-pagination__info-range--font-weight)}.controls.sc-ez-pagination{display:flex;align-items:center;flex-shrink:0}.controls-compact.sc-ez-pagination{gap:var(--space--2xs)}.pages-options.sc-ez-pagination{display:flex;align-items:center;padding:0 var(--ez-pagination__pages-option-padding)}.page-button.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);background-color:transparent;padding:0;border:none;cursor:pointer;min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}.current-page.sc-ez-pagination{color:var(--color--primary)}.page-info.sc-ez-pagination{margin:0 8px}.ellipsis.sc-ez-pagination{color:var(--ez-pagination__pages-option-color);font-weight:var(--ez-pagination__pages-option-weight);font-size:var(--ez-pagination__pages-option-size);min-width:24px;height:24px;display:flex;align-items:center;justify-content:center}";
|
|
80811
|
+
|
|
80812
|
+
const EzPagination$1 = class extends HTMLElement$1 {
|
|
80813
|
+
constructor() {
|
|
80814
|
+
super();
|
|
80815
|
+
this.__registerHost();
|
|
80816
|
+
this.ezPageChange = createEvent(this, "ezPageChange", 7);
|
|
80817
|
+
this.handlePreviousPage = () => {
|
|
80818
|
+
if (this.currentPage > 1) {
|
|
80819
|
+
this.currentPage--;
|
|
80820
|
+
this.ezPageChange.emit(this.currentPage);
|
|
80821
|
+
}
|
|
80822
|
+
};
|
|
80823
|
+
this.handleNextPage = () => {
|
|
80824
|
+
if (this.currentPage < this.getTotalPages()) {
|
|
80825
|
+
this.currentPage++;
|
|
80826
|
+
this.ezPageChange.emit(this.currentPage);
|
|
80827
|
+
}
|
|
80828
|
+
};
|
|
80829
|
+
this.handlePageClick = (page) => {
|
|
80830
|
+
this.currentPage = page;
|
|
80831
|
+
this.ezPageChange.emit(this.currentPage);
|
|
80832
|
+
};
|
|
80833
|
+
this.type = 'default';
|
|
80834
|
+
this.currentPage = 1;
|
|
80835
|
+
this.totalItems = 0;
|
|
80836
|
+
this.pageSize = 10;
|
|
80837
|
+
this.hideInfoLabel = false;
|
|
80838
|
+
this.pageLimit = 10;
|
|
80839
|
+
}
|
|
80840
|
+
async componentWillLoad() {
|
|
80841
|
+
this.i18n = await initI18n();
|
|
80842
|
+
}
|
|
80843
|
+
getTotalPages() {
|
|
80844
|
+
return Math.ceil(this.totalItems / this.pageSize);
|
|
80845
|
+
}
|
|
80846
|
+
renderNextBtn() {
|
|
80847
|
+
return h("ez-button", { "aria-label": this.i18n('ez-pagination.nextPage'), label: this.i18n('ez-pagination.nextPage'), "data-element-id": "pagination-next-button", size: "small", iconName: "arrow-right", class: "ez-button--primary", mode: "icon", enabled: this.currentPage < this.getTotalPages(), onClick: () => this.handleNextPage() });
|
|
80848
|
+
}
|
|
80849
|
+
renderPreviousBtn() {
|
|
80850
|
+
return h("ez-button", { label: this.i18n('ez-pagination.previousPage'), "aria-label": this.i18n('ez-pagination.previousPage'), "data-element-id": "pagination-previous-button", size: "small", iconName: "arrow-left", mode: "icon", enabled: this.currentPage > 1, onClick: () => this.handlePreviousPage() });
|
|
80851
|
+
}
|
|
80852
|
+
renderPageButton(page) {
|
|
80853
|
+
return (h("button", { "aria-label": `page-${page}`, class: { 'page-button': true, 'current-page': this.currentPage === page }, onClick: () => this.handlePageClick(page) }, page));
|
|
80854
|
+
}
|
|
80855
|
+
renderEllipsis() {
|
|
80856
|
+
return h("span", { "aria-label": 'page-ellipsis', class: "ellipsis" }, "...");
|
|
80857
|
+
}
|
|
80858
|
+
renderPageButtons(pages) {
|
|
80859
|
+
return pages.map(page => (page === '...' ? this.renderEllipsis() : this.renderPageButton(page)));
|
|
80860
|
+
}
|
|
80861
|
+
renderInfoLabel(firstItem, lastItem) {
|
|
80862
|
+
return !this.hideInfoLabel && (h("div", { class: "info" }, h("span", { class: 'info-range' }, firstItem, " at\u00E9 ", lastItem), " de ", this.totalItems));
|
|
80863
|
+
}
|
|
80864
|
+
renderDefault() {
|
|
80865
|
+
const firstItem = (this.currentPage - 1) * this.pageSize + 1;
|
|
80866
|
+
const lastItem = Math.min(this.currentPage * this.pageSize, this.totalItems);
|
|
80867
|
+
return (h("div", { class: "pagination-container" }, this.renderInfoLabel(firstItem, lastItem), h("div", { class: "controls controls-compact" }, this.renderPreviousBtn(), this.renderNextBtn())));
|
|
80868
|
+
}
|
|
80869
|
+
renderNumber() {
|
|
80870
|
+
const totalPages = this.getTotalPages();
|
|
80871
|
+
const { currentPage, pageLimit } = this;
|
|
80872
|
+
const pages = [];
|
|
80873
|
+
if (totalPages <= pageLimit) {
|
|
80874
|
+
for (let i = 1; i <= totalPages; i++) {
|
|
80875
|
+
pages.push(i);
|
|
80876
|
+
}
|
|
80877
|
+
}
|
|
80878
|
+
else {
|
|
80879
|
+
const range = (start, end) => Array.from({ length: end - start + 1 }, (_, i) => start + i);
|
|
80880
|
+
const mainPagesCount = pageLimit - 2;
|
|
80881
|
+
const showLeftEllipsis = currentPage > mainPagesCount;
|
|
80882
|
+
const showRightEllipsis = currentPage < totalPages - mainPagesCount + 1;
|
|
80883
|
+
if (!showLeftEllipsis) {
|
|
80884
|
+
// Exibe o início da paginação sem elipse à esquerda
|
|
80885
|
+
// Ex: 1 2 3 4 5 6 ... 10 (pageLimit = 8)
|
|
80886
|
+
pages.push(...range(1, pageLimit - 2));
|
|
80887
|
+
pages.push('...');
|
|
80888
|
+
pages.push(totalPages);
|
|
80889
|
+
}
|
|
80890
|
+
else if (!showRightEllipsis) {
|
|
80891
|
+
// Exibe o final da paginação sem elipse à direita
|
|
80892
|
+
// Ex: 1 ... 5 6 7 8 9 10 (pageLimit = 8)
|
|
80893
|
+
pages.push(1);
|
|
80894
|
+
pages.push('...');
|
|
80895
|
+
pages.push(...range(totalPages - (pageLimit - 3), totalPages));
|
|
80896
|
+
}
|
|
80897
|
+
else {
|
|
80898
|
+
// Exibe elipses em ambos os lados
|
|
80899
|
+
// Ex: 1 ... 4 5 6 7 ... 10 (pageLimit = 8)
|
|
80900
|
+
const innerPagesCount = pageLimit - 4; // Contabiliza 1, ..., ..., totalPages
|
|
80901
|
+
const aroundCount = Math.floor((innerPagesCount - 1) / 2);
|
|
80902
|
+
const startPage = currentPage - aroundCount;
|
|
80903
|
+
const endPage = currentPage + (innerPagesCount - 1 - aroundCount);
|
|
80904
|
+
pages.push(1);
|
|
80905
|
+
pages.push('...');
|
|
80906
|
+
pages.push(...range(startPage, endPage));
|
|
80907
|
+
pages.push('...');
|
|
80908
|
+
pages.push(totalPages);
|
|
80909
|
+
}
|
|
80910
|
+
}
|
|
80911
|
+
return (h("div", { class: "pagination-container" }, h("div", { class: "controls" }, this.renderPreviousBtn(), h("div", { class: "pages-options" }, this.renderPageButtons(pages)), this.renderNextBtn())));
|
|
80912
|
+
}
|
|
80913
|
+
render() {
|
|
80914
|
+
return this.type === 'number' ? this.renderNumber() : this.renderDefault();
|
|
80915
|
+
}
|
|
80916
|
+
static get style() { return ezPaginationCss; }
|
|
80917
|
+
};
|
|
80918
|
+
|
|
80798
80919
|
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 3);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";
|
|
80799
80920
|
|
|
80800
80921
|
const EzPopover$1 = class extends HTMLElement$1 {
|
|
@@ -92577,6 +92698,7 @@ const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modal
|
|
|
92577
92698
|
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"],"showCloseButton":[4,"show-close-button"]},[[4,"ezCloseModal","handleEzModalAction"]]]);
|
|
92578
92699
|
const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
|
|
92579
92700
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"allowNegative":[4,"allow-negative"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"autoFocus":[4,"auto-focus"],"alternativePlaceholder":[1,"alternative-placeholder"],"_value":[32]}]);
|
|
92701
|
+
const EzPagination = /*@__PURE__*/proxyCustomElement(EzPagination$1, [2,"ez-pagination",{"type":[1],"currentPage":[1026,"current-page"],"totalItems":[2,"total-items"],"pageSize":[2,"page-size"],"hideInfoLabel":[4,"hide-info-label"],"pageLimit":[2,"page-limit"]}]);
|
|
92580
92702
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
92581
92703
|
const EzPopoverCore = /*@__PURE__*/proxyCustomElement(EzPopoverCore$1, [1,"ez-popover-core",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040],"useAnchorSize":[516,"use-anchor-size"],"minWidth":[514,"min-width"]}]);
|
|
92582
92704
|
const EzPopoverPlus = /*@__PURE__*/proxyCustomElement(EzPopoverPlus$1, [1,"ez-popover-plus",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040],"useAnchorSize":[516,"use-anchor-size"],"minWidth":[514,"min-width"]}]);
|
|
@@ -92663,6 +92785,7 @@ const defineCustomElements = (opts) => {
|
|
|
92663
92785
|
EzModalContainer,
|
|
92664
92786
|
EzMultiSelectionList,
|
|
92665
92787
|
EzNumberInput,
|
|
92788
|
+
EzPagination,
|
|
92666
92789
|
EzPopover,
|
|
92667
92790
|
EzPopoverCore,
|
|
92668
92791
|
EzPopoverPlus,
|
|
@@ -92713,4 +92836,4 @@ const defineCustomElements = (opts) => {
|
|
|
92713
92836
|
}
|
|
92714
92837
|
};
|
|
92715
92838
|
|
|
92716
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzAvatar, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzClassicComboBox, EzClassicInput, EzClassicTextArea, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzEmptyCard, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzLinkBuilder, EzList, EzListItem, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzProgressBar, EzRadioButton, EzRichText, EzRichToolbar, EzRichToolbarArrows, EzRichToolbarConfigs, EzRichToolbarItem, EzRichToolbarLetters, EzScroller, EzSearch, EzSearchPlus, EzSearchResultList, EzSidebarButton, EzSidebarNavigator, EzSimpleImageUploader, EzSkeleton, EzSortableList, EzSpinner, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTag, EzTextArea, EzTextEdit, EzTextInput, EzTile, EzTileMedium, EzTimeInput, EzToast, EzTooltip, EzTree, EzUnderface, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|
|
92839
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzAvatar, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzClassicComboBox, EzClassicInput, EzClassicTextArea, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzEmptyCard, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzLinkBuilder, EzList, EzListItem, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPagination, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzProgressBar, EzRadioButton, EzRichText, EzRichToolbar, EzRichToolbarArrows, EzRichToolbarConfigs, EzRichToolbarItem, EzRichToolbarLetters, EzScroller, EzSearch, EzSearchPlus, EzSearchResultList, EzSidebarButton, EzSidebarNavigator, EzSimpleImageUploader, EzSkeleton, EzSortableList, EzSpinner, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTag, EzTextArea, EzTextEdit, EzTextInput, EzTile, EzTileMedium, EzTimeInput, EzToast, EzTooltip, EzTree, EzUnderface, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as DialogType } from './DialogType-54a62731.js';
|
|
2
|
-
import { i as initI18n } from './index-
|
|
2
|
+
import { i as initI18n } from './index-6517a082.js';
|
|
3
3
|
|
|
4
4
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
5
5
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import './ApplicationUtils-
|
|
3
|
+
import './ApplicationUtils-0fd22faf.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-6517a082.js';
|
|
8
8
|
import './FormLayout-071d324c.js';
|
|
9
9
|
|
|
10
10
|
const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none;--ez-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { i as initI18n } from './index-
|
|
3
|
+
import { i as initI18n } from './index-6517a082.js';
|
|
4
4
|
|
|
5
5
|
const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--ez-elevation--8, 8);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-baa5e267.js';
|
|
2
|
-
import { i as initI18n } from './index-
|
|
2
|
+
import { i as initI18n } from './index-6517a082.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
|
|
5
5
|
const ezAvatarCss = ":host{--ez-avatar--background-color:var(--color--ocean-green-600, #008561);--ez-avatar--color:var(--color--gray-70, #fff);--ez-avatar--border-radius-circle:50%;--ez-avatar--border-radius-square:25%;--ez-avatar--background-color-hover:var(--color--ocean-green-700, #00684C)}button,figure{display:flex;align-items:center;justify-content:center;border:var(--ez-avatar--border);background-color:var(--ez-avatar--background-color);color:var(--ez-avatar--color);font-weight:var(--font-weight--medium, 500);font-family:var(--font-pattern, 'Roboto');transition:background-color 0.2s linear, color 0.2s linear;margin:0;padding:0}button:hover{cursor:pointer;background-color:var(--ez-avatar--background-color-hover)}.avatar--320{--avatar-size:320px;width:20rem;height:20rem}.avatar--300{--avatar-size:300px;width:18.75rem;height:18.75rem}.avatar--280{--avatar-size:280px;width:17.5rem;height:17.5rem}.avatar--260{--avatar-size:260px;width:16.25rem;height:16.25rem}.avatar--240{--avatar-size:240px;width:15rem;height:15rem}.avatar--220{--avatar-size:220px;width:13.75rem;height:13.75rem}.avatar--200{--avatar-size:200px;width:12.5rem;height:12.5rem}.avatar--180{--avatar-size:180px;width:11.25rem;height:11.25rem}.avatar--160{--avatar-size:160px;width:10rem;height:10rem}.avatar--140{--avatar-size:140px;width:8.75rem;height:8.75rem}.avatar--120{--avatar-size:120px;width:7.5rem;height:7.5rem}.avatar--100{--avatar-size:100px;width:6.25rem;height:6.25rem}.avatar--80{--avatar-size:80px;width:5rem;height:5rem}.avatar--60{--avatar-size:60px;width:3.75rem;height:3.75rem}.avatar-initial{font-size:calc(0.375 * var(--avatar-size));}.avatar--circle{border-radius:var(--ez-avatar--border-radius-circle)}.avatar--square{border-radius:var(--ez-avatar--border-radius-square)}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar--has-image{background-color:transparent}ez-icon{--ez-icon--color:var(--color--gray-70, #fff);font-weight:var(--font-weight--medium, 500)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager } from '@sankhyalabs/core';
|
|
3
|
-
import { i as initI18n } from './index-
|
|
3
|
+
import { i as initI18n } from './index-6517a082.js';
|
|
4
4
|
|
|
5
5
|
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto;scrollbar-width:none}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
|
|
6
6
|
|