@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-132151.1 → 0.0.0-bugfix-dev-KB-157120.0
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 → classic-search-list_8.cjs.entry.js} +202 -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 +4 -2
- 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-input.cjs.entry.js +49 -3
- 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-text-area.cjs.entry.js +12 -1
- 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 +7 -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 +20 -1
- package/dist/cjs/ez-form.cjs.entry.js +65 -43
- package/dist/cjs/ez-grid-pagination.cjs.entry.js +227 -0
- package/dist/cjs/ez-grid.cjs.entry.js +235 -172
- 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_5.cjs.entry.js +675 -0
- 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-popup.cjs.entry.js +4 -5
- 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 +25 -11
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +11 -4
- 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 +16 -17
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-tabselector.cjs.entry.js +209 -61
- package/dist/cjs/ez-text-input.cjs.entry.js +21 -15
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +46 -8
- 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 +9 -3
- package/dist/cjs/{floating-ui.dom.esm-f4d87617.js → floating-ui.dom.esm-9c8bfebb.js} +258 -119
- package/dist/cjs/{index-350d0fa0.js → index-9739c242.js} +91 -30
- package/dist/cjs/index-a7b0c73d.js +16 -16
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-4bb1cdb7.js → search-column-6e90fb19.js} +24 -10
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +21 -2
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +1 -1
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +47 -2
- package/dist/collection/components/ez-classic-input/utils/maskFormatter.js +2 -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-text-area/ez-classic-text-area.js +32 -1
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +3 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +2 -2
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +7 -7
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.js +17 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +163 -27
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.js +23 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.js +24 -0
- package/dist/collection/components/ez-grid/ez-grid.css +5 -60
- package/dist/collection/components/ez-grid/ez-grid.js +52 -150
- package/dist/collection/components/ez-grid/interfaces/IAggegationFunc.js +1 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +10 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -1
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +1 -1
- 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 +1153 -1146
- 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-multi-select-input/ez-multi-select-input.css +221 -0
- package/dist/collection/components/ez-multi-select-input/ez-multi-select-input.js +555 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +27 -6
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +66 -10
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +20 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +36 -2
- package/dist/collection/components/ez-popup/ez-popup.js +3 -4
- 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/ez-search.js +22 -1
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +38 -10
- 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 +20 -15
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +29 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +254 -62
- package/dist/collection/components/ez-text-input/ez-text-input.js +21 -15
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +45 -7
- package/dist/collection/utils/form/FormMetadata.js +62 -40
- 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/interfaces/AbstractFieldMetadata.js +14 -2
- package/dist/collection/utils/searchColumn/search-column.js +8 -6
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +1889 -647
- 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 → classic-search-list_8.entry.js} +202 -5
- 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 +4 -2
- 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-input.entry.js +49 -3
- 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-text-area.entry.js +12 -1
- 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 +7 -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 +20 -1
- package/dist/esm/ez-form.entry.js +65 -43
- package/dist/esm/ez-grid-pagination.entry.js +223 -0
- package/dist/esm/ez-grid.entry.js +236 -173
- 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_5.entry.js +667 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +4 -5
- 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 +25 -11
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +11 -4
- 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 +16 -17
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-tabselector.entry.js +209 -61
- package/dist/esm/ez-text-input.entry.js +21 -15
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +46 -8
- 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 +9 -3
- package/dist/esm/{floating-ui.dom.esm-ad30f2f0.js → floating-ui.dom.esm-0c464cef.js} +258 -120
- package/dist/esm/{index-225aa0c3.js → index-9e6dab5b.js} +91 -30
- package/dist/esm/index-baa5e267.js +16 -16
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-e145f048.js → search-column-7d7f0331.js} +24 -10
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-01e652c6.entry.js +1 -0
- 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-1222e1b6.entry.js +1 -0
- package/dist/ezui/p-15873627.js +1 -0
- package/dist/ezui/p-178cb9df.entry.js +1 -0
- package/dist/ezui/p-1b1b0af3.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-3e84df1c.entry.js +1 -0
- package/dist/ezui/p-3fae7072.entry.js +1 -0
- 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-55434123.entry.js +1 -0
- package/dist/ezui/p-6791d05f.entry.js +1 -0
- package/dist/ezui/{p-b83b9d14.entry.js → p-6d46f862.entry.js} +46 -46
- package/dist/ezui/p-6da0dc70.entry.js +1 -0
- 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-7df45688.entry.js +1 -0
- 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-97312709.entry.js → p-9bd78d39.entry.js} +1 -1
- package/dist/ezui/p-a11e4e8e.entry.js +1 -0
- package/dist/ezui/p-a9ab6cb9.entry.js +1 -0
- 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-4d30b703.entry.js → p-b50289bb.entry.js} +1 -1
- package/dist/ezui/p-b66ae5c5.entry.js +1 -0
- 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-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-d81a15fc.entry.js +1 -0
- package/dist/ezui/p-d8b69419.entry.js +1 -0
- package/dist/ezui/p-de14fe07.js +1 -0
- package/dist/ezui/p-df6173c8.entry.js +1 -0
- package/dist/ezui/{p-56565777.entry.js → p-dfced8c7.entry.js} +1 -1
- package/dist/ezui/{p-0248846f.entry.js → p-e3d6b544.entry.js} +1 -1
- package/dist/ezui/p-e63a0479.js +1 -0
- 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/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +2 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +6 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +3 -0
- package/dist/types/components/ez-classic-text-area/ez-classic-text-area.d.ts +3 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +2 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/MultiSelectInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +16 -0
- package/dist/types/components/ez-grid/controller/ag-grid/gridColumnDefaultWidths.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/utils/AggFunctionResolver.d.ts +2 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +10 -27
- package/dist/types/components/ez-grid/interfaces/IAggegationFunc.d.ts +3 -0
- 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-multi-select-input/ez-multi-select-input.d.ts +119 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +8 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +7 -0
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +9 -0
- package/dist/types/components/ez-popup/ez-popup.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/ez-search.d.ts +4 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +6 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +41 -20
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +2 -0
- package/dist/types/components.d.ts +407 -9
- 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 -6
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -194
- package/dist/cjs/ez-popover-core.cjs.entry.js +0 -211
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -243
- package/dist/esm/ez-multi-selection-list.entry.js +0 -190
- package/dist/esm/ez-popover-core.entry.js +0 -207
- package/dist/esm/ez-popover-plus_3.entry.js +0 -237
- package/dist/ezui/p-0625743b.entry.js +0 -1
- package/dist/ezui/p-2528e988.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-44183c39.entry.js +0 -1
- package/dist/ezui/p-4e576bb9.entry.js +0 -1
- package/dist/ezui/p-6020f3d5.entry.js +0 -1
- package/dist/ezui/p-619225ce.entry.js +0 -1
- package/dist/ezui/p-679a2942.entry.js +0 -1
- package/dist/ezui/p-951b32a1.entry.js +0 -1
- package/dist/ezui/p-a0f51b99.entry.js +0 -1
- package/dist/ezui/p-a3bad8f8.entry.js +0 -1
- package/dist/ezui/p-a4351519.entry.js +0 -1
- package/dist/ezui/p-b36475f9.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-c2b2172b.entry.js +0 -1
- package/dist/ezui/p-c3c6274e.js +0 -1
- package/dist/ezui/p-cabc119e.entry.js +0 -1
- package/dist/ezui/p-ce0a0036.entry.js +0 -7
- package/dist/ezui/p-cfa26133.entry.js +0 -1
- package/dist/ezui/p-d2645bdf.entry.js +0 -1
- package/dist/ezui/p-d5dc6b01.entry.js +0 -1
- package/dist/ezui/p-e2689b33.entry.js +0 -1
- package/dist/ezui/p-e493ad57.entry.js +0 -1
- package/dist/ezui/p-ef8bd3e8.entry.js +0 -1
- package/dist/ezui/p-ff4312d5.js +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
|
+
const index$1 = require('./index-9739c242.js');
|
|
7
|
+
const core = require('@sankhyalabs/core');
|
|
8
|
+
|
|
9
|
+
const ezGridPaginationCss = ":host{display:block}.pagination__container{display:flex;align-items:center;flex-grow:1;flex-shrink:1;flex-wrap:nowrap;justify-content:flex-end}.pagination__buttons-container{display:flex;border-radius:50%;background-color:var(--color--ocean-green-90, #E1E2E5);cursor:pointer}.pagination__buttons-container ez-icon{--ez-icon--color:var(--color--ocean-green-600, #008561)}.pagination__buttons-container.disabled{background-color:#DEDEDE;cursor:not-allowed;pointer-events:auto}.pagination__buttons-container.disabled ez-icon{--ez-icon--color:var(--color--petroleum-300, #848D9C);pointer-events:none}.pagination__page-navigator{display:flex;align-items:center}.pagination__row-summary-panel{font-size:var(--font-size--default, 14px);font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);padding:var(--space--8, 8px) var(--space--16, 16px)}.pagination__page-summary-panel{display:flex;align-items:center;padding:var(--space--8, 8px) var(--space--16, 16px);gap:var(--space--4, 4px)}.pagination__container-label{margin:0 var(--space--8, 8px)}.pagination-contracted{width:100px}.pagination-expanded{min-width:150px}.pagination__label{font-family:var(--font--pattern, 'Roboto');color:var(--color--petroleum-300, #848D9C);font-weight:var(--font-weight--regular, 400);width:100%;white-space:nowrap}.cancel-pagination{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--space--4, 4px);padding:var(--space--8, 8px)}.spin{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.cancel-pagination-btn{color:var(--color--red-600, #BD0025);font-size:var(--font-size--medium, 16px);font-weight:var(--font-weight--semi-bold, 600);font-family:var(--font--pattern, 'Roboto');text-wrap:nowrap;cursor:pointer}.pagination-text-right{flex-direction:row-reverse}";
|
|
10
|
+
|
|
11
|
+
const EzGridPagination = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.pageChange = index.createEvent(this, "pageChange", 7);
|
|
15
|
+
this._dataUnitInitialized = false;
|
|
16
|
+
this.paginationInfo = undefined;
|
|
17
|
+
this.leftButtonDisabled = undefined;
|
|
18
|
+
this.rightButtonDisabled = undefined;
|
|
19
|
+
this.paginationCounterMode = 'auto';
|
|
20
|
+
this.dataUnit = undefined;
|
|
21
|
+
this.paginationTextPosition = 'left';
|
|
22
|
+
this.buttonsSize = 'large';
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Navega para a página anterior.
|
|
26
|
+
*/
|
|
27
|
+
async previousPage() {
|
|
28
|
+
if (!this.dataUnit) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
await this.dataUnit.previousPage();
|
|
32
|
+
this.handlePageChange('previous');
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Navega para a próxima página.
|
|
36
|
+
*/
|
|
37
|
+
async nextPage() {
|
|
38
|
+
if (!this.dataUnit) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
await this.dataUnit.nextPage();
|
|
42
|
+
this.handlePageChange('next');
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Navega para a primeira página.
|
|
46
|
+
*/
|
|
47
|
+
async firstPage() {
|
|
48
|
+
if (!this.dataUnit) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
await this.dataUnit.gotoPage(0);
|
|
52
|
+
this.handlePageChange('previous');
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Navega para a primeira página.
|
|
56
|
+
*/
|
|
57
|
+
async lastPage() {
|
|
58
|
+
if (!this.dataUnit) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
await this.dataUnit.gotoPage(this.getTotalPages() - 1);
|
|
62
|
+
this.handlePageChange('next');
|
|
63
|
+
}
|
|
64
|
+
onDataUnitChange() {
|
|
65
|
+
this.initializeDataUnit();
|
|
66
|
+
}
|
|
67
|
+
shouldPresentPaginationLabel() {
|
|
68
|
+
return this.paginationCounterMode !== 'hidden';
|
|
69
|
+
}
|
|
70
|
+
getRemainingPageLabel() {
|
|
71
|
+
var _a;
|
|
72
|
+
if (!this.paginationInfo)
|
|
73
|
+
return '';
|
|
74
|
+
return `${this.paginationInfo.total == undefined
|
|
75
|
+
? this.i18n('ez-grid-pagination.remainingPageLabel', { count: ((_a = this.paginationInfo.count) !== null && _a !== void 0 ? _a : 0) + 1 })
|
|
76
|
+
: this.i18n('ez-grid-pagination.remainingTotalLabel', { total: this.paginationInfo.total, count: this.paginationInfo.count })}`;
|
|
77
|
+
}
|
|
78
|
+
getActualPageLabel() {
|
|
79
|
+
var _a, _b;
|
|
80
|
+
if (!this.paginationInfo)
|
|
81
|
+
return '0-0';
|
|
82
|
+
return `${(_a = this.paginationInfo.firstRecord) !== null && _a !== void 0 ? _a : 0} - ${(_b = this.paginationInfo.lastRecord) !== null && _b !== void 0 ? _b : 0}`;
|
|
83
|
+
}
|
|
84
|
+
getPaginationCount() {
|
|
85
|
+
var _a;
|
|
86
|
+
if (!this.paginationInfo || !this.dataUnit)
|
|
87
|
+
return '0-0';
|
|
88
|
+
const currentPage = ((_a = this.paginationInfo.currentPage) !== null && _a !== void 0 ? _a : 0) + 1;
|
|
89
|
+
let totalPages = this.getTotalPages();
|
|
90
|
+
return this.i18n('ez-grid-pagination.pageCounter', { currentPage, totalPages });
|
|
91
|
+
}
|
|
92
|
+
getTotalPages() {
|
|
93
|
+
var _a;
|
|
94
|
+
if (this.paginationInfo.total !== undefined) {
|
|
95
|
+
return Math.ceil(this.paginationInfo.total / this.dataUnit.pageSize);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
return Math.ceil(((_a = this.paginationInfo.count) !== null && _a !== void 0 ? _a : 0) / this.dataUnit.pageSize);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
handlePageChange(direction) {
|
|
102
|
+
this.setPaginationInfo();
|
|
103
|
+
this.setStatusButtonPagination();
|
|
104
|
+
this.pageChange.emit(direction);
|
|
105
|
+
}
|
|
106
|
+
async handleCancelPagination() {
|
|
107
|
+
var _a;
|
|
108
|
+
if (!this.dataUnit)
|
|
109
|
+
return;
|
|
110
|
+
this.dataUnit.cancelPagination = true;
|
|
111
|
+
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
112
|
+
}
|
|
113
|
+
handleShowCancelPagination() {
|
|
114
|
+
var _a, _b, _c;
|
|
115
|
+
if (!this.hasToShowCancelPagination()) {
|
|
116
|
+
(_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide();
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if ((_b = this._cancelPaginationPopoverElement) === null || _b === void 0 ? void 0 : _b.opened)
|
|
120
|
+
return;
|
|
121
|
+
(_c = this._cancelPaginationPopoverElement) === null || _c === void 0 ? void 0 : _c.show('15px');
|
|
122
|
+
}
|
|
123
|
+
hasToShowCancelPagination() {
|
|
124
|
+
if (!this.dataUnit || !this.paginationInfo)
|
|
125
|
+
return false;
|
|
126
|
+
const hasMore = this.paginationInfo.total === undefined;
|
|
127
|
+
return !this.dataUnit.cancelPagination && hasMore && this.paginationInfo.count > this.dataUnit.pageSize;
|
|
128
|
+
}
|
|
129
|
+
setPaginationInfo() {
|
|
130
|
+
if (!this.dataUnit) {
|
|
131
|
+
this.paginationInfo = null;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
this.paginationInfo = this.dataUnit.getPaginationInfo() || null;
|
|
135
|
+
}
|
|
136
|
+
dataUnitObserver(action) {
|
|
137
|
+
switch (action.type) {
|
|
138
|
+
case core.Action.PAGINATION_UPDATED:
|
|
139
|
+
this.setPaginationInfo();
|
|
140
|
+
this.setStatusButtonPagination();
|
|
141
|
+
this.handleShowCancelPagination();
|
|
142
|
+
break;
|
|
143
|
+
case core.Action.DATA_LOADED:
|
|
144
|
+
this.setPaginationInfo();
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
getLeftButtonDisabledStatus() {
|
|
149
|
+
var _a, _b;
|
|
150
|
+
if (!this.dataUnit)
|
|
151
|
+
return true;
|
|
152
|
+
return ((_b = (_a = this.paginationInfo) === null || _a === void 0 ? void 0 : _a.currentPage) !== null && _b !== void 0 ? _b : 0) <= 0;
|
|
153
|
+
}
|
|
154
|
+
getRightButtonDisabledStatus() {
|
|
155
|
+
var _a;
|
|
156
|
+
if (!this.dataUnit)
|
|
157
|
+
return true;
|
|
158
|
+
return !((_a = this.paginationInfo) === null || _a === void 0 ? void 0 : _a.hasMore);
|
|
159
|
+
}
|
|
160
|
+
setStatusButtonPagination() {
|
|
161
|
+
this.leftButtonDisabled = this.getLeftButtonDisabledStatus();
|
|
162
|
+
this.rightButtonDisabled = this.getRightButtonDisabledStatus();
|
|
163
|
+
}
|
|
164
|
+
initializeDataUnit() {
|
|
165
|
+
if (!this.dataUnit || this._dataUnitInitialized) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
this.setPaginationInfo();
|
|
169
|
+
this.setStatusButtonPagination();
|
|
170
|
+
this._dataUnitObserverBound = this.dataUnitObserver.bind(this);
|
|
171
|
+
this.dataUnit.subscribe(this._dataUnitObserverBound);
|
|
172
|
+
this._dataUnitInitialized = true;
|
|
173
|
+
}
|
|
174
|
+
addInfoId() {
|
|
175
|
+
if (this._element) {
|
|
176
|
+
core.ElementIDUtils.addIDInfo(this._element);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
renderCancelPagination() {
|
|
180
|
+
return (index.h("ez-popover", { ref: (element) => (this._cancelPaginationPopoverElement = element), "overlay-type": "none", autoClose: false }, index.h("div", { class: 'cancel-pagination' }, index.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index.h("span", { onClick: () => this.handleCancelPagination(), class: 'cancel-pagination-btn' }, this.i18n('ez-grid-pagination.cancelPagination')))));
|
|
181
|
+
}
|
|
182
|
+
async connectedCallback() {
|
|
183
|
+
this.i18n = await index$1.initI18n();
|
|
184
|
+
this.initializeDataUnit();
|
|
185
|
+
}
|
|
186
|
+
componentDidLoad() {
|
|
187
|
+
this.addInfoId();
|
|
188
|
+
}
|
|
189
|
+
disconnectedCallback() {
|
|
190
|
+
if (this.dataUnit && this._dataUnitInitialized && this._dataUnitObserverBound) {
|
|
191
|
+
this.dataUnit.unsubscribe(this._dataUnitObserverBound);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
render() {
|
|
195
|
+
return (index.h(index.Host, null, index.h("div", { id: 'grid-pagination--container', class: {
|
|
196
|
+
'pagination__container': true,
|
|
197
|
+
'pagination-expanded': this.paginationCounterMode !== 'hidden',
|
|
198
|
+
'pagination-contracted': this.paginationCounterMode === 'hidden',
|
|
199
|
+
'pagination-text-right': this.paginationTextPosition === 'right',
|
|
200
|
+
} }, index.h("div", { id: "grid-pagination--page-navigator", class: "pagination__page-navigator" }, index.h("div", { id: 'grid-pagination--row-summary-panel', class: "pagination__row-summary-panel" }, index.h("span", { class: "pagination__label", "aria-live": "polite", "aria-atomic": "true", title: `${this.getActualPageLabel()} ${this.getRemainingPageLabel()}` }, this.shouldPresentPaginationLabel() && this.getActualPageLabel(), this.shouldPresentPaginationLabel() && this.getRemainingPageLabel())), this.renderCancelPagination(), index.h("div", { id: 'grid-pagination--page-summary-panel', class: {
|
|
201
|
+
'pagination__page-summary-panel': true,
|
|
202
|
+
'pagination__container': true,
|
|
203
|
+
'pagination-expanded': this.paginationCounterMode !== 'hidden',
|
|
204
|
+
'pagination-contracted': this.paginationCounterMode === 'hidden',
|
|
205
|
+
'pagination-text-right': this.paginationTextPosition === 'right',
|
|
206
|
+
} }, index.h("div", { id: 'grid-pagination--first-tooltip', class: {
|
|
207
|
+
'pagination__buttons-container': true,
|
|
208
|
+
'disabled': this.leftButtonDisabled
|
|
209
|
+
} }, index.h("ez-tooltip", { message: this.i18n('ez-grid-pagination.firstPage') }, index.h("ez-icon", { size: this.buttonsSize, iconName: "dual-chevron-left", onClick: () => !this.leftButtonDisabled && this.firstPage() }))), index.h("div", { id: 'grid-pagination--previous-tooltip', class: {
|
|
210
|
+
'pagination__buttons-container': true,
|
|
211
|
+
'disabled': this.leftButtonDisabled
|
|
212
|
+
} }, index.h("ez-tooltip", { message: this.i18n('ez-grid-pagination.previousPage') }, index.h("ez-icon", { size: this.buttonsSize, iconName: "chevron-left", onClick: () => !this.leftButtonDisabled && this.previousPage() }))), index.h("div", { class: "pagination__container-label" }, index.h("span", { class: "pagination__label", "aria-live": "polite", "aria-atomic": "true", title: `${this.getActualPageLabel()} ${this.getRemainingPageLabel()}` }, this.shouldPresentPaginationLabel() && this.getPaginationCount())), index.h("div", { id: 'grid-pagination--next-tooltip', class: {
|
|
213
|
+
'pagination__buttons-container': true,
|
|
214
|
+
'disabled': this.rightButtonDisabled
|
|
215
|
+
} }, index.h("ez-tooltip", { message: this.i18n('ez-grid-pagination.nextPage') }, index.h("ez-icon", { size: this.buttonsSize, iconName: "chevron-right", onClick: () => !this.rightButtonDisabled && this.nextPage() }))), index.h("div", { id: 'grid-pagination--last-tooltip', class: {
|
|
216
|
+
'pagination__buttons-container': true,
|
|
217
|
+
'disabled': this.rightButtonDisabled
|
|
218
|
+
} }, index.h("ez-tooltip", { message: this.i18n('ez-grid-pagination.lastPage') }, index.h("ez-icon", { size: this.buttonsSize, iconName: "dual-chevron-right", onClick: () => !this.rightButtonDisabled && this.lastPage() }))))))));
|
|
219
|
+
}
|
|
220
|
+
get _element() { return index.getElement(this); }
|
|
221
|
+
static get watchers() { return {
|
|
222
|
+
"dataUnit": ["onDataUnitChange"]
|
|
223
|
+
}; }
|
|
224
|
+
};
|
|
225
|
+
EzGridPagination.style = ezGridPaginationCss;
|
|
226
|
+
|
|
227
|
+
exports.ez_grid_pagination = EzGridPagination;
|