@sankhyalabs/ezui 6.0.2 → 6.1.0-dev.10
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/RichToolbarHelper-438916fa.js +46 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -3
- 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 +5 -1219
- package/dist/cjs/ez-chart.cjs.entry.js +5 -20
- package/dist/cjs/ez-check.cjs.entry.js +19 -11
- package/dist/cjs/ez-chip.cjs.entry.js +3 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +274 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +25 -19
- 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 +115 -54
- 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 +23 -9
- package/dist/cjs/ez-form.cjs.entry.js +61 -6
- package/dist/cjs/ez-grid.cjs.entry.js +1071 -147
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +13 -7
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
- 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-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 +400 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
- package/dist/cjs/ez-search.cjs.entry.js +5 -5
- 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-sortable-list.cjs.entry.js +3510 -0
- package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -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 +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-9e5554cb.js → index-a7b0c73d.js} +36 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/purify-a7dc3a08.js +1354 -0
- package/dist/cjs/{DataBinder-e92314c2.js → search-column-27d1f72f.js} +73 -13
- package/dist/collection/collection-manifest.json +22 -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-chip/ez-chip.js +20 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +77 -18
- 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-double-list/doubleListHelper.js +9 -10
- package/dist/collection/components/ez-double-list/ez-double-list.css +6 -38
- package/dist/collection/components/ez-double-list/ez-double-list.js +168 -50
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
- package/dist/collection/components/ez-form/ez-form.js +95 -2
- package/dist/collection/components/ez-form-view/ez-form-view.js +2 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- 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 +173 -15
- 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 -7
- 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 +122 -15
- package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -5
- package/dist/collection/components/ez-icon/ez-icon.css +147 -140
- 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 +3 -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-popover-plus/subcomponent/ez-popover-core.css +3 -2
- package/dist/collection/components/ez-popup/ez-popup.js +5 -1
- 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 +131 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -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 +19 -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 +19 -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 +19 -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 +183 -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 +216 -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 +19 -1
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +374 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +963 -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-sortable-list/ez-sortable-list.css +226 -0
- package/dist/collection/components/ez-sortable-list/ez-sortable-list.js +582 -0
- 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 +241 -47
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/form/DataBinder.js +43 -14
- package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
- package/dist/collection/utils/index.js +2 -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 +72 -0
- package/dist/custom-elements/index.js +8104 -565
- package/dist/esm/FormLayout-071d324c.js +27 -0
- package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +2 -3
- 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 +3 -1217
- package/dist/esm/ez-chart.entry.js +3 -18
- package/dist/esm/ez-check.entry.js +19 -11
- package/dist/esm/ez-chip.entry.js +3 -2
- package/dist/esm/ez-collapsible-box.entry.js +3 -4
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +274 -7
- package/dist/esm/ez-combo-box.entry.js +25 -19
- 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 +116 -55
- 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 +24 -10
- package/dist/esm/ez-form.entry.js +60 -5
- package/dist/esm/ez-grid.entry.js +1067 -143
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +13 -7
- package/dist/esm/ez-link-builder_6.entry.js +286 -0
- 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-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 +396 -0
- package/dist/esm/ez-search-result-list.entry.js +93 -0
- package/dist/esm/ez-search.entry.js +5 -5
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +145 -0
- package/dist/esm/ez-sortable-list.entry.js +3506 -0
- package/dist/esm/ez-split-button.entry.js +16 -7
- package/dist/esm/ez-split-item.entry.js +2 -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 +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-5a720e56.js → index-baa5e267.js} +37 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/purify-da6317bb.js +1352 -0
- package/dist/esm/{DataBinder-9c877244.js → search-column-e609d513.js} +69 -15
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/p-07894c4a.entry.js +1 -0
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/p-0d9856a4.entry.js +1 -0
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/p-1276ef79.entry.js +1 -0
- package/dist/ezui/{p-87f5a060.entry.js → p-1bcfd88c.entry.js} +1 -1
- package/dist/ezui/p-1c55dda0.js +3 -0
- package/dist/ezui/p-1cebdc92.js +1 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/p-1eb34cad.entry.js +1 -0
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
- 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-2b4df33d.entry.js +1 -0
- package/dist/ezui/p-30ffb9ed.js +1 -0
- package/dist/ezui/p-31f0d5f8.entry.js +309 -0
- package/dist/ezui/p-33326ac5.entry.js +1 -0
- package/dist/ezui/p-3ba9565c.entry.js +1 -0
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/p-454bba13.entry.js +1 -0
- package/dist/ezui/p-496f7832.entry.js +1 -0
- package/dist/ezui/{p-769632d5.entry.js → p-4b67138e.entry.js} +1 -1
- package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
- package/dist/ezui/p-4d30b703.entry.js +1 -0
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/p-57363cfd.entry.js +1 -0
- package/dist/ezui/p-58f69d24.entry.js +1 -0
- package/dist/ezui/p-59561756.entry.js +7 -0
- package/dist/ezui/p-5cda9526.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/p-7019f782.entry.js +1 -0
- package/dist/ezui/p-71c2ec1f.entry.js +1 -0
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/p-7eae6986.entry.js +1 -0
- package/dist/ezui/p-7f792043.entry.js +1 -0
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/p-8afb6e8a.entry.js +1 -0
- 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-9478b13b.entry.js +1 -0
- package/dist/ezui/p-998afb6a.entry.js +1 -0
- package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a148e994.entry.js +1 -0
- package/dist/ezui/p-a3782637.entry.js +1 -0
- package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-bac0f920.entry.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-bff24a7b.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/p-cb75eb46.entry.js +1 -0
- package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
- package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
- package/dist/ezui/p-dfd9c473.entry.js +1 -0
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/p-e4528470.entry.js +1 -0
- package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
- package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
- package/dist/ezui/p-ec0d8122.entry.js +1 -0
- package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.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-chip/ez-chip.d.ts +4 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +14 -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-double-list/doubleListHelper.d.ts +4 -2
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +60 -24
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
- package/dist/types/components/ez-form/ez-form.d.ts +18 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -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 +10 -1
- 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 +2 -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 +17 -1
- package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
- package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -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-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -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 +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -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 +4 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +187 -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-sortable-list/ez-sortable-list.d.ts +91 -0
- 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 +1105 -44
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +4 -2
- package/dist/types/utils/index.d.ts +2 -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 +8 -2
- package/react/components.d.ts +72 -60
- package/react/components.js +12 -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/ApplicationUtils-c9d1205c.js.gz +0 -0
- package/dist/cjs/CSSVarsUtils-f20973d1.js.gz +0 -0
- package/dist/cjs/CheckMode-ecb90b87.js.gz +0 -0
- package/dist/cjs/DataBinder-e92314c2.js.gz +0 -0
- package/dist/cjs/DialogType-2114c337.js.gz +0 -0
- package/dist/cjs/EzScrollDirection-b2c99895.js.gz +0 -0
- package/dist/cjs/FocusResolver-885f2173.js.gz +0 -0
- package/dist/cjs/FormLayout-c2451c7f.js +0 -7
- package/dist/cjs/FormLayout-c2451c7f.js.gz +0 -0
- package/dist/cjs/ICustomRender-6fafffce.js +0 -13
- package/dist/cjs/ICustomRender-6fafffce.js.gz +0 -0
- package/dist/cjs/constants-2714478b.js.gz +0 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-alert.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-application.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-badge.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-calendar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-card-item_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chart.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-check.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-chip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dialog.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-double-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-dropdown_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-file-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-filter-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form-view.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-form.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-grid.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-guide-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-icon.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-loading-bar.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-modal.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-number-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popover.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-popup.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-search.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-button.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-item.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-split-panel.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-area.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-text-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-time-input.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-toast.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tooltip.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-tree.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-upload.cjs.entry.js.gz +0 -0
- package/dist/cjs/ez-view-stack.cjs.entry.js.gz +0 -0
- package/dist/cjs/ezListHelper-0d3970b4.js.gz +0 -0
- package/dist/cjs/ezui.cjs.js.gz +0 -0
- package/dist/cjs/filter-column.cjs.entry.js.gz +0 -0
- package/dist/cjs/index-9e5554cb.js.gz +0 -0
- package/dist/cjs/index.cjs.js.gz +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/searchFormatters-b7e1ed1e.js.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.css.gz +0 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.css.gz +0 -0
- package/dist/collection/components/ez-alert/ez-alert.js.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.css.gz +0 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.js.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.css.gz +0 -0
- package/dist/collection/components/ez-application/ez-application.js.gz +0 -0
- package/dist/collection/components/ez-badge/enum/sizes.js.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.css.gz +0 -0
- package/dist/collection/components/ez-badge/ez-badge.js.gz +0 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js.gz +0 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.css.gz +0 -0
- package/dist/collection/components/ez-button/ez-button.js.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css.gz +0 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css.gz +0 -0
- package/dist/collection/components/ez-card-item/ez-card-item.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/BarChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/ColumnChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/DonutChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/LineChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/PieChart.js.gz +0 -0
- package/dist/collection/components/ez-chart/components/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.css.gz +0 -0
- package/dist/collection/components/ez-chart/ez-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartAxis.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartContext.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartOptions.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartSerie.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartType.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js.gz +0 -0
- package/dist/collection/components/ez-chart/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-chart/test/mock-chart.js.gz +0 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js.gz +0 -0
- package/dist/collection/components/ez-check/CheckMode.js.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.css.gz +0 -0
- package/dist/collection/components/ez-check/ez-check.js.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.css.gz +0 -0
- package/dist/collection/components/ez-chip/ez-chip.js.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css.gz +0 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css.gz +0 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css.gz +0 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css.gz +0 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js.gz +0 -0
- package/dist/collection/components/ez-dialog/DialogType.js.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css.gz +0 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js.gz +0 -0
- package/dist/collection/components/ez-double-list/doubleListHelper.js.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css.gz +0 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css.gz +0 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js.gz +0 -0
- package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.css.gz +0 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.css.gz +0 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.css.gz +0 -0
- package/dist/collection/components/ez-form/ez-form.js.gz +0 -0
- package/dist/collection/components/ez-form/store/form.slice.js.gz +0 -0
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css.gz +0 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js.gz +0 -0
- package/dist/collection/components/ez-form-view/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-form-view/structure/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js.gz +0 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.css.gz +0 -0
- package/dist/collection/components/ez-grid/ez-grid.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelection.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js.gz +0 -0
- package/dist/collection/components/ez-grid/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js.gz +0 -0
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js.gz +0 -0
- package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js.gz +0 -0
- package/dist/collection/components/ez-grid/utils/index.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js.gz +0 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.css.gz +0 -0
- package/dist/collection/components/ez-icon/ez-icon.js.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.css.gz +0 -0
- package/dist/collection/components/ez-list/ez-list.js.gz +0 -0
- package/dist/collection/components/ez-list/ezListHelper.js.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.css.gz +0 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.css.gz +0 -0
- package/dist/collection/components/ez-modal/ez-modal.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css.gz +0 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/index.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-action.js.gz +0 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css.gz +0 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css.gz +0 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.css.gz +0 -0
- package/dist/collection/components/ez-popover/ez-popover.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css.gz +0 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.css.gz +0 -0
- package/dist/collection/components/ez-popup/ez-popup.js.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css.gz +0 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js.gz +0 -0
- package/dist/collection/components/ez-scroller/EzScrollDirection.js.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css.gz +0 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.css.gz +0 -0
- package/dist/collection/components/ez-search/ez-search.js.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css.gz +0 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js.gz +0 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js.gz +0 -0
- package/dist/collection/components/ez-sidebar-navigator/messages/constants.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.css.gz +0 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.js.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.css.gz +0 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js.gz +0 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css.gz +0 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.css.gz +0 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css.gz +0 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.css.gz +0 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css.gz +0 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css.gz +0 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.css.gz +0 -0
- package/dist/collection/components/ez-toast/ez-toast.js.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.css.gz +0 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.css.gz +0 -0
- package/dist/collection/components/ez-tree/ez-tree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITree.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItemBadge.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js.gz +0 -0
- package/dist/collection/components/ez-tree/subcomponents/index.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Node.js.gz +0 -0
- package/dist/collection/components/ez-tree/types/Tree.js.gz +0 -0
- package/dist/collection/components/ez-upload/RemoteFile.js.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.css.gz +0 -0
- package/dist/collection/components/ez-upload/ez-upload.js.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.css.gz +0 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js.gz +0 -0
- package/dist/collection/index.js.gz +0 -0
- package/dist/collection/servidor.js.gz +0 -0
- package/dist/collection/setupTests.js.gz +0 -0
- package/dist/collection/sw.js.gz +0 -0
- package/dist/collection/utils/ApplicationUtils.js.gz +0 -0
- package/dist/collection/utils/AssetsUtils.js.gz +0 -0
- package/dist/collection/utils/CSSVarsUtils.js.gz +0 -0
- package/dist/collection/utils/FocusResolver.js.gz +0 -0
- package/dist/collection/utils/ResponsiveInputUtils.js +0 -26
- package/dist/collection/utils/ResponsiveInputUtils.js.gz +0 -0
- package/dist/collection/utils/constants.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js.gz +0 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRender.js.gz +0 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js.gz +0 -0
- package/dist/collection/utils/form/DataBinder.js.gz +0 -0
- package/dist/collection/utils/form/FormMetadata.js.gz +0 -0
- package/dist/collection/utils/form/index.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/FormLayout.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IDefaultConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormCardConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ISummaryField.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/ITabConfig.js.gz +0 -0
- package/dist/collection/utils/form/interfaces/index.js.gz +0 -0
- package/dist/collection/utils/form/test/DataBinder.test.js.gz +0 -0
- package/dist/collection/utils/form/test/resources/metadataTest.js.gz +0 -0
- package/dist/collection/utils/index.js.gz +0 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js.gz +0 -0
- package/dist/collection/utils/interfaces/IAction.js.gz +0 -0
- package/dist/collection/utils/interfaces/IFieldConfig.js.gz +0 -0
- package/dist/collection/utils/mock/ez-upload-mock.js.gz +0 -0
- package/dist/collection/utils/utils.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidField.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationResult.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationSource.js.gz +0 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js.gz +0 -0
- package/dist/custom-elements/index.js.gz +0 -0
- package/dist/esm/ApplicationUtils-eaf91331.js.gz +0 -0
- package/dist/esm/CSSVarsUtils-acba92d7.js.gz +0 -0
- package/dist/esm/CheckMode-bdb2ec19.js.gz +0 -0
- package/dist/esm/DataBinder-9c877244.js.gz +0 -0
- package/dist/esm/DialogType-54a62731.js.gz +0 -0
- package/dist/esm/EzScrollDirection-2df26c93.js.gz +0 -0
- package/dist/esm/FocusResolver-1ccbf850.js.gz +0 -0
- package/dist/esm/FormLayout-54092963.js +0 -7
- package/dist/esm/FormLayout-54092963.js.gz +0 -0
- package/dist/esm/ICustomRender-875b5a40.js +0 -13
- package/dist/esm/ICustomRender-875b5a40.js.gz +0 -0
- package/dist/esm/constants-4e0d35b7.js +0 -5
- package/dist/esm/constants-4e0d35b7.js.gz +0 -0
- package/dist/esm/ez-actions-button.entry.js.gz +0 -0
- package/dist/esm/ez-alert-list.entry.js.gz +0 -0
- package/dist/esm/ez-alert.entry.js.gz +0 -0
- package/dist/esm/ez-application.entry.js.gz +0 -0
- package/dist/esm/ez-badge.entry.js.gz +0 -0
- package/dist/esm/ez-breadcrumb.entry.js.gz +0 -0
- package/dist/esm/ez-button.entry.js.gz +0 -0
- package/dist/esm/ez-calendar.entry.js.gz +0 -0
- package/dist/esm/ez-card-item_2.entry.js.gz +0 -0
- package/dist/esm/ez-chart.entry.js.gz +0 -0
- package/dist/esm/ez-check.entry.js.gz +0 -0
- package/dist/esm/ez-chip.entry.js.gz +0 -0
- package/dist/esm/ez-collapsible-box.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box-list_3.entry.js.gz +0 -0
- package/dist/esm/ez-combo-box.entry.js.gz +0 -0
- package/dist/esm/ez-date-input.entry.js.gz +0 -0
- package/dist/esm/ez-date-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-dialog.entry.js.gz +0 -0
- package/dist/esm/ez-double-list.entry.js.gz +0 -0
- package/dist/esm/ez-dropdown_2.entry.js.gz +0 -0
- package/dist/esm/ez-file-item.entry.js.gz +0 -0
- package/dist/esm/ez-filter-input.entry.js.gz +0 -0
- package/dist/esm/ez-form-view.entry.js.gz +0 -0
- package/dist/esm/ez-form.entry.js.gz +0 -0
- package/dist/esm/ez-grid.entry.js.gz +0 -0
- package/dist/esm/ez-guide-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-icon.entry.js.gz +0 -0
- package/dist/esm/ez-list.entry.js.gz +0 -0
- package/dist/esm/ez-loading-bar.entry.js.gz +0 -0
- package/dist/esm/ez-modal-container.entry.js.gz +0 -0
- package/dist/esm/ez-modal.entry.js.gz +0 -0
- package/dist/esm/ez-multi-selection-list.entry.js.gz +0 -0
- package/dist/esm/ez-number-input.entry.js.gz +0 -0
- package/dist/esm/ez-popover-plus_3.entry.js.gz +0 -0
- package/dist/esm/ez-popover.entry.js.gz +0 -0
- package/dist/esm/ez-popup.entry.js.gz +0 -0
- package/dist/esm/ez-radio-button.entry.js.gz +0 -0
- package/dist/esm/ez-scroller_2.entry.js.gz +0 -0
- package/dist/esm/ez-search.entry.js.gz +0 -0
- package/dist/esm/ez-sidebar-navigator.entry.js.gz +0 -0
- package/dist/esm/ez-split-button.entry.js.gz +0 -0
- package/dist/esm/ez-split-item.entry.js.gz +0 -0
- package/dist/esm/ez-split-panel.entry.js.gz +0 -0
- package/dist/esm/ez-tabselector.entry.js.gz +0 -0
- package/dist/esm/ez-text-area.entry.js.gz +0 -0
- package/dist/esm/ez-text-input.entry.js.gz +0 -0
- package/dist/esm/ez-time-input.entry.js.gz +0 -0
- package/dist/esm/ez-toast.entry.js.gz +0 -0
- package/dist/esm/ez-tooltip.entry.js.gz +0 -0
- package/dist/esm/ez-tree.entry.js.gz +0 -0
- package/dist/esm/ez-upload.entry.js.gz +0 -0
- package/dist/esm/ez-view-stack.entry.js.gz +0 -0
- package/dist/esm/ezListHelper-00fb9b8d.js.gz +0 -0
- package/dist/esm/ezui.js.gz +0 -0
- package/dist/esm/filter-column.entry.js.gz +0 -0
- package/dist/esm/index-5a720e56.js.gz +0 -0
- package/dist/esm/index.js.gz +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/polyfills/core-js.js.gz +0 -0
- package/dist/esm/polyfills/css-shim.js.gz +0 -0
- package/dist/esm/polyfills/dom.js.gz +0 -0
- package/dist/esm/polyfills/es5-html-element.js.gz +0 -0
- package/dist/esm/polyfills/index.js.gz +0 -0
- package/dist/esm/polyfills/system.js.gz +0 -0
- package/dist/esm/searchFormatters-8229207e.js.gz +0 -0
- package/dist/ezui/ezui.esm.js.gz +0 -0
- package/dist/ezui/index.esm.js.gz +0 -0
- package/dist/ezui/p-000159dc.entry.js.gz +0 -0
- package/dist/ezui/p-0378416a.entry.js.gz +0 -0
- package/dist/ezui/p-05e1f4e7.js +0 -1
- package/dist/ezui/p-05e1f4e7.js.gz +0 -0
- package/dist/ezui/p-06f1b8e4.entry.js.gz +0 -0
- package/dist/ezui/p-0cd9d4ec.entry.js +0 -1
- package/dist/ezui/p-0cd9d4ec.entry.js.gz +0 -0
- package/dist/ezui/p-0cfbbe82.entry.js +0 -1
- package/dist/ezui/p-0cfbbe82.entry.js.gz +0 -0
- package/dist/ezui/p-11bfeca3.entry.js.gz +0 -0
- package/dist/ezui/p-173f68ea.js +0 -1
- package/dist/ezui/p-173f68ea.js.gz +0 -0
- package/dist/ezui/p-1bb62d6b.entry.js +0 -1
- package/dist/ezui/p-1bb62d6b.entry.js.gz +0 -0
- package/dist/ezui/p-2069c78a.entry.js +0 -1
- package/dist/ezui/p-2069c78a.entry.js.gz +0 -0
- package/dist/ezui/p-2187f86c.js.gz +0 -0
- package/dist/ezui/p-22ea800a.entry.js +0 -1
- package/dist/ezui/p-22ea800a.entry.js.gz +0 -0
- package/dist/ezui/p-23dab72f.entry.js +0 -1
- package/dist/ezui/p-23dab72f.entry.js.gz +0 -0
- package/dist/ezui/p-24b42f3d.entry.js +0 -1
- package/dist/ezui/p-24b42f3d.entry.js.gz +0 -0
- package/dist/ezui/p-2f351332.entry.js +0 -1
- package/dist/ezui/p-2f351332.entry.js.gz +0 -0
- package/dist/ezui/p-37c840e8.entry.js +0 -1
- package/dist/ezui/p-37c840e8.entry.js.gz +0 -0
- package/dist/ezui/p-40a60148.js.gz +0 -0
- package/dist/ezui/p-41652617.entry.js +0 -1
- package/dist/ezui/p-41652617.entry.js.gz +0 -0
- package/dist/ezui/p-44b39e81.entry.js.gz +0 -0
- package/dist/ezui/p-4607fb89.js +0 -1
- package/dist/ezui/p-4607fb89.js.gz +0 -0
- package/dist/ezui/p-4818b8ce.entry.js +0 -1
- package/dist/ezui/p-4818b8ce.entry.js.gz +0 -0
- package/dist/ezui/p-68b2e579.entry.js +0 -1
- package/dist/ezui/p-68b2e579.entry.js.gz +0 -0
- package/dist/ezui/p-6b51c9cc.entry.js.gz +0 -0
- package/dist/ezui/p-6d8b3298.entry.js +0 -1
- package/dist/ezui/p-6d8b3298.entry.js.gz +0 -0
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js.gz +0 -0
- package/dist/ezui/p-6fc26622.entry.js.gz +0 -0
- package/dist/ezui/p-708b196e.entry.js.gz +0 -0
- package/dist/ezui/p-7567ccdd.entry.js.gz +0 -0
- package/dist/ezui/p-769632d5.entry.js.gz +0 -0
- package/dist/ezui/p-7c1b3cef.entry.js +0 -1
- package/dist/ezui/p-7c1b3cef.entry.js.gz +0 -0
- package/dist/ezui/p-80dfc50b.js.gz +0 -0
- package/dist/ezui/p-81461d2f.entry.js.gz +0 -0
- package/dist/ezui/p-82fa4b09.entry.js.gz +0 -0
- package/dist/ezui/p-87f5a060.entry.js.gz +0 -0
- package/dist/ezui/p-88c615f0.entry.js +0 -1
- package/dist/ezui/p-88c615f0.entry.js.gz +0 -0
- package/dist/ezui/p-9066b0b0.entry.js +0 -1
- package/dist/ezui/p-9066b0b0.entry.js.gz +0 -0
- package/dist/ezui/p-91ccae0c.entry.js.gz +0 -0
- package/dist/ezui/p-92748142.entry.js.gz +0 -0
- package/dist/ezui/p-98bb8b16.js.gz +0 -0
- package/dist/ezui/p-9c5a6ec4.entry.js +0 -1
- package/dist/ezui/p-9c5a6ec4.entry.js.gz +0 -0
- package/dist/ezui/p-9d6d339e.entry.js +0 -1
- package/dist/ezui/p-9d6d339e.entry.js.gz +0 -0
- package/dist/ezui/p-9e45446f.entry.js +0 -1
- package/dist/ezui/p-9e45446f.entry.js.gz +0 -0
- package/dist/ezui/p-9e95bfeb.entry.js.gz +0 -0
- package/dist/ezui/p-a5d0b66b.entry.js +0 -309
- package/dist/ezui/p-a5d0b66b.entry.js.gz +0 -0
- package/dist/ezui/p-a79f3789.entry.js +0 -1
- package/dist/ezui/p-a79f3789.entry.js.gz +0 -0
- package/dist/ezui/p-ab574d59.js.gz +0 -0
- package/dist/ezui/p-acddfb2e.js +0 -1
- package/dist/ezui/p-acddfb2e.js.gz +0 -0
- package/dist/ezui/p-b853763b.js.gz +0 -0
- package/dist/ezui/p-b9282c79.entry.js +0 -1
- package/dist/ezui/p-b9282c79.entry.js.gz +0 -0
- package/dist/ezui/p-c2b20f78.entry.js.gz +0 -0
- package/dist/ezui/p-c7035d65.entry.js.gz +0 -0
- package/dist/ezui/p-c96fbbef.entry.js +0 -1
- package/dist/ezui/p-c96fbbef.entry.js.gz +0 -0
- package/dist/ezui/p-ca8936df.entry.js +0 -1
- package/dist/ezui/p-ca8936df.entry.js.gz +0 -0
- package/dist/ezui/p-cb83960b.entry.js +0 -1
- package/dist/ezui/p-cb83960b.entry.js.gz +0 -0
- package/dist/ezui/p-cc4ffa6b.entry.js +0 -1
- package/dist/ezui/p-cc4ffa6b.entry.js.gz +0 -0
- package/dist/ezui/p-cf33bc48.entry.js.gz +0 -0
- package/dist/ezui/p-dc628ed3.js.gz +0 -0
- package/dist/ezui/p-dfca5946.entry.js.gz +0 -0
- package/dist/ezui/p-e18d9e6a.entry.js +0 -1
- package/dist/ezui/p-e18d9e6a.entry.js.gz +0 -0
- package/dist/ezui/p-e3f8660b.entry.js +0 -1
- package/dist/ezui/p-e3f8660b.entry.js.gz +0 -0
- package/dist/ezui/p-e4c7eb39.js.gz +0 -0
- package/dist/ezui/p-e6b38ade.entry.js.gz +0 -0
- package/dist/ezui/p-ec7db713.js.gz +0 -0
- package/dist/ezui/p-ede42942.entry.js +0 -1
- package/dist/ezui/p-ede42942.entry.js.gz +0 -0
- package/dist/ezui/p-f6754848.entry.js +0 -1
- package/dist/ezui/p-f6754848.entry.js.gz +0 -0
- package/dist/ezui/p-fc194825.entry.js.gz +0 -0
- package/dist/index.cjs.js.gz +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/types/utils/ResponsiveInputUtils.d.ts +0 -6
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
2
|
-
import { Action, DataUnit, ObjectUtils as ObjectUtils$1, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1,
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
|
+
import { Action, DataUnit, ObjectUtils as ObjectUtils$1, UserInterface, HTMLBuilder, ApplicationContext, StringUtils as StringUtils$1, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter, SortMode, ElementIDUtils, ColumnFilterManager as ColumnFilterManager$1, DateUtils as DateUtils$1, ArrayUtils as ArrayUtils$1, FieldComparator, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
4
4
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import { C as CustomEditorSource, a as CustomRenderSource } from './
|
|
8
|
-
import './
|
|
9
|
-
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE } from './constants-
|
|
10
|
-
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder } from './DataBinder-9c877244.js';
|
|
7
|
+
import { C as CustomEditorSource, a as CustomRenderSource } from './FormLayout-071d324c.js';
|
|
8
|
+
import { b as buildFieldMetadata, R as RecordValidationProcessor, D as DataBinder, S as SHORTCUT_SEARCH_FIELD, f as focusOnFieldSerch, c as SEARCH_FIELD_FULL_WIDTH, d as LABEL_SEARCH_COLUMN, a as buildFieldSearch } from './search-column-e609d513.js';
|
|
9
|
+
import { D as DISTINCT_FILTER_NAME_PREFIX, E as EZ_GRID_LOADING_SOURCE, P as PRESENTATION_COL_ID_PROP_NAME, a as PRESENTATION_FROM_COL_PROP_NAME } from './constants-b036528f.js';
|
|
11
10
|
import { F as FocusResolver } from './FocusResolver-1ccbf850.js';
|
|
11
|
+
import { p as purify } from './purify-da6317bb.js';
|
|
12
|
+
import './_commonjsHelpers-9943807e.js';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
|
|
@@ -433,6 +434,7 @@ function removeAllReferences(obj, objectName) {
|
|
|
433
434
|
// leave all basic types - this is needed for GridAPI to leave the "destroyed: boolean" attribute alone
|
|
434
435
|
if (typeof value === 'function') {
|
|
435
436
|
var func = function () {
|
|
437
|
+
console.warn("AG Grid: " + objectName + " function " + key + "() cannot be called as the grid has been destroyed.\n Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n be keeping the API reference, your application has a memory leak! Remove the API reference\n when the grid is destroyed.");
|
|
436
438
|
};
|
|
437
439
|
properties[key] = { value: func, writable: true };
|
|
438
440
|
}
|
|
@@ -603,6 +605,9 @@ function waitUntil(condition, callback, timeout, timeoutMessage) {
|
|
|
603
605
|
window.clearInterval(interval);
|
|
604
606
|
interval = null;
|
|
605
607
|
}
|
|
608
|
+
if (reachedTimeout && timeoutMessage) {
|
|
609
|
+
console.warn(timeoutMessage);
|
|
610
|
+
}
|
|
606
611
|
}
|
|
607
612
|
};
|
|
608
613
|
internalCallback();
|
|
@@ -704,9 +709,14 @@ var Context = /** @class */ (function () {
|
|
|
704
709
|
Context.prototype.createBeanWrapper = function (BeanClass) {
|
|
705
710
|
var metaData = BeanClass.__agBeanMetaData;
|
|
706
711
|
if (!metaData) {
|
|
712
|
+
var beanName = void 0;
|
|
707
713
|
if (BeanClass.prototype.constructor) {
|
|
708
|
-
getFunctionName(BeanClass.prototype.constructor);
|
|
714
|
+
beanName = getFunctionName(BeanClass.prototype.constructor);
|
|
715
|
+
}
|
|
716
|
+
else {
|
|
717
|
+
beanName = "" + BeanClass;
|
|
709
718
|
}
|
|
719
|
+
console.error("Context item " + beanName + " is not a bean");
|
|
710
720
|
return;
|
|
711
721
|
}
|
|
712
722
|
var beanEntry = {
|
|
@@ -778,6 +788,7 @@ var Context = /** @class */ (function () {
|
|
|
778
788
|
return beansList;
|
|
779
789
|
};
|
|
780
790
|
Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {
|
|
791
|
+
if (optional === void 0) { optional = false; }
|
|
781
792
|
if (beanName === "context") {
|
|
782
793
|
return this;
|
|
783
794
|
}
|
|
@@ -788,6 +799,9 @@ var Context = /** @class */ (function () {
|
|
|
788
799
|
if (beanEntry) {
|
|
789
800
|
return beanEntry.beanInstance;
|
|
790
801
|
}
|
|
802
|
+
if (!optional) {
|
|
803
|
+
console.error("AG Grid: unable to find bean reference " + beanName + " while initialising " + wiringBean);
|
|
804
|
+
}
|
|
791
805
|
return null;
|
|
792
806
|
};
|
|
793
807
|
Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {
|
|
@@ -894,9 +908,11 @@ function Optional(name) {
|
|
|
894
908
|
}
|
|
895
909
|
function autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {
|
|
896
910
|
if (name === null) {
|
|
911
|
+
console.error("AG Grid: Autowired name should not be null");
|
|
897
912
|
return;
|
|
898
913
|
}
|
|
899
914
|
if (typeof index === "number") {
|
|
915
|
+
console.error("AG Grid: Autowired should be on an attribute");
|
|
900
916
|
return;
|
|
901
917
|
}
|
|
902
918
|
// it's an attribute on the class
|
|
@@ -1228,6 +1244,8 @@ var ModuleRegistry = /** @class */ (function () {
|
|
|
1228
1244
|
else {
|
|
1229
1245
|
if (ModuleRegistry.moduleBased !== moduleBased) {
|
|
1230
1246
|
doOnce(function () {
|
|
1247
|
+
console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms.");
|
|
1248
|
+
console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');
|
|
1231
1249
|
}, 'ModulePackageCheck');
|
|
1232
1250
|
}
|
|
1233
1251
|
}
|
|
@@ -1245,7 +1263,15 @@ var ModuleRegistry = /** @class */ (function () {
|
|
|
1245
1263
|
return true;
|
|
1246
1264
|
}
|
|
1247
1265
|
var warningKey = reason + moduleName;
|
|
1266
|
+
var warningMessage;
|
|
1267
|
+
if (ModuleRegistry.moduleBased) {
|
|
1268
|
+
warningMessage = "AG Grid: unable to use " + reason + " as module " + moduleName + " is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/";
|
|
1269
|
+
}
|
|
1270
|
+
else {
|
|
1271
|
+
warningMessage = "AG Grid: unable to use " + reason + " as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/";
|
|
1272
|
+
}
|
|
1248
1273
|
doOnce(function () {
|
|
1274
|
+
console.warn(warningMessage);
|
|
1249
1275
|
}, warningKey);
|
|
1250
1276
|
return false;
|
|
1251
1277
|
};
|
|
@@ -1438,9 +1464,11 @@ var Column = /** @class */ (function () {
|
|
|
1438
1464
|
var colDefAny = this.colDef;
|
|
1439
1465
|
function warnOnce(msg, key, obj) {
|
|
1440
1466
|
doOnce(function () {
|
|
1441
|
-
if (obj)
|
|
1467
|
+
if (obj) {
|
|
1468
|
+
console.warn(msg, obj);
|
|
1469
|
+
}
|
|
1442
1470
|
else {
|
|
1443
|
-
doOnce(function () { return (
|
|
1471
|
+
doOnce(function () { return console.warn(msg); }, key);
|
|
1444
1472
|
}
|
|
1445
1473
|
}, key);
|
|
1446
1474
|
}
|
|
@@ -1908,16 +1936,19 @@ var Column = /** @class */ (function () {
|
|
|
1908
1936
|
// this used to be needed, as previous version of ag-grid had lockPosition as column state,
|
|
1909
1937
|
// so couldn't depend on colDef version.
|
|
1910
1938
|
Column.prototype.isLockPosition = function () {
|
|
1939
|
+
console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');
|
|
1911
1940
|
return this.colDef ? !!this.colDef.lockPosition : false;
|
|
1912
1941
|
};
|
|
1913
1942
|
// this used to be needed, as previous version of ag-grid had lockVisible as column state,
|
|
1914
1943
|
// so couldn't depend on colDef version.
|
|
1915
1944
|
Column.prototype.isLockVisible = function () {
|
|
1945
|
+
console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');
|
|
1916
1946
|
return this.colDef ? !!this.colDef.lockVisible : false;
|
|
1917
1947
|
};
|
|
1918
1948
|
// this used to be needed, as previous version of ag-grid had lockPinned as column state,
|
|
1919
1949
|
// so couldn't depend on colDef version.
|
|
1920
1950
|
Column.prototype.isLockPinned = function () {
|
|
1951
|
+
console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');
|
|
1921
1952
|
return this.colDef ? !!this.colDef.lockPinned : false;
|
|
1922
1953
|
};
|
|
1923
1954
|
// + renderedHeaderCell - for making header cell transparent when moving
|
|
@@ -2313,6 +2344,7 @@ var ColumnGroup = /** @class */ (function () {
|
|
|
2313
2344
|
};
|
|
2314
2345
|
/** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */
|
|
2315
2346
|
ColumnGroup.prototype.getOriginalColumnGroup = function () {
|
|
2347
|
+
console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');
|
|
2316
2348
|
return this.getProvidedColumnGroup();
|
|
2317
2349
|
};
|
|
2318
2350
|
ColumnGroup.prototype.getPaddingLevel = function () {
|
|
@@ -3188,7 +3220,9 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3188
3220
|
var typeKeys = [];
|
|
3189
3221
|
if (type instanceof Array) {
|
|
3190
3222
|
var invalidArray = type.some(function (a) { return typeof a !== 'string'; });
|
|
3191
|
-
if (invalidArray)
|
|
3223
|
+
if (invalidArray) {
|
|
3224
|
+
console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'");
|
|
3225
|
+
}
|
|
3192
3226
|
else {
|
|
3193
3227
|
typeKeys = type;
|
|
3194
3228
|
}
|
|
@@ -3197,13 +3231,16 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3197
3231
|
typeKeys = type.split(',');
|
|
3198
3232
|
}
|
|
3199
3233
|
else {
|
|
3234
|
+
console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");
|
|
3200
3235
|
return;
|
|
3201
3236
|
}
|
|
3202
3237
|
// merge user defined with default column types
|
|
3203
3238
|
var allColumnTypes = Object.assign({}, DefaultColumnTypes);
|
|
3204
3239
|
var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};
|
|
3205
3240
|
iterateObject(userTypes, function (key, value) {
|
|
3206
|
-
if (key in allColumnTypes)
|
|
3241
|
+
if (key in allColumnTypes) {
|
|
3242
|
+
console.warn("AG Grid: the column type '" + key + "' is a default column type and cannot be overridden.");
|
|
3243
|
+
}
|
|
3207
3244
|
else {
|
|
3208
3245
|
allColumnTypes[key] = value;
|
|
3209
3246
|
}
|
|
@@ -3213,12 +3250,34 @@ var ColumnFactory = /** @class */ (function (_super) {
|
|
|
3213
3250
|
if (typeColDef) {
|
|
3214
3251
|
mergeDeep(colDefMerged, typeColDef, false, true);
|
|
3215
3252
|
}
|
|
3253
|
+
else {
|
|
3254
|
+
console.warn("AG Grid: colDef.type '" + t + "' does not correspond to defined gridOptions.columnTypes");
|
|
3255
|
+
}
|
|
3216
3256
|
});
|
|
3217
3257
|
};
|
|
3218
3258
|
ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {
|
|
3219
3259
|
if (colDef) {
|
|
3220
3260
|
var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type
|
|
3261
|
+
if (colDefNoType.group !== undefined) {
|
|
3262
|
+
console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');
|
|
3263
|
+
}
|
|
3264
|
+
if (colDefNoType.headerGroup !== undefined) {
|
|
3265
|
+
console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');
|
|
3266
|
+
}
|
|
3267
|
+
if (colDefNoType.headerGroupShow !== undefined) {
|
|
3268
|
+
console.warn('AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3');
|
|
3269
|
+
}
|
|
3270
|
+
if (colDefNoType.suppressRowGroup !== undefined) {
|
|
3271
|
+
console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');
|
|
3272
|
+
}
|
|
3273
|
+
if (colDefNoType.suppressAggregation !== undefined) {
|
|
3274
|
+
console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');
|
|
3275
|
+
}
|
|
3276
|
+
if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {
|
|
3277
|
+
console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');
|
|
3278
|
+
}
|
|
3221
3279
|
if (colDefNoType.displayName) {
|
|
3280
|
+
console.warn("AG Grid: Found displayName " + colDefNoType.displayName + ", please use headerName instead, displayName is deprecated.");
|
|
3222
3281
|
colDefNoType.headerName = colDefNoType.displayName;
|
|
3223
3282
|
}
|
|
3224
3283
|
}
|
|
@@ -4280,6 +4339,7 @@ var SideBarDefParser = /** @class */ (function () {
|
|
|
4280
4339
|
toParse.forEach(function (key) {
|
|
4281
4340
|
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];
|
|
4282
4341
|
if (!lookupResult) {
|
|
4342
|
+
console.warn("AG Grid: the key " + key + " is not a valid key for specifying a tool panel, valid keys are: " + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));
|
|
4283
4343
|
return;
|
|
4284
4344
|
}
|
|
4285
4345
|
comps_1.push(lookupResult);
|
|
@@ -4310,6 +4370,7 @@ var SideBarDefParser = /** @class */ (function () {
|
|
|
4310
4370
|
if (typeof it === 'string') {
|
|
4311
4371
|
var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];
|
|
4312
4372
|
if (!lookupResult) {
|
|
4373
|
+
console.warn("AG Grid: the key " + it + " is not a valid key for specifying a tool panel, valid keys are: " + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));
|
|
4313
4374
|
return;
|
|
4314
4375
|
}
|
|
4315
4376
|
toAdd = lookupResult;
|
|
@@ -4906,6 +4967,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4906
4967
|
this.destroyed = true;
|
|
4907
4968
|
};
|
|
4908
4969
|
GridOptionsWrapper.prototype.init = function () {
|
|
4970
|
+
var _this = this;
|
|
4909
4971
|
if (this.gridOptions.suppressPropertyNamesCheck !== true) {
|
|
4910
4972
|
this.checkGridOptionsProperties();
|
|
4911
4973
|
this.checkColumnDefProperties();
|
|
@@ -4916,26 +4978,61 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4916
4978
|
}
|
|
4917
4979
|
var async = this.useAsyncEvents();
|
|
4918
4980
|
this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);
|
|
4919
|
-
if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes())
|
|
4981
|
+
if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {
|
|
4982
|
+
console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work");
|
|
4983
|
+
}
|
|
4920
4984
|
if (this.isGroupSelectsChildren()) {
|
|
4921
|
-
if (!this.isRowSelectionMulti())
|
|
4922
|
-
|
|
4985
|
+
if (!this.isRowSelectionMulti()) {
|
|
4986
|
+
console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense");
|
|
4987
|
+
}
|
|
4988
|
+
if (this.isRowModelServerSide()) {
|
|
4989
|
+
console.warn('AG Grid: group selects children is NOT support for Server Side Row Model. ' +
|
|
4990
|
+
'This is because the rows are lazy loaded, so selecting a group is not possible as' +
|
|
4991
|
+
'the grid has no way of knowing what the children are.');
|
|
4992
|
+
}
|
|
4993
|
+
}
|
|
4994
|
+
if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {
|
|
4995
|
+
console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to use these together on our support forum either, you will get the same answer!");
|
|
4923
4996
|
}
|
|
4924
|
-
if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) ;
|
|
4925
4997
|
if (this.isRowModelServerSide()) {
|
|
4926
|
-
|
|
4927
|
-
if (exists(this.gridOptions.groupDefaultExpanded))
|
|
4928
|
-
|
|
4998
|
+
var msg = function (prop) { return "AG Grid: '" + prop + "' is not supported on the Server-Side Row Model"; };
|
|
4999
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5000
|
+
console.warn(msg('groupDefaultExpanded'));
|
|
5001
|
+
}
|
|
5002
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5003
|
+
console.warn(msg('groupIncludeFooter'));
|
|
5004
|
+
}
|
|
5005
|
+
if (exists(this.gridOptions.groupDefaultExpanded)) {
|
|
5006
|
+
console.warn(msg('groupIncludeTotalFooter'));
|
|
5007
|
+
}
|
|
4929
5008
|
}
|
|
4930
5009
|
if (isTrue(this.gridOptions.enableRangeSelection)) {
|
|
4931
5010
|
ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'enableRangeSelection');
|
|
4932
5011
|
}
|
|
4933
|
-
else if (this.isEnableRangeHandle() || this.isEnableFillHandle())
|
|
5012
|
+
else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) {
|
|
5013
|
+
console.warn("AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");
|
|
5014
|
+
}
|
|
4934
5015
|
if (this.isGroupRowsSticky()) {
|
|
4935
|
-
if (this.isGroupHideOpenParents())
|
|
4936
|
-
|
|
4937
|
-
|
|
5016
|
+
if (this.isGroupHideOpenParents()) {
|
|
5017
|
+
console.warn("AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.");
|
|
5018
|
+
}
|
|
5019
|
+
if (this.isMasterDetail()) {
|
|
5020
|
+
console.warn("AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one.");
|
|
5021
|
+
}
|
|
5022
|
+
if (this.isPagination()) {
|
|
5023
|
+
console.warn("AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one.");
|
|
5024
|
+
}
|
|
4938
5025
|
}
|
|
5026
|
+
var warnOfDeprecaredIcon = function (name) {
|
|
5027
|
+
if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {
|
|
5028
|
+
console.warn("gridOptions.icons." + name + " is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/");
|
|
5029
|
+
}
|
|
5030
|
+
};
|
|
5031
|
+
warnOfDeprecaredIcon('radioButtonOff');
|
|
5032
|
+
warnOfDeprecaredIcon('radioButtonOn');
|
|
5033
|
+
warnOfDeprecaredIcon('checkboxChecked');
|
|
5034
|
+
warnOfDeprecaredIcon('checkboxUnchecked');
|
|
5035
|
+
warnOfDeprecaredIcon('checkboxIndeterminate');
|
|
4939
5036
|
// sets an initial calculation for the scrollbar width
|
|
4940
5037
|
this.getScrollbarWidth();
|
|
4941
5038
|
};
|
|
@@ -4959,7 +5056,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
4959
5056
|
GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {
|
|
4960
5057
|
var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);
|
|
4961
5058
|
iterateObject(invalidProperties, function (key, value) {
|
|
5059
|
+
console.warn("ag-grid: invalid " + containerName + " property '" + key + "' did you mean any of these: " + value.slice(0, 8).join(", "));
|
|
4962
5060
|
});
|
|
5061
|
+
if (Object.keys(invalidProperties).length > 0) {
|
|
5062
|
+
console.warn("ag-grid: to see all the valid " + containerName + " properties please check: " + docsUrl);
|
|
5063
|
+
}
|
|
4963
5064
|
};
|
|
4964
5065
|
/**
|
|
4965
5066
|
* Wrap the user callback and attach the api, columnApi and context to the params object on the way through.
|
|
@@ -5218,7 +5319,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5218
5319
|
];
|
|
5219
5320
|
if (validLayouts.indexOf(domLayout) === -1) {
|
|
5220
5321
|
doOnce(function () {
|
|
5221
|
-
return (
|
|
5322
|
+
return console.warn("AG Grid: " + domLayout + " is not valid for DOM Layout, valid values are " + Constants.DOM_LAYOUT_NORMAL + ", " + Constants.DOM_LAYOUT_AUTO_HEIGHT + " and " + Constants.DOM_LAYOUT_PRINT);
|
|
5222
5323
|
}, 'warn about dom layout values');
|
|
5223
5324
|
return Constants.DOM_LAYOUT_NORMAL;
|
|
5224
5325
|
}
|
|
@@ -5613,7 +5714,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5613
5714
|
return 'xy';
|
|
5614
5715
|
}
|
|
5615
5716
|
if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {
|
|
5616
|
-
doOnce(function () { return (
|
|
5717
|
+
doOnce(function () { return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'."); }, 'warn invalid fill direction');
|
|
5617
5718
|
return 'xy';
|
|
5618
5719
|
}
|
|
5619
5720
|
return direction;
|
|
@@ -5712,6 +5813,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5712
5813
|
};
|
|
5713
5814
|
GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {
|
|
5714
5815
|
if (this.gridOptions.defaultExportParams) {
|
|
5816
|
+
console.warn("AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default" + capitalise(type) + "ExportParams`'");
|
|
5715
5817
|
if (type === 'csv') {
|
|
5716
5818
|
return this.gridOptions.defaultExportParams;
|
|
5717
5819
|
}
|
|
@@ -5844,7 +5946,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5844
5946
|
GridOptionsWrapper.prototype.isServerSideSortAllLevels = function () {
|
|
5845
5947
|
var isEnabled = isTrue(this.gridOptions.serverSideSortAllLevels);
|
|
5846
5948
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5847
|
-
doOnce(function () { return (
|
|
5949
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.'); }, 'serverSideSortAllLevels');
|
|
5848
5950
|
return false;
|
|
5849
5951
|
}
|
|
5850
5952
|
return isEnabled;
|
|
@@ -5852,7 +5954,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5852
5954
|
GridOptionsWrapper.prototype.isServerSideFilterAllLevels = function () {
|
|
5853
5955
|
var isEnabled = isTrue(this.gridOptions.serverSideFilterAllLevels);
|
|
5854
5956
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5855
|
-
doOnce(function () { return (
|
|
5957
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.'); }, 'serverSideFilterAllLevels');
|
|
5856
5958
|
return false;
|
|
5857
5959
|
}
|
|
5858
5960
|
return isEnabled;
|
|
@@ -5860,11 +5962,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5860
5962
|
GridOptionsWrapper.prototype.isServerSideSortOnServer = function () {
|
|
5861
5963
|
var isEnabled = isTrue(this.gridOptions.serverSideSortOnServer);
|
|
5862
5964
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5863
|
-
doOnce(function () { return (
|
|
5965
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.'); }, 'serverSideSortOnServerRowModel');
|
|
5864
5966
|
return false;
|
|
5865
5967
|
}
|
|
5866
5968
|
if (this.isTreeData() && isEnabled) {
|
|
5867
|
-
doOnce(function () { return (
|
|
5969
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.'); }, 'serverSideSortOnServerTreeData');
|
|
5868
5970
|
return false;
|
|
5869
5971
|
}
|
|
5870
5972
|
return isEnabled;
|
|
@@ -5872,11 +5974,11 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5872
5974
|
GridOptionsWrapper.prototype.isServerSideFilterOnServer = function () {
|
|
5873
5975
|
var isEnabled = isTrue(this.gridOptions.serverSideFilterOnServer);
|
|
5874
5976
|
if (!this.isRowModelServerSide() && isEnabled) {
|
|
5875
|
-
doOnce(function () { return (
|
|
5977
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.'); }, 'serverSideFilterOnServerRowModel');
|
|
5876
5978
|
return false;
|
|
5877
5979
|
}
|
|
5878
5980
|
if (this.isTreeData() && isEnabled) {
|
|
5879
|
-
doOnce(function () { return (
|
|
5981
|
+
doOnce(function () { return console.warn('AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.'); }, 'serverSideFilterOnServerTreeData');
|
|
5880
5982
|
return false;
|
|
5881
5983
|
}
|
|
5882
5984
|
return isEnabled;
|
|
@@ -5985,7 +6087,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
5985
6087
|
var capitalisedType = capitalise(type);
|
|
5986
6088
|
if (exists(delay)) {
|
|
5987
6089
|
if (delay < 0) {
|
|
5988
|
-
doOnce(function () { return (
|
|
6090
|
+
doOnce(function () { return console.warn("ag-grid: tooltip" + capitalisedType + "Delay should not be lower than 0"); }, "tooltip" + capitalisedType + "DelayWarn");
|
|
5989
6091
|
}
|
|
5990
6092
|
return Math.max(200, delay);
|
|
5991
6093
|
}
|
|
@@ -6036,7 +6138,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6036
6138
|
var rowBuffer = this.gridOptions.rowBuffer;
|
|
6037
6139
|
if (typeof rowBuffer === 'number') {
|
|
6038
6140
|
if (rowBuffer < 0) {
|
|
6039
|
-
doOnce(function () { return (
|
|
6141
|
+
doOnce(function () { return console.warn("AG Grid: rowBuffer should not be negative"); }, 'warn rowBuffer negative');
|
|
6040
6142
|
this.gridOptions.rowBuffer = rowBuffer = 0;
|
|
6041
6143
|
}
|
|
6042
6144
|
}
|
|
@@ -6070,23 +6172,45 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6070
6172
|
// casting to generic object, so typescript compiles even though
|
|
6071
6173
|
// we are looking for attributes that don't exist
|
|
6072
6174
|
var options = this.gridOptions;
|
|
6175
|
+
if (options.deprecatedEmbedFullWidthRows) {
|
|
6176
|
+
console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.");
|
|
6177
|
+
}
|
|
6178
|
+
if (options.rowDeselection) {
|
|
6179
|
+
console.warn('AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected.');
|
|
6180
|
+
}
|
|
6073
6181
|
if (options.enableMultiRowDragging) {
|
|
6074
6182
|
options.rowDragMultiRow = true;
|
|
6075
6183
|
delete options.enableMultiRowDragging;
|
|
6184
|
+
console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');
|
|
6076
6185
|
}
|
|
6077
6186
|
var checkRenamedProperty = function (oldProp, newProp, version) {
|
|
6078
6187
|
if (options[oldProp] != null) {
|
|
6188
|
+
console.warn("AG Grid: since version " + version + ", '" + oldProp + "' is deprecated / renamed, please use the new property name '" + newProp + "' instead.");
|
|
6079
6189
|
if (options[newProp] == null) {
|
|
6080
6190
|
options[newProp] = options[oldProp];
|
|
6081
6191
|
}
|
|
6082
6192
|
}
|
|
6083
6193
|
};
|
|
6084
|
-
checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis');
|
|
6085
|
-
checkRenamedProperty('deltaRowDataMode', 'immutableData');
|
|
6086
|
-
checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels');
|
|
6087
|
-
checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels');
|
|
6088
|
-
|
|
6194
|
+
checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');
|
|
6195
|
+
checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');
|
|
6196
|
+
checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels', '28.0.0');
|
|
6197
|
+
checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels', '28.0.0');
|
|
6198
|
+
if (options.immutableColumns || options.deltaColumnMode) {
|
|
6199
|
+
console.warn('AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true');
|
|
6200
|
+
}
|
|
6201
|
+
checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');
|
|
6089
6202
|
if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {
|
|
6203
|
+
console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');
|
|
6204
|
+
console.warn(' Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');
|
|
6205
|
+
console.warn(' For example instead of this:');
|
|
6206
|
+
console.warn(' groupRowInnerRenderer: "myRenderer"');
|
|
6207
|
+
console.warn(' groupRowInnerRendererParams: {x: a}');
|
|
6208
|
+
console.warn(' Replace with this:');
|
|
6209
|
+
console.warn(' groupRowRendererParams: {');
|
|
6210
|
+
console.warn(' innerRenderer: "myRenderer",');
|
|
6211
|
+
console.warn(' innerRendererParams: {x: a}');
|
|
6212
|
+
console.warn(' }');
|
|
6213
|
+
console.warn(' We have copied the properties over for you. However to stop this error message, please change your application code.');
|
|
6090
6214
|
if (!options.groupRowRendererParams) {
|
|
6091
6215
|
options.groupRowRendererParams = {};
|
|
6092
6216
|
}
|
|
@@ -6101,36 +6225,105 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6101
6225
|
params.innerRendererFramework = options.groupRowInnerRendererFramework;
|
|
6102
6226
|
}
|
|
6103
6227
|
}
|
|
6228
|
+
if (options.rememberGroupStateWhenNewData) {
|
|
6229
|
+
console.warn('AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed.');
|
|
6230
|
+
}
|
|
6104
6231
|
if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {
|
|
6232
|
+
console.warn('AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer');
|
|
6105
6233
|
options.detailRowAutoHeight = true;
|
|
6106
6234
|
}
|
|
6235
|
+
if (options.suppressKeyboardEvent) {
|
|
6236
|
+
console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n future versions of AG Grid. If you need this to be set for every column use the defaultColDef property.");
|
|
6237
|
+
}
|
|
6238
|
+
if (options.suppressEnterpriseResetOnNewColumns) {
|
|
6239
|
+
console.warn('AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed.');
|
|
6240
|
+
}
|
|
6241
|
+
if (options.suppressColumnStateEvents) {
|
|
6242
|
+
console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API');
|
|
6243
|
+
}
|
|
6244
|
+
if (options.defaultExportParams) {
|
|
6245
|
+
console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');
|
|
6246
|
+
}
|
|
6107
6247
|
if (options.stopEditingWhenGridLosesFocus) {
|
|
6248
|
+
console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');
|
|
6108
6249
|
options.stopEditingWhenCellsLoseFocus = true;
|
|
6109
6250
|
}
|
|
6251
|
+
if (options.applyColumnDefOrder) {
|
|
6252
|
+
console.warn('AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true');
|
|
6253
|
+
}
|
|
6110
6254
|
if (options.groupMultiAutoColumn) {
|
|
6255
|
+
console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`");
|
|
6111
6256
|
options.groupDisplayType = 'multipleColumns';
|
|
6112
6257
|
}
|
|
6113
6258
|
if (options.groupUseEntireRow) {
|
|
6259
|
+
console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`");
|
|
6114
6260
|
options.groupDisplayType = 'groupRows';
|
|
6115
6261
|
}
|
|
6116
6262
|
if (options.groupSuppressAutoColumn) {
|
|
6263
|
+
var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';
|
|
6264
|
+
console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `" + propName + " = 'custom'`");
|
|
6117
6265
|
options.groupDisplayType = 'custom';
|
|
6118
6266
|
}
|
|
6267
|
+
if (options.defaultGroupOrderComparator) {
|
|
6268
|
+
console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object.");
|
|
6269
|
+
}
|
|
6119
6270
|
if (options.defaultGroupSortComparator) {
|
|
6271
|
+
console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`");
|
|
6120
6272
|
options.defaultGroupOrderComparator = options.defaultGroupSortComparator;
|
|
6121
6273
|
}
|
|
6274
|
+
if (options.groupRowAggNodes) {
|
|
6275
|
+
console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object.");
|
|
6276
|
+
}
|
|
6277
|
+
if (options.postSort) {
|
|
6278
|
+
console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object.");
|
|
6279
|
+
}
|
|
6280
|
+
if (options.isFullWidthCell) {
|
|
6281
|
+
console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object.");
|
|
6282
|
+
}
|
|
6283
|
+
if (options.localeTextFunc) {
|
|
6284
|
+
console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object.");
|
|
6285
|
+
}
|
|
6286
|
+
if (options.colWidth) {
|
|
6287
|
+
console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');
|
|
6288
|
+
}
|
|
6289
|
+
if (options.minColWidth) {
|
|
6290
|
+
console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');
|
|
6291
|
+
}
|
|
6292
|
+
if (options.maxColWidth) {
|
|
6293
|
+
console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');
|
|
6294
|
+
}
|
|
6295
|
+
if (options.reactUi) {
|
|
6296
|
+
console.warn('AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true.');
|
|
6297
|
+
}
|
|
6298
|
+
if (options.suppressReactUi) {
|
|
6299
|
+
console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');
|
|
6300
|
+
}
|
|
6122
6301
|
if (options.suppressCellSelection) {
|
|
6302
|
+
console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');
|
|
6123
6303
|
options.suppressCellFocus = options.suppressCellSelection;
|
|
6124
6304
|
}
|
|
6305
|
+
if (options.getRowNodeId) {
|
|
6306
|
+
console.warn('AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default.');
|
|
6307
|
+
}
|
|
6308
|
+
if (options.immutableData) {
|
|
6309
|
+
if (options.getRowId) {
|
|
6310
|
+
console.warn('AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.');
|
|
6311
|
+
}
|
|
6312
|
+
else {
|
|
6313
|
+
console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');
|
|
6314
|
+
}
|
|
6315
|
+
}
|
|
6125
6316
|
if (options.clipboardDeliminator) {
|
|
6317
|
+
console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');
|
|
6126
6318
|
options.clipboardDelimiter = options.clipboardDeliminator;
|
|
6127
6319
|
}
|
|
6128
|
-
checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef');
|
|
6129
|
-
checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef');
|
|
6320
|
+
checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef', '28.0.x');
|
|
6321
|
+
checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef', '28.0.x');
|
|
6130
6322
|
if (options.serverSideStoreType) {
|
|
6323
|
+
console.warn('AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store.');
|
|
6131
6324
|
options.serverSideInfiniteScroll = options.serverSideStoreType === 'partial';
|
|
6132
6325
|
}
|
|
6133
|
-
checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams');
|
|
6326
|
+
checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams', '28.0.x');
|
|
6134
6327
|
};
|
|
6135
6328
|
GridOptionsWrapper.prototype.checkForViolations = function () {
|
|
6136
6329
|
if (this.isTreeData()) {
|
|
@@ -6139,11 +6332,20 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6139
6332
|
};
|
|
6140
6333
|
GridOptionsWrapper.prototype.treeDataViolations = function () {
|
|
6141
6334
|
if (this.isRowModelDefault()) {
|
|
6142
|
-
if (missing(this.getDataPathFunc()))
|
|
6335
|
+
if (missing(this.getDataPathFunc())) {
|
|
6336
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not ' +
|
|
6337
|
+
'provide getDataPath function, please provide getDataPath function if using tree data.');
|
|
6338
|
+
}
|
|
6143
6339
|
}
|
|
6144
6340
|
if (this.isRowModelServerSide()) {
|
|
6145
|
-
if (missing(this.getIsServerSideGroupFunc()))
|
|
6146
|
-
|
|
6341
|
+
if (missing(this.getIsServerSideGroupFunc())) {
|
|
6342
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
|
|
6343
|
+
'provide isServerSideGroup function, please provide isServerSideGroup function if using tree data.');
|
|
6344
|
+
}
|
|
6345
|
+
if (missing(this.getServerSideGroupKeyFunc())) {
|
|
6346
|
+
console.warn('AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not ' +
|
|
6347
|
+
'provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data.');
|
|
6348
|
+
}
|
|
6147
6349
|
}
|
|
6148
6350
|
};
|
|
6149
6351
|
GridOptionsWrapper.prototype.getLocaleTextFunc = function () {
|
|
@@ -6212,6 +6414,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6212
6414
|
this.setRowHeightVariable(rowHeight);
|
|
6213
6415
|
return rowHeight;
|
|
6214
6416
|
}
|
|
6417
|
+
console.warn('AG Grid row height must be a number if not using standard row model');
|
|
6215
6418
|
return this.getDefaultRowHeight();
|
|
6216
6419
|
};
|
|
6217
6420
|
GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {
|
|
@@ -6236,7 +6439,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6236
6439
|
var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);
|
|
6237
6440
|
if (this.isNumeric(height)) {
|
|
6238
6441
|
if (height === 0) {
|
|
6239
|
-
doOnce(function () { return (
|
|
6442
|
+
doOnce(function () { return console.warn('AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.'); }, 'invalidRowHeight');
|
|
6240
6443
|
}
|
|
6241
6444
|
return { height: Math.max(1, height), estimated: false };
|
|
6242
6445
|
}
|
|
@@ -6281,6 +6484,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6281
6484
|
GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {
|
|
6282
6485
|
var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];
|
|
6283
6486
|
if (groupDisplayTypeValues.indexOf(supplied) < 0) {
|
|
6487
|
+
console.warn("AG Grid: '" + supplied + "' is not a valid groupDisplayType value - possible values are: '" + groupDisplayTypeValues.join("', '") + "'");
|
|
6284
6488
|
return false;
|
|
6285
6489
|
}
|
|
6286
6490
|
return supplied === toMatch;
|
|
@@ -6288,6 +6492,7 @@ var GridOptionsWrapper = /** @class */ (function () {
|
|
|
6288
6492
|
GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {
|
|
6289
6493
|
var treeDataDisplayTypeValues = ['auto', 'custom'];
|
|
6290
6494
|
if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {
|
|
6495
|
+
console.warn("AG Grid: '" + supplied + "' is not a valid treeDataDisplayType value - possible values are: '" + treeDataDisplayTypeValues.join("', '") + "'");
|
|
6291
6496
|
return false;
|
|
6292
6497
|
}
|
|
6293
6498
|
return supplied === toMatch;
|
|
@@ -6672,6 +6877,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
6672
6877
|
};
|
|
6673
6878
|
ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {
|
|
6674
6879
|
if (pivot && this.gridOptionsWrapper.isTreeData()) {
|
|
6880
|
+
console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'");
|
|
6675
6881
|
return false;
|
|
6676
6882
|
}
|
|
6677
6883
|
return true;
|
|
@@ -7302,6 +7508,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7302
7508
|
if (loopCount > 1000) {
|
|
7303
7509
|
// this should never happen, but in the future, someone might introduce a bug here,
|
|
7304
7510
|
// so we stop the browser from hanging and report bug properly
|
|
7511
|
+
console.error('AG Grid: infinite loop in resizeColumnSets');
|
|
7305
7512
|
return "break";
|
|
7306
7513
|
}
|
|
7307
7514
|
finishedColsGrew = false;
|
|
@@ -7419,6 +7626,8 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7419
7626
|
if (source === void 0) { source = "api"; }
|
|
7420
7627
|
this.columnAnimationService.start();
|
|
7421
7628
|
if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {
|
|
7629
|
+
console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);
|
|
7630
|
+
console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');
|
|
7422
7631
|
return;
|
|
7423
7632
|
}
|
|
7424
7633
|
// we want to pull all the columns out first and put them into an ordered list
|
|
@@ -7671,6 +7880,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7671
7880
|
ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {
|
|
7672
7881
|
if (source === void 0) { source = "api"; }
|
|
7673
7882
|
if (this.gridOptionsWrapper.getDomLayout() === 'print') {
|
|
7883
|
+
console.warn("Changing the column pinning status is not allowed with domLayout='print'");
|
|
7674
7884
|
return;
|
|
7675
7885
|
}
|
|
7676
7886
|
this.columnAnimationService.start();
|
|
@@ -7940,6 +8150,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
7940
8150
|
return false;
|
|
7941
8151
|
}
|
|
7942
8152
|
if (params && params.state && !params.state.forEach) {
|
|
8153
|
+
console.warn('AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state.');
|
|
7943
8154
|
return false;
|
|
7944
8155
|
}
|
|
7945
8156
|
var applyStates = function (states, existingColumns, getById) {
|
|
@@ -8086,6 +8297,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8086
8297
|
// is less sexy for the code here, but it keeps consistency.
|
|
8087
8298
|
newOrder = this.placeLockedColumns(newOrder);
|
|
8088
8299
|
if (!this.doesMovePassMarryChildren(newOrder)) {
|
|
8300
|
+
console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');
|
|
8089
8301
|
return;
|
|
8090
8302
|
}
|
|
8091
8303
|
this.gridColumns = newOrder;
|
|
@@ -8337,7 +8549,11 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8337
8549
|
}
|
|
8338
8550
|
}
|
|
8339
8551
|
else {
|
|
8340
|
-
if (exists(aggFunc))
|
|
8552
|
+
if (exists(aggFunc)) {
|
|
8553
|
+
console.warn('AG Grid: stateItem.aggFunc must be a string. if using your own aggregation ' +
|
|
8554
|
+
'functions, register the functions first before using them in get/set state. This is because it is ' +
|
|
8555
|
+
'intended for the column state to be stored and retrieved as simple JSON.');
|
|
8556
|
+
}
|
|
8341
8557
|
// Note: we do not call column.setAggFunc(null), so that next time we aggregate
|
|
8342
8558
|
// by this column (eg drag the column to the agg section int he toolpanel) it will
|
|
8343
8559
|
// default to the last aggregation function.
|
|
@@ -8405,6 +8621,9 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8405
8621
|
return null;
|
|
8406
8622
|
}
|
|
8407
8623
|
var column = this.getGridColumn(key);
|
|
8624
|
+
if (!column) {
|
|
8625
|
+
console.warn('AG Grid: could not find column ' + key);
|
|
8626
|
+
}
|
|
8408
8627
|
return column;
|
|
8409
8628
|
};
|
|
8410
8629
|
ColumnModel.prototype.getPrimaryColumn = function (key) {
|
|
@@ -8507,6 +8726,7 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8507
8726
|
// valueGetter is an expression, so execute the expression
|
|
8508
8727
|
return this.expressionService.evaluate(headerValueGetter, params);
|
|
8509
8728
|
}
|
|
8729
|
+
console.warn('ag-grid: headerValueGetter must be a function or a string');
|
|
8510
8730
|
return '';
|
|
8511
8731
|
}
|
|
8512
8732
|
else if (colDef.headerName != null) {
|
|
@@ -8801,6 +9021,10 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
8801
9021
|
this.setColumnGroupState([{ groupId: keyAsString, open: newValue }], source);
|
|
8802
9022
|
};
|
|
8803
9023
|
ColumnModel.prototype.getProvidedColumnGroup = function (key) {
|
|
9024
|
+
// if (key instanceof ProvidedColumnGroup) { return key; }
|
|
9025
|
+
if (typeof key !== 'string') {
|
|
9026
|
+
console.error('AG Grid: group key must be a string');
|
|
9027
|
+
}
|
|
8804
9028
|
// otherwise, search for the column group by id
|
|
8805
9029
|
var res = null;
|
|
8806
9030
|
this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {
|
|
@@ -9011,7 +9235,8 @@ var ColumnModel = /** @class */ (function (_super) {
|
|
|
9011
9235
|
var rowModelType = this.rowModel.getType();
|
|
9012
9236
|
var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;
|
|
9013
9237
|
if (!supportedRowModel) {
|
|
9014
|
-
|
|
9238
|
+
var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';
|
|
9239
|
+
doOnce(function () { return console.warn(message_1); }, 'autoHeightActive.wrongRowModel');
|
|
9015
9240
|
}
|
|
9016
9241
|
}
|
|
9017
9242
|
};
|
|
@@ -10003,6 +10228,7 @@ var DisplayedGroupCreator = /** @class */ (function (_super) {
|
|
|
10003
10228
|
if (found) {
|
|
10004
10229
|
return result;
|
|
10005
10230
|
}
|
|
10231
|
+
console.warn('AG Grid: could not get path');
|
|
10006
10232
|
return null;
|
|
10007
10233
|
};
|
|
10008
10234
|
DisplayedGroupCreator = __decorate$36([
|
|
@@ -11686,12 +11912,14 @@ function createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {
|
|
|
11686
11912
|
if (isNodeOrElement(rendererResult)) {
|
|
11687
11913
|
return rendererResult;
|
|
11688
11914
|
}
|
|
11915
|
+
console.warn('AG Grid: iconRenderer should return back a string or a dom object');
|
|
11689
11916
|
}
|
|
11690
11917
|
else {
|
|
11691
11918
|
var span = document.createElement('span');
|
|
11692
11919
|
var cssClass = iconNameClassMap[iconName];
|
|
11693
11920
|
if (!cssClass) {
|
|
11694
11921
|
if (!forceCreate) {
|
|
11922
|
+
console.warn("AG Grid: Did not find icon " + iconName);
|
|
11695
11923
|
cssClass = '';
|
|
11696
11924
|
}
|
|
11697
11925
|
else {
|
|
@@ -12130,6 +12358,7 @@ var AgPromise = /** @class */ (function () {
|
|
|
12130
12358
|
this.waiters.forEach(function (waiter) { return waiter(value); });
|
|
12131
12359
|
};
|
|
12132
12360
|
AgPromise.prototype.onReject = function (params) {
|
|
12361
|
+
console.warn('TBI');
|
|
12133
12362
|
};
|
|
12134
12363
|
return AgPromise;
|
|
12135
12364
|
}());
|
|
@@ -12755,9 +12984,11 @@ function RefSelector(ref) {
|
|
|
12755
12984
|
}
|
|
12756
12985
|
function querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {
|
|
12757
12986
|
if (selector === null) {
|
|
12987
|
+
console.error('AG Grid: QuerySelector selector should not be null');
|
|
12758
12988
|
return;
|
|
12759
12989
|
}
|
|
12760
12990
|
if (typeof index === 'number') {
|
|
12991
|
+
console.error('AG Grid: QuerySelector should be on an attribute');
|
|
12761
12992
|
return;
|
|
12762
12993
|
}
|
|
12763
12994
|
addToObjectProps(classPrototype, 'querySelectors', {
|
|
@@ -12992,8 +13223,12 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
12992
13223
|
this.checkForDeprecatedParams();
|
|
12993
13224
|
};
|
|
12994
13225
|
OptionsFactory.prototype.checkForDeprecatedParams = function () {
|
|
12995
|
-
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; }))
|
|
12996
|
-
|
|
13226
|
+
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.test != null; })) {
|
|
13227
|
+
console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().");
|
|
13228
|
+
}
|
|
13229
|
+
if (this.filterOptions.some(function (opt) { return typeof opt != 'string' && opt.hideFilterInput != null; })) {
|
|
13230
|
+
console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.");
|
|
13231
|
+
}
|
|
12997
13232
|
};
|
|
12998
13233
|
OptionsFactory.prototype.getFilterOptions = function () {
|
|
12999
13234
|
return this.filterOptions;
|
|
@@ -13010,6 +13245,7 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
13010
13245
|
var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];
|
|
13011
13246
|
var propertyCheck = function (keys) {
|
|
13012
13247
|
if (!keys.some(function (key) { return filterOption[key] != null; })) {
|
|
13248
|
+
console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '" + keys + "'");
|
|
13013
13249
|
return false;
|
|
13014
13250
|
}
|
|
13015
13251
|
return true;
|
|
@@ -13043,9 +13279,13 @@ var OptionsFactory = /** @class */ (function () {
|
|
|
13043
13279
|
else if (firstFilterOption.displayKey) {
|
|
13044
13280
|
this.defaultOption = firstFilterOption.displayKey;
|
|
13045
13281
|
}
|
|
13046
|
-
else
|
|
13282
|
+
else {
|
|
13283
|
+
console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'");
|
|
13284
|
+
}
|
|
13285
|
+
}
|
|
13286
|
+
else {
|
|
13287
|
+
console.warn('AG Grid: no filter options for filter');
|
|
13047
13288
|
}
|
|
13048
|
-
else ;
|
|
13049
13289
|
};
|
|
13050
13290
|
OptionsFactory.prototype.getDefaultOption = function () {
|
|
13051
13291
|
return this.defaultOption;
|
|
@@ -13308,6 +13548,7 @@ var ProvidedFilter = /** @class */ (function (_super) {
|
|
|
13308
13548
|
clickListener = function (e) { _this.onBtCancel(e); };
|
|
13309
13549
|
break;
|
|
13310
13550
|
default:
|
|
13551
|
+
console.warn('AG Grid: Unknown button type specified');
|
|
13311
13552
|
return;
|
|
13312
13553
|
}
|
|
13313
13554
|
var buttonType = type === 'apply' ? 'submit' : 'button';
|
|
@@ -13448,6 +13689,9 @@ var ProvidedFilter = /** @class */ (function (_super) {
|
|
|
13448
13689
|
// static, as used by floating filter also
|
|
13449
13690
|
ProvidedFilter.getDebounceMs = function (params, debounceDefault) {
|
|
13450
13691
|
if (ProvidedFilter.isUseApplyButton(params)) {
|
|
13692
|
+
if (params.debounceMs != null) {
|
|
13693
|
+
console.warn('AG Grid: debounceMs is ignored when apply button is present');
|
|
13694
|
+
}
|
|
13451
13695
|
return 0;
|
|
13452
13696
|
}
|
|
13453
13697
|
return params.debounceMs != null ? params.debounceMs : debounceDefault;
|
|
@@ -14824,6 +15068,7 @@ var ScalarFilter = /** @class */ (function (_super) {
|
|
|
14824
15068
|
case ScalarFilter.NOT_BLANK:
|
|
14825
15069
|
return !this.isBlank(cellValue);
|
|
14826
15070
|
default:
|
|
15071
|
+
console.warn('AG Grid: Unexpected type of filter "' + filterModel.type + '", it looks like the filter was configured with incorrect Filter Options');
|
|
14827
15072
|
return true;
|
|
14828
15073
|
}
|
|
14829
15074
|
};
|
|
@@ -14917,11 +15162,17 @@ var DateFilter = /** @class */ (function (_super) {
|
|
|
14917
15162
|
if (!isNaN(params[param])) {
|
|
14918
15163
|
return params[param] == null ? fallback : Number(params[param]);
|
|
14919
15164
|
}
|
|
15165
|
+
else {
|
|
15166
|
+
console.warn("AG Grid: DateFilter " + param + " is not a number");
|
|
15167
|
+
}
|
|
14920
15168
|
}
|
|
14921
15169
|
return fallback;
|
|
14922
15170
|
};
|
|
14923
15171
|
this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);
|
|
14924
15172
|
this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);
|
|
15173
|
+
if (this.minValidYear > this.maxValidYear) {
|
|
15174
|
+
console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear");
|
|
15175
|
+
}
|
|
14925
15176
|
this.createDateComponents();
|
|
14926
15177
|
};
|
|
14927
15178
|
DateFilter.prototype.createDateComponents = function () {
|
|
@@ -15622,7 +15873,7 @@ var TextFilter = /** @class */ (function (_super) {
|
|
|
15622
15873
|
TextFilter.prototype.getTextMatcher = function () {
|
|
15623
15874
|
var legacyComparator = this.textFilterParams.textCustomComparator;
|
|
15624
15875
|
if (legacyComparator) {
|
|
15625
|
-
_.doOnce(function () { return (
|
|
15876
|
+
_.doOnce(function () { return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.'); }, 'textCustomComparator.deprecated');
|
|
15626
15877
|
return function (_a) {
|
|
15627
15878
|
var filterOption = _a.filterOption, value = _a.value, filterText = _a.filterText;
|
|
15628
15879
|
return legacyComparator(filterOption, value, filterText);
|
|
@@ -16548,7 +16799,8 @@ var HeaderGroupComp = /** @class */ (function (_super) {
|
|
|
16548
16799
|
HeaderGroupComp.prototype.checkWarnings = function () {
|
|
16549
16800
|
var paramsAny = this.params;
|
|
16550
16801
|
if (paramsAny.template) {
|
|
16551
|
-
|
|
16802
|
+
var message_1 = "AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)";
|
|
16803
|
+
doOnce(function () { return console.warn(message_1); }, 'HeaderGroupComp.templateNotSupported');
|
|
16552
16804
|
}
|
|
16553
16805
|
};
|
|
16554
16806
|
HeaderGroupComp.prototype.setupExpandIcons = function () {
|
|
@@ -16779,6 +17031,7 @@ var SelectCellEditor = /** @class */ (function (_super) {
|
|
|
16779
17031
|
var _this = this;
|
|
16780
17032
|
this.focusAfterAttached = params.cellStartedEdit;
|
|
16781
17033
|
if (missing(params.values)) {
|
|
17034
|
+
console.warn('AG Grid: no values found for select cellEditor');
|
|
16782
17035
|
return;
|
|
16783
17036
|
}
|
|
16784
17037
|
this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;
|
|
@@ -16852,7 +17105,7 @@ var PopupSelectCellEditor = /** @class */ (function (_super) {
|
|
|
16852
17105
|
__extends$2_(PopupSelectCellEditor, _super);
|
|
16853
17106
|
function PopupSelectCellEditor() {
|
|
16854
17107
|
var _this = _super.call(this) || this;
|
|
16855
|
-
doOnce(function () { return (
|
|
17108
|
+
doOnce(function () { return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} '); }, 'PopupSelectCellEditor.deprecated');
|
|
16856
17109
|
return _this;
|
|
16857
17110
|
}
|
|
16858
17111
|
PopupSelectCellEditor.prototype.isPopup = function () {
|
|
@@ -17006,7 +17259,7 @@ var PopupTextCellEditor = /** @class */ (function (_super) {
|
|
|
17006
17259
|
__extends$2Y(PopupTextCellEditor, _super);
|
|
17007
17260
|
function PopupTextCellEditor() {
|
|
17008
17261
|
var _this = _super.call(this) || this;
|
|
17009
|
-
doOnce(function () { return (
|
|
17262
|
+
doOnce(function () { return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} '); }, 'PopupTextCellEditor.deprecated');
|
|
17010
17263
|
return _this;
|
|
17011
17264
|
}
|
|
17012
17265
|
PopupTextCellEditor.prototype.isPopup = function () {
|
|
@@ -17383,7 +17636,9 @@ var RowNode = /** @class */ (function () {
|
|
|
17383
17636
|
});
|
|
17384
17637
|
// make sure id provided doesn't start with 'row-group-' as this is reserved. also check that
|
|
17385
17638
|
// it has 'startsWith' in case the user provided a number.
|
|
17386
|
-
if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP))
|
|
17639
|
+
if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {
|
|
17640
|
+
console.error("AG Grid: Row IDs cannot start with " + RowNode.ID_PREFIX_ROW_GROUP + ", this is a reserved prefix for AG Grid's row grouping feature.");
|
|
17641
|
+
}
|
|
17387
17642
|
// force id to be a string
|
|
17388
17643
|
if (this.id !== null && typeof this.id !== 'string') {
|
|
17389
17644
|
this.id = '' + this.id;
|
|
@@ -17842,9 +18097,11 @@ var RowNode = /** @class */ (function () {
|
|
|
17842
18097
|
// groupSelectsFiltered only makes sense when group selects children
|
|
17843
18098
|
var groupSelectsFiltered = groupSelectsChildren && (params.groupSelectsFiltered === true);
|
|
17844
18099
|
if (this.id === undefined) {
|
|
18100
|
+
console.warn('AG Grid: cannot select node until id for node is known');
|
|
17845
18101
|
return 0;
|
|
17846
18102
|
}
|
|
17847
18103
|
if (this.rowPinned) {
|
|
18104
|
+
console.warn('AG Grid: cannot select pinned rows');
|
|
17848
18105
|
return 0;
|
|
17849
18106
|
}
|
|
17850
18107
|
// if we are a footer, we don't do selection, just pass the info
|
|
@@ -18619,7 +18876,9 @@ var DragAndDropService = /** @class */ (function (_super) {
|
|
|
18619
18876
|
}
|
|
18620
18877
|
}
|
|
18621
18878
|
this.eGhostParent = targetEl;
|
|
18622
|
-
if (!this.eGhostParent)
|
|
18879
|
+
if (!this.eGhostParent) {
|
|
18880
|
+
console.warn('AG Grid: could not find document body, it is needed for dragging columns');
|
|
18881
|
+
}
|
|
18623
18882
|
else {
|
|
18624
18883
|
this.eGhostParent.appendChild(this.eGhost);
|
|
18625
18884
|
}
|
|
@@ -18782,7 +19041,7 @@ var RowDragComp = /** @class */ (function (_super) {
|
|
|
18782
19041
|
var treeData = this.beans.gridOptionsWrapper.isTreeData();
|
|
18783
19042
|
if (treeData && managed) {
|
|
18784
19043
|
doOnce(function () {
|
|
18785
|
-
return (
|
|
19044
|
+
return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');
|
|
18786
19045
|
}, 'RowDragComp.managedAndTreeData');
|
|
18787
19046
|
}
|
|
18788
19047
|
};
|
|
@@ -19191,7 +19450,9 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
|
|
|
19191
19450
|
else if (typeof footerValueGetter === 'string') {
|
|
19192
19451
|
footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);
|
|
19193
19452
|
}
|
|
19194
|
-
else
|
|
19453
|
+
else {
|
|
19454
|
+
console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');
|
|
19455
|
+
}
|
|
19195
19456
|
}
|
|
19196
19457
|
else {
|
|
19197
19458
|
footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');
|
|
@@ -19409,7 +19670,7 @@ var GroupCellRendererCtrl = /** @class */ (function (_super) {
|
|
|
19409
19670
|
var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;
|
|
19410
19671
|
var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;
|
|
19411
19672
|
if (userProvidedPaddingPixelsTheDeprecatedWay) {
|
|
19412
|
-
doOnce(function () { return (
|
|
19673
|
+
doOnce(function () { return console.warn('AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.'); }, 'groupCellRenderer->doDeprecatedWay');
|
|
19413
19674
|
}
|
|
19414
19675
|
if (this.indentClass) {
|
|
19415
19676
|
this.comp.addOrRemoveCssClass(this.indentClass, false);
|
|
@@ -19914,6 +20175,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19914
20175
|
UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {
|
|
19915
20176
|
var name = this.translateIfDeprecated(rawName);
|
|
19916
20177
|
if (this.agGridDefaults[name]) {
|
|
20178
|
+
console.error("Trying to overwrite a default component. You should call registerComponent");
|
|
19917
20179
|
return;
|
|
19918
20180
|
}
|
|
19919
20181
|
this.agGridDefaults[name] = component;
|
|
@@ -19921,6 +20183,7 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19921
20183
|
UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {
|
|
19922
20184
|
var name = this.translateIfDeprecated(rawName);
|
|
19923
20185
|
if (this.fwComps[name]) {
|
|
20186
|
+
console.error("Trying to register a component that you have already registered for frameworks: " + name);
|
|
19924
20187
|
return;
|
|
19925
20188
|
}
|
|
19926
20189
|
this.jsComps[name] = component;
|
|
@@ -19930,7 +20193,8 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19930
20193
|
* A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid
|
|
19931
20194
|
*/
|
|
19932
20195
|
UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {
|
|
19933
|
-
|
|
20196
|
+
var warningMessage = "AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.";
|
|
20197
|
+
doOnce(function () { return console.warn(warningMessage); }, "UserComponentRegistry.frameworkComponentsDeprecated");
|
|
19934
20198
|
var name = this.translateIfDeprecated(rawName);
|
|
19935
20199
|
this.fwComps[name] = component;
|
|
19936
20200
|
};
|
|
@@ -19957,13 +20221,16 @@ var UserComponentRegistry = /** @class */ (function (_super) {
|
|
|
19957
20221
|
if (defaultComponent) {
|
|
19958
20222
|
return createResult(defaultComponent, false);
|
|
19959
20223
|
}
|
|
19960
|
-
if (Object.keys(this.agGridDefaults).indexOf(name) < 0)
|
|
20224
|
+
if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {
|
|
20225
|
+
console.warn("AG Grid: Looking for component [" + name + "] but it wasn't found.");
|
|
20226
|
+
}
|
|
19961
20227
|
return null;
|
|
19962
20228
|
};
|
|
19963
20229
|
UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {
|
|
19964
20230
|
var deprecatedInfo = this.agDeprecatedNames[raw];
|
|
19965
20231
|
if (deprecatedInfo != null) {
|
|
19966
20232
|
doOnce(function () {
|
|
20233
|
+
console.warn("ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename " + deprecatedInfo.propertyHolder + ":" + raw + " to " + deprecatedInfo.propertyHolder + ":" + deprecatedInfo.newComponentName);
|
|
19967
20234
|
}, 'DEPRECATE_COMPONENT_' + raw);
|
|
19968
20235
|
return deprecatedInfo.newComponentName;
|
|
19969
20236
|
}
|
|
@@ -20181,6 +20448,7 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20181
20448
|
};
|
|
20182
20449
|
UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {
|
|
20183
20450
|
var _this = this;
|
|
20451
|
+
if (mandatory === void 0) { mandatory = false; }
|
|
20184
20452
|
var propertyName = type.propertyName, cellRenderer = type.cellRenderer;
|
|
20185
20453
|
var _a = this.getCompKeys(defObject, type, params), compName = _a.compName, jsComp = _a.jsComp, fwComp = _a.fwComp, paramsFromSelector = _a.paramsFromSelector, popupFromSelector = _a.popupFromSelector, popupPositionFromSelector = _a.popupPositionFromSelector;
|
|
20186
20454
|
var lookupFromRegistry = function (key) {
|
|
@@ -20203,6 +20471,9 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20203
20471
|
jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);
|
|
20204
20472
|
}
|
|
20205
20473
|
if (!jsComp && !fwComp) {
|
|
20474
|
+
if (mandatory) {
|
|
20475
|
+
console.error("Could not find component " + compName + ", did you forget to configure this component?");
|
|
20476
|
+
}
|
|
20206
20477
|
return;
|
|
20207
20478
|
}
|
|
20208
20479
|
var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);
|
|
@@ -20239,7 +20510,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20239
20510
|
var selectorRes = selectorFunc ? selectorFunc(params) : null;
|
|
20240
20511
|
var assignComp = function (providedJsComp, providedFwComp) {
|
|
20241
20512
|
var xxxFrameworkDeprecatedWarn = function () {
|
|
20242
|
-
|
|
20513
|
+
var warningMessage = "AG Grid: As of v27, the property " + propertyName + "Framework is deprecated. The property " + propertyName + " can now be used for JavaScript AND Framework Components.";
|
|
20514
|
+
doOnce(function () { return console.warn(warningMessage); }, "UserComponentFactory." + propertyName + "FrameworkDeprecated");
|
|
20243
20515
|
};
|
|
20244
20516
|
if (typeof providedJsComp === 'string') {
|
|
20245
20517
|
compName = providedJsComp;
|
|
@@ -20265,7 +20537,8 @@ var UserComponentFactory = /** @class */ (function (_super) {
|
|
|
20265
20537
|
};
|
|
20266
20538
|
if (selectorRes) {
|
|
20267
20539
|
if (selectorRes.frameworkComponent != null) {
|
|
20268
|
-
|
|
20540
|
+
var warningMessage_1 = "AG Grid: As of v27, the return for " + propertyName + "Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";
|
|
20541
|
+
doOnce(function () { return console.warn(warningMessage_1); }, "UserComponentFactory." + propertyName + "FrameworkSelectorDeprecated");
|
|
20269
20542
|
assignComp(selectorRes.frameworkComponent, undefined);
|
|
20270
20543
|
}
|
|
20271
20544
|
else {
|
|
@@ -20770,13 +21043,16 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20770
21043
|
modelKeys_1.forEach(function (colId) {
|
|
20771
21044
|
var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);
|
|
20772
21045
|
if (!column) {
|
|
21046
|
+
console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);
|
|
20773
21047
|
return;
|
|
20774
21048
|
}
|
|
20775
21049
|
if (!column.isFilterAllowed()) {
|
|
21050
|
+
console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);
|
|
20776
21051
|
return;
|
|
20777
21052
|
}
|
|
20778
21053
|
var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');
|
|
20779
21054
|
if (!filterWrapper) {
|
|
21055
|
+
console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);
|
|
20780
21056
|
return;
|
|
20781
21057
|
}
|
|
20782
21058
|
allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));
|
|
@@ -20806,6 +21082,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20806
21082
|
return new AgPromise(function (resolve) {
|
|
20807
21083
|
filterPromise.then(function (filter) {
|
|
20808
21084
|
if (typeof filter.setModel !== 'function') {
|
|
21085
|
+
console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');
|
|
20809
21086
|
resolve();
|
|
20810
21087
|
}
|
|
20811
21088
|
(filter.setModel(newModel) || AgPromise.resolve()).then(function () { return resolve(); });
|
|
@@ -20822,6 +21099,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20822
21099
|
return null;
|
|
20823
21100
|
}
|
|
20824
21101
|
if (typeof filter.getModel !== 'function') {
|
|
21102
|
+
console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');
|
|
20825
21103
|
return;
|
|
20826
21104
|
}
|
|
20827
21105
|
var model = filter.getModel();
|
|
@@ -20855,6 +21133,7 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20855
21133
|
return false;
|
|
20856
21134
|
} // this never happens, including to avoid compile error
|
|
20857
21135
|
if (!filter.isFilterActive) {
|
|
21136
|
+
console.warn('AG Grid: Filter is missing isFilterActive() method');
|
|
20858
21137
|
return false;
|
|
20859
21138
|
}
|
|
20860
21139
|
return filter.isFilterActive();
|
|
@@ -20928,12 +21207,14 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
20928
21207
|
return null;
|
|
20929
21208
|
}
|
|
20930
21209
|
if (!this.gridOptionsWrapper.isRowModelDefault()) {
|
|
21210
|
+
console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');
|
|
20931
21211
|
return null;
|
|
20932
21212
|
}
|
|
20933
21213
|
return newFilter.toUpperCase();
|
|
20934
21214
|
};
|
|
20935
21215
|
FilterManager.prototype.setQuickFilter = function (newFilter) {
|
|
20936
21216
|
if (newFilter != null && typeof newFilter !== 'string') {
|
|
21217
|
+
console.warn("AG Grid - setQuickFilter() only supports string inputs, received: " + typeof newFilter);
|
|
20937
21218
|
return;
|
|
20938
21219
|
}
|
|
20939
21220
|
var parsedFilter = this.parseQuickFilter(newFilter);
|
|
@@ -21193,7 +21474,9 @@ var FilterManager = /** @class */ (function (_super) {
|
|
|
21193
21474
|
filterWrapper.guiPromise = new AgPromise(function (resolve) {
|
|
21194
21475
|
filterWrapper.filterPromise.then(function (filter) {
|
|
21195
21476
|
var guiFromFilter = filter.getGui();
|
|
21196
|
-
if (!exists(guiFromFilter))
|
|
21477
|
+
if (!exists(guiFromFilter)) {
|
|
21478
|
+
console.warn("AG Grid: getGui method from filter returned " + guiFromFilter + ", it should be a DOM element or an HTML template string.");
|
|
21479
|
+
}
|
|
21197
21480
|
// for backwards compatibility with Angular 1 - we
|
|
21198
21481
|
// used to allow providing back HTML from getGui().
|
|
21199
21482
|
// once we move away from supporting Angular 1
|
|
@@ -21785,6 +22068,7 @@ var GridBodyScrollFeature = /** @class */ (function (_super) {
|
|
|
21785
22068
|
}
|
|
21786
22069
|
var rowCount = this.paginationProxy.getRowCount();
|
|
21787
22070
|
if (typeof index !== 'number' || index < 0 || index >= rowCount) {
|
|
22071
|
+
console.warn('invalid row index for ensureIndexVisible: ' + index);
|
|
21788
22072
|
return;
|
|
21789
22073
|
}
|
|
21790
22074
|
var isPaging = this.gridOptionsWrapper.isPagination();
|
|
@@ -22279,10 +22563,11 @@ var RowDragFeature = /** @class */ (function (_super) {
|
|
|
22279
22563
|
RowDragFeature.prototype.addRowDropZone = function (params) {
|
|
22280
22564
|
var _this = this;
|
|
22281
22565
|
if (!params.getContainer()) {
|
|
22282
|
-
doOnce(function () { return (
|
|
22566
|
+
doOnce(function () { return console.warn('AG Grid: addRowDropZone - A container target needs to be provided'); }, 'add-drop-zone-empty-target');
|
|
22283
22567
|
return;
|
|
22284
22568
|
}
|
|
22285
22569
|
if (this.dragAndDropService.findExternalZone(params)) {
|
|
22570
|
+
console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');
|
|
22286
22571
|
return;
|
|
22287
22572
|
}
|
|
22288
22573
|
var processedParams = {
|
|
@@ -22809,7 +23094,10 @@ var GridBodyCtrl = /** @class */ (function (_super) {
|
|
|
22809
23094
|
_this.sizeColumnsToFit(params, -1);
|
|
22810
23095
|
}, 500);
|
|
22811
23096
|
}
|
|
22812
|
-
else
|
|
23097
|
+
else {
|
|
23098
|
+
console.warn('AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with ' +
|
|
23099
|
+
'zero width, maybe the grid is not visible yet on the screen?');
|
|
23100
|
+
}
|
|
22813
23101
|
};
|
|
22814
23102
|
// + rangeService
|
|
22815
23103
|
GridBodyCtrl.prototype.addScrollEventListener = function (listener) {
|
|
@@ -24470,6 +24758,7 @@ var CellCtrl = /** @class */ (function (_super) {
|
|
|
24470
24758
|
CellCtrl.prototype.createCellRendererParams = function () {
|
|
24471
24759
|
var _this = this;
|
|
24472
24760
|
var addRowCompListener = function (eventType, listener) {
|
|
24761
|
+
console.warn('AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided.');
|
|
24473
24762
|
_this.rowCtrl.addEventListener(eventType, listener);
|
|
24474
24763
|
};
|
|
24475
24764
|
var res = {
|
|
@@ -24998,11 +25287,11 @@ var CellCtrl = /** @class */ (function (_super) {
|
|
|
24998
25287
|
if (rowDragManaged) {
|
|
24999
25288
|
// row dragging only available in default row model
|
|
25000
25289
|
if (!clientSideRowModelActive) {
|
|
25001
|
-
doOnce(function () { return (
|
|
25290
|
+
doOnce(function () { return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model'); }, 'CellComp.addRowDragging');
|
|
25002
25291
|
return;
|
|
25003
25292
|
}
|
|
25004
25293
|
if (pagination) {
|
|
25005
|
-
doOnce(function () { return (
|
|
25294
|
+
doOnce(function () { return console.warn('AG Grid: managed row dragging is not possible when doing pagination'); }, 'CellComp.addRowDragging');
|
|
25006
25295
|
return;
|
|
25007
25296
|
}
|
|
25008
25297
|
}
|
|
@@ -25219,6 +25508,7 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25219
25508
|
var gow = this.beans.gridOptionsWrapper;
|
|
25220
25509
|
if (gow.isEnableRangeSelection()) {
|
|
25221
25510
|
doOnce(function () {
|
|
25511
|
+
console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\'t work with `enableRangeSelection: true`');
|
|
25222
25512
|
}, 'rowDragAndRangeSelectionEnabled');
|
|
25223
25513
|
return;
|
|
25224
25514
|
}
|
|
@@ -25231,7 +25521,12 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25231
25521
|
var params = this.createFullWidthParams(gui.element, pinned);
|
|
25232
25522
|
var masterDetailModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.MasterDetailModule);
|
|
25233
25523
|
if (this.rowType == RowType$1.FullWidthDetail && !masterDetailModuleLoaded) {
|
|
25234
|
-
if (ModuleRegistry.isPackageBased())
|
|
25524
|
+
if (ModuleRegistry.isPackageBased()) {
|
|
25525
|
+
console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.");
|
|
25526
|
+
}
|
|
25527
|
+
else {
|
|
25528
|
+
console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module " + ModuleNames.MasterDetailModule);
|
|
25529
|
+
}
|
|
25235
25530
|
return;
|
|
25236
25531
|
}
|
|
25237
25532
|
var compDetails;
|
|
@@ -25982,6 +26277,7 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
25982
26277
|
// part 1 - rowStyle
|
|
25983
26278
|
var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();
|
|
25984
26279
|
if (rowStyle && typeof rowStyle === 'function') {
|
|
26280
|
+
console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');
|
|
25985
26281
|
return;
|
|
25986
26282
|
}
|
|
25987
26283
|
// part 1 - rowStyleFunc
|
|
@@ -26096,12 +26392,14 @@ var RowCtrl = /** @class */ (function (_super) {
|
|
|
26096
26392
|
RowCtrl.prototype.addEventListener = function (eventType, listener) {
|
|
26097
26393
|
if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
|
|
26098
26394
|
eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
|
|
26395
|
+
console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
|
|
26099
26396
|
}
|
|
26100
26397
|
_super.prototype.addEventListener.call(this, eventType, listener);
|
|
26101
26398
|
};
|
|
26102
26399
|
RowCtrl.prototype.removeEventListener = function (eventType, listener) {
|
|
26103
26400
|
if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {
|
|
26104
26401
|
eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;
|
|
26402
|
+
console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);
|
|
26105
26403
|
}
|
|
26106
26404
|
_super.prototype.removeEventListener.call(this, eventType, listener);
|
|
26107
26405
|
};
|
|
@@ -28261,7 +28559,7 @@ var NavigationService = /** @class */ (function (_super) {
|
|
|
28261
28559
|
var userCell = userFunc(params);
|
|
28262
28560
|
if (exists(userCell)) {
|
|
28263
28561
|
if (userCell.floating) {
|
|
28264
|
-
doOnce(function () { }, 'no floating in userCell');
|
|
28562
|
+
doOnce(function () { console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"); }, 'no floating in userCell');
|
|
28265
28563
|
userCell.rowPinned = userCell.floating;
|
|
28266
28564
|
}
|
|
28267
28565
|
nextPosition = {
|
|
@@ -28394,7 +28692,7 @@ var NavigationService = /** @class */ (function (_super) {
|
|
|
28394
28692
|
var userCell = userFunc(params);
|
|
28395
28693
|
if (exists(userCell)) {
|
|
28396
28694
|
if (userCell.floating) {
|
|
28397
|
-
doOnce(function () { }, 'no floating in userCell');
|
|
28695
|
+
doOnce(function () { console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?"); }, 'no floating in userCell');
|
|
28398
28696
|
userCell.rowPinned = userCell.floating;
|
|
28399
28697
|
}
|
|
28400
28698
|
nextCell = {
|
|
@@ -28949,6 +29247,7 @@ var CellComp = /** @class */ (function (_super) {
|
|
|
28949
29247
|
return;
|
|
28950
29248
|
}
|
|
28951
29249
|
if (!cellEditor.getGui) {
|
|
29250
|
+
console.warn("AG Grid: cellEditor for column " + this.column.getId() + " is missing getGui() method");
|
|
28952
29251
|
this.beans.context.destroyBean(cellEditor);
|
|
28953
29252
|
return;
|
|
28954
29253
|
}
|
|
@@ -28986,7 +29285,10 @@ var CellComp = /** @class */ (function (_super) {
|
|
|
28986
29285
|
};
|
|
28987
29286
|
CellComp.prototype.addPopupCellEditor = function (params, position) {
|
|
28988
29287
|
var _this = this;
|
|
28989
|
-
if (this.beans.gridOptionsWrapper.isFullRowEdit())
|
|
29288
|
+
if (this.beans.gridOptionsWrapper.isFullRowEdit()) {
|
|
29289
|
+
console.warn('AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both ' +
|
|
29290
|
+
'- either turn off fullRowEdit, or stop using popup editors.');
|
|
29291
|
+
}
|
|
28990
29292
|
var cellEditor = this.cellEditor;
|
|
28991
29293
|
// if a popup, then we wrap in a popup editor and return the popup
|
|
28992
29294
|
this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));
|
|
@@ -29170,6 +29472,9 @@ var RowComp = /** @class */ (function (_super) {
|
|
|
29170
29472
|
};
|
|
29171
29473
|
RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {
|
|
29172
29474
|
var _this = this;
|
|
29475
|
+
if (this.fullWidthCellRenderer) {
|
|
29476
|
+
console.error('AG Grid - should not be setting fullWidthRowComponent twice');
|
|
29477
|
+
}
|
|
29173
29478
|
this.fullWidthCellRenderer = fullWidthRowComponent;
|
|
29174
29479
|
this.addDestroyFunc(function () {
|
|
29175
29480
|
_this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);
|
|
@@ -29594,6 +29899,7 @@ var MoveColumnFeature = /** @class */ (function () {
|
|
|
29594
29899
|
switch (hDirection) {
|
|
29595
29900
|
case HorizontalDirection.Left: return HorizontalDirection.Right;
|
|
29596
29901
|
case HorizontalDirection.Right: return HorizontalDirection.Left;
|
|
29902
|
+
default: console.error("AG Grid: Unknown direction " + hDirection);
|
|
29597
29903
|
}
|
|
29598
29904
|
}
|
|
29599
29905
|
else {
|
|
@@ -30634,6 +30940,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30634
30940
|
}
|
|
30635
30941
|
var exportMode = this.getExcelExportMode(params);
|
|
30636
30942
|
if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
|
|
30943
|
+
console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
|
|
30637
30944
|
return;
|
|
30638
30945
|
}
|
|
30639
30946
|
return this.excelCreator.getDataAsExcel(params);
|
|
@@ -30645,6 +30952,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30645
30952
|
}
|
|
30646
30953
|
var exportMode = this.getExcelExportMode(params);
|
|
30647
30954
|
if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {
|
|
30955
|
+
console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');
|
|
30648
30956
|
return;
|
|
30649
30957
|
}
|
|
30650
30958
|
this.excelCreator.exportDataAsExcel(params);
|
|
@@ -30672,6 +30980,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30672
30980
|
};
|
|
30673
30981
|
/** @deprecated AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource() */
|
|
30674
30982
|
GridApi.prototype.setEnterpriseDatasource = function (datasource) {
|
|
30983
|
+
console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()");
|
|
30675
30984
|
this.setServerSideDatasource(datasource);
|
|
30676
30985
|
};
|
|
30677
30986
|
/**
|
|
@@ -30700,6 +31009,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30700
31009
|
// should really have an IEnterpriseRowModel interface, so we are not casting to any
|
|
30701
31010
|
this.serverSideRowModel.setDatasource(datasource);
|
|
30702
31011
|
}
|
|
31012
|
+
else {
|
|
31013
|
+
console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
|
|
31014
|
+
}
|
|
30703
31015
|
};
|
|
30704
31016
|
/**
|
|
30705
31017
|
* Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.
|
|
@@ -30708,6 +31020,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30708
31020
|
* */
|
|
30709
31021
|
GridApi.prototype.setCacheBlockSize = function (blockSize) {
|
|
30710
31022
|
if (!this.serverSideRowModel) {
|
|
31023
|
+
console.warn("AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + "'");
|
|
30711
31024
|
return;
|
|
30712
31025
|
}
|
|
30713
31026
|
this.gridOptionsWrapper.setProperty('cacheBlockSize', blockSize);
|
|
@@ -30718,6 +31031,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30718
31031
|
if (this.gridOptionsWrapper.isRowModelInfinite()) {
|
|
30719
31032
|
this.rowModel.setDatasource(datasource);
|
|
30720
31033
|
}
|
|
31034
|
+
else {
|
|
31035
|
+
console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_INFINITE + "'");
|
|
31036
|
+
}
|
|
30721
31037
|
};
|
|
30722
31038
|
/** Set new datasource for Viewport Row Model. */
|
|
30723
31039
|
GridApi.prototype.setViewportDatasource = function (viewportDatasource) {
|
|
@@ -30727,12 +31043,16 @@ var GridApi = /** @class */ (function () {
|
|
|
30727
31043
|
// the enterprise implement it, rather than casting to 'any' here
|
|
30728
31044
|
this.rowModel.setViewportDatasource(viewportDatasource);
|
|
30729
31045
|
}
|
|
31046
|
+
else {
|
|
31047
|
+
console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '" + Constants.ROW_MODEL_TYPE_VIEWPORT + "'");
|
|
31048
|
+
}
|
|
30730
31049
|
};
|
|
30731
31050
|
/** Set the row data. */
|
|
30732
31051
|
GridApi.prototype.setRowData = function (rowData) {
|
|
30733
31052
|
// immutable service is part of the CSRM module, if missing, no CSRM
|
|
30734
31053
|
var missingImmutableService = this.immutableService == null;
|
|
30735
31054
|
if (missingImmutableService) {
|
|
31055
|
+
console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');
|
|
30736
31056
|
return;
|
|
30737
31057
|
}
|
|
30738
31058
|
// if no keys provided provided for rows, then we can tread the operation as Immutable
|
|
@@ -30746,26 +31066,32 @@ var GridApi = /** @class */ (function () {
|
|
|
30746
31066
|
};
|
|
30747
31067
|
/** @deprecated AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData() */
|
|
30748
31068
|
GridApi.prototype.setFloatingTopRowData = function (rows) {
|
|
31069
|
+
console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');
|
|
30749
31070
|
this.setPinnedTopRowData(rows);
|
|
30750
31071
|
};
|
|
30751
31072
|
/** @deprecated AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData() */
|
|
30752
31073
|
GridApi.prototype.setFloatingBottomRowData = function (rows) {
|
|
31074
|
+
console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');
|
|
30753
31075
|
this.setPinnedBottomRowData(rows);
|
|
30754
31076
|
};
|
|
30755
31077
|
/** @deprecated AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount() */
|
|
30756
31078
|
GridApi.prototype.getFloatingTopRowCount = function () {
|
|
31079
|
+
console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');
|
|
30757
31080
|
return this.getPinnedTopRowCount();
|
|
30758
31081
|
};
|
|
30759
31082
|
/** @deprecated AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount() */
|
|
30760
31083
|
GridApi.prototype.getFloatingBottomRowCount = function () {
|
|
31084
|
+
console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');
|
|
30761
31085
|
return this.getPinnedBottomRowCount();
|
|
30762
31086
|
};
|
|
30763
31087
|
/** @deprecated AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow() */
|
|
30764
31088
|
GridApi.prototype.getFloatingTopRow = function (index) {
|
|
31089
|
+
console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');
|
|
30765
31090
|
return this.getPinnedTopRow(index);
|
|
30766
31091
|
};
|
|
30767
31092
|
/** @deprecated AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow() */
|
|
30768
31093
|
GridApi.prototype.getFloatingBottomRow = function (index) {
|
|
31094
|
+
console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');
|
|
30769
31095
|
return this.getPinnedBottomRow(index);
|
|
30770
31096
|
};
|
|
30771
31097
|
/** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */
|
|
@@ -30846,6 +31172,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30846
31172
|
if (params === void 0) { params = {}; }
|
|
30847
31173
|
if (Array.isArray(params)) {
|
|
30848
31174
|
// the old version of refreshCells() took an array of rowNodes for the first argument
|
|
31175
|
+
console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');
|
|
30849
31176
|
return;
|
|
30850
31177
|
}
|
|
30851
31178
|
this.rowRenderer.refreshCells(params);
|
|
@@ -30899,8 +31226,12 @@ var GridApi = /** @class */ (function () {
|
|
|
30899
31226
|
* It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).
|
|
30900
31227
|
*/
|
|
30901
31228
|
GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {
|
|
30902
|
-
if (missing(this.clientSideRowModel))
|
|
30903
|
-
|
|
31229
|
+
if (missing(this.clientSideRowModel)) {
|
|
31230
|
+
console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');
|
|
31231
|
+
}
|
|
31232
|
+
if (exists(deprecated_refreshFromIndex)) {
|
|
31233
|
+
console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');
|
|
31234
|
+
}
|
|
30904
31235
|
// we don't really want the user calling this if only one rowNode was expanded, instead they should be
|
|
30905
31236
|
// calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole
|
|
30906
31237
|
// grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,
|
|
@@ -30909,6 +31240,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30909
31240
|
};
|
|
30910
31241
|
/** @deprecated AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel() */
|
|
30911
31242
|
GridApi.prototype.refreshInMemoryRowModel = function (step) {
|
|
31243
|
+
console.warn("AG Grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()");
|
|
30912
31244
|
this.refreshClientSideRowModel(step);
|
|
30913
31245
|
};
|
|
30914
31246
|
/**
|
|
@@ -30916,7 +31248,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30916
31248
|
* Optionally provide the step you wish the refresh to apply from. Defaults to `everything`.
|
|
30917
31249
|
*/
|
|
30918
31250
|
GridApi.prototype.refreshClientSideRowModel = function (step) {
|
|
30919
|
-
if (missing(this.clientSideRowModel))
|
|
31251
|
+
if (missing(this.clientSideRowModel)) {
|
|
31252
|
+
console.warn('cannot call refreshClientSideRowModel unless using normal row model');
|
|
31253
|
+
}
|
|
30920
31254
|
var paramsStep = ClientSideRowModelSteps.EVERYTHING;
|
|
30921
31255
|
var stepsMapped = {
|
|
30922
31256
|
everything: ClientSideRowModelSteps.EVERYTHING,
|
|
@@ -30931,6 +31265,7 @@ var GridApi = /** @class */ (function () {
|
|
|
30931
31265
|
paramsStep = stepsMapped[step];
|
|
30932
31266
|
}
|
|
30933
31267
|
if (missing(paramsStep)) {
|
|
31268
|
+
console.error("AG Grid: invalid step " + step + ", available steps are " + Object.keys(stepsMapped).join(', '));
|
|
30934
31269
|
return;
|
|
30935
31270
|
}
|
|
30936
31271
|
var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();
|
|
@@ -30976,7 +31311,9 @@ var GridApi = /** @class */ (function () {
|
|
|
30976
31311
|
else if (this.serverSideRowModel) {
|
|
30977
31312
|
this.serverSideRowModel.expandAll(true);
|
|
30978
31313
|
}
|
|
30979
|
-
else
|
|
31314
|
+
else {
|
|
31315
|
+
console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');
|
|
31316
|
+
}
|
|
30980
31317
|
};
|
|
30981
31318
|
/** Collapse all groups. */
|
|
30982
31319
|
GridApi.prototype.collapseAll = function () {
|
|
@@ -30986,17 +31323,23 @@ var GridApi = /** @class */ (function () {
|
|
|
30986
31323
|
else if (this.serverSideRowModel) {
|
|
30987
31324
|
this.serverSideRowModel.expandAll(false);
|
|
30988
31325
|
}
|
|
30989
|
-
else
|
|
31326
|
+
else {
|
|
31327
|
+
console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');
|
|
31328
|
+
}
|
|
30990
31329
|
};
|
|
30991
31330
|
/** Gets the tool panel instance corresponding to the supplied `id`. */
|
|
30992
31331
|
GridApi.prototype.getToolPanelInstance = function (id) {
|
|
30993
31332
|
if (!this.sideBarComp) {
|
|
31333
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
30994
31334
|
return;
|
|
30995
31335
|
}
|
|
30996
31336
|
var comp = this.sideBarComp.getToolPanelInstance(id);
|
|
30997
31337
|
return unwrapUserComp(comp);
|
|
30998
31338
|
};
|
|
30999
31339
|
GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {
|
|
31340
|
+
if (typeof eventName !== 'string') {
|
|
31341
|
+
console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');
|
|
31342
|
+
}
|
|
31000
31343
|
this.addRenderedRowListener(eventName, rowIndex, callback);
|
|
31001
31344
|
};
|
|
31002
31345
|
/**
|
|
@@ -31007,6 +31350,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31007
31350
|
* listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.
|
|
31008
31351
|
*/
|
|
31009
31352
|
GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {
|
|
31353
|
+
if (eventName === 'virtualRowSelected') {
|
|
31354
|
+
console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n selection events, add a listener directly to the row node.");
|
|
31355
|
+
}
|
|
31010
31356
|
this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);
|
|
31011
31357
|
};
|
|
31012
31358
|
/** Pass a quick filter text into the grid for filtering. */
|
|
@@ -31015,19 +31361,38 @@ var GridApi = /** @class */ (function () {
|
|
|
31015
31361
|
};
|
|
31016
31362
|
/** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead */
|
|
31017
31363
|
GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {
|
|
31364
|
+
console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
|
|
31365
|
+
if (suppressEvents) {
|
|
31366
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31367
|
+
}
|
|
31018
31368
|
this.selectionService.selectIndex(index, tryMulti);
|
|
31019
31369
|
};
|
|
31020
31370
|
/** @deprecated AG Grid: do not use api for selection, call rowNode.setSelected(value) instead. */
|
|
31021
31371
|
GridApi.prototype.deselectIndex = function (index, suppressEvents) {
|
|
31372
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31373
|
+
console.warn('AG Grid: do not use api for selection, call rowNode.setSelected(value) instead');
|
|
31374
|
+
if (suppressEvents) {
|
|
31375
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31376
|
+
}
|
|
31022
31377
|
this.selectionService.deselectIndex(index);
|
|
31023
31378
|
};
|
|
31024
31379
|
/** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
|
|
31025
31380
|
GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {
|
|
31026
31381
|
if (tryMulti === void 0) { tryMulti = false; }
|
|
31382
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31383
|
+
console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
|
|
31384
|
+
if (suppressEvents) {
|
|
31385
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31386
|
+
}
|
|
31027
31387
|
node.setSelectedParams({ newValue: true, clearSelection: !tryMulti });
|
|
31028
31388
|
};
|
|
31029
31389
|
/** @deprecated AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead. */
|
|
31030
31390
|
GridApi.prototype.deselectNode = function (node, suppressEvents) {
|
|
31391
|
+
if (suppressEvents === void 0) { suppressEvents = false; }
|
|
31392
|
+
console.warn('AG Grid: API for selection is deprecated, call rowNode.setSelected(value) instead');
|
|
31393
|
+
if (suppressEvents) {
|
|
31394
|
+
console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');
|
|
31395
|
+
}
|
|
31031
31396
|
node.setSelectedParams({ newValue: false });
|
|
31032
31397
|
};
|
|
31033
31398
|
/** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */
|
|
@@ -31048,7 +31413,10 @@ var GridApi = /** @class */ (function () {
|
|
|
31048
31413
|
};
|
|
31049
31414
|
/** @deprecated recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead */
|
|
31050
31415
|
GridApi.prototype.recomputeAggregates = function () {
|
|
31051
|
-
if (missing(this.clientSideRowModel))
|
|
31416
|
+
if (missing(this.clientSideRowModel)) {
|
|
31417
|
+
console.warn('cannot call recomputeAggregates unless using normal row model');
|
|
31418
|
+
}
|
|
31419
|
+
console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead");
|
|
31052
31420
|
this.clientSideRowModel.refreshModel({ step: ClientSideRowModelSteps.AGGREGATE });
|
|
31053
31421
|
};
|
|
31054
31422
|
/**
|
|
@@ -31070,10 +31438,12 @@ var GridApi = /** @class */ (function () {
|
|
|
31070
31438
|
this.overlayWrapperComp.hideOverlay();
|
|
31071
31439
|
};
|
|
31072
31440
|
GridApi.prototype.isNodeSelected = function (node) {
|
|
31441
|
+
console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');
|
|
31073
31442
|
return node.isSelected();
|
|
31074
31443
|
};
|
|
31075
31444
|
/** @deprecated Use getSelectedNodesById no longer exists, use getSelectedNodes(). */
|
|
31076
31445
|
GridApi.prototype.getSelectedNodesById = function () {
|
|
31446
|
+
console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');
|
|
31077
31447
|
return null;
|
|
31078
31448
|
};
|
|
31079
31449
|
/**
|
|
@@ -31102,6 +31472,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31102
31472
|
};
|
|
31103
31473
|
/** @deprecated ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead. */
|
|
31104
31474
|
GridApi.prototype.ensureColIndexVisible = function (index) {
|
|
31475
|
+
console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');
|
|
31105
31476
|
};
|
|
31106
31477
|
/**
|
|
31107
31478
|
* Ensures the column is visible by scrolling the table if needed.
|
|
@@ -31143,7 +31514,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31143
31514
|
* but excluding groups the grid created where gaps were missing in the hierarchy.
|
|
31144
31515
|
*/
|
|
31145
31516
|
GridApi.prototype.forEachLeafNode = function (callback) {
|
|
31146
|
-
if (missing(this.clientSideRowModel))
|
|
31517
|
+
if (missing(this.clientSideRowModel)) {
|
|
31518
|
+
console.warn('cannot call forEachNode unless using normal row model');
|
|
31519
|
+
}
|
|
31147
31520
|
this.clientSideRowModel.forEachLeafNode(callback);
|
|
31148
31521
|
};
|
|
31149
31522
|
/**
|
|
@@ -31157,12 +31530,16 @@ var GridApi = /** @class */ (function () {
|
|
|
31157
31530
|
};
|
|
31158
31531
|
/** Similar to `forEachNode`, except skips any filtered out data. */
|
|
31159
31532
|
GridApi.prototype.forEachNodeAfterFilter = function (callback) {
|
|
31160
|
-
if (missing(this.clientSideRowModel))
|
|
31533
|
+
if (missing(this.clientSideRowModel)) {
|
|
31534
|
+
console.warn('cannot call forEachNodeAfterFilter unless using normal row model');
|
|
31535
|
+
}
|
|
31161
31536
|
this.clientSideRowModel.forEachNodeAfterFilter(callback);
|
|
31162
31537
|
};
|
|
31163
31538
|
/** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */
|
|
31164
31539
|
GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {
|
|
31165
|
-
if (missing(this.clientSideRowModel))
|
|
31540
|
+
if (missing(this.clientSideRowModel)) {
|
|
31541
|
+
console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');
|
|
31542
|
+
}
|
|
31166
31543
|
this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);
|
|
31167
31544
|
};
|
|
31168
31545
|
/**
|
|
@@ -31400,10 +31777,12 @@ var GridApi = /** @class */ (function () {
|
|
|
31400
31777
|
};
|
|
31401
31778
|
/** @deprecated use `setProcessPivotResultColDef` instead */
|
|
31402
31779
|
GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {
|
|
31780
|
+
console.warn('AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead');
|
|
31403
31781
|
this.setProcessPivotResultColDef(processSecondaryColDefFunc);
|
|
31404
31782
|
};
|
|
31405
31783
|
/** @deprecated use `setProcessPivotResultColGroupDef` instead */
|
|
31406
31784
|
GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {
|
|
31785
|
+
console.warn('AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead');
|
|
31407
31786
|
this.setProcessPivotResultColGroupDef(processSecondaryColGroupDefFunc);
|
|
31408
31787
|
};
|
|
31409
31788
|
GridApi.prototype.setProcessPivotResultColDef = function (processPivotResultColDefFunc) {
|
|
@@ -31459,6 +31838,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31459
31838
|
/** Show/hide the entire side bar, including any visible panel and the tab buttons. */
|
|
31460
31839
|
GridApi.prototype.setSideBarVisible = function (show) {
|
|
31461
31840
|
if (!this.sideBarComp) {
|
|
31841
|
+
if (show) {
|
|
31842
|
+
console.warn('AG Grid: sideBar is not loaded');
|
|
31843
|
+
}
|
|
31462
31844
|
return;
|
|
31463
31845
|
}
|
|
31464
31846
|
this.sideBarComp.setDisplayed(show);
|
|
@@ -31466,6 +31848,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31466
31848
|
/** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */
|
|
31467
31849
|
GridApi.prototype.setSideBarPosition = function (position) {
|
|
31468
31850
|
if (!this.sideBarComp) {
|
|
31851
|
+
console.warn('AG Grid: sideBar is not loaded');
|
|
31469
31852
|
return;
|
|
31470
31853
|
}
|
|
31471
31854
|
this.sideBarComp.setSideBarPosition(position);
|
|
@@ -31473,6 +31856,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31473
31856
|
/** Opens a particular tool panel. Provide the ID of the tool panel to open. */
|
|
31474
31857
|
GridApi.prototype.openToolPanel = function (key) {
|
|
31475
31858
|
if (!this.sideBarComp) {
|
|
31859
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
31476
31860
|
return;
|
|
31477
31861
|
}
|
|
31478
31862
|
this.sideBarComp.openToolPanel(key);
|
|
@@ -31480,6 +31864,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31480
31864
|
/** Closes the currently open tool panel (if any). */
|
|
31481
31865
|
GridApi.prototype.closeToolPanel = function () {
|
|
31482
31866
|
if (!this.sideBarComp) {
|
|
31867
|
+
console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');
|
|
31483
31868
|
return;
|
|
31484
31869
|
}
|
|
31485
31870
|
this.sideBarComp.close();
|
|
@@ -31505,12 +31890,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31505
31890
|
};
|
|
31506
31891
|
/** @deprecated AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically. */
|
|
31507
31892
|
GridApi.prototype.doLayout = function () {
|
|
31508
|
-
|
|
31893
|
+
var message = "AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically";
|
|
31894
|
+
doOnce(function () { return console.warn(message); }, 'doLayoutDeprecated');
|
|
31509
31895
|
};
|
|
31510
31896
|
/** Tells the grid to recalculate the row heights. */
|
|
31511
31897
|
GridApi.prototype.resetRowHeights = function () {
|
|
31512
31898
|
if (exists(this.clientSideRowModel)) {
|
|
31513
31899
|
if (this.columnModel.isAutoRowHeightActive()) {
|
|
31900
|
+
console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');
|
|
31514
31901
|
return;
|
|
31515
31902
|
}
|
|
31516
31903
|
this.clientSideRowModel.resetRowHeights();
|
|
@@ -31597,6 +31984,9 @@ var GridApi = /** @class */ (function () {
|
|
|
31597
31984
|
setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);
|
|
31598
31985
|
};
|
|
31599
31986
|
GridApi.prototype.warnIfDestroyed = function (methodName) {
|
|
31987
|
+
if (this.destroyCalled) {
|
|
31988
|
+
console.warn("AG Grid: Grid API method " + methodName + " was called on a grid that was destroyed.");
|
|
31989
|
+
}
|
|
31600
31990
|
return this.destroyCalled;
|
|
31601
31991
|
};
|
|
31602
31992
|
/** Reset the quick filter cache text on every rowNode. */
|
|
@@ -31608,6 +31998,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31608
31998
|
};
|
|
31609
31999
|
/** @deprecated AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead. */
|
|
31610
32000
|
GridApi.prototype.getRangeSelections = function () {
|
|
32001
|
+
console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n getCellRanges() is a bit different, please check the AG Grid documentation.");
|
|
31611
32002
|
return null;
|
|
31612
32003
|
};
|
|
31613
32004
|
/** Returns the list of selected cell ranges. */
|
|
@@ -31615,6 +32006,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31615
32006
|
if (this.rangeService) {
|
|
31616
32007
|
return this.rangeService.getCellRanges();
|
|
31617
32008
|
}
|
|
32009
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
31618
32010
|
return null;
|
|
31619
32011
|
};
|
|
31620
32012
|
GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {
|
|
@@ -31622,13 +32014,20 @@ var GridApi = /** @class */ (function () {
|
|
|
31622
32014
|
};
|
|
31623
32015
|
/** @deprecated AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection() */
|
|
31624
32016
|
GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {
|
|
32017
|
+
console.warn('AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()');
|
|
31625
32018
|
};
|
|
31626
32019
|
/** Adds the provided cell range to the selected ranges. */
|
|
31627
32020
|
GridApi.prototype.addCellRange = function (params) {
|
|
32021
|
+
if (!this.rangeService) {
|
|
32022
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
32023
|
+
}
|
|
31628
32024
|
this.rangeService.addCellRange(params);
|
|
31629
32025
|
};
|
|
31630
32026
|
/** Clears the selected ranges. */
|
|
31631
32027
|
GridApi.prototype.clearRangeSelection = function () {
|
|
32028
|
+
if (!this.rangeService) {
|
|
32029
|
+
console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');
|
|
32030
|
+
}
|
|
31632
32031
|
this.rangeService.removeAllCellRanges();
|
|
31633
32032
|
};
|
|
31634
32033
|
/** Reverts the last cell edit. */
|
|
@@ -31715,18 +32114,30 @@ var GridApi = /** @class */ (function () {
|
|
|
31715
32114
|
};
|
|
31716
32115
|
/** Copies data to clipboard by following the same rules as pressing Ctrl+C. */
|
|
31717
32116
|
GridApi.prototype.copyToClipboard = function (params) {
|
|
32117
|
+
if (!this.clipboardService) {
|
|
32118
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32119
|
+
}
|
|
31718
32120
|
this.clipboardService.copyToClipboard(params);
|
|
31719
32121
|
};
|
|
31720
32122
|
/** Copies the selected rows to the clipboard. */
|
|
31721
32123
|
GridApi.prototype.copySelectedRowsToClipboard = function (params) {
|
|
32124
|
+
if (!this.clipboardService) {
|
|
32125
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32126
|
+
}
|
|
31722
32127
|
this.clipboardService.copySelectedRowsToClipboard(params);
|
|
31723
32128
|
};
|
|
31724
32129
|
/** Copies the selected ranges to the clipboard. */
|
|
31725
32130
|
GridApi.prototype.copySelectedRangeToClipboard = function (params) {
|
|
32131
|
+
if (!this.clipboardService) {
|
|
32132
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32133
|
+
}
|
|
31726
32134
|
this.clipboardService.copySelectedRangeToClipboard(params);
|
|
31727
32135
|
};
|
|
31728
32136
|
/** Copies the selected range down, similar to `Ctrl + D` in Excel. */
|
|
31729
32137
|
GridApi.prototype.copySelectedRangeDown = function () {
|
|
32138
|
+
if (!this.clipboardService) {
|
|
32139
|
+
console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');
|
|
32140
|
+
}
|
|
31730
32141
|
this.clipboardService.copyRangeDown();
|
|
31731
32142
|
};
|
|
31732
32143
|
/** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */
|
|
@@ -31743,6 +32154,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31743
32154
|
column = this.columnModel.getPrimaryColumn(colKey);
|
|
31744
32155
|
}
|
|
31745
32156
|
if (!column) {
|
|
32157
|
+
console.error("AG Grid: column '" + colKey + "' not found");
|
|
31746
32158
|
return;
|
|
31747
32159
|
}
|
|
31748
32160
|
this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);
|
|
@@ -31795,6 +32207,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31795
32207
|
GridApi.prototype.startEditingCell = function (params) {
|
|
31796
32208
|
var column = this.columnModel.getGridColumn(params.colKey);
|
|
31797
32209
|
if (!column) {
|
|
32210
|
+
console.warn("AG Grid: no column found for " + params.colKey);
|
|
31798
32211
|
return;
|
|
31799
32212
|
}
|
|
31800
32213
|
var cellPosition = {
|
|
@@ -31833,12 +32246,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31833
32246
|
/** Apply transactions to the server side row model. */
|
|
31834
32247
|
GridApi.prototype.applyServerSideTransaction = function (transaction) {
|
|
31835
32248
|
if (!this.serverSideTransactionManager) {
|
|
32249
|
+
console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
|
|
31836
32250
|
return;
|
|
31837
32251
|
}
|
|
31838
32252
|
return this.serverSideTransactionManager.applyTransaction(transaction);
|
|
31839
32253
|
};
|
|
31840
32254
|
GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {
|
|
31841
32255
|
if (!this.serverSideTransactionManager) {
|
|
32256
|
+
console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');
|
|
31842
32257
|
return;
|
|
31843
32258
|
}
|
|
31844
32259
|
return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);
|
|
@@ -31846,12 +32261,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31846
32261
|
/** Gets all failed server side loads to retry. */
|
|
31847
32262
|
GridApi.prototype.retryServerSideLoads = function () {
|
|
31848
32263
|
if (!this.serverSideRowModel) {
|
|
32264
|
+
console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');
|
|
31849
32265
|
return;
|
|
31850
32266
|
}
|
|
31851
32267
|
this.serverSideRowModel.retryLoads();
|
|
31852
32268
|
};
|
|
31853
32269
|
GridApi.prototype.flushServerSideAsyncTransactions = function () {
|
|
31854
32270
|
if (!this.serverSideTransactionManager) {
|
|
32271
|
+
console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');
|
|
31855
32272
|
return;
|
|
31856
32273
|
}
|
|
31857
32274
|
return this.serverSideTransactionManager.flushAsyncTransactions();
|
|
@@ -31859,6 +32276,7 @@ var GridApi = /** @class */ (function () {
|
|
|
31859
32276
|
/** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */
|
|
31860
32277
|
GridApi.prototype.applyTransaction = function (rowDataTransaction) {
|
|
31861
32278
|
if (!this.clientSideRowModel) {
|
|
32279
|
+
console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');
|
|
31862
32280
|
return;
|
|
31863
32281
|
}
|
|
31864
32282
|
var res = this.clientSideRowModel.updateRowData(rowDataTransaction);
|
|
@@ -31876,12 +32294,14 @@ var GridApi = /** @class */ (function () {
|
|
|
31876
32294
|
};
|
|
31877
32295
|
/** @deprecated AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). */
|
|
31878
32296
|
GridApi.prototype.updateRowData = function (rowDataTransaction) {
|
|
31879
|
-
|
|
32297
|
+
var message = 'AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.';
|
|
32298
|
+
doOnce(function () { return console.warn(message); }, 'updateRowData deprecated');
|
|
31880
32299
|
return this.applyTransaction(rowDataTransaction);
|
|
31881
32300
|
};
|
|
31882
32301
|
/** Same as `applyTransaction` except executes asynchronously for efficiency. */
|
|
31883
32302
|
GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {
|
|
31884
32303
|
if (!this.clientSideRowModel) {
|
|
32304
|
+
console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
|
|
31885
32305
|
return;
|
|
31886
32306
|
}
|
|
31887
32307
|
this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);
|
|
@@ -31889,34 +32309,41 @@ var GridApi = /** @class */ (function () {
|
|
|
31889
32309
|
/** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */
|
|
31890
32310
|
GridApi.prototype.flushAsyncTransactions = function () {
|
|
31891
32311
|
if (!this.clientSideRowModel) {
|
|
32312
|
+
console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');
|
|
31892
32313
|
return;
|
|
31893
32314
|
}
|
|
31894
32315
|
this.clientSideRowModel.flushAsyncTransactions();
|
|
31895
32316
|
};
|
|
31896
32317
|
/** @deprecated AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). */
|
|
31897
32318
|
GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {
|
|
31898
|
-
|
|
32319
|
+
var message = 'AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.';
|
|
32320
|
+
doOnce(function () { return console.warn(message); }, 'batchUpdateRowData deprecated');
|
|
31899
32321
|
this.applyTransactionAsync(rowDataTransaction, callback);
|
|
31900
32322
|
};
|
|
31901
32323
|
/** @deprecated AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.*/
|
|
31902
32324
|
GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {
|
|
32325
|
+
console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');
|
|
31903
32326
|
this.updateRowData({ add: items, addIndex: index, update: null, remove: null });
|
|
31904
32327
|
};
|
|
31905
32328
|
/** @deprecated AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead. */
|
|
31906
32329
|
GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {
|
|
32330
|
+
console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');
|
|
31907
32331
|
var dataToRemove = rowNodes.map(function (rowNode) { return rowNode.data; });
|
|
31908
32332
|
this.updateRowData({ add: null, addIndex: null, update: null, remove: dataToRemove });
|
|
31909
32333
|
};
|
|
31910
32334
|
/** @deprecated AG Grid: addItems() is deprecated, use updateRowData(transaction) instead. */
|
|
31911
32335
|
GridApi.prototype.addItems = function (items, skipRefresh) {
|
|
32336
|
+
console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');
|
|
31912
32337
|
this.updateRowData({ add: items, addIndex: null, update: null, remove: null });
|
|
31913
32338
|
};
|
|
31914
32339
|
/** @deprecated AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
|
|
31915
32340
|
GridApi.prototype.refreshVirtualPageCache = function () {
|
|
32341
|
+
console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
|
|
31916
32342
|
this.refreshInfiniteCache();
|
|
31917
32343
|
};
|
|
31918
32344
|
/** @deprecated AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead */
|
|
31919
32345
|
GridApi.prototype.refreshInfinitePageCache = function () {
|
|
32346
|
+
console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');
|
|
31920
32347
|
this.refreshInfiniteCache();
|
|
31921
32348
|
};
|
|
31922
32349
|
/**
|
|
@@ -31928,13 +32355,18 @@ var GridApi = /** @class */ (function () {
|
|
|
31928
32355
|
if (this.infiniteRowModel) {
|
|
31929
32356
|
this.infiniteRowModel.refreshCache();
|
|
31930
32357
|
}
|
|
32358
|
+
else {
|
|
32359
|
+
console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.");
|
|
32360
|
+
}
|
|
31931
32361
|
};
|
|
31932
32362
|
/** @deprecated AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
|
|
31933
32363
|
GridApi.prototype.purgeVirtualPageCache = function () {
|
|
32364
|
+
console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
|
|
31934
32365
|
this.purgeInfinitePageCache();
|
|
31935
32366
|
};
|
|
31936
32367
|
/** @deprecated AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead */
|
|
31937
32368
|
GridApi.prototype.purgeInfinitePageCache = function () {
|
|
32369
|
+
console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');
|
|
31938
32370
|
this.purgeInfiniteCache();
|
|
31939
32371
|
};
|
|
31940
32372
|
/**
|
|
@@ -31947,20 +32379,28 @@ var GridApi = /** @class */ (function () {
|
|
|
31947
32379
|
if (this.infiniteRowModel) {
|
|
31948
32380
|
this.infiniteRowModel.purgeCache();
|
|
31949
32381
|
}
|
|
32382
|
+
else {
|
|
32383
|
+
console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.");
|
|
32384
|
+
}
|
|
31950
32385
|
};
|
|
31951
32386
|
/** @deprecated AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true}) */
|
|
31952
32387
|
GridApi.prototype.purgeEnterpriseCache = function (route) {
|
|
32388
|
+
console.warn("AG Grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.refreshServerSide({purge: true})");
|
|
31953
32389
|
this.purgeServerSideCache(route);
|
|
31954
32390
|
};
|
|
31955
32391
|
/** @deprecated AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead. */
|
|
31956
32392
|
GridApi.prototype.purgeServerSideCache = function (route) {
|
|
31957
32393
|
if (route === void 0) { route = []; }
|
|
31958
32394
|
if (this.serverSideRowModel) {
|
|
32395
|
+
console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead.");
|
|
31959
32396
|
this.refreshServerSide({
|
|
31960
32397
|
route: route,
|
|
31961
32398
|
purge: true
|
|
31962
32399
|
});
|
|
31963
32400
|
}
|
|
32401
|
+
else {
|
|
32402
|
+
console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.");
|
|
32403
|
+
}
|
|
31964
32404
|
};
|
|
31965
32405
|
/**
|
|
31966
32406
|
* Refresh a server-side level.
|
|
@@ -31969,29 +32409,34 @@ var GridApi = /** @class */ (function () {
|
|
|
31969
32409
|
*/
|
|
31970
32410
|
GridApi.prototype.refreshServerSide = function (params) {
|
|
31971
32411
|
if (!this.serverSideRowModel) {
|
|
32412
|
+
console.warn("AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.");
|
|
31972
32413
|
return;
|
|
31973
32414
|
}
|
|
31974
32415
|
this.serverSideRowModel.refreshStore(params);
|
|
31975
32416
|
};
|
|
31976
32417
|
/** @deprecated use `refreshServerSide` instead */
|
|
31977
32418
|
GridApi.prototype.refreshServerSideStore = function (params) {
|
|
31978
|
-
|
|
32419
|
+
var message = "AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0";
|
|
32420
|
+
doOnce(function () { return console.warn(message); }, 'refreshServerSideStore-renamed');
|
|
31979
32421
|
return this.refreshServerSide(params);
|
|
31980
32422
|
};
|
|
31981
32423
|
/** @deprecated use `getServerSideGroupLevelState` instead */
|
|
31982
32424
|
GridApi.prototype.getServerSideStoreState = function () {
|
|
31983
|
-
|
|
32425
|
+
var message = "AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0";
|
|
32426
|
+
doOnce(function () { return console.warn(message); }, 'getServerSideStoreState-renamed');
|
|
31984
32427
|
return this.getServerSideGroupLevelState();
|
|
31985
32428
|
};
|
|
31986
32429
|
/** Returns info on all server side group levels. */
|
|
31987
32430
|
GridApi.prototype.getServerSideGroupLevelState = function () {
|
|
31988
32431
|
if (!this.serverSideRowModel) {
|
|
32432
|
+
console.warn("AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'.");
|
|
31989
32433
|
return [];
|
|
31990
32434
|
}
|
|
31991
32435
|
return this.serverSideRowModel.getStoreState();
|
|
31992
32436
|
};
|
|
31993
32437
|
/** @deprecated AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead */
|
|
31994
32438
|
GridApi.prototype.getVirtualRowCount = function () {
|
|
32439
|
+
console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');
|
|
31995
32440
|
return this.getInfiniteRowCount();
|
|
31996
32441
|
};
|
|
31997
32442
|
/** The row count defines how many rows the grid allows scrolling to. */
|
|
@@ -31999,9 +32444,13 @@ var GridApi = /** @class */ (function () {
|
|
|
31999
32444
|
if (this.infiniteRowModel) {
|
|
32000
32445
|
return this.infiniteRowModel.getRowCount();
|
|
32001
32446
|
}
|
|
32447
|
+
else {
|
|
32448
|
+
console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.");
|
|
32449
|
+
}
|
|
32002
32450
|
};
|
|
32003
32451
|
/** @deprecated AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown() */
|
|
32004
32452
|
GridApi.prototype.isMaxRowFound = function () {
|
|
32453
|
+
console.warn("AG Grid: api.isMaxRowFound is deprecated, please use api.isLastRowIndexKnown()");
|
|
32005
32454
|
return this.isLastRowIndexKnown();
|
|
32006
32455
|
};
|
|
32007
32456
|
/** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */
|
|
@@ -32009,13 +32458,18 @@ var GridApi = /** @class */ (function () {
|
|
|
32009
32458
|
if (this.infiniteRowModel) {
|
|
32010
32459
|
return this.infiniteRowModel.isLastRowIndexKnown();
|
|
32011
32460
|
}
|
|
32461
|
+
else {
|
|
32462
|
+
console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.");
|
|
32463
|
+
}
|
|
32012
32464
|
};
|
|
32013
32465
|
/** @deprecated AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead */
|
|
32014
32466
|
GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {
|
|
32467
|
+
console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');
|
|
32015
32468
|
this.setRowCount(rowCount, maxRowFound);
|
|
32016
32469
|
};
|
|
32017
32470
|
/** @deprecated AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead */
|
|
32018
32471
|
GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {
|
|
32472
|
+
console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');
|
|
32019
32473
|
this.setRowCount(rowCount, maxRowFound);
|
|
32020
32474
|
};
|
|
32021
32475
|
/**
|
|
@@ -32029,13 +32483,18 @@ var GridApi = /** @class */ (function () {
|
|
|
32029
32483
|
if (this.infiniteRowModel) {
|
|
32030
32484
|
this.infiniteRowModel.setRowCount(rowCount, maxRowFound);
|
|
32031
32485
|
}
|
|
32486
|
+
else {
|
|
32487
|
+
console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.");
|
|
32488
|
+
}
|
|
32032
32489
|
};
|
|
32033
32490
|
/** @deprecated AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
|
|
32034
32491
|
GridApi.prototype.getVirtualPageState = function () {
|
|
32492
|
+
console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
|
|
32035
32493
|
return this.getCacheBlockState();
|
|
32036
32494
|
};
|
|
32037
32495
|
/** @deprecated getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead */
|
|
32038
32496
|
GridApi.prototype.getInfinitePageState = function () {
|
|
32497
|
+
console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');
|
|
32039
32498
|
return this.getCacheBlockState();
|
|
32040
32499
|
};
|
|
32041
32500
|
/**
|
|
@@ -32046,9 +32505,11 @@ var GridApi = /** @class */ (function () {
|
|
|
32046
32505
|
};
|
|
32047
32506
|
/** @deprecated In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful. */
|
|
32048
32507
|
GridApi.prototype.checkGridSize = function () {
|
|
32508
|
+
console.warn("In AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything useful.");
|
|
32049
32509
|
};
|
|
32050
32510
|
/** @deprecated In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow() */
|
|
32051
32511
|
GridApi.prototype.getFirstRenderedRow = function () {
|
|
32512
|
+
console.warn('In AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');
|
|
32052
32513
|
return this.getFirstDisplayedRow();
|
|
32053
32514
|
};
|
|
32054
32515
|
/** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */
|
|
@@ -32057,6 +32518,7 @@ var GridApi = /** @class */ (function () {
|
|
|
32057
32518
|
};
|
|
32058
32519
|
/** @deprecated In AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow() */
|
|
32059
32520
|
GridApi.prototype.getLastRenderedRow = function () {
|
|
32521
|
+
console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');
|
|
32060
32522
|
return this.getLastDisplayedRow();
|
|
32061
32523
|
};
|
|
32062
32524
|
/** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */
|
|
@@ -33108,7 +33570,11 @@ var SelectAllFeature = /** @class */ (function (_super) {
|
|
|
33108
33570
|
};
|
|
33109
33571
|
};
|
|
33110
33572
|
SelectAllFeature.prototype.checkRightRowModelType = function () {
|
|
33111
|
-
this.rowModel.getType();
|
|
33573
|
+
var rowModelType = this.rowModel.getType();
|
|
33574
|
+
var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
|
|
33575
|
+
if (!rowModelMatches) {
|
|
33576
|
+
console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using " + rowModelType);
|
|
33577
|
+
}
|
|
33112
33578
|
};
|
|
33113
33579
|
SelectAllFeature.prototype.onCbSelectAll = function () {
|
|
33114
33580
|
if (this.processingEventFromCheckbox) {
|
|
@@ -33140,12 +33606,15 @@ var SelectAllFeature = /** @class */ (function (_super) {
|
|
|
33140
33606
|
}
|
|
33141
33607
|
if (result) {
|
|
33142
33608
|
if (this.gridOptionsWrapper.isRowModelServerSide()) {
|
|
33609
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');
|
|
33143
33610
|
return false;
|
|
33144
33611
|
}
|
|
33145
33612
|
if (this.gridOptionsWrapper.isRowModelInfinite()) {
|
|
33613
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');
|
|
33146
33614
|
return false;
|
|
33147
33615
|
}
|
|
33148
33616
|
if (this.gridOptionsWrapper.isRowModelViewport()) {
|
|
33617
|
+
console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');
|
|
33149
33618
|
return false;
|
|
33150
33619
|
}
|
|
33151
33620
|
// otherwise the row model is compatible, so return true
|
|
@@ -35762,6 +36231,9 @@ var AnimationFrameService = /** @class */ (function (_super) {
|
|
|
35762
36231
|
// frames. this stops bugs - where some code is asking for a frame to be executed
|
|
35763
36232
|
// when it should not.
|
|
35764
36233
|
AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {
|
|
36234
|
+
if (this.useAnimationFrame === false) {
|
|
36235
|
+
console.warn("AG Grid: AnimationFrameService." + methodName + " called but animation frames are off");
|
|
36236
|
+
}
|
|
35765
36237
|
};
|
|
35766
36238
|
AnimationFrameService.prototype.createTask = function (task, index, list) {
|
|
35767
36239
|
this.verifyAnimationFrameOn(list);
|
|
@@ -36998,10 +37470,10 @@ var RowRenderer = /** @class */ (function (_super) {
|
|
|
36998
37470
|
this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));
|
|
36999
37471
|
if (this.gridOptionsWrapper.isGroupRowsSticky()) {
|
|
37000
37472
|
if (this.rowModel.getType() != Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
37001
|
-
doOnce(function () { return (
|
|
37473
|
+
doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model'); }, 'rowRenderer.stickyWorksWithCsrmOnly');
|
|
37002
37474
|
}
|
|
37003
37475
|
else if (this.gridOptionsWrapper.isTreeData()) {
|
|
37004
|
-
doOnce(function () { return (
|
|
37476
|
+
doOnce(function () { return console.warn('AG Grid: The feature Sticky Row Groups does not work with Tree Data.'); }, 'rowRenderer.stickyDoesNotWorkWithTreeData');
|
|
37005
37477
|
}
|
|
37006
37478
|
else {
|
|
37007
37479
|
this.stickyRowFeature = this.createManagedBean(new StickyRowFeature(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));
|
|
@@ -41145,7 +41617,9 @@ var AgMenuList = /** @class */ (function (_super) {
|
|
|
41145
41617
|
if (menuItemOrString === 'separator') {
|
|
41146
41618
|
_this.addSeparator();
|
|
41147
41619
|
}
|
|
41148
|
-
else if (typeof menuItemOrString === 'string')
|
|
41620
|
+
else if (typeof menuItemOrString === 'string') {
|
|
41621
|
+
console.warn("AG Grid: unrecognised menu item " + menuItemOrString);
|
|
41622
|
+
}
|
|
41149
41623
|
else {
|
|
41150
41624
|
_this.addItem(menuItemOrString);
|
|
41151
41625
|
}
|
|
@@ -41510,7 +41984,9 @@ var AgMenuItemComponent = /** @class */ (function (_super) {
|
|
|
41510
41984
|
else if (typeof this.params.icon === 'string') {
|
|
41511
41985
|
icon.innerHTML = this.params.icon;
|
|
41512
41986
|
}
|
|
41513
|
-
else
|
|
41987
|
+
else {
|
|
41988
|
+
console.warn('AG Grid: menu item icon must be DOM node or string');
|
|
41989
|
+
}
|
|
41514
41990
|
}
|
|
41515
41991
|
this.getGui().appendChild(icon);
|
|
41516
41992
|
};
|
|
@@ -42460,6 +42936,7 @@ var PopupService = /** @class */ (function (_super) {
|
|
|
42460
42936
|
var eDocument = this.gridOptionsWrapper.getDocument();
|
|
42461
42937
|
var destroyPositionTracker = new AgPromise(function (resolve) { return resolve(function () { }); });
|
|
42462
42938
|
if (!eDocument) {
|
|
42939
|
+
console.warn('ag-grid: could not find the document, document is empty');
|
|
42463
42940
|
return { hideFunc: function () { }, stopAnchoringPromise: destroyPositionTracker };
|
|
42464
42941
|
}
|
|
42465
42942
|
var pos = this.popupList.findIndex(function (popup) { return popup.element === eChild; });
|
|
@@ -42872,6 +43349,7 @@ var VirtualList = /** @class */ (function (_super) {
|
|
|
42872
43349
|
VirtualList.prototype.ensureIndexVisible = function (index) {
|
|
42873
43350
|
var lastRow = this.model.getRowCount();
|
|
42874
43351
|
if (typeof index !== 'number' || index < 0 || index >= lastRow) {
|
|
43352
|
+
console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);
|
|
42875
43353
|
return;
|
|
42876
43354
|
}
|
|
42877
43355
|
var rowTopPixel = index * this.rowHeight;
|
|
@@ -43175,6 +43653,7 @@ var CellNavigationService = /** @class */ (function (_super) {
|
|
|
43175
43653
|
break;
|
|
43176
43654
|
default:
|
|
43177
43655
|
pointer = null;
|
|
43656
|
+
console.warn('AG Grid: unknown key for navigation ' + key);
|
|
43178
43657
|
break;
|
|
43179
43658
|
}
|
|
43180
43659
|
if (pointer) {
|
|
@@ -43569,6 +44048,12 @@ var AlignedGridsService = /** @class */ (function (_super) {
|
|
|
43569
44048
|
var groupOpenedEvent = event;
|
|
43570
44049
|
_this.processGroupOpenedEvent(groupOpenedEvent);
|
|
43571
44050
|
break;
|
|
44051
|
+
case Events.EVENT_COLUMN_PIVOT_CHANGED:
|
|
44052
|
+
// we cannot support pivoting with aligned grids as the columns will be out of sync as the
|
|
44053
|
+
// grids will have columns created based on the row data of the grid.
|
|
44054
|
+
console.warn('AG Grid: pivoting is not supported with aligned grids. ' +
|
|
44055
|
+
'You can only use one of these features at a time in a grid.');
|
|
44056
|
+
break;
|
|
43572
44057
|
}
|
|
43573
44058
|
});
|
|
43574
44059
|
};
|
|
@@ -43870,11 +44355,13 @@ var SelectionService = /** @class */ (function (_super) {
|
|
|
43870
44355
|
// where groups don't actually appear in the selection normally.
|
|
43871
44356
|
SelectionService.prototype.getBestCostNodeSelection = function () {
|
|
43872
44357
|
if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
44358
|
+
console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');
|
|
43873
44359
|
return;
|
|
43874
44360
|
}
|
|
43875
44361
|
var clientSideRowModel = this.rowModel;
|
|
43876
44362
|
var topLevelNodes = clientSideRowModel.getTopLevelNodes();
|
|
43877
44363
|
if (topLevelNodes === null) {
|
|
44364
|
+
console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');
|
|
43878
44365
|
return;
|
|
43879
44366
|
}
|
|
43880
44367
|
var result = [];
|
|
@@ -43916,6 +44403,7 @@ var SelectionService = /** @class */ (function (_super) {
|
|
|
43916
44403
|
var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;
|
|
43917
44404
|
if (justFiltered) {
|
|
43918
44405
|
if (!rowModelClientSide) {
|
|
44406
|
+
console.error('AG Grid: selecting just filtered only works with In Memory Row Model');
|
|
43919
44407
|
return;
|
|
43920
44408
|
}
|
|
43921
44409
|
var clientSideRowModel = this.rowModel;
|
|
@@ -44028,6 +44516,11 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44028
44516
|
}
|
|
44029
44517
|
/** Gets the grid to size the columns to the specified width in pixels, e.g. `sizeColumnsToFit(900)`. To have the grid fit the columns to the grid's width, use the Grid API `gridApi.sizeColumnsToFit()` instead. */
|
|
44030
44518
|
ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {
|
|
44519
|
+
// AG-3403 validate that gridWidth is provided because this method has the same name as
|
|
44520
|
+
// a method on the grid API that takes no arguments, and it's easy to confuse the two
|
|
44521
|
+
if (typeof gridWidth === "undefined") {
|
|
44522
|
+
console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');
|
|
44523
|
+
}
|
|
44031
44524
|
this.columnModel.sizeColumnsToFit(gridWidth, 'api');
|
|
44032
44525
|
};
|
|
44033
44526
|
/** Call this if you want to open or close a column group. */
|
|
@@ -44096,6 +44589,7 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44096
44589
|
ColumnApi.prototype.moveColumn = function (key, toIndex) {
|
|
44097
44590
|
if (typeof key === 'number') {
|
|
44098
44591
|
// moveColumn used to take indexes, so this is advising user who hasn't moved to new method name
|
|
44592
|
+
console.warn('AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead');
|
|
44099
44593
|
this.columnModel.moveColumnByIndex(key, toIndex, 'api');
|
|
44100
44594
|
}
|
|
44101
44595
|
else {
|
|
@@ -44126,6 +44620,7 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44126
44620
|
ColumnApi.prototype.isPivotMode = function () { return this.columnModel.isPivotMode(); };
|
|
44127
44621
|
/** @deprecated Use `getPivotResultColumn` instead */
|
|
44128
44622
|
ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {
|
|
44623
|
+
console.warn('AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead');
|
|
44129
44624
|
return this.getPivotResultColumn(pivotKeys, valueColKey);
|
|
44130
44625
|
};
|
|
44131
44626
|
/** Returns the pivot result column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */
|
|
@@ -44184,18 +44679,21 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44184
44679
|
ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) { this.columnModel.autoSizeAllColumns(skipHeader, 'api'); };
|
|
44185
44680
|
/** @deprecated Use `setPivotResultColumns` instead. */
|
|
44186
44681
|
ColumnApi.prototype.setSecondaryColumns = function (colDefs) {
|
|
44682
|
+
console.warn('AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead');
|
|
44187
44683
|
this.setPivotResultColumns(colDefs);
|
|
44188
44684
|
};
|
|
44189
44685
|
/** Set the pivot result columns. */
|
|
44190
44686
|
ColumnApi.prototype.setPivotResultColumns = function (colDefs) { this.columnModel.setSecondaryColumns(colDefs, 'api'); };
|
|
44191
44687
|
/** @deprecated Use `getPivotResultColumns` instead. */
|
|
44192
44688
|
ColumnApi.prototype.getSecondaryColumns = function () {
|
|
44689
|
+
console.warn('AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead');
|
|
44193
44690
|
return this.getPivotResultColumns();
|
|
44194
44691
|
};
|
|
44195
44692
|
/** Returns the grid's pivot result columns. */
|
|
44196
44693
|
ColumnApi.prototype.getPivotResultColumns = function () { return this.columnModel.getSecondaryColumns(); };
|
|
44197
44694
|
/** @deprecated Use `getColumns` instead. */
|
|
44198
44695
|
ColumnApi.prototype.getPrimaryColumns = function () {
|
|
44696
|
+
console.warn('AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead');
|
|
44199
44697
|
return this.getColumns();
|
|
44200
44698
|
};
|
|
44201
44699
|
ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {
|
|
@@ -44214,66 +44712,82 @@ var ColumnApi = /** @class */ (function () {
|
|
|
44214
44712
|
// }
|
|
44215
44713
|
/** @deprecated Use `getColumns` instead */
|
|
44216
44714
|
ColumnApi.prototype.getAllColumns = function () {
|
|
44715
|
+
console.warn('AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead');
|
|
44217
44716
|
return this.getColumns();
|
|
44218
44717
|
};
|
|
44219
44718
|
/** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */
|
|
44220
44719
|
ColumnApi.prototype.columnGroupOpened = function (group, newValue) {
|
|
44720
|
+
console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');
|
|
44221
44721
|
this.setColumnGroupOpened(group, newValue);
|
|
44222
44722
|
};
|
|
44223
44723
|
/** @deprecated hideColumns is deprecated, use setColumnsVisible */
|
|
44224
44724
|
ColumnApi.prototype.hideColumns = function (colIds, hide) {
|
|
44725
|
+
console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');
|
|
44225
44726
|
this.columnModel.setColumnsVisible(colIds, !hide, 'api');
|
|
44226
44727
|
};
|
|
44227
44728
|
/** @deprecated hideColumn is deprecated, use setColumnVisible */
|
|
44228
44729
|
ColumnApi.prototype.hideColumn = function (colId, hide) {
|
|
44730
|
+
console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');
|
|
44229
44731
|
this.columnModel.setColumnVisible(colId, !hide, 'api');
|
|
44230
44732
|
};
|
|
44231
44733
|
/** @deprecated setState is deprecated, use setColumnState */
|
|
44232
44734
|
ColumnApi.prototype.setState = function (columnState) {
|
|
44735
|
+
console.error('AG Grid: setState is deprecated, use setColumnState');
|
|
44233
44736
|
return this.setColumnState(columnState);
|
|
44234
44737
|
};
|
|
44235
44738
|
/** @deprecated getState is deprecated, use getColumnState */
|
|
44236
44739
|
ColumnApi.prototype.getState = function () {
|
|
44740
|
+
console.error('AG Grid: getState is deprecated, use getColumnState');
|
|
44237
44741
|
return this.getColumnState();
|
|
44238
44742
|
};
|
|
44239
44743
|
/** @deprecated resetState is deprecated, use resetColumnState */
|
|
44240
44744
|
ColumnApi.prototype.resetState = function () {
|
|
44745
|
+
console.error('AG Grid: resetState is deprecated, use resetColumnState');
|
|
44241
44746
|
this.resetColumnState();
|
|
44242
44747
|
};
|
|
44243
44748
|
/** @deprecated getAggregationColumns is deprecated, use getValueColumns */
|
|
44244
44749
|
ColumnApi.prototype.getAggregationColumns = function () {
|
|
44750
|
+
console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');
|
|
44245
44751
|
return this.columnModel.getValueColumns();
|
|
44246
44752
|
};
|
|
44247
44753
|
/** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */
|
|
44248
44754
|
ColumnApi.prototype.removeAggregationColumn = function (colKey) {
|
|
44755
|
+
console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');
|
|
44249
44756
|
this.columnModel.removeValueColumn(colKey, 'api');
|
|
44250
44757
|
};
|
|
44251
44758
|
/** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */
|
|
44252
44759
|
ColumnApi.prototype.removeAggregationColumns = function (colKeys) {
|
|
44760
|
+
console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');
|
|
44253
44761
|
this.columnModel.removeValueColumns(colKeys, 'api');
|
|
44254
44762
|
};
|
|
44255
44763
|
/** @deprecated addAggregationColumn is deprecated, use addValueColumn */
|
|
44256
44764
|
ColumnApi.prototype.addAggregationColumn = function (colKey) {
|
|
44765
|
+
console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');
|
|
44257
44766
|
this.columnModel.addValueColumn(colKey, 'api');
|
|
44258
44767
|
};
|
|
44259
44768
|
/** @deprecated addAggregationColumns is deprecated, use addValueColumns */
|
|
44260
44769
|
ColumnApi.prototype.addAggregationColumns = function (colKeys) {
|
|
44770
|
+
console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');
|
|
44261
44771
|
this.columnModel.addValueColumns(colKeys, 'api');
|
|
44262
44772
|
};
|
|
44263
44773
|
/** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */
|
|
44264
44774
|
ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {
|
|
44775
|
+
console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');
|
|
44265
44776
|
this.columnModel.setColumnAggFunc(column, aggFunc, 'api');
|
|
44266
44777
|
};
|
|
44267
44778
|
/** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */
|
|
44268
44779
|
ColumnApi.prototype.getDisplayNameForCol = function (column) {
|
|
44780
|
+
console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');
|
|
44269
44781
|
return this.getDisplayNameForColumn(column, null);
|
|
44270
44782
|
};
|
|
44271
44783
|
/** @deprecated setColumnState is deprecated, use applyColumnState. */
|
|
44272
44784
|
ColumnApi.prototype.setColumnState = function (columnState) {
|
|
44785
|
+
console.error('AG Grid: setColumnState is deprecated, use applyColumnState');
|
|
44273
44786
|
return this.columnModel.applyColumnState({ state: columnState, applyOrder: true }, 'api');
|
|
44274
44787
|
};
|
|
44275
44788
|
/** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */
|
|
44276
44789
|
ColumnApi.prototype.getOriginalColumnGroup = function (name) {
|
|
44790
|
+
console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');
|
|
44277
44791
|
return this.columnModel.getProvidedColumnGroup(name);
|
|
44278
44792
|
};
|
|
44279
44793
|
__decorate$1n([
|
|
@@ -44426,6 +44940,7 @@ var ValueService = /** @class */ (function (_super) {
|
|
|
44426
44940
|
// need either a field or a newValueHandler for this to work
|
|
44427
44941
|
if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {
|
|
44428
44942
|
// we don't tell user about newValueHandler, as that is deprecated
|
|
44943
|
+
console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work");
|
|
44429
44944
|
return false;
|
|
44430
44945
|
}
|
|
44431
44946
|
var params = {
|
|
@@ -44602,6 +45117,7 @@ var ValueService = /** @class */ (function (_super) {
|
|
|
44602
45117
|
result = String(result);
|
|
44603
45118
|
if (result === '[object Object]') {
|
|
44604
45119
|
doOnce(function () {
|
|
45120
|
+
console.warn('AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key');
|
|
44605
45121
|
}, 'getKeyForNode - warn about [object,object]');
|
|
44606
45122
|
}
|
|
44607
45123
|
return result;
|
|
@@ -44673,7 +45189,9 @@ var ExpressionService = /** @class */ (function (_super) {
|
|
|
44673
45189
|
var expression = expressionOrFunc;
|
|
44674
45190
|
return this.evaluateExpression(expression, params);
|
|
44675
45191
|
}
|
|
44676
|
-
else
|
|
45192
|
+
else {
|
|
45193
|
+
console.error('AG Grid: value should be either a string or a function', expressionOrFunc);
|
|
45194
|
+
}
|
|
44677
45195
|
};
|
|
44678
45196
|
ExpressionService.prototype.evaluateExpression = function (expression, params) {
|
|
44679
45197
|
try {
|
|
@@ -44687,9 +45205,13 @@ var ExpressionService = /** @class */ (function (_super) {
|
|
|
44687
45205
|
// the expression failed, which can happen, as it's the client that
|
|
44688
45206
|
// provides the expression. so print a nice message
|
|
44689
45207
|
// tslint:disable-next-line
|
|
45208
|
+
console.log('Processing of the expression failed');
|
|
44690
45209
|
// tslint:disable-next-line
|
|
45210
|
+
console.log('Expression = ' + expression);
|
|
44691
45211
|
// tslint:disable-next-line
|
|
45212
|
+
console.log('Params =', params);
|
|
44692
45213
|
// tslint:disable-next-line
|
|
45214
|
+
console.log('Exception = ' + e);
|
|
44693
45215
|
return null;
|
|
44694
45216
|
}
|
|
44695
45217
|
};
|
|
@@ -44787,6 +45309,7 @@ var TemplateService = /** @class */ (function (_super) {
|
|
|
44787
45309
|
};
|
|
44788
45310
|
TemplateService.prototype.handleHttpResult = function (httpResult, url) {
|
|
44789
45311
|
if (httpResult.status !== 200 || httpResult.response === null) {
|
|
45312
|
+
console.warn("AG Grid: Unable to get template error " + httpResult.status + " - " + url);
|
|
44790
45313
|
return;
|
|
44791
45314
|
}
|
|
44792
45315
|
// response success, so process it
|
|
@@ -44867,7 +45390,10 @@ var Logger = /** @class */ (function () {
|
|
|
44867
45390
|
return this.isLoggingFunc();
|
|
44868
45391
|
};
|
|
44869
45392
|
Logger.prototype.log = function (message) {
|
|
44870
|
-
if (this.isLoggingFunc())
|
|
45393
|
+
if (this.isLoggingFunc()) {
|
|
45394
|
+
// tslint:disable-next-line
|
|
45395
|
+
console.log('AG Grid.' + this.name + ': ' + message);
|
|
45396
|
+
}
|
|
44871
45397
|
};
|
|
44872
45398
|
return Logger;
|
|
44873
45399
|
}());
|
|
@@ -45267,6 +45793,7 @@ var SortController = /** @class */ (function (_super) {
|
|
|
45267
45793
|
sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;
|
|
45268
45794
|
}
|
|
45269
45795
|
if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {
|
|
45796
|
+
console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's " + sortingOrder);
|
|
45270
45797
|
return null;
|
|
45271
45798
|
}
|
|
45272
45799
|
var currentIndex = sortingOrder.indexOf(column.getSort());
|
|
@@ -45281,6 +45808,7 @@ var SortController = /** @class */ (function (_super) {
|
|
|
45281
45808
|
}
|
|
45282
45809
|
// verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid
|
|
45283
45810
|
if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {
|
|
45811
|
+
console.warn('AG Grid: invalid sort type ' + result);
|
|
45284
45812
|
return null;
|
|
45285
45813
|
}
|
|
45286
45814
|
return result;
|
|
@@ -45609,6 +46137,7 @@ var AutoGroupColService = /** @class */ (function (_super) {
|
|
|
45609
46137
|
var doingTreeData = this.gridOptionsWrapper.isTreeData();
|
|
45610
46138
|
var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();
|
|
45611
46139
|
if (doingTreeData && doingMultiAutoColumn) {
|
|
46140
|
+
console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');
|
|
45612
46141
|
doingMultiAutoColumn = false;
|
|
45613
46142
|
}
|
|
45614
46143
|
// if doing groupMultiAutoColumn, then we call the method multiple times, once
|
|
@@ -46292,8 +46821,8 @@ var Environment = /** @class */ (function (_super) {
|
|
|
46292
46821
|
var theme = themeMatch[0];
|
|
46293
46822
|
var usingOldTheme = themeMatch[2] === undefined;
|
|
46294
46823
|
if (usingOldTheme) {
|
|
46295
|
-
theme.replace('ag-', 'ag-theme-');
|
|
46296
|
-
doOnce(function () { return (
|
|
46824
|
+
var newTheme_1 = theme.replace('ag-', 'ag-theme-');
|
|
46825
|
+
doOnce(function () { return console.warn("AG Grid: As of v19 old theme are no longer provided. Please replace " + theme + " with " + newTheme_1 + "."); }, 'using-old-theme');
|
|
46297
46826
|
}
|
|
46298
46827
|
return { theme: theme, el: el, themeFamily: theme.replace(/-dark$/, ''), allThemes: allThemes };
|
|
46299
46828
|
};
|
|
@@ -47799,6 +48328,7 @@ var RowCssClassCalculator = /** @class */ (function () {
|
|
|
47799
48328
|
var rowClass = this.gridOptionsWrapper.getRowClass();
|
|
47800
48329
|
if (rowClass) {
|
|
47801
48330
|
if (typeof rowClass === 'function') {
|
|
48331
|
+
console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');
|
|
47802
48332
|
return [];
|
|
47803
48333
|
}
|
|
47804
48334
|
process(rowClass);
|
|
@@ -48639,6 +49169,7 @@ var __spread$6 = (undefined && undefined.__spread) || function () {
|
|
|
48639
49169
|
var Grid = /** @class */ (function () {
|
|
48640
49170
|
function Grid(eGridDiv, gridOptions, params) {
|
|
48641
49171
|
if (!gridOptions) {
|
|
49172
|
+
console.error('AG Grid: no gridOptions provided to the grid');
|
|
48642
49173
|
return;
|
|
48643
49174
|
}
|
|
48644
49175
|
this.gridOptions = gridOptions;
|
|
@@ -48844,7 +49375,32 @@ var GridCoreCreator = /** @class */ (function () {
|
|
|
48844
49375
|
if (exists(rowModelClass)) {
|
|
48845
49376
|
return rowModelClass;
|
|
48846
49377
|
}
|
|
48847
|
-
if (ModuleRegistry.isPackageBased())
|
|
49378
|
+
if (ModuleRegistry.isPackageBased()) {
|
|
49379
|
+
if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType)) {
|
|
49380
|
+
// If package based only the enterprise row models could be missing.
|
|
49381
|
+
console.error("AG Grid: Row Model \"" + rowModelType + "\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/");
|
|
49382
|
+
}
|
|
49383
|
+
else {
|
|
49384
|
+
console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
|
|
49385
|
+
}
|
|
49386
|
+
}
|
|
49387
|
+
else {
|
|
49388
|
+
if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {
|
|
49389
|
+
console.error("AG Grid: Row Model \"Infinite\" not found. Please ensure the " + ModuleNames.InfiniteRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
|
|
49390
|
+
}
|
|
49391
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {
|
|
49392
|
+
console.error("AG Grid: Row Model \"Viewport\" not found. Please ensure the AG Grid Enterprise Module " + ModuleNames.ViewportRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
|
|
49393
|
+
}
|
|
49394
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {
|
|
49395
|
+
console.error("AG Grid: Row Model \"Server Side\" not found. Please ensure the AG Grid Enterprise Module " + ModuleNames.ServerSideRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
|
|
49396
|
+
}
|
|
49397
|
+
else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {
|
|
49398
|
+
console.error("AG Grid: Row Model \"Client Side\" not found. Please ensure the " + ModuleNames.ClientSideRowModelModule + " module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/");
|
|
49399
|
+
}
|
|
49400
|
+
else {
|
|
49401
|
+
console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);
|
|
49402
|
+
}
|
|
49403
|
+
}
|
|
48848
49404
|
};
|
|
48849
49405
|
return GridCoreCreator;
|
|
48850
49406
|
}());
|
|
@@ -49106,15 +49662,51 @@ var LicenseManager = /** @class */ (function (_super) {
|
|
|
49106
49662
|
}
|
|
49107
49663
|
};
|
|
49108
49664
|
LicenseManager.prototype.outputInvalidLicenseKey = function () {
|
|
49665
|
+
console.error('*****************************************************************************************************************');
|
|
49666
|
+
console.error('***************************************** AG Grid Enterprise License ********************************************');
|
|
49667
|
+
console.error('********************************************* Invalid License ***************************************************');
|
|
49668
|
+
console.error('* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *');
|
|
49669
|
+
console.error('*****************************************************************************************************************');
|
|
49670
|
+
console.error('*****************************************************************************************************************');
|
|
49109
49671
|
this.watermarkMessage = "Invalid License";
|
|
49110
49672
|
};
|
|
49111
49673
|
LicenseManager.prototype.outputExpiredTrialKey = function (formattedExpiryDate) {
|
|
49674
|
+
console.error('****************************************************************************************************************');
|
|
49675
|
+
console.error('***************************************** AG Grid Enterprise License *******************************************');
|
|
49676
|
+
console.error('***************************************** Trial Period Expired. *******************************************');
|
|
49677
|
+
console.error("* Your license for AG Grid Enterprise expired on " + formattedExpiryDate + ". *");
|
|
49678
|
+
console.error('* Please email info@ag-grid.com to purchase a license. *');
|
|
49679
|
+
console.error('****************************************************************************************************************');
|
|
49680
|
+
console.error('****************************************************************************************************************');
|
|
49112
49681
|
this.watermarkMessage = "Trial Period Expired";
|
|
49113
49682
|
};
|
|
49114
49683
|
LicenseManager.prototype.outputMissingLicenseKey = function () {
|
|
49684
|
+
console.error('****************************************************************************************************************');
|
|
49685
|
+
console.error('***************************************** AG Grid Enterprise License *******************************************');
|
|
49686
|
+
console.error('****************************************** License Key Not Found ***********************************************');
|
|
49687
|
+
console.error('* All AG Grid Enterprise features are unlocked. *');
|
|
49688
|
+
console.error('* This is an evaluation only version, it is not licensed for development projects intended for production. *');
|
|
49689
|
+
console.error('* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *');
|
|
49690
|
+
console.error('****************************************************************************************************************');
|
|
49691
|
+
console.error('****************************************************************************************************************');
|
|
49115
49692
|
this.watermarkMessage = "For Trial Use Only";
|
|
49116
49693
|
};
|
|
49117
49694
|
LicenseManager.prototype.outputIncompatibleVersion = function (formattedExpiryDate, formattedReleaseDate) {
|
|
49695
|
+
console.error('****************************************************************************************************************************');
|
|
49696
|
+
console.error('****************************************************************************************************************************');
|
|
49697
|
+
console.error('* AG Grid Enterprise License *');
|
|
49698
|
+
console.error('* License not compatible with installed version of AG Grid Enterprise. *');
|
|
49699
|
+
console.error('* *');
|
|
49700
|
+
console.error("* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *");
|
|
49701
|
+
console.error("* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *");
|
|
49702
|
+
console.error("* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *");
|
|
49703
|
+
console.error("* license end date. The license key that you have expires on " + formattedExpiryDate + ", however the version of AG Grid you *");
|
|
49704
|
+
console.error("* are trying to use was released on " + formattedReleaseDate + ". *");
|
|
49705
|
+
console.error('* *');
|
|
49706
|
+
console.error('* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *');
|
|
49707
|
+
console.error('* version of AG Grid. *');
|
|
49708
|
+
console.error('****************************************************************************************************************************');
|
|
49709
|
+
console.error('****************************************************************************************************************************');
|
|
49118
49710
|
this.watermarkMessage = "License Expired";
|
|
49119
49711
|
};
|
|
49120
49712
|
var LicenseManager_1;
|
|
@@ -49656,14 +50248,20 @@ class DataSource {
|
|
|
49656
50248
|
return indexA - indexB;
|
|
49657
50249
|
});
|
|
49658
50250
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
49659
|
-
var _a;
|
|
50251
|
+
var _a, _b;
|
|
49660
50252
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
49661
50253
|
const props = new Map();
|
|
49662
50254
|
const properties = this._dataUnit.getField(f.name).properties;
|
|
49663
50255
|
for (const value in properties) {
|
|
49664
50256
|
props.set(value, properties[value]);
|
|
49665
50257
|
}
|
|
49666
|
-
|
|
50258
|
+
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 };
|
|
50259
|
+
columnDefs.push(col);
|
|
50260
|
+
if (f.userInterface === UserInterface.SEARCHPLUS && ((_b = f.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD)) {
|
|
50261
|
+
const descriptionCol = this.buildDescriptionColumn(f);
|
|
50262
|
+
columnDefs.push(descriptionCol);
|
|
50263
|
+
f.properties[PRESENTATION_COL_ID_PROP_NAME] = descriptionCol.name;
|
|
50264
|
+
}
|
|
49667
50265
|
}
|
|
49668
50266
|
});
|
|
49669
50267
|
}
|
|
@@ -49673,6 +50271,19 @@ class DataSource {
|
|
|
49673
50271
|
console.warn(error);
|
|
49674
50272
|
}
|
|
49675
50273
|
}
|
|
50274
|
+
buildDescriptionColumn(field) {
|
|
50275
|
+
var _a, _b, _c, _d;
|
|
50276
|
+
const props = new Map();
|
|
50277
|
+
props.set(PRESENTATION_FROM_COL_PROP_NAME, field.name);
|
|
50278
|
+
const descriptionFieldName = `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME}.${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD}`;
|
|
50279
|
+
this._dataUnit.addSourceFieldValue(descriptionFieldName, field.name);
|
|
50280
|
+
return {
|
|
50281
|
+
label: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELDLABEL} (${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONENTITY})`,
|
|
50282
|
+
name: descriptionFieldName,
|
|
50283
|
+
userInterface: UserInterface.SHORTTEXT,
|
|
50284
|
+
props
|
|
50285
|
+
};
|
|
50286
|
+
}
|
|
49676
50287
|
}
|
|
49677
50288
|
|
|
49678
50289
|
class EzGridCustomHeader {
|
|
@@ -50083,6 +50694,21 @@ const buildSwitch = (fieldMetadata) => {
|
|
|
50083
50694
|
return combo;
|
|
50084
50695
|
};
|
|
50085
50696
|
|
|
50697
|
+
const buildSearchPlus = ({ name, required, readOnly, dataUnit }) => {
|
|
50698
|
+
const ezSearch = HTMLBuilder.parseElement(`<ez-search-plus
|
|
50699
|
+
class="ez-grid grid_editor"
|
|
50700
|
+
mode="slim"
|
|
50701
|
+
suppress-empty-option=${required}
|
|
50702
|
+
enabled=${!readOnly}
|
|
50703
|
+
hide-description-input=${true}
|
|
50704
|
+
/>`);
|
|
50705
|
+
const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__");
|
|
50706
|
+
ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
|
|
50707
|
+
ezSearch.autoFocus = true;
|
|
50708
|
+
ezSearch.valueGetter = () => ezSearch.getValueAsync();
|
|
50709
|
+
return ezSearch;
|
|
50710
|
+
};
|
|
50711
|
+
|
|
50086
50712
|
const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) => {
|
|
50087
50713
|
var _a;
|
|
50088
50714
|
const ezSearch = HTMLBuilder.parseElement(`<ez-search
|
|
@@ -50115,6 +50741,7 @@ uiBuilders.set(UserInterface.CHECKBOX, buildSwitch);
|
|
|
50115
50741
|
uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
50116
50742
|
uiBuilders.set(UserInterface.LONGTEXT, buildTextAreaInput);
|
|
50117
50743
|
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
50744
|
+
uiBuilders.set(UserInterface.SEARCHPLUS, buildSearchPlus);
|
|
50118
50745
|
class EzCellEditor {
|
|
50119
50746
|
init(params) {
|
|
50120
50747
|
this._rowData = params.data;
|
|
@@ -50313,6 +50940,7 @@ class EzGridCustomCellRender extends EzCellRender {
|
|
|
50313
50940
|
|
|
50314
50941
|
class GridEditionManager {
|
|
50315
50942
|
constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders, enableContinuousInsert, enableGridInsert, lockerId) {
|
|
50943
|
+
this._inProgressChanges = [];
|
|
50316
50944
|
this._dataUnit = dataUnit;
|
|
50317
50945
|
this._recordValidationProcessor = new RecordValidationProcessor(this._dataUnit, {
|
|
50318
50946
|
getRequiredFields: () => this.getRequiredFields(),
|
|
@@ -50412,6 +51040,12 @@ class GridEditionManager {
|
|
|
50412
51040
|
return this._enableContinuousInsert && (this._dataUnit.records.length - 1) === ((_a = this._lastCellEdited) === null || _a === void 0 ? void 0 : _a.rowIndex);
|
|
50413
51041
|
}
|
|
50414
51042
|
async proceedAutoSave() {
|
|
51043
|
+
var _a;
|
|
51044
|
+
//Aguarda outras promises entrarem na fila
|
|
51045
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
51046
|
+
if (this._inProgressChanges.length) {
|
|
51047
|
+
await Promise.all((_a = this._inProgressChanges) === null || _a === void 0 ? void 0 : _a.map(({ promise }) => promise));
|
|
51048
|
+
}
|
|
50415
51049
|
if (!this._dataUnit.isDirty()) {
|
|
50416
51050
|
this.saveSuccess();
|
|
50417
51051
|
return true;
|
|
@@ -50482,7 +51116,9 @@ class GridEditionManager {
|
|
|
50482
51116
|
}
|
|
50483
51117
|
configureColumn(col) {
|
|
50484
51118
|
col.cellEditor = 'ezCellEditor';
|
|
50485
|
-
col.editable
|
|
51119
|
+
if (col.editable != false) {
|
|
51120
|
+
col.editable = params => this.canEdit(params);
|
|
51121
|
+
}
|
|
50486
51122
|
col.suppressKeyboardEvent = (params) => {
|
|
50487
51123
|
if (params.event.key === KeyCode.ESCAPE && params.editing) {
|
|
50488
51124
|
return this._dataUnit.isDirty();
|
|
@@ -50641,11 +51277,14 @@ class GridEditionManager {
|
|
|
50641
51277
|
}
|
|
50642
51278
|
isColEditable(fieldName) {
|
|
50643
51279
|
const fieldDefinition = this._dataUnit.getField(fieldName);
|
|
50644
|
-
if (fieldDefinition) {
|
|
51280
|
+
if (fieldDefinition && !this.isTypeFile(fieldDefinition)) {
|
|
50645
51281
|
return !fieldDefinition.readOnly;
|
|
50646
51282
|
}
|
|
50647
51283
|
return false;
|
|
50648
51284
|
}
|
|
51285
|
+
isTypeFile(file) {
|
|
51286
|
+
return file.userInterface === UserInterface.FILE;
|
|
51287
|
+
}
|
|
50649
51288
|
isSecondClick(cellClicked) {
|
|
50650
51289
|
if (!this._lastCellClicked) {
|
|
50651
51290
|
return false;
|
|
@@ -50666,6 +51305,14 @@ class GridEditionManager {
|
|
|
50666
51305
|
return;
|
|
50667
51306
|
}
|
|
50668
51307
|
if (value instanceof Promise) {
|
|
51308
|
+
const progressChange = {
|
|
51309
|
+
promise: undefined,
|
|
51310
|
+
resolve: () => { }
|
|
51311
|
+
};
|
|
51312
|
+
progressChange.promise = new Promise((resolve) => {
|
|
51313
|
+
progressChange.resolve = resolve;
|
|
51314
|
+
});
|
|
51315
|
+
this._inProgressChanges.push(progressChange);
|
|
50669
51316
|
this.handlePromiseValue(event, value);
|
|
50670
51317
|
return;
|
|
50671
51318
|
}
|
|
@@ -50679,20 +51326,26 @@ class GridEditionManager {
|
|
|
50679
51326
|
const resolved = await value;
|
|
50680
51327
|
return this.updateCellValue(event, resolved);
|
|
50681
51328
|
}
|
|
50682
|
-
updateCellValue(event, newValue) {
|
|
50683
|
-
var _a;
|
|
51329
|
+
async updateCellValue(event, newValue) {
|
|
51330
|
+
var _a, _b, _c;
|
|
50684
51331
|
const fieldName = event.colDef.field;
|
|
50685
51332
|
const fieldDescriptor = this._dataUnit.getField(fieldName);
|
|
50686
51333
|
if (newValue == '' && newValue != this._dataUnit.getFieldValue(fieldName) && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.userInterface) === UserInterface.SEARCH) {
|
|
50687
51334
|
newValue = this._dataUnit.getFieldValue(fieldName);
|
|
50688
51335
|
}
|
|
51336
|
+
const newData = { [fieldName]: newValue };
|
|
51337
|
+
const descriptionColName = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a[PRESENTATION_COL_ID_PROP_NAME];
|
|
51338
|
+
if (!StringUtils$1.isEmpty(descriptionColName)) {
|
|
51339
|
+
newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
|
|
51340
|
+
}
|
|
50689
51341
|
event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: newValue }));
|
|
50690
|
-
(
|
|
51342
|
+
(_b = this._currentEditLock) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
50691
51343
|
if (event.oldValue !== newValue) {
|
|
50692
51344
|
this._isGridEdition = true;
|
|
50693
|
-
this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
51345
|
+
await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
|
|
50694
51346
|
this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
|
|
50695
51347
|
}
|
|
51348
|
+
(_c = this._inProgressChanges) === null || _c === void 0 ? void 0 : _c.forEach(({ resolve }) => resolve(newValue));
|
|
50696
51349
|
}
|
|
50697
51350
|
setCellEditors(customEditors) {
|
|
50698
51351
|
var _a;
|
|
@@ -51481,10 +52134,12 @@ var RangeService = /** @class */ (function (_super) {
|
|
|
51481
52134
|
var isSameColumn = columnFrom === columnTo;
|
|
51482
52135
|
var fromIndex = allColumns.indexOf(columnFrom);
|
|
51483
52136
|
if (fromIndex < 0) {
|
|
52137
|
+
console.warn("AG Grid: column " + columnFrom.getId() + " is not visible");
|
|
51484
52138
|
return;
|
|
51485
52139
|
}
|
|
51486
52140
|
var toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);
|
|
51487
52141
|
if (toIndex < 0) {
|
|
52142
|
+
console.warn("AG Grid: column " + columnTo.getId() + " is not visible");
|
|
51488
52143
|
return;
|
|
51489
52144
|
}
|
|
51490
52145
|
if (isSameColumn) {
|
|
@@ -52419,10 +53074,12 @@ var ServerSideRowModel = /** @class */ (function (_super) {
|
|
|
52419
53074
|
};
|
|
52420
53075
|
ServerSideRowModel.prototype.verifyProps = function () {
|
|
52421
53076
|
if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {
|
|
52422
|
-
|
|
53077
|
+
var message_1 = "AG Grid: initialGroupOrderComparator cannot be used with Server Side Row Model. If using Full Store, then provide the rows to the grid in the desired sort order. If using Infinite Scroll, then sorting is done on the server side, nothing to do with the client.";
|
|
53078
|
+
_.doOnce(function () { return console.warn(message_1); }, 'SSRM.InitialGroupOrderComparator');
|
|
52423
53079
|
}
|
|
52424
53080
|
if (this.gridOptionsWrapper.isRowSelection() && this.gridOptionsWrapper.getRowIdFunc() == null) {
|
|
52425
|
-
|
|
53081
|
+
var message_2 = "AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.";
|
|
53082
|
+
_.doOnce(function () { return console.warn(message_2); }, 'SSRM.SelectionNeedsRowNodeIdFunc');
|
|
52426
53083
|
}
|
|
52427
53084
|
};
|
|
52428
53085
|
ServerSideRowModel.prototype.setDatasource = function (datasource) {
|
|
@@ -52972,6 +53629,11 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
52972
53629
|
rowNode.key = this.valueService.getValue(rowNode.rowGroupColumn, rowNode);
|
|
52973
53630
|
if (rowNode.key === null || rowNode.key === undefined) {
|
|
52974
53631
|
_.doOnce(function () {
|
|
53632
|
+
console.warn("AG Grid: null and undefined values are not allowed for server side row model keys");
|
|
53633
|
+
if (rowNode.rowGroupColumn) {
|
|
53634
|
+
console.warn("column = " + rowNode.rowGroupColumn.getId());
|
|
53635
|
+
}
|
|
53636
|
+
console.warn("data is ", rowNode.data);
|
|
52975
53637
|
}, 'ServerSideBlock-CannotHaveNullOrUndefinedForKey');
|
|
52976
53638
|
}
|
|
52977
53639
|
};
|
|
@@ -53088,6 +53750,7 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
53088
53750
|
var bottomPointer = 0;
|
|
53089
53751
|
var topPointer = rowNodes.length - 1;
|
|
53090
53752
|
if (_.missing(topPointer) || _.missing(bottomPointer)) {
|
|
53753
|
+
console.warn("AG Grid: error: topPointer = " + topPointer + ", bottomPointer = " + bottomPointer);
|
|
53091
53754
|
return undefined;
|
|
53092
53755
|
}
|
|
53093
53756
|
while (true) {
|
|
@@ -53116,6 +53779,7 @@ var BlockUtils = /** @class */ (function (_super) {
|
|
|
53116
53779
|
topPointer = midPointer - 1;
|
|
53117
53780
|
}
|
|
53118
53781
|
else {
|
|
53782
|
+
console.warn("AG Grid: error: unable to locate rowIndex = " + displayRowIndex + " in cache");
|
|
53119
53783
|
return undefined;
|
|
53120
53784
|
}
|
|
53121
53785
|
}
|
|
@@ -53231,6 +53895,11 @@ var NodeManager = /** @class */ (function () {
|
|
|
53231
53895
|
}
|
|
53232
53896
|
NodeManager.prototype.addRowNode = function (rowNode) {
|
|
53233
53897
|
var id = rowNode.id;
|
|
53898
|
+
if (this.rowNodes[id]) {
|
|
53899
|
+
console.warn("AG Grid: Duplicate node id " + rowNode.id + ". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.");
|
|
53900
|
+
console.warn('first instance', this.rowNodes[id].data);
|
|
53901
|
+
console.warn('second instance', rowNode.data);
|
|
53902
|
+
}
|
|
53234
53903
|
this.rowNodes[id] = rowNode;
|
|
53235
53904
|
};
|
|
53236
53905
|
NodeManager.prototype.removeNode = function (rowNode) {
|
|
@@ -54162,7 +54831,8 @@ var InfiniteStore = /** @class */ (function (_super) {
|
|
|
54162
54831
|
Object.assign(this.info, info);
|
|
54163
54832
|
}
|
|
54164
54833
|
if (!params.rowData) {
|
|
54165
|
-
|
|
54834
|
+
var message_1 = 'AG Grid: "params.rowData" is missing from Server-Side Row Model success() callback. Please use the "rowData" attribute. If no data is returned, set an empty list.';
|
|
54835
|
+
_.doOnce(function () { return console.warn(message_1, params); }, 'InfiniteStore.noData');
|
|
54166
54836
|
}
|
|
54167
54837
|
var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;
|
|
54168
54838
|
// if we are not active, then we ignore all events, otherwise we could end up getting the
|
|
@@ -54921,7 +55591,8 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
54921
55591
|
this.nodesAfterFilter = [];
|
|
54922
55592
|
this.allNodesMap = {};
|
|
54923
55593
|
if (!params.rowData) {
|
|
54924
|
-
|
|
55594
|
+
var message_1 = 'AG Grid: "params.data" is missing from Server-Side Row Model success() callback. Please use the "data" attribute. If no data is returned, set an empty list.';
|
|
55595
|
+
_.doOnce(function () { return console.warn(message_1, params); }, 'FullStore.noData');
|
|
54925
55596
|
}
|
|
54926
55597
|
this.createOrRecycleNodes(nodesToRecycle, params.rowData);
|
|
54927
55598
|
if (nodesToRecycle) {
|
|
@@ -55296,6 +55967,7 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
55296
55967
|
});
|
|
55297
55968
|
rowNode = this.allNodesMap[id];
|
|
55298
55969
|
if (!rowNode) {
|
|
55970
|
+
console.error("AG Grid: could not find row id=" + id + ", data item was not found for this id");
|
|
55299
55971
|
return null;
|
|
55300
55972
|
}
|
|
55301
55973
|
}
|
|
@@ -55303,6 +55975,7 @@ var FullStore = /** @class */ (function (_super) {
|
|
|
55303
55975
|
// find rowNode using object references
|
|
55304
55976
|
rowNode = this.allRowNodes.find(function (currentRowNode) { return currentRowNode.data === data; });
|
|
55305
55977
|
if (!rowNode) {
|
|
55978
|
+
console.error("AG Grid: could not find data item as object was not found", data);
|
|
55306
55979
|
return null;
|
|
55307
55980
|
}
|
|
55308
55981
|
}
|
|
@@ -55450,11 +56123,15 @@ var StoreFactory = /** @class */ (function () {
|
|
|
55450
56123
|
return undefined;
|
|
55451
56124
|
}
|
|
55452
56125
|
if (ssrmParams.dynamicRowHeight) {
|
|
55453
|
-
|
|
56126
|
+
var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' +
|
|
56127
|
+
'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';
|
|
56128
|
+
_.doOnce(function () { return console.warn(message_1); }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');
|
|
55454
56129
|
return undefined;
|
|
55455
56130
|
}
|
|
55456
56131
|
if (this.columnModel.isAutoRowHeightActive()) {
|
|
55457
|
-
|
|
56132
|
+
var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' +
|
|
56133
|
+
'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';
|
|
56134
|
+
_.doOnce(function () { return console.warn(message_2); }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');
|
|
55458
56135
|
return undefined;
|
|
55459
56136
|
}
|
|
55460
56137
|
return maxBlocksInCache;
|
|
@@ -55682,6 +56359,7 @@ var Downloader = /** @class */ (function () {
|
|
|
55682
56359
|
Downloader.download = function (fileName, content) {
|
|
55683
56360
|
var win = document.defaultView || window;
|
|
55684
56361
|
if (!win) {
|
|
56362
|
+
console.warn('AG Grid: There is no `window` associated with the current `document`');
|
|
55685
56363
|
return;
|
|
55686
56364
|
}
|
|
55687
56365
|
var element = document.createElement('a');
|
|
@@ -55815,6 +56493,7 @@ var CsvSerializingSession = /** @class */ (function (_super) {
|
|
|
55815
56493
|
stringValue = value.toString();
|
|
55816
56494
|
}
|
|
55817
56495
|
else {
|
|
56496
|
+
console.warn('AG Grid: unknown value type during csv conversion');
|
|
55818
56497
|
stringValue = '';
|
|
55819
56498
|
}
|
|
55820
56499
|
// replace each " with "" (ie two sets of double quotes is how to do double quotes in csv)
|
|
@@ -55869,6 +56548,7 @@ var CsvCreator = /** @class */ (function (_super) {
|
|
|
55869
56548
|
};
|
|
55870
56549
|
CsvCreator.prototype.export = function (userParams) {
|
|
55871
56550
|
if (this.isExportSuppressed()) {
|
|
56551
|
+
console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration.");
|
|
55872
56552
|
return '';
|
|
55873
56553
|
}
|
|
55874
56554
|
var mergedParams = this.getMergedParams(userParams);
|
|
@@ -55988,7 +56668,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
55988
56668
|
var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;
|
|
55989
56669
|
var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);
|
|
55990
56670
|
if (skipRowGroups && params.skipGroups) {
|
|
55991
|
-
_.doOnce(function () { return (
|
|
56671
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.'); }, 'gridSerializer-skipGroups');
|
|
55992
56672
|
}
|
|
55993
56673
|
if ((!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents)) ||
|
|
55994
56674
|
(params.onlySelected && !node.isSelected()) ||
|
|
@@ -56022,7 +56702,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56022
56702
|
var appendContent = params.customFooter || params.appendContent;
|
|
56023
56703
|
if (appendContent) {
|
|
56024
56704
|
if (params.customFooter) {
|
|
56025
|
-
_.doOnce(function () { return (
|
|
56705
|
+
_.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.'); }, 'gridSerializer-customFooter');
|
|
56026
56706
|
}
|
|
56027
56707
|
gridSerializingSession.addCustomContent(appendContent);
|
|
56028
56708
|
}
|
|
@@ -56034,7 +56714,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56034
56714
|
var prependContent = params.customHeader || params.prependContent;
|
|
56035
56715
|
if (prependContent) {
|
|
56036
56716
|
if (params.customHeader) {
|
|
56037
|
-
_.doOnce(function () { return (
|
|
56717
|
+
_.doOnce(function () { return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.'); }, 'gridSerializer-customHeader');
|
|
56038
56718
|
}
|
|
56039
56719
|
gridSerializingSession.addCustomContent(prependContent);
|
|
56040
56720
|
}
|
|
@@ -56056,7 +56736,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56056
56736
|
_this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);
|
|
56057
56737
|
}
|
|
56058
56738
|
else if (params.columnGroups) {
|
|
56059
|
-
_.doOnce(function () { return (
|
|
56739
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.'); }, 'gridSerializer-columnGroups');
|
|
56060
56740
|
}
|
|
56061
56741
|
return gridSerializingSession;
|
|
56062
56742
|
};
|
|
@@ -56070,7 +56750,7 @@ var GridSerializer = /** @class */ (function (_super) {
|
|
|
56070
56750
|
});
|
|
56071
56751
|
}
|
|
56072
56752
|
else if (params.skipHeader) {
|
|
56073
|
-
_.doOnce(function () { return (
|
|
56753
|
+
_.doOnce(function () { return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.'); }, 'gridSerializer-skipHeader');
|
|
56074
56754
|
}
|
|
56075
56755
|
return gridSerializingSession;
|
|
56076
56756
|
};
|
|
@@ -56318,6 +56998,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56318
56998
|
.then(this.processClipboardData.bind(this))
|
|
56319
56999
|
.catch(function (e) {
|
|
56320
57000
|
_.doOnce(function () {
|
|
57001
|
+
console.warn(e);
|
|
57002
|
+
console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). ' +
|
|
57003
|
+
'The reason why it could not be used has been logged in the previous line. ' +
|
|
57004
|
+
'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
|
|
57005
|
+
'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
|
|
57006
|
+
'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API');
|
|
56321
57007
|
}, 'clipboardApiError');
|
|
56322
57008
|
_this.navigatorApiFailed = true;
|
|
56323
57009
|
_this.pasteFromClipboardLegacy();
|
|
@@ -56844,6 +57530,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56844
57530
|
if (allowNavigator && navigator.clipboard) {
|
|
56845
57531
|
navigator.clipboard.writeText(data).catch(function (e) {
|
|
56846
57532
|
_.doOnce(function () {
|
|
57533
|
+
console.warn(e);
|
|
57534
|
+
console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). ' +
|
|
57535
|
+
'The reason why it could not be used has been logged in the previous line. ' +
|
|
57536
|
+
'For this reason the grid has defaulted to using a workaround which doesn\'t perform as well. ' +
|
|
57537
|
+
'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' +
|
|
57538
|
+
'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.');
|
|
56847
57539
|
}, 'clipboardApiError');
|
|
56848
57540
|
_this.copyDataToClipboardLegacy(data);
|
|
56849
57541
|
});
|
|
@@ -56860,7 +57552,12 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56860
57552
|
element.value = data || ' '; // has to be non-empty value or execCommand will not do anything
|
|
56861
57553
|
element.select();
|
|
56862
57554
|
element.focus({ preventScroll: true });
|
|
56863
|
-
eDocument.execCommand('copy');
|
|
57555
|
+
var result = eDocument.execCommand('copy');
|
|
57556
|
+
if (!result) {
|
|
57557
|
+
console.warn('AG Grid: Browser did not allow document.execCommand(\'copy\'). Ensure ' +
|
|
57558
|
+
'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise ' +
|
|
57559
|
+
'the browser will prevent it for security reasons.');
|
|
57560
|
+
}
|
|
56864
57561
|
if (focusedElementBefore != null && focusedElementBefore.focus != null) {
|
|
56865
57562
|
focusedElementBefore.focus({ preventScroll: true });
|
|
56866
57563
|
}
|
|
@@ -56884,6 +57581,7 @@ var ClipboardService = /** @class */ (function (_super) {
|
|
|
56884
57581
|
callbackNow(eTempInput);
|
|
56885
57582
|
}
|
|
56886
57583
|
catch (err) {
|
|
57584
|
+
console.warn('AG Grid: Browser does not support document.execCommand(\'copy\') for clipboard operations');
|
|
56887
57585
|
}
|
|
56888
57586
|
//It needs 100 otherwise OS X seemed to not always be able to paste... Go figure...
|
|
56889
57587
|
if (callbackAfter) {
|
|
@@ -58156,6 +58854,7 @@ var ToolPanelColumnComp = /** @class */ (function (_super) {
|
|
|
58156
58854
|
return false;
|
|
58157
58855
|
};
|
|
58158
58856
|
ToolPanelColumnComp.prototype.setExpanded = function (value) {
|
|
58857
|
+
console.warn('AG Grid: can not expand a column item that does not represent a column group header');
|
|
58159
58858
|
};
|
|
58160
58859
|
ToolPanelColumnComp.TEMPLATE = "<div class=\"ag-column-select-column\" aria-hidden=\"true\">\n <ag-checkbox ref=\"cbSelect\" class=\"ag-column-select-checkbox\"></ag-checkbox>\n <span class=\"ag-column-select-column-label\" ref=\"eLabel\"></span>\n </div>";
|
|
58161
58860
|
__decorate$q([
|
|
@@ -58450,7 +59149,10 @@ var PRIMARY_COLS_LIST_PANEL_CLASS = 'ag-column-select-list';
|
|
|
58450
59149
|
expandedGroupIds.push(groupId);
|
|
58451
59150
|
}
|
|
58452
59151
|
});
|
|
58453
|
-
groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
|
|
59152
|
+
var unrecognisedGroupIds = groupIds.filter(function (groupId) { return !_.includes(expandedGroupIds, groupId); });
|
|
59153
|
+
if (unrecognisedGroupIds.length > 0) {
|
|
59154
|
+
console.warn('AG Grid: unable to find group(s) for supplied groupIds:', unrecognisedGroupIds);
|
|
59155
|
+
}
|
|
58454
59156
|
};
|
|
58455
59157
|
PrimaryColsListPanel.prototype.getExpandState = function () {
|
|
58456
59158
|
var expandedCount = 0;
|
|
@@ -58844,6 +59546,7 @@ var __decorate$n = (undefined && undefined.__decorate) || function (decorators,
|
|
|
58844
59546
|
this.aggFuncService.getAggFunc(aggFuncOrString) :
|
|
58845
59547
|
aggFuncOrString;
|
|
58846
59548
|
if (typeof aggFunc !== 'function') {
|
|
59549
|
+
console.error("AG Grid: unrecognised aggregation function " + aggFuncOrString);
|
|
58847
59550
|
return null;
|
|
58848
59551
|
}
|
|
58849
59552
|
var aggFuncAny = aggFunc;
|
|
@@ -59370,6 +60073,9 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
|
|
|
59370
60073
|
GroupStage.prototype.insertOneNode = function (childNode, details, isMove) {
|
|
59371
60074
|
var path = this.getGroupInfo(childNode, details);
|
|
59372
60075
|
var parentGroup = this.findParentForNode(childNode, path, details);
|
|
60076
|
+
if (!parentGroup.group) {
|
|
60077
|
+
console.warn("AG Grid: duplicate group keys for row data, keys should be unique", [parentGroup.data, childNode.data]);
|
|
60078
|
+
}
|
|
59373
60079
|
if (this.usingTreeData) {
|
|
59374
60080
|
this.swapGroupWithUserNode(parentGroup, childNode, isMove);
|
|
59375
60081
|
}
|
|
@@ -59507,7 +60213,7 @@ var __spread$2 = (undefined && undefined.__spread) || function () {
|
|
|
59507
60213
|
GroupStage.prototype.getGroupInfoFromCallback = function (rowNode) {
|
|
59508
60214
|
var keys = this.getDataPath ? this.getDataPath(rowNode.data) : null;
|
|
59509
60215
|
if (keys === null || keys === undefined || keys.length === 0) {
|
|
59510
|
-
_.doOnce(function () { return (
|
|
60216
|
+
_.doOnce(function () { return console.warn("AG Grid: getDataPath() should not return an empty path for data", rowNode.data); }, 'groupStage.getGroupInfoFromCallback');
|
|
59511
60217
|
}
|
|
59512
60218
|
var groupInfoMapper = function (key) { return ({ key: key, field: null, rowGroupColumn: null }); };
|
|
59513
60219
|
return keys ? keys.map(groupInfoMapper) : [];
|
|
@@ -62232,6 +62938,7 @@ var ToolPanelWrapper = /** @class */ (function (_super) {
|
|
|
62232
62938
|
var compDetails = this.userComponentFactory.getToolPanelCompDetails(toolPanelDef, params);
|
|
62233
62939
|
var componentPromise = compDetails.newAgStackInstance();
|
|
62234
62940
|
if (componentPromise == null) {
|
|
62941
|
+
console.warn("AG Grid: error processing tool panel component " + id + ". You need to specify either 'toolPanel' or 'toolPanelFramework'");
|
|
62235
62942
|
return;
|
|
62236
62943
|
}
|
|
62237
62944
|
componentPromise.then(this.setToolPanelComponent.bind(this));
|
|
@@ -62426,6 +63133,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62426
63133
|
var _this = this;
|
|
62427
63134
|
defs.forEach(function (def) {
|
|
62428
63135
|
if (def.id == null) {
|
|
63136
|
+
console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id");
|
|
62429
63137
|
return;
|
|
62430
63138
|
}
|
|
62431
63139
|
// helpers, in case user doesn't have the right module loaded
|
|
@@ -62471,6 +63179,7 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62471
63179
|
SideBarComp.prototype.getToolPanelInstance = function (key) {
|
|
62472
63180
|
var toolPanelWrapper = this.toolPanelWrappers.filter(function (toolPanel) { return toolPanel.getToolPanelId() === key; })[0];
|
|
62473
63181
|
if (!toolPanelWrapper) {
|
|
63182
|
+
console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: " + key);
|
|
62474
63183
|
return;
|
|
62475
63184
|
}
|
|
62476
63185
|
return toolPanelWrapper.getToolPanelInstance();
|
|
@@ -62556,6 +63265,7 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62556
63265
|
}
|
|
62557
63266
|
ToolPanelColDefService.prototype.createColumnTree = function (colDefs) {
|
|
62558
63267
|
var _this = this;
|
|
63268
|
+
var invalidColIds = [];
|
|
62559
63269
|
var createDummyColGroup = function (abstractColDef, depth) {
|
|
62560
63270
|
if (_this.isColGroupDef(abstractColDef)) {
|
|
62561
63271
|
// creating 'dummy' group which is not associated with grid column group
|
|
@@ -62577,6 +63287,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62577
63287
|
var colDef = abstractColDef;
|
|
62578
63288
|
var key = colDef.colId ? colDef.colId : colDef.field;
|
|
62579
63289
|
var column = _this.columnModel.getPrimaryColumn(key);
|
|
63290
|
+
if (!column) {
|
|
63291
|
+
invalidColIds.push(colDef);
|
|
63292
|
+
}
|
|
62580
63293
|
return column;
|
|
62581
63294
|
}
|
|
62582
63295
|
};
|
|
@@ -62588,6 +63301,9 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
62588
63301
|
mappedResults.push(result);
|
|
62589
63302
|
}
|
|
62590
63303
|
});
|
|
63304
|
+
if (invalidColIds.length > 0) {
|
|
63305
|
+
console.warn('AG Grid: unable to find grid columns for the supplied colDef(s):', invalidColIds);
|
|
63306
|
+
}
|
|
62591
63307
|
return mappedResults;
|
|
62592
63308
|
};
|
|
62593
63309
|
ToolPanelColDefService.prototype.syncLayoutWithGrid = function (syncLayoutCallback) {
|
|
@@ -63142,10 +63858,15 @@ var EnterpriseMenu = /** @class */ (function (_super) {
|
|
|
63142
63858
|
};
|
|
63143
63859
|
EnterpriseMenu.prototype.isValidMenuTabItem = function (menuTabName) {
|
|
63144
63860
|
var isValid = true;
|
|
63861
|
+
var itemsToConsider = EnterpriseMenu.TABS_DEFAULT;
|
|
63145
63862
|
if (this.restrictTo != null) {
|
|
63146
63863
|
isValid = this.restrictTo.indexOf(menuTabName) > -1;
|
|
63864
|
+
itemsToConsider = this.restrictTo;
|
|
63147
63865
|
}
|
|
63148
63866
|
isValid = isValid && EnterpriseMenu.TABS_DEFAULT.indexOf(menuTabName) > -1;
|
|
63867
|
+
if (!isValid) {
|
|
63868
|
+
console.warn("AG Grid: Trying to render an invalid menu item '" + menuTabName + "'. Check that your 'menuTabs' contains one of [" + itemsToConsider + "]");
|
|
63869
|
+
}
|
|
63149
63870
|
return isValid;
|
|
63150
63871
|
};
|
|
63151
63872
|
EnterpriseMenu.prototype.isNotSuppressed = function (menuTabName) {
|
|
@@ -63856,6 +64577,7 @@ var MenuItemMapper = /** @class */ (function (_super) {
|
|
|
63856
64577
|
return chartMenuItem;
|
|
63857
64578
|
}
|
|
63858
64579
|
else {
|
|
64580
|
+
console.warn("AG Grid: unknown menu item type " + key);
|
|
63859
64581
|
return null;
|
|
63860
64582
|
}
|
|
63861
64583
|
}
|
|
@@ -64099,7 +64821,8 @@ class AgGridController {
|
|
|
64099
64821
|
}
|
|
64100
64822
|
showFilterColumn(configs) {
|
|
64101
64823
|
var _a;
|
|
64102
|
-
|
|
64824
|
+
const presentationMetadata = this.resolveDescriptionColMetadata(configs.columnName);
|
|
64825
|
+
(_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(Object.assign(Object.assign({}, configs), { fieldDescriptor: presentationMetadata }));
|
|
64103
64826
|
}
|
|
64104
64827
|
constructor(_enterprise) {
|
|
64105
64828
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
@@ -64120,6 +64843,7 @@ class AgGridController {
|
|
|
64120
64843
|
this._customFormatters = new Map();
|
|
64121
64844
|
this._gridShowDom = false;
|
|
64122
64845
|
this.peddingExecutionsOnGridShow = [];
|
|
64846
|
+
this._lastColsConfig = undefined;
|
|
64123
64847
|
ModuleRegistry.registerModules([
|
|
64124
64848
|
EnterpriseCoreModule,
|
|
64125
64849
|
RangeSelectionModule,
|
|
@@ -64131,8 +64855,25 @@ class AgGridController {
|
|
|
64131
64855
|
getGridConfig() {
|
|
64132
64856
|
return this._gridConfig;
|
|
64133
64857
|
}
|
|
64134
|
-
locateColumn(columnName) {
|
|
64858
|
+
locateColumn(columnName, gridElement) {
|
|
64135
64859
|
this._gridOptions.api.ensureColumnVisible(columnName);
|
|
64860
|
+
requestAnimationFrame(() => {
|
|
64861
|
+
this.highlightColumnHeader(columnName, gridElement);
|
|
64862
|
+
});
|
|
64863
|
+
}
|
|
64864
|
+
highlightColumnHeader(columnName, gridElement) {
|
|
64865
|
+
const headerElement = gridElement.querySelector(`.ag-header-cell[col-id="${columnName}"]`);
|
|
64866
|
+
if (!headerElement)
|
|
64867
|
+
return;
|
|
64868
|
+
headerElement.classList.add("ez-grid__column-highlight-header");
|
|
64869
|
+
headerElement.setAttribute("tabindex", "0");
|
|
64870
|
+
const removeHighlight = (event) => {
|
|
64871
|
+
if (!headerElement.contains(event.target)) {
|
|
64872
|
+
headerElement.classList.remove("ez-grid__column-highlight-header");
|
|
64873
|
+
document.removeEventListener("click", removeHighlight);
|
|
64874
|
+
}
|
|
64875
|
+
};
|
|
64876
|
+
document.addEventListener("click", removeHighlight);
|
|
64136
64877
|
}
|
|
64137
64878
|
getSort(_dataUnitName, defaultSorting) {
|
|
64138
64879
|
const sortedColumns = [];
|
|
@@ -64154,10 +64895,15 @@ class AgGridController {
|
|
|
64154
64895
|
return;
|
|
64155
64896
|
}
|
|
64156
64897
|
return Array.from(this._filteredColumns.entries())
|
|
64157
|
-
.map(([
|
|
64898
|
+
.map(([col, items]) => {
|
|
64158
64899
|
var _a;
|
|
64159
64900
|
const checkedOptions = items.filter(option => option.check);
|
|
64160
64901
|
if (checkedOptions.length > 0) {
|
|
64902
|
+
let column = col;
|
|
64903
|
+
const presentationFrom = this.getCodeColFromDescriptionCol(col);
|
|
64904
|
+
if (!StringUtils$1.isEmpty(presentationFrom)) {
|
|
64905
|
+
column = presentationFrom;
|
|
64906
|
+
}
|
|
64161
64907
|
const fieldDescriptor = this._dataUnit.getField(column);
|
|
64162
64908
|
const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : DataType.TEXT;
|
|
64163
64909
|
let placeholders = '';
|
|
@@ -64224,6 +64970,7 @@ class AgGridController {
|
|
|
64224
64970
|
this._dataUnit.addFilterProvider(this);
|
|
64225
64971
|
}
|
|
64226
64972
|
this._gridOptions = {
|
|
64973
|
+
suppressHorizontalScroll: options.suppressHorizontalScroll,
|
|
64227
64974
|
localeText: gridTerms,
|
|
64228
64975
|
enableRangeSelection: this._multipleSelection,
|
|
64229
64976
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
@@ -64351,6 +65098,23 @@ class AgGridController {
|
|
|
64351
65098
|
action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
|
|
64352
65099
|
};
|
|
64353
65100
|
}
|
|
65101
|
+
resolveDescriptionColMetadata(columnName) {
|
|
65102
|
+
var _a;
|
|
65103
|
+
const colDef = (_a = this._gridOptions.columnApi.getColumn(columnName)) === null || _a === void 0 ? void 0 : _a.getColDef();
|
|
65104
|
+
const presentationFrom = this.getCodeColFromDescriptionCol(columnName);
|
|
65105
|
+
if (!StringUtils$1.isEmpty(presentationFrom)) {
|
|
65106
|
+
return {
|
|
65107
|
+
label: colDef.headerName,
|
|
65108
|
+
name: columnName,
|
|
65109
|
+
userInterface: UserInterface.SHORTTEXT,
|
|
65110
|
+
dataType: DataType.TEXT,
|
|
65111
|
+
properties: {
|
|
65112
|
+
[PRESENTATION_FROM_COL_PROP_NAME]: presentationFrom
|
|
65113
|
+
}
|
|
65114
|
+
};
|
|
65115
|
+
}
|
|
65116
|
+
return undefined;
|
|
65117
|
+
}
|
|
64354
65118
|
buildMenuItemOptionPin(params) {
|
|
64355
65119
|
const { column, columnApi } = params;
|
|
64356
65120
|
const isPinned = params.column.isPinned();
|
|
@@ -64677,7 +65441,7 @@ class AgGridController {
|
|
|
64677
65441
|
}
|
|
64678
65442
|
syncSelectWithDataUnit() {
|
|
64679
65443
|
const rowNode = this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);
|
|
64680
|
-
if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
|
|
65444
|
+
if (!rowNode || (rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
|
|
64681
65445
|
return;
|
|
64682
65446
|
const rowRange = this._gridOptions.api.getCellRanges().find(row => row.startRow.rowIndex === rowNode.rowIndex);
|
|
64683
65447
|
if ((rowRange === null || rowRange === void 0 ? void 0 : rowRange.columns.length) > 0) {
|
|
@@ -64714,7 +65478,9 @@ class AgGridController {
|
|
|
64714
65478
|
}
|
|
64715
65479
|
}
|
|
64716
65480
|
isColumnEditable(rowIndex, column) {
|
|
64717
|
-
if (column.getColDef().headerName === ''
|
|
65481
|
+
if (column.getColDef().headerName === ''
|
|
65482
|
+
|| column.getColDef().headerName === this.CHECK_BOX_COL_ID
|
|
65483
|
+
|| rowIndex === -1)
|
|
64718
65484
|
return false;
|
|
64719
65485
|
const rowId = this._dataUnit.records[rowIndex][this._idAttribName];
|
|
64720
65486
|
const rowNode = this._gridOptions.api.getRowNode(rowId);
|
|
@@ -64732,7 +65498,7 @@ class AgGridController {
|
|
|
64732
65498
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
64733
65499
|
}
|
|
64734
65500
|
setColumnsDef(cols) {
|
|
64735
|
-
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName:
|
|
65501
|
+
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' }));
|
|
64736
65502
|
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
64737
65503
|
if (this._statusResolver != undefined) {
|
|
64738
65504
|
newColDefs.push({
|
|
@@ -64753,6 +65519,7 @@ class AgGridController {
|
|
|
64753
65519
|
cellStyle: {
|
|
64754
65520
|
'text-align': 'center',
|
|
64755
65521
|
},
|
|
65522
|
+
suppressNavigable: true,
|
|
64756
65523
|
});
|
|
64757
65524
|
}
|
|
64758
65525
|
cols.forEach(c => {
|
|
@@ -64760,8 +65527,39 @@ class AgGridController {
|
|
|
64760
65527
|
});
|
|
64761
65528
|
this._colDefs = newColDefs;
|
|
64762
65529
|
if (this._gridOptions && this._gridOptions.api) {
|
|
65530
|
+
this.setColsDefsWithStateIfNeeded(this._colDefs);
|
|
65531
|
+
}
|
|
65532
|
+
}
|
|
65533
|
+
setColsDefsWithStateIfNeeded(colDefs) {
|
|
65534
|
+
if (!this._lastColsConfig) {
|
|
64763
65535
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
64764
65536
|
}
|
|
65537
|
+
/*
|
|
65538
|
+
Caso a definição de colunas esteja sendo atualizada,
|
|
65539
|
+
e existe uma config aplicada, temos que considerar essa
|
|
65540
|
+
config ao adicionar nova definição de colunas.
|
|
65541
|
+
PS: Poderia apenas chamar o setColumnsState, porém,
|
|
65542
|
+
isso impactaria em performance, e o usuário ia perceber
|
|
65543
|
+
a mudança das colunas visualmente na grade, o que traria
|
|
65544
|
+
uma experiencia ruim.
|
|
65545
|
+
*/
|
|
65546
|
+
const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
|
|
65547
|
+
this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
|
|
65548
|
+
}
|
|
65549
|
+
getColsDefWithConfigApplied(colDefs, colsConfig) {
|
|
65550
|
+
//Cria map de colunas existentes na config e seu índice
|
|
65551
|
+
const orderMap = colsConfig.reduce((map, col, index) => {
|
|
65552
|
+
map[col.name] = index;
|
|
65553
|
+
return map;
|
|
65554
|
+
}, {});
|
|
65555
|
+
//Remove colunas que não existem na config
|
|
65556
|
+
const filteredColsDefs = colDefs.filter((col) => !orderMap.hasOwnProperty(col.colId));
|
|
65557
|
+
//Ordena colunas baseada na config aplicada
|
|
65558
|
+
const sortedColumnDefs = filteredColsDefs.sort((a, b) => {
|
|
65559
|
+
var _a, _b;
|
|
65560
|
+
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);
|
|
65561
|
+
});
|
|
65562
|
+
return sortedColumnDefs;
|
|
64765
65563
|
}
|
|
64766
65564
|
clearRangeSelection() {
|
|
64767
65565
|
this._gridOptions.api.clearRangeSelection();
|
|
@@ -64798,6 +65596,7 @@ class AgGridController {
|
|
|
64798
65596
|
if (this._grid === undefined) {
|
|
64799
65597
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
64800
65598
|
}
|
|
65599
|
+
this._lastColsConfig = state;
|
|
64801
65600
|
const colDef = this._gridOptions.columnApi.getColumns();
|
|
64802
65601
|
let columns = this.getColumnsDef();
|
|
64803
65602
|
let visibleColumns = [];
|
|
@@ -64806,14 +65605,39 @@ class AgGridController {
|
|
|
64806
65605
|
const columnsOffset = colDef.length - columns.length;
|
|
64807
65606
|
this._gridConfig = state;
|
|
64808
65607
|
let sort = [];
|
|
64809
|
-
|
|
65608
|
+
let currentIndex = 0;
|
|
65609
|
+
state.forEach((cfgColumn) => {
|
|
65610
|
+
var _a, _b;
|
|
64810
65611
|
const colWidth = this.getColumnWidth(cfgColumn);
|
|
64811
|
-
this._gridOptions.columnApi.moveColumn(cfgColumn.name,
|
|
65612
|
+
this._gridOptions.columnApi.moveColumn(cfgColumn.name, currentIndex + columnsOffset);
|
|
64812
65613
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
64813
65614
|
visibleColumns.push(cfgColumn.name);
|
|
64814
65615
|
if (cfgColumn.ascending !== undefined) {
|
|
64815
65616
|
sort.push({ colId: cfgColumn.name, sort: cfgColumn.ascending !== true ? 'desc' : 'asc', sortIndex: cfgColumn.orderIndex });
|
|
64816
65617
|
}
|
|
65618
|
+
currentIndex++;
|
|
65619
|
+
const fieldMD = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
65620
|
+
/*
|
|
65621
|
+
Migração para o SEARCHPLUS, caso de uso:
|
|
65622
|
+
- Agora existe uma coluna para o campo de descrição do relaciona
|
|
65623
|
+
- Essa col, não existe na config da grade que já foi salva pelo DS
|
|
65624
|
+
- Nesse caso, precisamos inserir a coluna de descrição automaticamente para que
|
|
65625
|
+
os usuários não percam a apresentação do campo de descrição.
|
|
65626
|
+
PS: Caso esteja herdando do HTML5, devemos manter a config como está la
|
|
65627
|
+
*/
|
|
65628
|
+
if (this.needToAddDescriptionColumn(cfgColumn, fieldMD, state)) {
|
|
65629
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
|
|
65630
|
+
if (!descriptionColID)
|
|
65631
|
+
return;
|
|
65632
|
+
const descriptionCol = this._gridOptions.columnApi.getColumn(descriptionColID);
|
|
65633
|
+
const descriptionColDef = descriptionCol === null || descriptionCol === void 0 ? void 0 : descriptionCol.getColDef();
|
|
65634
|
+
const descriptionHeaderName = descriptionColDef === null || descriptionColDef === void 0 ? void 0 : descriptionColDef.headerName;
|
|
65635
|
+
const descriptionColSize = this.getColumnWidthByLabel(descriptionHeaderName);
|
|
65636
|
+
this._gridOptions.columnApi.moveColumn(descriptionColID, currentIndex + columnsOffset);
|
|
65637
|
+
this._gridOptions.columnApi.setColumnWidth(descriptionColID, descriptionColSize);
|
|
65638
|
+
visibleColumns.push(descriptionColID);
|
|
65639
|
+
currentIndex++;
|
|
65640
|
+
}
|
|
64817
65641
|
});
|
|
64818
65642
|
let invisibleColumns = columns.filter(column => !visibleColumns.includes(column.name)).map(column => column.name);
|
|
64819
65643
|
this._gridOptions.columnApi.setColumnsVisible(visibleColumns, true);
|
|
@@ -64823,6 +65647,16 @@ class AgGridController {
|
|
|
64823
65647
|
defaultState: { sort: null },
|
|
64824
65648
|
});
|
|
64825
65649
|
}
|
|
65650
|
+
needToAddDescriptionColumn(cfgColumn, fieldMD, stateConfig) {
|
|
65651
|
+
var _a, _b;
|
|
65652
|
+
if (!fieldMD) {
|
|
65653
|
+
return false;
|
|
65654
|
+
}
|
|
65655
|
+
const configVersion = ((_a = cfgColumn.configVersion) !== null && _a !== void 0 ? _a : 0);
|
|
65656
|
+
const isSearchPlus = (fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.userInterface) == UserInterface.SEARCHPLUS;
|
|
65657
|
+
const descriptionColID = (_b = fieldMD === null || fieldMD === void 0 ? void 0 : fieldMD.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
|
|
65658
|
+
return isSearchPlus && configVersion < 1 && stateConfig.find(col => col.name === descriptionColID) != undefined;
|
|
65659
|
+
}
|
|
64826
65660
|
getColumnsState() {
|
|
64827
65661
|
if (this._grid === undefined) {
|
|
64828
65662
|
throw new Error('Erro interno: Grid ainda não inicializado.');
|
|
@@ -64882,7 +65716,7 @@ class AgGridController {
|
|
|
64882
65716
|
return filterOptions.map(item => item.check).includes(true);
|
|
64883
65717
|
}
|
|
64884
65718
|
buildColDef(source) {
|
|
64885
|
-
var _a, _b, _c;
|
|
65719
|
+
var _a, _b, _c, _d, _e;
|
|
64886
65720
|
let tooltip = undefined;
|
|
64887
65721
|
const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
|
|
64888
65722
|
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
|
|
@@ -64891,6 +65725,7 @@ class AgGridController {
|
|
|
64891
65725
|
else if (propSortable === false) {
|
|
64892
65726
|
tooltip = 'Coluna não pode ser ordenada';
|
|
64893
65727
|
}
|
|
65728
|
+
const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(PRESENTATION_FROM_COL_PROP_NAME);
|
|
64894
65729
|
return this._editionManager.configureColumn({
|
|
64895
65730
|
headerName: source.label,
|
|
64896
65731
|
field: source.name,
|
|
@@ -64898,18 +65733,27 @@ class AgGridController {
|
|
|
64898
65733
|
resizable: true,
|
|
64899
65734
|
headerComponent: 'ezGridCustomHeader',
|
|
64900
65735
|
headerComponentParams: {
|
|
65736
|
+
presentationFrom,
|
|
64901
65737
|
tooltip: tooltip,
|
|
64902
65738
|
isSortable: propSortable,
|
|
64903
65739
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
64904
65740
|
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
64905
65741
|
},
|
|
64906
65742
|
valueFormatter: params => {
|
|
65743
|
+
var _a, _b, _c;
|
|
65744
|
+
if (presentationFrom) {
|
|
65745
|
+
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 : "";
|
|
65746
|
+
}
|
|
64907
65747
|
if (params.value === undefined || params.value === null) {
|
|
64908
65748
|
return "";
|
|
64909
65749
|
}
|
|
64910
65750
|
if (params.value instanceof Promise) {
|
|
64911
65751
|
return "Carregando...";
|
|
64912
65752
|
}
|
|
65753
|
+
if (source.userInterface === UserInterface.HTML) {
|
|
65754
|
+
this.setHTMLRender(params, source);
|
|
65755
|
+
return "";
|
|
65756
|
+
}
|
|
64913
65757
|
const customFormatter = this._customFormatters.get(source.name);
|
|
64914
65758
|
if (customFormatter) {
|
|
64915
65759
|
const formattedValue = customFormatter.format(params.value, source, params.data.__record__id__);
|
|
@@ -64923,8 +65767,27 @@ class AgGridController {
|
|
|
64923
65767
|
return this.getFormatterByColumn(params, source);
|
|
64924
65768
|
},
|
|
64925
65769
|
cellStyle: this.getStyleByColumn(source),
|
|
65770
|
+
editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(PRESENTATION_FROM_COL_PROP_NAME))
|
|
64926
65771
|
});
|
|
64927
65772
|
}
|
|
65773
|
+
setHTMLRender(params, source) {
|
|
65774
|
+
const htmlSanitized = purify.sanitize(params.value);
|
|
65775
|
+
params.colDef.cellRenderer = (cellParams) => {
|
|
65776
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65777
|
+
const element = document.createElement('span');
|
|
65778
|
+
element.innerHTML = htmlSanitized;
|
|
65779
|
+
return element;
|
|
65780
|
+
}
|
|
65781
|
+
return cellParams.value;
|
|
65782
|
+
};
|
|
65783
|
+
params.colDef.cellStyle = (cellParams) => {
|
|
65784
|
+
const defaultStyle = this.getStyleByColumn(source);
|
|
65785
|
+
if (cellParams.node.rowIndex === params.node.rowIndex) {
|
|
65786
|
+
return Object.assign(defaultStyle, { padding: 0 });
|
|
65787
|
+
}
|
|
65788
|
+
return defaultStyle;
|
|
65789
|
+
};
|
|
65790
|
+
}
|
|
64928
65791
|
setCustomFormatters(customFormatters) {
|
|
64929
65792
|
this._customFormatters = customFormatters;
|
|
64930
65793
|
}
|
|
@@ -64938,8 +65801,11 @@ class AgGridController {
|
|
|
64938
65801
|
};
|
|
64939
65802
|
}
|
|
64940
65803
|
getStyleByColumn(source) {
|
|
65804
|
+
var _a;
|
|
64941
65805
|
let cellStyle = this.getInitCellStyle();
|
|
64942
|
-
|
|
65806
|
+
const primitiveUIType = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get("PRIMITIVETUIYPE");
|
|
65807
|
+
const uitype = source === null || source === void 0 ? void 0 : source.userInterface;
|
|
65808
|
+
switch (primitiveUIType !== null && primitiveUIType !== void 0 ? primitiveUIType : uitype) {
|
|
64943
65809
|
case UserInterface.DECIMALNUMBER:
|
|
64944
65810
|
case UserInterface.INTEGERNUMBER:
|
|
64945
65811
|
cellStyle['text-align'] = 'right';
|
|
@@ -64955,7 +65821,7 @@ class AgGridController {
|
|
|
64955
65821
|
return cellStyle;
|
|
64956
65822
|
}
|
|
64957
65823
|
getFormatterByColumn(params, source) {
|
|
64958
|
-
var _a;
|
|
65824
|
+
var _a, _b, _c, _d;
|
|
64959
65825
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
|
|
64960
65826
|
const prop = source === null || source === void 0 ? void 0 : source.options;
|
|
64961
65827
|
let options;
|
|
@@ -64992,6 +65858,9 @@ class AgGridController {
|
|
|
64992
65858
|
return params === null || params === void 0 ? void 0 : params.value;
|
|
64993
65859
|
}
|
|
64994
65860
|
}
|
|
65861
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCHPLUS) {
|
|
65862
|
+
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 : "";
|
|
65863
|
+
}
|
|
64995
65864
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DECIMALNUMBER) {
|
|
64996
65865
|
if (params.value != undefined) {
|
|
64997
65866
|
const precision = Number(source.props.get('precision')) || 2;
|
|
@@ -65165,7 +66034,7 @@ class AgGridController {
|
|
|
65165
66034
|
this._gridOptions.api.stopEditing();
|
|
65166
66035
|
}
|
|
65167
66036
|
getColumnWidth(cfgColumn) {
|
|
65168
|
-
var _a, _b;
|
|
66037
|
+
var _a, _b, _c, _d, _e, _f;
|
|
65169
66038
|
if (cfgColumn == undefined) {
|
|
65170
66039
|
return;
|
|
65171
66040
|
}
|
|
@@ -65179,12 +66048,22 @@ class AgGridController {
|
|
|
65179
66048
|
return parseWidth + this.DEFAULT_FONT_SIZE_HTML5;
|
|
65180
66049
|
}
|
|
65181
66050
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
66051
|
+
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;
|
|
65182
66052
|
if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
|
|
65183
66053
|
return this.DEFAULT_MAX_SIZE;
|
|
65184
66054
|
}
|
|
65185
|
-
|
|
66055
|
+
return this.getColumnWidthByLabel(label);
|
|
66056
|
+
}
|
|
66057
|
+
getColumnWidthByLabel(label) {
|
|
66058
|
+
const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
|
|
65186
66059
|
return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
|
|
65187
66060
|
}
|
|
66061
|
+
getCodeColFromDescriptionCol(descriptionColName) {
|
|
66062
|
+
var _a;
|
|
66063
|
+
const colGrid = this._gridOptions.columnApi.getColumn(descriptionColName);
|
|
66064
|
+
const colDef = colGrid === null || colGrid === void 0 ? void 0 : colGrid.getColDef();
|
|
66065
|
+
return (_a = colDef === null || colDef === void 0 ? void 0 : colDef.headerComponentParams) === null || _a === void 0 ? void 0 : _a.presentationFrom;
|
|
66066
|
+
}
|
|
65188
66067
|
}
|
|
65189
66068
|
|
|
65190
66069
|
function enableSelectAll(total) {
|
|
@@ -65361,7 +66240,7 @@ class InMemoryFilterColumnDataSource {
|
|
|
65361
66240
|
}
|
|
65362
66241
|
}
|
|
65363
66242
|
|
|
65364
|
-
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)}}";
|
|
66243
|
+
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)}}";
|
|
65365
66244
|
|
|
65366
66245
|
const windowInstace = window;
|
|
65367
66246
|
const matches = (text, filter) => {
|
|
@@ -65409,6 +66288,9 @@ const EzGrid = class {
|
|
|
65409
66288
|
this.outlineMode = false;
|
|
65410
66289
|
this.enableRowTableStriped = true;
|
|
65411
66290
|
this.compact = false;
|
|
66291
|
+
this.useSearchColumn = true;
|
|
66292
|
+
this.suppressHorizontalScroll = false;
|
|
66293
|
+
this.mode = "complete";
|
|
65412
66294
|
}
|
|
65413
66295
|
/**
|
|
65414
66296
|
* Aplica a definição de colunas.
|
|
@@ -65462,7 +66344,7 @@ const EzGrid = class {
|
|
|
65462
66344
|
* Localiza determinada coluna tornando-a visível.
|
|
65463
66345
|
*/
|
|
65464
66346
|
async locateColumn(columnName) {
|
|
65465
|
-
this._gridController.locateColumn(columnName);
|
|
66347
|
+
this._gridController.locateColumn(columnName, this._element);
|
|
65466
66348
|
}
|
|
65467
66349
|
/**
|
|
65468
66350
|
* Usa um argumento para filtrar as colunas po label
|
|
@@ -65565,6 +66447,14 @@ const EzGrid = class {
|
|
|
65565
66447
|
this._showPaginationDescription();
|
|
65566
66448
|
}
|
|
65567
66449
|
}
|
|
66450
|
+
async observeModeChange(newMode = this.mode) {
|
|
66451
|
+
if (newMode === "simple") {
|
|
66452
|
+
this.canEdit = false;
|
|
66453
|
+
this.multipleSelection = false;
|
|
66454
|
+
this.suppressCheckboxColumn = true;
|
|
66455
|
+
this.compact = true;
|
|
66456
|
+
}
|
|
66457
|
+
}
|
|
65568
66458
|
onSelectionChange(evt) {
|
|
65569
66459
|
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
65570
66460
|
if (this.dataUnit) {
|
|
@@ -65817,6 +66707,7 @@ const EzGrid = class {
|
|
|
65817
66707
|
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
65818
66708
|
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
65819
66709
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66710
|
+
suppressHorizontalScroll: this.suppressHorizontalScroll
|
|
65820
66711
|
});
|
|
65821
66712
|
if (this.config) {
|
|
65822
66713
|
this.observeConfig(this.config);
|
|
@@ -65917,6 +66808,7 @@ const EzGrid = class {
|
|
|
65917
66808
|
}
|
|
65918
66809
|
connectedCallback() {
|
|
65919
66810
|
var _a;
|
|
66811
|
+
this.observeModeChange();
|
|
65920
66812
|
(_a = this._gridController) === null || _a === void 0 ? void 0 : _a.registryListeners();
|
|
65921
66813
|
}
|
|
65922
66814
|
componentWillRender() {
|
|
@@ -65949,6 +66841,9 @@ const EzGrid = class {
|
|
|
65949
66841
|
return this.columnfilterDataSource;
|
|
65950
66842
|
}
|
|
65951
66843
|
hideHeader() {
|
|
66844
|
+
if (this.mode === "simple") {
|
|
66845
|
+
return true;
|
|
66846
|
+
}
|
|
65952
66847
|
return !this._hasLeftButtons && !this._paginationInfo;
|
|
65953
66848
|
}
|
|
65954
66849
|
resolveLeftHeaderClass() {
|
|
@@ -65985,15 +66880,42 @@ const EzGrid = class {
|
|
|
65985
66880
|
this.nextPage();
|
|
65986
66881
|
}
|
|
65987
66882
|
}, { description: "Avança para a próxima página.", element: this._element });
|
|
66883
|
+
if (this.useSearchColumn) {
|
|
66884
|
+
this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
|
|
66885
|
+
if (!this._container || !this._ezPopoverSearchColumn)
|
|
66886
|
+
return;
|
|
66887
|
+
const container = this._container.getBoundingClientRect();
|
|
66888
|
+
await focusOnFieldSerch(this._columnSearch);
|
|
66889
|
+
this._ezPopoverSearchColumn.showUnder(this._container, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
66890
|
+
}, { description: LABEL_SEARCH_COLUMN, element: this._element });
|
|
66891
|
+
}
|
|
65988
66892
|
}
|
|
65989
66893
|
async removeShortcuts() {
|
|
65990
|
-
|
|
65991
|
-
|
|
65992
|
-
|
|
65993
|
-
|
|
65994
|
-
|
|
65995
|
-
|
|
65996
|
-
|
|
66894
|
+
var _a;
|
|
66895
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
66896
|
+
}
|
|
66897
|
+
renderFieldSearchColumn() {
|
|
66898
|
+
this._columnSearch = buildFieldSearch({
|
|
66899
|
+
value: StringUtils$1.generateUUID(),
|
|
66900
|
+
label: LABEL_SEARCH_COLUMN,
|
|
66901
|
+
}, ({ argument }) => new Promise(accept => {
|
|
66902
|
+
this.filterColumns(argument).then((columns) => {
|
|
66903
|
+
accept(columns
|
|
66904
|
+
.filter(column => !column.hidden)
|
|
66905
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
66906
|
+
});
|
|
66907
|
+
}), async (option) => {
|
|
66908
|
+
if (option != undefined && option.value != undefined) {
|
|
66909
|
+
await this.locateColumn(option.value);
|
|
66910
|
+
if (this._ezPopoverSearchColumn) {
|
|
66911
|
+
this._ezPopoverSearchColumn.hide();
|
|
66912
|
+
}
|
|
66913
|
+
if (this._container) {
|
|
66914
|
+
requestAnimationFrame(() => this._container.focus());
|
|
66915
|
+
}
|
|
66916
|
+
}
|
|
66917
|
+
});
|
|
66918
|
+
return this._columnSearch;
|
|
65997
66919
|
}
|
|
65998
66920
|
render() {
|
|
65999
66921
|
var _a;
|
|
@@ -66003,11 +66925,12 @@ const EzGrid = class {
|
|
|
66003
66925
|
'shadow-mode': !this.outlineMode,
|
|
66004
66926
|
'no-padding': this.compact,
|
|
66005
66927
|
'header-overlay': !this.hideHeader(),
|
|
66006
|
-
|
|
66928
|
+
'no-scroll': this.suppressHorizontalScroll
|
|
66929
|
+
}, ref: elem => (this._container = elem), tabindex: "0" }), h("div", { class: {
|
|
66007
66930
|
'ez-box ez-padding--small grid-header': true,
|
|
66008
66931
|
'outline-mode': this.outlineMode,
|
|
66009
66932
|
'shadow-mode': !this.outlineMode && !this.hideHeader(),
|
|
66010
|
-
} }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66933
|
+
}, tabindex: "0" }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("ez-popover", { ref: elem => (this._ezPopoverSearchColumn = elem), overlayType: "none" }, this.renderFieldSearchColumn()), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66011
66934
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66012
66935
|
` }, 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) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
66013
66936
|
}
|
|
@@ -66016,7 +66939,8 @@ const EzGrid = class {
|
|
|
66016
66939
|
static get watchers() { return {
|
|
66017
66940
|
"config": ["observeConfig"],
|
|
66018
66941
|
"_paginationInfo": ["updatePaginationTooltip"],
|
|
66019
|
-
"paginationCounterMode": ["observePaginationCounterMode"]
|
|
66942
|
+
"paginationCounterMode": ["observePaginationCounterMode"],
|
|
66943
|
+
"mode": ["observeModeChange"]
|
|
66020
66944
|
}; }
|
|
66021
66945
|
};
|
|
66022
66946
|
EzGrid.style = ezGridCss;
|