@sankhyalabs/ezui 7.2.0-dev.1 → 7.2.0-dev.11
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-88dfe345.js} +1 -1
- package/dist/cjs/{app-globals-5cb12916.js → app-globals-c1d07d68.js} +1 -1
- package/dist/cjs/classic-search-list_7.cjs.entry.js +9 -4
- 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 +26 -13
- 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 +85 -166
- 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 -2
- 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 +13 -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 +99 -114
- 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-350d0fa0.js → index-9739c242.js} +91 -30
- package/dist/cjs/index-a7b0c73d.js +8 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-fbf680d7.js → search-column-9612bd3a.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 +26 -11
- 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/controller/ag-grid/AgGridController.js +43 -18
- package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
- 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/utils/index.js +1 -0
- 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-image-input/ez-image-input.css +24 -8
- package/dist/collection/components/ez-image-input/ez-image-input.js +6 -1
- package/dist/collection/components/ez-popup/ez-popup.js +0 -1
- 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 +11 -2
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.css +1 -1
- 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 +27 -4
- package/dist/collection/utils/i18n/locales/es-es.js +27 -4
- package/dist/collection/utils/i18n/locales/pt-br.js +27 -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 +904 -464
- package/dist/esm/{ApplicationUtils-0c5cb207.js → ApplicationUtils-f7721533.js} +1 -1
- package/dist/esm/{app-globals-1db10325.js → app-globals-6e258867.js} +1 -1
- package/dist/esm/classic-search-list_7.entry.js +9 -4
- 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 +26 -13
- 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 +86 -167
- 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 -2
- 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 +13 -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 +99 -114
- 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-9e6dab5b.js} +91 -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-dba4853a.js} +4 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0592535f.entry.js +1 -0
- package/dist/ezui/{p-544605c4.entry.js → p-063bb342.entry.js} +1 -1
- package/dist/ezui/{p-c56ee8c0.entry.js → p-0ac8bd66.entry.js} +1 -1
- package/dist/ezui/p-0d80e3ec.entry.js +1 -0
- package/dist/ezui/{p-729bd1be.entry.js → p-108503ed.entry.js} +1 -1
- package/dist/ezui/{p-e3cd5080.entry.js → p-1166b2d5.entry.js} +1 -1
- package/dist/ezui/p-15873627.js +1 -0
- 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-2856c545.entry.js +1 -0
- package/dist/ezui/{p-df802548.entry.js → p-2ae127bc.entry.js} +1 -1
- package/dist/ezui/{p-556bf329.entry.js → p-2ebd7383.entry.js} +1 -1
- package/dist/ezui/{p-b36475f9.entry.js → p-30c5f48a.entry.js} +1 -1
- package/dist/ezui/p-312bd3c6.entry.js +1 -0
- package/dist/ezui/{p-62c149cb.entry.js → p-3fae7072.entry.js} +1 -1
- package/dist/ezui/p-42e1e733.js +1 -0
- package/dist/ezui/{p-4e869617.entry.js → p-45245c32.entry.js} +1 -1
- package/dist/ezui/{p-a872c642.entry.js → p-46b1b2ac.entry.js} +1 -1
- package/dist/ezui/{p-5abb220b.entry.js → p-54af1af0.entry.js} +1 -1
- package/dist/ezui/{p-a4351519.entry.js → p-66455069.entry.js} +1 -1
- package/dist/ezui/p-72e77b45.entry.js +1 -0
- package/dist/ezui/{p-7edc3ef7.entry.js → p-73461028.entry.js} +1 -1
- package/dist/ezui/{p-f5552540.entry.js → p-7424d520.entry.js} +1 -1
- package/dist/ezui/{p-b705b342.entry.js → p-7a07c50f.entry.js} +1 -1
- package/dist/ezui/p-7b078125.entry.js +1 -0
- package/dist/ezui/{p-d5dc6b01.entry.js → p-7dad8018.entry.js} +1 -1
- package/dist/ezui/{p-6a794336.js → p-83bddbbb.js} +1 -1
- package/dist/ezui/{p-b0a716ef.entry.js → p-881abc22.entry.js} +1 -1
- package/dist/ezui/{p-7134726a.entry.js → p-99556756.entry.js} +1 -1
- package/dist/ezui/{p-7953ecb9.entry.js → p-9bd3e28b.entry.js} +1 -1
- package/dist/ezui/{p-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
- package/dist/ezui/{p-351fb12f.entry.js → p-a4735a12.entry.js} +1 -1
- package/dist/ezui/{p-9825c1d2.js → p-ad5e263d.js} +1 -1
- package/dist/ezui/{p-26cd4c2e.entry.js → p-b06294c9.entry.js} +1 -1
- package/dist/ezui/{p-e493ad57.entry.js → p-b493757c.entry.js} +1 -1
- package/dist/ezui/{p-2da9faf1.entry.js → p-b8cd501a.entry.js} +1 -1
- package/dist/ezui/p-b986da95.entry.js +7 -0
- package/dist/ezui/{p-4c2a4435.entry.js → p-c25a4d30.entry.js} +1 -1
- package/dist/ezui/{p-4f7ad3ee.entry.js → p-c37fb359.entry.js} +1 -1
- package/dist/ezui/{p-e2972977.entry.js → p-cb00863d.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-e3a42f47.entry.js → p-d5684cdc.entry.js} +1 -1
- package/dist/ezui/{p-6ac056d7.entry.js → p-d70805e4.entry.js} +1 -1
- package/dist/ezui/{p-a3bad8f8.entry.js → p-d75f583b.entry.js} +1 -1
- package/dist/ezui/p-d8b69419.entry.js +1 -0
- package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
- package/dist/ezui/{p-5a74d132.entry.js → p-dfda027e.entry.js} +46 -46
- package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
- package/dist/ezui/{p-4c76b365.entry.js → p-e692c2a7.entry.js} +1 -1
- package/dist/ezui/{p-8e5f1c74.entry.js → p-e8cd003b.entry.js} +1 -1
- package/dist/ezui/p-ed790867.entry.js +1 -0
- package/dist/ezui/p-f2e0acf5.entry.js +1 -0
- package/dist/ezui/{p-34d459e4.entry.js → p-f498f6b5.entry.js} +1 -1
- package/dist/ezui/{p-4af745e1.entry.js → p-fb27b98d.entry.js} +1 -1
- package/dist/ezui/{p-987185c4.entry.js → p-fc11f5b9.entry.js} +1 -1
- package/dist/ezui/{p-ef8bd3e8.entry.js → p-fc72aeb8.entry.js} +1 -1
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
- package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
- package/dist/types/components/ez-grid-pagination/ez-grid-pagination.d.ts +75 -0
- package/dist/types/components/ez-image-input/ez-image-input.d.ts +1 -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/ez-search-plus/ez-search-plus.d.ts +1 -0
- package/dist/types/components.d.ts +154 -6
- package/dist/types/utils/i18n/locales/en-us.d.ts +26 -3
- package/dist/types/utils/i18n/locales/es-es.d.ts +26 -3
- package/dist/types/utils/i18n/locales/pt-br.d.ts +26 -3
- package/dist/types/utils/i18n/translations.d.ts +78 -9
- package/package.json +5 -5
- 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-b8078832.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-ce0a0036.entry.js +0 -7
- package/dist/ezui/p-d2645bdf.entry.js +0 -1
- package/dist/ezui/p-ff4312d5.js +0 -1
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
8
|
-
const ApplicationUtils = require('./ApplicationUtils-
|
|
8
|
+
const ApplicationUtils = require('./ApplicationUtils-88dfe345.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
|
-
const index = require('./index-
|
|
11
|
+
const index = require('./index-9739c242.js');
|
|
12
12
|
const types = require('./types-6a5df0c7.js');
|
|
13
13
|
require('./FormLayout-fe8da83c.js');
|
|
14
|
-
const searchColumn = require('./search-column-
|
|
14
|
+
const searchColumn = require('./search-column-9612bd3a.js');
|
|
15
15
|
const constants = require('./constants-72b7e05e.js');
|
|
16
16
|
const FocusResolver = require('./FocusResolver-885f2173.js');
|
|
17
17
|
const purify = require('./purify-b30a5718.js');
|
|
@@ -64867,6 +64867,29 @@ function resolveAggFunc(aggFunc) {
|
|
|
64867
64867
|
return fn;
|
|
64868
64868
|
}
|
|
64869
64869
|
|
|
64870
|
+
/**
|
|
64871
|
+
* Larguras padrão das colunas do grid por tipo de UserInterface
|
|
64872
|
+
*/
|
|
64873
|
+
const GRID_COLUMN_DEFAULT_WIDTHS = {
|
|
64874
|
+
[core.UserInterface.SEARCH]: 200,
|
|
64875
|
+
[core.UserInterface.SEARCHPLUS]: 100,
|
|
64876
|
+
[core.UserInterface.DATE]: 120,
|
|
64877
|
+
[core.UserInterface.DATETIME]: 160,
|
|
64878
|
+
[core.UserInterface.TIME]: 100,
|
|
64879
|
+
[core.UserInterface.ELAPSEDTIME]: 100,
|
|
64880
|
+
[core.UserInterface.DECIMALNUMBER]: 130,
|
|
64881
|
+
[core.UserInterface.INTEGERNUMBER]: 120,
|
|
64882
|
+
[core.UserInterface.SWITCH]: 80,
|
|
64883
|
+
[core.UserInterface.FILE]: 100,
|
|
64884
|
+
[core.UserInterface.HTML]: 200,
|
|
64885
|
+
[core.UserInterface.LONGTEXT]: 200,
|
|
64886
|
+
[core.UserInterface.CHECKBOX]: 80,
|
|
64887
|
+
[core.UserInterface.OPTIONSELECTOR]: 100,
|
|
64888
|
+
[core.UserInterface.SHORTTEXT]: 200,
|
|
64889
|
+
[core.UserInterface.PASSWORD]: 100,
|
|
64890
|
+
[core.UserInterface.MASKEDTEXT]: 100,
|
|
64891
|
+
};
|
|
64892
|
+
|
|
64870
64893
|
class AgGridController {
|
|
64871
64894
|
configFilterColumn(filterColumn) {
|
|
64872
64895
|
this._filterColumn = filterColumn;
|
|
@@ -64895,10 +64918,11 @@ class AgGridController {
|
|
|
64895
64918
|
this.COLUMN_FOOTER_OPER = 'gridFooterOper';
|
|
64896
64919
|
this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
|
|
64897
64920
|
this.BLOCK_LOAD_DEBOUNCE = 100;
|
|
64898
|
-
this.DEFAULT_FONT_SIZE =
|
|
64921
|
+
this.DEFAULT_FONT_SIZE = 8;
|
|
64899
64922
|
this.DEFAULT_FONT_SIZE_HTML5 = 32;
|
|
64900
64923
|
this.DEFAULT_ICON_SIZE = 12;
|
|
64901
64924
|
this.DEFAULT_MAX_SIZE = 200;
|
|
64925
|
+
this.MULTI_VALUES_PROP = '__multiValues';
|
|
64902
64926
|
this._menuItems = [];
|
|
64903
64927
|
this._idAttribName = '__record__id__';
|
|
64904
64928
|
this._gridConfig = [];
|
|
@@ -64977,21 +65001,24 @@ class AgGridController {
|
|
|
64977
65001
|
const params = [];
|
|
64978
65002
|
let isNullIncluded;
|
|
64979
65003
|
checkedOptions.forEach(option => {
|
|
64980
|
-
const
|
|
64981
|
-
|
|
64982
|
-
|
|
64983
|
-
|
|
64984
|
-
|
|
64985
|
-
|
|
64986
|
-
|
|
64987
|
-
|
|
64988
|
-
|
|
64989
|
-
|
|
64990
|
-
if (placeholders.length > 0) {
|
|
64991
|
-
placeholders = placeholders + ',';
|
|
65004
|
+
const optionValues = this.resolveColumnFilterValues(option);
|
|
65005
|
+
optionValues.forEach(value => {
|
|
65006
|
+
const paramName = `PARAM_${column}_${params.length + 1}`;
|
|
65007
|
+
params.push({
|
|
65008
|
+
dataType: dataType === core.DataType.OBJECT ? core.DataType.TEXT : dataType,
|
|
65009
|
+
name: paramName,
|
|
65010
|
+
value,
|
|
65011
|
+
});
|
|
65012
|
+
if (value == undefined) {
|
|
65013
|
+
isNullIncluded = true;
|
|
64992
65014
|
}
|
|
64993
|
-
|
|
64994
|
-
|
|
65015
|
+
else {
|
|
65016
|
+
if (placeholders.length > 0) {
|
|
65017
|
+
placeholders = placeholders + ',';
|
|
65018
|
+
}
|
|
65019
|
+
placeholders = `${placeholders}:${paramName}`;
|
|
65020
|
+
}
|
|
65021
|
+
});
|
|
64995
65022
|
});
|
|
64996
65023
|
return {
|
|
64997
65024
|
name: `${constants.DISTINCT_FILTER_NAME_PREFIX}${column}`,
|
|
@@ -65013,6 +65040,13 @@ class AgGridController {
|
|
|
65013
65040
|
}
|
|
65014
65041
|
return `${columnExpression} in (${placeholders})`;
|
|
65015
65042
|
}
|
|
65043
|
+
resolveColumnFilterValues(option) {
|
|
65044
|
+
const multiValues = option === null || option === void 0 ? void 0 : option[this.MULTI_VALUES_PROP];
|
|
65045
|
+
if (Array.isArray(multiValues) && multiValues.length > 0) {
|
|
65046
|
+
return multiValues;
|
|
65047
|
+
}
|
|
65048
|
+
return [option.value];
|
|
65049
|
+
}
|
|
65016
65050
|
initDatagrid(container, options) {
|
|
65017
65051
|
var _a;
|
|
65018
65052
|
this._options = options;
|
|
@@ -65884,9 +65918,11 @@ class AgGridController {
|
|
|
65884
65918
|
tooltip = this._i18n('ez-grid.columnCantBeOrder');
|
|
65885
65919
|
}
|
|
65886
65920
|
const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(constants.PRESENTATION_FROM_COL_PROP_NAME);
|
|
65921
|
+
const initialWidth = this.getInitialColumnWidth(source.userInterface, source.label);
|
|
65887
65922
|
return this._editionManager.configureColumn({
|
|
65888
65923
|
headerName: source.label,
|
|
65889
65924
|
field: source.name,
|
|
65925
|
+
width: initialWidth,
|
|
65890
65926
|
aggFunc: this.getAggFunc(source),
|
|
65891
65927
|
sortable: propSortable,
|
|
65892
65928
|
resizable: true,
|
|
@@ -66232,10 +66268,21 @@ class AgGridController {
|
|
|
66232
66268
|
}
|
|
66233
66269
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
66234
66270
|
const label = (_b = field === null || field === void 0 ? void 0 : field.label) !== null && _b !== void 0 ? _b : (_f = (_e = (_d = (_c = this._gridOptions) === null || _c === void 0 ? void 0 : _c.columnApi) === null || _d === void 0 ? void 0 : _d.getColumn(cfgColumn.name)) === null || _e === void 0 ? void 0 : _e.getColDef()) === null || _f === void 0 ? void 0 : _f.headerName;
|
|
66235
|
-
|
|
66236
|
-
|
|
66271
|
+
return this.getInitialColumnWidth(field === null || field === void 0 ? void 0 : field.userInterface, label);
|
|
66272
|
+
}
|
|
66273
|
+
getInitialColumnWidth(userInterface, label) {
|
|
66274
|
+
const columnWidthByLabel = this.getColumnWidthByLabel(label);
|
|
66275
|
+
const defaultWidth = this.getDefaultWidthByUserInterface(userInterface);
|
|
66276
|
+
if (!defaultWidth) {
|
|
66277
|
+
return columnWidthByLabel;
|
|
66278
|
+
}
|
|
66279
|
+
return Math.max(defaultWidth, columnWidthByLabel);
|
|
66280
|
+
}
|
|
66281
|
+
getDefaultWidthByUserInterface(userInterface) {
|
|
66282
|
+
if (!userInterface) {
|
|
66283
|
+
return undefined;
|
|
66237
66284
|
}
|
|
66238
|
-
return
|
|
66285
|
+
return GRID_COLUMN_DEFAULT_WIDTHS[userInterface];
|
|
66239
66286
|
}
|
|
66240
66287
|
getColumnWidthByLabel(label) {
|
|
66241
66288
|
const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
|
|
@@ -66429,7 +66476,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
66429
66476
|
}
|
|
66430
66477
|
}
|
|
66431
66478
|
|
|
66432
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;
|
|
66479
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;background-color:var(--ez-grid__header--background-color);border-radius:var(--border--radius-12, 12px) var(--border--radius-12, 12px) 0 0}.grid__container.no-scroll.sc-ez-grid{width:100vw}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.overflowed.sc-ez-grid{display:none}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF)}";
|
|
66433
66480
|
|
|
66434
66481
|
const windowInstace = window;
|
|
66435
66482
|
const matches = (text, filter) => {
|
|
@@ -66482,6 +66529,7 @@ const EzGrid = class {
|
|
|
66482
66529
|
this.useSearchColumn = true;
|
|
66483
66530
|
this.suppressHorizontalScroll = false;
|
|
66484
66531
|
this.mode = "complete";
|
|
66532
|
+
this.hidePagination = false;
|
|
66485
66533
|
}
|
|
66486
66534
|
/**
|
|
66487
66535
|
* Aplica a definição de colunas.
|
|
@@ -66631,26 +66679,17 @@ const EzGrid = class {
|
|
|
66631
66679
|
return;
|
|
66632
66680
|
this._gridController.stopEdit();
|
|
66633
66681
|
}
|
|
66682
|
+
/**
|
|
66683
|
+
* Manipula a mudança de página da grid.
|
|
66684
|
+
*/
|
|
66685
|
+
async handlePageChange() {
|
|
66686
|
+
this.resetPaginationState();
|
|
66687
|
+
this._gridController.setFocusFirstRow();
|
|
66688
|
+
this.ezPageChangedChanged.emit();
|
|
66689
|
+
}
|
|
66634
66690
|
observeConfig(config) {
|
|
66635
66691
|
this._gridController.setColumnsState(config === null || config === void 0 ? void 0 : config.columns);
|
|
66636
66692
|
}
|
|
66637
|
-
updatePaginationTooltip() {
|
|
66638
|
-
this.handleShowCancelPagination();
|
|
66639
|
-
if (!this._refPaginationLabelTooltip)
|
|
66640
|
-
return;
|
|
66641
|
-
const alreadyDefined = this._refPaginationLabelTooltip.getAttribute('data-tooltip');
|
|
66642
|
-
if (alreadyDefined) {
|
|
66643
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
66644
|
-
}
|
|
66645
|
-
}
|
|
66646
|
-
observePaginationCounterMode(newValue) {
|
|
66647
|
-
if (newValue === 'hidden') {
|
|
66648
|
-
this._hidePaginationDescription();
|
|
66649
|
-
}
|
|
66650
|
-
if (newValue === 'show') {
|
|
66651
|
-
this._showPaginationDescription();
|
|
66652
|
-
}
|
|
66653
|
-
}
|
|
66654
66693
|
async observeModeChange(newMode = this.mode) {
|
|
66655
66694
|
if (newMode === "simple") {
|
|
66656
66695
|
this.canEdit = false;
|
|
@@ -66813,23 +66852,6 @@ const EzGrid = class {
|
|
|
66813
66852
|
core.ElementIDUtils.addIDInfo(this._refPaginationControl, 'pagination', dtInfo);
|
|
66814
66853
|
}
|
|
66815
66854
|
}
|
|
66816
|
-
handlePageChange() {
|
|
66817
|
-
this.resetPaginationState();
|
|
66818
|
-
this._gridController.setFocusFirstRow();
|
|
66819
|
-
this.ezPageChangedChanged.emit();
|
|
66820
|
-
}
|
|
66821
|
-
previousPage() {
|
|
66822
|
-
if (this.dataUnit) {
|
|
66823
|
-
this.dataUnit.previousPage()
|
|
66824
|
-
.then(() => this.handlePageChange());
|
|
66825
|
-
}
|
|
66826
|
-
}
|
|
66827
|
-
nextPage() {
|
|
66828
|
-
if (this.dataUnit) {
|
|
66829
|
-
this.dataUnit.nextPage()
|
|
66830
|
-
.then(() => this.handlePageChange());
|
|
66831
|
-
}
|
|
66832
|
-
}
|
|
66833
66855
|
nextRecord() {
|
|
66834
66856
|
if (this.dataUnit) {
|
|
66835
66857
|
if (this.dataUnit.getSelectionInfo().records.length === 0) {
|
|
@@ -66849,38 +66871,6 @@ const EzGrid = class {
|
|
|
66849
66871
|
this._paginationChangedByKeyboard = false;
|
|
66850
66872
|
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.resetPaginationState();
|
|
66851
66873
|
}
|
|
66852
|
-
resolvePaginationClassMode() {
|
|
66853
|
-
if (this.shouldPresentPaginationLabel())
|
|
66854
|
-
return "pagination-expanded";
|
|
66855
|
-
return "pagination-contracted";
|
|
66856
|
-
}
|
|
66857
|
-
async handleCancelPagination() {
|
|
66858
|
-
var _a;
|
|
66859
|
-
this.dataUnit.cancelPagination = true;
|
|
66860
|
-
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
66861
|
-
}
|
|
66862
|
-
renderCancelPagination() {
|
|
66863
|
-
return (index$1.h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": 'none', autoClose: false }, index$1.h("div", { class: 'cancel-pagination' }, index$1.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index$1.h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, this.i18n("ez-grid.cancelPagination")))));
|
|
66864
|
-
}
|
|
66865
|
-
handleShowCancelPagination() {
|
|
66866
|
-
var _a, _b, _c;
|
|
66867
|
-
if (!this._hasToShowCancelPagination()) {
|
|
66868
|
-
(_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
66869
|
-
return;
|
|
66870
|
-
}
|
|
66871
|
-
if ((_b = this._cancelPaginationPopoverElement) === null || _b === void 0 ? void 0 : _b.opened)
|
|
66872
|
-
return;
|
|
66873
|
-
(_c = this._cancelPaginationPopoverElement) === null || _c === void 0 ? void 0 : _c.show("15px");
|
|
66874
|
-
}
|
|
66875
|
-
getPaginationControl() {
|
|
66876
|
-
if (!this._paginationInfo)
|
|
66877
|
-
return null;
|
|
66878
|
-
const { currentPage, hasMore } = this._paginationInfo;
|
|
66879
|
-
return (index$1.h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), index$1.h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, index$1.h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && index$1.h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), index$1.h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, index$1.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") }), index$1.h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: this.i18n("ez-grid.nextPage") }))));
|
|
66880
|
-
}
|
|
66881
|
-
shouldPresentPaginationLabel() {
|
|
66882
|
-
return this.paginationCounterMode === 'show' || this.paginationCounterMode === 'auto';
|
|
66883
|
-
}
|
|
66884
66874
|
componentDidLoad() {
|
|
66885
66875
|
const _application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
66886
66876
|
this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
|
|
@@ -66945,76 +66935,9 @@ const EzGrid = class {
|
|
|
66945
66935
|
}
|
|
66946
66936
|
this._paginationInfo = paginationInfo;
|
|
66947
66937
|
}
|
|
66948
|
-
_getActualPageLabel() {
|
|
66949
|
-
const { firstRecord, lastRecord } = this._paginationInfo;
|
|
66950
|
-
return `${firstRecord}-${lastRecord}`;
|
|
66951
|
-
}
|
|
66952
|
-
_getRemainingPageLabel() {
|
|
66953
|
-
const { total, count } = this._paginationInfo;
|
|
66954
|
-
return `${total == undefined ? this.i18n("ez-grid.remainingPageLabel", { count: count + 1 }) : this.i18n("ez-grid.remainingTotalLabel", { total })}`;
|
|
66955
|
-
}
|
|
66956
|
-
_hasToShowCancelPagination() {
|
|
66957
|
-
var _a;
|
|
66958
|
-
const { total, count } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
|
|
66959
|
-
const hasMore = (total === undefined);
|
|
66960
|
-
return !this.dataUnit.cancelPagination && hasMore && count > this.dataUnit.pageSize;
|
|
66961
|
-
}
|
|
66962
|
-
_getPaginationTooltip() {
|
|
66963
|
-
return this._getActualPageLabel() + this._getRemainingPageLabel();
|
|
66964
|
-
}
|
|
66965
|
-
_initHeaderOverflowWatcher() {
|
|
66966
|
-
var _a;
|
|
66967
|
-
(_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
66968
|
-
if (this._refPaginationControl)
|
|
66969
|
-
this._headerOverflowWatcher = new core.OverflowWatcher(this.buildOverFlowWatcherParams());
|
|
66970
|
-
}
|
|
66971
|
-
buildOverFlowWatcherParams() {
|
|
66972
|
-
return {
|
|
66973
|
-
element: this._refPaginationControl,
|
|
66974
|
-
callback: this.handleOverFlow.bind(this),
|
|
66975
|
-
notOverFlow: ["grid-pagination-tooltip"]
|
|
66976
|
-
};
|
|
66977
|
-
}
|
|
66978
|
-
handleOverFlow() {
|
|
66979
|
-
if (!this._refPaginationLabel || !this._refPaginationControl)
|
|
66980
|
-
return;
|
|
66981
|
-
const controlWidth = this._refPaginationControl.clientWidth;
|
|
66982
|
-
const labelWidth = this._refPaginationLabel.scrollWidth;
|
|
66983
|
-
const buttonsElement = this._refPaginationControl.querySelector('#grid-pagination-tooltip');
|
|
66984
|
-
const buttonsWidth = (buttonsElement === null || buttonsElement === void 0 ? void 0 : buttonsElement.clientWidth) || 0;
|
|
66985
|
-
const totalMargins = this._getElementMargins(this._refPaginationLabel) + (buttonsElement ? this._getElementMargins(buttonsElement) : 0);
|
|
66986
|
-
const paginationWidthWithoutDescription = labelWidth + buttonsWidth + totalMargins;
|
|
66987
|
-
const paginationWidthWithDescription = paginationWidthWithoutDescription + this._getPaginationDescriptionWidth();
|
|
66988
|
-
if (controlWidth > paginationWidthWithDescription) {
|
|
66989
|
-
this._showPaginationDescription();
|
|
66990
|
-
}
|
|
66991
|
-
else if (controlWidth <= paginationWidthWithoutDescription) {
|
|
66992
|
-
this._hidePaginationDescription();
|
|
66993
|
-
}
|
|
66994
|
-
}
|
|
66995
|
-
_getPaginationDescriptionWidth() {
|
|
66996
|
-
var _a;
|
|
66997
|
-
return ((_a = this._refPaginationLabelTooltip) === null || _a === void 0 ? void 0 : _a.scrollWidth) || 0;
|
|
66998
|
-
}
|
|
66999
|
-
_getElementMargins(element) {
|
|
67000
|
-
const style = getComputedStyle(element);
|
|
67001
|
-
return parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
67002
|
-
}
|
|
67003
|
-
_hidePaginationDescription() {
|
|
67004
|
-
this._refPaginationLabel.classList.add(core.OVERFLOWED_CLASS_NAME);
|
|
67005
|
-
this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
|
|
67006
|
-
this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
|
|
67007
|
-
}
|
|
67008
|
-
;
|
|
67009
|
-
_showPaginationDescription() {
|
|
67010
|
-
this._refPaginationLabel.classList.remove(core.OVERFLOWED_CLASS_NAME);
|
|
67011
|
-
this._refPaginationLabelTooltip.removeAttribute('data-flow');
|
|
67012
|
-
this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
|
|
67013
|
-
}
|
|
67014
66938
|
disconnectedCallback() {
|
|
67015
|
-
var _a
|
|
67016
|
-
(_a = this.
|
|
67017
|
-
(_b = this._gridController) === null || _b === void 0 ? void 0 : _b.destroy();
|
|
66939
|
+
var _a;
|
|
66940
|
+
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
67018
66941
|
this.removeShortcuts();
|
|
67019
66942
|
}
|
|
67020
66943
|
connectedCallback() {
|
|
@@ -67043,8 +66966,6 @@ const EzGrid = class {
|
|
|
67043
66966
|
if (this.dataUnit && this._showSelectionCounter) {
|
|
67044
66967
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
67045
66968
|
}
|
|
67046
|
-
if (this.paginationCounterMode === 'auto')
|
|
67047
|
-
this._initHeaderOverflowWatcher();
|
|
67048
66969
|
}
|
|
67049
66970
|
getDataSource() {
|
|
67050
66971
|
if (!this.columnfilterDataSource) {
|
|
@@ -67056,7 +66977,7 @@ const EzGrid = class {
|
|
|
67056
66977
|
if (this.mode === "simple") {
|
|
67057
66978
|
return true;
|
|
67058
66979
|
}
|
|
67059
|
-
return !this._hasLeftButtons
|
|
66980
|
+
return !this._hasLeftButtons;
|
|
67060
66981
|
}
|
|
67061
66982
|
resolveLeftHeaderClass() {
|
|
67062
66983
|
if (this.paginationCounterMode == 'show')
|
|
@@ -67081,7 +67002,7 @@ const EzGrid = class {
|
|
|
67081
67002
|
return;
|
|
67082
67003
|
const { currentPage } = this._paginationInfo;
|
|
67083
67004
|
if (currentPage > 0) {
|
|
67084
|
-
this.previousPage();
|
|
67005
|
+
this._refGridPagination.previousPage();
|
|
67085
67006
|
}
|
|
67086
67007
|
}, { description: this.i18n("ez-grid.previousPage"), element: this._element })
|
|
67087
67008
|
.bind("ctrl + alt + ArrowRight", () => {
|
|
@@ -67089,7 +67010,7 @@ const EzGrid = class {
|
|
|
67089
67010
|
return;
|
|
67090
67011
|
const { hasMore } = this._paginationInfo;
|
|
67091
67012
|
if (hasMore) {
|
|
67092
|
-
this.nextPage();
|
|
67013
|
+
this._refGridPagination.nextPage();
|
|
67093
67014
|
}
|
|
67094
67015
|
}, { description: this.i18n("ez-grid.nextPage"), element: this._element });
|
|
67095
67016
|
if (this.useSearchColumn) {
|
|
@@ -67142,16 +67063,14 @@ const EzGrid = class {
|
|
|
67142
67063
|
'ez-box ez-padding--small grid-header': true,
|
|
67143
67064
|
'outline-mode': this.outlineMode,
|
|
67144
67065
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
67145
|
-
}, tabindex: "0" }, index$1.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index$1.h("div", { class: "grid-header__position" }, index$1.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index$1.h("slot", { name: "leftButtons" }))
|
|
67066
|
+
}, tabindex: "0" }, index$1.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index$1.h("div", { class: "grid-header__position" }, index$1.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index$1.h("slot", { name: "leftButtons" })))), index$1.h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), index$1.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
67146
67067
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
67147
|
-
` }, index$1.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) })), index$1.h("div", { class: "grid__footer" }, index$1.h("slot", { name: "footer" }))));
|
|
67068
|
+
` }, index$1.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) })), index$1.h("div", { class: "grid__footer" }, (this.mode !== "simple" && !this.hidePagination) && (index$1.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() })), index$1.h("slot", { name: "footer" }))));
|
|
67148
67069
|
}
|
|
67149
67070
|
static get assetsDirs() { return ["../assets"]; }
|
|
67150
67071
|
get _element() { return index$1.getElement(this); }
|
|
67151
67072
|
static get watchers() { return {
|
|
67152
67073
|
"config": ["observeConfig"],
|
|
67153
|
-
"_paginationInfo": ["updatePaginationTooltip"],
|
|
67154
|
-
"paginationCounterMode": ["observePaginationCounterMode"],
|
|
67155
67074
|
"mode": ["observeModeChange"]
|
|
67156
67075
|
}; }
|
|
67157
67076
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('./EzScrollDirection-b2c99895.js');
|
|
8
|
-
const index$1 = require('./index-
|
|
8
|
+
const index$1 = require('./index-9739c242.js');
|
|
9
9
|
|
|
10
10
|
const ezGuideNavigatorCss = ":host{--ez-guide-navigator--padding-left:var(--space--large);--ez-guide-navigator--padding-right:var(--space--small);--ez-guide-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-guide-navigator--background-color:var(--color--inverted);--ez-guide-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-guide-navigator--actions-gap:var(--space--medium);--ez-guide-navigator--actions-margin:var(--space--large) 0 var(--space--medium);--ez-guide-navigator--actions-padding-right:calc(var(--space--medium, 12px) + var(--space--small, 6px))}.inverted{transform:rotate(180deg)}.ez-guide-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;padding-left:var(--ez-guide-navigator--padding-left);padding-right:var(--ez-guide-navigator--padding-right);background-color:var(--ez-guide-navigator--background-color);-webkit-box-shadow:var(--ez-guide-navigator--box-shadow);box-shadow:var(--ez-guide-navigator--box-shadow);border-radius:var(--ez-guide-navigator--border-radius)}.ez-guide-navigator__actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-guide-navigator--actions-gap);margin:var(--ez-guide-navigator--actions-margin);padding-right:var(--ez-guide-navigator--actions-padding-right)}.hidden{display:none}";
|
|
11
11
|
|