@sankhyalabs/ezui 6.1.0-dev.2 → 6.1.0-dev.21
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-c9d1205c.js → ApplicationUtils-39807831.js} +43 -15
- package/dist/cjs/RichToolbarHelper-ea12328f.js +33 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/app-globals-86776e90.js +12 -0
- package/dist/cjs/{constants-569271bc.js → constants-72b7e05e.js} +0 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +3 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +6 -4
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +7 -2
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +8 -7
- package/dist/cjs/ez-card-item_2.cjs.entry.js +2 -2
- package/dist/cjs/ez-chart.cjs.entry.js +4 -19
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- package/dist/cjs/ez-chip.cjs.entry.js +3 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +15 -12
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +292 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +33 -15
- package/dist/cjs/ez-date-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +9 -7
- package/dist/cjs/ez-double-list.cjs.entry.js +13 -5
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-empty-card.cjs.entry.js +34 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +10 -7
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +13 -5
- package/dist/cjs/ez-form.cjs.entry.js +5 -4
- package/dist/cjs/ez-grid.cjs.entry.js +172 -133
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +6 -2
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +315 -0
- package/dist/cjs/ez-list.cjs.entry.js +5 -3
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
- package/dist/cjs/ez-modal.cjs.entry.js +6 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -6
- package/dist/cjs/ez-number-input.cjs.entry.js +6 -2
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +19 -10
- package/dist/cjs/ez-search-result-list.cjs.entry.js +25 -8
- package/dist/cjs/ez-search.cjs.entry.js +9 -10
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +6 -8
- package/dist/cjs/ez-skeleton.cjs.entry.js +6 -4
- package/dist/cjs/ez-sortable-list.cjs.entry.js +13 -6
- package/dist/cjs/ez-split-button.cjs.entry.js +6 -5
- package/dist/cjs/ez-split-item.cjs.entry.js +7 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +35 -28
- package/dist/cjs/ez-text-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-tile.cjs.entry.js +62 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +13 -11
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +2 -124
- package/dist/cjs/ez-tree.cjs.entry.js +6 -2
- package/dist/cjs/ez-upload.cjs.entry.js +18 -12
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +6 -2
- package/dist/cjs/filter-column.cjs.entry.js +9 -5
- package/dist/cjs/index-02854309.js +3672 -0
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -15
- package/dist/cjs/loader.cjs.js +6 -2
- package/dist/cjs/purify-a7dc3a08.js +1354 -0
- package/dist/cjs/{search-column-1d3c9fa5.js → search-column-82c52e20.js} +11 -5
- package/dist/collection/collection-manifest.json +27 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +5 -3
- package/dist/collection/components/ez-avatar/ez-avatar.js +5 -1
- package/dist/collection/components/ez-calendar/ez-calendar.js +7 -6
- package/dist/collection/components/ez-check/ez-check.css +1 -1
- package/dist/collection/components/ez-chip/ez-chip.js +20 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -9
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +7 -4
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +50 -15
- package/dist/collection/components/ez-date-input/ez-date-input.js +5 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +5 -1
- package/dist/collection/components/ez-dialog/ez-dialog.js +8 -6
- package/dist/collection/components/ez-double-list/ez-double-list.js +12 -4
- package/dist/collection/components/ez-empty-card/ez-empty-card.css +55 -0
- package/dist/collection/components/ez-empty-card/ez-empty-card.js +91 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js +9 -6
- package/dist/collection/components/ez-form/ez-form.js +1 -1
- package/dist/collection/components/ez-form-view/ez-form-view.js +4 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -11
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +14 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +3 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/utils/buildLocaleText.js +67 -0
- package/dist/collection/components/ez-grid/ez-grid.js +15 -13
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +7 -3
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +11 -7
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +5 -1
- package/dist/collection/components/ez-icon/ez-icon.css +147 -140
- package/dist/collection/components/ez-list/ez-list.js +4 -2
- package/dist/collection/components/ez-modal/ez-modal.js +5 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +5 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +9 -5
- package/dist/collection/components/ez-number-input/ez-number-input.js +5 -1
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +3 -2
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +135 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +30 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +575 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +27 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +23 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +187 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +220 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
- package/dist/collection/components/ez-search/ez-search.js +7 -8
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +2 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -7
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +27 -7
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +5 -2
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +0 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +4 -2
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +15 -11
- package/dist/collection/components/ez-split-button/ez-split-button.js +6 -6
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +5 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +244 -212
- package/dist/collection/components/ez-text-area/ez-text-area.js +35 -28
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +5 -1
- package/dist/collection/components/ez-text-input/ez-text-input.js +2 -1
- package/dist/collection/components/ez-tile/ez-tile.css +151 -0
- package/dist/collection/components/ez-tile/ez-tile.js +269 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +12 -10
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
- package/dist/collection/components/ez-tree/ez-tree.js +5 -1
- package/dist/collection/components/ez-upload/ez-upload.js +18 -12
- package/dist/collection/global/app-init.js +6 -0
- package/dist/collection/setupTests.js +1 -1
- package/dist/collection/utils/ApplicationUtils.js +43 -15
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/i18n/elanguages.js +6 -0
- package/dist/collection/utils/i18n/i18nUtils.js +20 -0
- package/dist/collection/utils/i18n/index.js +30 -0
- package/dist/collection/utils/i18n/locales/en-us.js +275 -0
- package/dist/collection/utils/i18n/locales/es-es.js +275 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +275 -0
- package/dist/collection/utils/i18n/translations.js +9 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +8 -2
- package/dist/custom-elements/index.d.ts +60 -0
- package/dist/custom-elements/index.js +6252 -308
- package/dist/esm/{ApplicationUtils-eaf91331.js → ApplicationUtils-72f474e8.js} +43 -15
- package/dist/esm/RichToolbarHelper-f3a149c4.js +29 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/app-globals-2ccb253f.js +10 -0
- package/dist/esm/{constants-b036528f.js → constants-3fabe81e.js} +1 -2
- package/dist/esm/ez-actions-button.entry.js +3 -2
- package/dist/esm/ez-alert-list.entry.js +6 -4
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +7 -2
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +8 -7
- package/dist/esm/ez-card-item_2.entry.js +2 -2
- package/dist/esm/ez-chart.entry.js +2 -17
- package/dist/esm/ez-check.entry.js +2 -2
- package/dist/esm/ez-chip.entry.js +3 -2
- package/dist/esm/ez-collapsible-box.entry.js +15 -12
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +293 -8
- package/dist/esm/ez-combo-box.entry.js +33 -15
- package/dist/esm/ez-date-input.entry.js +6 -2
- package/dist/esm/ez-date-time-input.entry.js +6 -2
- package/dist/esm/ez-dialog.entry.js +9 -7
- package/dist/esm/ez-double-list.entry.js +13 -5
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-empty-card.entry.js +30 -0
- package/dist/esm/ez-file-item.entry.js +10 -7
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +13 -5
- package/dist/esm/ez-form.entry.js +5 -4
- package/dist/esm/ez-grid.entry.js +155 -116
- package/dist/esm/ez-guide-navigator.entry.js +6 -2
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-link-builder_6.entry.js +306 -0
- package/dist/esm/ez-list.entry.js +5 -3
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +7 -3
- package/dist/esm/ez-modal.entry.js +6 -2
- package/dist/esm/ez-multi-selection-list.entry.js +10 -6
- package/dist/esm/ez-number-input.entry.js +6 -2
- package/dist/esm/ez-popover-plus_3.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +19 -10
- package/dist/esm/ez-search-result-list.entry.js +25 -8
- package/dist/esm/ez-search.entry.js +9 -10
- package/dist/esm/ez-sidebar-navigator.entry.js +6 -8
- package/dist/esm/ez-skeleton.entry.js +6 -4
- package/dist/esm/ez-sortable-list.entry.js +13 -6
- package/dist/esm/ez-split-button.entry.js +6 -5
- package/dist/esm/ez-split-item.entry.js +7 -3
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +35 -28
- package/dist/esm/ez-text-input.entry.js +3 -2
- package/dist/esm/ez-tile.entry.js +58 -0
- package/dist/esm/ez-time-input.entry.js +13 -11
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ez-tree.entry.js +6 -2
- package/dist/esm/ez-upload.entry.js +18 -12
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +7 -3
- package/dist/esm/filter-column.entry.js +9 -5
- package/dist/esm/index-b623906e.js +3669 -0
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -15
- package/dist/esm/loader.js +7 -3
- package/dist/esm/purify-da6317bb.js +1352 -0
- package/dist/esm/{search-column-35f4ad93.js → search-column-5a55f676.js} +10 -4
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0603bcc7.entry.js +1 -0
- package/dist/ezui/p-0ec7aa3a.entry.js +1 -0
- package/dist/ezui/p-0f0f3efe.entry.js +1 -0
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
- package/dist/ezui/p-1c3efd36.entry.js +1 -0
- package/dist/ezui/p-1c55dda0.js +3 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/p-1ffb75d5.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-22934e19.entry.js +1 -0
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
- package/dist/ezui/p-2f471aca.entry.js +1 -0
- package/dist/ezui/p-303b3b8c.entry.js +1 -0
- package/dist/ezui/p-3b89a9a0.entry.js +1 -0
- package/dist/ezui/p-3e71ca08.entry.js +1 -0
- package/dist/ezui/p-3e767a74.js +1 -0
- package/dist/ezui/p-3e88fbb6.entry.js +1 -0
- package/dist/ezui/p-4044a7d7.entry.js +1 -0
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/p-45c9b292.entry.js +1 -0
- package/dist/ezui/p-45e64547.entry.js +1 -0
- package/dist/ezui/p-46913da7.js +1 -0
- package/dist/ezui/p-4773ff4c.js +1 -0
- package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
- package/dist/ezui/{p-4a876b8b.entry.js → p-4d30b703.entry.js} +1 -1
- package/dist/ezui/p-4fc5f926.entry.js +1 -0
- package/dist/ezui/p-53bc30a1.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-627ff5a2.entry.js +1 -0
- package/dist/ezui/p-629e32e2.entry.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/{p-80764ff6.entry.js → p-6562b5c8.entry.js} +46 -46
- package/dist/ezui/p-6d596a5a.entry.js +1 -0
- package/dist/ezui/p-6e6fccfb.entry.js +1 -0
- package/dist/ezui/p-713dc93e.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/{p-5b85d3de.entry.js → p-7f792043.entry.js} +1 -1
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/p-84a136bf.entry.js +1 -0
- package/dist/ezui/{p-b3b3c99a.entry.js → p-8afb6e8a.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/p-973e6a40.entry.js +1 -0
- package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a12f6074.entry.js +1 -0
- package/dist/ezui/p-a482aae1.entry.js +1 -0
- package/dist/ezui/p-a687f14c.entry.js +7 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-adbc3261.entry.js +1 -0
- package/dist/ezui/p-b115058e.entry.js +1 -0
- package/dist/ezui/p-b1e45320.js +1 -0
- package/dist/ezui/p-b4215a04.entry.js +1 -0
- package/dist/ezui/p-b8ed876d.entry.js +1 -0
- package/dist/ezui/p-ba07b3df.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-beb42de1.entry.js +1 -0
- package/dist/ezui/p-c00ad772.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/p-c2a8139d.entry.js +1 -0
- package/dist/ezui/p-caf2584a.entry.js +1 -0
- package/dist/ezui/p-d1d0868b.entry.js +1 -0
- package/dist/ezui/p-d2645bdf.entry.js +1 -0
- package/dist/ezui/p-e5260556.entry.js +1 -0
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/p-e7a7c594.entry.js +1 -0
- package/dist/ezui/p-ed3bed1e.entry.js +1 -0
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -1
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +2 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +2 -3
- package/dist/types/components/ez-chip/ez-chip.d.ts +4 -0
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +2 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +9 -2
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -2
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +2 -0
- package/dist/types/components/ez-empty-card/ez-empty-card.d.ts +18 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/utils/buildLocaleText.d.ts +66 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -2
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +2 -2
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +2 -0
- package/dist/types/components/ez-list/ez-list.d.ts +2 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +2 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +2 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +2 -0
- package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +19 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +105 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +31 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +5 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +35 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +39 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
- package/dist/types/components/ez-search/ez-search.d.ts +2 -3
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +4 -1
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +4 -1
- package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +2 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +0 -1
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +2 -1
- package/dist/types/components/ez-sortable-list/ez-sortable-list.d.ts +2 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +2 -2
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +2 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +6 -3
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +2 -0
- package/dist/types/components/ez-tile/ez-tile.d.ts +58 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +2 -1
- package/dist/types/components/ez-tree/ez-tree.d.ts +2 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +3 -1
- package/dist/types/components.d.ts +447 -2
- package/dist/types/global/app-init.d.ts +1 -0
- package/dist/types/utils/ApplicationUtils.d.ts +3 -1
- package/dist/types/utils/constants.d.ts +0 -1
- package/dist/types/utils/i18n/elanguages.d.ts +5 -0
- package/dist/types/utils/i18n/i18nUtils.d.ts +2 -0
- package/dist/types/utils/i18n/index.d.ts +5 -0
- package/dist/types/utils/i18n/locales/en-us.d.ts +276 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +276 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +276 -0
- package/dist/types/utils/i18n/translations.d.ts +828 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -0
- package/package.json +8 -1
- package/react/components.d.ts +10 -0
- package/react/components.js +10 -0
- package/react/components.js.map +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +0 -75
- package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +0 -5
- package/dist/ezui/p-01b72d7e.entry.js +0 -1
- package/dist/ezui/p-07594da0.entry.js +0 -1
- package/dist/ezui/p-11bfeca3.entry.js +0 -1
- package/dist/ezui/p-175154a0.js +0 -1
- package/dist/ezui/p-1fefb37a.entry.js +0 -1
- package/dist/ezui/p-2187f86c.js +0 -1
- package/dist/ezui/p-220b9944.entry.js +0 -1
- package/dist/ezui/p-28987410.entry.js +0 -1
- package/dist/ezui/p-2d10bb18.entry.js +0 -1
- package/dist/ezui/p-2f351332.entry.js +0 -1
- package/dist/ezui/p-4e66eaeb.entry.js +0 -1
- package/dist/ezui/p-545bd5d5.entry.js +0 -7
- package/dist/ezui/p-5eea9886.js +0 -1
- package/dist/ezui/p-61f5c258.entry.js +0 -1
- package/dist/ezui/p-6b2cc9b8.entry.js +0 -1
- package/dist/ezui/p-6b3fddee.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-700c1320.entry.js +0 -1
- package/dist/ezui/p-708b196e.entry.js +0 -1
- package/dist/ezui/p-7567ccdd.entry.js +0 -1
- package/dist/ezui/p-791f4e43.entry.js +0 -1
- package/dist/ezui/p-7db20f8e.entry.js +0 -1
- package/dist/ezui/p-7ec3f335.entry.js +0 -1
- package/dist/ezui/p-85d7b78a.entry.js +0 -1
- package/dist/ezui/p-90c90351.entry.js +0 -1
- package/dist/ezui/p-90e91173.entry.js +0 -1
- package/dist/ezui/p-91ccae0c.entry.js +0 -1
- package/dist/ezui/p-926a0bde.entry.js +0 -1
- package/dist/ezui/p-97d94ef3.entry.js +0 -1
- package/dist/ezui/p-9e95bfeb.entry.js +0 -1
- package/dist/ezui/p-a11827ca.entry.js +0 -1
- package/dist/ezui/p-c7035d65.entry.js +0 -1
- package/dist/ezui/p-c8e6204f.entry.js +0 -1
- package/dist/ezui/p-d2290004.entry.js +0 -1
- package/dist/ezui/p-d4d6d5fe.entry.js +0 -1
- package/dist/ezui/p-ddb22a70.entry.js +0 -1
- package/dist/ezui/p-ddd0bd61.entry.js +0 -1
- package/dist/ezui/p-e4ae4ddb.entry.js +0 -1
- package/dist/ezui/p-e4ead194.entry.js +0 -1
- package/dist/ezui/p-e6b38ade.entry.js +0 -1
- package/dist/ezui/p-ed48a632.entry.js +0 -1
- package/dist/ezui/p-fc194825.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +0 -2
- package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +0 -5
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const constants = require('./constants-569271bc.js');
|
|
8
7
|
const CheckMode = require('./CheckMode-ecb90b87.js');
|
|
8
|
+
const index$1 = require('./index-02854309.js');
|
|
9
9
|
|
|
10
10
|
const buildSwitch = (field) => {
|
|
11
11
|
return buildField(field.name, field.label, field.readOnly, field.contextName, true);
|
|
@@ -99,6 +99,11 @@ const buildSearch = ({ name, label, readOnly, required, contextName, canShowErro
|
|
|
99
99
|
index.h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
+
const buildRichText = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
103
|
+
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
104
|
+
index.h("ez-rich-text", { key: name, enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, rows: rows, canShowError: canShowError })));
|
|
105
|
+
};
|
|
106
|
+
|
|
102
107
|
const uiBuilders = new Map();
|
|
103
108
|
uiBuilders.set(core.UserInterface.CHECKBOX, buildCheckBox);
|
|
104
109
|
uiBuilders.set(core.UserInterface.SWITCH, buildSwitch);
|
|
@@ -113,9 +118,11 @@ uiBuilders.set(core.UserInterface.INTEGERNUMBER, buildInteger);
|
|
|
113
118
|
uiBuilders.set(core.UserInterface.SEARCH, buildSearch);
|
|
114
119
|
uiBuilders.set(core.UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
115
120
|
uiBuilders.set(core.UserInterface.LONGTEXT, buildTextArea);
|
|
121
|
+
uiBuilders.set(core.UserInterface.HTML, buildRichText);
|
|
116
122
|
const fieldBuilder = (field) => {
|
|
123
|
+
const i18n = index$1.getI18n();
|
|
117
124
|
const builder = uiBuilders.get(field.userInterface) || buildTextInput;
|
|
118
|
-
const label = field.required ? `${field.label}${
|
|
125
|
+
const label = field.required ? `${field.label}${i18n("app.requiredInfo")}` : field.label;
|
|
119
126
|
const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
|
|
120
127
|
//@ts-ignore
|
|
121
128
|
builtElement.$attrs$['data-form-item'] = field.name;
|
|
@@ -167,7 +174,7 @@ const EzFormView = class {
|
|
|
167
174
|
this._customEditors = new Map();
|
|
168
175
|
this.fields = undefined;
|
|
169
176
|
this.selectedRecord = undefined;
|
|
170
|
-
this.singleColumn =
|
|
177
|
+
this.singleColumn = false;
|
|
171
178
|
}
|
|
172
179
|
async showUp() {
|
|
173
180
|
this._element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -220,7 +227,8 @@ const EzFormView = class {
|
|
|
220
227
|
isItemFullWidth(userInterface) {
|
|
221
228
|
return [
|
|
222
229
|
core.UserInterface.FILE,
|
|
223
|
-
core.UserInterface.LONGTEXT
|
|
230
|
+
core.UserInterface.LONGTEXT,
|
|
231
|
+
core.UserInterface.HTML,
|
|
224
232
|
].includes(userInterface);
|
|
225
233
|
}
|
|
226
234
|
buildFormItemElement(item, classItem = "") {
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const searchColumn = require('./search-column-
|
|
7
|
+
const searchColumn = require('./search-column-82c52e20.js');
|
|
8
8
|
const FormLayout = require('./FormLayout-18853e70.js');
|
|
9
|
-
require('./ApplicationUtils-
|
|
9
|
+
require('./ApplicationUtils-39807831.js');
|
|
10
10
|
require('./DialogType-2114c337.js');
|
|
11
11
|
require('./CheckMode-ecb90b87.js');
|
|
12
|
+
require('./index-02854309.js');
|
|
12
13
|
|
|
13
14
|
const DETAIL_PATTERN = /child\[([^\]]+)\]/;
|
|
14
15
|
const REGEX_DEFAULT_VAR_KEY = /\$\{.+\}/;
|
|
@@ -569,7 +570,7 @@ const EzForm = class {
|
|
|
569
570
|
}
|
|
570
571
|
};
|
|
571
572
|
this._fieldsProps = new Map();
|
|
572
|
-
this._singleColumn =
|
|
573
|
+
this._singleColumn = false;
|
|
573
574
|
this.dataUnit = undefined;
|
|
574
575
|
this.config = undefined;
|
|
575
576
|
this.recordsValidator = undefined;
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
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-39807831.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
|
+
const index = require('./index-02854309.js');
|
|
11
12
|
const FormLayout = require('./FormLayout-18853e70.js');
|
|
12
|
-
const searchColumn = require('./search-column-
|
|
13
|
-
const constants = require('./constants-
|
|
13
|
+
const searchColumn = require('./search-column-82c52e20.js');
|
|
14
|
+
const constants = require('./constants-72b7e05e.js');
|
|
14
15
|
const FocusResolver = require('./FocusResolver-885f2173.js');
|
|
16
|
+
const purify = require('./purify-a7dc3a08.js');
|
|
17
|
+
require('./_commonjsHelpers-537d719a.js');
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
20
|
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
@@ -50239,6 +50242,10 @@ class DataSource {
|
|
|
50239
50242
|
(_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.unsubscribe(this.duObserver);
|
|
50240
50243
|
(_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.subscribe(this.duObserver);
|
|
50241
50244
|
}
|
|
50245
|
+
getDescriptionField(descriptionName, entityName) {
|
|
50246
|
+
const descriptionFieldName = `${entityName}.${descriptionName}`;
|
|
50247
|
+
return this._dataUnit.metadata.fields.find((field) => field.name === descriptionFieldName);
|
|
50248
|
+
}
|
|
50242
50249
|
buildColumnDefs() {
|
|
50243
50250
|
try {
|
|
50244
50251
|
const gridConfig = this._controller.getGridConfig() || [];
|
|
@@ -50250,7 +50257,7 @@ class DataSource {
|
|
|
50250
50257
|
return indexA - indexB;
|
|
50251
50258
|
});
|
|
50252
50259
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
50253
|
-
var _a, _b;
|
|
50260
|
+
var _a, _b, _c, _d, _e, _f;
|
|
50254
50261
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
50255
50262
|
const props = new Map();
|
|
50256
50263
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
@@ -50260,9 +50267,15 @@ class DataSource {
|
|
|
50260
50267
|
const col = { label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props };
|
|
50261
50268
|
columnDefs.push(col);
|
|
50262
50269
|
if (f.userInterface === core.UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
|
|
50263
|
-
const
|
|
50264
|
-
|
|
50265
|
-
|
|
50270
|
+
const descriptionField = this.getDescriptionField((_c = f.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELD, (_d = f.properties) === null || _d === void 0 ? void 0 : _d.ENTITYNAME);
|
|
50271
|
+
if (descriptionField) {
|
|
50272
|
+
descriptionField.label = `${(_e = f.properties) === null || _e === void 0 ? void 0 : _e.DESCRIPTIONFIELDLABEL} (${(_f = f.properties) === null || _f === void 0 ? void 0 : _f.DESCRIPTIONENTITY})`;
|
|
50273
|
+
}
|
|
50274
|
+
else {
|
|
50275
|
+
const descriptionCol = this.buildDescriptionColumn(f);
|
|
50276
|
+
columnDefs.push(descriptionCol);
|
|
50277
|
+
f.properties[constants.PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
|
|
50278
|
+
}
|
|
50266
50279
|
}
|
|
50267
50280
|
}
|
|
50268
50281
|
});
|
|
@@ -50460,81 +50473,6 @@ class SelectionHeader {
|
|
|
50460
50473
|
}
|
|
50461
50474
|
}
|
|
50462
50475
|
|
|
50463
|
-
const gridTerms = {
|
|
50464
|
-
// for filter panel
|
|
50465
|
-
page: "Página",
|
|
50466
|
-
more: "mais",
|
|
50467
|
-
to: "para",
|
|
50468
|
-
of: "de",
|
|
50469
|
-
next: "Próximo",
|
|
50470
|
-
last: "Último",
|
|
50471
|
-
first: "Primeiro",
|
|
50472
|
-
previous: "Anterior",
|
|
50473
|
-
loadingOoo: "Carregar",
|
|
50474
|
-
// for set filter
|
|
50475
|
-
selectAll: "Selecionar tudo",
|
|
50476
|
-
searchOoo: "Procurar",
|
|
50477
|
-
blanks: "Vazio",
|
|
50478
|
-
// for number filter and text filter
|
|
50479
|
-
filterOoo: "Filtrar",
|
|
50480
|
-
applyFilter: "Aplicar filtro",
|
|
50481
|
-
// for number filter
|
|
50482
|
-
equals: "Igual",
|
|
50483
|
-
lessThan: "Menor que",
|
|
50484
|
-
greaterThan: "Maior que",
|
|
50485
|
-
// for text filter
|
|
50486
|
-
contains: "Contém",
|
|
50487
|
-
startsWith: "Começa com",
|
|
50488
|
-
endsWith: "Termina com",
|
|
50489
|
-
// the header of the default group column
|
|
50490
|
-
group: "Grupo",
|
|
50491
|
-
// tool panel
|
|
50492
|
-
columns: "Colunas",
|
|
50493
|
-
rowGroupColumns: "Colunas do grupo de linhas",
|
|
50494
|
-
rowGroupColumnsEmptyMessage: "Colunas do grupo de linhas vazias",
|
|
50495
|
-
valueColumns: "Valores das colunas",
|
|
50496
|
-
pivotMode: "Modo pivô",
|
|
50497
|
-
groups: "Grupos",
|
|
50498
|
-
values: "Valores",
|
|
50499
|
-
pivots: "Pivôs",
|
|
50500
|
-
valueColumnsEmptyMessage: "Valores de colunas vazias",
|
|
50501
|
-
pivotColumnsEmptyMessage: "Pivôs de colunas vazias",
|
|
50502
|
-
toolPanelButton: "Botão de painel de ferramentas",
|
|
50503
|
-
// other
|
|
50504
|
-
noRowsToShow: "Não há registros para mostrar.",
|
|
50505
|
-
// enterprise menu
|
|
50506
|
-
pinColumn: "Fixar coluna",
|
|
50507
|
-
valueAggregation: "Agregar valor",
|
|
50508
|
-
autosizeThiscolumn: "Redimensionar esta coluna",
|
|
50509
|
-
autosizeAllColumns: "Redimensionar todas colunas",
|
|
50510
|
-
groupBy: "Agrupar por",
|
|
50511
|
-
ungroupBy: "Desagrupar por",
|
|
50512
|
-
resetColumns: "Resetar colunas",
|
|
50513
|
-
expandAll: "Expandir tudo",
|
|
50514
|
-
collapseAll: "Contrair tudo",
|
|
50515
|
-
toolPanel: "Painel de ferramentas",
|
|
50516
|
-
export: "Exportar",
|
|
50517
|
-
csvExport: "Exportar para CSV",
|
|
50518
|
-
excelExport: "Exportar para Excel",
|
|
50519
|
-
// enterprise menu pinning
|
|
50520
|
-
pinLeft: "Fixar coluna",
|
|
50521
|
-
pinRight: "Fixar a direita",
|
|
50522
|
-
noPin: "Desfixar coluna",
|
|
50523
|
-
// enterprise menu aggregation and status panel
|
|
50524
|
-
sum: "Soma",
|
|
50525
|
-
min: "Mínimo",
|
|
50526
|
-
max: "Máximo",
|
|
50527
|
-
none: "Nenhum",
|
|
50528
|
-
count: "Contagem",
|
|
50529
|
-
average: "Média",
|
|
50530
|
-
// standard menu
|
|
50531
|
-
copy: "Copiar",
|
|
50532
|
-
copyWithHeaders: "Copiar com cabeçalho",
|
|
50533
|
-
ctrlC: "Ctrl+C",
|
|
50534
|
-
paste: "Colar",
|
|
50535
|
-
ctrlV: "Ctrl+V"
|
|
50536
|
-
};
|
|
50537
|
-
|
|
50538
50476
|
const buildEditorMetadata = (descriptor, eGridCell, dataUnit, editionManager) => {
|
|
50539
50477
|
return Object.assign(Object.assign({}, searchColumn.buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
|
|
50540
50478
|
};
|
|
@@ -51279,11 +51217,14 @@ class GridEditionManager {
|
|
|
51279
51217
|
}
|
|
51280
51218
|
isColEditable(fieldName) {
|
|
51281
51219
|
const fieldDefinition = this._dataUnit.getField(fieldName);
|
|
51282
|
-
if (fieldDefinition) {
|
|
51220
|
+
if (fieldDefinition && !this.isTypeFile(fieldDefinition)) {
|
|
51283
51221
|
return !fieldDefinition.readOnly;
|
|
51284
51222
|
}
|
|
51285
51223
|
return false;
|
|
51286
51224
|
}
|
|
51225
|
+
isTypeFile(file) {
|
|
51226
|
+
return file.userInterface === core.UserInterface.FILE;
|
|
51227
|
+
}
|
|
51287
51228
|
isSecondClick(cellClicked) {
|
|
51288
51229
|
if (!this._lastCellClicked) {
|
|
51289
51230
|
return false;
|
|
@@ -64803,6 +64744,74 @@ var MenuModule = {
|
|
|
64803
64744
|
]
|
|
64804
64745
|
};
|
|
64805
64746
|
|
|
64747
|
+
function buildLocaleText(i18n) {
|
|
64748
|
+
return ({
|
|
64749
|
+
page: i18n("ez-grid.pageLabel"),
|
|
64750
|
+
more: i18n("ez-grid.remainingPageLabel"),
|
|
64751
|
+
to: i18n("ez-grid.remainingTotalLabel"),
|
|
64752
|
+
of: i18n("ez-grid.remainingTotalLabel"),
|
|
64753
|
+
next: i18n("ez-grid.nextPage"),
|
|
64754
|
+
previous: i18n("ez-grid.previousPage"),
|
|
64755
|
+
loadingOoo: i18n("app.loading"),
|
|
64756
|
+
noRowsToShow: i18n("ez-grid.noRowsToShow"),
|
|
64757
|
+
pinColumn: i18n("ez-grid.pinColumn"),
|
|
64758
|
+
unpinColumn: i18n("ez-grid.unpinColumn"),
|
|
64759
|
+
filterOoo: i18n("ez-grid.filter"),
|
|
64760
|
+
sortAscending: i18n("ez-grid.sortAscending"),
|
|
64761
|
+
sortDescending: i18n("ez-grid.sortDescending"),
|
|
64762
|
+
last: i18n("ez-grid.last"),
|
|
64763
|
+
first: i18n("ez-grid.first"),
|
|
64764
|
+
selectAll: i18n("ez-grid.selectAll"),
|
|
64765
|
+
searchOoo: i18n("ez-grid.searchOoo"),
|
|
64766
|
+
blanks: i18n("ez-grid.blanks"),
|
|
64767
|
+
applyFilter: i18n("ez-grid.applyFilter"),
|
|
64768
|
+
equals: i18n("ez-grid.equals"),
|
|
64769
|
+
lessThan: i18n("ez-grid.lessThan"),
|
|
64770
|
+
greaterThan: i18n("ez-grid.greaterThan"),
|
|
64771
|
+
contains: i18n("ez-grid.contains"),
|
|
64772
|
+
startsWith: i18n("ez-grid.startsWith"),
|
|
64773
|
+
endsWith: i18n("ez-grid.endsWith"),
|
|
64774
|
+
group: i18n("ez-grid.group"),
|
|
64775
|
+
columns: i18n("ez-grid.columns"),
|
|
64776
|
+
rowGroupColumns: i18n("ez-grid.rowGroupColumns"),
|
|
64777
|
+
rowGroupColumnsEmptyMessage: i18n("ez-grid.rowGroupColumnsEmptyMessage"),
|
|
64778
|
+
valueColumns: i18n("ez-grid.valueColumns"),
|
|
64779
|
+
pivotMode: i18n("ez-grid.pivotMode"),
|
|
64780
|
+
groups: i18n("ez-grid.groups"),
|
|
64781
|
+
values: i18n("ez-grid.values"),
|
|
64782
|
+
pivots: i18n("ez-grid.pivots"),
|
|
64783
|
+
valueColumnsEmptyMessage: i18n("ez-grid.valueColumnsEmptyMessage"),
|
|
64784
|
+
pivotColumnsEmptyMessage: i18n("ez-grid.pivotColumnsEmptyMessage"),
|
|
64785
|
+
toolPanelButton: i18n("ez-grid.toolPanelButton"),
|
|
64786
|
+
valueAggregation: i18n("ez-grid.valueAggregation"),
|
|
64787
|
+
autosizeThiscolumn: i18n("ez-grid.autosizeThiscolumn"),
|
|
64788
|
+
autosizeAllColumns: i18n("ez-grid.autosizeAllColumns"),
|
|
64789
|
+
groupBy: i18n("ez-grid.groupBy"),
|
|
64790
|
+
ungroupBy: i18n("ez-grid.ungroupBy"),
|
|
64791
|
+
resetColumns: i18n("ez-grid.resetColumns"),
|
|
64792
|
+
expandAll: i18n("ez-grid.expandAll"),
|
|
64793
|
+
collapseAll: i18n("ez-grid.collapseAll"),
|
|
64794
|
+
toolPanel: i18n("ez-grid.toolPanel"),
|
|
64795
|
+
export: i18n("ez-grid.export"),
|
|
64796
|
+
csvExport: i18n("ez-grid.csvExport"),
|
|
64797
|
+
excelExport: i18n("ez-grid.excelExport"),
|
|
64798
|
+
pinLeft: i18n("ez-grid.pinLeft"),
|
|
64799
|
+
pinRight: i18n("ez-grid.pinRight"),
|
|
64800
|
+
noPin: i18n("ez-grid.noPin"),
|
|
64801
|
+
sum: i18n("ez-grid.sum"),
|
|
64802
|
+
min: i18n("ez-grid.min"),
|
|
64803
|
+
max: i18n("ez-grid.max"),
|
|
64804
|
+
none: i18n("ez-grid.none"),
|
|
64805
|
+
count: i18n("ez-grid.count"),
|
|
64806
|
+
average: i18n("ez-grid.average"),
|
|
64807
|
+
copy: i18n("ez-grid.copy"),
|
|
64808
|
+
copyWithHeaders: i18n("ez-grid.copyWithHeaders"),
|
|
64809
|
+
ctrlC: i18n("ez-grid.ctrlC"),
|
|
64810
|
+
paste: i18n("ez-grid.paste"),
|
|
64811
|
+
ctrlV: i18n("ez-grid.ctrlV"),
|
|
64812
|
+
});
|
|
64813
|
+
}
|
|
64814
|
+
|
|
64806
64815
|
class AgGridController {
|
|
64807
64816
|
configFilterColumn(filterColumn) {
|
|
64808
64817
|
this._filterColumn = filterColumn;
|
|
@@ -64957,6 +64966,7 @@ class AgGridController {
|
|
|
64957
64966
|
}
|
|
64958
64967
|
if (this._grid === undefined) {
|
|
64959
64968
|
LicenseManager.setLicenseKey(core.ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
|
|
64969
|
+
this._i18n = options.i18n;
|
|
64960
64970
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
64961
64971
|
this._selectionChangeCallback = options.onSelectionChange;
|
|
64962
64972
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
@@ -64970,7 +64980,7 @@ class AgGridController {
|
|
|
64970
64980
|
}
|
|
64971
64981
|
this._gridOptions = {
|
|
64972
64982
|
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
64973
|
-
localeText:
|
|
64983
|
+
localeText: buildLocaleText(this._options.i18n),
|
|
64974
64984
|
enableRangeSelection: this._multipleSelection,
|
|
64975
64985
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
64976
64986
|
sortingOrder: ['desc', 'asc', null],
|
|
@@ -65084,7 +65094,7 @@ class AgGridController {
|
|
|
65084
65094
|
buildMenuItemOptionSort(params, sortOrder) {
|
|
65085
65095
|
return {
|
|
65086
65096
|
icon: sortOrder === 'asc' ? `<i class='ez-icon-ordem-ascendente'></i>` : `<i class='ez-icon-ordem-descendente'></i>`,
|
|
65087
|
-
name: sortOrder === 'asc' ?
|
|
65097
|
+
name: sortOrder === 'asc' ? this._i18n("ez-grid.sortAscending") : this._i18n("ez-grid.sortDescending"),
|
|
65088
65098
|
action: () => this.sortDataByColumn(params, sortOrder),
|
|
65089
65099
|
};
|
|
65090
65100
|
}
|
|
@@ -65093,7 +65103,7 @@ class AgGridController {
|
|
|
65093
65103
|
const columnLabel = params.column.getColDef().headerName;
|
|
65094
65104
|
return {
|
|
65095
65105
|
icon: `<i class='ez-icon-filter'></i>`,
|
|
65096
|
-
name:
|
|
65106
|
+
name: this._i18n("ez-grid.filter"),
|
|
65097
65107
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
65098
65108
|
};
|
|
65099
65109
|
}
|
|
@@ -65119,7 +65129,7 @@ class AgGridController {
|
|
|
65119
65129
|
const isPinned = params.column.isPinned();
|
|
65120
65130
|
return {
|
|
65121
65131
|
icon: `<i class='ez-icon-${isPinned ? 'un-pin' : 'push-pin'}'></i>`,
|
|
65122
|
-
name: isPinned ?
|
|
65132
|
+
name: isPinned ? this._i18n("ez-grid.unpinColumn") : this._i18n("ez-grid.pinColumn"),
|
|
65123
65133
|
action: () => {
|
|
65124
65134
|
columnApi.applyColumnState({
|
|
65125
65135
|
state: [{ colId: column.getColId(), pinned: column.isPinned() ? null : 'left' }],
|
|
@@ -65497,7 +65507,9 @@ class AgGridController {
|
|
|
65497
65507
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
65498
65508
|
}
|
|
65499
65509
|
setColumnsDef(cols) {
|
|
65500
|
-
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: this.CHECK_BOX_COL_ID, checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection
|
|
65510
|
+
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: this.CHECK_BOX_COL_ID, checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection ?
|
|
65511
|
+
{ headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }
|
|
65512
|
+
: { headerComponentParams: { displayName: '' } }));
|
|
65501
65513
|
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
65502
65514
|
if (this._statusResolver != undefined) {
|
|
65503
65515
|
newColDefs.push({
|
|
@@ -65518,6 +65530,7 @@ class AgGridController {
|
|
|
65518
65530
|
cellStyle: {
|
|
65519
65531
|
'text-align': 'center',
|
|
65520
65532
|
},
|
|
65533
|
+
suppressNavigable: true,
|
|
65521
65534
|
});
|
|
65522
65535
|
}
|
|
65523
65536
|
cols.forEach(c => {
|
|
@@ -65721,7 +65734,7 @@ class AgGridController {
|
|
|
65721
65734
|
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get('gridHeaderTooltip');
|
|
65722
65735
|
}
|
|
65723
65736
|
else if (propSortable === false) {
|
|
65724
|
-
tooltip = '
|
|
65737
|
+
tooltip = this._i18n('ez-grid.columnCantBeOrder');
|
|
65725
65738
|
}
|
|
65726
65739
|
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);
|
|
65727
65740
|
return this._editionManager.configureColumn({
|
|
@@ -65746,7 +65759,11 @@ class AgGridController {
|
|
|
65746
65759
|
return "";
|
|
65747
65760
|
}
|
|
65748
65761
|
if (params.value instanceof Promise) {
|
|
65749
|
-
return "
|
|
65762
|
+
return `${this._i18n("app.loading")}...`;
|
|
65763
|
+
}
|
|
65764
|
+
if (source.userInterface === core.UserInterface.HTML) {
|
|
65765
|
+
this.setHTMLRender(params, source);
|
|
65766
|
+
return "";
|
|
65750
65767
|
}
|
|
65751
65768
|
const customFormatter = this._customFormatters.get(source.name);
|
|
65752
65769
|
if (customFormatter) {
|
|
@@ -65764,6 +65781,24 @@ class AgGridController {
|
|
|
65764
65781
|
editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(constants.PRESENTATION_FROM_COL_PROP_NAME))
|
|
65765
65782
|
});
|
|
65766
65783
|
}
|
|
65784
|
+
setHTMLRender(params, source) {
|
|
65785
|
+
const htmlSanitized = purify.purify.sanitize(params.value);
|
|
65786
|
+
params.colDef.cellRenderer = (cellParams) => {
|
|
65787
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65788
|
+
const element = document.createElement('span');
|
|
65789
|
+
element.innerHTML = htmlSanitized;
|
|
65790
|
+
return element;
|
|
65791
|
+
}
|
|
65792
|
+
return cellParams.value;
|
|
65793
|
+
};
|
|
65794
|
+
params.colDef.cellStyle = (cellParams) => {
|
|
65795
|
+
const defaultStyle = this.getStyleByColumn(source);
|
|
65796
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65797
|
+
return Object.assign(defaultStyle, { padding: 0 });
|
|
65798
|
+
}
|
|
65799
|
+
return defaultStyle;
|
|
65800
|
+
};
|
|
65801
|
+
}
|
|
65767
65802
|
setCustomFormatters(customFormatters) {
|
|
65768
65803
|
this._customFormatters = customFormatters;
|
|
65769
65804
|
}
|
|
@@ -65820,10 +65855,10 @@ class AgGridController {
|
|
|
65820
65855
|
}
|
|
65821
65856
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.SWITCH) {
|
|
65822
65857
|
if ((params === null || params === void 0 ? void 0 : params.value) === 'S' || (params === null || params === void 0 ? void 0 : params.value) === true || (params === null || params === void 0 ? void 0 : params.value) === 'true') {
|
|
65823
|
-
return
|
|
65858
|
+
return this._i18n("app.yes");
|
|
65824
65859
|
}
|
|
65825
65860
|
else if ((params === null || params === void 0 ? void 0 : params.value) === 'N' || (params === null || params === void 0 ? void 0 : params.value) === false || (params === null || params === void 0 ? void 0 : params.value) === 'false') {
|
|
65826
|
-
return
|
|
65861
|
+
return this._i18n("app.no");
|
|
65827
65862
|
}
|
|
65828
65863
|
}
|
|
65829
65864
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.SEARCH) {
|
|
@@ -66046,27 +66081,30 @@ function enableSelectAll(total) {
|
|
|
66046
66081
|
return total !== undefined;
|
|
66047
66082
|
}
|
|
66048
66083
|
function buildSelectAllLabel(allRecordSelected, count, total) {
|
|
66084
|
+
const i18n = index.getI18n();
|
|
66049
66085
|
if (allRecordSelected)
|
|
66050
|
-
return '
|
|
66086
|
+
return i18n('utils.selectAllPage');
|
|
66051
66087
|
if (total === undefined)
|
|
66052
|
-
return
|
|
66053
|
-
return
|
|
66088
|
+
return i18n('utils.loadingAllRecords', { count });
|
|
66089
|
+
return i18n('utils.selectAllRecords', { total });
|
|
66054
66090
|
}
|
|
66055
66091
|
function buildSelectAllTitle(total) {
|
|
66056
66092
|
if (enableSelectAll(total))
|
|
66057
66093
|
return '';
|
|
66058
|
-
|
|
66094
|
+
const i18n = index.getI18n();
|
|
66095
|
+
return i18n('utils.waitForLoad');
|
|
66059
66096
|
}
|
|
66060
66097
|
function getText(selectionCount, allSelectedRecords) {
|
|
66098
|
+
const i18n = index.getI18n();
|
|
66061
66099
|
if (allSelectedRecords) {
|
|
66062
|
-
return
|
|
66100
|
+
return i18n('utils.allRecordsSelected', { selectionCount });
|
|
66063
66101
|
}
|
|
66064
|
-
const
|
|
66065
|
-
return
|
|
66102
|
+
const plural = selectionCount > 1 ? "s" : "";
|
|
66103
|
+
return i18n('utils.selectedRecords', { selectionCount, plural });
|
|
66066
66104
|
}
|
|
66067
66105
|
|
|
66068
66106
|
const SelectionCounter = (props) => {
|
|
66069
|
-
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose } = props;
|
|
66107
|
+
const { selectionCount, currentPageSelected, allRecordSelected, paginationInfo, canSelectAll, onSelectAll, onSelectPage, onClearAll, onClose, i18n } = props;
|
|
66070
66108
|
const { total, hasMore, count } = paginationInfo || {};
|
|
66071
66109
|
const shouldRenderSelectionButton = () => {
|
|
66072
66110
|
if ((!allRecordSelected && selectionCount === total) || (allRecordSelected && !hasMore))
|
|
@@ -66075,16 +66113,16 @@ const SelectionCounter = (props) => {
|
|
|
66075
66113
|
return canSelectAll;
|
|
66076
66114
|
return !!paginationInfo && (currentPageSelected || allRecordSelected);
|
|
66077
66115
|
};
|
|
66078
|
-
return (index.h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")),
|
|
66079
|
-
index.h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" },
|
|
66080
|
-
index.h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" },
|
|
66081
|
-
index.h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
|
|
66082
|
-
index.h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
66116
|
+
return (index$1.h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")),
|
|
66117
|
+
index$1.h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" },
|
|
66118
|
+
index$1.h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" },
|
|
66119
|
+
index$1.h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
|
|
66120
|
+
index$1.h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
66083
66121
|
shouldRenderSelectionButton() &&
|
|
66084
|
-
index.h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
66085
|
-
index.h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: "
|
|
66086
|
-
index.h("button", Object.assign({ class: "grid__btn-close", title: "
|
|
66087
|
-
index.h("ez-icon", { iconName: "close" })))));
|
|
66122
|
+
index$1.h("ez-button", Object.assign({ key: "selectAllRecordsEzButton", title: buildSelectAllTitle(total), enabled: enableSelectAll(total), class: "ez-margin-right--medium", label: buildSelectAllLabel(allRecordSelected, count, total), mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
66123
|
+
index$1.h("ez-button", Object.assign({ key: "clearAllSelectionEzButton", class: "grid__btn-clear", label: i18n("ez-grid.clearSelection"), mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
66124
|
+
index$1.h("button", Object.assign({ class: "grid__btn-close", title: i18n("app.close"), onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
66125
|
+
index$1.h("ez-icon", { iconName: "close" })))));
|
|
66088
66126
|
};
|
|
66089
66127
|
function getElementID(sufix) {
|
|
66090
66128
|
return {
|
|
@@ -66226,14 +66264,13 @@ const matches = (text, filter) => {
|
|
|
66226
66264
|
};
|
|
66227
66265
|
const EzGrid = class {
|
|
66228
66266
|
constructor(hostRef) {
|
|
66229
|
-
index.registerInstance(this, hostRef);
|
|
66230
|
-
this.ezColumnStateChange = index.createEvent(this, "ezColumnStateChange", 7);
|
|
66231
|
-
this.ezSelectionChange = index.createEvent(this, "ezSelectionChange", 7);
|
|
66232
|
-
this.ezDoubleClick = index.createEvent(this, "ezDoubleClick", 7);
|
|
66233
|
-
this.configChange = index.createEvent(this, "configChange", 7);
|
|
66234
|
-
this.componentReady = index.createEvent(this, "componentReady", 7);
|
|
66267
|
+
index$1.registerInstance(this, hostRef);
|
|
66268
|
+
this.ezColumnStateChange = index$1.createEvent(this, "ezColumnStateChange", 7);
|
|
66269
|
+
this.ezSelectionChange = index$1.createEvent(this, "ezSelectionChange", 7);
|
|
66270
|
+
this.ezDoubleClick = index$1.createEvent(this, "ezDoubleClick", 7);
|
|
66271
|
+
this.configChange = index$1.createEvent(this, "configChange", 7);
|
|
66272
|
+
this.componentReady = index$1.createEvent(this, "componentReady", 7);
|
|
66235
66273
|
this._gridController = new AgGridController(false);
|
|
66236
|
-
this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
|
|
66237
66274
|
this._customEditor = new Map();
|
|
66238
66275
|
this._customRenders = new Map();
|
|
66239
66276
|
this._paginationInfo = undefined;
|
|
@@ -66627,7 +66664,7 @@ const EzGrid = class {
|
|
|
66627
66664
|
await ((_a = this._cancelPaginationPopoverElement) === null || _a === void 0 ? void 0 : _a.hide());
|
|
66628
66665
|
}
|
|
66629
66666
|
renderCancelPagination() {
|
|
66630
|
-
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' }, "
|
|
66667
|
+
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")))));
|
|
66631
66668
|
}
|
|
66632
66669
|
handleShowCancelPagination() {
|
|
66633
66670
|
var _a, _b, _c;
|
|
@@ -66643,7 +66680,7 @@ const EzGrid = class {
|
|
|
66643
66680
|
if (!this._paginationInfo)
|
|
66644
66681
|
return null;
|
|
66645
66682
|
const { currentPage, hasMore } = this._paginationInfo;
|
|
66646
|
-
return (index.h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, this.renderCancelPagination(), index.h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, index.h("span", { class: "grid-header__pagination-label" }, this.shouldPresentPaginationLabel() && index.h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.shouldPresentPaginationLabel() && this._getRemainingPageLabel())), index.h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, index.h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "
|
|
66683
|
+
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") }))));
|
|
66647
66684
|
}
|
|
66648
66685
|
shouldPresentPaginationLabel() {
|
|
66649
66686
|
return this.paginationCounterMode === 'show' || this.paginationCounterMode === 'auto';
|
|
@@ -66683,7 +66720,8 @@ const EzGrid = class {
|
|
|
66683
66720
|
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
66684
66721
|
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
66685
66722
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66686
|
-
suppressHorizontalScroll: this.suppressHorizontalScroll
|
|
66723
|
+
suppressHorizontalScroll: this.suppressHorizontalScroll,
|
|
66724
|
+
i18n: this.i18n
|
|
66687
66725
|
});
|
|
66688
66726
|
if (this.config) {
|
|
66689
66727
|
this.observeConfig(this.config);
|
|
@@ -66716,7 +66754,7 @@ const EzGrid = class {
|
|
|
66716
66754
|
}
|
|
66717
66755
|
_getRemainingPageLabel() {
|
|
66718
66756
|
const { total, count } = this._paginationInfo;
|
|
66719
|
-
return `${total == undefined ?
|
|
66757
|
+
return `${total == undefined ? this.i18n("ez-grid.remainingPageLabel", { count: count + 1 }) : this.i18n("ez-grid.remainingTotalLabel", { total })}`;
|
|
66720
66758
|
}
|
|
66721
66759
|
_hasToShowCancelPagination() {
|
|
66722
66760
|
var _a;
|
|
@@ -66792,10 +66830,11 @@ const EzGrid = class {
|
|
|
66792
66830
|
}
|
|
66793
66831
|
componentDidRender() {
|
|
66794
66832
|
windowInstace.addEventListener('onSubmitFilter', () => {
|
|
66795
|
-
ApplicationUtils.ApplicationUtils.info(this.
|
|
66833
|
+
ApplicationUtils.ApplicationUtils.info(this.i18n("ez-grid.filterAppliedSuccess"));
|
|
66796
66834
|
});
|
|
66797
66835
|
}
|
|
66798
|
-
componentWillLoad() {
|
|
66836
|
+
async componentWillLoad() {
|
|
66837
|
+
this.i18n = await index.initI18n();
|
|
66799
66838
|
this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
|
|
66800
66839
|
if (!this.dataUnit.name.includes("InMemoryDataUnit"))
|
|
66801
66840
|
return;
|
|
@@ -66834,12 +66873,12 @@ const EzGrid = class {
|
|
|
66834
66873
|
if (!this._paginationInfo)
|
|
66835
66874
|
return;
|
|
66836
66875
|
this.nextRecord();
|
|
66837
|
-
}, { description: "
|
|
66876
|
+
}, { description: this.i18n("ez-grid.nextRecord"), element: this._element })
|
|
66838
66877
|
.bind("ctrl + ,", () => {
|
|
66839
66878
|
if (!this._paginationInfo)
|
|
66840
66879
|
return;
|
|
66841
66880
|
this.previousRecord();
|
|
66842
|
-
}, { description: "
|
|
66881
|
+
}, { description: this.i18n("ez-grid.previousRecord"), element: this._element })
|
|
66843
66882
|
.bind("ctrl + alt + ArrowLeft", () => {
|
|
66844
66883
|
if (!this._paginationInfo)
|
|
66845
66884
|
return;
|
|
@@ -66847,7 +66886,7 @@ const EzGrid = class {
|
|
|
66847
66886
|
if (currentPage > 0) {
|
|
66848
66887
|
this.previousPage();
|
|
66849
66888
|
}
|
|
66850
|
-
}, { description: "
|
|
66889
|
+
}, { description: this.i18n("ez-grid.previousPage"), element: this._element })
|
|
66851
66890
|
.bind("ctrl + alt + ArrowRight", () => {
|
|
66852
66891
|
if (!this._paginationInfo)
|
|
66853
66892
|
return;
|
|
@@ -66855,7 +66894,7 @@ const EzGrid = class {
|
|
|
66855
66894
|
if (hasMore) {
|
|
66856
66895
|
this.nextPage();
|
|
66857
66896
|
}
|
|
66858
|
-
}, { description: "
|
|
66897
|
+
}, { description: this.i18n("ez-grid.nextPage"), element: this._element });
|
|
66859
66898
|
if (this.useSearchColumn) {
|
|
66860
66899
|
this._keyboardManager.bind(searchColumn.SHORTCUT_SEARCH_FIELD, async () => {
|
|
66861
66900
|
if (!this._container || !this._ezPopoverSearchColumn)
|
|
@@ -66863,7 +66902,7 @@ const EzGrid = class {
|
|
|
66863
66902
|
const container = this._container.getBoundingClientRect();
|
|
66864
66903
|
await searchColumn.focusOnFieldSerch(this._columnSearch);
|
|
66865
66904
|
this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (searchColumn.SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
66866
|
-
}, { description: searchColumn
|
|
66905
|
+
}, { description: this.i18n("ez-grid.searchColumn"), element: this._element });
|
|
66867
66906
|
}
|
|
66868
66907
|
}
|
|
66869
66908
|
async removeShortcuts() {
|
|
@@ -66895,23 +66934,23 @@ const EzGrid = class {
|
|
|
66895
66934
|
}
|
|
66896
66935
|
render() {
|
|
66897
66936
|
var _a;
|
|
66898
|
-
return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: {
|
|
66937
|
+
return (index$1.h(index$1.Host, { "no-header": this.hideHeader() }, index$1.h("div", { class: {
|
|
66899
66938
|
'grid__container ez-grid': true,
|
|
66900
66939
|
'outline-mode': this.outlineMode,
|
|
66901
66940
|
'shadow-mode': !this.outlineMode,
|
|
66902
66941
|
'no-padding': this.compact,
|
|
66903
66942
|
'header-overlay': !this.hideHeader(),
|
|
66904
66943
|
'no-scroll': this.suppressHorizontalScroll
|
|
66905
|
-
}, ref: elem => (this._container = elem), tabindex: "0" }), index.h("div", { class: {
|
|
66944
|
+
}, ref: elem => (this._container = elem), tabindex: "0" }), index$1.h("div", { class: {
|
|
66906
66945
|
'ez-box ez-padding--small grid-header': true,
|
|
66907
66946
|
'outline-mode': this.outlineMode,
|
|
66908
66947
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
66909
|
-
}, tabindex: "0" }, index.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.h("div", { class: "grid-header__position" }, index.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index.h("slot", { name: "leftButtons" })), this.getPaginationControl())), index.h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66948
|
+
}, 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" })), this.getPaginationControl())), 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
|
|
66910
66949
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66911
|
-
` }, index.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, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), index.h("div", { class: "grid__footer" }, index.h("slot", { name: "footer" }))));
|
|
66950
|
+
` }, 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" }))));
|
|
66912
66951
|
}
|
|
66913
66952
|
static get assetsDirs() { return ["../assets"]; }
|
|
66914
|
-
get _element() { return index.getElement(this); }
|
|
66953
|
+
get _element() { return index$1.getElement(this); }
|
|
66915
66954
|
static get watchers() { return {
|
|
66916
66955
|
"config": ["observeConfig"],
|
|
66917
66956
|
"_paginationInfo": ["updatePaginationTooltip"],
|