@sankhyalabs/ezui 7.2.0-dev.2 → 7.2.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-006ca96f.js → ApplicationUtils-dc653b57.js} +1 -1
- package/dist/cjs/{app-globals-5cb12916.js → app-globals-16ec1ff7.js} +1 -1
- package/dist/cjs/classic-search-list_7.cjs.entry.js +2 -2
- 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-classic-combo-box.cjs.entry.js +2 -1
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +4 -4
- package/dist/cjs/ez-classic-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +4 -3
- package/dist/cjs/ez-collapsible-box.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-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.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-pagination.cjs.entry.js +227 -0
- package/dist/cjs/ez-grid.cjs.entry.js +20 -148
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.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 +1 -1
- package/dist/cjs/ez-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-record-navigation.cjs.entry.js +121 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +81 -14
- package/dist/cjs/ez-search-plus.cjs.entry.js +4 -4
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +3 -3
- 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 +4 -4
- 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-tooltip.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/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-bea31048.js} +165 -119
- package/dist/cjs/index-a7b0c73d.js +8 -0
- package/dist/cjs/{index-350d0fa0.js → index-a8537087.js} +85 -30
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-fbf680d7.js → search-column-cd0e44be.js} +4 -7
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +2 -1
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +22 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +1 -1
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +1 -1
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
- package/dist/collection/components/ez-grid/ez-grid.css +1 -60
- package/dist/collection/components/ez-grid/ez-grid.js +52 -150
- package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.css +111 -0
- package/dist/collection/components/ez-grid-pagination/ez-grid-pagination.js +410 -0
- package/dist/collection/components/ez-icon/ez-icon.css +5 -5
- package/dist/collection/components/ez-record-navigation/ez-record-navigation.css +51 -0
- package/dist/collection/components/ez-record-navigation/ez-record-navigation.js +246 -0
- package/dist/collection/components/ez-scroller/EzScrollNavigationMode.js +5 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css +117 -11
- package/dist/collection/components/ez-scroller/ez-scroller.js +118 -13
- package/dist/collection/components/ez-search/ez-search.css +4 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +2 -2
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +2 -2
- package/dist/collection/utils/i18n/locales/en-us.js +25 -4
- package/dist/collection/utils/i18n/locales/es-es.js +25 -4
- package/dist/collection/utils/i18n/locales/pt-br.js +25 -4
- package/dist/collection/utils/searchColumn/search-column.js +2 -5
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +697 -321
- package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-e99e53c8.js} +1 -1
- package/dist/esm/{app-globals-1db10325.js → app-globals-6e27b3bb.js} +1 -1
- package/dist/esm/classic-search-list_7.entry.js +2 -2
- 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-classic-combo-box.entry.js +2 -1
- package/dist/esm/ez-classic-date-input.entry.js +2 -2
- package/dist/esm/ez-classic-date-time-input.entry.js +1 -1
- package/dist/esm/ez-classic-number-input.entry.js +1 -1
- package/dist/esm/ez-classic-search-plus.entry.js +4 -4
- package/dist/esm/ez-classic-search.entry.js +2 -2
- package/dist/esm/ez-classic-time-input.entry.js +4 -3
- package/dist/esm/ez-collapsible-box.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-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.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-pagination.entry.js +223 -0
- package/dist/esm/ez-grid.entry.js +21 -149
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.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 +1 -1
- package/dist/esm/ez-popover-core.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-record-navigation.entry.js +117 -0
- package/dist/esm/ez-scroller_2.entry.js +81 -14
- package/dist/esm/ez-search-plus.entry.js +4 -4
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tooltip.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/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-2964eae1.js} +165 -119
- package/dist/esm/{index-225aa0c3.js → index-a031816b.js} +85 -30
- package/dist/esm/index-baa5e267.js +8 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-40a78cac.js → search-column-33d72c20.js} +4 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-bf2a7f94.entry.js → p-05e4541a.entry.js} +1 -1
- package/dist/ezui/{p-56565777.entry.js → p-0bc16f75.entry.js} +1 -1
- package/dist/ezui/p-0d80e3ec.entry.js +1 -0
- package/dist/ezui/{p-556bf329.entry.js → p-0fc981e9.entry.js} +1 -1
- package/dist/ezui/{p-26cd4c2e.entry.js → p-1244fac0.entry.js} +1 -1
- package/dist/ezui/{p-0625743b.entry.js → p-160a268d.entry.js} +1 -1
- package/dist/ezui/p-178cb9df.entry.js +1 -0
- package/dist/ezui/{p-6ac056d7.entry.js → p-1ab5ba19.entry.js} +1 -1
- package/dist/ezui/p-2241dea1.js +1 -0
- package/dist/ezui/{p-9825c1d2.js → p-24582dd6.js} +1 -1
- package/dist/ezui/{p-62c149cb.entry.js → p-2887cbf9.entry.js} +1 -1
- package/dist/ezui/p-2b65728f.entry.js +1 -0
- package/dist/ezui/{p-b705b342.entry.js → p-318d4dc9.entry.js} +1 -1
- package/dist/ezui/{p-8e5f1c74.entry.js → p-32b8f057.entry.js} +1 -1
- package/dist/ezui/{p-f5552540.entry.js → p-3311e7ef.entry.js} +1 -1
- package/dist/ezui/{p-b0a716ef.entry.js → p-39d2bce5.entry.js} +1 -1
- package/dist/ezui/{p-e3cd5080.entry.js → p-3d772561.entry.js} +1 -1
- package/dist/ezui/{p-c56ee8c0.entry.js → p-473a397f.entry.js} +1 -1
- package/dist/ezui/{p-729bd1be.entry.js → p-4991931a.entry.js} +1 -1
- package/dist/ezui/{p-d5dc6b01.entry.js → p-4ca4e8d1.entry.js} +1 -1
- package/dist/ezui/{p-4f7ad3ee.entry.js → p-4f76dc28.entry.js} +1 -1
- package/dist/ezui/{p-2da9faf1.entry.js → p-510eccc7.entry.js} +1 -1
- package/dist/ezui/p-54975948.entry.js +1 -0
- package/dist/ezui/p-69344c23.js +1 -0
- package/dist/ezui/p-6bb36afc.entry.js +1 -0
- package/dist/ezui/{p-5abb220b.entry.js → p-700af412.entry.js} +1 -1
- package/dist/ezui/{p-a4351519.entry.js → p-7f475884.entry.js} +1 -1
- package/dist/ezui/{p-4c76b365.entry.js → p-84be1391.entry.js} +1 -1
- package/dist/ezui/{p-987185c4.entry.js → p-879cee4d.entry.js} +1 -1
- package/dist/ezui/{p-34d459e4.entry.js → p-8980b477.entry.js} +1 -1
- package/dist/ezui/{p-f969b65d.entry.js → p-8a5efec5.entry.js} +1 -1
- package/dist/ezui/p-91ff4511.entry.js +1 -0
- package/dist/ezui/{p-7134726a.entry.js → p-93097edc.entry.js} +1 -1
- package/dist/ezui/{p-e2972977.entry.js → p-96e5eaa2.entry.js} +1 -1
- package/dist/ezui/{p-0248846f.entry.js → p-a383fbc5.entry.js} +1 -1
- package/dist/ezui/{p-351fb12f.entry.js → p-a4735a12.entry.js} +1 -1
- package/dist/ezui/{p-a3bad8f8.entry.js → p-a4911d89.entry.js} +1 -1
- package/dist/ezui/{p-7edc3ef7.entry.js → p-a8f807ed.entry.js} +1 -1
- package/dist/ezui/{p-e3a42f47.entry.js → p-ab41edab.entry.js} +1 -1
- package/dist/ezui/{p-7953ecb9.entry.js → p-ab4da973.entry.js} +1 -1
- package/dist/ezui/{p-e493ad57.entry.js → p-adee66db.entry.js} +1 -1
- package/dist/ezui/{p-544605c4.entry.js → p-b5f45319.entry.js} +1 -1
- package/dist/ezui/p-c2d44132.entry.js +1 -0
- package/dist/ezui/{p-df802548.entry.js → p-c33d46e0.entry.js} +1 -1
- package/dist/ezui/{p-b36475f9.entry.js → p-c8584e28.entry.js} +1 -1
- package/dist/ezui/{p-a872c642.entry.js → p-caf3cd8f.entry.js} +1 -1
- package/dist/ezui/{p-4d30b703.entry.js → p-cf66ace0.entry.js} +1 -1
- package/dist/ezui/p-d2601b25.js +1 -0
- package/dist/ezui/{p-4c2a4435.entry.js → p-d98dd01a.entry.js} +1 -1
- package/dist/ezui/p-dd5326e6.entry.js +1 -0
- package/dist/ezui/{p-4af745e1.entry.js → p-ddc6432d.entry.js} +1 -1
- package/dist/ezui/{p-bea06aae.entry.js → p-ea0f78d1.entry.js} +46 -46
- package/dist/ezui/{p-97312709.entry.js → p-ed6b6e0f.entry.js} +1 -1
- package/dist/ezui/{p-4e869617.entry.js → p-f1390be9.entry.js} +1 -1
- package/dist/ezui/{p-6a794336.js → p-f71a4d97.js} +1 -1
- package/dist/ezui/{p-ef8bd3e8.entry.js → p-fc72aeb8.entry.js} +1 -1
- package/dist/ezui/p-fcdd861e.entry.js +1 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
- package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
- package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
- package/dist/types/components/ez-record-navigation/ez-record-navigation.d.ts +43 -0
- package/dist/types/components/ez-scroller/EzScrollNavigationMode.d.ts +4 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +16 -2
- package/dist/types/components.d.ts +154 -6
- package/dist/types/utils/i18n/locales/en-us.d.ts +24 -3
- package/dist/types/utils/i18n/locales/es-es.d.ts +24 -3
- package/dist/types/utils/i18n/locales/pt-br.d.ts +24 -3
- package/dist/types/utils/i18n/translations.d.ts +72 -9
- package/package.json +2 -2
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-07fb22c3.entry.js +0 -1
- package/dist/ezui/p-288631d1.entry.js +0 -1
- package/dist/ezui/p-2a806303.js +0 -1
- package/dist/ezui/p-2de94faf.entry.js +0 -1
- package/dist/ezui/p-619225ce.entry.js +0 -1
- package/dist/ezui/p-a813a748.entry.js +0 -1
- package/dist/ezui/p-c0ae79fa.entry.js +0 -1
- package/dist/ezui/p-c178730b.js +0 -1
- package/dist/ezui/p-d2645bdf.entry.js +0 -1
- package/dist/ezui/p-ff4312d5.js +0 -1
|
@@ -86,6 +86,9 @@
|
|
|
86
86
|
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
87
87
|
--ez-classic-search__scrollbar--width: var(--space--medium, 12px);
|
|
88
88
|
|
|
89
|
+
/*@doc Define a cor do texto de ajuda do input.*/
|
|
90
|
+
--ez-classic-input--helptext-color: var(--color--ocean-green-1000, #00281D);
|
|
91
|
+
|
|
89
92
|
/***************
|
|
90
93
|
host style
|
|
91
94
|
***************/
|
|
@@ -96,6 +99,7 @@
|
|
|
96
99
|
|
|
97
100
|
/*public*/
|
|
98
101
|
width: var(--ez-classic-search--width);
|
|
102
|
+
font-family: var(--font--pattern, Arial, sans-serif);
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
ez-icon {
|
|
@@ -403,4 +407,22 @@ ez-classic-input:hover .btn__close, ez-c-input:focus .btn__close {
|
|
|
403
407
|
color: var(--color--red-600, #BD0025);
|
|
404
408
|
margin-left: var(--space--4, 4px);
|
|
405
409
|
vertical-align: top;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.ez-classic-search-plus__error-container {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-grow: 1;
|
|
415
|
+
gap: 3px;
|
|
416
|
+
overflow: hidden;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.ez-classic-search-plus__error-container span {
|
|
420
|
+
font-size: var(--font-size--xsmall, 10px);
|
|
421
|
+
line-height: var(--line-height--16, 16px);
|
|
422
|
+
overflow: hidden;
|
|
423
|
+
text-overflow: ellipsis;
|
|
424
|
+
animation: ez-helptext-fadein 0.3s ease;
|
|
425
|
+
|
|
426
|
+
/* public */
|
|
427
|
+
color: var(--ez-classic-input--helptext-color);
|
|
406
428
|
}
|
|
@@ -381,7 +381,7 @@ export class EzClassicSearchPlus {
|
|
|
381
381
|
"ez-classic-search-plus__code-input": !this.hideDescriptionInput,
|
|
382
382
|
"ez-classic-search-plus__code-input-no-border": !this.hideDescriptionInput,
|
|
383
383
|
"ez-classic-search-plus__code-input-full": this.hideDescriptionInput
|
|
384
|
-
}, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, size: this.size, label: null, errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus(), leftIconName: "search", leftIconClickable: this.enabled, onIconClick: () => this.handleSearchClick(), onEzChange: (event) => event.stopPropagation() }), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-classic-input", { ref: (elem) => this._textInputDescriptionValue = elem, tabIndex: -1, class: { "ez-classic-search-plus__text-input": true }, "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: null,
|
|
384
|
+
}, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, size: this.size, label: null, errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus(), leftIconName: "search", leftIconClickable: this.enabled, onIconClick: () => this.handleSearchClick(), onEzChange: (event) => event.stopPropagation(), state: this.errorMessage && this.canShowError ? "error" : "default" }), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-classic-input", { ref: (elem) => this._textInputDescriptionValue = elem, tabIndex: -1, class: { "ez-classic-search-plus__text-input": true }, "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: null, size: this.size, value: this.descriptionValue, onInput: (event) => this.handleTextInputChangeHandler(event), onFocus: () => this.handleDescriptionInputFocus(), rightIconName: canShowClearButton ? "close" : null, rightIconClickable: this.enabled, onIconClick: () => this.clearSearch(), onEzChange: (event) => event.stopPropagation(), state: this.errorMessage && this.canShowError ? "error" : "default" }), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this.el, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event), "data-element-id": this.el.getAttribute("data-element-id") }, h("ez-classic-search-result-list", { ref: (ref) => this._classicSearchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, showOptionValue: this.showOptionValue, onChangeValue: (evt) => this.handleSelectItem(evt) }))))), h("div", { class: "ez-classic-search-plus__error-container" }, h("span", null, this.errorMessage)))));
|
|
385
385
|
}
|
|
386
386
|
static get is() { return "ez-classic-search-plus"; }
|
|
387
387
|
static get encapsulation() { return "shadow"; }
|
|
@@ -161,7 +161,7 @@ export class EzClassicTimeInput {
|
|
|
161
161
|
value: this._viewValue,
|
|
162
162
|
enabled: this.enabled,
|
|
163
163
|
label: this.label,
|
|
164
|
-
|
|
164
|
+
mask: this.showSeconds ? "##:##:##" : "##:##",
|
|
165
165
|
onBlur: () => this.handleBlur(),
|
|
166
166
|
onInput: () => this.handleInput(),
|
|
167
167
|
errorMessage: this.errorMessage,
|
|
@@ -169,7 +169,8 @@ export class EzClassicTimeInput {
|
|
|
169
169
|
size: this.size,
|
|
170
170
|
canShowError: this.canShowError,
|
|
171
171
|
alternativePlaceholder: this.alternativePlaceholder,
|
|
172
|
-
required: this.required
|
|
172
|
+
required: this.required,
|
|
173
|
+
onEzChange: (event) => event.stopPropagation()
|
|
173
174
|
};
|
|
174
175
|
return (h(Host, null, h("ez-classic-input", Object.assign({}, inputProps, { leftIconName: "timer-outline" }))));
|
|
175
176
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/*@doc Define a posição do componente.*/
|
|
4
4
|
--ez-dropdown--z-index: var(--more-visible, 2);
|
|
5
5
|
/*@doc Define o espaçamento interno do componente.*/
|
|
6
|
-
--ez-dropdown--padding: var(--space--
|
|
6
|
+
--ez-dropdown--padding: var(--space--16, 16px);
|
|
7
7
|
/*@doc Define a sombra externa do componente.*/
|
|
8
8
|
--ez-dropdown--box-shadow: var(--shadow--medium, 0px 8px 24px rgba(0, 38, 111, 0.1));
|
|
9
9
|
/*@doc Define o raio da borda do componente.*/
|
|
@@ -16,7 +16,7 @@ export class EzEmptyCard {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
const customStyleVars = Object.assign(Object.assign({}, (this.height ? { '--ez-empty-card--custom-height': `${this.height}px` } : {})), (this.width ? { '--ez-empty-card--custom-width': `${this.width}px` } : {}));
|
|
19
|
+
const customStyleVars = Object.assign(Object.assign({}, (this.height ? { '--ez-empty-card--custom-height': `${this.height}${typeof this.height == "number" ? 'px' : ''}` } : {})), (this.width ? { '--ez-empty-card--custom-width': `${this.width}${typeof this.width == "number" ? 'px' : ''}` } : {}));
|
|
20
20
|
return (h(Host, { style: customStyleVars }, h("div", { ref: element => this._container = element, class: `card_container ${this.color}` }, h("slot", null))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ez-empty-card"; }
|
|
@@ -52,11 +52,11 @@ export class EzEmptyCard {
|
|
|
52
52
|
"defaultValue": "\"default\""
|
|
53
53
|
},
|
|
54
54
|
"height": {
|
|
55
|
-
"type": "
|
|
55
|
+
"type": "any",
|
|
56
56
|
"mutable": false,
|
|
57
57
|
"complexType": {
|
|
58
|
-
"original": "number",
|
|
59
|
-
"resolved": "number",
|
|
58
|
+
"original": "number | string",
|
|
59
|
+
"resolved": "number | string",
|
|
60
60
|
"references": {}
|
|
61
61
|
},
|
|
62
62
|
"required": false,
|
|
@@ -69,11 +69,11 @@ export class EzEmptyCard {
|
|
|
69
69
|
"reflect": true
|
|
70
70
|
},
|
|
71
71
|
"width": {
|
|
72
|
-
"type": "
|
|
72
|
+
"type": "any",
|
|
73
73
|
"mutable": false,
|
|
74
74
|
"complexType": {
|
|
75
|
-
"original": "number",
|
|
76
|
-
"resolved": "number",
|
|
75
|
+
"original": "number | string",
|
|
76
|
+
"resolved": "number | string",
|
|
77
77
|
"references": {}
|
|
78
78
|
},
|
|
79
79
|
"required": false,
|
|
@@ -59,10 +59,8 @@
|
|
|
59
59
|
outline: none;
|
|
60
60
|
|
|
61
61
|
/*public*/
|
|
62
|
-
box-shadow: var(--ez-grid__container--shadow);
|
|
63
62
|
background-color: var(--ez-grid__header--background-color);
|
|
64
|
-
border: var(--border--
|
|
65
|
-
border-radius: var(--border--radius-small);
|
|
63
|
+
border-radius: var(--border--radius-12, 12px) var(--border--radius-12, 12px) 0 0;
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.grid__container.no-scroll{
|
|
@@ -142,30 +140,10 @@
|
|
|
142
140
|
padding: 0;
|
|
143
141
|
}
|
|
144
142
|
|
|
145
|
-
.grid-header__pagination{
|
|
146
|
-
justify-content: flex-end;
|
|
147
|
-
flex-wrap: nowrap;
|
|
148
|
-
flex-shrink: 1;
|
|
149
|
-
flex-grow: 1;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.grid-header__pagination-label {
|
|
153
|
-
width: 100%;
|
|
154
|
-
white-space: nowrap
|
|
155
|
-
}
|
|
156
|
-
|
|
157
143
|
.overflowed {
|
|
158
144
|
display: none;
|
|
159
145
|
}
|
|
160
146
|
|
|
161
|
-
.pagination-contracted {
|
|
162
|
-
width: 100px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.pagination-expanded{
|
|
166
|
-
min-width: 150px;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
147
|
.left__header-contracted {
|
|
170
148
|
width: auto;
|
|
171
149
|
}
|
|
@@ -176,41 +154,4 @@
|
|
|
176
154
|
|
|
177
155
|
.grid__footer{
|
|
178
156
|
background-color: var(--background--xlight, #FFF);
|
|
179
|
-
border-radius: 0 0 var(--border--radius-medium) var(--border--radius-medium);
|
|
180
|
-
box-shadow: var(--shadow--small);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.cancel-pagination{
|
|
184
|
-
display: flex;
|
|
185
|
-
flex-direction: row;
|
|
186
|
-
align-items: center;
|
|
187
|
-
justify-content: space-between;
|
|
188
|
-
gap: 4px;
|
|
189
|
-
padding: 8px;
|
|
190
|
-
width: 180px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.cancel-pagination-btn{
|
|
194
|
-
color: var(--color--error);
|
|
195
|
-
font-size: var(--text--medium);
|
|
196
|
-
font-weight: var(--text-weight--large);
|
|
197
|
-
font-family: var(--font-pattern, Roboto);
|
|
198
|
-
text-wrap: nowrap;
|
|
199
|
-
cursor: pointer;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.spin {
|
|
203
|
-
animation-name: spin;
|
|
204
|
-
animation-duration: 5000ms;
|
|
205
|
-
animation-iteration-count: infinite;
|
|
206
|
-
animation-timing-function: linear;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
@keyframes spin {
|
|
210
|
-
from {
|
|
211
|
-
transform:rotate(0deg);
|
|
212
|
-
}
|
|
213
|
-
to {
|
|
214
|
-
transform:rotate(360deg);
|
|
215
|
-
}
|
|
216
157
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementIDUtils, JSUtils,
|
|
1
|
+
import { ElementIDUtils, JSUtils, StringUtils, ApplicationContext, KeyboardManager, } from '@sankhyalabs/core';
|
|
2
2
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
3
3
|
import { Host, h } from '@stencil/core';
|
|
4
4
|
import { ApplicationUtils, buildFieldSearch } from '../../utils';
|
|
@@ -50,6 +50,7 @@ export class EzGrid {
|
|
|
50
50
|
this.useSearchColumn = true;
|
|
51
51
|
this.suppressHorizontalScroll = false;
|
|
52
52
|
this.mode = "complete";
|
|
53
|
+
this.hidePagination = false;
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* Aplica a definição de colunas.
|
|
@@ -199,26 +200,17 @@ export class EzGrid {
|
|
|
199
200
|
return;
|
|
200
201
|
this._gridController.stopEdit();
|
|
201
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Manipula a mudança de página da grid.
|
|
205
|
+
*/
|
|
206
|
+
async handlePageChange() {
|
|
207
|
+
this.resetPaginationState();
|
|
208
|
+
this._gridController.setFocusFirstRow();
|
|
209
|
+
this.ezPageChangedChanged.emit();
|
|
210
|
+
}
|
|
202
211
|
observeConfig(config) {
|
|
203
212
|
this._gridController.setColumnsState(config === null || config === void 0 ? void 0 : config.columns);
|
|
204
213
|
}
|
|
205
|
-
updatePaginationTooltip() {
|
|
206
|
-
this.handleShowCancelPagination();
|
|
207
|
-
if (!this._refPaginationLabelTooltip)
|
|
208
|
-
return;
|
|
209
|
-
const alreadyDefined = this._refPaginationLabelTooltip.getAttribute('data-tooltip');
|
|
210
|
-
if (alreadyDefined) {
|
|
211
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
observePaginationCounterMode(newValue) {
|
|
215
|
-
if (newValue === 'hidden') {
|
|
216
|
-
this._hidePaginationDescription();
|
|
217
|
-
}
|
|
218
|
-
if (newValue === 'show') {
|
|
219
|
-
this._showPaginationDescription();
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
214
|
async observeModeChange(newMode = this.mode) {
|
|
223
215
|
if (newMode === "simple") {
|
|
224
216
|
this.canEdit = false;
|
|
@@ -381,23 +373,6 @@ export class EzGrid {
|
|
|
381
373
|
ElementIDUtils.addIDInfo(this._refPaginationControl, 'pagination', dtInfo);
|
|
382
374
|
}
|
|
383
375
|
}
|
|
384
|
-
handlePageChange() {
|
|
385
|
-
this.resetPaginationState();
|
|
386
|
-
this._gridController.setFocusFirstRow();
|
|
387
|
-
this.ezPageChangedChanged.emit();
|
|
388
|
-
}
|
|
389
|
-
previousPage() {
|
|
390
|
-
if (this.dataUnit) {
|
|
391
|
-
this.dataUnit.previousPage()
|
|
392
|
-
.then(() => this.handlePageChange());
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
nextPage() {
|
|
396
|
-
if (this.dataUnit) {
|
|
397
|
-
this.dataUnit.nextPage()
|
|
398
|
-
.then(() => this.handlePageChange());
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
376
|
nextRecord() {
|
|
402
377
|
if (this.dataUnit) {
|
|
403
378
|
if (this.dataUnit.getSelectionInfo().records.length === 0) {
|
|
@@ -417,38 +392,6 @@ export class EzGrid {
|
|
|
417
392
|
this._paginationChangedByKeyboard = false;
|
|
418
393
|
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.resetPaginationState();
|
|
419
394
|
}
|
|
420
|
-
resolvePaginationClassMode() {
|
|
421
|
-
if (this.shouldPresentPaginationLabel())
|
|
422
|
-
return "pagination-expanded";
|
|
423
|
-
return "pagination-contracted";
|
|
424
|
-
}
|
|
425
|
-
async handleCancelPagination() {
|
|
426
|
-
var _a;
|
|
427
|
-
this.dataUnit.cancelPagination = true;
|
|
428
|
-
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
429
|
-
}
|
|
430
|
-
renderCancelPagination() {
|
|
431
|
-
return (h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, h("div", { class: 'cancel-pagination' }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, this.i18n("ez-grid.cancelPagination")))));
|
|
432
|
-
}
|
|
433
|
-
handleShowCancelPagination() {
|
|
434
|
-
var _a, _b, _c;
|
|
435
|
-
if (!this._hasToShowCancelPagination()) {
|
|
436
|
-
(_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
if ((_b = this._cancelPaginationPopoverElement) === null || _b === void 0 ? void 0 : _b.opened)
|
|
440
|
-
return;
|
|
441
|
-
(_c = this._cancelPaginationPopoverElement) === null || _c === void 0 ? void 0 : _c.show("15px");
|
|
442
|
-
}
|
|
443
|
-
getPaginationControl() {
|
|
444
|
-
if (!this._paginationInfo)
|
|
445
|
-
return null;
|
|
446
|
-
const { currentPage, hasMore } = this._paginationInfo;
|
|
447
|
-
return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: this.i18n("ez-grid.previousPage") }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: this.i18n("ez-grid.nextPage") }))));
|
|
448
|
-
}
|
|
449
|
-
shouldPresentPaginationLabel() {
|
|
450
|
-
return this.paginationCounterMode === 'show' || this.paginationCounterMode === 'auto';
|
|
451
|
-
}
|
|
452
395
|
componentDidLoad() {
|
|
453
396
|
const _application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
454
397
|
this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
|
|
@@ -513,76 +456,9 @@ export class EzGrid {
|
|
|
513
456
|
}
|
|
514
457
|
this._paginationInfo = paginationInfo;
|
|
515
458
|
}
|
|
516
|
-
_getActualPageLabel() {
|
|
517
|
-
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
518
|
-
return `${firstRecord}-${lastRecord}`;
|
|
519
|
-
}
|
|
520
|
-
_getRemainingPageLabel() {
|
|
521
|
-
const { total, count } = this._paginationInfo;
|
|
522
|
-
return `${total == undefined ? this.i18n("ez-grid.remainingPageLabel", { count: count + 1 }) : this.i18n("ez-grid.remainingTotalLabel", { total })}`;
|
|
523
|
-
}
|
|
524
|
-
_hasToShowCancelPagination() {
|
|
525
|
-
var _a;
|
|
526
|
-
const { total, count } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
|
|
527
|
-
const hasMore = (total === undefined);
|
|
528
|
-
return !this.dataUnit.cancelPagination && hasMore && count > this.dataUnit.pageSize;
|
|
529
|
-
}
|
|
530
|
-
_getPaginationTooltip() {
|
|
531
|
-
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
532
|
-
}
|
|
533
|
-
_initHeaderOverflowWatcher() {
|
|
534
|
-
var _a;
|
|
535
|
-
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
536
|
-
if (this._refPaginationControl)
|
|
537
|
-
this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
538
|
-
}
|
|
539
|
-
buildOverFlowWatcherParams() {
|
|
540
|
-
return {
|
|
541
|
-
element: this._refPaginationControl,
|
|
542
|
-
callback: this.handleOverFlow.bind(this),
|
|
543
|
-
notOverFlow: ["grid-pagination-tooltip"]
|
|
544
|
-
};
|
|
545
|
-
}
|
|
546
|
-
handleOverFlow() {
|
|
547
|
-
if (!this._refPaginationLabel || !this._refPaginationControl)
|
|
548
|
-
return;
|
|
549
|
-
const controlWidth = this._refPaginationControl.clientWidth;
|
|
550
|
-
const labelWidth = this._refPaginationLabel.scrollWidth;
|
|
551
|
-
const buttonsElement = this._refPaginationControl.querySelector('#grid-pagination-tooltip');
|
|
552
|
-
const buttonsWidth = (buttonsElement === null || buttonsElement === void 0 ? void 0 : buttonsElement.clientWidth) || 0;
|
|
553
|
-
const totalMargins = this._getElementMargins(this._refPaginationLabel) + (buttonsElement ? this._getElementMargins(buttonsElement) : 0);
|
|
554
|
-
const paginationWidthWithoutDescription = labelWidth + buttonsWidth + totalMargins;
|
|
555
|
-
const paginationWidthWithDescription = paginationWidthWithoutDescription + this._getPaginationDescriptionWidth();
|
|
556
|
-
if (controlWidth > paginationWidthWithDescription) {
|
|
557
|
-
this._showPaginationDescription();
|
|
558
|
-
}
|
|
559
|
-
else if (controlWidth <= paginationWidthWithoutDescription) {
|
|
560
|
-
this._hidePaginationDescription();
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
_getPaginationDescriptionWidth() {
|
|
564
|
-
var _a;
|
|
565
|
-
return ((_a = this._refPaginationLabelTooltip) === null || _a === void 0 ? void 0 : _a.scrollWidth) || 0;
|
|
566
|
-
}
|
|
567
|
-
_getElementMargins(element) {
|
|
568
|
-
const style = getComputedStyle(element);
|
|
569
|
-
return parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
570
|
-
}
|
|
571
|
-
_hidePaginationDescription() {
|
|
572
|
-
this._refPaginationLabel.classList.add(OVERFLOWED_CLASS_NAME);
|
|
573
|
-
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
574
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
575
|
-
}
|
|
576
|
-
;
|
|
577
|
-
_showPaginationDescription() {
|
|
578
|
-
this._refPaginationLabel.classList.remove(OVERFLOWED_CLASS_NAME);
|
|
579
|
-
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
580
|
-
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
581
|
-
}
|
|
582
459
|
disconnectedCallback() {
|
|
583
|
-
var _a
|
|
584
|
-
(_a = this.
|
|
585
|
-
(_b = this._gridController) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
460
|
+
var _a;
|
|
461
|
+
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
586
462
|
this.removeShortcuts();
|
|
587
463
|
}
|
|
588
464
|
connectedCallback() {
|
|
@@ -611,8 +487,6 @@ export class EzGrid {
|
|
|
611
487
|
if (this.dataUnit && this._showSelectionCounter) {
|
|
612
488
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
613
489
|
}
|
|
614
|
-
if (this.paginationCounterMode === 'auto')
|
|
615
|
-
this._initHeaderOverflowWatcher();
|
|
616
490
|
}
|
|
617
491
|
getDataSource() {
|
|
618
492
|
if (!this.columnfilterDataSource) {
|
|
@@ -624,7 +498,7 @@ export class EzGrid {
|
|
|
624
498
|
if (this.mode === "simple") {
|
|
625
499
|
return true;
|
|
626
500
|
}
|
|
627
|
-
return !this._hasLeftButtons
|
|
501
|
+
return !this._hasLeftButtons;
|
|
628
502
|
}
|
|
629
503
|
resolveLeftHeaderClass() {
|
|
630
504
|
if (this.paginationCounterMode == 'show')
|
|
@@ -649,7 +523,7 @@ export class EzGrid {
|
|
|
649
523
|
return;
|
|
650
524
|
const { currentPage } = this._paginationInfo;
|
|
651
525
|
if (currentPage > 0) {
|
|
652
|
-
this.previousPage();
|
|
526
|
+
this._refGridPagination.previousPage();
|
|
653
527
|
}
|
|
654
528
|
}, { description: this.i18n("ez-grid.previousPage"), element: this._element })
|
|
655
529
|
.bind("ctrl + alt + ArrowRight", () => {
|
|
@@ -657,7 +531,7 @@ export class EzGrid {
|
|
|
657
531
|
return;
|
|
658
532
|
const { hasMore } = this._paginationInfo;
|
|
659
533
|
if (hasMore) {
|
|
660
|
-
this.nextPage();
|
|
534
|
+
this._refGridPagination.nextPage();
|
|
661
535
|
}
|
|
662
536
|
}, { description: this.i18n("ez-grid.nextPage"), element: this._element });
|
|
663
537
|
if (this.useSearchColumn) {
|
|
@@ -710,9 +584,9 @@ export class EzGrid {
|
|
|
710
584
|
'ez-box ez-padding--small grid-header': true,
|
|
711
585
|
'outline-mode': this.outlineMode,
|
|
712
586
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
713
|
-
}, tabindex: "0" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" }))
|
|
587
|
+
}, tabindex: "0" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })))), h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
714
588
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
715
|
-
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, i18n: this.i18n, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
589
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, i18n: this.i18n, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, (this.mode !== "simple" && !this.hidePagination) && (h("ez-grid-pagination", { class: `ez-flex ez-flex--content-end`, ref: ref => (this._refGridPagination = ref), dataUnit: this.dataUnit, paginationCounterMode: this.paginationCounterMode, onPageChange: () => this.handlePageChange() })), h("slot", { name: "footer" }))));
|
|
716
590
|
}
|
|
717
591
|
static get is() { return "ez-grid"; }
|
|
718
592
|
static get encapsulation() { return "scoped"; }
|
|
@@ -989,7 +863,7 @@ export class EzGrid {
|
|
|
989
863
|
"optional": true,
|
|
990
864
|
"docs": {
|
|
991
865
|
"tags": [],
|
|
992
|
-
"text": "Define
|
|
866
|
+
"text": "Define a forma como a pagina\u00E7\u00E3o ir\u00E1 se comportar."
|
|
993
867
|
},
|
|
994
868
|
"attribute": "pagination-counter-mode",
|
|
995
869
|
"reflect": false,
|
|
@@ -1179,6 +1053,24 @@ export class EzGrid {
|
|
|
1179
1053
|
"attribute": "mode",
|
|
1180
1054
|
"reflect": true,
|
|
1181
1055
|
"defaultValue": "\"complete\""
|
|
1056
|
+
},
|
|
1057
|
+
"hidePagination": {
|
|
1058
|
+
"type": "boolean",
|
|
1059
|
+
"mutable": false,
|
|
1060
|
+
"complexType": {
|
|
1061
|
+
"original": "boolean",
|
|
1062
|
+
"resolved": "boolean",
|
|
1063
|
+
"references": {}
|
|
1064
|
+
},
|
|
1065
|
+
"required": false,
|
|
1066
|
+
"optional": false,
|
|
1067
|
+
"docs": {
|
|
1068
|
+
"tags": [],
|
|
1069
|
+
"text": "Esconder pagina\u00E7\u00E3o."
|
|
1070
|
+
},
|
|
1071
|
+
"attribute": "hide-pagination",
|
|
1072
|
+
"reflect": false,
|
|
1073
|
+
"defaultValue": "false"
|
|
1182
1074
|
}
|
|
1183
1075
|
};
|
|
1184
1076
|
}
|
|
@@ -1801,6 +1693,22 @@ export class EzGrid {
|
|
|
1801
1693
|
"text": "",
|
|
1802
1694
|
"tags": []
|
|
1803
1695
|
}
|
|
1696
|
+
},
|
|
1697
|
+
"handlePageChange": {
|
|
1698
|
+
"complexType": {
|
|
1699
|
+
"signature": "() => Promise<void>",
|
|
1700
|
+
"parameters": [],
|
|
1701
|
+
"references": {
|
|
1702
|
+
"Promise": {
|
|
1703
|
+
"location": "global"
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
"return": "Promise<void>"
|
|
1707
|
+
},
|
|
1708
|
+
"docs": {
|
|
1709
|
+
"text": "Manipula a mudan\u00E7a de p\u00E1gina da grid.",
|
|
1710
|
+
"tags": []
|
|
1711
|
+
}
|
|
1804
1712
|
}
|
|
1805
1713
|
};
|
|
1806
1714
|
}
|
|
@@ -1809,12 +1717,6 @@ export class EzGrid {
|
|
|
1809
1717
|
return [{
|
|
1810
1718
|
"propName": "config",
|
|
1811
1719
|
"methodName": "observeConfig"
|
|
1812
|
-
}, {
|
|
1813
|
-
"propName": "_paginationInfo",
|
|
1814
|
-
"methodName": "updatePaginationTooltip"
|
|
1815
|
-
}, {
|
|
1816
|
-
"propName": "paginationCounterMode",
|
|
1817
|
-
"methodName": "observePaginationCounterMode"
|
|
1818
1720
|
}, {
|
|
1819
1721
|
"propName": "mode",
|
|
1820
1722
|
"methodName": "observeModeChange"
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.pagination__container {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-grow: 1;
|
|
9
|
+
flex-shrink: 1;
|
|
10
|
+
flex-wrap: nowrap;
|
|
11
|
+
justify-content: flex-end;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.pagination__buttons-container {
|
|
15
|
+
display: flex;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
background-color: var(--color--ocean-green-90, #E1E2E5);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.pagination__buttons-container ez-icon {
|
|
22
|
+
--ez-icon--color: var(--color--ocean-green-600, #008561);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pagination__buttons-container.disabled {
|
|
26
|
+
background-color: #DEDEDE;
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
pointer-events: auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pagination__buttons-container.disabled ez-icon {
|
|
32
|
+
--ez-icon--color: var(--color--petroleum-300, #848D9C);
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
.pagination__page-navigator {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.pagination__row-summary-panel {
|
|
41
|
+
font-size: var(--font-size--default, 14px);
|
|
42
|
+
font-family: var(--font--pattern, 'Roboto');
|
|
43
|
+
color: var(--color--petroleum-300, #848D9C);
|
|
44
|
+
font-weight: var(--font-weight--regular, 400);
|
|
45
|
+
padding: var(--space--8, 8px) var(--space--16, 16px);
|
|
46
|
+
}
|
|
47
|
+
.pagination__page-summary-panel {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
padding: var(--space--8, 8px) var(--space--16, 16px);
|
|
51
|
+
gap: var(--space--4, 4px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pagination__container-label {
|
|
55
|
+
margin: 0 var(--space--8, 8px);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pagination-contracted {
|
|
59
|
+
width: 100px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pagination-expanded {
|
|
63
|
+
min-width: 150px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.pagination__label {
|
|
67
|
+
font-family: var(--font--pattern, 'Roboto');
|
|
68
|
+
color: var(--color--petroleum-300, #848D9C);
|
|
69
|
+
font-weight: var(--font-weight--regular, 400);
|
|
70
|
+
width: 100%;
|
|
71
|
+
white-space: nowrap
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cancel-pagination {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: row;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
gap: var(--space--4, 4px);
|
|
80
|
+
padding: var(--space--8, 8px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.spin {
|
|
84
|
+
animation-name: spin;
|
|
85
|
+
animation-duration: 5000ms;
|
|
86
|
+
animation-iteration-count: infinite;
|
|
87
|
+
animation-timing-function: linear;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes spin {
|
|
91
|
+
from {
|
|
92
|
+
transform: rotate(0deg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
to {
|
|
96
|
+
transform: rotate(360deg);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.cancel-pagination-btn {
|
|
101
|
+
color: var(--color--red-600, #BD0025);
|
|
102
|
+
font-size: var(--font-size--medium, 16px);
|
|
103
|
+
font-weight: var(--font-weight--semi-bold, 600);
|
|
104
|
+
font-family: var(--font--pattern, 'Roboto');
|
|
105
|
+
text-wrap: nowrap;
|
|
106
|
+
cursor: pointer;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.pagination-text-right {
|
|
110
|
+
flex-direction: row-reverse;
|
|
111
|
+
}
|