@sankhyalabs/ezui 5.22.0-ms.13 → 5.22.0-ms.15
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/FormLayout-18853e70.js +27 -0
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- 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-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
- 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 +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +4 -1218
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +19 -11
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +4 -4
- package/dist/cjs/ez-combo-box.cjs.entry.js +9 -14
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +7 -4
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/{ez-dropdown_2.cjs.entry.js → ez-dropdown.cjs.entry.js} +2 -63
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +19 -11
- package/dist/cjs/ez-form.cjs.entry.js +87 -6
- package/dist/cjs/ez-grid.cjs.entry.js +267 -46
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +12 -6
- package/dist/cjs/ez-list.cjs.entry.js +3 -3
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +8 -4
- package/dist/cjs/ez-modal.cjs.entry.js +6 -2
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -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 +6 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
- package/dist/cjs/ez-search.cjs.entry.js +5 -4
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +149 -0
- package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- 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 +25 -4
- package/dist/cjs/ez-text-input.cjs.entry.js +84 -101
- package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +110 -30
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +15 -6
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +21 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{DataBinder-e92314c2.js → search-column-1d3c9fa5.js} +73 -13
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
- package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
- package/dist/collection/components/ez-check/ez-check.css +9 -0
- package/dist/collection/components/ez-check/ez-check.js +34 -9
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +25 -14
- package/dist/collection/components/ez-date-input/ez-date-input.js +19 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +19 -1
- package/dist/collection/components/ez-dialog/ez-dialog.css +24 -21
- package/dist/collection/components/ez-dialog/ez-dialog.js +5 -2
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
- package/dist/collection/components/ez-form/ez-form.js +124 -4
- package/dist/collection/components/ez-form-view/ez-form-view.css +8 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +3 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +148 -20
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -4
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +34 -6
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
- package/dist/collection/components/ez-grid/ez-grid.css +4 -0
- package/dist/collection/components/ez-grid/ez-grid.js +79 -11
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -5
- package/dist/collection/components/ez-icon/ez-icon.js +28 -5
- package/dist/collection/components/ez-list/ez-list.js +2 -2
- package/dist/collection/components/ez-modal/ez-modal.js +5 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
- package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +19 -1
- package/dist/collection/components/ez-popup/ez-popup.js +5 -1
- package/dist/collection/components/ez-search/ez-search.js +19 -1
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +122 -80
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
- package/dist/collection/components/ez-text-area/ez-text-area.js +47 -2
- package/dist/collection/components/ez-text-input/ez-text-input.css +27 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +124 -73
- package/dist/collection/components/ez-time-input/ez-time-input.js +19 -1
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +54 -12
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +240 -46
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/form/DataBinder.js +43 -14
- package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
- package/dist/collection/utils/form/interfaces/index.js +1 -1
- package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/search/types.js +7 -0
- package/dist/collection/utils/searchColumn/search-column.js +35 -0
- package/dist/custom-elements/index.d.ts +18 -0
- package/dist/custom-elements/index.js +1600 -302
- package/dist/esm/FormLayout-071d324c.js +27 -0
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- 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 +46 -0
- 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 +1 -1
- package/dist/esm/ez-card-item_2.entry.js +2 -1216
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +19 -11
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_3.entry.js +3 -3
- package/dist/esm/ez-combo-box.entry.js +9 -14
- package/dist/esm/ez-date-input.entry.js +3 -2
- package/dist/esm/ez-date-time-input.entry.js +3 -2
- package/dist/esm/ez-dialog.entry.js +7 -4
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/{ez-dropdown_2.entry.js → ez-dropdown.entry.js} +3 -63
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +20 -12
- package/dist/esm/ez-form.entry.js +86 -5
- package/dist/esm/ez-grid.entry.js +263 -42
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +12 -6
- package/dist/esm/ez-list.entry.js +3 -3
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +8 -4
- package/dist/esm/ez-modal.entry.js +6 -2
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +3 -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 +6 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +393 -0
- package/dist/esm/ez-search-result-list.entry.js +93 -0
- package/dist/esm/ez-search.entry.js +5 -4
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +145 -0
- package/dist/esm/ez-split-button.entry.js +16 -7
- package/dist/esm/ez-split-item.entry.js +2 -2
- 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 +25 -4
- package/dist/esm/ez-text-input.entry.js +84 -101
- package/dist/esm/ez-time-input.entry.js +3 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +110 -30
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +15 -6
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +21 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{DataBinder-9c877244.js → search-column-35f4ad93.js} +69 -15
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
- package/dist/ezui/p-01b72d7e.entry.js +1 -0
- package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
- package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
- package/dist/ezui/{p-d47dabdf.entry.js → p-07594da0.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
- package/dist/ezui/p-175154a0.js +1 -0
- package/dist/ezui/p-18e71523.entry.js +1 -0
- package/dist/ezui/p-1fefb37a.entry.js +1 -0
- package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
- package/dist/ezui/{p-f2ab6b58.entry.js → p-220b9944.entry.js} +1 -1
- package/dist/ezui/p-28987410.entry.js +1 -0
- package/dist/ezui/p-2d10bb18.entry.js +1 -0
- package/dist/ezui/{p-e06a9886.entry.js → p-2f351332.entry.js} +1 -1
- package/dist/ezui/p-30ffb9ed.js +1 -0
- package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
- package/dist/ezui/p-4a876b8b.entry.js +1 -0
- package/dist/ezui/p-4e66eaeb.entry.js +1 -0
- package/dist/ezui/p-5b85d3de.entry.js +1 -0
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-682931aa.entry.js +309 -0
- package/dist/ezui/p-6b2cc9b8.entry.js +1 -0
- package/dist/ezui/p-6b3fddee.entry.js +1 -0
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/p-700c1320.entry.js +1 -0
- package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
- package/dist/ezui/{p-4b67138e.entry.js → p-769632d5.entry.js} +1 -1
- package/dist/ezui/p-7ec3f335.entry.js +1 -0
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/{p-1bcfd88c.entry.js → p-87f5a060.entry.js} +1 -1
- package/dist/ezui/p-90c90351.entry.js +1 -0
- package/dist/ezui/p-90e91173.entry.js +1 -0
- package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
- package/dist/ezui/p-926a0bde.entry.js +1 -0
- package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
- package/dist/ezui/p-97d94ef3.entry.js +1 -0
- package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
- package/dist/ezui/p-a11827ca.entry.js +1 -0
- package/dist/ezui/p-b3b3c99a.entry.js +1 -0
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-dc73e1fe.entry.js → p-c7035d65.entry.js} +1 -1
- package/dist/ezui/p-c8e6204f.entry.js +1 -0
- package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
- package/dist/ezui/p-d2290004.entry.js +1 -0
- package/dist/ezui/p-d4d6d5fe.entry.js +1 -0
- package/dist/ezui/p-da66838e.entry.js +1 -0
- package/dist/ezui/p-dd7d305a.entry.js +1 -0
- package/dist/ezui/p-ddb22a70.entry.js +1 -0
- package/dist/ezui/{p-788467fe.entry.js → p-ddd0bd61.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/p-e4ae4ddb.entry.js +1 -0
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-d9dccec0.entry.js → p-e4ead194.entry.js} +1 -1
- package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
- package/dist/ezui/p-ea053063.entry.js +1 -0
- package/dist/ezui/p-ed48a632.entry.js +1 -0
- package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
- package/dist/types/components/ez-check/ez-check.d.ts +7 -2
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -2
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +1 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
- package/dist/types/components/ez-form/ez-form.d.ts +23 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +9 -3
- 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/editor/templates/SearchPlus.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +11 -0
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -0
- package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
- 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/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +2 -0
- package/dist/types/components/ez-search/ez-search.d.ts +4 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +8 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +21 -9
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +41 -5
- package/dist/types/components.d.ts +584 -20
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +4 -2
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
- package/dist/types/utils/form/interfaces/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/search/types.d.ts +12 -0
- package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
- package/package.json +6 -5
- package/react/components.d.ts +63 -60
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/dev.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +2 -2
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/dist/cjs/ICustomRender-6fafffce.js +0 -13
- package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
- package/dist/esm/ICustomRender-875b5a40.js +0 -13
- package/dist/esm/constants-4e0d35b7.js +0 -5
- package/dist/ezui/p-05e1f4e7.js +0 -1
- package/dist/ezui/p-0fa52b0f.entry.js +0 -1
- package/dist/ezui/p-17de16e5.entry.js +0 -1
- package/dist/ezui/p-17eabf46.entry.js +0 -1
- package/dist/ezui/p-1e6e99fc.entry.js +0 -1
- package/dist/ezui/p-20cb13fa.entry.js +0 -1
- package/dist/ezui/p-2f45506d.entry.js +0 -1
- package/dist/ezui/p-31b71e50.entry.js +0 -1
- package/dist/ezui/p-4607fb89.js +0 -1
- package/dist/ezui/p-56fe5341.entry.js +0 -1
- package/dist/ezui/p-6cdd3e0a.entry.js +0 -1
- package/dist/ezui/p-7d9d01c8.entry.js +0 -309
- package/dist/ezui/p-7fdd479f.entry.js +0 -1
- package/dist/ezui/p-a4cee65d.entry.js +0 -1
- package/dist/ezui/p-acddfb2e.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-c1527804.entry.js +0 -1
- package/dist/ezui/p-c297aa52.entry.js +0 -1
- package/dist/ezui/p-cb1535f7.entry.js +0 -1
- package/dist/ezui/p-cd07f8be.entry.js +0 -1
- package/dist/ezui/p-cf87aacb.entry.js +0 -1
- package/dist/ezui/p-e0261d23.entry.js +0 -1
- package/dist/ezui/p-e3544d23.entry.js +0 -1
- package/dist/ezui/p-ea54d056.entry.js +0 -1
- package/dist/ezui/p-ef5ec8d2.entry.js +0 -1
- package/dist/ezui/p-f5931caa.entry.js +0 -1
- package/dist/ezui/p-fbbdc57f.entry.js +0 -1
- package/dist/ezui/p-fd0a19d6.entry.js +0 -1
- package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9e5554cb.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
8
8
|
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
11
|
+
const FormLayout = require('./FormLayout-18853e70.js');
|
|
12
|
+
const searchColumn = require('./search-column-1d3c9fa5.js');
|
|
13
|
+
const constants = require('./constants-569271bc.js');
|
|
14
14
|
const FocusResolver = require('./FocusResolver-885f2173.js');
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -50250,14 +50250,20 @@ class DataSource {
|
|
|
50250
50250
|
return indexA - indexB;
|
|
50251
50251
|
});
|
|
50252
50252
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
50253
|
-
var _a;
|
|
50253
|
+
var _a, _b;
|
|
50254
50254
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
50255
50255
|
const props = new Map();
|
|
50256
50256
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
50257
50257
|
for (const value in properties) {
|
|
50258
50258
|
props.set(value, properties[value]);
|
|
50259
50259
|
}
|
|
50260
|
-
|
|
50260
|
+
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
|
+
columnDefs.push(col);
|
|
50262
|
+
if (f.userInterface === core.UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
|
|
50263
|
+
const descriptionCol = this.buildDescriptionColumn(f);
|
|
50264
|
+
columnDefs.push(descriptionCol);
|
|
50265
|
+
f.properties[constants.PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
|
|
50266
|
+
}
|
|
50261
50267
|
}
|
|
50262
50268
|
});
|
|
50263
50269
|
}
|
|
@@ -50267,6 +50273,19 @@ class DataSource {
|
|
|
50267
50273
|
console.warn(error);
|
|
50268
50274
|
}
|
|
50269
50275
|
}
|
|
50276
|
+
buildDescriptionColumn(field) {
|
|
50277
|
+
var _a, _b, _c, _d;
|
|
50278
|
+
const props = new Map();
|
|
50279
|
+
props.set(constants.PRESENTATION_FROM_COL_PROP_NAME, field.name);
|
|
50280
|
+
const descriptionFieldName = `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME}.${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD}`;
|
|
50281
|
+
this._dataUnit.addSourceFieldValue(descriptionFieldName, field.name);
|
|
50282
|
+
return {
|
|
50283
|
+
label: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELDLABEL} (${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONENTITY})`,
|
|
50284
|
+
name: descriptionFieldName,
|
|
50285
|
+
userInterface: core.UserInterface.SHORTTEXT,
|
|
50286
|
+
props
|
|
50287
|
+
};
|
|
50288
|
+
}
|
|
50270
50289
|
}
|
|
50271
50290
|
|
|
50272
50291
|
class EzGridCustomHeader {
|
|
@@ -50517,7 +50536,7 @@ const gridTerms = {
|
|
|
50517
50536
|
};
|
|
50518
50537
|
|
|
50519
50538
|
const buildEditorMetadata = (descriptor, eGridCell, dataUnit, editionManager) => {
|
|
50520
|
-
return Object.assign(Object.assign({},
|
|
50539
|
+
return Object.assign(Object.assign({}, searchColumn.buildFieldMetadata(descriptor)), { eGridCell, dataUnit, editionManager });
|
|
50521
50540
|
};
|
|
50522
50541
|
|
|
50523
50542
|
const MINIMIUM_WIDTH_TEXTAREA = 210;
|
|
@@ -50677,6 +50696,21 @@ const buildSwitch = (fieldMetadata) => {
|
|
|
50677
50696
|
return combo;
|
|
50678
50697
|
};
|
|
50679
50698
|
|
|
50699
|
+
const buildSearchPlus = ({ name, required, readOnly, dataUnit }) => {
|
|
50700
|
+
const ezSearch = core.HTMLBuilder.parseElement(`<ez-search-plus
|
|
50701
|
+
class="ez-grid grid_editor"
|
|
50702
|
+
mode="slim"
|
|
50703
|
+
suppress-empty-option=${required}
|
|
50704
|
+
enabled=${!readOnly}
|
|
50705
|
+
hide-description-input=${true}
|
|
50706
|
+
/>`);
|
|
50707
|
+
const loader = core.ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");
|
|
50708
|
+
ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
|
|
50709
|
+
ezSearch.autoFocus = true;
|
|
50710
|
+
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
50711
|
+
return ezSearch;
|
|
50712
|
+
};
|
|
50713
|
+
|
|
50680
50714
|
const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
|
|
50681
50715
|
var _a;
|
|
50682
50716
|
const ezSearch = core.HTMLBuilder.parseElement(`<ez-search
|
|
@@ -50709,6 +50743,7 @@ uiBuilders.set(core.UserInterface.CHECKBOX, buildSwitch);
|
|
|
50709
50743
|
uiBuilders.set(core.UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
50710
50744
|
uiBuilders.set(core.UserInterface.LONGTEXT, buildTextAreaInput);
|
|
50711
50745
|
uiBuilders.set(core.UserInterface.SEARCH, buildSearch);
|
|
50746
|
+
uiBuilders.set(core.UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
50712
50747
|
class EzCellEditor {
|
|
50713
50748
|
init(params) {
|
|
50714
50749
|
this._rowData = params.data;
|
|
@@ -50772,7 +50807,7 @@ class EzGridCustomCellEditor extends EzCellEditor {
|
|
|
50772
50807
|
charPress: params.charPress,
|
|
50773
50808
|
currentEditor: this._defaultGui,
|
|
50774
50809
|
name: this._fieldName,
|
|
50775
|
-
source:
|
|
50810
|
+
source: FormLayout.CustomEditorSource.GRID,
|
|
50776
50811
|
detailContext: params.customEditorsInfo.detailContext,
|
|
50777
50812
|
setValue: (value) => this.setValue(value),
|
|
50778
50813
|
getValue: () => this.getValue(),
|
|
@@ -50879,7 +50914,7 @@ class EzGridCustomCellRender extends EzCellRender {
|
|
|
50879
50914
|
charPress: '',
|
|
50880
50915
|
currentRender: super.getGui(),
|
|
50881
50916
|
name: this._fieldName,
|
|
50882
|
-
source:
|
|
50917
|
+
source: FormLayout.CustomRenderSource.GRID,
|
|
50883
50918
|
getValue: () => params.getValue(),
|
|
50884
50919
|
detailContext: params.customRendersInfo.detailContext,
|
|
50885
50920
|
renderMetadata: {
|
|
@@ -50907,8 +50942,9 @@ class EzGridCustomCellRender extends EzCellRender {
|
|
|
50907
50942
|
|
|
50908
50943
|
class GridEditionManager {
|
|
50909
50944
|
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert, lockerId) {
|
|
50945
|
+
this._inProgressChanges = [];
|
|
50910
50946
|
this._dataUnit = dataUnit;
|
|
50911
|
-
this._recordValidationProcessor = new
|
|
50947
|
+
this._recordValidationProcessor = new searchColumn.RecordValidationProcessor(this._dataUnit, {
|
|
50912
50948
|
getRequiredFields: () => this.getRequiredFields(),
|
|
50913
50949
|
markAsInvalid: (invalidField, recordId) => { this.pushInvalidCell(invalidField, recordId); },
|
|
50914
50950
|
getMessageForField: () => null,
|
|
@@ -51006,6 +51042,12 @@ class GridEditionManager {
|
|
|
51006
51042
|
return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
|
|
51007
51043
|
}
|
|
51008
51044
|
async proceedAutoSave() {
|
|
51045
|
+
var _a;
|
|
51046
|
+
//Aguarda outras promises entrarem na fila
|
|
51047
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
51048
|
+
if (this._inProgressChanges.length) {
|
|
51049
|
+
await Promise.all((_a = this._inProgressChanges) === null || _a === void 0 ? void 0 : _a.map(({ promise }) => promise));
|
|
51050
|
+
}
|
|
51009
51051
|
if (!this._dataUnit.isDirty()) {
|
|
51010
51052
|
this.saveSuccess();
|
|
51011
51053
|
return true;
|
|
@@ -51076,7 +51118,9 @@ class GridEditionManager {
|
|
|
51076
51118
|
}
|
|
51077
51119
|
configureColumn(col) {
|
|
51078
51120
|
col.cellEditor = 'ezCellEditor';
|
|
51079
|
-
col.editable
|
|
51121
|
+
if (col.editable != false) {
|
|
51122
|
+
col.editable = params => this.canEdit(params);
|
|
51123
|
+
}
|
|
51080
51124
|
col.suppressKeyboardEvent = (params) => {
|
|
51081
51125
|
if (params.event.key === KeyCode.ESCAPE && params.editing) {
|
|
51082
51126
|
return this._dataUnit.isDirty();
|
|
@@ -51120,7 +51164,7 @@ class GridEditionManager {
|
|
|
51120
51164
|
}
|
|
51121
51165
|
getFormRequiredFields() {
|
|
51122
51166
|
const formRequiredFields = [];
|
|
51123
|
-
const dataBinders =
|
|
51167
|
+
const dataBinders = searchColumn.DataBinder.getDataBindersByDataUnit(this._dataUnit);
|
|
51124
51168
|
dataBinders.forEach(dataBinder => {
|
|
51125
51169
|
formRequiredFields.push(...dataBinder.getFormRequiredFields());
|
|
51126
51170
|
});
|
|
@@ -51260,6 +51304,14 @@ class GridEditionManager {
|
|
|
51260
51304
|
return;
|
|
51261
51305
|
}
|
|
51262
51306
|
if (value instanceof Promise) {
|
|
51307
|
+
const progressChange = {
|
|
51308
|
+
promise: undefined,
|
|
51309
|
+
resolve: () => { }
|
|
51310
|
+
};
|
|
51311
|
+
progressChange.promise = new Promise((resolve) => {
|
|
51312
|
+
progressChange.resolve = resolve;
|
|
51313
|
+
});
|
|
51314
|
+
this._inProgressChanges.push(progressChange);
|
|
51263
51315
|
this.handlePromiseValue(event, value);
|
|
51264
51316
|
return;
|
|
51265
51317
|
}
|
|
@@ -51273,16 +51325,26 @@ class GridEditionManager {
|
|
|
51273
51325
|
const resolved = await value;
|
|
51274
51326
|
return this.updateCellValue(event, resolved);
|
|
51275
51327
|
}
|
|
51276
|
-
updateCellValue(event, newValue) {
|
|
51277
|
-
var _a;
|
|
51328
|
+
async updateCellValue(event, newValue) {
|
|
51329
|
+
var _a, _b, _c;
|
|
51278
51330
|
const fieldName = event.colDef.field;
|
|
51331
|
+
const fieldDescriptor = this._dataUnit.getField(fieldName);
|
|
51332
|
+
if (newValue == '' && newValue != this._dataUnit.getFieldValue(fieldName) && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.userInterface) === core.UserInterface.SEARCH) {
|
|
51333
|
+
newValue = this._dataUnit.getFieldValue(fieldName);
|
|
51334
|
+
}
|
|
51335
|
+
const newData = { [fieldName]: newValue };
|
|
51336
|
+
const descriptionColName = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a[constants.PRESENTATION_COL_ID_PROP_NAME];
|
|
51337
|
+
if (!core.StringUtils.isEmpty(descriptionColName)) {
|
|
51338
|
+
newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
|
|
51339
|
+
}
|
|
51279
51340
|
event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: newValue }));
|
|
51280
|
-
(
|
|
51341
|
+
(_b = this._currentEditLock) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
51281
51342
|
if (event.oldValue !== newValue) {
|
|
51282
51343
|
this._isGridEdition = true;
|
|
51283
|
-
this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
51344
|
+
await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
51284
51345
|
this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
|
|
51285
51346
|
}
|
|
51347
|
+
(_c = this._inProgressChanges) === null || _c === void 0 ? void 0 : _c.forEach(({ resolve }) => resolve(newValue));
|
|
51286
51348
|
}
|
|
51287
51349
|
setCellEditors(customEditors) {
|
|
51288
51350
|
var _a;
|
|
@@ -64758,7 +64820,8 @@ class AgGridController {
|
|
|
64758
64820
|
}
|
|
64759
64821
|
showFilterColumn(configs) {
|
|
64760
64822
|
var _a;
|
|
64761
|
-
|
|
64823
|
+
const presentationMetadata = this.resolveDescriptionColMetadata(configs.columnName);
|
|
64824
|
+
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(Object.assign(Object.assign({}, configs), { fieldDescriptor: presentationMetadata }));
|
|
64762
64825
|
}
|
|
64763
64826
|
constructor(_enterprise) {
|
|
64764
64827
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
@@ -64771,7 +64834,6 @@ class AgGridController {
|
|
|
64771
64834
|
this.DEFAULT_FONT_SIZE_HTML5 = 32;
|
|
64772
64835
|
this.DEFAULT_ICON_SIZE = 12;
|
|
64773
64836
|
this.DEFAULT_MAX_SIZE = 200;
|
|
64774
|
-
this.DOC_WIDTH = 800;
|
|
64775
64837
|
this._menuItems = [];
|
|
64776
64838
|
this._idAttribName = '__record__id__';
|
|
64777
64839
|
this._gridConfig = [];
|
|
@@ -64780,6 +64842,7 @@ class AgGridController {
|
|
|
64780
64842
|
this._customFormatters = new Map();
|
|
64781
64843
|
this._gridShowDom = false;
|
|
64782
64844
|
this.peddingExecutionsOnGridShow = [];
|
|
64845
|
+
this._lastColsConfig = undefined;
|
|
64783
64846
|
ModuleRegistry.registerModules([
|
|
64784
64847
|
EnterpriseCoreModule,
|
|
64785
64848
|
RangeSelectionModule,
|
|
@@ -64791,8 +64854,25 @@ class AgGridController {
|
|
|
64791
64854
|
getGridConfig() {
|
|
64792
64855
|
return this._gridConfig;
|
|
64793
64856
|
}
|
|
64794
|
-
locateColumn(columnName) {
|
|
64857
|
+
locateColumn(columnName, gridElement) {
|
|
64795
64858
|
this._gridOptions.api.ensureColumnVisible(columnName);
|
|
64859
|
+
requestAnimationFrame(() => {
|
|
64860
|
+
this.highlightColumnHeader(columnName, gridElement);
|
|
64861
|
+
});
|
|
64862
|
+
}
|
|
64863
|
+
highlightColumnHeader(columnName, gridElement) {
|
|
64864
|
+
const headerElement = gridElement.querySelector(`.ag-header-cell[col-id="${columnName}"]`);
|
|
64865
|
+
if (!headerElement)
|
|
64866
|
+
return;
|
|
64867
|
+
headerElement.classList.add("ez-grid__column-highlight-header");
|
|
64868
|
+
headerElement.setAttribute("tabindex", "0");
|
|
64869
|
+
const removeHighlight = (event) => {
|
|
64870
|
+
if (!headerElement.contains(event.target)) {
|
|
64871
|
+
headerElement.classList.remove("ez-grid__column-highlight-header");
|
|
64872
|
+
document.removeEventListener("click", removeHighlight);
|
|
64873
|
+
}
|
|
64874
|
+
};
|
|
64875
|
+
document.addEventListener("click", removeHighlight);
|
|
64796
64876
|
}
|
|
64797
64877
|
getSort(_dataUnitName, defaultSorting) {
|
|
64798
64878
|
const sortedColumns = [];
|
|
@@ -64814,10 +64894,15 @@ class AgGridController {
|
|
|
64814
64894
|
return;
|
|
64815
64895
|
}
|
|
64816
64896
|
return Array.from(this._filteredColumns.entries())
|
|
64817
|
-
.map(([
|
|
64897
|
+
.map(([col, items]) => {
|
|
64818
64898
|
var _a;
|
|
64819
64899
|
const checkedOptions = items.filter(option => option.check);
|
|
64820
64900
|
if (checkedOptions.length > 0) {
|
|
64901
|
+
let column = col;
|
|
64902
|
+
const presentationFrom = this.getCodeColFromDescriptionCol(col);
|
|
64903
|
+
if (!core.StringUtils.isEmpty(presentationFrom)) {
|
|
64904
|
+
column = presentationFrom;
|
|
64905
|
+
}
|
|
64821
64906
|
const fieldDescriptor = this._dataUnit.getField(column);
|
|
64822
64907
|
const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : core.DataType.TEXT;
|
|
64823
64908
|
let placeholders = '';
|
|
@@ -64884,6 +64969,7 @@ class AgGridController {
|
|
|
64884
64969
|
this._dataUnit.addFilterProvider(this);
|
|
64885
64970
|
}
|
|
64886
64971
|
this._gridOptions = {
|
|
64972
|
+
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
64887
64973
|
localeText: gridTerms,
|
|
64888
64974
|
enableRangeSelection: this._multipleSelection,
|
|
64889
64975
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
@@ -65011,6 +65097,23 @@ class AgGridController {
|
|
|
65011
65097
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
65012
65098
|
};
|
|
65013
65099
|
}
|
|
65100
|
+
resolveDescriptionColMetadata(columnName) {
|
|
65101
|
+
var _a;
|
|
65102
|
+
const colDef = (_a = this._gridOptions.columnApi.getColumn(columnName)) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
65103
|
+
const presentationFrom = this.getCodeColFromDescriptionCol(columnName);
|
|
65104
|
+
if (!core.StringUtils.isEmpty(presentationFrom)) {
|
|
65105
|
+
return {
|
|
65106
|
+
label: colDef.headerName,
|
|
65107
|
+
name: columnName,
|
|
65108
|
+
userInterface: core.UserInterface.SHORTTEXT,
|
|
65109
|
+
dataType: core.DataType.TEXT,
|
|
65110
|
+
properties: {
|
|
65111
|
+
[constants.PRESENTATION_FROM_COL_PROP_NAME]: presentationFrom
|
|
65112
|
+
}
|
|
65113
|
+
};
|
|
65114
|
+
}
|
|
65115
|
+
return undefined;
|
|
65116
|
+
}
|
|
65014
65117
|
buildMenuItemOptionPin(params) {
|
|
65015
65118
|
const { column, columnApi } = params;
|
|
65016
65119
|
const isPinned = params.column.isPinned();
|
|
@@ -65337,7 +65440,7 @@ class AgGridController {
|
|
|
65337
65440
|
}
|
|
65338
65441
|
syncSelectWithDataUnit() {
|
|
65339
65442
|
const rowNode = this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);
|
|
65340
|
-
if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
|
|
65443
|
+
if (!rowNode || (rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
|
|
65341
65444
|
return;
|
|
65342
65445
|
const rowRange = this._gridOptions.api.getCellRanges().find(row => row.startRow.rowIndex === rowNode.rowIndex);
|
|
65343
65446
|
if ((rowRange === null || rowRange === void 0 ? void 0 : rowRange.columns.length) > 0) {
|
|
@@ -65374,7 +65477,9 @@ class AgGridController {
|
|
|
65374
65477
|
}
|
|
65375
65478
|
}
|
|
65376
65479
|
isColumnEditable(rowIndex, column) {
|
|
65377
|
-
if (column.getColDef().headerName === ''
|
|
65480
|
+
if (column.getColDef().headerName === ''
|
|
65481
|
+
|| column.getColDef().headerName === this.CHECK_BOX_COL_ID
|
|
65482
|
+
|| rowIndex === -1)
|
|
65378
65483
|
return false;
|
|
65379
65484
|
const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
|
|
65380
65485
|
const rowNode = this._gridOptions.api.getRowNode(rowId);
|
|
@@ -65392,7 +65497,7 @@ class AgGridController {
|
|
|
65392
65497
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
65393
65498
|
}
|
|
65394
65499
|
setColumnsDef(cols) {
|
|
65395
|
-
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName:
|
|
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 && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
|
|
65396
65501
|
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
65397
65502
|
if (this._statusResolver != undefined) {
|
|
65398
65503
|
newColDefs.push({
|
|
@@ -65420,8 +65525,39 @@ class AgGridController {
|
|
|
65420
65525
|
});
|
|
65421
65526
|
this._colDefs = newColDefs;
|
|
65422
65527
|
if (this._gridOptions && this._gridOptions.api) {
|
|
65528
|
+
this.setColsDefsWithStateIfNeeded(this._colDefs);
|
|
65529
|
+
}
|
|
65530
|
+
}
|
|
65531
|
+
setColsDefsWithStateIfNeeded(colDefs) {
|
|
65532
|
+
if (!this._lastColsConfig) {
|
|
65423
65533
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
65424
65534
|
}
|
|
65535
|
+
/*
|
|
65536
|
+
Caso a definição de colunas esteja sendo atualizada,
|
|
65537
|
+
e existe uma config aplicada, temos que considerar essa
|
|
65538
|
+
config ao adicionar nova definição de colunas.
|
|
65539
|
+
PS: Poderia apenas chamar o setColumnsState, porém,
|
|
65540
|
+
isso impactaria em performance, e o usuário ia perceber
|
|
65541
|
+
a mudança das colunas visualmente na grade, o que traria
|
|
65542
|
+
uma experiencia ruim.
|
|
65543
|
+
*/
|
|
65544
|
+
const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
|
|
65545
|
+
this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
|
|
65546
|
+
}
|
|
65547
|
+
getColsDefWithConfigApplied(colDefs, colsConfig) {
|
|
65548
|
+
//Cria map de colunas existentes na config e seu índice
|
|
65549
|
+
const orderMap = colsConfig.reduce((map, col, index) => {
|
|
65550
|
+
map[col.name] = index;
|
|
65551
|
+
return map;
|
|
65552
|
+
}, {});
|
|
65553
|
+
//Remove colunas que não existem na config
|
|
65554
|
+
const filteredColsDefs = colDefs.filter((col) => !orderMap.hasOwnProperty(col.colId));
|
|
65555
|
+
//Ordena colunas baseada na config aplicada
|
|
65556
|
+
const sortedColumnDefs = filteredColsDefs.sort((a, b) => {
|
|
65557
|
+
var _a, _b;
|
|
65558
|
+
return ((_a = orderMap[a.field]) !== null && _a !== void 0 ? _a : Number.MAX_VALUE) - ((_b = orderMap[b.field]) !== null && _b !== void 0 ? _b : Number.MAX_VALUE);
|
|
65559
|
+
});
|
|
65560
|
+
return sortedColumnDefs;
|
|
65425
65561
|
}
|
|
65426
65562
|
clearRangeSelection() {
|
|
65427
65563
|
this._gridOptions.api.clearRangeSelection();
|
|
@@ -65458,6 +65594,7 @@ class AgGridController {
|
|
|
65458
65594
|
if (this._grid === undefined) {
|
|
65459
65595
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
65460
65596
|
}
|
|
65597
|
+
this._lastColsConfig = state;
|
|
65461
65598
|
const colDef = this._gridOptions.columnApi.getColumns();
|
|
65462
65599
|
let columns = this.getColumnsDef();
|
|
65463
65600
|
let visibleColumns = [];
|
|
@@ -65466,14 +65603,39 @@ class AgGridController {
|
|
|
65466
65603
|
const columnsOffset = colDef.length - columns.length;
|
|
65467
65604
|
this._gridConfig = state;
|
|
65468
65605
|
let sort = [];
|
|
65469
|
-
|
|
65606
|
+
let currentIndex = 0;
|
|
65607
|
+
state.forEach((cfgColumn) => {
|
|
65608
|
+
var _a, _b;
|
|
65470
65609
|
const colWidth = this.getColumnWidth(cfgColumn);
|
|
65471
|
-
this._gridOptions.columnApi.moveColumn(cfgColumn.name,
|
|
65610
|
+
this._gridOptions.columnApi.moveColumn(cfgColumn.name, currentIndex + columnsOffset);
|
|
65472
65611
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
65473
65612
|
visibleColumns.push(cfgColumn.name);
|
|
65474
65613
|
if (cfgColumn.ascending !== undefined) {
|
|
65475
65614
|
sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
|
|
65476
65615
|
}
|
|
65616
|
+
currentIndex++;
|
|
65617
|
+
const fieldMD = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
65618
|
+
/*
|
|
65619
|
+
Migração para o SEARCHPLUS, caso de uso:
|
|
65620
|
+
- Agora existe uma coluna para o campo de descrição do relaciona
|
|
65621
|
+
- Essa col, não existe na config da grade que já foi salva pelo DS
|
|
65622
|
+
- Nesse caso, precisamos inserir a coluna de descrição automaticamente para que
|
|
65623
|
+
os usuários não percam a apresentação do campo de descrição.
|
|
65624
|
+
PS: Caso esteja herdando do HTML5, devemos manter a config como está la
|
|
65625
|
+
*/
|
|
65626
|
+
if (this.needToAddDescriptionColumn(cfgColumn, fieldMD, state)) {
|
|
65627
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[constants.PRESENTATION_COL_ID_PROP_NAME];
|
|
65628
|
+
if (!descriptionColID)
|
|
65629
|
+
return;
|
|
65630
|
+
const descriptionCol = this._gridOptions.columnApi.getColumn(descriptionColID);
|
|
65631
|
+
const descriptionColDef = descriptionCol === null || descriptionCol === void 0 ? void 0 : descriptionCol.getColDef();
|
|
65632
|
+
const descriptionHeaderName = descriptionColDef === null || descriptionColDef === void 0 ? void 0 : descriptionColDef.headerName;
|
|
65633
|
+
const descriptionColSize = this.getColumnWidthByLabel(descriptionHeaderName);
|
|
65634
|
+
this._gridOptions.columnApi.moveColumn(descriptionColID, currentIndex + columnsOffset);
|
|
65635
|
+
this._gridOptions.columnApi.setColumnWidth(descriptionColID, descriptionColSize);
|
|
65636
|
+
visibleColumns.push(descriptionColID);
|
|
65637
|
+
currentIndex++;
|
|
65638
|
+
}
|
|
65477
65639
|
});
|
|
65478
65640
|
let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
|
|
65479
65641
|
this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
|
|
@@ -65483,10 +65645,15 @@ class AgGridController {
|
|
|
65483
65645
|
defaultState: { sort: null },
|
|
65484
65646
|
});
|
|
65485
65647
|
}
|
|
65486
|
-
|
|
65487
|
-
|
|
65488
|
-
|
|
65489
|
-
|
|
65648
|
+
needToAddDescriptionColumn(cfgColumn, fieldMD, stateConfig) {
|
|
65649
|
+
var _a, _b;
|
|
65650
|
+
if (!fieldMD) {
|
|
65651
|
+
return false;
|
|
65652
|
+
}
|
|
65653
|
+
const configVersion = ((_a = cfgColumn.configVersion) !== null && _a !== void 0 ? _a : 0);
|
|
65654
|
+
const isSearchPlus = (fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.userInterface) == core.UserInterface.SEARCHPLUS;
|
|
65655
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[constants.PRESENTATION_COL_ID_PROP_NAME];
|
|
65656
|
+
return isSearchPlus && configVersion < 1 && stateConfig.find(col => col.name === descriptionColID) != undefined;
|
|
65490
65657
|
}
|
|
65491
65658
|
getColumnsState() {
|
|
65492
65659
|
if (this._grid === undefined) {
|
|
@@ -65497,7 +65664,7 @@ class AgGridController {
|
|
|
65497
65664
|
.map(s => {
|
|
65498
65665
|
const column = this._gridOptions.columnApi.getColumn(s.colId);
|
|
65499
65666
|
const def = column.getColDef();
|
|
65500
|
-
const width =
|
|
65667
|
+
const width = column.getActualWidth();
|
|
65501
65668
|
const label = def.headerName;
|
|
65502
65669
|
const name = def.checkboxSelection ? '__SELECTION__' : s.colId;
|
|
65503
65670
|
const colState = { label, name };
|
|
@@ -65547,7 +65714,7 @@ class AgGridController {
|
|
|
65547
65714
|
return filterOptions.map(item => item.check).includes(true);
|
|
65548
65715
|
}
|
|
65549
65716
|
buildColDef(source) {
|
|
65550
|
-
var _a, _b, _c;
|
|
65717
|
+
var _a, _b, _c, _d, _e;
|
|
65551
65718
|
let tooltip = undefined;
|
|
65552
65719
|
const propSortable = core.StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
|
|
65553
65720
|
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
|
|
@@ -65556,6 +65723,7 @@ class AgGridController {
|
|
|
65556
65723
|
else if (propSortable === false) {
|
|
65557
65724
|
tooltip = 'Coluna não pode ser ordenada';
|
|
65558
65725
|
}
|
|
65726
|
+
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);
|
|
65559
65727
|
return this._editionManager.configureColumn({
|
|
65560
65728
|
headerName: source.label,
|
|
65561
65729
|
field: source.name,
|
|
@@ -65563,12 +65731,17 @@ class AgGridController {
|
|
|
65563
65731
|
resizable: true,
|
|
65564
65732
|
headerComponent: 'ezGridCustomHeader',
|
|
65565
65733
|
headerComponentParams: {
|
|
65734
|
+
presentationFrom,
|
|
65566
65735
|
tooltip: tooltip,
|
|
65567
65736
|
isSortable: propSortable,
|
|
65568
65737
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
65569
65738
|
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
65570
65739
|
},
|
|
65571
65740
|
valueFormatter: params => {
|
|
65741
|
+
var _a, _b, _c;
|
|
65742
|
+
if (presentationFrom) {
|
|
65743
|
+
return (_c = (_b = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[presentationFrom]) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : "";
|
|
65744
|
+
}
|
|
65572
65745
|
if (params.value === undefined || params.value === null) {
|
|
65573
65746
|
return "";
|
|
65574
65747
|
}
|
|
@@ -65588,6 +65761,7 @@ class AgGridController {
|
|
|
65588
65761
|
return this.getFormatterByColumn(params, source);
|
|
65589
65762
|
},
|
|
65590
65763
|
cellStyle: this.getStyleByColumn(source),
|
|
65764
|
+
editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(constants.PRESENTATION_FROM_COL_PROP_NAME))
|
|
65591
65765
|
});
|
|
65592
65766
|
}
|
|
65593
65767
|
setCustomFormatters(customFormatters) {
|
|
@@ -65603,8 +65777,11 @@ class AgGridController {
|
|
|
65603
65777
|
};
|
|
65604
65778
|
}
|
|
65605
65779
|
getStyleByColumn(source) {
|
|
65780
|
+
var _a;
|
|
65606
65781
|
let cellStyle = this.getInitCellStyle();
|
|
65607
|
-
|
|
65782
|
+
const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
|
|
65783
|
+
const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
|
|
65784
|
+
switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
|
|
65608
65785
|
case core.UserInterface.DECIMALNUMBER:
|
|
65609
65786
|
case core.UserInterface.INTEGERNUMBER:
|
|
65610
65787
|
cellStyle['text-align'] = 'right';
|
|
@@ -65620,7 +65797,7 @@ class AgGridController {
|
|
|
65620
65797
|
return cellStyle;
|
|
65621
65798
|
}
|
|
65622
65799
|
getFormatterByColumn(params, source) {
|
|
65623
|
-
var _a;
|
|
65800
|
+
var _a, _b, _c, _d;
|
|
65624
65801
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
|
|
65625
65802
|
const prop = source === null || source === void 0 ? void 0 : source.options;
|
|
65626
65803
|
let options;
|
|
@@ -65657,6 +65834,9 @@ class AgGridController {
|
|
|
65657
65834
|
return params === null || params === void 0 ? void 0 : params.value;
|
|
65658
65835
|
}
|
|
65659
65836
|
}
|
|
65837
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.SEARCHPLUS) {
|
|
65838
|
+
return (_d = (_c = (_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : params === null || params === void 0 ? void 0 : params.value) !== null && _d !== void 0 ? _d : "";
|
|
65839
|
+
}
|
|
65660
65840
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === core.UserInterface.DECIMALNUMBER) {
|
|
65661
65841
|
if (params.value != undefined) {
|
|
65662
65842
|
const precision = Number(source.props.get('precision')) || 2;
|
|
@@ -65830,7 +66010,7 @@ class AgGridController {
|
|
|
65830
66010
|
this._gridOptions.api.stopEditing();
|
|
65831
66011
|
}
|
|
65832
66012
|
getColumnWidth(cfgColumn) {
|
|
65833
|
-
var _a, _b;
|
|
66013
|
+
var _a, _b, _c, _d, _e, _f;
|
|
65834
66014
|
if (cfgColumn == undefined) {
|
|
65835
66015
|
return;
|
|
65836
66016
|
}
|
|
@@ -65844,12 +66024,22 @@ class AgGridController {
|
|
|
65844
66024
|
return parseWidth + this.DEFAULT_FONT_SIZE_HTML5;
|
|
65845
66025
|
}
|
|
65846
66026
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
66027
|
+
const label = (_b = field === null || field === void 0 ? void 0 : field.label) !== null && _b !== void 0 ? _b : (_f = (_e = (_d = (_c = this._gridOptions) === null || _c === void 0 ? void 0 : _c.columnApi) === null || _d === void 0 ? void 0 : _d.getColumn(cfgColumn.name)) === null || _e === void 0 ? void 0 : _e.getColDef()) === null || _f === void 0 ? void 0 : _f.headerName;
|
|
65847
66028
|
if ((field === null || field === void 0 ? void 0 : field.userInterface) === core.UserInterface.SEARCH) {
|
|
65848
66029
|
return this.DEFAULT_MAX_SIZE;
|
|
65849
66030
|
}
|
|
65850
|
-
|
|
66031
|
+
return this.getColumnWidthByLabel(label);
|
|
66032
|
+
}
|
|
66033
|
+
getColumnWidthByLabel(label) {
|
|
66034
|
+
const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
|
|
65851
66035
|
return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
|
|
65852
66036
|
}
|
|
66037
|
+
getCodeColFromDescriptionCol(descriptionColName) {
|
|
66038
|
+
var _a;
|
|
66039
|
+
const colGrid = this._gridOptions.columnApi.getColumn(descriptionColName);
|
|
66040
|
+
const colDef = colGrid === null || colGrid === void 0 ? void 0 : colGrid.getColDef();
|
|
66041
|
+
return (_a = colDef === null || colDef === void 0 ? void 0 : colDef.headerComponentParams) === null || _a === void 0 ? void 0 : _a.presentationFrom;
|
|
66042
|
+
}
|
|
65853
66043
|
}
|
|
65854
66044
|
|
|
65855
66045
|
function enableSelectAll(total) {
|
|
@@ -66026,7 +66216,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
66026
66216
|
}
|
|
66027
66217
|
}
|
|
66028
66218
|
|
|
66029
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap;flex-shrink:1;flex-grow:1}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
66219
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:var(--shadow);--ez-grid--min-height:300px;--ez-grid__container--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--shadow:var(--shadow--xsmall);--ez-grid__header--shadow--outline:var(--shadow--outline) var(--color--strokes);--ez-grid__header--outline:none;--ez-grid__header--border:none;min-height:var(--ez-grid--min-height)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid-header.shadow-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.grid-header.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__header--shadow--outline);border:var(--ez-grid__header--border);outline:var(--ez-grid__header--outline)}.header-overlay.sc-ez-grid{padding-top:15px;margin-top:-12px}.grid__container.sc-ez-grid{outline:none;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color);border:var(--border--small) var(--color--strokes);border-radius:var(--border--radius-small)}.grid__container.no-scroll.sc-ez-grid{width:100vw}.sc-ez-grid-h:not([no-header]) .grid__container.sc-ez-grid{border:none}.grid__container.outline-mode.sc-ez-grid{box-shadow:var(--ez-grid__container--shadow--outline);border:none;outline:none}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center;flex-grow:1;flex-shrink:1}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}.grid-header__pagination.sc-ez-grid{justify-content:flex-end;flex-wrap:nowrap;flex-shrink:1;flex-grow:1}.grid-header__pagination-label.sc-ez-grid{width:100%;white-space:nowrap}.overflowed.sc-ez-grid{display:none}.pagination-contracted.sc-ez-grid{width:100px}.pagination-expanded.sc-ez-grid{min-width:150px}.left__header-contracted.sc-ez-grid{width:auto}.left__header-expanded.sc-ez-grid{flex-grow:1}.grid__footer.sc-ez-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}.cancel-pagination.sc-ez-grid{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;padding:8px;width:180px}.cancel-pagination-btn.sc-ez-grid{color:var(--color--error);font-size:var(--text--medium);font-weight:var(--text-weight--large);font-family:var(--font-pattern, Roboto);text-wrap:nowrap;cursor:pointer}.spin.sc-ez-grid{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
66030
66220
|
|
|
66031
66221
|
const windowInstace = window;
|
|
66032
66222
|
const matches = (text, filter) => {
|
|
@@ -66074,6 +66264,8 @@ const EzGrid = class {
|
|
|
66074
66264
|
this.outlineMode = false;
|
|
66075
66265
|
this.enableRowTableStriped = true;
|
|
66076
66266
|
this.compact = false;
|
|
66267
|
+
this.useSearchColumn = true;
|
|
66268
|
+
this.suppressHorizontalScroll = false;
|
|
66077
66269
|
}
|
|
66078
66270
|
/**
|
|
66079
66271
|
* Aplica a definição de colunas.
|
|
@@ -66127,7 +66319,7 @@ const EzGrid = class {
|
|
|
66127
66319
|
* Localiza determinada coluna tornando-a visível.
|
|
66128
66320
|
*/
|
|
66129
66321
|
async locateColumn(columnName) {
|
|
66130
|
-
this._gridController.locateColumn(columnName);
|
|
66322
|
+
this._gridController.locateColumn(columnName, this._element);
|
|
66131
66323
|
}
|
|
66132
66324
|
/**
|
|
66133
66325
|
* Usa um argumento para filtrar as colunas po label
|
|
@@ -66482,6 +66674,7 @@ const EzGrid = class {
|
|
|
66482
66674
|
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
66483
66675
|
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
66484
66676
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66677
|
+
suppressHorizontalScroll: this.suppressHorizontalScroll
|
|
66485
66678
|
});
|
|
66486
66679
|
if (this.config) {
|
|
66487
66680
|
this.observeConfig(this.config);
|
|
@@ -66650,15 +66843,42 @@ const EzGrid = class {
|
|
|
66650
66843
|
this.nextPage();
|
|
66651
66844
|
}
|
|
66652
66845
|
}, { description: "Avança para a próxima página.", element: this._element });
|
|
66846
|
+
if (this.useSearchColumn) {
|
|
66847
|
+
this._keyboardManager.bind(searchColumn.SHORTCUT_SEARCH_FIELD, async () => {
|
|
66848
|
+
if (!this._container || !this._ezPopoverSearchColumn)
|
|
66849
|
+
return;
|
|
66850
|
+
const container = this._container.getBoundingClientRect();
|
|
66851
|
+
await searchColumn.focusOnFieldSerch(this._columnSearch);
|
|
66852
|
+
this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (searchColumn.SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
66853
|
+
}, { description: searchColumn.LABEL_SEARCH_COLUMN, element: this._element });
|
|
66854
|
+
}
|
|
66653
66855
|
}
|
|
66654
66856
|
async removeShortcuts() {
|
|
66655
|
-
|
|
66656
|
-
|
|
66657
|
-
|
|
66658
|
-
|
|
66659
|
-
|
|
66660
|
-
|
|
66661
|
-
|
|
66857
|
+
var _a;
|
|
66858
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
66859
|
+
}
|
|
66860
|
+
renderFieldSearchColumn() {
|
|
66861
|
+
this._columnSearch = searchColumn.buildFieldSearch({
|
|
66862
|
+
value: core.StringUtils.generateUUID(),
|
|
66863
|
+
label: searchColumn.LABEL_SEARCH_COLUMN,
|
|
66864
|
+
}, ({ argument }) => new Promise(accept => {
|
|
66865
|
+
this.filterColumns(argument).then((columns) => {
|
|
66866
|
+
accept(columns
|
|
66867
|
+
.filter(column => !column.hidden)
|
|
66868
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
66869
|
+
});
|
|
66870
|
+
}), async (option) => {
|
|
66871
|
+
if (option != undefined && option.value != undefined) {
|
|
66872
|
+
await this.locateColumn(option.value);
|
|
66873
|
+
if (this._ezPopoverSearchColumn) {
|
|
66874
|
+
this._ezPopoverSearchColumn.hide();
|
|
66875
|
+
}
|
|
66876
|
+
if (this._container) {
|
|
66877
|
+
requestAnimationFrame(() => this._container.focus());
|
|
66878
|
+
}
|
|
66879
|
+
}
|
|
66880
|
+
});
|
|
66881
|
+
return this._columnSearch;
|
|
66662
66882
|
}
|
|
66663
66883
|
render() {
|
|
66664
66884
|
var _a;
|
|
@@ -66668,11 +66888,12 @@ const EzGrid = class {
|
|
|
66668
66888
|
'shadow-mode': !this.outlineMode,
|
|
66669
66889
|
'no-padding': this.compact,
|
|
66670
66890
|
'header-overlay': !this.hideHeader(),
|
|
66671
|
-
|
|
66891
|
+
'no-scroll': this.suppressHorizontalScroll
|
|
66892
|
+
}, ref: elem => (this._container = elem), tabindex: "0" }), index.h("div", { class: {
|
|
66672
66893
|
'ez-box ez-padding--small grid-header': true,
|
|
66673
66894
|
'outline-mode': this.outlineMode,
|
|
66674
66895
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
66675
|
-
} }, 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("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66896
|
+
}, 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
|
|
66676
66897
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66677
66898
|
` }, 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" }))));
|
|
66678
66899
|
}
|